diff options
author | Andrew Carlotti <andrew.carlotti@arm.com> | 2023-11-24 17:06:07 +0000 |
---|---|---|
committer | Andrew Carlotti <andrew.carlotti@arm.com> | 2023-12-16 00:38:40 +0000 |
commit | 8d30107455f2309854ced3d65fb07dc1f2c357c0 (patch) | |
tree | 62e7afee6c8d8980a9003dec74ebc7ff750cf91e /libgcc/enable-execute-stack-mprotect.c | |
parent | ea54b390aed306d10f79adf6ef4626ebeef901df (diff) | |
download | gcc-8d30107455f2309854ced3d65fb07dc1f2c357c0.zip gcc-8d30107455f2309854ced3d65fb07dc1f2c357c0.tar.gz gcc-8d30107455f2309854ced3d65fb07dc1f2c357c0.tar.bz2 |
aarch64: Fix +nocrypto handling
Additionally, replace all checks for the AARCH64_FL_CRYPTO bit with
checks for (AARCH64_FL_AES | AARCH64_FL_SHA2) instead. The value of the
AARCH64_FL_CRYPTO bit within isa_flags is now ignored, but it is
retained because removing it would make processing the data in
option-extensions.def significantly more complex.
This bug should have been picked up by an existing test, but a missing
newline meant that the pattern incorrectly allowed "+crypto+nocrypto".
gcc/ChangeLog:
* common/config/aarch64/aarch64-common.cc
(aarch64_get_extension_string_for_isa_flags): Fix generation of
the "+nocrypto" extension.
* config/aarch64/aarch64.h (AARCH64_ISA_CRYPTO): Remove.
(TARGET_CRYPTO): Remove.
* config/aarch64/aarch64-c.cc (aarch64_update_cpp_builtins):
Don't use TARGET_CRYPTO.
gcc/testsuite/ChangeLog:
* gcc.target/aarch64/options_set_4.c: Add terminating newline.
* gcc.target/aarch64/options_set_27.c: New test.
Diffstat (limited to 'libgcc/enable-execute-stack-mprotect.c')
0 files changed, 0 insertions, 0 deletions