rs6000: Remove -mpower10 option (PR95907)

The only way to enable or disable Power10 insns (ISA 3.1 insns) should
be via the -mcpu= switch.  This patch disables the -mpower10 options the
same way the -mdirect-move switch is neutered already.  That is not an
ideal way, but it works, it is not the first, and doing it properly is
more work, and will happen later.

2020-07-24  Segher Boessenkool  <segher@kernel.crashing.org>

	* config/rs6000/rs6000.opt: Delete -mpower10.

gcc/testsuite/
	* gcc.target/powerpc/pr95907.c: New.
This commit is contained in:
Segher Boessenkool 2020-07-24 23:12:08 +00:00
parent f8f3a0102c
commit 4e57791005
2 changed files with 8 additions and 2 deletions

View File

@ -568,8 +568,7 @@ mspeculate-indirect-jumps
Target Undocumented Var(rs6000_speculate_indirect_jumps) Init(1) Save
mpower10
Target Report Mask(POWER10) Var(rs6000_isa_flags)
Use instructions added in ISA 3.1.
Target Undocumented Mask(POWER10) Var(rs6000_isa_flags) WarnRemoved
mprefixed
Target Report Mask(PREFIXED) Var(rs6000_isa_flags)

View File

@ -0,0 +1,7 @@
/* PR target/95907 */
/* { dg-do compile } */
/* { dg-require-effective-target power10_ok } */
/* { dg-options "-mpower10" } */
/* { dg-warning "switch .-mpower10. is no longer supported" "" {target *-*-*} 0 } */
void f(void) { }