Fixes a bunch of C testsuite failures. Committed to gc-improv.

2011-04-07  Laurynas Biveinis  <laurynas.bivei...@gmail.com>

        * stmt.c (label_rtx): Allocate RTX in permanent RTL memory.
Index: stmt.c
===================================================================
--- stmt.c	(revision 170593)
+++ stmt.c	(working copy)
@@ -139,7 +139,10 @@
 
   if (!DECL_RTL_SET_P (label))
     {
-      rtx r = gen_label_rtx ();
+      rtx r;
+      use_rtl_permanent_mem ();
+      r = gen_label_rtx ();
+      use_rtl_function_mem ();
       SET_DECL_RTL (label, r);
       if (FORCED_LABEL (label) || DECL_NONLOCAL (label))
 	LABEL_PRESERVE_P (r) = 1;

Reply via email to