]> git.ipfire.org Git - thirdparty/gcc.git/commit
OpenMP, libgomp: Add new runtime routine omp_get_mapped_ptr.
authorMarcel Vollweiler <marcel@codesourcery.com>
Tue, 3 May 2022 06:56:44 +0000 (23:56 -0700)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 28 Jun 2022 20:55:27 +0000 (13:55 -0700)
commit28c49e0f617b50b80e974582479b7fe077988b6d
treeced2358fabf95d1edac4bc24180c9b691846c0c2
parent28d79c9620aa4d968f6b3be2772b5515f9d784d9
OpenMP, libgomp: Add new runtime routine omp_get_mapped_ptr.

This patch adds the OpenMP runtime routine "omp_get_mapped_ptr" which was
introduced in OpenMP 5.1.

gcc/ChangeLog:

* omp-low.cc (omp_runtime_api_call): Added get_mapped_ptr to
omp_runtime_apis array.

libgomp/ChangeLog:

* libgomp.map: Added omp_get_mapped_ptr.
* libgomp.texi: Tagged omp_get_mapped_ptr as supported.
* omp.h.in: Added omp_get_mapped_ptr.
* omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
* omp_lib.h.in: Likewise.
* target.c (omp_get_mapped_ptr): Added implementation of
omp_get_mapped_ptr.
* testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
* testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
* testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
* testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
* testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
* testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
* testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
* testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.

(cherry picked from commit 941cdc8b6d29f9fe494fdd244e96a5e5aa08ba32)
17 files changed:
gcc/ChangeLog.omp
gcc/omp-low.cc
libgomp/ChangeLog.omp
libgomp/libgomp.map
libgomp/libgomp.texi
libgomp/omp.h.in
libgomp/omp_lib.f90.in
libgomp/omp_lib.h.in
libgomp/target.c
libgomp/testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/get-mapped-ptr-1.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/get-mapped-ptr-2.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/get-mapped-ptr-3.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/get-mapped-ptr-4.f90 [new file with mode: 0644]