https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86437
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I tried "-Ofast -fmax-stack-var-size=2096" and I get: _38 = __builtin_malloc (8480000); Without the max-stack-var-size option, I get: real(kind=8) A.22[1060000]; Even with " -fmax-stack-var-size=2096 -Ofast"