parser.c (cp_parser_omp_clause_name): Add auto, gang, seq, vector, worker.
authorNathan Sidwell <nathan@gcc.gnu.org>
Tue, 27 Oct 2015 20:19:24 +0000 (20:19 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 27 Oct 2015 20:19:24 +0000 (20:19 +0000)
commit0d0774412e77ac167e73bdd1ef86ea7ccad9ee8d
treebc4d1f9c4508250442becfc8b0d42e51b0a61c63
parent8ab78162c0dfc65aef769516ba77560566577113
parser.c (cp_parser_omp_clause_name): Add auto, gang, seq, vector, worker.

gcc/cp/
* parser.c (cp_parser_omp_clause_name): Add auto, gang, seq,
vector, worker.
(cp_parser_oacc_simple_clause): New.
(cp_parser_oacc_shape_clause): New.
(cp_parser_oacc_all_clauses): Add auto, gang, seq, vector, worker.
(OACC_LOOP_CLAUSE_MASK): Likewise.
* semantics.c (finish_omp_clauses): Add auto, gang, seq, vector,
worker. Unify the handling of teams, tasks and vector_length with
the other loop shape clauses.

gcc/testsuite/
* g++.dg/g++.dg/gomp/pr33372-1.C: Adjust diagnostic.
* gcc/testsuite/g++.dg/gomp/pr33372-3.C: Likewise.

From-SVN: r229460
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/pr33372-1.C
gcc/testsuite/g++.dg/gomp/pr33372-3.C