From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1632 invoked by alias); 21 Dec 2011 16:02:19 -0000 Received: (qmail 1620 invoked by uid 22791); 21 Dec 2011 16:02:17 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_BX,TW_IB 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, 21 Dec 2011 16:02:05 +0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/51635] [4.7 regression] ICE in in dwarf2out_finish, at dwarf2out.c:22494 when building Firefox's libxul Date: Wed, 21 Dec 2011 16:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.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: 2011-12/txt/msg02378.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51635 --- Comment #23 from Richard Guenther 2011-12-21 16:01:30 UTC --- Another fun (well ...) patch that is worth trying is Index: gcc/gimple.c =================================================================== --- gcc/gimple.c (revision 182590) +++ gcc/gimple.c (working copy) @@ -4488,16 +4488,7 @@ gimple_register_type_1 (tree t, bool reg tree gimple_register_type (tree t) { - gcc_assert (TYPE_P (t)); - - if (!gimple_type_leader) - gimple_type_leader = ggc_alloc_cleared_vec_gimple_type_leader_entry_s - (GIMPLE_TYPE_LEADER_SIZE); - - if (gimple_types == NULL) - gimple_types = htab_create_ggc (16381, gimple_type_hash, gimple_type_eq, 0); - - return gimple_register_type_1 (t, false); + return t; } /* The TYPE_CANONICAL merging machinery. It should closely resemble where you need to configure with --disable-werror (because of now unused functions in gimple.c). The above will simply disable all type merging and thus may in theory increase memory usage a lot (I think so more for ltrans stage than wpa stage, it also may increase ltrans file size a lot). It also probably increases the size of the emitted debug information.