aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-parser.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2019-08-09 09:23:03 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2019-08-09 09:23:03 +0200
commit2c3b8badaac235ce78ce22ac7582346d16118987 (patch)
tree46f3346aa8d08711f83cb6e66e4fa9b511045998 /gcc/c/c-parser.c
parent5dd6b2daae47fc9b6d8802391cde4c4819c82564 (diff)
downloadgcc-2c3b8badaac235ce78ce22ac7582346d16118987.zip
gcc-2c3b8badaac235ce78ce22ac7582346d16118987.tar.gz
gcc-2c3b8badaac235ce78ce22ac7582346d16118987.tar.bz2
re PR c/91401 (schedule + dist_schedule clauses rejected on distribute parallel for)
PR c/91401 c/ * c-parser.c (c_parser_omp_clause_dist_schedule): Fix up typos in the check_no_duplicate_clause call. Comment it out, instead emit a warning for duplicate dist_schedule clauses. cp/ * parser.c (cp_parser_omp_clause_dist_schedule): Comment out the check_no_duplicate_clause call, instead emit a warning for duplicate dist_schedule clauses. testsuite/ * c-c++-common/gomp/pr91401-1.c: New test. * c-c++-common/gomp/pr91401-2.c: New test. From-SVN: r274226
Diffstat (limited to 'gcc/c/c-parser.c')
-rw-r--r--gcc/c/c-parser.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c
index 9b5cfcf..9585ba2 100644
--- a/gcc/c/c-parser.c
+++ b/gcc/c/c-parser.c
@@ -14811,7 +14811,10 @@ c_parser_omp_clause_dist_schedule (c_parser *parser, tree list)
c_parser_skip_until_found (parser, CPP_CLOSE_PAREN,
"expected %<,%> or %<)%>");
- check_no_duplicate_clause (list, OMP_CLAUSE_SCHEDULE, "schedule");
+ /* check_no_duplicate_clause (list, OMP_CLAUSE_DIST_SCHEDULE,
+ "dist_schedule"); */
+ if (omp_find_clause (list, OMP_CLAUSE_DIST_SCHEDULE))
+ warning_at (loc, 0, "too many %qs clauses", "dist_schedule");
if (t == error_mark_node)
return list;