r261595 - in /branches/gomp-5_0-branch/gcc/test...

jakub@gcc.gnu.org jakub@gcc.gnu.org
Thu Jun 14 13:38:00 GMT 2018


Author: jakub
Date: Thu Jun 14 13:38:17 2018
New Revision: 261595

URL: https://gcc.gnu.org/viewcvs?rev=261595&root=gcc&view=rev
Log:
	* gimplify.c (gimplify_omp_depend): New function.
	(gimplify_scan_omp_clauses): Gimplify depend clauses with iterators.
	* omp-low.c (lower_depend_clauses): If OMP_CLAUSE_DEPEND_LAST is seen,
	assume lowering is done already and return early.  Set kind
	on artificial depend clause to OMP_CLAUSE_DEPEND_LAST.
	* tree-pretty-print.c (dump_omp_iterators): New function.
	(dump_omp_clause): Print iterators in depend clauses.  Print
	__internal__ for OMP_CLAUSE_DEPEND_LAST.
gcc/c/
	* c-parser.c (c_parser_omp_iterators): New function.
	(c_parser_omp_clause_depend): Parse iterator modifier and handle
	iterators.
	* c-typeck.c (handle_omp_array_sections): Handle depend clauses
	with iterators.
	(struct c_find_omp_var_s): New type.
	(c_find_omp_var_r): New function.
	(c_omp_finish_iterators): New function.
	(c_finish_omp_clauses): Handle depend clauses with iterators.
gcc/cp/
	* parser.c (cp_parser_omp_iterators): New function.
	(cp_parser_omp_clause_depend): Parse iterator modifier and handle
	iterators.
	* semantics.c (handle_omp_array_sections): Handle depend clauses
	with iterators.
	(cp_omp_finish_iterators): New function.
	(finish_omp_clauses): Handle depend clauses with iterators.
	* pt.c (tsubst_omp_clause_decl): Add iterators_cache argument.
	Adjust recursive calls.  Handle iterators.
	(tsubst_omp_clauses): Adjust tsubst_omp_clause_decl callers.
gcc/testsuite/
	* c-c++-common/gomp/depend-iterator-1.c: New test.
	* c-c++-common/gomp/depend-iterator-2.c: New test.
	* g++.dg/gomp/depend-iterator-1.C: New test.
	* g++.dg/gomp/depend-iterator-2.C: New test.
libgomp/
	* testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
	* testsuite/libgomp.c++/depend-iterator-1.C: New test.

Added:
    branches/gomp-5_0-branch/gcc/testsuite/g++.dg/gomp/depend-iterator-1.C
    branches/gomp-5_0-branch/gcc/testsuite/g++.dg/gomp/depend-iterator-2.C



More information about the Gcc-cvs mailing list