From patchwork Tue Sep 14 09:31:41 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [ARM] Disable -fsched-interblock for Cortex-M4 From: Jie Zhang X-Patchwork-Id: 64683 Message-Id: <4C8F40FD.8020402@codesourcery.com> To: gcc-patches@gcc.gnu.org Date: Tue, 14 Sep 2010 17:31:41 +0800 Since there is no Cortex-M4F processor, I updated my patch. OK? * 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. */