Provide extension hint for aarch64 target (PR driver/83193).
authorMartin Liska <mliska@suse.cz>
Wed, 31 Oct 2018 14:46:17 +0000 (15:46 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 31 Oct 2018 14:46:17 +0000 (14:46 +0000)
commitc788734738f1afd93b5b78c0e22e013e9c9720eb
treef8dde731c2ee6e256337d534c545f2fa7823bb00
parentff65e98035f39bbd577fd50ccafa7743d4ac42a5
Provide extension hint for aarch64 target (PR driver/83193).

2018-10-31  Martin Liska  <mliska@suse.cz>

PR driver/83193
* common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
Add new argument invalid_extension.
(aarch64_get_all_extension_candidates): New function.
(aarch64_rewrite_selected_cpu): Add NULL to function call.
* config/aarch64/aarch64-protos.h (aarch64_parse_extension): Add
new argument.
(aarch64_get_all_extension_candidates): New function.
* config/aarch64/aarch64.c (aarch64_parse_arch): Add new
argument invalid_extension.
(aarch64_parse_cpu): Likewise.
(aarch64_print_hint_for_extensions): New function.
(aarch64_validate_mcpu): Provide hint about invalid extension.
(aarch64_validate_march): Likewise.
(aarch64_handle_attr_arch): Pass new argument.
(aarch64_handle_attr_cpu): Provide hint about invalid extension.
(aarch64_handle_attr_isa_flags): Likewise.
2018-10-31  Martin Liska  <mliska@suse.cz>

PR driver/83193
* gcc.target/aarch64/spellcheck_7.c: New test.
* gcc.target/aarch64/spellcheck_8.c: New test.
* gcc.target/aarch64/spellcheck_9.c: New test.

From-SVN: r265686
gcc/ChangeLog
gcc/common/config/aarch64/aarch64-common.c
gcc/config/aarch64/aarch64-protos.h
gcc/config/aarch64/aarch64.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/spellcheck_7.c [new file with mode: 0644]
gcc/testsuite/gcc.target/aarch64/spellcheck_8.c [new file with mode: 0644]
gcc/testsuite/gcc.target/aarch64/spellcheck_9.c [new file with mode: 0644]