gcc/libgomp
Jakub Jelinek 29c3218618 openmp: Fix up finish_omp_target_clauses [PR108286]
The comment in the loop says that we shouldn't add a map clause if such
a clause exists already, but the loop was actually using OMP_CLAUSE_DECL
on any clause.  Target construct can have various clauses which don't
have OMP_CLAUSE_DECL at all (e.g. nowait, device or if) or clause
where it means something different (e.g. privatization clauses, allocate,
depend).

So, only check OMP_CLAUSE_DECL on OMP_CLAUSE_MAP clauses.

2023-01-05  Jakub Jelinek  <jakub@redhat.com>

	PR c++/108286
	* semantics.cc (finish_omp_target_clauses): Ignore clauses other than
	OMP_CLAUSE_MAP.

	* testsuite/libgomp.c++/pr108286.C: New test.
2023-01-05 11:57:30 +01:00
..
config nvptx: reimplement libgomp barriers [PR99555] 2022-12-21 05:58:49 -08:00
plugin libgomp: Handle OpenMP's reverse offloads 2022-12-10 13:42:08 +01:00
testsuite openmp: Fix up finish_omp_target_clauses [PR108286] 2023-01-05 11:57:30 +01:00
.gitattributes
acc_prof.h
acinclude.m4
aclocal.m4
affinity-fmt.c
affinity.c
alloc.c
allocator.c
atomic.c
barrier.c
ChangeLog Daily bump. 2023-01-03 00:17:09 +00:00
ChangeLog.graphite
config.h.in
configure Revert "sphinx: add --with-sphinx-build" 2022-11-14 09:35:05 +01:00
configure.ac Revert "sphinx: add --with-sphinx-build" 2022-11-14 09:35:05 +01:00
configure.tgt
critical.c
env.c libgomp: Fix up build on mingw [PR107641] 2022-11-12 09:50:04 +01:00
error.c
fortran.c libgomp: Add omp_in_explicit_task support 2022-10-12 18:39:20 +02:00
hashtab.h
icv-device.c OpenMP: omp_get_max_teams, omp_set_num_teams, and omp_{gs}et_teams_thread_limit on offload devices 2022-12-06 06:03:50 -08:00
icv.c OpenMP: omp_get_max_teams, omp_set_num_teams, and omp_{gs}et_teams_thread_limit on offload devices 2022-12-06 06:03:50 -08:00
iter_ull.c
iter.c
libgomp_f.h.in
libgomp_g.h
libgomp-plugin.c libgomp/nvptx: Prepare for reverse-offload callback handling 2022-10-24 17:04:08 +02:00
libgomp-plugin.h Remove support for Intel MIC offloading 2022-11-04 10:51:01 +01:00
libgomp.h libgomp: Handle OpenMP's reverse offloads 2022-12-10 13:42:08 +01:00
libgomp.map libgomp/nvptx: Prepare for reverse-offload callback handling 2022-10-24 17:04:08 +02:00
libgomp.spec.in
libgomp.texi Update copyright dates. 2023-01-02 09:26:59 +01:00
lock.c
loop_ull.c
loop.c
Makefile.am
Makefile.in Revert "sphinx: support Sphinx in build system" 2022-11-14 09:35:06 +01:00
oacc-async.c
oacc-cuda.c
oacc-host.c libgomp: Handle OpenMP's reverse offloads 2022-12-10 13:42:08 +01:00
oacc-init.c
oacc-int.h
oacc-mem.c Support OpenACC 'declare create' with Fortran allocatable arrays, part II [PR106643, PR96668] 2022-11-02 20:51:41 +01:00
oacc-parallel.c
oacc-plugin.c
oacc-plugin.h
oacc-profiling.c
oacc-target.c
omp_lib.f90.in libgomp: Add omp_in_explicit_task support 2022-10-12 18:39:20 +02:00
omp_lib.h.in libgomp: Add omp_in_explicit_task support 2022-10-12 18:39:20 +02:00
omp.h.in libgomp: Add omp_in_explicit_task support 2022-10-12 18:39:20 +02:00
openacc_lib.h
openacc.f90
openacc.h
ordered.c
parallel.c
priority_queue.c
priority_queue.h
scope.c
sections.c
secure_getenv.h
single.c
splay-tree.c libgomp: Handle OpenMP's reverse offloads 2022-12-10 13:42:08 +01:00
splay-tree.h libgomp: Handle OpenMP's reverse offloads 2022-12-10 13:42:08 +01:00
target.c libgomp: Handle OpenMP's reverse offloads 2022-12-10 13:42:08 +01:00
task.c libgomp: Add omp_in_explicit_task support 2022-10-12 18:39:20 +02:00
taskloop.c
team.c
teams.c
work.c