From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19114 invoked by alias); 7 Jul 2011 09:51:28 -0000 Received: (qmail 19105 invoked by uid 22791); 7 Jul 2011 09:51:27 -0000 X-SWARE-Spam-Status: No, hits=-2.7 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; Thu, 07 Jul 2011 09:51:13 +0000 From: "amodra at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/49665] 'defined in discarded section' link failures on cpu2006 benchmarks X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amodra at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status AssignedTo 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 Date: Thu, 07 Jul 2011 09:51:00 -0000 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-07/txt/msg00487.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49665 Alan Modra changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW AssignedTo|amodra at gmail dot com |unassigned at gcc dot | |gnu.org --- Comment #2 from Alan Modra 2011-07-07 09:50:54 UTC --- So, looks like a gcc bug after all. There are four files with a certain group example.s: .section .text._ZN6soplex8SPxBasisD2Ev,"axG",@progbits,_ZN6soplex8SPxBasisD5Ev,comdat example.s: .section .text._ZN6soplex8SPxBasisD0Ev,"axG",@progbits,_ZN6soplex8SPxBasisD5Ev,comdat soplex.s: .section .text._ZN6soplex8SPxBasisD2Ev,"axG",@progbits,_ZN6soplex8SPxBasisD5Ev,comdat soplex.s: .section .text._ZN6soplex8SPxBasisD0Ev,"axG",@progbits,_ZN6soplex8SPxBasisD5Ev,comdat spxbasis.s: .section .text._ZN6soplex8SPxBasisD2Ev,"axG",@progbits,_ZN6soplex8SPxBasisD5Ev,comdat spxbasis.s: .section .text._ZN6soplex8SPxBasisD0Ev,"axG",@progbits,_ZN6soplex8SPxBasisD5Ev,comdat spxsolver.s: .section .text._ZN6soplex8SPxBasisD2Ev,"axG",@progbits,_ZN6soplex8SPxBasisD5Ev,comdat spxsolver.s: .section .text._ZN6soplex8SPxBasisD0Ev,"axG",@progbits,_ZN6soplex8SPxBasisD5Ev,comdat In each of these files this group contains two sections, with the code for _ZN6soplex8SPxBasisD0Ev and _ZN6soplex8SPxBasisD2Ev in them. In just one file, spsbasis.o, there is an alias for _ZN6soplex8SPxBasisD2Ev. .weak _ZN6soplex8SPxBasisD1Ev .set _ZN6soplex8SPxBasisD1Ev,_ZN6soplex8SPxBasisD2Ev When the group in spsbasis.o is dropped, _ZN6soplex8SPxBasisD1Ev has no proper definition.