dwarf2out.c (gen_struct_or_union_type_die): Only remember types on the permanent_obstack.

p
	* dwarf2out.c (gen_struct_or_union_type_die): Only remember types
	on the permanent_obstack.
	* dwarfout.c (output_type): Likewise.

From-SVN: r27969
This commit is contained in:
Jason Merrill 1999-07-06 18:16:01 -06:00 committed by Jeff Law
parent 32acdfafea
commit a30d4514f5
2 changed files with 8 additions and 2 deletions

View File

@ -9077,7 +9077,10 @@ gen_struct_or_union_type_die (type, context_die)
else
{
add_AT_flag (type_die, DW_AT_declaration, 1);
add_incomplete_type (type);
/* We can't do this for function-local types, and we don't need to. */
if (TREE_PERMANENT (type))
add_incomplete_type (type);
}
}

View File

@ -4439,7 +4439,10 @@ output_type (type, containing_scope)
&& TREE_CODE (TYPE_CONTEXT (type)) != METHOD_TYPE))
&& !finalizing)
{
add_incomplete_type (type);
/* We can't do this for function-local types, and we don't need
to. */
if (TREE_PERMANENT (type))
add_incomplete_type (type);
return; /* EARLY EXIT! Avoid setting TREE_ASM_WRITTEN. */
}