Fix multi-versioning issues (PR ipa/80732).
commitd3cd4493429406f86b6100b967394b7f4c004924
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Jun 2017 13:12:51 +0000 (19 13:12 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Jun 2017 13:12:51 +0000 (19 13:12 +0000)
tree1537ccd22e6aad4a626a95a0ef356332c810e7a1
parent98a7cbc8b2390537bef1f325163d636b93bd3e54
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249365 138bc75d-0d04-0410-961f-82ee72b054a4
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]