[Bug c/83324] [feature request] Pragma or special syntax for guaranteed tail calls
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 18 04:27:05 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83324
--- Comment #15 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andi Kleen <ak@gcc.gnu.org>:
https://gcc.gnu.org/g:a6502accf381358173b19e615fdeb0aa17949c93
commit r15-2122-ga6502accf381358173b19e615fdeb0aa17949c93
Author: Andi Kleen <ak@linux.intel.com>
Date: Tue Jan 23 23:42:08 2024 -0800
Improve must tail in RTL backend
- Give error messages for all causes of non sibling call generation
- When giving error messages clear the musttail flag to avoid ICEs
- Error out when tree-tailcall failed to mark a must-tail call
sibcall. In this case it doesn't know the true reason and only gives
a vague message.
gcc/ChangeLog:
PR c/83324
* calls.cc (maybe_complain_about_tail_call): Clear must tail
flag on error.
(expand_call): Give error messages for all musttail failures.
More information about the Gcc-bugs
mailing list