diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-21 14:53:21 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-21 14:53:21 +0000 |
commit | c77bfbc971346dcbf1d36ac45ef4913e999bcb3b (patch) | |
tree | 13f0febe9af8ce8dfe21d99708c299d629e8aa5e /gcc/tree-ssa-live.c | |
parent | 7c2df6db9d123ffca895e8025864938799786aee (diff) | |
download | gcc-c77bfbc971346dcbf1d36ac45ef4913e999bcb3b.tar.gz |
2012-05-21 Richard Guenther <rguenther@suse.de>
* tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for
more referenced vars.
* tree-ssa-live.c (mark_all_vars_used_1): Only set the used
flag on variables that have a var-annotation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187719 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-live.c')
-rw-r--r-- | gcc/tree-ssa-live.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-ssa-live.c b/gcc/tree-ssa-live.c index 31eac11ba67..5f3484d3a7d 100644 --- a/gcc/tree-ssa-live.c +++ b/gcc/tree-ssa-live.c @@ -377,7 +377,8 @@ mark_all_vars_used_1 (tree *tp, int *walk_subtrees, void *data) if (data != NULL && bitmap_clear_bit ((bitmap) data, DECL_UID (t)) && DECL_CONTEXT (t) == current_function_decl) mark_all_vars_used (&DECL_INITIAL (t), data); - set_is_used (t); + if (var_ann (t) != NULL) + set_is_used (t); } /* remove_unused_scope_block_p requires information about labels which are not DECL_IGNORED_P to tell if they might be used in the IL. */ |