From: meissner Date: Fri, 23 Jun 2017 18:08:31 +0000 (+0000) Subject: 2017-06-23 Michael Meissner X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a360bad748ce873947180b82e7f46ec4d330fc2b;p=thirdparty%2Fgcc.git 2017-06-23 Michael Meissner 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249605 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ff2c7238ee66..3e43b44dddba 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2017-06-23 Michael Meissner + + 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 PR middle-end/80902 diff --git a/gcc/multiple_target.c b/gcc/multiple_target.c index bdb5b3bf2281..38d6892af282 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 edges_to_redirect;