openmp.c (match_oacc_clause_gang): Rename to ...
authorCesar Philippidis <cesar@codesourcery.com>
Wed, 29 Jun 2016 16:04:42 +0000 (09:04 -0700)
committerCesar Philippidis <cesar@gcc.gnu.org>
Wed, 29 Jun 2016 16:04:42 +0000 (09:04 -0700)
commit27f67461842af37e9b63426b6d6ab38a016a0f70
treee4b488ef67897d595ede65fd2202cb2318412b04
parentb1206d294ac3bbc2353a6f94e492423e44054059
openmp.c (match_oacc_clause_gang): Rename to ...

gcc/fortran/
* openmp.c (match_oacc_clause_gang): Rename to ...
(match_oacc_clause_gwv): this.  Add support for OpenACC worker and
vector clauses.
(gfc_match_omp_clauses): Use match_oacc_clause_gwv for
OMP_CLAUSE_{GANG,WORKER,VECTOR}.  Propagate any MATCH_ERRORs for
invalid OMP_CLAUSE_{ASYNC,WAIT,GANG,WORKER,VECTOR} clauses.
(gfc_match_oacc_wait): Propagate MATCH_ERROR for invalid
oacc_expr_lists.  Adjust the first and needs_space arguments to
gfc_match_omp_clauses.

gcc/testsuite/
* gfortran.dg/goacc/asyncwait-2.f95: Updated expected diagnostics.
* gfortran.dg/goacc/asyncwait-3.f95: Likewise.
* gfortran.dg/goacc/asyncwait-4.f95: Add test coverage.

From-SVN: r237854
gcc/fortran/ChangeLog
gcc/fortran/openmp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/goacc/asyncwait-2.f95
gcc/testsuite/gfortran.dg/goacc/asyncwait-3.f95
gcc/testsuite/gfortran.dg/goacc/asyncwait-4.f95