From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4077 invoked by alias); 11 Apr 2011 19:23:49 -0000 Received: (qmail 4068 invoked by uid 22791); 11 Apr 2011 19:23:48 -0000 X-SWARE-Spam-Status: No, hits=-6.3 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; Mon, 11 Apr 2011 19:23:40 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p3BJNega011439 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 11 Apr 2011 15:23:40 -0400 Received: from toll.yyz.redhat.com (toll.yyz.redhat.com [10.15.16.165]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p3BJNdew012360 for ; Mon, 11 Apr 2011 15:23:40 -0400 Message-ID: <4DA3553B.2020807@redhat.com> Date: Mon, 11 Apr 2011 19:23:00 -0000 From: Vladimir Makarov User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Thunderbird/3.1.9 MIME-Version: 1.0 To: gcc-patches Subject: patch PR48464 Content-Type: multipart/mixed; boundary="------------080807020502040809080003" X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-04/txt/msg00786.txt.bz2 This is a multi-part message in MIME format. --------------080807020502040809080003 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 404 The following patch fixes PR48464. The description of the problem can be found on http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48464 Committed as obvious after successful bootstrap on x86-64. 2011-04-11 Vladimir Makarov PR middle-end/48464 * ira.c (setup_pressure_classes): Fix typo in loop condition. (setup_allocno_and_important_classes): Ditto. --------------080807020502040809080003 Content-Type: text/plain; name="pr48464.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="pr48464.patch" Content-length: 950 Index: ira.c =================================================================== --- ira.c (revision 172273) +++ ira.c (working copy) @@ -863,7 +863,7 @@ setup_pressure_classes (void) registers available for the allocation. */ CLEAR_HARD_REG_SET (temp_hard_regset); CLEAR_HARD_REG_SET (temp_hard_regset2); - for (cl = 0; cl <= LIM_REG_CLASSES; cl++) + for (cl = 0; cl < LIM_REG_CLASSES; cl++) { for (i = 0; i < n; i++) if ((int) pressure_classes[i] == cl) @@ -923,7 +923,7 @@ setup_allocno_and_important_classes (voi /* Collect classes which contain unique sets of allocatable hard registers. Prefer GENERAL_REGS to other classes containing the same set of hard registers. */ - for (i = 0; i <= LIM_REG_CLASSES; i++) + for (i = 0; i < LIM_REG_CLASSES; i++) { COPY_HARD_REG_SET (temp_hard_regset, reg_class_contents[i]); AND_COMPL_HARD_REG_SET (temp_hard_regset, no_unit_alloc_regs); --------------080807020502040809080003--