From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28214 invoked by alias); 20 Dec 2011 14:47:55 -0000 Received: (qmail 28205 invoked by uid 22791); 20 Dec 2011 14:47:55 -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; Tue, 20 Dec 2011 14:47:40 +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: Tue, 20 Dec 2011 15:15: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: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned 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/msg02265.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51635 --- Comment #4 from Richard Guenther 2011-12-20 14:47:25 UTC --- Doesn't work. Instead testing a similar Index: gcc/lto/lto.c =================================================================== --- gcc/lto/lto.c (revision 182525) +++ gcc/lto/lto.c (working copy) @@ -845,6 +845,14 @@ uniquify_nodes (struct data_in *data_in, if (ix < i) lto_fixup_types (f2); streamer_tree_cache_insert_at (cache, f1, ix); + /* Make sure that the type of a TYPE_DECL refers + to the type decl that prevails in the prevailing + record or union type. */ + if (TREE_CODE (f1) == TYPE_DECL) + { + tree f1t = gimple_register_type (TREE_TYPE (f1)); + TYPE_NAME (f1t) = f1; + } } }