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

Backport from mainline:
	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.

From-SVN: r146624
This commit is contained in:
Eric Botcazou 2009-04-22 22:24:45 +00:00 committed by Eric Botcazou
parent 82ec928fcd
commit ed1af9dd45
3 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
Backport from mainline:
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-22 Jakub Jelinek <jakub@redhat.com>
* alias.c (find_base_term): Move around LO_SUM case, so that

View File

@ -3593,7 +3593,7 @@ dbxout_block (tree block, int depth, tree args)
while (block)
{
/* 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 blocknum = BLOCK_NUMBER (block);

View File

@ -595,6 +595,8 @@ remove_unused_scope_block_p (tree scope)
/* Verfify that only blocks with source location set
are entry points to the inlined functions. */
gcc_assert (BLOCK_SOURCE_LOCATION (scope) == UNKNOWN_LOCATION);
TREE_USED (scope) = !unused;
return unused;
}