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