From patchwork Tue Sep 14 09:31:41 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jie Zhang X-Patchwork-Id: 64683 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 07862B70A3 for ; Tue, 14 Sep 2010 19:31:55 +1000 (EST) Received: (qmail 26632 invoked by alias); 14 Sep 2010 09:31:53 -0000 Received: (qmail 26619 invoked by uid 22791); 14 Sep 2010 09:31:52 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 14 Sep 2010 09:31:47 +0000 Received: (qmail 27610 invoked from network); 14 Sep 2010 09:31:45 -0000 Received: from unknown (HELO ?192.168.1.106?) (jie@127.0.0.2) by mail.codesourcery.com with ESMTPA; 14 Sep 2010 09:31:45 -0000 Message-ID: <4C8F40FD.8020402@codesourcery.com> Date: Tue, 14 Sep 2010 17:31:41 +0800 From: Jie Zhang User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100821 Icedove/3.1.2 MIME-Version: 1.0 To: gcc-patches@gcc.gnu.org Subject: [ARM] Disable -fsched-interblock for Cortex-M4 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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. */