From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25336 invoked by alias); 4 Dec 2012 23:25:00 -0000 Received: (qmail 24477 invoked by uid 48); 4 Dec 2012 23:24:42 -0000 From: "steven at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/55597] [4.8 Regression] internal compiler error: in plus_constant, at explow.c:88 Date: Tue, 04 Dec 2012 23:25: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-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: steven 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: 4.8.0 X-Bugzilla-Changed-Fields: CC Component 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-12/txt/msg00412.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55597 Steven Bosscher changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |steven at gcc dot gnu.org Component|middle-end |target --- Comment #3 from Steven Bosscher 2012-12-04 23:24:41 UTC --- Out of expand GCC produces: (insn 6 5 7 2 (set (reg:DI 61) (reg:DI 0 ax)) t.c:8 -1 (expr_list:REG_EQUAL (symbol_ref:SI ("__morestack_initial_sp") \ [flags 0x10] ) (nil))) (insn 7 6 8 2 (parallel [ (set (reg:DI 62) (plus:DI (reg:DI 61) (const_int 4 [0x4]))) (clobber (reg:CC 17 flags)) ]) t.c:8 -1 (nil)) In alias.c, the compiler tries to simplify r62=r61+4 to r62=symbol_ref:SI ("__morestack_initial_sp")+4 but plus_constant doesn't accept symbol_ref:SI ("__morestack_initial_sp") because it is is SImode but should be DImode. Back-end bug, I'm guessing something Pmode related.