Patchwork [ARM] Disable -fsched-interblock for Cortex-M4

login
register
mail settings
Submitter Jie Zhang
Date Sept. 14, 2010, 9:31 a.m.
Message ID <4C8F40FD.8020402@codesourcery.com>
Download mbox | patch
Permalink /patch/64683/
State New
Headers show

Comments

Jie Zhang - Sept. 14, 2010, 9:31 a.m.
Since there is no Cortex-M4F processor, I updated my patch.

OK?

Patch


	* config/arm/arm.c (arm_override_options): Enable
	-fno-sched-interblock for Cortex-M4 and Cortex-M4F.

Index: config/arm/arm.c
===================================================================
--- config/arm/arm.c	(revision 164143)
+++ config/arm/arm.c	(working copy)
@@ -1886,6 +1886,11 @@  arm_override_options (void)
 	fix_cm3_ldrd = 0;
     }
 
+  /* Enable -fno-sched-interblock for Cortex-M4 and Cortex-M4F.  */
+  if (arm_selected_tune->core == cortexm4
+      || arm_selected_tune->core == cortexm4f)
+    flag_schedule_interblock = 0;
+
   if (TARGET_THUMB1 && flag_schedule_insns)
     {
       /* Don't warn since it's on by default in -O2.  */