[Bug target/108673] ICE with -fstack-clash-protection and noreturn attribute on x86_64-w64-mingw32
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108673 Eric Botcazou changed: What|Removed |Added CC||ebotcazou at gcc dot gnu.org --- Comment #5 from Eric Botcazou --- -fstack-clash-protection must simply not be used on Windows, as Windows has had builtin stack clash protection since the beginning.
[Bug target/108673] ICE with -fstack-clash-protection and noreturn attribute on x86_64-w64-mingw32
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108673 --- Comment #4 from Christian Franke --- I get similar results with x86_64-pc-cygwin-gcc (aka gcc) 11.3.0 and x86_64-w64-mingw32-gcc 11.3.0, both from current Cygwin distro and with x86_64-w64-mingw32-gcc (aka gcc) 12.2.0 from current MSYS2 distro.
[Bug target/108673] ICE with -fstack-clash-protection and noreturn attribute on x86_64-w64-mingw32
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108673 amy.mclaughlin at iar dot com changed: What|Removed |Added CC||amy.mclaughlin at iar dot com --- Comment #3 from amy.mclaughlin at iar dot com --- Regarding Comment 1, the bug in Cygwin's gcc (11.3.0) can't be worked around with `-fno-ipa-pure-const`. The workaround also fails for the msys2 msys build of gcc (also 11.3.0) but succeeds for the mingw64 build. So I suspect that the bug reproduced with x86_64-pc-cygwin-gcc may not be the same bug as the one in this report, despite the similar symptoms.
[Bug target/108673] ICE with -fstack-clash-protection and noreturn attribute on x86_64-w64-mingw32
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108673 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRMED |RESOLVED --- Comment #2 from Andrew Pinski --- Dup of bug 90458. *** This bug has been marked as a duplicate of bug 90458 ***
[Bug target/108673] ICE with -fstack-clash-protection and noreturn attribute on x86_64-w64-mingw32
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108673 Christian Franke changed: What|Removed |Added CC||franke at computer dot org --- Comment #1 from Christian Franke --- Could also be reproduced with x86_64-pc-cygwin-gcc 11.3.0 and x86_64-w64-mingw32-gcc 11.3.0 from current Cygwin distribution: $ gcc -O1 -fstack-clash-protection -S f.c during RTL pass: final x.c: In function ‘foo’: x.c:5:1: internal compiler error: in seh_emit_stackalloc, at config/i386/winnt.c:1056 5 | } | ^ ... The error does not occur if -fipa-pure-const ("Discover which functions are pure or constant") is disabled: $ gcc -O3 -fno-ipa-pure-const -fstack-clash-protection -S f.c; echo $? 0 Assembly output looks sane then.