[Bug fortran/68829] [4.9/5/6 Regression] Segfaults with -Ofast due to large array on stack

Joost.VandeVondele at mat dot ethz.ch gcc-bugzilla@gcc.gnu.org
Sun Jan 10 18:59:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68829

Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Joost.VandeVondele at mat dot ethz
                   |                            |.ch

--- Comment #4 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> ---
(In reply to Thomas Koenig from comment #3)
> 
> It seems that -fmax-stack-var-size=N does not override -Ofast.  Maybe
> it should.
> 

Ah interesting, I wasn't aware that '-fmax-stack-var-size' existed, but indeed,
if -fstack-arrays would honour that flag, this problem would be fixed. That
would be a good solution from my point of view.


More information about the Gcc-bugs mailing list