This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r237220 - in /branches/gomp-4_5-branch/gcc: for...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 08 Jun 2016 14:43:41 -0000
- Subject: r237220 - in /branches/gomp-4_5-branch/gcc: for...
Author: jakub
Date: Wed Jun 8 14:43:40 2016
New Revision: 237220
URL: https://gcc.gnu.org/viewcvs?rev=237220&root=gcc&view=rev
Log:
* gfortran.h (symbol_attribute): Add omp_declare_target_link bitfield.
(struct gfc_omp_namelist): Add u.common field.
(struct gfc_common_head): Change omp_declare_target into bitfield.
Add omp_declare_target_link bitfield.
(gfc_add_omp_declare_target_link): New prototype.
* openmp.c (gfc_match_omp_to_link): New function.
(gfc_match_omp_clauses): Use it for to and link clauses in declare
target construct.
(OMP_DECLARE_TARGET_CLAUSES): Define.
(gfc_match_omp_declare_target): Rewritten for OpenMP 4.5.
* symbol.c (check_conflict): Handle omp_declare_target_link.
(gfc_add_omp_declare_target_link): New function.
(gfc_copy_attr): Copy omp_declare_target_link.
* module.c (enum ab_attribute): Add AB_OMP_DECLARE_TARGET_LINK.
(attr_bits): Add AB_OMP_DECLARE_TARGET_LINK entry.
(mio_symbol_attribute): Save and restore omp_declare_target_link bit.
* f95-lang.c (gfc_attribute_table): Add "omp declare target link".
* trans-decl.c (add_attributes_to_decl): Add "omp declare target link"
instead of "omp declare target" for omp_declare_target_link.
* trans-common.c (build_common_decl): Likewise.
* openmp.c (gfc_match_omp_declare_simd): If not using the form with
(proc-name), require space before first clause.
testsuite/
* gfortran.dg/gomp/declare-target-1.f90: New test.
* gfortran.dg/gomp/declare-target-2.f90: New test.
Added:
branches/gomp-4_5-branch/gcc/testsuite/gfortran.dg/gomp/declare-target-1.f90
branches/gomp-4_5-branch/gcc/testsuite/gfortran.dg/gomp/declare-target-2.f90
Modified:
branches/gomp-4_5-branch/gcc/fortran/ChangeLog.gomp
branches/gomp-4_5-branch/gcc/fortran/f95-lang.c
branches/gomp-4_5-branch/gcc/fortran/gfortran.h
branches/gomp-4_5-branch/gcc/fortran/module.c
branches/gomp-4_5-branch/gcc/fortran/openmp.c
branches/gomp-4_5-branch/gcc/fortran/symbol.c
branches/gomp-4_5-branch/gcc/fortran/trans-common.c
branches/gomp-4_5-branch/gcc/fortran/trans-decl.c
branches/gomp-4_5-branch/gcc/testsuite/ChangeLog.gomp