[PR fortran/63865] OpenACC cache directive: match Fortran support with C/C++
authorThomas Schwinge <thomas@codesourcery.com>
Tue, 27 Oct 2015 16:54:52 +0000 (17:54 +0100)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Tue, 27 Oct 2015 16:54:52 +0000 (17:54 +0100)
commit33497fd242760dcd0db7f69596a0aec21c735b35
tree42870bcd2643f2dd30e91b84a0dbf6619385a2c5
parentd34b48146ac2f07e78825c3e99da2e2e588f3c3d
[PR fortran/63865] OpenACC cache directive: match Fortran support with C/C++

gcc/fortran/
PR fortran/63865
* openmp.c (resolve_oacc_cache): Remove function.
(gfc_match_oacc_cache): Enable array sections.
(resolve_omp_clauses, gfc_resolve_oacc_directive): Change
accordingly.
* trans-openmp.c (gfc_trans_omp_clauses): Likewise.
gcc/testsuite/
PR fortran/63865
* gfortran.dg/goacc/coarray.f95: Expect the OpenACC cache
directive to work.
* gfortran.dg/goacc/loop-1.f95: Likewise.
* gfortran.dg/goacc/cache-1.f95: Likewise, and extend testing.
* gfortran.dg/goacc/cray.f95: Likewise.
* gfortran.dg/goacc/parameter.f95: Likewise.

Co-Authored-By: James Norris <jnorris@codesourcery.com>
From-SVN: r229448
gcc/fortran/ChangeLog
gcc/fortran/openmp.c
gcc/fortran/trans-openmp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/goacc/cache-1.f95
gcc/testsuite/gfortran.dg/goacc/coarray.f95
gcc/testsuite/gfortran.dg/goacc/cray.f95
gcc/testsuite/gfortran.dg/goacc/loop-1.f95
gcc/testsuite/gfortran.dg/goacc/parameter.f95