From: Jim Wilson Date: Wed, 12 Feb 1997 20:39:27 +0000 (-0800) Subject: (output_type): Do early exit only if TYPE_CONTEXT is NULL or if TYPE_CONTEXT is anoth... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff1ff0565bbd07dd0b4f139001f8a1b5c2d6328d;p=gcc.git (output_type): Do early exit only if TYPE_CONTEXT is NULL or if TYPE_CONTEXT is another type (e.g. (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 --- 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