diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-06-22 06:41:09 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-06-22 06:41:09 +0000 |
commit | 25db41e923efb9076dc5de0743b898186cebbcc0 (patch) | |
tree | 5ec3fdfb6ee6190965fcf815e9b89611e6eed89d /gcc/tree-ssa-live.c | |
parent | d806488d171e6d27ee0d2d888e08c60aa022c3c2 (diff) | |
download | gcc-25db41e923efb9076dc5de0743b898186cebbcc0.tar.gz |
* tree-ssa-live.c (remove_unused_scope_block_p): Remove again
DECL_IGNORED_P non-reg vars even if they are used.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@188872 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-live.c')
-rw-r--r-- | gcc/tree-ssa-live.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/tree-ssa-live.c b/gcc/tree-ssa-live.c index 252020624b4..8f504f005fe 100644 --- a/gcc/tree-ssa-live.c +++ b/gcc/tree-ssa-live.c @@ -458,11 +458,8 @@ remove_unused_scope_block_p (tree scope, bitmap global_unused_vars) else if (TREE_CODE (*t) == VAR_DECL && DECL_HAS_VALUE_EXPR_P (*t)) unused = false; - /* Remove everything we don't generate debug info for. - Don't remove larger vars though, because BLOCK_VARS are - used also during expansion to determine which variables - might share stack space. */ - else if (DECL_IGNORED_P (*t) && is_gimple_reg (*t)) + /* Remove everything we don't generate debug info for. */ + else if (DECL_IGNORED_P (*t)) { *t = DECL_CHAIN (*t); next = t; |