diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2019-02-22 11:50:35 +0100 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gcc.gnu.org> | 2019-02-22 11:50:35 +0100 |
commit | 68034b1bc2058fd3c78b0f583e718e8443346580 (patch) | |
tree | bdb11b9ae34f705b45276d4d5b45627460b70e74 /gcc/tree-vect-loop.c | |
parent | c319667adff8cc10e87ff836f72d5a7471e942c6 (diff) | |
download | gcc-68034b1bc2058fd3c78b0f583e718e8443346580.zip gcc-68034b1bc2058fd3c78b0f583e718e8443346580.tar.gz gcc-68034b1bc2058fd3c78b0f583e718e8443346580.tar.bz2 |
[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.
Co-Authored-By: Cesar Philippidis <cesar@codesourcery.com>
From-SVN: r269105
Diffstat (limited to 'gcc/tree-vect-loop.c')
0 files changed, 0 insertions, 0 deletions