[Bug fortran/81416] OpenMP craches if large arrays passed

2017-07-14 Thread bz0815 at tirol dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81416 --- Comment #4 from bz0815 at tirol dot com --- (In reply to Andrew Pinski from comment #3) > > DOUBLE PRECISION,DIMENSION(n) :: b > > This array is on the stack. So DOUBLE PRECISION,DIMENSION(n) :: b is put on the stack if it

[Bug fortran/81416] OpenMP craches if large arrays passed

2017-07-13 Thread bz0815 at tirol dot com
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 than

[Bug fortran/81416] New: OpenMP craches if large arrays passed

2017-07-12 Thread bz0815 at tirol dot com
Assignee: unassigned at gcc dot gnu.org Reporter: bz0815 at tirol dot com Target Milestone: --- gfortran crashes if OpenMP is activated and large arrays are passed: $ cat mod.f08 MODULE Mod USE OMP_LIB IMPLICIT NONE CONTAINS SUBROUTINE Print_Info(b) DOUBLE PRECISION