[Patch 4/7, Arm. GCC] Implement target feature macros for PACBTI.
Tejas Belagod
Tejas.Belagod@arm.com
Fri Oct 8 12:18:07 GMT 2021
Hi,
This patch implements target feature macros when PACBTI is
enabled through the -march option or -mbranch-protection.
Tested on arm-none-eabi. OK for trunk?
2021-10-04 Tejas Belagod <tbelagod@arm.com>
gcc/ChangeLog:
* config/arm/arm-c.c (arm_cpu_builtins): Define
__ARM_FEATURE_BTI_DEFAULT and __ARM_FEATURE_PAC_DEFAULT.
gcc/testsuite/ChangeLog:
* gcc.target/arm/acle/pacbti-m-predef-2.c: New test.
* gcc.target/arm/acle/pacbti-m-predef-4.c: New test.
* gcc.target/arm/acle/pacbti-m-predef-5.c: New test.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pacbti-tm.txt
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20211008/dee1b207/attachment.txt>
More information about the Gcc-patches
mailing list