Hi Cesar!

On Wed, 5 Apr 2017 08:23:58 -0700, Cesar Philippidis <ce...@codesourcery.com> 
wrote:
> This patch implements the OpenACC 2.5 behavior of fortran allocate on
> variables marked with declare create as defined in Section 2.13.2 in the
> OpenACC spec.

Thanks!


> While working on adding support for allocate, I noticed that OpenACC
> declare has a number of quirks. For starters, the fortran FE wasn't
> lowering them properly, so there was no way for omplower to utilize them
> inside acc parallel regions.

> There is still some unimplemented functionality.
> [...]

File (at least some of these?) as separate issues, I guess?


> I've applied this patch to gomp-4_0-branch.

Not reviewed, but I noticed:

> --- /dev/null
> +++ b/gcc/testsuite/gfortran.dg/goacc/declare-allocatable-1.f90
> @@ -0,0 +1,25 @@
> +! Verify that OpenACC declared allocatable arrays have implicit
> +! OpenACC enter and exit pragmas at the time of allocation and
> +! deallocation.
> +
> +! { dg-additional-options "-fdump-tree-original" }
> +[...]
> +! { dg-final { scan-tree-dump-times "pragma acc enter data 
> map.declare_allocate" 1 "gimple" } }
> +! { dg-final { scan-tree-dump-times "pragma acc exit data 
> map.declare_deallocate" 1 "gimple" } }

    UNRESOLVED: gfortran.dg/goacc/declare-allocatable-1.f90   -O   
scan-tree-dump-times gimple "pragma acc enter data map.declare_allocate" 1
    UNRESOLVED: gfortran.dg/goacc/declare-allocatable-1.f90   -O   
scan-tree-dump-times gimple "pragma acc exit data map.declare_deallocate" 1
    PASS: gfortran.dg/goacc/declare-allocatable-1.f90   -O  (test for excess 
errors)

"original" vs. "gimple" -- which one should it be?


Grüße
 Thomas

Reply via email to