Commit a7af037b by Eric Botcazou Committed by Eric Botcazou

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
parent 1c86160a
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> 2011-06-27 Richard Guenther <rguenther@suse.de>
PR tree-optimization/49394 PR tree-optimization/49394
......
...@@ -25017,7 +25017,7 @@ dwarf2out_finish (const char *filename) ...@@ -25017,7 +25017,7 @@ dwarf2out_finish (const char *filename)
{ {
dw_die_ref origin = get_AT_ref (die, DW_AT_abstract_origin); 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); add_child_die (origin->die_parent, die);
else if (is_cu_die (die)) else if (is_cu_die (die))
; ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment