OpenMP: Permit in Fortran omp target data without map
authorTobias Burnus <tobias@codesourcery.com>
Wed, 29 Jul 2020 13:09:55 +0000 (15:09 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 29 Jul 2020 13:09:55 +0000 (15:09 +0200)
commitd6cd139c1728fd37a2b6b2251029458cc2b7127e
tree0dd250e4a3c85bd87037a5b323cd3a3bca472a13
parent9f6abd2db90151c8966d2d2718ab8c299abf1105
OpenMP: Permit in Fortran omp target data without map

gcc/fortran/ChangeLog:

* openmp.c (resolve_omp_clauses): Permit 'omp target data' without
map if use_device_{addr,ptr} is present.

gcc/testsuite/ChangeLog:

* gfortran.dg/gomp/map-3.f90: New test.
* gfortran.dg/gomp/map-4.f90: New test.
gcc/fortran/openmp.c
gcc/testsuite/gfortran.dg/gomp/map-3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/map-4.f90 [new file with mode: 0644]