Commit d8debb1d by Jakub Jelinek Committed by Jakub Jelinek

tree-ssa-live.c (remove_unused_scope_block_p): Don't remove DECL_IGNORED_P…

tree-ssa-live.c (remove_unused_scope_block_p): Don't remove DECL_IGNORED_P non-reg vars if they are used.

	* tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
	DECL_IGNORED_P non-reg vars if they are used.

From-SVN: r169083
parent f316861a
2011-01-21 Jakub Jelinek <jakub@redhat.com>
* tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
DECL_IGNORED_P non-reg vars if they are used.
2011-01-21 Kai Tietz <kai.tietz@onevision.com> 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
PR bootstrap/47215 PR bootstrap/47215
......
...@@ -453,8 +453,11 @@ remove_unused_scope_block_p (tree scope) ...@@ -453,8 +453,11 @@ remove_unused_scope_block_p (tree scope)
else if (TREE_CODE (*t) == VAR_DECL && DECL_HAS_VALUE_EXPR_P (*t)) else if (TREE_CODE (*t) == VAR_DECL && DECL_HAS_VALUE_EXPR_P (*t))
unused = false; unused = false;
/* Remove everything we don't generate debug info for. */ /* Remove everything we don't generate debug info for.
else if (DECL_IGNORED_P (*t)) 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))
{ {
*t = DECL_CHAIN (*t); *t = DECL_CHAIN (*t);
next = t; next = t;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment