This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/81416] OpenMP craches if large arrays passed
- From: "bz0815 at tirol dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 13 Jul 2017 14:42:55 +0000
- Subject: [Bug fortran/81416] OpenMP craches if large arrays passed
- Auto-submitted: auto-generated
- References: <bug-81416-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81416
--- Comment #2 from bz0815 at tirol dot com ---
(In reply to Andrew Pinski from comment #1)
> Try increasing your stack limit. I suspect it is too low. With -fopenmp
> turned on causes arrays to be always stored on the stack .
Many thanks for the hint, Andrew. Increasing the stack limit by
-Wl,--stack,16777216 solves the issue. -fopenmp implies -frecursive and
-frecursive forces all local arrays to be allocated on the stack. But which
array is local? Possibly the dummy argument of subroutine Print_Info. Is
gfortran passing this array really by value although its intent is out?