gcc/libgomp/testsuite
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
..
lib libjava.exp (libjava_init): Recognize multilib directory names containing underscores. 2006-04-10 21:34:19 +00:00
libgomp.c re PR c++/26943 ([gomp] firstprivate + lastprivate uses inefficient barrier) 2006-05-02 22:03:38 +02:00
libgomp.c++ re PR c++/26943 ([gomp] firstprivate + lastprivate uses inefficient barrier) 2006-05-02 22:03:38 +02:00
libgomp.fortran trans-openmp.c (gfc_trans_omp_variable): Handle references to parent result. 2006-03-13 22:44:04 +01:00
Makefile.am [multiple changes] 2006-01-18 14:21:25 -05:00
Makefile.in re PR libgomp/25865 (libgomp incorrectly detects support for TLS) 2006-04-25 13:58:25 -07:00