From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32200 invoked by alias); 20 Dec 2011 15:32:33 -0000 Received: (qmail 32190 invoked by uid 22791); 20 Dec 2011 15:32:33 -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 15:32:19 +0000 From: "markus at trippelsdorf dot de" 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:38: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: markus at trippelsdorf dot de 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/msg02268.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51635 --- Comment #5 from Markus Trippelsdorf 2011-12-20 15:31:47 UTC --- (In reply to comment #4) > 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; > + } > } > } This one is extremely slow. lto1 has already used 12min of CPU time when linking libxul and is still running... (3min is normal) "perf top" shows: 27.92% lto1 [.] lto_read_decls 14.79% lto1 [.] htab_find_slot_with_hash 9.37% lto1 [.] gimple_type_eq 6.39% libc-2.14.90.so [.] _int_malloc 5.60% [kernel] [k] 0xffffffff81037d72 4.80% lto1 [.] gtc_visit 3.68% libc-2.14.90.so [.] memset