re PR debug/17787 (Ada does not bootstrap on darwin because of -feliminate-unused...
authorAndrew Pinski <pinskia@physics.uc.edu>
Wed, 6 Oct 2004 22:13:14 +0000 (22:13 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Wed, 6 Oct 2004 22:13:14 +0000 (15:13 -0700)
2004-10-06  Andrew Pinski  <pinskia@physics.uc.edu>

        PR debug/17787
        * dbxout.c (dbxout_symbol): Really handle RECORD, UNION, and
        ENUMs specially instead of just saying we do.

From-SVN: r88629

gcc/ChangeLog
gcc/dbxout.c

index 90f94f26f4dd4db2152b275cd7312aedf2bbc029..6ed9e990ca5d6061a050d105c12b151140669c31 100644 (file)
@@ -1,3 +1,9 @@
+2004-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       PR debug/17787
+       * dbxout.c (dbxout_symbol): Really handle RECORD, UNION, and
+       ENUMs specially instead of just saying we do.
+
 2004-10-06  Eric Christopher  <echristo@redhat.com>
 
        * dwarf2.h: Sync with include/elf/dwarf2.h
index 8dd153e151a1aec62f2371835f282a9c6213f658..bab43cb5f3417d964a5169d34fbd845f88397905 100644 (file)
@@ -2182,22 +2182,24 @@ dbxout_symbol (tree decl, int local ATTRIBUTE_UNUSED)
          a different name.  In that case we also want to output
          that.  */
 
-      if ((TREE_CODE (t) == RECORD_TYPE
+      if (TREE_CODE (t) == RECORD_TYPE
            || TREE_CODE (t) == UNION_TYPE
            || TREE_CODE (t) == QUAL_UNION_TYPE
            || TREE_CODE (t) == ENUMERAL_TYPE)
-          && TYPE_STUB_DECL (t)
-          && TYPE_STUB_DECL (t) != decl
-          && DECL_P (TYPE_STUB_DECL (t))
-          && ! DECL_IGNORED_P (TYPE_STUB_DECL (t)))
         {
-          debug_queue_symbol (TYPE_STUB_DECL (t));
-          if (TYPE_NAME (t)
-              && TYPE_NAME (t) != TYPE_STUB_DECL (t)
-              && TYPE_NAME (t) != decl
-              && DECL_P (TYPE_NAME (t)))
-            debug_queue_symbol (TYPE_NAME (t));
-        }
+           if (TYPE_STUB_DECL (t)
+               && TYPE_STUB_DECL (t) != decl
+               && DECL_P (TYPE_STUB_DECL (t))
+               && ! DECL_IGNORED_P (TYPE_STUB_DECL (t)))
+           {
+             debug_queue_symbol (TYPE_STUB_DECL (t));
+             if (TYPE_NAME (t)
+                 && TYPE_NAME (t) != TYPE_STUB_DECL (t)
+                 && TYPE_NAME (t) != decl
+                 && DECL_P (TYPE_NAME (t)))
+               debug_queue_symbol (TYPE_NAME (t));
+           }
+       }
       else if (TYPE_NAME (t)
               && TYPE_NAME (t) != decl
               && DECL_P (TYPE_NAME (t)))