re PR middle-end/25930 (seg fault in GC with toplevel asm and -fno-toplevel-reorder)

PR middle-end/25930
	* cgraphunit.c (cgraph_output_in_order): Don't clear
	cgraph_asm_nodes until after asm strings have been output.

From-SVN: r110163
This commit is contained in:
Ian Lance Taylor 2006-01-24 08:52:44 +00:00 committed by Ian Lance Taylor
parent d1c2b2a461
commit e7b9eb2cc3
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2006-01-24 Ian Lance Taylor <ian@airs.com>
PR middle-end/25930
* cgraphunit.c (cgraph_output_in_order): Don't clear
cgraph_asm_nodes until after asm strings have been output.
2006-01-23 Adam Nemet <anemet@caviumnetworks.com>
* fix-header.c (read_scan_file): Add new parameter imultilib when

View File

@ -1244,7 +1244,6 @@ cgraph_output_in_order (void)
nodes[i].kind = ORDER_ASM;
nodes[i].u.a = pa;
}
cgraph_asm_nodes = NULL;
for (i = 0; i < max; ++i)
{
@ -1270,6 +1269,8 @@ cgraph_output_in_order (void)
gcc_unreachable ();
}
}
cgraph_asm_nodes = NULL;
}
/* Mark visibility of all functions.