x86: Disable jump tables when retpolines are used (PR target/86952).
authorMartin Liska <mliska@suse.cz>
Fri, 8 Mar 2019 12:55:40 +0000 (13:55 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 8 Mar 2019 12:55:40 +0000 (12:55 +0000)
commitf62d3527db908646a518b1c1412210a3ae645d73
tree16e103fca2fc710abd5a1175fc1eb25d30a96576
parent37555926fe70c828675b5d3e165cb291b283a978
x86: Disable jump tables when retpolines are used (PR target/86952).

2019-03-08  Martin Liska  <mliska@suse.cz>

PR target/86952
* config/i386/i386.c (ix86_option_override_internal): Disable
jump tables when retpolines are used.
2019-03-08  Martin Liska  <mliska@suse.cz>

PR target/86952
* gcc.target/i386/pr86952.c: New test.
* gcc.target/i386/indirect-thunk-7.c: Use jump tables to match
scanned pattern.
* gcc.target/i386/indirect-thunk-inline-7.c: Likewise.

From-SVN: r269492
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/indirect-thunk-7.c
gcc/testsuite/gcc.target/i386/indirect-thunk-inline-7.c
gcc/testsuite/gcc.target/i386/pr86952.c [new file with mode: 0644]