Re: [Patch, Fortran] Support allocatable *scalar* coarrays

2011-07-16 Thread Tobias Burnus
Mikael Morin wrote: On Saturday 16 July 2011 17:25:36 Tobias Burnus wrote: integer, save :: A[4:6, 7:*] is a scalar variable on each image, but it has a coarank of 2 with lcobound(A) == [4, 7] and ucobound(A, dim=1) == 7. ucobound(A, dim=1) == 6 ? Otherwise I'm even more confused. Sorry

Re: [Patch, Fortran] Support allocatable *scalar* coarrays

2011-07-16 Thread Daniel Carrera
On 07/16/2011 06:43 PM, Mikael Morin wrote: Well, the current implementation supports effectively only a single image - for -fcoarray=single on purpose and for -fcoarray=lib because it has not yet been implemented. Later, one has to add some function call for "scalar[]" while "scalar" itself is

Re: [Patch, Fortran] Support allocatable *scalar* coarrays

2011-07-16 Thread Mikael Morin
On Saturday 16 July 2011 17:25:36 Tobias Burnus wrote: > Mikael Morin wrote: > > let me understand one thing about coarray scalars: despite their name, > > they are arrays, right? > > Yes and no. In terms of the language, they are scalars - but they have a > codimension, e.g. > integer, save

Re: [Patch, Fortran] Support allocatable *scalar* coarrays

2011-07-16 Thread Steve Kargl
On Sat, Jul 16, 2011 at 05:25:36PM +0200, Tobias Burnus wrote: > > PS: I should document somewhere how coarrays are implemented internally. gcc/gcc4x/gcc/fortran/gfc-internals.texi :-) -- Steve

Re: [Patch, Fortran] Support allocatable *scalar* coarrays

2011-07-16 Thread Tobias Burnus
Mikael Morin wrote: let me understand one thing about coarray scalars: despite their name, they are arrays, right? Yes and no. In terms of the language, they are scalars - but they have a codimension, e.g. integer, save :: A[4:6, 7:*] is a scalar variable on each image, but it has a coara

Re: [Patch, Fortran] Support allocatable *scalar* coarrays

2011-07-16 Thread Mikael Morin
On Monday 11 July 2011 09:49:20 Tobias Burnus wrote: > On 07/10/2011 09:56 PM, Tobias Burnus wrote: > > This patch implemented the trans*.c part of allocatable scalar > > coarrays; contrary to noncoarray allocatable scalars, they have > > cobounds and thus use an array descriptor. > > I found a te

Re: *ping* - Re: [Patch, Fortran] Support allocatable *scalar* coarrays

2011-07-16 Thread Tobias Burnus
Sorry for pinging again, but the patch is large enough to block a bit my progress ... Other pending patches - which should be quickly reviewable:: - http://gcc.gnu.org/ml/fortran/2011-07/msg00170.html - http://gcc.gnu.org/ml/fortran/2011-07/msg00142.html Tobias Tobias Burnus wrote: *ping* htt

*ping* - Re: [Patch, Fortran] Support allocatable *scalar* coarrays

2011-07-14 Thread Tobias Burnus
*ping* http://gcc.gnu.org/ml/fortran/2011-07/msg00106.html On 07/11/2011 09:49 AM, Tobias Burnus wrote: On 07/10/2011 09:56 PM, Tobias Burnus wrote: This patch implemented the trans*.c part of allocatable scalar coarrays; contrary to noncoarray allocatable scalars, they have cobounds and thus

Re: [Patch, Fortran] Support allocatable *scalar* coarrays

2011-07-11 Thread Tobias Burnus
On 07/10/2011 09:56 PM, Tobias Burnus wrote: This patch implemented the trans*.c part of allocatable scalar coarrays; contrary to noncoarray allocatable scalars, they have cobounds and thus use an array descriptor. I found a test case (part of Reinhold Bader's fortran_tests), which gave an IC

[Patch, Fortran] Support allocatable *scalar* coarrays

2011-07-10 Thread Tobias Burnus
This patch implemented the trans*.c part of allocatable scalar coarrays; contrary to noncoarray allocatable scalars, they have cobounds and thus use an array descriptor. While there are still some bugs and minor omissions, gfortran slowly gets feature compile with regards to single-image coarr