gcc/libgomp
Chung-Lin Tang 2c71d454eb re PR middle-end/70895 (OpenACC: loop reduction does not work. Output is zero.)
2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>

	PR middle-end/70895
	gcc/
	* gimplify.c (omp_add_variable): Adjust/add variable mapping on
	enclosing parallel construct for reduction variables on OpenACC loop
	directives.

	gcc/testsuite/
	* gfortran.dg/goacc/loop-tree-1.f90: Add gimple scan-tree-dump test.
	* c-c++-common/goacc/reduction-1.c: Likewise.
	* c-c++-common/goacc/reduction-2.c: Likewise.
	* c-c++-common/goacc/reduction-3.c: Likewise.
	* c-c++-common/goacc/reduction-4.c: Likewise.

	libgomp/
	* testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
	firstprivate clauses.
	* testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
	copy clauses.
	* testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.

From-SVN: r239576
2016-08-18 14:46:19 +00:00
..
config Update copyright years. 2016-01-04 15:30:50 +01:00
plugin oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter. 2016-05-26 13:28:25 +00:00
testsuite re PR middle-end/70895 (OpenACC: loop reduction does not work. Output is zero.) 2016-08-18 14:46:19 +00:00
acinclude.m4
aclocal.m4
alloc.c Update copyright years. 2016-01-04 15:30:50 +01:00
barrier.c Update copyright years. 2016-01-04 15:30:50 +01:00
ChangeLog re PR middle-end/70895 (OpenACC: loop reduction does not work. Output is zero.) 2016-08-18 14:46:19 +00:00
ChangeLog.graphite
config.h.in Merge of HSA 2016-01-19 11:35:10 +01:00
configure libgomp: Use HSA_RUNTIME_LIB, HSA_KMT_LIB in the testsuite 2016-02-02 13:48:31 +01:00
configure.ac
configure.tgt
critical.c Update copyright years. 2016-01-04 15:30:50 +01:00
env.c Update copyright years. 2016-01-04 15:30:50 +01:00
error.c Update copyright years. 2016-01-04 15:30:50 +01:00
fortran.c Update copyright years. 2016-01-04 15:30:50 +01:00
hashtab.h Update copyright years. 2016-01-04 15:30:50 +01:00
iter_ull.c Update copyright years. 2016-01-04 15:30:50 +01:00
iter.c Update copyright years. 2016-01-04 15:30:50 +01:00
libgomp_f.h.in Update copyright years. 2016-01-04 15:30:50 +01:00
libgomp_g.h libgomp external ABI prototypes maintenance 2016-04-12 15:13:53 +02:00
libgomp-plugin.c Update copyright years. 2016-01-04 15:30:50 +01:00
libgomp-plugin.h Merge of HSA 2016-01-19 11:35:10 +01:00
libgomp.h oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter. 2016-05-26 13:28:25 +00:00
libgomp.map Merge BUILT_IN_GOACC_HOST_DATA into BUILT_IN_GOACC_DATA_START 2016-02-02 14:53:55 +01:00
libgomp.spec.in
libgomp.texi * libgomp.texi: Updates for OpenACC. 2016-01-12 17:03:03 +00:00
loop_ull.c Update copyright years. 2016-01-04 15:30:50 +01:00
loop.c Update copyright years. 2016-01-04 15:30:50 +01:00
Makefile.am omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_* internal calls - 0 if... 2015-11-14 19:42:13 +01:00
Makefile.in libgomp: Use HSA_RUNTIME_LIB, HSA_KMT_LIB in the testsuite 2016-02-02 13:48:31 +01:00
oacc-async.c Update copyright years. 2016-01-04 15:30:50 +01:00
oacc-cuda.c Update copyright years. 2016-01-04 15:30:50 +01:00
oacc-host.c oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter. 2016-05-26 13:28:25 +00:00
oacc-init.c target.c (gomp_device_copy): New function. 2016-05-26 09:58:56 +00:00
oacc-int.h Update copyright years. 2016-01-04 15:30:50 +01:00
oacc-mem.c oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter. 2016-05-26 13:28:25 +00:00
oacc-parallel.c oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter. 2016-05-26 13:28:25 +00:00
oacc-plugin.c oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter. 2016-05-26 13:28:25 +00:00
oacc-plugin.h oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter. 2016-05-26 13:28:25 +00:00
omp_lib.f90.in Update copyright years. 2016-01-04 15:30:50 +01:00
omp_lib.h.in Update copyright years. 2016-01-04 15:30:50 +01:00
omp.h.in Update copyright years. 2016-01-04 15:30:50 +01:00
openacc_lib.h Update copyright years. 2016-01-04 15:30:50 +01:00
openacc.f90 Update copyright years. 2016-01-04 15:30:50 +01:00
openacc.h openacc.c (acc_on_device): Add routine pragma for C++ wrapper. 2016-01-06 15:47:14 +00:00
ordered.c Update copyright years. 2016-01-04 15:30:50 +01:00
parallel.c Update copyright years. 2016-01-04 15:30:50 +01:00
priority_queue.c Update copyright years. 2016-01-04 15:30:50 +01:00
priority_queue.h Update copyright years. 2016-01-04 15:30:50 +01:00
sections.c Update copyright years. 2016-01-04 15:30:50 +01:00
single.c Update copyright years. 2016-01-04 15:30:50 +01:00
splay-tree.c Update copyright years. 2016-01-04 15:30:50 +01:00
splay-tree.h Update copyright years. 2016-01-04 15:30:50 +01:00
target.c oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter. 2016-05-26 13:28:25 +00:00
task.c omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT regardless whether there are depend clauses or not. 2016-04-12 09:05:29 +02:00
taskloop.c Update copyright years. 2016-01-04 15:30:50 +01:00
team.c Update copyright years. 2016-01-04 15:30:50 +01:00
work.c Update copyright years. 2016-01-04 15:30:50 +01:00