Commit 9761349c by Michael Meissner Committed by Michael Meissner

re PR ipa/81185 (Target clones support generates awkward names)

2017-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR ipa/81185
	* multiple_target.c (create_dispatcher_calls): Only create the
	dispatcher call if the function is the default clone of a
	versioned function.

From-SVN: r249605
parent aa9ace3e
2017-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
PR ipa/81185
* multiple_target.c (create_dispatcher_calls): Only create the
dispatcher call if the function is the default clone of a
versioned function.
2017-06-23 Segher Boessenkool <segher@kernel.crashing.org> 2017-06-23 Segher Boessenkool <segher@kernel.crashing.org>
PR middle-end/80902 PR middle-end/80902
......
...@@ -64,7 +64,8 @@ create_dispatcher_calls (struct cgraph_node *node) ...@@ -64,7 +64,8 @@ create_dispatcher_calls (struct cgraph_node *node)
{ {
ipa_ref *ref; ipa_ref *ref;
if (!DECL_FUNCTION_VERSIONED (node->decl)) if (!DECL_FUNCTION_VERSIONED (node->decl)
|| !is_function_default_version (node->decl))
return; return;
auto_vec<cgraph_edge *> edges_to_redirect; auto_vec<cgraph_edge *> edges_to_redirect;
......
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