Fix multi-versioning issues (PR ipa/80732).
authorMartin Liska <mliska@suse.cz>
Mon, 19 Jun 2017 13:12:51 +0000 (15:12 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 19 Jun 2017 13:12:51 +0000 (13:12 +0000)
commit871cc215f7507cbe9ed4b1a5a9fd884deb65c18a
tree1537ccd22e6aad4a626a95a0ef356332c810e7a1
parent431abe69f1c4ba0b4b05609f2f4f9206cc6e041a
Fix multi-versioning issues (PR ipa/80732).

2017-06-19  Martin Liska  <mliska@suse.cz>

PR ipa/80732
* attribs.c (make_dispatcher_decl): Do not append '.ifunc'
to dispatcher function name.
* multiple_target.c (replace_function_decl): New function.
(create_dispatcher_calls): Redirect both edges and references.
2017-06-19  Martin Liska  <mliska@suse.cz>

PR ipa/80732
* gcc.target/i386/mvc5.c: Scan indirect_function.
* gcc.target/i386/mvc7.c: Likewise.
* gcc.target/i386/pr80732.c: New test.

From-SVN: r249365
gcc/ChangeLog
gcc/attribs.c
gcc/multiple_target.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/mvc5.c
gcc/testsuite/gcc.target/i386/mvc7.c
gcc/testsuite/gcc.target/i386/pr80732.c [new file with mode: 0644]