gcc/libgomp
Jakub Jelinek b3f44388f3 re PR c++/60228 (ICE using lambda in #pragma omp declare reduction)
PR c++/60228
	* parser.c (cp_parser_omp_declare_reduction_exprs): If
	processing_template_decl, wrap the combiner or initializer
	into EXPR_STMT.
	* decl.c (start_preparsed_function): Don't start a lambda scope
	for DECL_OMP_DECLARE_REDUCTION_P functions.
	(finish_function): Don't finish a lambda scope for
	DECL_OMP_DECLARE_REDUCTION_P functions, nor cp_fold_function
	them nor cp_genericize them.
	* mangle.c (decl_mangling_context): Look through
	DECL_OMP_DECLARE_REDUCTION_P functions.
	* semantics.c (expand_or_defer_fn_1): For DECL_OMP_DECLARE_REDUCTION_P
	functions, use tentative linkage, don't keep their bodies with
	-fkeep-inline-functions and return false at the end.

	* g++.dg/gomp/openmp-simd-2.C: Don't expect bodies for
	DECL_OMP_DECLARE_REDUCTION_P functions.

	* testsuite/libgomp.c++/udr-20.C: New test.
	* testsuite/libgomp.c++/udr-21.C: New test.

From-SVN: r278831
2019-11-29 10:08:46 +01:00
..
config Optimize GCN OpenMP malloc performance 2019-11-13 12:38:09 +00:00
plugin AMD GCN libgomp plugin queue-full condition locking fix 2019-11-20 17:56:30 +00:00
testsuite re PR c++/60228 (ICE using lambda in #pragma omp declare reduction) 2019-11-29 10:08:46 +01:00
acc_prof.h
acinclude.m4
aclocal.m4
affinity-fmt.c
affinity.c
alloc.c
atomic.c
barrier.c
ChangeLog re PR c++/60228 (ICE using lambda in #pragma omp declare reduction) 2019-11-29 10:08:46 +01:00
ChangeLog.graphite
config.h.in GCN libgomp port 2019-11-13 12:38:04 +00:00
configure GCN Libgomp Plugin 2019-11-13 12:38:18 +00:00
configure.ac GCN libgomp port 2019-11-13 12:38:04 +00:00
configure.tgt GCN libgomp port 2019-11-13 12:38:04 +00:00
critical.c
env.c
error.c
fortran.c
hashtab.h
icv-device.c
icv.c
iter_ull.c
iter.c
libgomp_f.h.in
libgomp_g.h
libgomp-plugin.c
libgomp-plugin.h GCN libgomp port 2019-11-13 12:38:04 +00:00
libgomp.h Optimize GCN OpenMP malloc performance 2019-11-13 12:38:09 +00:00
libgomp.map
libgomp.spec.in
libgomp.texi
lock.c
loop_ull.c
loop.c
Makefile.am GCN libgomp port 2019-11-13 12:38:04 +00:00
Makefile.in GCN Libgomp Plugin 2019-11-13 12:38:18 +00:00
oacc-async.c Add device number to GOMP_OFFLOAD_openacc_async_construct 2019-11-13 12:37:59 +00:00
oacc-cuda.c
oacc-host.c Add device number to GOMP_OFFLOAD_openacc_async_construct 2019-11-13 12:37:59 +00:00
oacc-init.c
oacc-int.h GCN libgomp port 2019-11-13 12:38:04 +00:00
oacc-mem.c OpenACC "present" subarrays: runtime API return value and unmapping fixes 2019-11-20 17:51:09 +00:00
oacc-parallel.c
oacc-plugin.c
oacc-plugin.h
oacc-profiling.c
oacc-target.c GCN libgomp port 2019-11-13 12:38:04 +00:00
omp_lib.f90.in
omp_lib.h.in
omp.h.in
openacc_lib.h
openacc.f90 GCN libgomp port 2019-11-13 12:38:04 +00:00
openacc.h GCN libgomp port 2019-11-13 12:38:04 +00:00
ordered.c
parallel.c
priority_queue.c
priority_queue.h
sections.c
secure_getenv.h
single.c
splay-tree.c
splay-tree.h
target.c
task.c
taskloop.c
team.c Optimize GCN OpenMP malloc performance 2019-11-13 12:38:09 +00:00
teams.c
work.c Optimize GCN OpenMP malloc performance 2019-11-13 12:38:09 +00:00