[PR89773] Fortran OpenACC 'routine' directive refuses procedures with implicit EXTERN...
authorThomas Schwinge <thomas@codesourcery.com>
Thu, 21 Mar 2019 20:02:42 +0000 (21:02 +0100)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Thu, 21 Mar 2019 20:02:42 +0000 (21:02 +0100)
commitf6bf4bc14d8ab24acad0b0d42cde5e08d1c3a879
tree73785376b5214f7593d237e5753362e5df843f49
parent8ced98c6431c67b4f11b3eb4997b955b97472dc4
[PR89773] Fortran OpenACC 'routine' directive refuses procedures with implicit EXTERNAL attribute

gcc/fortran/
PR fortran/89773
* gfortran.h (gfc_oacc_routine_name): Add loc member.
(gfc_resolve_oacc_routines): Declare.
* openmp.c (gfc_match_oacc_routine): Move some error checking
into...
(gfc_resolve_oacc_routines): ... this new function.
* resolve.c (resolve_codes): Call it.
gcc/testsuite/
PR fortran/89773
* gfortran.dg/goacc/pr89773.f90: New file.
* gfortran.dg/goacc/pr77765.f90: Adjust.
* gfortran.dg/goacc/routine-6.f90: Adjust, and extend.

From-SVN: r269857
gcc/fortran/ChangeLog
gcc/fortran/gfortran.h
gcc/fortran/openmp.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/goacc/pr77765.f90
gcc/testsuite/gfortran.dg/goacc/pr89773.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/goacc/routine-6.f90