OSDN Git Service

PR middle-end/25930
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jan 2006 08:52:44 +0000 (08:52 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jan 2006 08:52:44 +0000 (08:52 +0000)
* cgraphunit.c (cgraph_output_in_order): Don't clear
cgraph_asm_nodes until after asm strings have been output.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110163 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cgraphunit.c

index 952d8a3..74eba52 100644 (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
index 2b79429..57fc2ea 100644 (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.