diff options
author | Ian Lance Taylor <ian@airs.com> | 2006-01-24 08:52:44 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2006-01-24 08:52:44 +0000 |
commit | e7b9eb2cc3c9e74553108e01d71c53fc3404af5c (patch) | |
tree | 78b9f80e07f517087304c479cc0872d5b9c767d3 | |
parent | d1c2b2a461c53c3d7879c3ad12e651f74dd65dcb (diff) | |
download | gcc-e7b9eb2cc3c9e74553108e01d71c53fc3404af5c.zip gcc-e7b9eb2cc3c9e74553108e01d71c53fc3404af5c.tar.gz gcc-e7b9eb2cc3c9e74553108e01d71c53fc3404af5c.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cgraphunit.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 952d8a3..74eba52 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 2b79429..57fc2ea 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -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. |