This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Committed patch for new arm/thumb backend
- To: gcc-patches at gcc dot gnu dot org
- Subject: Committed patch for new arm/thumb backend
- From: Bernd Schmidt <bernds at balti dot cygnus dot co dot uk>
- Date: Sun, 26 Mar 2000 12:28:20 +0100 (BST)
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