https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111165
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- > (which makes me think of register corruption occurring here) >The codepath is a bit convoluted, setjmp/longjmp are involved. Which could mean it is a bug in dietlibc's setjmp/longjmp since you said it works with glibc.