This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Committed patch for new arm/thumb backend


Instruction scheduling before register allocation isn't safe on
machines with SMALL_REGISTER_CLASSES.
This patch was approved by Nick Clifton.  It fixes unsorted/structret.c.

Bernd

Index: arm.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/config/arm/arm.c,v
retrieving revision 1.47.2.2
diff -c -p -r1.47.2.2 arm.c
*** arm.c	2000/03/15 14:00:36	1.47.2.2
--- arm.c	2000/03/23 18:08:09
*************** arm_override_options ()
*** 649,654 ****
--- 649,660 ----
        else
  	arm_pic_register = pic_register;
      }
+ 
+   if (TARGET_THUMB && flag_schedule_insns)
+     {
+       /* Don't warn since it's on by default in -O2.  */
+       flag_schedule_insns = 0;
+     }
    
    /* If optimizing for space, don't synthesize constants.
       For processors with load scheduling, it never costs more than 2 cycles


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]