OpenMP/Fortran: 'target update' with DT components
authorTobias Burnus <tobias@codesourcery.com>
Thu, 3 Nov 2022 14:03:52 +0000 (15:03 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Thu, 3 Nov 2022 14:03:52 +0000 (15:03 +0100)
commit6629444170f85e9b1e243aa07e3e07a8b9f8fce5
tree13b8a330cb79ab4a8a7c4d504c3b2218fad9b1e2
parent553b1d3dd5b9253ebdf66ee3260c717d5b807dd1
OpenMP/Fortran: 'target update' with DT components

OpenMP 5.0 permits to use arrays with derived type components for the list
items to the 'from'/'to' clauses of the 'target update' directive.

gcc/fortran/ChangeLog:

* openmp.cc (gfc_match_omp_clauses): Permit derived types for
the 'to' and 'from' clauses of 'target update'.
* trans-openmp.cc (gfc_trans_omp_clauses): Fixes for
derived-type changes; fix size for scalars.

libgomp/ChangeLog:

* testsuite/libgomp.fortran/target-11.f90: New test.
* testsuite/libgomp.fortran/target-13.f90: New test.
gcc/fortran/openmp.cc
gcc/fortran/trans-openmp.cc
libgomp/testsuite/libgomp.fortran/target-11.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/target-13.f90 [new file with mode: 0644]