4 ms·
It looks to me like you can use -foptimize-sibling-calls to get it to happen on gcc below -O2. There's also https://github.com/pietro/gcc-musttail-plugin https
by mst 2y ago
It looks to me like you can use -foptimize-sibling-calls to get it to happen on gcc below -O2.
There's also https://github.com/pietro/gcc-musttail-plugin https://github.com/pietro/gcc-musttail-plugin to ensure it does happen (and clang has musttail support built in these days).
- mst 2y ago\o/ looks like that won't be needed much longer: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83324#c27 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83324#c27