From: Jan Hubicka Date: Sat, 25 Sep 2004 23:32:32 +0000 (+0200) Subject: dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die for nested functions... X-Git-Tag: releases/gcc-4.0.0~4582 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1168d30f48e716b623005277a5f336e4a43ae84e;p=thirdparty%2Fgcc.git dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die for nested functions whose proper parent has not... * dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die for nested functions whose proper parent has not been output. From-SVN: r88116 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7cd05ada7477..7db9dc66d8df 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2004-09-26 Jan Hubicka + * dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die + for nested functions whose proper parent has not been output. + * profile.c (compute_branch_probabilities): Use REG_BR_PROB notes when re-constructing profile previously invalidated by loop. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 8ec62fe7829d..3992c83189ba 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -13574,6 +13574,8 @@ dwarf2out_finish (const char *filename) origin = lookup_decl_die (context); if (origin) add_child_die (origin, die); + else + add_child_die (comp_unit_die, die); } } }