r194507 - in /branches/cilkplus/gcc: ChangeLog....

bviyer@gcc.gnu.org bviyer@gcc.gnu.org
Fri Dec 14 20:17:00 GMT 2012


Author: bviyer
Date: Fri Dec 14 20:17:42 2012
New Revision: 194507

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194507
Log:
Reject const, volatile induction vars and invalid comparisons in Cilk_for.
+++ gcc/testsuite/ChangeLog.cilkplus
+2012-12-14  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+	* gcc.dg/cilk-plus/cilk_keywords_test/errors/cilk_for_invalid_compares.c: 
+	New test.
+	* gcc.dg/cilk-plus/cilk_keywords_test/errors/cilk_for_volatile_var.c:
+	Likewise.
+

+++ gcc/ChangeLog.cilkplus	(working copy)
@@ -1,3 +1,11 @@
+2012-12-14  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+	* c/c-parser.c (c_parser_cilk_for_statement): Replaced unknown location with the
+	correct location value.
+	* c/c-typeck.c (c_finish_cilk_loop): Checked if the increment is one of
+	the following: !=, <=, <, >=, or >.  Report error otherwise.  Also 
+	report error if the induction variable is constant or volatile.
+

Added:
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/cilk_keywords_test/errors/cilk_for_invalid_compares.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/cilk_keywords_test/errors/cilk_for_volatile_var.c
Modified:
    branches/cilkplus/gcc/ChangeLog.cilkplus
    branches/cilkplus/gcc/c/c-parser.c
    branches/cilkplus/gcc/c/c-typeck.c
    branches/cilkplus/gcc/testsuite/ChangeLog.cilkplus



More information about the Gcc-cvs mailing list