]> git.ipfire.org Git - thirdparty/gcc.git/commit
OpenMP, C++: Add template support for the has_device_addr clause.
authorMarcel Vollweiler <marcel@codesourcery.com>
Mon, 4 Jul 2022 19:13:39 +0000 (21:13 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Mon, 4 Jul 2022 19:38:53 +0000 (21:38 +0200)
commitb584b32b1f76a9011d5a2473acc2781c78a0802c
tree952d6ced0038c0b18b33f60d4fc8dd4359fadb24
parentedd96cddde899770296a6e9ffc2f19a1c447a2ea
OpenMP, C++: Add template support for the has_device_addr clause.

This patch adds support for list items in the has_device_addr clause which type
is given by C++ template parameters.

gcc/cp/ChangeLog:

* pt.cc (tsubst_omp_clauses): Added OMP_CLAUSE_HAS_DEVICE_ADDR.
* semantics.cc (finish_omp_clauses): Added template decl processing.

libgomp/ChangeLog:

* testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
* testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
* testsuite/libgomp.c++/target-has-device-addr-9.C: New test.

(cherry picked from commit b4fb9f4f9a10d825302cfb5a0ecefa796570d8bc)
gcc/cp/ChangeLog.omp
gcc/cp/pt.cc
gcc/cp/semantics.cc
libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.c++/target-has-device-addr-7.C [new file with mode: 0644]
libgomp/testsuite/libgomp.c++/target-has-device-addr-8.C [new file with mode: 0644]
libgomp/testsuite/libgomp.c++/target-has-device-addr-9.C [new file with mode: 0644]