From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16257 invoked by alias); 7 Jun 2012 17:14:29 -0000 Received: (qmail 16245 invoked by uid 22791); 7 Jun 2012 17:14:28 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED 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 Jun 2012 17:14:15 +0000 From: "paul.scruby at ghco dot co.uk" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/53604] ld reports errors using lto after upgrading from gcc-4.6.2 to gcc-4.7.0 Date: Thu, 07 Jun 2012 17:14: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: paul.scruby at ghco dot co.uk X-Bugzilla-Status: UNCONFIRMED 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 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-06/txt/msg00420.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53604 --- Comment #2 from Paul Scruby 2012-06-07 17:14:13 UTC --- The 4.7.0 code is different so the patch didn't work: 'struct varpool_node' has no member named 'symbol' I'm not familiar with the gcc internals so I'm not sure what I need to add to 4.7.0 to fix this? If this is the function in question, what do I need to add to fix this problem? static inline bool varpool_can_remove_if_no_refs (struct varpool_node *node) { return (!node->force_output && !node->used_from_other_partition && (flag_toplevel_reorder || DECL_COMDAT (node->decl) || DECL_ARTIFICIAL (node->decl)) && (DECL_COMDAT (node->decl) || !node->externally_visible)); } Thanks, Paul