re PR c/81887 (pragma omp ordered simd ignored under -fopenmp-simd)
authorJakub Jelinek <jakub@redhat.com>
Fri, 1 Sep 2017 11:25:39 +0000 (13:25 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 1 Sep 2017 11:25:39 +0000 (13:25 +0200)
commitd2e05fcbdafc26ab0c2babf2b3065d177f71305b
treecb173e95c3a681699e55211508d33bb13bbe064a
parent39baa1d35e4f4157616abf6b1d8e0507e69cbfdc
re PR c/81887 (pragma omp ordered simd ignored under -fopenmp-simd)

PR c/81887
c-family/
* c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
(omp_pragmas_simd): ... here.
* c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
create new clauses list containing just simd clause.
c/
* c-parser.c (c_parser_omp_ordered): Handle -fopenmp-simd.
cp/
* parser.c (cp_parser_omp_ordered): Handle -fopenmp-simd.
fortran/
* parse.c (decode_omp_directive): Use matchs instead of matcho for
end ordered and ordered directives, except for ordered depend.  For
-fopenmp-simd and ordered depend, reject the stmt.
* trans-openmp.c (gfc_trans_omp_ordered): For -fopenmp-simd ignore
threads clause and if simd clause isn't present, just translate the
body.
testsuite/
* c-c++-common/gomp/pr81887.c: New test.
* gfortran.dg/gomp/pr81887.f90: New test.

From-SVN: r251585
13 files changed:
gcc/c-family/ChangeLog
gcc/c-family/c-omp.c
gcc/c-family/c-pragma.c
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/fortran/ChangeLog
gcc/fortran/parse.c
gcc/fortran/trans-openmp.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/pr81887.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/pr81887.f90 [new file with mode: 0644]