aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimplify.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2008-10-03 20:55:39 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2008-10-03 20:55:39 +0200
commit524d9a4532011e74366a8aa3549e4322ee2d75e2 (patch)
treea971c8701ec850c54aef462c83b1be2eb78af4f5 /gcc/gimplify.c
parent4d4e036d312737ad346b092a4e9289dae2067188 (diff)
downloadgcc-524d9a4532011e74366a8aa3549e4322ee2d75e2.zip
gcc-524d9a4532011e74366a8aa3549e4322ee2d75e2.tar.gz
gcc-524d9a4532011e74366a8aa3549e4322ee2d75e2.tar.bz2
re PR debug/37726 (Even at -O0 -g debuginfo for vars mentioned in nested fns is not emitted)
PR debug/37726 * gimplify.c (declare_vars): Use gimple_bind_block instead of gimple_block. * gcc.dg/debug/dwarf2/pr37726.c: New test. From-SVN: r140857
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r--gcc/gimplify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index d723d9f..5123efd 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -772,7 +772,7 @@ declare_vars (tree vars, gimple scope, bool debug_info)
temps = nreverse (last);
- block = gimple_block (scope);
+ block = gimple_bind_block (scope);
gcc_assert (!block || TREE_CODE (block) == BLOCK);
if (!block || !debug_info)
{