]> gcc.gnu.org Git - gcc.git/commitdiff
(output_type): Do early exit only if TYPE_CONTEXT is NULL or if TYPE_CONTEXT is anoth...
authorJim Wilson <wilson@gcc.gnu.org>
Wed, 12 Feb 1997 20:39:27 +0000 (12:39 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Wed, 12 Feb 1997 20:39:27 +0000 (12:39 -0800)
(output_type): Do early exit only if TYPE_CONTEXT is NULL
or if TYPE_CONTEXT is another type (e.g. a nested type).

From-SVN: r13630

gcc/dwarfout.c

index 8c5ea39d1322f1838e420f8f1ac409c75fbf8832..e5aa7479f59f83ea63ae85ab4d87c8731a88c3a7 100644 (file)
@@ -4248,7 +4248,10 @@ output_type (type, containing_scope)
           can safely generate correct Dwarf descriptions for these file-
           scope tagged types.  */
 
-       if (TYPE_SIZE (type) == 0 && !finalizing)
+       if (TYPE_SIZE (type) == 0
+           && (TYPE_CONTEXT (type) == NULL
+               || TREE_CODE_CLASS (TREE_CODE (TYPE_CONTEXT (type))) == 't')
+           && !finalizing)
          return;       /* EARLY EXIT!  Avoid setting TREE_ASM_WRITTEN.  */
 
        /* Prevent infinite recursion in cases where the type of some
This page took 0.070723 seconds and 5 git commands to generate.