This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Dealing with default recursive procedures in Fortran


Hi,

On Thu, 12 Apr 2018, Thomas König wrote:

> with Fortran 2018, recursive is becoming the default. This will likely
> have a serious impact on many user codes, which often declare large
> arrays which could then overflow stacks, leading to segfaults without
> further explanation.

-fopenmp already implies max-stack-var-size=-1 (as -fautomatic is 
default).  Same with -Ofast which enables -fstack-arrays (which 
effectively ignores max-stack-var-size for some arrays).  So maybe the 
impact in the real world won't be large?


Ciao,
Michael.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]