From patchwork Thu Feb 23 18:53:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Makarov X-Patchwork-Id: 142696 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 F1628B6EF1 for ; Fri, 24 Feb 2012 05:54:05 +1100 (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=1330628046; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=r8Ob/42 XSK8+ySBGojzrOHriY+0=; b=KI3p2iatAVPNr/kxI5Qo6bgYxj9OriGBinMpd0u zH5lbJbCi5QxlhUBlNgWUSHZ+Ijk2H5xaW+zWD+fx+3VnVj6LYIHLmL+gWKLWPK8 Y+m8F7uTwmGfYYEEZUpzVBDARjeZZdM6dkvIJGSqVDwqQHy3tasLK/mn4zIZ2lxr pg94= 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:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=A+fhbtUSSepSaqO85u6bLLVOG+8M5+f23/N/cq7+/7GYsYNCUMKySpOcZ6+wC7 CcWET1KaQYWhiu29Ng03d54XAuKG3sOPp+wQA1us8Wv6rkGnCWpVvUY5wWWE+/dt Qk9fhdIGgScPf60KBcwxefcoVZxrm/VH2p4oXf+oo413Q=; Received: (qmail 9900 invoked by alias); 23 Feb 2012 18:53:59 -0000 Received: (qmail 9887 invoked by uid 22791); 23 Feb 2012 18:53:58 -0000 X-SWARE-Spam-Status: No, hits=-6.5 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_HI, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 23 Feb 2012 18:53:41 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q1NIreVH009167 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 23 Feb 2012 13:53:40 -0500 Received: from toll.yyz.redhat.com (unused [10.15.16.165] (may be forged)) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q1NIrefC001085 for ; Thu, 23 Feb 2012 13:53:40 -0500 Message-ID: <4F468B33.4080604@redhat.com> Date: Thu, 23 Feb 2012 13:53:39 -0500 From: Vladimir Makarov User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16 MIME-Version: 1.0 To: gcc-patches Subject: [lra] a patch to fix a testsuite regression on SPARC. 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 The following patch fixes a few SPARC GCC testsuite regressions. The patch was successfully bootstrapped on x86/x86-64. Committed as rev. 184512. 2012-02-23 Vladimir Makarov * lra-eliminations.c (update_reg_eliminate): Make hard register unallocatable when we make it a result of the elimination. Index: lra-eliminations.c =================================================================== --- lra-eliminations.c (revision 184177) +++ lra-eliminations.c (working copy) @@ -1103,6 +1103,9 @@ update_reg_eliminate (bitmap insns_with_ if (lra_dump_file != NULL) fprintf (lra_dump_file, " Using elimination %d to %d now\n", ep1->from, ep1->to); + /* Prevent the hard register into which we eliminate now + from the usage for pseudos. */ + SET_HARD_REG_BIT (temp_hard_reg_set, ep1->to); gcc_assert (ep1->previous_offset == 0); ep1->previous_offset = ep->offset; }