From ff1ff0565bbd07dd0b4f139001f8a1b5c2d6328d Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Wed, 12 Feb 1997 12:39:27 -0800 Subject: [PATCH] (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 --- gcc/dwarfout.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.30.2