Make redirection only for target_clones: V3 (PR ipa/85329).
authorMartin Liska <mliska@suse.cz>
Tue, 17 Apr 2018 05:40:39 +0000 (07:40 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 17 Apr 2018 05:40:39 +0000 (05:40 +0000)
commit646cf2527541fb8928deee0d7eda9ca75a591328
tree90085775e60ac8e9e866e3202e20f96c3a272e8a
parent42c884b130825022f3ff3621b6393eefa4cf36f6
Make redirection only for target_clones: V3 (PR ipa/85329).

2018-04-17  Martin Liska  <mliska@suse.cz>

PR ipa/85329
* multiple_target.c (create_dispatcher_calls): Set apostrophes
for target_clone error message.  Make default implementation
        clone to be a local declaration.
(separate_attrs): Add new argument and check for an empty
string.
(expand_target_clones): Handle it.
(ipa_target_clone): Make redirection just for target_clones
functions.
2018-04-17  Martin Liska  <mliska@suse.cz>

PR ipa/85329
* g++.dg/ext/pr85329-2.C: New test.
* g++.dg/ext/pr85329.C: New test.
* gcc.target/i386/mvc12.c: New test.

From-SVN: r259428
gcc/ChangeLog
gcc/multiple_target.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/pr85329-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/pr85329.C [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/mvc12.c [new file with mode: 0644]