Re: [PATCH] Fortran OpenMP 4.0 support, part 1

2014-05-10 Thread Tobias Burnus
Tobias Burnus wrote: ! Use a lower bound which is not "1" ! For some reasons, the following does not align the memory! !ptr(-5:) => array2(lbound(array2,dim=1)+offset2 :) The reason is that it wrongly pointer-assigns the whole array, ignoring the specified offset. (It works with an expli

Re: [PATCH] Fortran OpenMP 4.0 support, part 1

2014-05-09 Thread Tobias Burnus
Jakub Jelinek wrpte: On Fri, May 09, 2014 at 09:35:03PM +0200, Tobias Burnus wrote: Fortran - as also C and C++ - does not provide much support for aligned memory. [Well, C++ has now alignas and align(ment_)of.] But contrary to C/C++, using library functions for dynamic allocation is more diff

Re: [PATCH] Fortran OpenMP 4.0 support, part 1

2014-05-09 Thread Jakub Jelinek
On Fri, May 09, 2014 at 09:35:03PM +0200, Tobias Burnus wrote: > >This patch attempts to implement first part of Fortran OpenMP 4.0 support, > >The testsuite coverage could certainly be improved, volunteers for that > >and/or bugreports will be certainly appreciated. Don't know how to actually > >

Re: [PATCH] Fortran OpenMP 4.0 support, part 1

2014-05-09 Thread Tobias Burnus
Hi! Jakub Jelinek wrote: This patch attempts to implement first part of Fortran OpenMP 4.0 support, The testsuite coverage could certainly be improved, volunteers for that and/or bugreports will be certainly appreciated. Don't know how to actually test aligned clauses, is there any way (except