aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-gimple.h
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2006-06-13 08:55:40 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2006-06-13 08:55:40 +0000
commit5123ad0975a0a439b6c97670beb1125a7f929d8f (patch)
tree05d681245e58a72d16cb2087bd700186752c60c2 /gcc/tree-gimple.h
parent6f2ba390aeb310887314db61d9c4876ac7801474 (diff)
downloadgcc-5123ad0975a0a439b6c97670beb1125a7f929d8f.zip
gcc-5123ad0975a0a439b6c97670beb1125a7f929d8f.tar.gz
gcc-5123ad0975a0a439b6c97670beb1125a7f929d8f.tar.bz2
re PR debug/26754 (Wrong debug info for variable accessed non-locally)
PR debug/26754 * gimplify.c (declare_tmp_vars): Rename into declare_vars. Add debug_info parameter. Chain the vars to the BLOCK instead of the BIND_EXPR if debug info are requested for them. (pop_gimplify_context): Adjust for above change. (gimple_add_tmp_var): Likewise. * tree-gimple.h (declare_tmp_vars): Rename into declare_vars. Add bool parameter. * tree-nested.c (convert_nonlocal_reference): Adjust for above change. (convert_local_reference): Likewise. (get_local_debug_decl): Set DECL_IGNORED_P on the original variable. (finalize_nesting_tree_1): Request that debug info be emitted for debug_var_chain. From-SVN: r114605
Diffstat (limited to 'gcc/tree-gimple.h')
-rw-r--r--gcc/tree-gimple.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-gimple.h b/gcc/tree-gimple.h
index 9cba07f..60fde4e 100644
--- a/gcc/tree-gimple.h
+++ b/gcc/tree-gimple.h
@@ -30,7 +30,8 @@ extern tree create_tmp_var_name (const char *);
extern tree create_tmp_var (tree, const char *);
extern tree get_initialized_tmp_var (tree, tree *, tree *);
extern tree get_formal_tmp_var (tree, tree *);
-extern void declare_tmp_vars (tree, tree);
+
+extern void declare_vars (tree, tree, bool);
extern void annotate_all_with_locus (tree *, location_t);