This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r106942 - in /branches/gomp-20050608-branch/gcc...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 15 Nov 2005 08:03:29 -0000
- Subject: r106942 - in /branches/gomp-20050608-branch/gcc...
Author: jakub
Date: Tue Nov 15 08:03:28 2005
New Revision: 106942
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106942
Log:
* c-omp.c (check_omp_for_incr_expr): New function.
(c_finish_omp_for): Use it to check and canonicalize INCR.
Error if lhs of INCR MODIFY_EXPR isn't DECL or if RHS is DECL.
Only look at COND operands after checking its TREE_CODE.
* gcc.dg/gomp/for-17.c: New test.
* g++.dg/gomp/for-18.C: New test.
Added:
branches/gomp-20050608-branch/gcc/testsuite/g++.dg/gomp/for-18.C
branches/gomp-20050608-branch/gcc/testsuite/gcc.dg/gomp/for-17.c
Modified:
branches/gomp-20050608-branch/gcc/ChangeLog.gomp
branches/gomp-20050608-branch/gcc/c-omp.c
branches/gomp-20050608-branch/gcc/testsuite/ChangeLog.gomp