aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMarcel Vollweiler <marcel@codesourcery.com>2022-05-02 23:56:44 -0700
committerMarcel Vollweiler <marcel@codesourcery.com>2022-05-02 23:56:44 -0700
commit941cdc8b6d29f9fe494fdd244e96a5e5aa08ba32 (patch)
tree2fd28aefc17121aa268953dace732e22305b3ccf /gcc
parent404edfce683cb1801b052ee7c8d45d603c392e08 (diff)
downloadgcc-941cdc8b6d29f9fe494fdd244e96a5e5aa08ba32.zip
gcc-941cdc8b6d29f9fe494fdd244e96a5e5aa08ba32.tar.gz
gcc-941cdc8b6d29f9fe494fdd244e96a5e5aa08ba32.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/omp-low.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/omp-low.cc b/gcc/omp-low.cc
index a43fa47..8767038 100644
--- a/gcc/omp-low.cc
+++ b/gcc/omp-low.cc
@@ -3982,6 +3982,7 @@ omp_runtime_api_call (const_tree fndecl)
"alloc",
"calloc",
"free",
+ "get_mapped_ptr",
"realloc",
"target_alloc",
"target_associate_ptr",