https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97831 --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- In the case of glibc, the callee needs to be marked as not a tail callable and not the caller.