This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r132668 - in /branches/gomp-3_0-branch: gcc/Cha...


Author: jakub
Date: Tue Feb 26 09:29:34 2008
New Revision: 132668

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132668
Log:
	* gimplify.c (gimplify_omp_for): Set OMP_CLAUSE_LASTPRIVATE_STMT
	also if collapse > 1.

	* cp-tree.h (dependent_omp_for_p): New prototype.
	* pt.c (tsubst_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
	OMP_CLAUSE_UNTIED.
	(tsubst_omp_for_iterator): New function.
	(tsubst_expr) <case OMP_FOR>: Use it.  Handle collapsed OMP_FOR
	loops.
	(dependent_omp_for_p): New function.
	* semantics.c (handle_omp_for_class_iterator): New function.
	(finish_omp_for): Use handle_omp_for_class_iterator and
	dependent_omp_for_p.  Handle collapsed for loops.
	* parser.c (cp_parser_omp_clause_collapse): Call
	fold_non_dependent_expr on collapse clause argument.
	(cp_parser_omp_for_loop): Parse collapsed for loops.

	* g++.dg/gomp/pr34607.C: Adjust dg-error location.

	* testsuite/libgomp.c++/for-5.C (I<T>::~I ()): Clear p.
	* testsuite/libgomp.c++/collapse-2.C: New test.
	* testsuite/libgomp.fortran/collapse4.f90: New test.

Added:
    branches/gomp-3_0-branch/libgomp/testsuite/libgomp.c++/collapse-2.C
    branches/gomp-3_0-branch/libgomp/testsuite/libgomp.fortran/collapse4.f90
Modified:
    branches/gomp-3_0-branch/gcc/ChangeLog.gomp
    branches/gomp-3_0-branch/gcc/cp/ChangeLog.gomp
    branches/gomp-3_0-branch/gcc/cp/cp-tree.h
    branches/gomp-3_0-branch/gcc/cp/parser.c
    branches/gomp-3_0-branch/gcc/cp/pt.c
    branches/gomp-3_0-branch/gcc/cp/semantics.c
    branches/gomp-3_0-branch/gcc/gimplify.c
    branches/gomp-3_0-branch/gcc/testsuite/ChangeLog.gomp
    branches/gomp-3_0-branch/gcc/testsuite/g++.dg/gomp/pr34607.C
    branches/gomp-3_0-branch/libgomp/ChangeLog.gomp
    branches/gomp-3_0-branch/libgomp/testsuite/libgomp.c++/for-5.C


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]