]> gcc.gnu.org Git - gcc.git/commit
aarch64: Give hint for -mcpu options that match -march instead
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Tue, 18 Apr 2023 11:15:35 +0000 (12:15 +0100)
committerKyrylo Tkachov <kyrylo.tkachov@arm.com>
Tue, 18 Apr 2023 11:15:35 +0000 (12:15 +0100)
commitebaec582ca1ee33269724bff945a16655e487ad5
treee67510c444dd16fd8ec50b641e1503a4741f1392
parent2d70f3213fe4e76722cd55e48f8eb0820c56ec7a
aarch64: Give hint for -mcpu options that match -march instead

We should redirect users of the erroneous -mcpu=armv8.2-a to use -march instead.
There is an equivalent hint for -march used with a CPU name.

Bootstrapped and tested on aarch64-none-linux-gnu.

gcc/ChangeLog:

* config/aarch64/aarch64.cc (aarch64_validate_mcpu): Add hint to use -march
if the argument matches that.

gcc/testsuite/ChangeLog:

* gcc.target/aarch64/spellcheck_11.c: New test.
gcc/config/aarch64/aarch64.cc
gcc/testsuite/gcc.target/aarch64/spellcheck_11.c [new file with mode: 0644]
This page took 0.060046 seconds and 5 git commands to generate.