https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81535
--- Comment #2 from Yury Gribov <ygribov at gcc dot gnu.org> --- Thanks for detailed report. For pr79439.c take a look at discussion in bug 56727 - the general agreement there was that it should be valid to replace recursive PLT calls with direct calls as long as function does not have aliases. GCC has already been doing such sort of optimization before. So perhaps we need to update test (by adding alias there)? pr56727-2.c is interesting, it does not repro on x86. I'll be back on Thursday and will take a look (hopefully it's not urgent?).