https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113780
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Richard Earnshaw <rearn...@gcc.gnu.org>: https://gcc.gnu.org/g:c56dc83e82af319d02a19f0703c301523ab1ef25 commit r13-9005-gc56dc83e82af319d02a19f0703c301523ab1ef25 Author: Tejas Belagod <tejas.bela...@arm.com> Date: Thu Jan 25 16:05:36 2024 +0530 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.bela...@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. (cherry picked from commit f436a2ab6ad15968275c9bbf3bd56647e5559e68)