Do not remove ifunc_resolver in LTO.

	PR lto/94659
	* cgraph.h (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
	Do not remove ifunc_resolvers in remove unreachable nodes in LTO.
parent f6955089
2020-04-27 Martin Liska <mliska@suse.cz>
PR lto/94659
* cgraph.h (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
Do not remove ifunc_resolvers in remove unreachable nodes in LTO.
2020-04-27 Xiong Hu Luo <luoxhu@linux.ibm.com> 2020-04-27 Xiong Hu Luo <luoxhu@linux.ibm.com>
PR target/91518 PR target/91518
......
...@@ -3162,7 +3162,7 @@ cgraph_node::can_remove_if_no_direct_calls_and_refs_p (void) ...@@ -3162,7 +3162,7 @@ cgraph_node::can_remove_if_no_direct_calls_and_refs_p (void)
return false; return false;
/* Only COMDAT functions can be removed if externally visible. */ /* Only COMDAT functions can be removed if externally visible. */
if (externally_visible if (externally_visible
&& (!DECL_COMDAT (decl) && ((!DECL_COMDAT (decl) || ifunc_resolver)
|| forced_by_abi || forced_by_abi
|| used_from_object_file_p ())) || used_from_object_file_p ()))
return false; return false;
......
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