[PR72741] For all Fortran OpenACC 'routine' directive variants check for multiple...
authorThomas Schwinge <thomas@codesourcery.com>
Thu, 28 Feb 2019 20:31:23 +0000 (21:31 +0100)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Thu, 28 Feb 2019 20:31:23 +0000 (21:31 +0100)
commite5fd6684b9577e822997ceedabfeaa7d61722fe2
treea9ce3a476a0cc9f399634c7fe84677a40a285410
parent6f87db2d7823ff70eca4fa76950aafe8a98d7356
[PR72741] For all Fortran OpenACC 'routine' directive variants check for multiple clauses specifying the level of parallelism

gcc/fortran/
PR fortran/72741
* gfortran.h (enum oacc_routine_lop): Add OACC_ROUTINE_LOP_ERROR.
* openmp.c (gfc_oacc_routine_lop, gfc_match_oacc_routine): Use it.
* trans-decl.c (add_attributes_to_decl): Likewise.
gcc/testsuite/
PR fortran/72741
* gfortran.dg/goacc/routine-multiple-lop-clauses-1.f90: New file.

Co-Authored-By: Cesar Philippidis <cesar@codesourcery.com>
From-SVN: r269286
gcc/fortran/ChangeLog
gcc/fortran/gfortran.h
gcc/fortran/openmp.c
gcc/fortran/trans-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/goacc/routine-multiple-lop-clauses-1.f90 [new file with mode: 0644]