From patchwork Tue Jul 7 12:30:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kaz Kojima X-Patchwork-Id: 492165 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 35A9F14029D for ; Tue, 7 Jul 2015 22:30:58 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=XVxMny1u; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :message-id:to:subject:from:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=lM98UiUx0d0auchB gYK0jGXy4t/GPjs0CZj6cjQdwiQ2nxRlx0/L1rF2B1YK0zjYvvvxH3KGjLph8Ihk 70oPES1wSBXIBYouvrUNX1nMaaBOSkRP3KO3sfZX1kghOkMjkc2h/KUmyInD0zJD mpzDiXkBauvDhGX2pdhPsTBpitc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :message-id:to:subject:from:mime-version:content-type :content-transfer-encoding; s=default; bh=LAzMt/Vqeivxg3cVYVJZ8A h4DDU=; b=XVxMny1u8zmRlkkfIHb/KVCp+UrzNjMdZ9Bs2T0vJKHQAnSs5qiPox rSflg6dujsle1VZsrDTLYyMZz5gvtB33IajmMsF9B7qUXsz/PpzcX/HIuGj0sCLe HRJta9Ohn+QvfjEOdIf6n9Py/x42NVIzSUzWI1IaxnkCKKko+6mrA= Received: (qmail 56326 invoked by alias); 7 Jul 2015 12:30:43 -0000 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 Received: (qmail 56259 invoked by uid 89); 7 Jul 2015 12:30:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mo-sw.iij4u.or.jp Received: from mo-sw1500.iij4u.or.jp (HELO mo-sw.iij4u.or.jp) (210.130.239.240) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 07 Jul 2015 12:30:36 +0000 Received: by mo-sw.iij4u.or.jp (4u-mo-sw1500) id t67CUXwC001313; Tue, 7 Jul 2015 21:30:33 +0900 Received: from localhost (24.26.30.125.dy.iij4u.or.jp [125.30.26.24]) by mbox.iij4u.or.jp (4u-mbox1501) id t67CUWpO013421; Tue, 7 Jul 2015 21:30:32 +0900 Date: Tue, 07 Jul 2015 21:30:31 +0900 (JST) Message-Id: <20150707.213031.162911739.kkojima@rr.iij4u.or.jp> To: gcc-patches@gcc.gnu.org Subject: [patch committed SH] Fix PR target/66780 From: Kaz Kojima Mime-Version: 1.0 X-IsSubscribed: yes The attatched patch reverts a part of the change in r221165 for target/65249. It turned out that that change causes a wrong code problem PR target/66780 which is worse than the ICE with 'R0_REGS' spill failure for a specific program reported by PR65249. I've committed it on trunk and reopened PR target/65249. I'll backport it to 4.9 later and to 5 when the branch reopens. Regards, kaz --- 2015-07-07 Kaz Kojima PR target/66780 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03 change for target/65249. diff --git a/config/sh/sh.md b/config/sh/sh.md index 5c8d306..f0cb3cf 100644 --- a/config/sh/sh.md +++ b/config/sh/sh.md @@ -10751,12 +10751,6 @@ label: "__stack_chk_guard") == 0) stack_chk_guard_p = true; - /* Use R0 to avoid long R0 liveness which stack-protector tends to - produce. */ - if (! sh_lra_flag - && stack_chk_guard_p && ! reload_in_progress && ! reload_completed) - operands[2] = gen_rtx_REG (Pmode, R0_REG); - if (TARGET_SHMEDIA) { rtx reg = operands[2];