This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r183135 - in /branches/cilkplus/gcc: cp/Make-la...
- From: bviyer at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 12 Jan 2012 18:00:17 -0000
- Subject: r183135 - in /branches/cilkplus/gcc: cp/Make-la...
Author: bviyer
Date: Thu Jan 12 18:00:14 2012
New Revision: 183135
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183135
Log:
2012-01-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
* Make-lang.in: Added cp-array-notation.c file information.
* cp-array-notation.c (replace_array_notations): New function.
(find_rank): Likewise.
(extract_array_notation_exprs): Likewise.
(build_x_array_notation_exprs): Likewise.
* parser.c (cp_parser_array_notation): Likewise.
(cp_parser_nested_name_specifier_opt): Added a check to see if
cilkplus is enabled.
(cp_parser_postfix_open_square_expression): Added a check for CPP_COLON
to handle array notation.
(cp_parser_assignment_expression): Added a check for ARRAY_NOTATION_REF
and if so, then call build_x_array_notation_expr function.
* cp-tree.h: Added prototype for build_x_array_notation_expr.
2012-01-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
* g++.dg/cilk-plus/array_notation_tests/array_test1.cc: New.
* g++.dg/cilk-plus/array_notation_tests/array_test2.cc: New.
* g++.dg/cilk-plus/cilk-plus.exp: Added code to run array notation
tests.
Added:
branches/cilkplus/gcc/cp/cp-array-notation.c
branches/cilkplus/gcc/testsuite/g++.dg/cilk-plus/array_notation_tests/
branches/cilkplus/gcc/testsuite/g++.dg/cilk-plus/array_notation_tests/array_test1.cc
branches/cilkplus/gcc/testsuite/g++.dg/cilk-plus/array_notation_tests/array_test2.cc
Modified:
branches/cilkplus/gcc/cp/Make-lang.in
branches/cilkplus/gcc/cp/cp-tree.h
branches/cilkplus/gcc/cp/parser.c
branches/cilkplus/gcc/testsuite/ChangeLog.cilk
branches/cilkplus/gcc/testsuite/g++.dg/cilk-plus/cilk_plus.exp