OSDN Git Service

* dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 25 Sep 2004 23:32:32 +0000 (23:32 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 25 Sep 2004 23:32:32 +0000 (23:32 +0000)
for nested functions whose proper parent has not been output.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88116 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/dwarf2out.c

index 7cd05ad..7db9dc6 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 8ec62fe..3992c83 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);
            }
        }
     }