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: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 14 Jul 2017 08:39:31 +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
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Note the array is never allocated on the heap, it is either on the stack, or
(e.g. without -frecursive/-fopenmp) it can be in allocated .bss or if
initialized in .data section. For heap allocations you need to use dynamic
allocation (allocatable array or pointer and use ALLOCATE on that).