[PATCH 3/15] arm: Add option -mbranch-protection
authorAndrea Corallo <andrea.corallo@arm.com>
Mon, 6 Dec 2021 10:39:03 +0000 (11:39 +0100)
committerAndrea Corallo <andrea.corallo@arm.com>
Mon, 23 Jan 2023 10:22:02 +0000 (11:22 +0100)
commit14fab5fb9aa6432ca59fb02b7b82ac17093f4de2
treedc159627475e0243d89b300a265b9b7a23f112db
parentc91bb7b9fc87284f5382d9fb04db0cb10f6c1fe9
[PATCH 3/15] arm: Add option -mbranch-protection

Add -mbranch-protection option.  This option enables the
code-generation of pointer signing and authentication instructions in
function prologues and epilogues.

gcc/ChangeLog:

* config/arm/arm.cc (arm_configure_build_target): Parse and validate
-mbranch-protection option and initialize appropriate data structures.
* config/arm/arm.opt (-mbranch-protection): New option.
* doc/invoke.texi (Arm Options): Document it.

Co-Authored-By: Tejas Belagod <tbelagod@arm.com>
Co-Authored-By: Richard Earnshaw <Richard.Earnshaw@arm.com>
gcc/config/arm/arm.cc
gcc/config/arm/arm.opt
gcc/doc/invoke.texi