]> gcc.gnu.org Git - gcc.git/commit
openacc: Fix standalone attach for Fortran assumed-shape array pointers
authorJulian Brown <julian@codesourcery.com>
Tue, 9 Jun 2020 22:53:39 +0000 (15:53 -0700)
committerJulian Brown <julian@codesourcery.com>
Thu, 16 Jul 2020 21:12:53 +0000 (14:12 -0700)
commit39dda0020801045d9a604575b2a2593c05310015
tree32b809bf7d91a985754ef7bc0e33e8c92bff749c
parent0f66b8486cea8668020e4bd48f261b760cb579be
openacc: Fix standalone attach for Fortran assumed-shape array pointers

This patch makes it so that an "attach" operation for a Fortran pointer
with an array descriptor copies that array descriptor to the target,
and similarly that detach operations release the array descriptor.

2020-07-16  Julian Brown  <julian@codesourcery.com>
    Thomas Schwinge  <thomas@codesourcery.com>

gcc/fortran/
* trans-openmp.c (gfc_trans_omp_clauses): Rework OpenACC
attach/detach handling for arrays with descriptors.

gcc/testsuite/
* gfortran.dg/goacc/attach-descriptor.f90: New test.

libgomp/
* testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
* testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.

Co-Authored-By: Thomas Schwinge <thomas@codesourcery.com>
gcc/fortran/trans-openmp.c
gcc/testsuite/gfortran.dg/goacc/attach-descriptor.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90 [new file with mode: 0644]
This page took 0.062549 seconds and 5 git commands to generate.