gcc/libgomp/testsuite/libgomp.fortran
Vasilis Liaskovitis 34d01e1d17 re PR fortran/35423 (Implement OpenMP workshare)
PR fortran/35423
	* trans.h (OMPWS_WORKSHARE_FLAG, OMPWS_CURR_SINGLEUNIT,
	OMPWS_SCALARIZER_WS, OMPWS_NOWAIT): Define.
	(ompws_flags): New extern decl.
	* trans-array.c (gfc_trans_scalarized_loop_end): Build OMP_FOR
	for the outer dimension if ompws_flags allow it.
	* trans.c (gfc_generate_code): Clear ompws_flags.
	* trans-expr.c (gfc_trans_assignment_1): Allow worksharing
	array assignments inside of !$omp workshare.
	* trans-stmt.c (gfc_trans_where_3): Similarly for where statements
	and constructs.
	* trans-openmp.c (ompws_flags): New variable.
	(gfc_trans_omp_workshare): Rewritten.

	* testsuite/libgomp.fortran/workshare2.f90: New test.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r146397
2009-04-20 12:59:59 +02:00
..
appendix-a a.22.8.f90: Add dg-final cleanup-modules line. 2007-03-21 20:43:14 +01:00
allocatable1.f90 c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
allocatable2.f90 c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
allocatable3.f90 c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
allocatable4.f90 c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
character1.f90
character2.f90
collapse1.f90 c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
collapse2.f90 c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
collapse3.f90 c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
collapse4.f90 c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
condinc1.f re PR fortran/29097 (!$ include 'omp_lib.h' does not work) 2006-09-26 20:06:55 +02:00
condinc1.inc re PR fortran/29097 (!$ include 'omp_lib.h' does not work) 2006-09-26 20:06:55 +02:00
condinc2.f re PR fortran/29097 (!$ include 'omp_lib.h' does not work) 2006-09-26 20:06:55 +02:00
condinc3.f90 re PR fortran/29097 (!$ include 'omp_lib.h' does not work) 2006-09-26 20:06:55 +02:00
condinc4.f90 re PR fortran/29097 (!$ include 'omp_lib.h' does not work) 2006-09-26 20:06:55 +02:00
crayptr1.f90
crayptr2.f90 re PR target/32765 (Testsuite failures due to undefined symbol ___emutls_get_address) 2007-12-17 19:30:08 +00:00
do1.f90
do2.f90
fortran.exp libgomp.exp (libgomp_init): Only set things that depend on blddir if blddir exists. 2008-08-21 15:37:05 +00:00
jacobi.f
lastprivate1.f90 c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
lastprivate2.f90 c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
lib1.f90
lib2.f
lib3.f
lib4.f90 c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
lock-1.f90 c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
lock-2.f90 c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
nested1.f90 c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
nestedfn1.f90
nestedfn2.f90
nestedfn3.f90 re PR middle-end/25261 ([gomp] Nested function calls in #pragma omp parallel blocks) 2006-09-26 20:10:58 +02:00
nestedfn4.f90 c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
omp_atomic1.f90
omp_atomic2.f90
omp_cond1.f
omp_cond2.f
omp_cond3.F90
omp_cond4.F90
omp_hello.f
omp_orphan.f
omp_parse1.f90
omp_parse2.f90
omp_parse3.f90 re PR libgomp/33275 (Transient libgomp.fortran/omp_parse3.f90 -O0 failure) 2007-10-25 22:25:12 +02:00
omp_parse4.f90
omp_reduction.f
omp_workshare1.f
omp_workshare2.f
pr25162.f
pr25219.f90
pr27395-1.f90
pr27395-2.f90
pr27416-1.f90
pr27916-1.f90 re PR fortran/27916 (Problem with allocatable arrays inside OpenMP do loop) 2006-06-09 23:18:42 +02:00
pr27916-2.f90 re PR fortran/27916 (Problem with allocatable arrays inside OpenMP do loop) 2006-06-09 23:18:42 +02:00
pr28390.f re PR fortran/28390 (Broken !$omp parallel do lastprivate(iterationvar)) 2006-07-16 22:19:27 +02:00
pr29629.f90 re PR fortran/29629 (ICE on OpenMP-enabled program (gfc_conv_variable, at fortran/trans-expr.c:404)) 2006-10-29 11:27:39 +01:00
pr32359.f90 re PR fortran/32359 (incorrect error: Threadprivate isn't SAVEd (implicit save attribute undefined)) 2007-07-05 14:51:51 +02:00
pr32550.f90 re PR target/32765 (Testsuite failures due to undefined symbol ___emutls_get_address) 2007-08-15 13:11:40 +00:00
pr33880.f90 re PR middle-end/33880 (ICE: in extract_omp_for_data, at omp-low.c:162) 2008-01-25 13:54:42 +01:00
pr34020.f90 re PR fortran/34020 (Bogus codegen for openmp atomics w/ indirects operands on IPF) 2007-11-10 08:51:55 +01:00
pr35130.f90 re PR middle-end/35130 (OpenMP: Private variable passed to subroutine) 2008-02-15 18:36:43 +01:00
reduction1.f90
reduction2.f90
reduction3.f90 reduction3.f90: Change -2147483648 to -huge(i)-1 to avoid overflow. 2006-09-08 20:57:55 +00:00
reduction4.f90 reduction3.f90: Change -2147483648 to -huge(i)-1 to avoid overflow. 2006-09-08 20:57:55 +00:00
reduction5.f90 a.22.8.f90: Add dg-final cleanup-modules line. 2007-03-21 20:43:14 +01:00
reduction6.f90
reference1.f90
reference2.f90
retval1.f90
retval2.f90
sharing1.f90
sharing2.f90
stack.f90 openmp_stack.f90: Removed. 2007-09-28 15:22:18 +02:00
strassen.f90 c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
tabs1.f90 c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
tabs2.f c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
task1.f90 c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
task2.f90 c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
threadprivate1.f90 a.22.8.f90: Add dg-final cleanup-modules line. 2007-03-21 20:43:14 +01:00
threadprivate2.f90 a.22.8.f90: Add dg-final cleanup-modules line. 2007-03-21 20:43:14 +01:00
threadprivate3.f90 a.22.8.f90: Add dg-final cleanup-modules line. 2007-03-21 20:43:14 +01:00
vla1.f90
vla2.f90
vla3.f90
vla4.f90 c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
vla5.f90 c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
vla6.f90
vla7.f90
workshare1.f90
workshare2.f90 re PR fortran/35423 (Implement OpenMP workshare) 2009-04-20 12:59:59 +02:00