[PR89433] Repeated use of the C/C++ OpenACC 'routine' directive
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 17 May 2019 19:13:26 +0000 (21:13 +0200)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Fri, 17 May 2019 19:13:26 +0000 (21:13 +0200)
commitb48f44bf77a39fefc238a16cf1225c6464c82406
treef549ea742dbc826500b30235525ef9fb96769ad4
parent5bf04509f437ff175c001a1c84a13b3a845174eb
[PR89433] Repeated use of the C/C++ OpenACC 'routine' directive

gcc/
PR middle-end/89433
* omp-general.c (oacc_verify_routine_clauses): Change formal
parameters.  Add checking if already marked with an OpenACC
'routine' directive.  Adjust all users.
gcc/c/
PR c/89433
* c-parser.c (c_finish_oacc_routine): Rework checking if already
marked with an OpenACC 'routine' directive.
gcc/cp/
PR c++/89433
* parser.c (cp_finalize_oacc_routine): Rework checking if already
marked with an OpenACC 'routine' directive.
gcc/testsuite/
PR testsuite/89433
* c-c++-common/goacc/routine-5.c: Update.
* c-c++-common/goacc/routine-level-of-parallelism-1.c: Likewise.
* c-c++-common/goacc/routine-level-of-parallelism-2.c: New file.

From-SVN: r271345
12 files changed:
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-5.c
gcc/testsuite/c-c++-common/goacc/routine-level-of-parallelism-1.c
gcc/testsuite/c-c++-common/goacc/routine-level-of-parallelism-2.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/goacc/routine-level-of-parallelism-1.f90