dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die for nested functions...
authorJan Hubicka <jh@suse.cz>
Sat, 25 Sep 2004 23:32:32 +0000 (01:32 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 25 Sep 2004 23:32:32 +0000 (23:32 +0000)
* dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
for nested functions whose proper parent has not been output.

From-SVN: r88116

gcc/ChangeLog
gcc/dwarf2out.c

index 7cd05ada7477b2743f4830df42d347d91557f11c..7db9dc66d8df7bc126c0bc40c05bd5ff80d2cc76 100644 (file)
@@ -1,5 +1,8 @@
 2004-09-26  Jan Hubicka  <jh@suse.cz>
 
+       * 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.
 
index 8ec62fe7829d3d4d0b967d398ad85f2dc4d97221..3992c83189bab0add4004f1ecf1efdd2f4de77d8 100644 (file)
@@ -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);
            }
        }
     }