re PR middle-end/35781 (Revision 133759 breaks ia64)
authorJan Hubicka <jh@suse.cz>
Tue, 1 Apr 2008 08:41:14 +0000 (10:41 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 1 Apr 2008 08:41:14 +0000 (08:41 +0000)
PR middle-end/35781
* m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
rtl.emit instead cfun->emit.
* sparc/sparc.h (INIT_EXPANDERS): Likewise.
* ia64/ia64.h (INIT_EXPANDERS): Likewise.

Co-Authored-By: Andreas Tobler <andreast@gcc.gnu.org>
Co-Authored-By: James E Wilson <wilson@tuliptree.org>
From-SVN: r133786

gcc/ChangeLog
gcc/config/ia64/ia64.h
gcc/config/m32c/m32c.c
gcc/config/sparc/sparc.h

index 3b4e7fb05fef8c87d1b7b1073c9d77e4b6e0a7cb..581e622c47fc16641292528029c1543541857e0e 100644 (file)
@@ -1,3 +1,13 @@
+2008-04-01  Jan Hubicka  <jh@suse.cz>
+           Jim Wilson  <wilson@tuliptree.org>
+           Andreas Tobler <andreast@gcc.gnu.org>
+
+       PR middle-end/35781
+       * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
+       rtl.emit instead cfun->emit.
+       * sparc/sparc.h (INIT_EXPANDERS): Likewise.
+       * ia64/ia64.h (INIT_EXPANDERS): Likewise.
+
 2008-04-01  Ben Elliston  <bje@au.ibm.com>
 
        * doc/c-tree.texi (Function Basics): Fix grammatical error.
index 5f0c28ce706efb36030a534f7c0bd6094033bcfb..618ba24814bf3cd54f54904206d71d33b3368491 100644 (file)
@@ -982,7 +982,7 @@ enum reg_class
 #define INIT_EXPANDERS                                 \
   do {                                                 \
     ia64_init_expanders ();                             \
-    if (cfun && cfun->emit->regno_pointer_align)       \
+    if (rtl.emit.regno_pointer_align)  \
       REGNO_POINTER_ALIGN (ARG_POINTER_REGNUM) = 64;   \
   } while (0)
 
index 2b3bab54ffcd830bbeeea6ab5273f5029eecfa21..37caaf974fc6a6e90f88a767b6a508d8c14b10f0 100644 (file)
@@ -3889,20 +3889,20 @@ m32c_leaf_function_p (void)
   struct sequence_stack *seq;
   int rv;
 
-  saved_first = cfun->emit->x_first_insn;
-  saved_last = cfun->emit->x_last_insn;
-  for (seq = cfun->emit->sequence_stack; seq && seq->next; seq = seq->next)
+  saved_first = rtl.emit.x_first_insn;
+  saved_last = rtl.emit.x_last_insn;
+  for (seq = rtl.emit.sequence_stack; seq && seq->next; seq = seq->next)
     ;
   if (seq)
     {
-      cfun->emit->x_first_insn = seq->first;
-      cfun->emit->x_last_insn = seq->last;
+      rtl.emit.x_first_insn = seq->first;
+      rtl.emit.x_last_insn = seq->last;
     }
 
   rv = leaf_function_p ();
 
-  cfun->emit->x_first_insn = saved_first;
-  cfun->emit->x_last_insn = saved_last;
+  rtl.emit.x_first_insn = saved_first;
+  rtl.emit.x_last_insn = saved_last;
   return rv;
 }
 
@@ -3918,7 +3918,7 @@ m32c_function_needs_enter (void)
   rtx fb = gen_rtx_REG (Pmode, FB_REGNO);
 
   insn = get_insns ();
-  for (seq = cfun->emit->sequence_stack;
+  for (seq = rtl.emit.sequence_stack;
        seq;
        insn = seq->first, seq = seq->next);
 
index 53983d46421e11b81f0a6776f7183c607f5df79b..fcea576233414567af6118a1ee842d1d3221439c 100644 (file)
@@ -953,7 +953,7 @@ extern int sparc_mode_class[];
 /* Given the stack bias, the stack pointer isn't actually aligned.  */
 #define INIT_EXPANDERS                                                  \
   do {                                                                  \
-    if (cfun && cfun->emit->regno_pointer_align && SPARC_STACK_BIAS)    \
+    if (rtl.emit.regno_pointer_align && SPARC_STACK_BIAS)       \
       {                                                                         \
        REGNO_POINTER_ALIGN (STACK_POINTER_REGNUM) = BITS_PER_UNIT;      \
        REGNO_POINTER_ALIGN (HARD_FRAME_POINTER_REGNUM) = BITS_PER_UNIT; \