https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70214
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Actually it is not a glibc bug either: Note that leaf functions might invoke signals and signal handlers might be defined in the current compilation unit and use static variables. The only compliant way to write such a signal handler is to declare such variables volatile.