diff options
author | Martin Liska <mliska@suse.cz> | 2017-03-14 13:05:29 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2017-03-14 12:05:29 +0000 |
commit | 546eb36c7e0ba37974489280059ca14166f07c26 (patch) | |
tree | f9a0154ba1d0910dca7a75d2c48af9616c7c1346 /gcc/multiple_target.c | |
parent | 861d9d5e6a67624e8e3c9d1cff013762a513b43f (diff) |
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
Diffstat (limited to 'gcc/multiple_target.c')
-rw-r--r-- | gcc/multiple_target.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/multiple_target.c b/gcc/multiple_target.c index 4a835bbcc17..427c655c8ae 100644 --- a/gcc/multiple_target.c +++ b/gcc/multiple_target.c @@ -68,6 +68,13 @@ create_dispatcher_calls (struct cgraph_node *node) " supported by this target"); 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; idecl = targetm.get_function_versions_dispatcher (decl); if (!idecl) |