Commit e7b9eb2c by Ian Lance Taylor Committed by Ian Lance Taylor

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
parent d1c2b2a4
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> 2006-01-23 Adam Nemet <anemet@caviumnetworks.com>
* fix-header.c (read_scan_file): Add new parameter imultilib when * fix-header.c (read_scan_file): Add new parameter imultilib when
......
...@@ -1244,7 +1244,6 @@ cgraph_output_in_order (void) ...@@ -1244,7 +1244,6 @@ cgraph_output_in_order (void)
nodes[i].kind = ORDER_ASM; nodes[i].kind = ORDER_ASM;
nodes[i].u.a = pa; nodes[i].u.a = pa;
} }
cgraph_asm_nodes = NULL;
for (i = 0; i < max; ++i) for (i = 0; i < max; ++i)
{ {
...@@ -1270,6 +1269,8 @@ cgraph_output_in_order (void) ...@@ -1270,6 +1269,8 @@ cgraph_output_in_order (void)
gcc_unreachable (); gcc_unreachable ();
} }
} }
cgraph_asm_nodes = NULL;
} }
/* Mark visibility of all functions. /* Mark visibility of all functions.
......
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