aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarfout.c
diff options
context:
space:
mode:
authorJason Merrill <jason@casey.cygnus.com>2000-02-22 22:04:35 +0000
committerJason Merrill <jason@gcc.gnu.org>2000-02-22 17:04:35 -0500
commitf19f17e08049dd89871753a20746f3fdf2a95ffb (patch)
tree846fb85460f1cf57241b9ec2478e7006167386cd /gcc/dwarfout.c
parent99803cd4cc24c236f177c15da793366841bb5434 (diff)
downloadgcc-f19f17e08049dd89871753a20746f3fdf2a95ffb.zip
gcc-f19f17e08049dd89871753a20746f3fdf2a95ffb.tar.gz
gcc-f19f17e08049dd89871753a20746f3fdf2a95ffb.tar.bz2
dwarf2out.c (output_line_info): Put the marker for the end of the line number info at the actual end.
* dwarf2out.c (output_line_info): Put the marker for the end of the line number info at the actual end. (gen_struct_or_union_type_die): Use decl_function_context to check for local classes. * dwarfout.c (output_type): Likewise. From-SVN: r32105
Diffstat (limited to 'gcc/dwarfout.c')
-rw-r--r--gcc/dwarfout.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c
index c6fcbe6..9474425 100644
--- a/gcc/dwarfout.c
+++ b/gcc/dwarfout.c
@@ -4456,9 +4456,8 @@ output_type (type, containing_scope)
|| TREE_CODE (TYPE_CONTEXT (type)) == NAMESPACE_DECL)
&& !finalizing)
{
- /* We can't do this for function-local types, and we don't need
- to. */
- if (TREE_PERMANENT (type))
+ /* We don't need to do this for function-local types. */
+ if (! decl_function_context (TYPE_STUB_DECL (type)))
add_incomplete_type (type);
return; /* EARLY EXIT! Avoid setting TREE_ASM_WRITTEN. */
}