From patchwork Thu Jul 19 21:52:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 172087 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 579B72C0332 for ; Fri, 20 Jul 2012 07:56:59 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1343339820; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:From:To:Subject:Date:User-Agent:MIME-Version:Message-Id: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=siJJfmh 4SU78fEGXFXNSss0MRq8=; b=lC40UkAUe+nh/r7N4jGoMIxVDB5bLLEkvXqFla6 L8SQyOVRM+QRvWBx7TcDcWD1CRyrt+CyJIPS/R0d3tUTWpQNEeHeG8X7a7MpQnED PHDP+Z7t3Ds/AmPfRE8ABMj/zuGghglzzsGIPRinHfakJtiWxhHHJj3RJuIh7aKW cJVk= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:From:To:Subject:Date:User-Agent:MIME-Version:Message-Id:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=B7kfiOqkxXDASgASr9oCM01V87QPh6LVzR95P25bOIrdO171PGuFgcYr/NSpUA 4vshBr6lqcwIUGrm9PtNLcCqwPtq/qOWPFiLnerPP/b8u0di2aauQ/nXgVpw2Alz ez4U35vvZbNuQUdFtmP8ACb9ad5gfhZGQPg0KOODeRieU=; Received: (qmail 635 invoked by alias); 19 Jul 2012 21:56:56 -0000 Received: (qmail 626 invoked by uid 22791); 19 Jul 2012 21:56:55 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 19 Jul 2012 21:56:42 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id ED98229006D for ; Thu, 19 Jul 2012 23:56:47 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NudeJgfBink5 for ; Thu, 19 Jul 2012 23:56:47 +0200 (CEST) Received: from hermes.site (ADijon-552-1-101-157.w90-33.abo.wanadoo.fr [90.33.60.157]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id C7BDA290020 for ; Thu, 19 Jul 2012 23:56:47 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: [SPARC] Fix miscompilation of ada/g-calend.adb at -O2 Date: Thu, 19 Jul 2012 23:52:53 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.34.10-0.6-desktop; KDE/4.4.4; x86_64; ; ) MIME-Version: 1.0 Message-Id: <201207192352.53500.ebotcazou@adacore.com> 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 There is now a tail call in Time_Of with lot of 64-bit quantities around, including arguments, and this exposes an oversight in adddi3_insn_sp32. Bootstrapped/regtested on SPARC/Solaris, applied on mainline and 4.7 branch. 2012-07-19 Eric Botcazou * config/sparc/sparc.md (adddi3_insn_sp32): Add earlyclobber. Index: config/sparc/sparc.md =================================================================== --- config/sparc/sparc.md (revision 189525) +++ config/sparc/sparc.md (working copy) @@ -3528,7 +3528,7 @@ (define_expand "adddi3" }) (define_insn_and_split "*adddi3_insn_sp32" - [(set (match_operand:DI 0 "register_operand" "=r") + [(set (match_operand:DI 0 "register_operand" "=&r") (plus:DI (match_operand:DI 1 "arith_double_operand" "%r") (match_operand:DI 2 "arith_double_operand" "rHI"))) (clobber (reg:CC CC_REG))]