openmp: Diagnose invalid OpenMP schedule(simd, static)
authorJakub Jelinek <jakub@redhat.com>
Tue, 16 Jun 2020 14:30:05 +0000 (16:30 +0200)
committerJakub Jelinek <jakub@redhat.com>
Tue, 16 Jun 2020 14:30:05 +0000 (16:30 +0200)
commitfab46c5df7500f2ce640f98320d47a19d3de8a2f
tree5f66022c0b652a94ea9079291e48af6d6111fdcb
parente70fbee1a3dd9fdeb661366dbf3096d76c4e2d6e
openmp: Diagnose invalid OpenMP schedule(simd, static)

2020-06-16  Jakub Jelinek  <jakub@redhat.com>

gcc/c/
* c-parser.c (c_parser_omp_clause_schedule): Reject modifier separated
from kind by comma rather than colon.
gcc/cp/
* parser.c (cp_parser_omp_clause_schedule): Reject modifier separated
from kind by comma rather than colon.
gcc/testsuite/
* c-c++-common/gomp/schedule-modifiers-2.c: New test.
gcc/c/c-parser.c
gcc/cp/parser.c
gcc/testsuite/c-c++-common/gomp/schedule-modifiers-2.c [new file with mode: 0644]