https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72741

--- Comment #8 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Author: tschwinge
Date: Fri Feb 22 10:50:35 2019
New Revision: 269105

URL: https://gcc.gnu.org/viewcvs?rev=269105&root=gcc&view=rev
Log:
[PR72741] Use 'oacc_build_routine_dims' for Fortran OpenACC 'routine'
directives, too

... instead of having an incomplete local implementation.

With these changes in place, we can then also revert the work-around r267213
"[nvptx] Unify C/Fortran routine handling in nvptx_goacc_validate_dims".

        gcc/fortran/
        PR fortran/72741
        * gfortran.h (oacc_routine_lop): New enum.
        (symbol_attribute): Use it.
        * openmp.c (gfc_oacc_routine_dims): Replace with...
        (gfc_oacc_routine_lop): ... this new function.
        (gfc_match_oacc_routine): Adjust.
        * trans-decl.c (add_attributes_to_decl): Likewise.
        gcc/
        PR fortran/72741
        * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
        (oacc_replace_fn_attrib_attr): ... this new function.
        * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
        * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert
workaround.
        gcc/testsuite/
        PR fortran/72741
        * gfortran.dg/goacc/classify-routine.f95: Adjust.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/nvptx/nvptx.c
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/gfortran.h
    trunk/gcc/fortran/openmp.c
    trunk/gcc/fortran/trans-decl.c
    trunk/gcc/omp-general.c
    trunk/gcc/omp-general.h
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/goacc/classify-routine.f95

Reply via email to