gcc/libgomp
Nathan Sidwell 182190f2b3 gimplify.c (enum omp_region_type): Add ORT_ACC, ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS.
gcc/
	* gcc/gimplify.c (enum  omp_region_type): Add ORT_ACC,
	ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS.  Adjust ORT_NONE.
	(gimple_add_tmp_var): Add ORT_ACC checks.
	(gimplify_var_or_parm_decl): Likewise.
	(omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a
	mask.
	(omp_add_variable): Look in outer contexts for openacc and allow
	reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA
	checks.
	(omp_notice_variable, omp_is_private, omp_check_private): Add
	ORT_ACC checks.
	(gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
	Permit private openacc reductions.
	(gimplify_oacc_cache): Specify ORT_ACC.
	(gimplify_omp_workshare): Adjust OpenACC region types.
	(gimplify_omp_target_update): Likewise.
	* gcc/omp-low.c (scan_sharing_clauses): Remove Openacc
	firstprivate sorry.
	(lower-rec_input_clauses): Don't handle openacc firstprivate
	references here.
	(lower_omp_target): Emit initializers for openacc firstprivate vars.

	gcc/testsuite/
	* gfortran.dg/goacc/private-3.f95: Remove xfail.
	* gfortran.dg/goacc/combined_loop.f90: Remove xfail.

	libgomp/
	* testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Remove xfail.
	* testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Remove xfail.
	* testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
	* testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.

Co-Authored-By: Cesar Philippidis <cesar@codesourcery.com>

From-SVN: r230169
2015-11-11 14:24:09 +00:00
..
config builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR, [...]): New. 2015-10-13 21:06:23 +02:00
plugin libgomp.h (struct acc_dispatch_t): Remove args from exec_func. 2015-11-03 20:18:33 +00:00
testsuite gimplify.c (enum omp_region_type): Add ORT_ACC, ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. 2015-11-11 14:24:09 +00:00
acinclude.m4
aclocal.m4
alloc.c
barrier.c
ChangeLog gimplify.c (enum omp_region_type): Add ORT_ACC, ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. 2015-11-11 14:24:09 +00:00
ChangeLog.graphite
config.h.in Fix --enable-offload-targets/-foffload handling, pt. 1 2015-09-23 16:52:50 +02:00
configure
configure.ac
configure.tgt
critical.c
env.c builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR, [...]): New. 2015-10-13 21:06:23 +02:00
error.c
fortran.c [gomp] Fix build for 32-bit targets with int != int32_t 2015-10-14 08:30:52 +00:00
hashtab.h
iter_ull.c
iter.c
libgomp_f.h.in
libgomp_g.h gcc/ 2015-11-05 16:08:08 +01:00
libgomp-plugin.c
libgomp-plugin.h
libgomp.h libgomp.h (struct acc_dispatch_t): Remove args from exec_func. 2015-11-03 20:18:33 +00:00
libgomp.map gcc/ 2015-11-05 16:08:08 +01:00
libgomp.spec.in
libgomp.texi builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR, [...]): New. 2015-10-13 21:06:23 +02:00
loop_ull.c gcc/ 2015-11-05 16:08:08 +01:00
loop.c gcc/ 2015-11-05 16:08:08 +01:00
Makefile.am
Makefile.in
oacc-async.c
oacc-cuda.c
oacc-host.c libgomp.h (struct acc_dispatch_t): Remove args from exec_func. 2015-11-03 20:18:33 +00:00
oacc-init.c libgomp: Additional acc_shutdown bug fixing and testing 2015-10-26 17:24:44 +01:00
oacc-int.h
oacc-mem.c [PR libgomp/65437, libgomp/66518] Initialize runtime in acc_update_device, acc_update_self 2015-10-26 17:24:17 +01:00
oacc-parallel.c libgomp.h (struct acc_dispatch_t): Remove args from exec_func. 2015-11-03 20:18:33 +00:00
oacc-plugin.c
oacc-plugin.h
omp_lib.f90.in builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR, [...]): New. 2015-10-13 21:06:23 +02:00
omp_lib.h.in builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR, [...]): New. 2015-10-13 21:06:23 +02:00
omp.h.in builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR, [...]): New. 2015-10-13 21:06:23 +02:00
openacc_lib.h
openacc.f90
openacc.h openacc.h (enum acc_device_t): Reformat. 2015-10-30 00:13:22 +00:00
ordered.c builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR, [...]): New. 2015-10-13 21:06:23 +02:00
parallel.c
sections.c
single.c
splay-tree.c
splay-tree.h
target.c gcc/ 2015-11-05 16:08:08 +01:00
task.c builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR, [...]): New. 2015-10-13 21:06:23 +02:00
taskloop.c builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR, [...]): New. 2015-10-13 21:06:23 +02:00
team.c
work.c