https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108673
Christian Franke <franke at computer dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |franke at computer dot org --- Comment #1 from Christian Franke <franke at computer dot org> --- 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.