]> gcc.gnu.org Git - gcc.git/commit
aarch64: Fix return_address_sign_ab_exception.C regression
authorAndrea Corallo <andrea.corallo@arm.com>
Thu, 2 Feb 2023 16:25:05 +0000 (17:25 +0100)
committerAndrea Corallo <andrea.corallo@arm.com>
Wed, 8 Feb 2023 13:45:13 +0000 (14:45 +0100)
commitb1d2645883936093f0fdb885d53cca67cb193adf
tree55160bc59ee0a419b3761f9ab33584795265dd75
parent3d451c4228cc80c5ec3c4601118a1cf7a6f3d231
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.
gcc/config/aarch64/aarch64-protos.h
gcc/config/aarch64/aarch64.cc
gcc/config/aarch64/aarch64.opt
gcc/config/arm/aarch-common.cc
gcc/config/arm/arm-protos.h
gcc/config/arm/arm.cc
gcc/config/arm/arm.opt
This page took 0.065677 seconds and 6 git commands to generate.