Commit 5b4c43d7 by Eric Botcazou Committed by Eric Botcazou

dbxout.c (dbxout_block): Reinstate test on TREE_USED.

	* dbxout.c (dbxout_block): Reinstate test on TREE_USED.
	* tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.	* dbxout.c (dbxout_block): Reinstate test on TREE_USED.
	* tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.

From-SVN: r146289
parent b51605c4
2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
* dbxout.c (dbxout_block): Reinstate test on TREE_USED.
* tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
2009-04-17 Richard Guenther <rguenther@suse.de> 2009-04-17 Richard Guenther <rguenther@suse.de>
* tree-ssa-structalias.c (get_constraint_for_component_ref): * tree-ssa-structalias.c (get_constraint_for_component_ref):
......
...@@ -3594,7 +3594,7 @@ dbxout_block (tree block, int depth, tree args) ...@@ -3594,7 +3594,7 @@ dbxout_block (tree block, int depth, tree args)
while (block) while (block)
{ {
/* Ignore blocks never expanded or otherwise marked as real. */ /* Ignore blocks never expanded or otherwise marked as real. */
if (TREE_ASM_WRITTEN (block)) if (TREE_USED (block) && TREE_ASM_WRITTEN (block))
{ {
int did_output; int did_output;
int blocknum = BLOCK_NUMBER (block); int blocknum = BLOCK_NUMBER (block);
......
...@@ -595,6 +595,8 @@ remove_unused_scope_block_p (tree scope) ...@@ -595,6 +595,8 @@ remove_unused_scope_block_p (tree scope)
/* Verfify that only blocks with source location set /* Verfify that only blocks with source location set
are entry points to the inlined functions. */ are entry points to the inlined functions. */
gcc_assert (BLOCK_SOURCE_LOCATION (scope) == UNKNOWN_LOCATION); gcc_assert (BLOCK_SOURCE_LOCATION (scope) == UNKNOWN_LOCATION);
TREE_USED (scope) = !unused;
return unused; return unused;
} }
......
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