https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117149
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Also the GCC you are using defaults to using -fstack-protector by default so it is not a bug in the normal releases of GCC. See https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/x86-Options.html#index-mstack-protector-guard-reg-3 also.