re PR middle-end/84723 (ICE in create_target_clone, at multiple_target.c:275)
authorJakub Jelinek <jakub@redhat.com>
Wed, 7 Mar 2018 09:16:07 +0000 (10:16 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 7 Mar 2018 09:16:07 +0000 (10:16 +0100)
commit0f1de8d013d92e2996f6936ecb25b2561e48ca56
tree2db484bc4a8d437f58ff81f1b50abf3051bdeb07
parentd06202a0cb01ed4452b27a4bd9c5922510f85ada
re PR middle-end/84723 (ICE in create_target_clone, at multiple_target.c:275)

PR middle-end/84723
* multiple_target.c: Include tree-inline.h and intl.h.
(expand_target_clones): Diagnose and fail if node->definition and
!tree_versionable_function_p (node->decl).

* gcc.target/i386/pr84723-1.c: New test.
* gcc.target/i386/pr84723-2.c: New test.
* gcc.target/i386/pr84723-3.c: New test.
* gcc.target/i386/pr84723-4.c: New test.
* gcc.target/i386/pr84723-5.c: New test.

From-SVN: r258316
gcc/ChangeLog
gcc/multiple_target.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr84723-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr84723-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr84723-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr84723-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr84723-5.c [new file with mode: 0644]