diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2011-02-02 06:18:01 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2011-02-02 06:18:01 +0000 |
commit | 83d707929ba5e7da8f22032216b50bad18837152 (patch) | |
tree | ccc3a4712d7c10046df4c3604d1167d5dafaa720 /gcc/cfgexpand.c | |
parent | aaa2ac931e8979147eeac7fd29d548bcb1ddef99 (diff) | |
download | gcc-83d707929ba5e7da8f22032216b50bad18837152.zip gcc-83d707929ba5e7da8f22032216b50bad18837152.tar.gz gcc-83d707929ba5e7da8f22032216b50bad18837152.tar.bz2 |
re PR debug/47106 (-fcompare-debug failure (length) with -fpartial-inlining -flto -fconserve-stack)
PR debug/47106
PR debug/47402
* tree-flow-inline.h (clear_is_used, is_used_p): New.
* cfgexpand.c (account_used_vars_for_block): Use them.
* tree-nrv.c (tree_nrv): Likewise.
* tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
(dump_scope_block): Likewise.
(remove_unused_locals): Likewise.
From-SVN: r169515
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r-- | gcc/cfgexpand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index bb60c33..7b1c441 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -1325,7 +1325,7 @@ account_used_vars_for_block (tree block, bool toplevel) /* Expand all variables at this level. */ for (t = BLOCK_VARS (block); t ; t = DECL_CHAIN (t)) - if (var_ann (t) && var_ann (t)->used) + if (var_ann (t) && is_used_p (t)) size += expand_one_var (t, toplevel, false); /* Expand all variables at containing levels. */ |