summaryrefslogtreecommitdiff
path: root/gcc/dwarfout.c
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1997-02-12 20:39:27 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1997-02-12 20:39:27 +0000
commita3e22dd036a26fc637560efa72a1aa654821703b (patch)
tree63101dd77f91c029705ac97f529c5db60f988195 /gcc/dwarfout.c
parentd6d05907b0dd0bfab7bc547965aaaa2d6ead1f82 (diff)
downloadgcc-a3e22dd036a26fc637560efa72a1aa654821703b.tar.gz
(output_type): Do early exit only if TYPE_CONTEXT is NULL
or if TYPE_CONTEXT is another type (e.g. a nested type). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13630 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarfout.c')
-rw-r--r--gcc/dwarfout.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c
index 8c5ea39d132..e5aa7479f59 100644
--- a/gcc/dwarfout.c
+++ b/gcc/dwarfout.c
@@ -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