Re: [Patch, Fortran] PR18918 - UCOBOUND coarray draft patch

2011-04-04 Thread Tobias Burnus
Daniel Kraft wrote: On 04/03/11 17:03, Tobias Burnus wrote: For the support, the scalarizer had to be modified and the cobounds had to be saved in the descriptor (and in TYPE_LANG_SPECIFIC(node)). I'm all but an expert on this area (maybe you could ask Mikael for his opinion on the scalarizer

Re: [Patch, Fortran] PR18918 - UCOBOUND coarray draft patch

2011-04-04 Thread Daniel Kraft
Hi Tobias, On 04/03/11 17:03, Tobias Burnus wrote: For the support, the scalarizer had to be modified and the cobounds had to be saved in the descriptor (and in TYPE_LANG_SPECIFIC(node)). I'm all but an expert on this area (maybe you could ask Mikael for his opinion on the scalarizer changes)

Re: [Patch, Fortran] PR18918 - UCOBOUND coarray draft patch

2011-04-03 Thread Tobias Burnus
Dear all, This patch adds support for THIS_IMAGE(coarray[,dim=]), LCOBOUND and UCOBOUND for bounds only known at run time (be it allocatable arrays, explicit arrays with variables in the explicit bounds or a non-constant value for dim=). For the support, the scalarizer had to be modified and

[Patch, Fortran] PR18918 - UCOBOUND coarray draft patch

2011-03-31 Thread Tobias Burnus
Hi all, attached you find a draft patch for implementing the run-time support for THIS_IMAGE(coarray), LCOBOUND and UCOBOUND where the cobounds (or the "dim=" argument) are not known at the compile time. There are two cases where the bounds are not known: a) For allocatable coarrays: intege