From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16181 invoked by alias); 17 Jan 2011 15:12:52 -0000 Received: (qmail 16171 invoked by uid 22791); 17 Jan 2011 15:12:51 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_CP 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; Mon, 17 Jan 2011 15:12:47 +0000 From: "dave at hiauly1 dot hia.nrc.ca" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/47287] FAIL: gcc.c-torture/execute/builtins/20010124-1.c execution with -flto 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: dave at hiauly1 dot hia.nrc.ca X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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 Date: Mon, 17 Jan 2011 15:49: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-01/txt/msg01661.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47287 --- Comment #4 from dave at hiauly1 dot hia.nrc.ca 2011-01-17 15:12:38 UTC --- > I suppose you are using GNU ld, right? Yes (gold has not been ported). > On trunk x86_64 with stock binutils 2.21 I get > > > cat 20010124-1.res > 3 > 20010124-1.o 3 > 79 2651d4ed PREVAILING_DEF_IRONLY main_test > 85 2651d4ed RESOLVED_IR g > 110 2651d4ed RESOLVED_IR f > 20010124-1-lib.o 3 > 113 f6a75653 PREVAILING_DEF_IRONLY f > 127 f6a75653 PREVAILING_DEF_IRONLY g > 153 f6a75653 RESOLVED_IR inside_main > main.o 3 > 79 2cccb08f PREVAILING_DEF main > 85 2cccb08f RESOLVED_IR main_test > 88 2cccb08f PREVAILING_DEF_IRONLY inside_main > > thus, memcpy is also missing but at least main_test is correctly > used from 20010124-1.o. > > Thus - can you tell us your exact GNU ld version and maybe debug > what is the lto_symtab contents we generate (there is a lto-plugin/lto-symtab.c > program, not sure if it still works ...) It has been rebuilt a number of times recently. Last night's test run still shows the bug and it used: dave@gsyprf11:~/gcc-4.6/objdir$ ld --version GNU ld (GNU Binutils) 2.21.51.20110116 I tried to do a build without plugin support, but it seems there is a ld configure bug and plugin support can't be disabled. With older versions, I think plugin support had to be explicitly enabled (default was no). I'll try to debug the lto_symtab contents tonight. Dave