diff options
Diffstat (limited to 'gcc/dwarfout.c')
-rw-r--r-- | gcc/dwarfout.c | 5 |
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. */ } |