diff options
author | Andrea Corallo <andrea.corallo@arm.com> | 2023-02-02 17:25:05 +0100 |
---|---|---|
committer | Andrea Corallo <andrea.corallo@arm.com> | 2023-02-08 14:45:13 +0100 |
commit | b1d2645883936093f0fdb885d53cca67cb193adf (patch) | |
tree | 55160bc59ee0a419b3761f9ab33584795265dd75 /gcc/config/aarch64/aarch64.opt | |
parent | 3d451c4228cc80c5ec3c4601118a1cf7a6f3d231 (diff) | |
download | gcc-b1d2645883936093f0fdb885d53cca67cb193adf.zip gcc-b1d2645883936093f0fdb885d53cca67cb193adf.tar.gz gcc-b1d2645883936093f0fdb885d53cca67cb193adf.tar.bz2 |
aarch64: Fix return_address_sign_ab_exception.C regression
Hi all,
this is to fix the regression of
g++.target/aarch64/return_address_sign_ab_exception.C that I
introduced with d8dadbc9a5199bf7bac1ab7376b0f84f45e94350.
'aarch_ra_sign_key' for aarch64 ended up being non defined in the opt
file and the function attribute "branch-protection=pac-ret+leaf+b-key"
stopped working as expected.
This patch moves the definition of 'aarch_ra_sign_key' to the opt
files for both Arm back-ends.
Regards
Andera Corallo
gcc/ChangeLog:
* config/aarch64/aarch64-protos.h (aarch_ra_sign_key): Remove
declaration.
* config/aarch64/aarch64.cc (aarch_ra_sign_key): Remove
definition.
* config/aarch64/aarch64.opt (aarch64_ra_sign_key): Rename
to 'aarch_ra_sign_key'.
* config/arm/aarch-common.cc (aarch_ra_sign_key): Remove
declaration.
* config/arm/arm-protos.h (aarch_ra_sign_key): Likewise.
* config/arm/arm.cc (enum aarch_key_type): Remove definition.
* config/arm/arm.opt: Define.
Diffstat (limited to 'gcc/config/aarch64/aarch64.opt')
-rw-r--r-- | gcc/config/aarch64/aarch64.opt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/aarch64/aarch64.opt b/gcc/config/aarch64/aarch64.opt index 137e506..1d7967d 100644 --- a/gcc/config/aarch64/aarch64.opt +++ b/gcc/config/aarch64/aarch64.opt @@ -40,7 +40,7 @@ TargetVariable unsigned aarch_enable_bti = 2 TargetVariable -enum aarch64_key_type aarch64_ra_sign_key = AARCH64_KEY_A +enum aarch_key_type aarch_ra_sign_key = AARCH_KEY_A ; The TLS dialect names to use with -mtls-dialect. |