diff options
author | Michael Meissner <meissner@linux.vnet.ibm.com> | 2017-06-23 18:08:31 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 2017-06-23 18:08:31 +0000 |
commit | 9761349c768b0ea3fc12d2b36bb04ceb2d3aff8b (patch) | |
tree | 66359d136a855d9d72f0e7b74d4bc30cc4a2a2d6 /gcc | |
parent | aa9ace3e6fd3e0e879f4f24adf8befbc3ed1e1b5 (diff) | |
download | gcc-9761349c768b0ea3fc12d2b36bb04ceb2d3aff8b.zip gcc-9761349c768b0ea3fc12d2b36bb04ceb2d3aff8b.tar.gz gcc-9761349c768b0ea3fc12d2b36bb04ceb2d3aff8b.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/multiple_target.c | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ff2c723..3e43b44 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +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> PR middle-end/80902 diff --git a/gcc/multiple_target.c b/gcc/multiple_target.c index bdb5b3b..38d6892 100644 --- a/gcc/multiple_target.c +++ b/gcc/multiple_target.c @@ -64,7 +64,8 @@ create_dispatcher_calls (struct cgraph_node *node) { ipa_ref *ref; - if (!DECL_FUNCTION_VERSIONED (node->decl)) + if (!DECL_FUNCTION_VERSIONED (node->decl) + || !is_function_default_version (node->decl)) return; auto_vec<cgraph_edge *> edges_to_redirect; |