]> git.ipfire.org Git - thirdparty/gcc.git/commit
OpenMP/Fortran: 'target update' with strides + DT components
authorTobias Burnus <tobias@codesourcery.com>
Wed, 2 Nov 2022 08:06:28 +0000 (09:06 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 2 Nov 2022 08:06:28 +0000 (09:06 +0100)
commitcb934e37962eeccc8641982b9a9855408979c767
tree875ec2ac36afb458fa463e312dedf9f18df92522
parent488d2df2148900259c3f865740ea0abfee39bc5a
OpenMP/Fortran: 'target update' with strides + DT components

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

Submitted to mainline (but pending review):
https://gcc.gnu.org/pipermail/gcc-patches/2022-October/604687.html

gcc/fortran/ChangeLog:

* openmp.cc (gfc_match_omp_clauses): Permit derived types.
(resolve_omp_clauses):Accept noncontiguous
arrays.
* 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/ChangeLog.omp
gcc/fortran/openmp.cc
gcc/fortran/trans-openmp.cc
libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.fortran/target-11.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/target-13.f90 [new file with mode: 0644]