diff options
author | Tejas Belagod <tejas.belagod@arm.com> | 2024-01-25 16:05:36 +0530 |
---|---|---|
committer | Tejas Belagod <tejas.belagod@arm.com> | 2024-02-16 09:43:09 +0530 |
commit | f436a2ab6ad15968275c9bbf3bd56647e5559e68 (patch) | |
tree | ddd842cfff171f1085d29d6fdc415b85cc7ce5a5 /libcpp | |
parent | 5c30ecfa81cb64c8c5b52f561f54acf2d87d57ea (diff) | |
download | gcc-f436a2ab6ad15968275c9bbf3bd56647e5559e68.zip gcc-f436a2ab6ad15968275c9bbf3bd56647e5559e68.tar.gz gcc-f436a2ab6ad15968275c9bbf3bd56647e5559e68.tar.bz2 |
Arm: Fix incorrect tailcall-generation for indirect calls [PR113780]
This patch fixes a bug that causes indirect calls in PAC-enabled functions
to be tailcalled incorrectly when all argument registers R0-R3 are used.
2024-02-07 Tejas Belagod <tejas.belagod@arm.com>
PR target/113780
* config/arm/arm.cc (arm_function_ok_for_sibcall): Don't allow tailcalls
for indirect calls with 4 or more arguments in pac-enabled functions.
* lib/target-supports.exp (v8_1m_main_pacbti): Add __ARM_FEATURE_PAUTH.
* gcc.target/arm/pac-sibcall.c: New.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions