r236657 - in /branches/gomp-4_5-branch/gcc: for...

jakub@gcc.gnu.org jakub@gcc.gnu.org
Tue May 24 17:55:00 GMT 2016


Author: jakub
Date: Tue May 24 17:55:06 2016
New Revision: 236657

URL: https://gcc.gnu.org/viewcvs?rev=236657&root=gcc&view=rev
Log:
	* gfortran.h (enum gfc_omp_linear_op): New.
	(struct gfc_omp_namelist): Add u.linear_op field.
	* openmp.c (gfc_match_omp_clauses): Add support for parsing
	linear clause modifiers.
	(resolve_omp_clauses): Diagnose linear clause modifiers when not
	in declare simd.  Only check for integer type if ref modifier is not
	used.  Remove diagnostics for required VALUE attribute.  Diagnose
	VALUE attribute with ref or uval modifiers.  Allow non-constant
	linear-step, if it is a dummy argument alone and is mentioned in
	uniform clause.
	* dump-parse-tree.c (show_omp_namelist): Print linear clause
	modifiers.
	* trans-openmp.c (gfc_trans_omp_clauses): Test declare_simd
	instead of block == NULL_TREE.  Translate linear clause modifiers
	and clause with uniform dummy argument linear-step.

	* gfortran.dg/gomp/declare-simd-2.f90: New test.
	* gfortran.dg/gomp/linear-1.f90: New test.

Added:
    branches/gomp-4_5-branch/gcc/testsuite/gfortran.dg/gomp/declare-simd-2.f90
    branches/gomp-4_5-branch/gcc/testsuite/gfortran.dg/gomp/linear-1.f90
Modified:
    branches/gomp-4_5-branch/gcc/fortran/ChangeLog.gomp
    branches/gomp-4_5-branch/gcc/fortran/dump-parse-tree.c
    branches/gomp-4_5-branch/gcc/fortran/gfortran.h
    branches/gomp-4_5-branch/gcc/fortran/openmp.c
    branches/gomp-4_5-branch/gcc/fortran/trans-openmp.c
    branches/gomp-4_5-branch/gcc/testsuite/ChangeLog.gomp



More information about the Gcc-cvs mailing list