r195480 - in /branches/cilkplus/gcc: ChangeLog....
bviyer@gcc.gnu.org
bviyer@gcc.gnu.org
Fri Jan 25 23:44:00 GMT 2013
Author: bviyer
Date: Fri Jan 25 23:44:12 2013
New Revision: 195480
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195480
Log:
Allowed array notation builtin functions in return expression.
gcc/ChangeLog.cilkplus
@@ -1,3 +1,10 @@
+2013-01-25 Balaji V. Iyer <balaji.v.iyer@intel.com>
+
+ * c/c-typeck.c (c_finish_return): Added a check if the return expr is
+ a builtin array-notation function. If so, then we don't issue error.
+ * c/c-array-notation.c (fix_return_expr): New function.
+ (expand_array_notation_exprs): Added a RETURN_EXPR case.
+
gcc/cp/ChangeLog.cilkplus
+2013-01-25 Balaji V. Iyer <balaji.v.iyer@intel.com>
+
+ * semantics.c (finish_return_stmt): Added a check if return expression
+ is a builtin array notation function. If so, then don't issue an
+ error.
+ * cp-array-notation.c (find_rank): Added a FUNCTION_DECL case.
+ (fix_array_notation_exprs): Added a RETURN_EXPR case.
+ (fix_return_expr): New function.
+ * call.c (build_over_call): Add a check if the function is a built-in
+ array notation function call. If so, then don't do any type-casting.
+
gcc/testsuite/ChangeLog.cilkplus
+2013-01-25 Balaji V. Iyer <balaji.v.iyer@intel.com>
+
+ * g++.dg/cilk-plus/array_notation_tests/execute/builtin-in-if.cc: Added
+ the dg-do run and dg-options flags on top of the file.
+ * g++.dg/cilk-plus/array_notation_tests/execute/builtin-in-if.cc:
+ Likewise.
+ * g++.dg/cilk-plus/array_notation_tests/execute/builtin_fn_custom_tplt.cc:
+ Likewise.
+ * g++.dg/cilk-plus/array_notation_tests/execute/comma_exp.cc: Likewise.
+ * g++.dg/cilk-plus/array_notation_tests/execute/exec-once.cc: Likewise.
+ * g++.dg/cilk-plus/array_notation_tests/execute/n-ptr-test.cc: Likewise.
+ * gcc.dg/cilk-plus/cilk_keywords_test/errors/grainsize_error.c:
+ New test case.
+ * gcc.dg/cilk-plus/cilk_keywords_test/errors/test_builtin_return.c:
+ Likewise.
+ * g++.dg/cilk-plus/array_notation_tests/execute/test_builtin_return.cc:
+ Likewise.
+
Modified:
branches/cilkplus/gcc/ChangeLog.cilkplus
branches/cilkplus/gcc/c/c-array-notation.c
branches/cilkplus/gcc/c/c-typeck.c
branches/cilkplus/gcc/cp/ChangeLog.cilkplus
branches/cilkplus/gcc/cp/call.c
branches/cilkplus/gcc/cp/cp-array-notation.c
branches/cilkplus/gcc/cp/semantics.c
branches/cilkplus/gcc/testsuite/ChangeLog.cilkplus
branches/cilkplus/gcc/testsuite/g++.dg/cilk-plus/array_notation_tests/execute/an-if.cc
branches/cilkplus/gcc/testsuite/g++.dg/cilk-plus/array_notation_tests/execute/builtin-in-if.cc
branches/cilkplus/gcc/testsuite/g++.dg/cilk-plus/array_notation_tests/execute/builtin_fn_custom.cc
branches/cilkplus/gcc/testsuite/g++.dg/cilk-plus/array_notation_tests/execute/builtin_fn_custom_tplt.cc
branches/cilkplus/gcc/testsuite/g++.dg/cilk-plus/array_notation_tests/execute/comma_exp.cc
branches/cilkplus/gcc/testsuite/g++.dg/cilk-plus/array_notation_tests/execute/exec-once.cc
branches/cilkplus/gcc/testsuite/g++.dg/cilk-plus/array_notation_tests/execute/n-ptr-test.cc
More information about the Gcc-cvs
mailing list