From 8d8238b6267048f1238ea5e6212fdb922b284954 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 10 May 2000 11:02:37 +0000 Subject: dwarf2out.c (gen_subprogram_die): Fixup die_parent for the abstract instance of a nested inline function. * dwarf2out.c (gen_subprogram_die): Fixup die_parent for the abstract instance of a nested inline function. * stor-layout.c (finish_record_layout): finalize_type_size before laying out the pending_statics. From-SVN: r33820 --- gcc/dwarf2out.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/dwarf2out.c') diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 2e1b689..c0da422 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -8160,6 +8160,11 @@ gen_subprogram_die (decl, context_die) if (declaration && ! local_scope_p (context_die)) abort (); + /* Fixup die_parent for the abstract instance of a nested + inline function. */ + if (old_die && old_die->die_parent == NULL) + add_child_die (context_die, old_die); + subr_die = new_die (DW_TAG_subprogram, context_die); add_abstract_origin_attribute (subr_die, origin); } -- cgit v1.1