diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-03-24 16:44:17 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-03-24 16:44:17 +0000 |
commit | 4392e9068342c7c15ad3367f39431f8393c6442e (patch) | |
tree | 5c77c1979d07ecb5e2c5b708bf2756a6c827b543 /gcc/tree-ssa-live.c | |
parent | ce482fbb9f2c92a4e228c1d4970fb336167afb41 (diff) | |
download | gcc-4392e9068342c7c15ad3367f39431f8393c6442e.tar.gz |
* tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
unused variable "ann".
(remove_unused_locals): Likewise.
* tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
statement.
* cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
after it is freed.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171408 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-live.c')
-rw-r--r-- | gcc/tree-ssa-live.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/tree-ssa-live.c b/gcc/tree-ssa-live.c index 0441df67b64..c99d987b6b6 100644 --- a/gcc/tree-ssa-live.c +++ b/gcc/tree-ssa-live.c @@ -427,7 +427,6 @@ remove_unused_scope_block_p (tree scope) { tree *t, *next; bool unused = !TREE_USED (scope); - var_ann_t ann; int nsubblocks = 0; for (t = &BLOCK_VARS (scope); *t; t = next) @@ -467,8 +466,7 @@ remove_unused_scope_block_p (tree scope) info about optimized-out variables in the scope blocks. Exception are the scope blocks not containing any instructions at all so user can't get into the scopes at first place. */ - else if ((ann = var_ann (*t)) != NULL - && is_used_p (*t)) + else if (var_ann (*t) != NULL && is_used_p (*t)) unused = false; else if (TREE_CODE (*t) == LABEL_DECL && TREE_USED (*t)) /* For labels that are still used in the IL, the decision to @@ -690,7 +688,6 @@ remove_unused_locals (void) basic_block bb; tree var, t; referenced_var_iterator rvi; - var_ann_t ann; bitmap global_unused_vars = NULL; unsigned srcidx, dstidx, num; @@ -766,7 +763,7 @@ remove_unused_locals (void) { var = VEC_index (tree, cfun->local_decls, srcidx); if (TREE_CODE (var) != FUNCTION_DECL - && (!(ann = var_ann (var)) + && (!var_ann (var) || !is_used_p (var))) { if (is_global_var (var)) @@ -798,7 +795,7 @@ remove_unused_locals (void) FOR_EACH_LOCAL_DECL (cfun, ix, var) if (TREE_CODE (var) == VAR_DECL && is_global_var (var) - && (ann = var_ann (var)) != NULL + && var_ann (var) != NULL && is_used_p (var)) mark_all_vars_used (&DECL_INITIAL (var), global_unused_vars); |