On 11/01/2023 09:58, Andrea Corallo via Gcc-patches wrote:
Richard Earnshaw <richard.earns...@foss.arm.com> writes:
[...]
Otherwise ok with that change.
R.
Minor respin of this patch addressing the suggestion to have
'use_return_insn' return zero when PAC is enabled.
BR
Andrea
+ /* Never use a return instruction when return address signing
+ mechanism is enabled. */
+ if (arm_current_function_pac_enabled_p ())
+ return 0;
+
I can see what it does. It would be better to explain why it does: ie
that return address authentication needs more than one instruction.
OK with that change.