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:
parent
f8f3a0102c
commit
4e57791005
2 changed files with 8 additions and 2 deletions
|
@ -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)
|
||||
|
|
7
gcc/testsuite/gcc.target/powerpc/pr95907.c
Normal file
7
gcc/testsuite/gcc.target/powerpc/pr95907.c
Normal 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) { }
|
Loading…
Add table
Reference in a new issue