]> gcc.gnu.org Git - gcc.git/commit
libgomp: Fix 'target enter data' with always pointer
authorTobias Burnus <tobias@codesourcery.com>
Wed, 15 Feb 2023 10:40:21 +0000 (11:40 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 15 Feb 2023 10:40:21 +0000 (11:40 +0100)
commitec6bf735cf752818b5fd5b53100552ee3d06f62e
tree02cbfbc2e94bbbb9e150802423c47ac5203b25e5
parente7279cc2eda2a0c50cff19ee4e02eea3d7808f68
libgomp: Fix 'target enter data' with always pointer

As GOMP_MAP_ALWAYS_POINTER operates on the previous map item, ensure that
with 'target enter data' both are passed together to gomp_map_vars_internal.

libgomp/ChangeLog:

* target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
kind check.
(GOMP_target_enter_exit_data): If the next map item is
GOMP_MAP_ALWAYS_POINTER map it together with the current item.
* testsuite/libgomp.fortran/target-enter-data-4.f90: New test.

(cherry picked from commit c7a9655be60cb4f224d1e5906bfe8ae227b5a3a0)
(Testfile added as target-enter-data-4.f90 as ...-3.f90 already existed.)
libgomp/ChangeLog.omp
libgomp/target.c
libgomp/testsuite/libgomp.fortran/target-enter-data-4.f90 [new file with mode: 0644]
This page took 0.055443 seconds and 5 git commands to generate.