re PR target/80098 (ICE in curr_insn_transform, at lra-constraints.c:3816 on ppc64le)
authorMichael Meissner <meissner@linux.vnet.ibm.com>
Fri, 14 Apr 2017 20:27:18 +0000 (20:27 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Fri, 14 Apr 2017 20:27:18 +0000 (20:27 +0000)
commit31a07c8102fa4a7e44118bdacda5f8577ca7218e
tree30ec7671b7e19070804b97a0954282e8f46f3c93
parent19b250c43ae355e88176310cf2be282bd381d6b3
re PR target/80098 (ICE in curr_insn_transform, at lra-constraints.c:3816 on ppc64le)

[gcc]
2017-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/80098
* config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
masks of options that should be turned off if the VSX vector
options are turned off.
(OTHER_P8_VECTOR_MASKS): Likewise.
(OTHER_VSX_VECTOR_MASKS): Likewise.
* config/rs6000/rs6000.c (rs6000_option_override_internal): Call
rs6000_disable_incompatible_switches to validate no type switches
like -mvsx.
(rs6000_incompatible_switch): New function to disallow turning on
other vector options if -mno-vsx, -mno-power8-vector, or
-mno-power9-vector are specified.

[gcc/testsuite]
2017-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/80098
* gcc.target/powerpc/pr80098-1.c: New test.
* gcc.target/powerpc/pr80098-2.c: Likewise.
* gcc.target/powerpc/pr80098-3.c: Likewise.
* gcc.target/powerpc/pr80098-4.c: Likewise.

From-SVN: r246930
gcc/ChangeLog
gcc/config/rs6000/rs6000-cpus.def
gcc/config/rs6000/rs6000.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/pr80098-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/pr80098-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/pr80098-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/pr80098-4.c [new file with mode: 0644]