dwarfout.c (dwarfout_file_scope_decl, [...]): Check TYPE_DECL_IS_STUB instead of...
authorJim Wilson <wilson@cygnus.com>
Tue, 26 Aug 1997 18:05:23 +0000 (18:05 +0000)
committerJeff Law <law@gcc.gnu.org>
Tue, 26 Aug 1997 18:05:23 +0000 (12:05 -0600)
        * dwarfout.c (dwarfout_file_scope_decl, case TYPE_DECL): Check
        TYPE_DECL_IS_STUB instead of DECL_NAME.

From-SVN: r14944

gcc/ChangeLog
gcc/dwarfout.c

index 7f73e555698cba8b2e0259d384290e56407e8a9f..12b718f4521cfa107a59f1a53300345220a94414 100644 (file)
@@ -1,3 +1,8 @@
+Tue Aug 26 12:03:49 1997  Jim Wilson  (wilson@cygnus.com)
+
+       * dwarfout.c (dwarfout_file_scope_decl, case TYPE_DECL): Check
+       TYPE_DECL_IS_STUB instead of DECL_NAME.
+
 Mon Aug 25 23:27:10 1997  H.J. Lu  (hjl@gnu.ai.mit.edu)
 
        * objc/Make-lang.in ($(OBJC_O)): Also depend on cc1obj.
index 0c73fcd30a8a7d9a39cffb4ced6b2194c432a991..6db507d6a400b7c98cf14b34dbbee89533ee4c24 100644 (file)
@@ -5144,7 +5144,7 @@ dwarfout_file_scope_decl (decl, set_finalizing)
         a return type or a formal parameter type of some function.  */
 
       if (debug_info_level <= DINFO_LEVEL_TERSE)
-       if (DECL_NAME (decl) != NULL
+       if (! TYPE_DECL_IS_STUB (decl)
            || ! TYPE_USED_FOR_FUNCTION (TREE_TYPE (decl)))
           return;