diff options
author | Jason Merrill <jason@casey.cygnus.com> | 2000-05-10 11:02:37 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2000-05-10 07:02:37 -0400 |
commit | 8d8238b6267048f1238ea5e6212fdb922b284954 (patch) | |
tree | 9bde39acaf3c33712f5455337f3bfa1d7e8a4d1f /gcc/dwarf2out.c | |
parent | fe517fb2c9ddd0300d5ecad7658ac8e4554069bb (diff) | |
download | gcc-8d8238b6267048f1238ea5e6212fdb922b284954.zip gcc-8d8238b6267048f1238ea5e6212fdb922b284954.tar.gz gcc-8d8238b6267048f1238ea5e6212fdb922b284954.tar.bz2 |
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
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); } |