Andi Kleen writes:
I wanted to ping this patch kit to add musttail support for C/C++,
to enable future python versions and other users and keep up with clang.
https://gcc.gnu.org/pipermail/gcc-patches/2024-June/thread.html#655447
It unfortunately touches various different parts of the compiler
- Fix problems with encoding musttail in tree structure (Thanks Jakub and Jason)
- Fixes a miscompilation that would break bootstrap with
--enable-checking=release
- Avoids a 0.8% compile time penalty at -O0 for the new musttail pass by using
a cfun flag
that is discovered by tree-cfg
- Enables t
This version fixes C++ template propagation of musttail, avoids ICEs for
ARM (and probably some other targets) generation of -O0 tail calls,
and improves the error messages in tree-musttail again, as well as
the documentation.
I bootstrapped/tested it on x86_64-linux, and checked the musttail test
Fixed all earlier review comments.