From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8030 invoked by alias); 10 Aug 2012 20:11:26 -0000 Received: (qmail 8012 invoked by uid 22791); 10 Aug 2012 20:11:24 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 10 Aug 2012 20:11:11 +0000 From: "sje at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/54128] GCC does not bootstrap on little endian mips due to mis-compare on tree-data-ref.c Date: Fri, 10 Aug 2012 20:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sje at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2012-08/txt/msg00624.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54128 --- Comment #6 from Steve Ellcey 2012-08-10 20:10:56 UTC --- It looks like the code generation is going different (between -g and no -g) during the IRA/reload phase. With the cut down test case and using -O2 -g the x.i.195r.reload file (for debug) contains: insn=71, live_throughout: 4, 5, 6, 7, 28, 29, 79, 209, dead_or_set: 2 Insn 71 is: (debug_insn 71 23 25 3 (var_location:SI D#1 (reg:SI 2 $2)) -1 (nil)) (debug_insn 25 71 85 3 (var_location:DI step_c (concatn/v:DI [ (debug_expr:SI D#1) (debug_expr:SI D#2) ])) x.i:55 -1 (nil)) but something about this is causing IRA to think that $2 is a used psuedo register that cannot be used for anything else so it uses $3 instead and that is where the debug and non-debug code differs.