https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86437
--- Comment #3 from janus at gcc dot gnu.org --- (In reply to janus from comment #2) > (In reply to Dominique d'Humieres from comment #1) > > WORKSFORME. AFAIR -Ofast implies -fstack-arrays. > > Yeah, right, -fstack-arrays is the crucial flag here. Shouldn't -fmax-stack-var-size be a useful workaround then? Unfortunately neither of those seems to help: -fmax-stack-var-size=8192 -fmax-stack-var-size=4096 -fmax-stack-var-size=2048