From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25153 invoked by alias); 27 Jan 2012 23:23:33 -0000 Received: (qmail 25143 invoked by uid 22791); 27 Jan 2012 23:23:32 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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; Fri, 27 Jan 2012 23:23:19 +0000 From: "sandra at codesourcery dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/51910] [4.7 Regression] -frepo linking failure Date: Fri, 27 Jan 2012 23:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sandra at codesourcery dot com 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: 2012-01/txt/msg03227.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51910 --- Comment #15 from Sandra Loosemore 2012-01-27 23:22:45 UTC --- I've just dug around in the code a bit and I think we can fix this. I don't have a build tree to use for this set up at the moment, but roughly: the loop to attempt relinking after processing repo files is in do_tlink. Move the tlink_execute call at the bottom of the loop to the top and add --no-demangle. Add another tlink_execute call without --no-demangle after the end of the loop (but still in the "if (read_repo_files ..." condition). That means you'll do two extra link steps when processing repo files, but incurs no extra overhead in the normal case. I'll play with that over the weekend unless somebody points out that it's a dumb idea that won't work. :-P