]> git.ipfire.org Git - thirdparty/gcc.git/commit
openmp, Fortran: Add support using iterators with custom mappers in Fortran
authorKwok Cheung Yeung <kcyeung@baylibre.com>
Tue, 11 Mar 2025 22:41:54 +0000 (22:41 +0000)
committerKwok Cheung Yeung <kcyeung@baylibre.com>
Thu, 17 Apr 2025 22:33:43 +0000 (23:33 +0100)
commit8fab63e1ce20ea15bd99f805b7af003fab63f7fb
treeafeb2b5f60d50dbddfb8bdd6fc15a8650826917b
parent53b8a20948e921bca6815f8cd70bfa57c264bca3
openmp, Fortran: Add support using iterators with custom mappers in Fortran

gcc/fortran/

* openmp.cc (gfc_omp_instantiate_mapper): Add argument for namespace.
Apply namespace to new clauses.  Propagate namespace to nested
mappers.
(gfc_omp_instantiate_mappers): Pass namespace of clause to clauses
generated by mappers.

libgomp/

* testsuite/libgomp.fortran/mapper-iterators-1.f90: New test.
* testsuite/libgomp.fortran/mapper-iterators-2.f90: New test.
* testsuite/libgomp.fortran/mapper-iterators-3.f90: New test.
* testsuite/libgomp.fortran/mapper-iterators-4.f90: New test.

Co-authored-by: Andrew Stubbs <ams@baylibre.com>
gcc/fortran/ChangeLog.omp
gcc/fortran/openmp.cc
libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.fortran/mapper-iterators-1.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/mapper-iterators-2.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/mapper-iterators-3.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/mapper-iterators-4.f90 [new file with mode: 0644]