gcc/libgomp/testsuite/libgomp.c++
Jakub Jelinek 41b37d5ec1 re PR middle-end/66199 (lastprivate/linear clause issues on combined constructs)
PR middle-end/66199
	* tree.h (OMP_TEAMS_COMBINED): Define.
	* gimplify.c (enum gimplify_omp_var_data): Add
	GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
	(enum omp_region_type): Add ORT_COMBINED_TEAMS.
	(omp_notice_variable): Accept both ORT_TEAMS
	and ORT_COMBINED_TEAMS.  Don't recurse if
	GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
	GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
	GOVD_FIRSTPRIVATE.
	(omp_no_lastprivate): New function.
	(gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
	and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
	notice_outer and set appropriate bits, otherwise make
	sure default(none) combined constructs won't complain.
	(gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
	outer special casing, for OMP_CLAUSE_LASTPRIVATE if
	omp_no_lastprivate either remove the clause or turn it
	into OMP_CLAUSE_PRIVATE.
	(gimplify_omp_for): Fix up handling of implicit
	lastprivate or linear iterators.
	(gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
	ORT_COMBINED_TEAMS.
	* omp-low.c (lower_omp_for_lastprivate): For combined
	for simd use fd.loop.n2 from the for rather than simd.
gcc/c/
	* c-parser.c (c_parser_omp_for_loop): Don't add
	OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving
	OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES.
	(c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined
	constructs.
gcc/cp/
	* parser.c (cp_parser_omp_for_loop): Don't add
	OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving
	OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES.
	(cp_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined
	constructs.
gcc/fortran/
	* trans-openmp.c (gfc_trans_omp_teams): Set OMP_TEAMS_COMBINED for
	combined constructs.
	(gfc_trans_omp_target): Make sure BIND_EXPR has non-NULL
	BIND_EXPR_BLOCK.
libgomp/
	* testsuite/libgomp.c/pr66199-1.c: New test.
	* testsuite/libgomp.c/pr66199-2.c: New test.
	* testsuite/libgomp.c++/pr66199-1.C: New test.
	* testsuite/libgomp.c++/pr66199-2.C: New test.
	* testsuite/libgomp.fortran/pr66199-1.f90: New test.
	* testsuite/libgomp.fortran/pr66199-2.f90: New test.

From-SVN: r223387
2015-05-19 18:16:15 +02:00
..
examples-4 [PATCH 7/7] OpenMP 4.0 offloading infrastructure: testsuite. 2014-11-13 13:56:22 +00:00
affinity-1.C target.c: New file. 2013-10-11 11:26:50 +02:00
atomic-1.C
atomic-2.C backport: re PR fortran/46752 (OpenMP - Seg fault for unallocated allocatable array in firstprivate clause) 2011-08-02 18:13:29 +02:00
atomic-3.C backport: re PR fortran/46752 (OpenMP - Seg fault for unallocated allocatable array in firstprivate clause) 2011-08-02 18:13:29 +02:00
atomic-4.C backport: re PR fortran/46752 (OpenMP - Seg fault for unallocated allocatable array in firstprivate clause) 2011-08-02 18:13:29 +02:00
atomic-5.C backport: re PR fortran/46752 (OpenMP - Seg fault for unallocated allocatable array in firstprivate clause) 2011-08-02 18:13:29 +02:00
atomic-6.C backport: re PR fortran/46752 (OpenMP - Seg fault for unallocated allocatable array in firstprivate clause) 2011-08-02 18:13:29 +02:00
atomic-7.C backport: re PR fortran/46752 (OpenMP - Seg fault for unallocated allocatable array in firstprivate clause) 2011-08-02 18:13:29 +02:00
atomic-8.C backport: re PR fortran/46752 (OpenMP - Seg fault for unallocated allocatable array in firstprivate clause) 2011-08-02 18:13:29 +02:00
atomic-9.C backport: re PR fortran/46752 (OpenMP - Seg fault for unallocated allocatable array in firstprivate clause) 2011-08-02 18:13:29 +02:00
atomic-10.C target.c: New file. 2013-10-11 11:26:50 +02:00
atomic-11.C target.c: New file. 2013-10-11 11:26:50 +02:00
atomic-12.C target.c: New file. 2013-10-11 11:26:50 +02:00
atomic-13.C target.c: New file. 2013-10-11 11:26:50 +02:00
atomic-14.C c-parser.c (c_parser_omp_atomic): Allow seq_cst before atomic-clause... 2014-04-24 23:20:28 +02:00
atomic-15.C c-parser.c (c_parser_omp_atomic): Allow seq_cst before atomic-clause... 2014-04-24 23:20:28 +02:00
atomic-16.C re PR middle-end/64824 (ICE in gimple verification) 2015-02-11 14:40:31 +01:00
c++.exp [PATCH 7/7] OpenMP 4.0 offloading infrastructure: testsuite. 2014-11-13 13:56:22 +00:00
cancel-for-1.C target.c: New file. 2013-10-11 11:26:50 +02:00
cancel-for-2.C target.c: New file. 2013-10-11 11:26:50 +02:00
cancel-parallel-1.C target.c: New file. 2013-10-11 11:26:50 +02:00
cancel-parallel-2.C target.c: New file. 2013-10-11 11:26:50 +02:00
cancel-parallel-3.C target.c: New file. 2013-10-11 11:26:50 +02:00
cancel-sections-1.C target.c: New file. 2013-10-11 11:26:50 +02:00
cancel-taskgroup-1.C target.c: New file. 2013-10-11 11:26:50 +02:00
cancel-taskgroup-2.C target.c: New file. 2013-10-11 11:26:50 +02:00
cancel-taskgroup-3.C target.c: New file. 2013-10-11 11:26:50 +02:00
cancel-test.h target.c: New file. 2013-10-11 11:26:50 +02:00
collapse-1.C
collapse-2.C
copyin-1.C
copyin-2.C
ctor-1.C
ctor-2.C
ctor-3.C
ctor-4.C
ctor-5.C
ctor-6.C
ctor-7.C
ctor-8.C
ctor-9.C
ctor-10.C
ctor-11.C
ctor-12.C
for-1.C
for-2.C
for-3.C
for-4.C
for-5.C
for-6.C
for-7.C
for-8.C
for-9.C target.c: New file. 2013-10-11 11:26:50 +02:00
for-10.C gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator not mentioned in clauses use private clause if... 2014-06-24 09:53:52 +02:00
for-11.C target.c: New file. 2013-10-11 11:26:50 +02:00
loop-1.C
loop-2.C
loop-3.C
loop-4.C
loop-5.C
loop-6.C
loop-7.C
loop-8.C
loop-9.C
loop-10.C
loop-11.C
loop-12.C
loop-13.C omp-low.c (extract_omp_for_data): For collapsed loops... 2013-05-16 12:43:33 +02:00
loop-14.C omp-low.c (extract_omp_for_data): For collapsed loops... 2013-05-16 12:43:33 +02:00
loop-15.C omp-low.c (extract_omp_for_data): For collapsed loops... 2013-05-16 12:43:33 +02:00
master-1.C
nested-1.C
parallel-1.C
pr24455-1.C
pr24455.C re PR target/54908 (misc regressions on emutls targets remain from dynamic initialization of non-function-local TLS variables) 2013-01-19 00:25:25 -05:00
pr26691.C
pr26943.C
pr27337.C
pr30703.C
pr34513.C
pr35185.C
pr38650.C
pr39573.C
pr43893.C
pr48869.C re PR c++/48869 (OpenMP task construct fails to instantiate copy constructor(same as Bug 36523)) 2011-05-19 09:44:31 +02:00
pr49043.C re PR c++/49043 ([OpenMP & C++0x]: Compiler error when lambda-function within OpenMP loop) 2011-05-19 15:11:56 +02:00
pr56217.C re PR c++/56217 (ICE: OpenMP: when combining shared() and a move constructor) 2013-02-06 11:34:53 +01:00
pr63248.C re PR c++/63248 (Crash when OpenMP target's array section handling is used with templates) 2014-09-18 18:43:28 +02:00
pr64824.C re PR middle-end/64824 (ICE in gimple verification) 2015-02-04 23:32:36 +01:00
pr64868.C re PR middle-end/64824 (ICE in gimple verification) 2015-02-04 23:32:36 +01:00
pr66199-1.C re PR middle-end/66199 (lastprivate/linear clause issues on combined constructs) 2015-05-19 18:16:15 +02:00
pr66199-2.C re PR middle-end/66199 (lastprivate/linear clause issues on combined constructs) 2015-05-19 18:16:15 +02:00
reduction-1.C
reduction-2.C
reduction-3.C
reduction-4.C backport: re PR fortran/46752 (OpenMP - Seg fault for unallocated allocatable array in firstprivate clause) 2011-08-02 18:13:29 +02:00
sections-1.C
shared-1.C
shared-2.C
simd-1.C target.c: New file. 2013-10-11 11:26:50 +02:00
simd-2.C target.c: New file. 2013-10-11 11:26:50 +02:00
simd-3.C target.c: New file. 2013-10-11 11:26:50 +02:00
simd-4.C target.c: New file. 2013-10-11 11:26:50 +02:00
simd-5.C target.c: New file. 2013-10-11 11:26:50 +02:00
simd-6.C target.c: New file. 2013-10-11 11:26:50 +02:00
simd-7.C target.c: New file. 2013-10-11 11:26:50 +02:00
simd-8.C target.c: New file. 2013-10-11 11:26:50 +02:00
simd-9.C re PR middle-end/61252 (Invalid code produced for omp simd reduction(min:var) where var is reference) 2014-05-21 10:04:03 +02:00
simd10.C gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator not mentioned in clauses use private clause if... 2014-06-24 09:53:52 +02:00
simd11.C gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator not mentioned in clauses use private clause if... 2014-06-24 09:53:52 +02:00
simd12.C gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator not mentioned in clauses use private clause if... 2014-06-24 09:53:52 +02:00
simd13.C gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator not mentioned in clauses use private clause if... 2014-06-24 09:53:52 +02:00
single-1.C
single-2.C
single-3.C
target-1.C target.c: New file. 2013-10-11 11:26:50 +02:00
target-2-aux.cc target.c: New file. 2013-10-11 11:26:50 +02:00
target-2.C target.c: New file. 2013-10-11 11:26:50 +02:00
target-3.C target.c: New file. 2013-10-11 11:26:50 +02:00
target-4.C c-decl.c (c_decl_attributes): Also add "omp declare target" attribute for DECL_EXTERNAL VAR_DECLs. 2015-03-19 20:12:43 +01:00
task-1.C
task-2.C
task-3.C
task-4.C
task-5.C
task-6.C
task-7.C
task-8.C re PR target/49965 (libgomp.c++/reduction-4.C and libgomp.c++/task-8.C FAIL on Solaris 11/SPARC) 2011-08-05 12:22:10 +00:00
taskgroup-1.C target.c: New file. 2013-10-11 11:26:50 +02:00
tls-init1.C * semantics.c (finish_omp_threadprivate): Call complete_type. 2012-10-25 11:53:40 -04:00
udr-1.C target.c: New file. 2013-10-11 11:26:50 +02:00
udr-2.C target.c: New file. 2013-10-11 11:26:50 +02:00
udr-3.C target.c: New file. 2013-10-11 11:26:50 +02:00
udr-4.C target.c: New file. 2013-10-11 11:26:50 +02:00
udr-5.C target.c: New file. 2013-10-11 11:26:50 +02:00
udr-6.C target.c: New file. 2013-10-11 11:26:50 +02:00
udr-7.C target.c: New file. 2013-10-11 11:26:50 +02:00
udr-8.C target.c: New file. 2013-10-11 11:26:50 +02:00
udr-9.C target.c: New file. 2013-10-11 11:26:50 +02:00
udr-11.C re PR c++/60331 (ICE with OpenMP #pragma omp declare reduction in template class) 2014-03-25 10:30:10 +01:00
udr-12.C re PR c++/60331 (ICE with OpenMP #pragma omp declare reduction in template class) 2014-03-25 10:30:10 +01:00
udr-13.C re PR c++/60331 (ICE with OpenMP #pragma omp declare reduction in template class) 2014-03-25 10:30:10 +01:00
udr-14.C re PR c++/60331 (ICE with OpenMP #pragma omp declare reduction in template class) 2014-03-25 10:30:10 +01:00
udr-15.C re PR c++/60331 (ICE with OpenMP #pragma omp declare reduction in template class) 2014-03-25 10:30:10 +01:00
udr-16.C re PR c++/60331 (ICE with OpenMP #pragma omp declare reduction in template class) 2014-03-25 10:30:10 +01:00
udr-17.C re PR c++/60331 (ICE with OpenMP #pragma omp declare reduction in template class) 2014-03-25 10:30:10 +01:00
udr-18.C re PR c++/60331 (ICE with OpenMP #pragma omp declare reduction in template class) 2014-03-25 10:30:10 +01:00
udr-19.C re PR c++/60331 (ICE with OpenMP #pragma omp declare reduction in template class) 2014-03-25 10:30:10 +01:00