[Patch 9/9, GCC, Arm] Implement arm Function target attribute 'branch-protection'.

Tejas Belagod Tejas.Belagod@arm.com
Fri Nov 12 11:23:27 GMT 2021


Hi,

This patch is part of the series of PACBTI-M patches posted earlier https://gcc.gnu.org/pipermail/gcc-patches/2021-October/582773.html

This change adds the target function attribute 'branch-protection'.  The
options that it can take are the same the command-line option
'mbranch-protection'.  The function attribute options override the command-
line options for the function scope.

Regression tested for arm-none-eabi. OK for trunk?

2021-11-11  Tejas Belagod  <tbelagod@arm.com>

gcc/ChangeLog:
	* config/arm/arm.c (arm_valid_target_attribute_rec): Add ARM function
	attribute 'branch-protection' and parse its options.
	* doc/extend.texi: Document ARM Function attribute 'branch-protection'.

gcc/testsuite/
	* gcc.target/arm/acle/pacbti-m-predef-7.c: New test.

Thanks,
Tejas.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: func_attr.txt
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20211112/3d4558d1/attachment.txt>


More information about the Gcc-patches mailing list