-
- Downloads
[PATCH 5/15] arm: Implement target feature macros for PACBTI
This patch implements target feature macros when PACBTI is enabled through the -march option or -mbranch-protection. The target feature macros __ARM_FEATURE_PAC_DEFAULT and __ARM_FEATURE_BTI_DEFAULT are specified in ARM ACLE <https://developer.arm.com/documentation/101028/0012/5--Feature-test-macros?lang=en> __ARM_FEATURE_PAUTH and __ARM_FEATURE_BTI are specified in the pull-request <https://github.com/ARM-software/acle/pull/55>. Approved here <https://gcc.gnu.org/pipermail/gcc-patches/2021-December/586334.html >. gcc/ * config/arm/arm-c.cc (arm_cpu_builtins): Define __ARM_FEATURE_BTI_DEFAULT, __ARM_FEATURE_PAC_DEFAULT, __ARM_FEATURE_PAUTH and __ARM_FEATURE_BTI. gcc/testsuite/ * lib/target-supports.exp (check_effective_target_mbranch_protection_ok): New function. * gcc.target/arm/acle/pacbti-m-predef-2.c: New test. * gcc.target/arm/acle/pacbti-m-predef-4.c: Likewise. * gcc.target/arm/acle/pacbti-m-predef-5.c: Likewise. * gcc.target/arm/acle/pacbti-m-predef-8.c: Likewise. * gcc.target/arm/acle/pacbti-m-predef-9.c: Likewise. * gcc.target/arm/acle/pacbti-m-predef-10.c: Likewise. * gcc.target/arm/acle/pacbti-m-predef-11.c: Likewise. * gcc.target/arm/acle/pacbti-m-predef-12.c: Likewise. Co-Authored-By:Tejas Belagod <tbelagod@arm.com>
Showing
- gcc/config/arm/arm-c.cc 18 additions, 0 deletionsgcc/config/arm/arm-c.cc
- gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-10.c 11 additions, 0 deletionsgcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-10.c
- gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-11.c 11 additions, 0 deletionsgcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-11.c
- gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-12.c 11 additions, 0 deletionsgcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-12.c
- gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-2.c 24 additions, 0 deletionsgcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-2.c
- gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-4.c 20 additions, 0 deletionsgcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-4.c
- gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-5.c 25 additions, 0 deletionsgcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-5.c
- gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-8.c 12 additions, 0 deletionsgcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-8.c
- gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-9.c 11 additions, 0 deletionsgcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-9.c
- gcc/testsuite/lib/target-supports.exp 10 additions, 0 deletionsgcc/testsuite/lib/target-supports.exp
Loading
Please register or sign in to comment