Commit 62e36382 by Jason Merrill Committed by Jason Merrill

re PR c++/48999 (FAIL: g++.dg/torture/20090706-1.C due to an ICE on *-*-darwin*)

	PR c++/48999
	* tree-inline.c (copy_statement_list): Put back recursion.

From-SVN: r173793
parent 687027a4
2011-05-16 Jason Merrill <jason@redhat.com>
PR c++/48999
* tree-inline.c (copy_statement_list): Put back recursion.
2011-05-16 Georg-Johann Lay <avr@gjlay.de> 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
PR target/27663 PR target/27663
......
...@@ -662,6 +662,11 @@ copy_statement_list (tree *tp) ...@@ -662,6 +662,11 @@ copy_statement_list (tree *tp)
for (; !tsi_end_p (oi); tsi_next (&oi)) for (; !tsi_end_p (oi); tsi_next (&oi))
{ {
tree stmt = tsi_stmt (oi); tree stmt = tsi_stmt (oi);
if (TREE_CODE (stmt) == STATEMENT_LIST)
/* This copy is not redundant; tsi_link_after will smash this
STATEMENT_LIST into the end of the one we're building, and we
don't want to do that with the original. */
copy_statement_list (&stmt);
tsi_link_after (&ni, stmt, TSI_CONTINUE_LINKING); tsi_link_after (&ni, stmt, TSI_CONTINUE_LINKING);
} }
} }
......
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