gcc/libgomp/testsuite/libgomp.c++
Jakub Jelinek 8ca5b2a2d4 re PR c++/26943 ([gomp] firstprivate + lastprivate uses inefficient barrier)
PR c++/26943
	* omp-low.c (maybe_lookup_decl_in_outer_ctx): New function.
	(build_outer_var_ref): Use maybe_lookup_decl_in_outer_ctx
	to find if var will be a global variable even in the nested context.
	(omp_copy_decl): Only check for global variable at the end, it might
	be overridden in outer contexts.
	(scan_sharing_clauses): For global variables don't create a field.
	(lower_rec_input_clauses): Do nothing for global shared variables.
	Emit a barrier at the end of ILIST if there were any decls in both
	firstprivate and lastprivate clauses.
	(lower_send_clauses): Do nothing for global variables except for
	COPYIN.

	* testsuite/libgomp.c/pr26943-1.c: New test.
	* testsuite/libgomp.c/pr26943-2.c: New test.
	* testsuite/libgomp.c/pr26943-3.c: New test.
	* testsuite/libgomp.c/pr26943-4.c: New test.
	* testsuite/libgomp.c++/pr27337.C: Remove barrier.
	* testsuite/libgomp.c++/pr26943.C: New test.

From-SVN: r113483
2006-05-02 22:03:38 +02:00
..
c++.exp Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
copyin-1.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
copyin-2.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
ctor-1.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
ctor-2.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
ctor-3.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
ctor-4.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
ctor-5.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
ctor-6.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
ctor-7.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
ctor-8.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
ctor-9.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
loop-1.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
loop-2.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
loop-3.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
loop-4.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
loop-5.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
loop-6.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
loop-7.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
master-1.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
nested-1.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
parallel-1.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
pr24455-1.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
pr24455.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
pr26691.C re PR c++/26691 (Wrong code for constructor with default value) 2006-03-21 17:21:24 +01:00
pr26943.C re PR c++/26943 ([gomp] firstprivate + lastprivate uses inefficient barrier) 2006-05-02 22:03:38 +02:00
pr27337.C re PR c++/26943 ([gomp] firstprivate + lastprivate uses inefficient barrier) 2006-05-02 22:03:38 +02:00
reduction-1.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
reduction-2.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
reduction-3.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
sections-1.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
shared-1.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
shared-2.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
single-1.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
single-2.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00
single-3.C Merge C++ from gomp-20050608-branch. 2006-03-09 10:14:39 -08:00