[Bug fortran/39945] -fopenmp causes runtime crash on assigning reasonably large array

2009-04-28 Thread KnowlesPJ at Cardiff dot ac dot uk
--- Comment #1 from KnowlesPJ at Cardiff dot ac dot uk 2009-04-28 14:30 --- Created an attachment (id=17774) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17774action=view) sample source code -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39945

[Bug fortran/39945] -fopenmp causes runtime crash on assigning reasonably large array

2009-04-28 Thread KnowlesPJ at Cardiff dot ac dot uk
--- Comment #2 from KnowlesPJ at Cardiff dot ac dot uk 2009-04-28 14:32 --- $ gfortran -v Using built-in specs. Target: i386-apple-darwin9.2.2 Configured with: ../configure --prefix=/opt/gcc --with-languages=c,fortran Thread model: posix gcc version 4.4.0 20080424 (experimental) (GCC)

[Bug fortran/39945] -fopenmp causes runtime crash on assigning reasonably large array

2009-04-28 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2009-04-28 14:34 --- This is by design, large arrays usually have an implict SAVE on them, though with -fopenmp, they don't. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/39945] -fopenmp causes runtime crash on assigning reasonably large array

2009-04-28 Thread dominiq at lps dot ens dot fr
--- Comment #4 from dominiq at lps dot ens dot fr 2009-04-28 14:39 --- Works for me on powerpc-apple-darwin9 (OSX 10.5.6). What 'ulimit -a' reports for stack size? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39945

[Bug fortran/39945] -fopenmp causes runtime crash on assigning reasonably large array

2009-04-28 Thread KnowlesPJ at Cardiff dot ac dot uk
--- Comment #5 from KnowlesPJ at Cardiff dot ac dot uk 2009-04-28 14:53 --- O, now I see my stupidity, as for some reason ulimit -s is set to a pathetic 8192k. I am sorry to have troubled you folks with this. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39945

[Bug fortran/39945] -fopenmp causes runtime crash on assigning reasonably large array

2009-04-28 Thread dominiq at lps dot ens dot fr
--- Comment #6 from dominiq at lps dot ens dot fr 2009-04-28 15:19 --- On darwin I never found a way to increase the stack size above 65532kbytes, you may be interested to RTFM and specially: -fno-automatic Treat each program unit (except those marked as RECURSIVE) as if the SAVE