Commit 546eb36c by Martin Liska Committed by Martin Liska

Verify that target can create a dispatcher call (PR target/79892).

2017-03-14  Martin Liska  <mliska@suse.cz>

	PR target/79892
	* multiple_target.c (create_dispatcher_calls): Check that
	a target can create a function dispatcher.

From-SVN: r246120
parent 861d9d5e
2017-03-14 Martin Liska <mliska@suse.cz> 2017-03-14 Martin Liska <mliska@suse.cz>
PR target/79892
* multiple_target.c (create_dispatcher_calls): Check that
a target can create a function dispatcher.
2017-03-14 Martin Liska <mliska@suse.cz>
PR lto/66295 PR lto/66295
* multiple_target.c (expand_target_clones): Drop local.local * multiple_target.c (expand_target_clones): Drop local.local
flag for default implementation. flag for default implementation.
......
...@@ -68,6 +68,13 @@ create_dispatcher_calls (struct cgraph_node *node) ...@@ -68,6 +68,13 @@ create_dispatcher_calls (struct cgraph_node *node)
" supported by this target"); " supported by this target");
break; break;
} }
else if (!targetm.get_function_versions_dispatcher)
{
error_at (gimple_location (call),
"target does not support function version dispatcher");
break;
}
e_next = e->next_caller; e_next = e->next_caller;
idecl = targetm.get_function_versions_dispatcher (decl); idecl = targetm.get_function_versions_dispatcher (decl);
if (!idecl) if (!idecl)
......
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