This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug lto/53604] ld reports errors using lto after upgrading from gcc-4.6.2 to gcc-4.7.0


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]