OpenMP, C++: Add template support for the has_device_addr clause.
authorMarcel Vollweiler <marcel@codesourcery.com>
Mon, 16 May 2022 08:02:50 +0000 (01:02 -0700)
committerMarcel Vollweiler <marcel@codesourcery.com>
Mon, 16 May 2022 08:02:50 +0000 (01:02 -0700)
commitb4fb9f4f9a10d825302cfb5a0ecefa796570d8bc
tree251a4b967b88d8dea7ae372690cee6d41273f795
parentec69db6be6912e45fa5f54f2d231d56e52612f1d
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.
gcc/cp/pt.cc
gcc/cp/semantics.cc
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]