From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24551 invoked by alias); 4 Jul 2012 11:17:29 -0000 Received: (qmail 24539 invoked by uid 22791); 4 Jul 2012 11:17:27 -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; Wed, 04 Jul 2012 11:17:15 +0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/53433] [4.8 Regression] ICE in int_mode_for_mode, at stor-layout.c:424 during lto-bootstrap Date: Wed, 04 Jul 2012 11:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: 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-07/txt/msg00436.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53433 --- Comment #24 from Richard Guenther 2012-07-04 11:16:20 UTC --- The hint in comment #5 together with your analysis points at the initializer in insn-output.c: const struct insn_data_d insn_data[] = { ... /* /space/rguenther/src/svn/trunk/gcc/config/i386/i386.md:16008 */ { "cmpstrnsi", #if HAVE_DESIGNATED_UNION_INITIALIZERS { 0 }, #else { 0, 0, 0 }, #endif (insn_gen_fn) gen_cmpstrnsi, &operand_data[5173], 5, 5, 0, 0, 0 }, and operand_data in static const struct insn_operand_data operand_data[] = { ... { 0, "", VOIDmode, 0, 0, 1, 0 }, { <--- should be this register_operand, "", SImode, 0, 0, 1, 0 }, { general_operand, "", BLKmode, 0, 0, 1, 1 }, so maybe there is an off-by-one error somewhere in constant folding from initializers?