[AArch64] Add spellchecking hints for -march,-mcpu,-mtune and their attributes
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Fri, 14 Oct 2016 08:40:04 +0000 (08:40 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Fri, 14 Oct 2016 08:40:04 +0000 (08:40 +0000)
commit01f440383c8758c7ecc80605cae98cc48c4ec335
treedad9dcb36963f42aac7ec8f3406c4e427ffdcfe8
parent4827fd102c725deb4e7335b266e3566d41213428
[AArch64] Add spellchecking hints for -march,-mcpu,-mtune and their attributes

* config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
New function.
(aarch64_print_hint_for_core): Likewise.
(aarch64_print_hint_for_arch): Likewise.
(aarch64_validate_march): Use it.  Fix indentation in type signature.
(aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
(aarch64_validate_mtune): Likewise.
(aarch64_handle_attr_arch): Likewise.
(aarch64_handle_attr_cpu): Likewise.
(aarch64_handle_attr_tune): Likewise.

* gcc.target/aarch64/spellcheck_1.c: New test.
* gcc.target/aarch64/spellcheck_2.c: Likewise.
* gcc.target/aarch64/spellcheck_3.c: Likewise.
* gcc.target/aarch64/spellcheck_4.c: Likewise.
* gcc.target/aarch64/spellcheck_5.c: Likewise.
* gcc.target/aarch64/spellcheck_6.c: Likewise.

From-SVN: r241149
gcc/ChangeLog
gcc/config/aarch64/aarch64.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/spellcheck_1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/aarch64/spellcheck_2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/aarch64/spellcheck_3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/aarch64/spellcheck_4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/aarch64/spellcheck_5.c [new file with mode: 0644]
gcc/testsuite/gcc.target/aarch64/spellcheck_6.c [new file with mode: 0644]