From: Ian Lance Taylor Date: Tue, 24 Jan 2006 08:52:44 +0000 (+0000) Subject: re PR middle-end/25930 (seg fault in GC with toplevel asm and -fno-toplevel-reorder) X-Git-Tag: releases/gcc-4.2.0~4651 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7b9eb2cc3c9e74553108e01d71c53fc3404af5c;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 952d8a3e4563..74eba5267d83 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2006-01-24 Ian Lance Taylor + + 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 * fix-header.c (read_scan_file): Add new parameter imultilib when diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 2b7942970bf3..57fc2eaa4058 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.