* cgraph.h (varpool_can_remove_if_no_refs): Fix handling of
used symbols.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@188982
138bc75d-0d04-0410-961f-
82ee72b054a4
+2012-06-26 Jan Hubicka <jh@suse.cz>
+
+ PR lto/53572
+ * cgraph.h (varpool_can_remove_if_no_refs): Fix handling of
+ used symbols.
+
2012-06-26 Dehao Chen <dehao@google.com>
* tree-inline.c: (expand_call_inline): Ensure that lexical block's
if (DECL_EXTERNAL (node->symbol.decl))
return true;
return (!node->symbol.force_output && !node->symbol.used_from_other_partition
- && (DECL_COMDAT (node->symbol.decl)
+ && ((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)));
}