aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-dfa.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2011-01-21 14:57:33 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2011-01-21 14:57:33 +0000
commit1c7d0b34dcb5810c6da08a672af1ab7d1499fe1b (patch)
tree755d1d58491daff3fda926aecf62711e4f7c668b /gcc/tree-dfa.c
parentf99cc488e2dce167370c00d1948fe2846acab19c (diff)
downloadgcc-1c7d0b34dcb5810c6da08a672af1ab7d1499fe1b.zip
gcc-1c7d0b34dcb5810c6da08a672af1ab7d1499fe1b.tar.gz
gcc-1c7d0b34dcb5810c6da08a672af1ab7d1499fe1b.tar.bz2
re PR debug/47106 (-fcompare-debug failure (length) with -fpartial-inlining -flto -fconserve-stack)
PR debug/47106 * cfgexpand.c (account_used_vars_for_block): Only account vars that are annotated as used. (estimated_stack_frame_size): Don't set TREE_USED. * tree-dfa.c (create_var_ann): Mark variable as used. From-SVN: r169093
Diffstat (limited to 'gcc/tree-dfa.c')
-rw-r--r--gcc/tree-dfa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-dfa.c b/gcc/tree-dfa.c
index 05a682b..8766744 100644
--- a/gcc/tree-dfa.c
+++ b/gcc/tree-dfa.c
@@ -137,6 +137,9 @@ create_var_ann (tree t)
ann = ggc_alloc_cleared_var_ann_d ();
*DECL_VAR_ANN_PTR (t) = ann;
+ /* Assume the variable is used, at least for now. */
+ ann->used = true;
+
return ann;
}