c-parser.c (c_parser_omp_all_clauses): Change bool NESTED_P argument into int NESTED...
authorJakub Jelinek <jakub@redhat.com>
Mon, 14 Oct 2019 06:52:46 +0000 (08:52 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 14 Oct 2019 06:52:46 +0000 (08:52 +0200)
commitb9424661f58de6c0aa9dc4c855c1fd913cc06282
tree3a68fda9b91c308cf0facc6af4dd010531cb86b5
parentdede82f21ba8b569ad0f5538a0c00216ea71d2b4
c-parser.c (c_parser_omp_all_clauses): Change bool NESTED_P argument into int NESTED...

c/
* c-parser.c (c_parser_omp_all_clauses): Change bool NESTED_P argument
into int NESTED, if it is 2, diagnose missing commas in between
clauses.
(c_parser_omp_context_selector): Pass 2 as last argument to
c_parser_omp_all_clauses.
cp/
* parser.c (cp_parser_omp_all_clauses): Change bool NESTED_P argument
into int NESTED, if it is 2, diagnose missing commas in between
clauses.
(cp_parser_omp_context_selector): Pass 2 as last argument to
cp_parser_omp_all_clauses.
testsuite/
* c-c++-common/gomp/declare-variant-7.c: Add tests for clauses not
separated by commas in simd selector trait properties.

From-SVN: r276950
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/declare-variant-7.c