]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
dbxout.c (dbxout_block): Reinstate test on TREE_USED.
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 17 Apr 2009 20:30:10 +0000 (20:30 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 17 Apr 2009 20:30:10 +0000 (20:30 +0000)
* 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

gcc/ChangeLog
gcc/dbxout.c
gcc/tree-ssa-live.c

index 0a16ea8fc33162cea00139468a8fbfb4488a5065..ab237e8a96dc5c6044e3fb9219cf0acc932a6209 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * tree-ssa-structalias.c (get_constraint_for_component_ref):
index dc63c7c80c45834210ebc744a46b26c879800b07..2182d78c20340d423a1f716dab37d569be8ebbaf 100644 (file)
@@ -3594,7 +3594,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);
index fa247458e9298b7e46b5362b0afb3537cfb597db..5f3b9d86cc5862f55ad3d4d6483435c147ef38e2 100644 (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;
 }