c-parser.c (check_no_duplicate_clause): Simplify using omp_find_clause.
authorJakub Jelinek <jakub@redhat.com>
Fri, 9 Aug 2019 07:24:51 +0000 (09:24 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 9 Aug 2019 07:24:51 +0000 (09:24 +0200)
commitbb522e2eea23703375e65a044c93e8144ef4664e
treec970ba6f39747a06886a21ef0f9c58c7ac763d1b
parent2c3b8badaac235ce78ce22ac7582346d16118987
c-parser.c (check_no_duplicate_clause): Simplify using omp_find_clause.

c/
* c-parser.c (check_no_duplicate_clause): Simplify using
omp_find_clause.
(c_parser_omp_clause_if): Fix up printing of target {enter,exit} data
directive name modifiers.
(c_parser_omp_clause_proc_bind): Check for duplicate proc_bind clause.
cp/
* parser.c (check_no_duplicate_clause): Simplify using
omp_find_clause.
(cp_parser_omp_clause_if): Fix up printing of target {enter,exit} data
directive name modifiers.
testsuite/
* c-c++-common/gomp/if-4.c: New test.
* c-c++-common/gomp/clause-dups-1.c: New test.

From-SVN: r274227
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/clause-dups-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/gomp/if-4.c [new file with mode: 0644]