]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/trans.h
re PR fortran/69128 (OpenMP workshare problem with SUM())
authorJakub Jelinek <jakub@redhat.com>
Fri, 8 Jan 2016 06:45:18 +0000 (07:45 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 8 Jan 2016 06:45:18 +0000 (07:45 +0100)
commit57bf30726cf3695077cde97bd3fd396cb1262eeb
treee9a3324b824366e319e9512c7ab45e0a701976ad
parent53290e072ae4d8e5d61f82d651b6fba309fed6f1
re PR fortran/69128 (OpenMP workshare problem with SUM())

PR fortran/69128
* trans.h (OMPWS_SCALARIZER_BODY): Define.
(OMPWS_NOWAIT): Renumber.
* trans-stmt.c (gfc_trans_where_3): Only set OMPWS_SCALARIZER_WS
if OMPWS_SCALARIZER_BODY is not set already, and set also
OMPWS_SCALARIZER_BODY until the final loop creation.
* trans-expr.c (gfc_trans_assignment_1): Likewise.
* trans-openmp.c (gfc_trans_omp_workshare): Also clear
OMPWS_SCALARIZER_BODY.
* trans-array.c (gfc_trans_scalarized_loop_end): Don't create
OMP_FOR if OMPWS_SCALARIZER_BODY is set.

* gfortran.dg/gomp/pr69128.f90: New test.

From-SVN: r232151
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.h
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/gomp/pr69128.f90 [new file with mode: 0644]