r239784 - in /branches/gomp-4_0-branch/gcc: for...
cesar@gcc.gnu.org
cesar@gcc.gnu.org
Fri Aug 26 15:14:00 GMT 2016
Author: cesar
Date: Fri Aug 26 15:14:56 2016
New Revision: 239784
URL: https://gcc.gnu.org/viewcvs?rev=239784&root=gcc&view=rev
Log:
gcc/fortran/
* gfortran.h (enum oacc_function): Make OACC_FUNCTION_SEQ the last
entry the enum.
(gfc_oacc_routine_name): Add a loc member.
(gfc_resolve_oacc_routine_call): Declare.
(gfc_resolve_oacc_routines): Declare.
* openmp.c (gfc_match_oacc_routine): Make error reporting more
precise. Defer rejection of non-function and subroutine symbols
until gfc_resolve_oacc_routines.
(struct fortran_omp_context): Add a dims member.
(gfc_resolve_oacc_blocks): Update ctx->dims.
(gfc_resolve_oacc_routine_call): New function.
(gfc_resolve_oacc_routines): New function.
* resolve.c (resolve_function): Call gfc_resolve_oacc_routine_call.
(resolve_call): Likewise.
(resolve_codes): Call gfc_resolve_oacc_routines.
gcc/testsuite/
* gfortran.dg/goacc/routine-6.f90: Remove errors deferred to the
resolving stage.
* gfortran.dg/goacc/routine-9.f90: New test.
* gfortran.dg/goacc/routine-nested-parallelism.f: New test.
* gfortran.dg/goacc/routine-nested-parallelism.f90: New test.
Added:
branches/gomp-4_0-branch/gcc/testsuite/gfortran.dg/goacc/routine-9.f90
branches/gomp-4_0-branch/gcc/testsuite/gfortran.dg/goacc/routine-nested-parallelism.f
branches/gomp-4_0-branch/gcc/testsuite/gfortran.dg/goacc/routine-nested-parallelism.f90
Modified:
branches/gomp-4_0-branch/gcc/fortran/ChangeLog.gomp
branches/gomp-4_0-branch/gcc/fortran/gfortran.h
branches/gomp-4_0-branch/gcc/fortran/openmp.c
branches/gomp-4_0-branch/gcc/fortran/resolve.c
branches/gomp-4_0-branch/gcc/testsuite/ChangeLog.gomp
branches/gomp-4_0-branch/gcc/testsuite/gfortran.dg/goacc/routine-6.f90
More information about the Gcc-cvs
mailing list