diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2019-02-28 21:31:23 +0100 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gcc.gnu.org> | 2019-02-28 21:31:23 +0100 |
commit | e5fd6684b9577e822997ceedabfeaa7d61722fe2 (patch) | |
tree | a9ce3a476a0cc9f399634c7fe84677a40a285410 /gcc/fortran/gfortran.h | |
parent | 6f87db2d7823ff70eca4fa76950aafe8a98d7356 (diff) | |
download | gcc-e5fd6684b9577e822997ceedabfeaa7d61722fe2.zip gcc-e5fd6684b9577e822997ceedabfeaa7d61722fe2.tar.gz gcc-e5fd6684b9577e822997ceedabfeaa7d61722fe2.tar.bz2 |
[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
Diffstat (limited to 'gcc/fortran/gfortran.h')
-rw-r--r-- | gcc/fortran/gfortran.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/fortran/gfortran.h b/gcc/fortran/gfortran.h index f0258b3..3e0f634 100644 --- a/gcc/fortran/gfortran.h +++ b/gcc/fortran/gfortran.h @@ -323,7 +323,8 @@ enum oacc_routine_lop OACC_ROUTINE_LOP_GANG, OACC_ROUTINE_LOP_WORKER, OACC_ROUTINE_LOP_VECTOR, - OACC_ROUTINE_LOP_SEQ + OACC_ROUTINE_LOP_SEQ, + OACC_ROUTINE_LOP_ERROR }; /* Strings for all symbol attributes. We use these for dumping the |