https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119188
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So reading https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Developer-Options.html#index-fstack-usage "The qualifier static means that the function manipulates the stack statically: a fixed number of bytes are allocated for the frame on function entry and released on function exit; no stack adjustments are otherwise made in the function. The second field is this fixed number of bytes. " It talks about allocated on the frame so the red zone is not taken into account due to that is "always" allocated.