Added some more error checking (e.g. multiple stmts in _Cilk for etc.)

gcc/c-family/ChangeLog.cilkplus
+2012-12-16  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       * c-cilk.c (extract_for_fields): Set invalid to false as the
+       initialization value.  Replaced unreachable with a comparison error.
+       Also, added a check if the end-value is less than start value for
+       _Cilk_for.
+       (compute_loop_var): Set the convert value to unsigned long for pointer
+       type count.
+       (build_cilk_for_body): Added a check for pointer type, and if so, do
+       a type convert (this is done twice).
+


gcc/ChangeLog.cilkplus
+2012-12-16  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       * c/c-typeck.c (c_finish_cilk_loop): Added a check for multiple expr. in
+       condition or increment inside a _Cilk_for.  If so, then emit an error.
+       * c/c-parser.c (c_parser_cilk_for_statement): Added a check for
+       multiple expressions for initialization for a Cilk_for. If so, then
+       emit an error.
+

gcc/testsuite/ChangeLog.cilkplus
+2012-12-16  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       * gcc.dg/cilk-plus/cilk_keywords_test/errors/cilk_for_invalid_cmp3.c:
+       New test.
+       * gcc.dg/cilk-plus/cilk_keywords_test/errors/cilk_for_invalid_cmp2.c:
+       Likewise.
+       * gcc.dg/cilk-plus/cilk_keywords_test/errors/cilk_for_multiple_init.c:
+       Likewise.
+



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

testsuite/ChangeLog.cilkplus

+       * gcc.dg/cilk-plus/cilk_keywords_test/errors/concec_cilk_spawn.c:
+       Likewise.

gcc/ChangeLog.cilkplus

+       (c_parser_postfix_expression): Added check for consecutive _Cilk_spawn
+       keyword.  If found, emit and error.




git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@194542 138bc75d-0d04-0410-961f-82ee72b054a4
Reject Spawned functions inside a compound expression.
+++ gcc/testsuite/ChangeLog.cilkplus 
+       * gcc.dg/cilk-plus/cilk_keywords_test/errors/compound_cilk_spawn.c:
+       Likewise.

+++ gcc/ChangeLog.cilkplus  
+       (build_compound_expr): Added a check for spawned function call in a
+       compound expression.  If so, then emit an error.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@194543 138bc75d-0d04-0410-961f-82ee72b054a4
Reject storage classes for _Cilk_for induction variable.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@194547 138bc75d-0d04-0410-961f-82ee72b054a4
Fixed the pointer iterator issue in Cilk_for.

gcc/c-family/ChangeLog.cilkplus
+2012-12-17  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       * c-cilk.c (compute_loop_var): Added a check for integral type of loop
+       var and set the count type accordingly.  Removed all occurances of
+       checking the pointer type.
+       (build_cilk_for_body): Likewise.
+       (declare_cilk_for_vars): Changed the generic name form new iteration
+       var. and inherited it from the existing one.
+

gcc/testsuite/ChangeLog.cilkplus
+2012-12-17  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       * gcc.dg/cilk-plus/cilk_keywords_test/execute/cilk_for_ptr_iter.c:
+       New test.
+



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@194550 138bc75d-0d04-0410-961f-82ee72b054a4
Fixed a bug with cilk_for with decrement instead of increment.


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


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@194585 138bc75d-0d04-0410-961f-82ee72b054a4
Replaced all the fatal_errors with error_at in tree-vect-loop.c

2012-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>

        * tree-vect-loop.c (vect_determine_vectorization_factor): Replaced all
        occurances of "fatal_error" with error_at with vect_location.
        (vect_analyze_loop_form): Likewise.
        (vect_analyze_loop_operations): Likewise.
        (vect_analyze_loop): Likewise.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@194602 138bc75d-0d04-0410-961f-82ee72b054a4
Fixed a memory leak.
2012-12-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>

        * elem-function-common.c (find_elem_fn_parm_type_1): Freed a malloced
        variable.
        (find_elem_fn_name): Likewise.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@194674 138bc75d-0d04-0410-961f-82ee72b054a4
Merge branch 'cilkplus' of git://github.com/mirrors/gcc into cilkplus

update to most recent version
Reverted libcilkrts files to 2068.


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