This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Dealing with default recursive procedures in Fortran
- From: Michael Matz <matz at suse dot de>
- To: Thomas König <tk at tkoenig dot net>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, gcc mailing list <gcc at gcc dot gnu dot org>
- Date: Mon, 16 Apr 2018 17:26:28 +0000 (UTC)
- Subject: Re: Dealing with default recursive procedures in Fortran
- References: <ddf4af7f-cf61-45a6-9f54-bb523fa080ab@tkoenig.net>
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.