[PR89433] Use 'oacc_verify_routine_clauses' for C/C++ OpenACC 'routine' directives
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 17 May 2019 19:13:15 +0000 (21:13 +0200)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Fri, 17 May 2019 19:13:15 +0000 (21:13 +0200)
commit5bf04509f437ff175c001a1c84a13b3a845174eb
tree05c7809fb44b3510da14c00b79c3d9443f04d7d7
parente03436e7ac2ddbbf397a6d64309b01ad37cfcadf
[PR89433] Use 'oacc_verify_routine_clauses' for C/C++ OpenACC 'routine' directives

gcc/
PR middle-end/89433
* omp-general.c (oacc_build_routine_dims): Move some of its
processing into...
(oacc_verify_routine_clauses): ... this new function.
* omp-general.h (oacc_verify_routine_clauses): New prototype.
gcc/c/
PR c/89433
* c-parser.c (c_parser_oacc_routine): Normalize order of clauses.
(c_finish_oacc_routine): Call oacc_verify_routine_clauses.
gcc/cp/
PR c++/89433
* parser.c (cp_parser_oacc_routine)
(cp_parser_late_parsing_oacc_routine): Normalize order of clauses.
(cp_finalize_oacc_routine): Call oacc_verify_routine_clauses.
gcc/testsuite/
PR testsuite/89433
* c-c++-common/goacc/routine-2.c: Update, and move some test
into...
* c-c++-common/goacc/routine-level-of-parallelism-1.c: ... this
new file.

From-SVN: r271344
gcc/ChangeLog
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/omp-general.c
gcc/omp-general.h
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/goacc/routine-2.c
gcc/testsuite/c-c++-common/goacc/routine-level-of-parallelism-1.c [new file with mode: 0644]