This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/53604] ld reports errors using lto after upgrading from gcc-4.6.2 to gcc-4.7.0
- From: "paul.scruby at ghco dot co.uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 07 Jun 2012 17:14:13 +0000
- Subject: [Bug lto/53604] ld reports errors using lto after upgrading from gcc-4.6.2 to gcc-4.7.0
- Auto-submitted: auto-generated
- References: <bug-53604-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53604
--- Comment #2 from Paul Scruby <paul.scruby at ghco dot co.uk> 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