From patchwork Wed Aug 17 22:50:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kaz Kojima X-Patchwork-Id: 110429 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 B5654B6F7D for ; Thu, 18 Aug 2011 08:51:07 +1000 (EST) Received: (qmail 4175 invoked by alias); 17 Aug 2011 22:51:01 -0000 Received: (qmail 4113 invoked by uid 22791); 17 Aug 2011 22:51:00 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_JMF_BL, RP_MATCHES_RCVD, SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mo11.iij4u.or.jp (HELO mo.iij4u.or.jp) (210.138.174.79) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 17 Aug 2011 22:50:43 +0000 Received: by mo.iij4u.or.jp (mo11) id p7HMogQC029021; Thu, 18 Aug 2011 07:50:42 +0900 Received: from localhost (238.152.138.210.bn.2iij.net [210.138.152.238]) by mbox.iij4u.or.jp (mbox10) id p7HMogUJ023078; Thu, 18 Aug 2011 07:50:42 +0900 Date: Thu, 18 Aug 2011 07:50:41 +0900 (JST) Message-Id: <20110818.075041.348702094.kkojima@rr.iij4u.or.jp> To: gcc-patches@gcc.gnu.org Subject: [patch committed] Fix PR target/50068 From: Kaz Kojima Mime-Version: 1.0 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 Hi, The attached patch is to fix PR target/50068. sh_output_mi_thunk calls dbr_schedule which doesn't expect to be called in that situation. Although we could set the environment in output_mi_thunk in such a way to enable dbr_schedule, it looks a bit overkill for this relatively rare optimization. The patch simply removes that use of dbr_schedule. Tested on sh4-unknown-linux-gnu with no new failures. Applied on trunk. Regards, kaz --- 2011-08-17 Kaz Kojima PR target/50068 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule. --- ORIG/trunk/gcc/config/sh/sh.c 2011-07-29 09:31:42.000000000 +0900 +++ trunk/gcc/config/sh/sh.c 2011-08-16 16:46:19.000000000 +0900 @@ -11711,10 +11711,6 @@ sh_output_mi_thunk (FILE *file, tree thu } sh_reorg (); - - if (optimize > 0 && flag_delayed_branch) - dbr_schedule (insns); - shorten_branches (insns); final_start_function (insns, file, 1); final (insns, file, 1);