Support OpenMP's use_device_addr in Fortran
authorTobias Burnus <tobias@codesourcery.com>
Wed, 2 Oct 2019 10:57:54 +0000 (10:57 +0000)
committerTobias Burnus <burnus@gcc.gnu.org>
Wed, 2 Oct 2019 10:57:54 +0000 (12:57 +0200)
commitef4add8e543091083b1a30350b653968e7c58ab2
tree025615ae48c75d5713717f7c8b914b2c628cbc4b
parentfc1a202ca60def4894f2deeda8ae184527ee897e
Support OpenMP's use_device_addr in Fortran

        gcc/fortran/
* dump-parse-tree.c (show_omp_clauses): Handle OMP_LIST_USE_DEVICE_ADDR.
* gfortran.h (enum): Add OMP_LIST_USE_DEVICE_ADDR.
* openmp.c (omp_mask1): Likewise.
(gfc_match_omp_clauses): Match 'use_device_addr'.
(OMP_TARGET_DATA_CLAUSES): Add OMP_LIST_USE_DEVICE_ADDR.
(resolve_omp_clauses): Add it; add is_device_ptr checks.

        gcc/testsuite/
* gfortran.dg/gomp/is_device_ptr-1.f90: New.

From-SVN: r276449
gcc/fortran/ChangeLog
gcc/fortran/dump-parse-tree.c
gcc/fortran/gfortran.h
gcc/fortran/openmp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/gomp/is_device_ptr-1.f90 [new file with mode: 0644]