Commit 3d2e04fd by Jan Hubicka Committed by Jan Hubicka

re PR lto/53572 (Some public symbols don't get to serialized LTO)


	PR lto/53572
	* cgraph.h (varpool_can_remove_if_no_refs): Fix handling of
	used symbols.

From-SVN: r188982
parent 035775c8
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
......
......@@ -1126,7 +1126,8 @@ 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)
&& ((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)));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment