http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53433
Uros Bizjak <ubizjak at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |53321 --- Comment #19 from Uros Bizjak <ubizjak at gmail dot com> 2012-07-03 18:21:59 UTC --- Updated patch: --cut here-- Index: gcc/cgraph.h =================================================================== --- gcc/cgraph.h (revision 189217) +++ gcc/cgraph.h (working copy) @@ -1123,13 +1123,12 @@ cgraph_only_called_directly_or_aliased_p (struct c static inline bool varpool_can_remove_if_no_refs (struct varpool_node *node) { - if (DECL_EXTERNAL (node->symbol.decl)) - return true; return (!node->symbol.force_output && !node->symbol.used_from_other_partition && ((DECL_COMDAT (node->symbol.decl) && !symtab_used_from_object_file_p ((symtab_node) node)) || !node->symbol.externally_visible - || DECL_HAS_VALUE_EXPR_P (node->symbol.decl))); + || DECL_HAS_VALUE_EXPR_P (node->symbol.decl) + || DECL_EXTERNAL (node->symbol.decl))); } /* Return true when all references to VNODE must be visible in ipa_ref_list. --cut here-- You will need patches from PR53321 to get up to this PR with current mainline.