aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarfout.c
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1999-07-06 18:16:01 -0600
committerJeff Law <law@gcc.gnu.org>1999-07-06 18:16:01 -0600
commita30d4514f558378a77b59c199edb02b8808f6619 (patch)
treec440af33572a93d438bd68e1fd7feb33cd15e92c /gcc/dwarfout.c
parent32acdfafea5d00466723e6725fc4e391890acdc8 (diff)
downloadgcc-a30d4514f558378a77b59c199edb02b8808f6619.zip
gcc-a30d4514f558378a77b59c199edb02b8808f6619.tar.gz
gcc-a30d4514f558378a77b59c199edb02b8808f6619.tar.bz2
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
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 9c419a8..0a30a97 100644
--- a/gcc/dwarfout.c
+++ b/gcc/dwarfout.c
@@ -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. */
}