Uncapitalized some error messages and added location to some errors.

+2013-01-02  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+	* parser.c (cp_parser_cilk_for_expression_iterator): Uncapitalized an
+	error message and added appropriate location to error message.
+	(cp_parser_jump_statement): Likewise.
+	* cp-cilk.c (copy_decl_for_cilk): Likewise.
+	


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@194830 138bc75d-0d04-0410-961f-82ee72b054a4
Merged with trunk at revision 194832.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@194854 138bc75d-0d04-0410-961f-82ee72b054a4
Merged with trunk at revision 194958.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@194982 138bc75d-0d04-0410-961f-82ee72b054a4
Merged with trunk at revision 195057.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@195058 138bc75d-0d04-0410-961f-82ee72b054a4
Fixed a bug of spawning lambda functions.
testsuite/ChangeLog.cilkplus
+2013-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       * g++.dg/cilk-plus/cilk_keywords_test/execute/c++11-tests/lambda_spawns.cc: 
New test.
+       * g++.dg/cilk-plus/cilk_keywords_test/execute/c++11-tests/lambda_spawns_tplt.cc: 
New test.
+       * g++.dg/cilk-plus/cilk_keywords_test/execute/c++11-tests/execute.exp:
+       New script.
+


gcc/ChangeLog.cilkplus
+2013-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       * gimplify.c (gimplify_expr): Added a check to see if error has occured.
+       If so, then don't even try to handle the spawn since the program is
+       wrong anyway.
+

gcc/cp/ChangeLog.cilkplus
+2013-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       * semantics.c (finish_call_expr): Added a check for lambda expression
+       that is spawned.  If so, then we store it to a variable and spawn that.
+       * mangle.c (write_encoding): Added a check to see if the function is a
+       cilk helper function.
+       (write_qualified_name): Likewise.
+       (write_bare_function_type): Likewise.
+       * lex.c (unqualified_fn_lookup_error): Removed an unnecessary if-stmt.
+       * cp-cilk.c (cilk_lambda_fn_temp): New function.
+
 


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@195068 138bc75d-0d04-0410-961f-82ee72b054a4
Added a test case that was accidentally omitted.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@195069 138bc75d-0d04-0410-961f-82ee72b054a4
Updated the YEAR on copyright notice.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@195099 138bc75d-0d04-0410-961f-82ee72b054a4
Merged with trunk at revision 195140.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@195181 138bc75d-0d04-0410-961f-82ee72b054a4
Merged with trunk at revision 195329.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@195336 138bc75d-0d04-0410-961f-82ee72b054a4
Removed setting ASSEMBLER NAME in elemental function.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@195390 138bc75d-0d04-0410-961f-82ee72b054a4
fixed an infinite loop error in Cilk pragma grainsize.
+2013-01-22  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       * gcc.dg/cilk-plus/cilk_keywords_test/errors/grainsize_error1.c: New
+       test.
+

+2013-01-22  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       * c/c-parser.c (c_parser_cilk_grainsize): Added a function call to skip
+       to the end of pragma whenever an error occurred.
+



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@195392 138bc75d-0d04-0410-961f-82ee72b054a4
Fixed a bug with assembler name setting.
+2013-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       * cgraphunit.c (cgraph_finalize_function): If cilkplus is enabled and
+       if it is a cloned elemental function, then we force its output.
+

+2013-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       * c-cpp-elem-function.c (elem_fn_create_fn): Set the assembler name and
+       a function as elemental function before adding the node.
+



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@195442 138bc75d-0d04-0410-961f-82ee72b054a4
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.
+




git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@195480 138bc75d-0d04-0410-961f-82ee72b054a4
Added the test cases which got omitted in the last commit.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@195481 138bc75d-0d04-0410-961f-82ee72b054a4
Merged with trunk at revision 195497.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@195501 138bc75d-0d04-0410-961f-82ee72b054a4
Added exception support for spawned function.

gcc/c-family/ChangeLog.cilkplus
+2013-02-04  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+	* c-cilk.c (build_cilk_wrapper_body): Replaced the function call for
+	install_body_with_frame_cleanup with the one from langhooks.
+	(build_cilk_for_body): Likewise.
+	(install_body_with_frame_cleanup): Renamed this function to
+	c_install_body_with_frame_cleanup.
+
gcc/ChangeLog.cilkplus
+2013-02-04  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+	* cilk.c (cilk_init_builtins): Defined __cilkrts_rethrow builtin
+	function.
+	(build_cilk_sync): Added code to set exception flag and exception data
+	in the stack frame.  Also added code to call __cilkrts_rethrow function.
+	Finally, inserted this code in the appropriate location of if-stmt.
+	(set_cilk_except_flag): New function.
+	(clear_cilk_except_flag): Likewise.
+	(set_cilk_except_data): Likewise.
+	(build_cilk_catch_sync): Likewise.
+	* cilk-builtins.def (BUILT_IN_CILK_RETHROW): New builtin function.
+	* c/c-objc-common.h (LANG_HOOKS_FRAME_CLEANUP): Set this hook to
+	c_install_body_with_frame_cleanup.
+	* langhooks-def.h (LANG_HOOKS_FRAME_CLEANUP): New #define.
+	(lhd_install_body_with_frame_cleanup): New function.
+	* langhooks.h (lang_hooks_for_cilkplus): New struct field called
+	"install_body_with_frame_cleanup."
+
gcc/cp/ChangeLog.cilkplus
+2013-02-04  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+	* cp-cilk.c (insert_sync_stmt_after_catch): New function.
+	(cp_install_body_with_frame_cleanup): Likewise.
+	(cp_make_cilk_frame): called walk_tree with insert_sync_stmt_after_catch
+	as a function call parameter.
+	* cp-objcp-common.h (LANG_HOOKS_FRAME_CLEANUP): New define.
+	* except.c (do_begin_catch): Made this routine non-static.
+	(do_end_catch): Likewise.
+

gcc/testsuite/ChangeLog.cilkplus
+2013-02-04  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+	* g++.dg/cilk-plus/cilk_keywords_test/execute/catch_exc.cc: New test.
+



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@195724 138bc75d-0d04-0410-961f-82ee72b054a4
Fixed a couple bugs.
+++ gcc/ChangeLog.cilkplus
+2013-02-05  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       * cilk.c (output_zca_table): Defined the integer size to a hard number.
+       * c/c-typeck.c (convert_arguments): Added a check for function being
+       not null.
+       * c/c-parser.c (c_parser_cilk_grainsize): Added a check for the tree
+       C_MAYBE_CONST_EXPR.  If so, then reject the grainsize.  Also, convert
+       the grainsize to long signed int.
+

+++ gcc/c-family/ChangeLog.cilkplus
+2013-02-05  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       * c-cilk.c (extract_for_fields): Added a check if the increment value
+       is a constant and if it is less than zero.  If so, then don't go into
+       the body of the if-statement.
+

+++ gcc/testsuite/ChangeLog.cilkplus
+2013-02-05  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       * gcc.dg/cilk-plus/cilk_keywords_test/errors/no_args_error.c: New test.
+       * gcc.dg/cilk-plus/cilk_keywords_test/errors/wraparound.c: Likewise.
+       * gcc.dg/cilk-plus/cilk_keywords_test/errors/grainsize_error3.c:
+       Likewise.
+       * gcc.dg/cilk-plus/cilk_keywords_test/errors/grainsize_error2.c:
+       Likewise.
+



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@195764 138bc75d-0d04-0410-961f-82ee72b054a4
Removed symbol test from the libcilkrts.so.
+2013-02-05  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       * Makefile.in (am_libcilkrts_la_OBJECTS): Removed symbol_test.
+       * Makefile.am (libcilkrts_la_SOURCES): Likewise.
+



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@195765 138bc75d-0d04-0410-961f-82ee72b054a4
Added the testsuite files that were accidentally omitted.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@195767 138bc75d-0d04-0410-961f-82ee72b054a4
Fixed a bug on 32 bit machine.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@195769 138bc75d-0d04-0410-961f-82ee72b054a4