[Bug target/90458] mingw64: ICE in i386_pe_seh_unwind_emit, at config/i386/winnt.c:1258 with -fstack-clash-protection
ebotcazou at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 9 08:22:40 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90458
--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> In general on x86 the compiler handles stack allocation (and probing when
> stack clash protection is enabled). However, on Windows targets that stuff
> is actually handled by calls to __chkstk_ms.
>
> One could easily argue that stack-clash-protection should be a NOP or
> generate an error in a Windows environment.
Right, Windows has been doing stack clash protection since day #1, like for
example Tru64, so the option should just be a NOP on Windows.
More information about the Gcc-bugs
mailing list