https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68065
--- Comment #24 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- > Stack overflow is undefined with GCC, but MSVC++ and Clang on Windows > guarantee that it will be caught if the program doesn't invoke any truly > undefined behavior. Just as GCC on Windows... > The implementation of -fstack-check in GCC does have significant overhead, > but it doesn't have to be that way. It shouldn't go out of the way to > provide a proper stack trace with -O2/-O3 (or whatever other reasons it has > for the slow implementation). Figures please, otherwise that's just FUD as usual.