re PR fortran/87725 (OpenMP 4.5 clause schedule(simd,monotonic:static) not understood)
authorJakub Jelinek <jakub@redhat.com>
Thu, 25 Oct 2018 07:56:55 +0000 (09:56 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 25 Oct 2018 07:56:55 +0000 (09:56 +0200)
commit37bc33f72cba7ca8a13b60eea7abecb09559b0fc
tree0e3f6a5d98795f9be2cb4fcb4ec43f456d2fd761
parent872324bed46845ee78c764d55eeeb5029afae532
re PR fortran/87725 (OpenMP 4.5 clause schedule(simd,monotonic:static) not understood)

PR fortran/87725
* openmp.c (gfc_match_omp_clauses): Parse simd, monotonic and
nonmonotonic modifiers regardless of if they have been parsed
already or if the opposite one has.  Fix up check whether
comma after modifier should be parsed.
(resolve_omp_clauses): Diagnose schedule modifier restrictions.

* c-c++-common/gomp/schedule-modifiers-1.c (bar): Separate modifier
from kind with a colon rather than comma.
* gfortran.dg/gomp/schedule-modifiers-1.f90: New test.
* gfortran.dg/gomp/schedule-modifiers-2.f90: New test.

From-SVN: r265479
gcc/fortran/ChangeLog
gcc/fortran/openmp.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/schedule-modifiers-1.c
gcc/testsuite/gfortran.dg/gomp/schedule-modifiers-1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/schedule-modifiers-2.f90 [new file with mode: 0644]