OSDN Git Service

PR lto/48492
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Jun 2011 14:34:05 +0000 (14:34 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Jun 2011 14:34:05 +0000 (14:34 +0000)
* dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
to a NULL parent.

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

gcc/ChangeLog
gcc/dwarf2out.c

index 9c89885..e0abefe 100644 (file)
@@ -1,3 +1,9 @@
+2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR lto/48492
+       * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
+       to a NULL parent.
+
 2011-06-27  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/49394
index 6d58a00..63ac527 100644 (file)
@@ -25017,7 +25017,7 @@ dwarf2out_finish (const char *filename)
        {
          dw_die_ref origin = get_AT_ref (die, DW_AT_abstract_origin);
 
-         if (origin)
+         if (origin && origin->die_parent)
            add_child_die (origin->die_parent, die);
          else if (is_cu_die (die))
            ;