Local arrays of variable size are allocated

Alberto Luaces aluaces@udc.es
Wed Apr 13 20:52:00 GMT 2016


Dominique d'Humières writes:

>> Spot on, Dominique! -Ofast triggers "-fstack-arrays", which does exactly
>> what I need.
>
> Beware of pr68829.
>

Thanks!  Yes, I imagined that the default was overly-conservative in
order to avoid stack overflows.  I will be watching for that, even my
arrays are pretty small.  That was the reason why I had a big overhead
in small, frequent-called functions.

-- 
Alberto



More information about the Fortran mailing list