Commit ff1ff056 by Jim Wilson

(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
parent e9f32eb5
...@@ -4248,7 +4248,10 @@ output_type (type, containing_scope) ...@@ -4248,7 +4248,10 @@ output_type (type, containing_scope)
can safely generate correct Dwarf descriptions for these file- can safely generate correct Dwarf descriptions for these file-
scope tagged types. */ 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. */ return; /* EARLY EXIT! Avoid setting TREE_ASM_WRITTEN. */
/* Prevent infinite recursion in cases where the type of some /* Prevent infinite recursion in cases where the type of some
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment