From: Eric Botcazou Date: Mon, 27 Jun 2011 14:34:05 +0000 (+0000) Subject: re PR lto/48492 (LTO bootstrap failure in copy_constant) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7af037b11a17b98365306466eaa568b8c01ca89;p=gcc.git re PR lto/48492 (LTO bootstrap failure in copy_constant) PR lto/48492 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list to a NULL parent. From-SVN: r175533 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9c89885d8a3..e0abefef6e1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-06-27 Eric Botcazou + + 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 PR tree-optimization/49394 diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 6d58a00dd63..63ac527c4af 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -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)) ;