OSDN Git Service

PR fortran/35423
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Apr 2009 10:59:59 +0000 (10:59 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Apr 2009 10:59:59 +0000 (10:59 +0000)
commite2720a06c0e2e7d58d09eea1a6433fb2e54f1ae0
treee982e6dcc0e7f77f8e2d84a9b5d59acecea11936
parent1469afd665e2628b6505fea115daec4b2b3bbff7
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146397 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans-expr.c
gcc/fortran/trans-openmp.c
gcc/fortran/trans-stmt.c
gcc/fortran/trans.c
gcc/fortran/trans.h
libgomp/ChangeLog
libgomp/testsuite/libgomp.fortran/workshare2.f90 [new file with mode: 0644]