From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9276 invoked by alias); 21 Feb 2014 08:39:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 9241 invoked by uid 48); 21 Feb 2014 08:39:09 -0000 From: "terry.guo at arm dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/60298] [ARM/Thumb1] ICE caused by LRA for case pr54713-1.c Date: Fri, 21 Feb 2014 08:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: terry.guo at arm dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-02/txt/msg02209.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60298 --- Comment #1 from Terry Guo --- I did a little investigation and think the issue may be related to following code from function remove_some_program_points_and_update_live_ranges: 782 max_regno = max_reg_num (); 783 for (i = FIRST_PSEUDO_REGISTER; i < (unsigned) max_regno; i++) 784 { 785 for (r = lra_reg_info[i].live_ranges; r != NULL; r = r->next) 786 { 787 lra_assert (r->start <= r->finish); 788 bitmap_set_bit (born, r->start); 789 bitmap_set_bit (dead, r->finish); 790 } 791 } The max_regno is 575, while the length of array lra_reg_info is just 568. When the loop index i is 568, the issue is triggered.