From patchwork Sat Oct 1 19:39:55 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 117278 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 1A1F0B6F76 for ; Sun, 2 Oct 2011 06:43:36 +1100 (EST) Received: (qmail 23595 invoked by alias); 1 Oct 2011 19:43:34 -0000 Received: (qmail 23583 invoked by uid 22791); 1 Oct 2011 19:43:33 -0000 X-SWARE-Spam-Status: No, hits=-1.9 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; Sat, 01 Oct 2011 19:43:19 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 865C1CB022B; Sat, 1 Oct 2011 21:43:19 +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 n3b+yhvfiGk5; Sat, 1 Oct 2011 21:43:09 +0200 (CEST) Received: from [192.168.1.2] (bon31-9-83-155-120-49.fbx.proxad.net [83.155.120.49]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 2AF96CB01F9; Sat, 1 Oct 2011 21:43:09 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: Fix typo in ira-color.c:assign_hard_reg Date: Sat, 1 Oct 2011 21:39:55 +0200 User-Agent: KMail/1.9.9 Cc: Iain Sandoe MIME-Version: 1.0 Message-Id: <201110012139.55297.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 Iain spotted a strange allocation pattern for an ACATS test on PowerPC/Darwin, which turned out to be caused by this typo. Tested on i586-suse-linux, applied on the mainline. 2011-10-01 Eric Botcazou * ira-color.c (assign_hard_reg): Fix typo. Index: gcc/ira-color.c =================================================================== --- gcc/ira-color.c (revision 179413) +++ gcc/ira-color.c (working copy) @@ -1769,7 +1769,7 @@ assign_hard_reg (ira_allocno_t a, bool r if (best_hard_regno >= 0) { for (i = hard_regno_nregs[best_hard_regno][mode] - 1; i >= 0; i--) - allocated_hardreg_p[best_hard_regno + 1] = true; + allocated_hardreg_p[best_hard_regno + i] = true; } ALLOCNO_HARD_REGNO (a) = best_hard_regno; ALLOCNO_ASSIGNED_P (a) = true;