summaryrefslogtreecommitdiff
path: root/gcc/c/ChangeLog
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c/ChangeLog')
-rw-r--r--gcc/c/ChangeLog130
1 files changed, 130 insertions, 0 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog
index 819dfeb9be9..313fa7e96bc 100644
--- a/gcc/c/ChangeLog
+++ b/gcc/c/ChangeLog
@@ -1,3 +1,133 @@
+2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
+
+ * c-array-notation.c (make_triplet_val_inv): New function.
+ (create_cmp_incr): Likewise.
+ (create_array_refs): Likewise.
+ (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
+ Also modularized common parts between functions and called the function.
+ (build_array_notation_expr): Likewise.
+ (fix_conditional_array_notations_1): Likewise.
+ (fix_array_notation_expr): Likewise.
+ (fix_array_notation_call_expr): Likewise.
+
+2013-06-18 Marek Polacek <polacek@redhat.com>
+
+ PR c/57630
+ * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
+
+2013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com>
+
+ * c-array-notation.c (build_array_notation_expr): Reject array notation
+ mismatch between LHS and RHS even inside a call_expr. Also, removed
+ a couple while statements that were dead code.
+
+2013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com>
+
+ * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
+ excessive precision expressions in function parameters. Also removed
+ couple unwanted while statements.
+
+2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
+
+ * c-array-notation.c (expand_array_notation_exprs): Added
+ ARRAY_NOTATION_REF case.
+
+2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
+
+ * c-array-notation.c (length_mismatch_in_expr_p): Moved this
+ function to c-family/array-notation-common.c.
+ (is_cilkplus_reduce_builtin): Likewise.
+ (find_rank): Likewise.
+ (extract_array_notation_exprs): Likewise.
+ (replace_array_notations): Likewise.
+ (find_inv_trees): Likewise.
+ (replace_inv_trees): Likewise.
+ (contains_array_notation_expr): Likewise.
+ (find_correct_array_notation_type): Likewise.
+ (replace_invariant_exprs): Initialized additional_tcodes to NULL.
+ (struct inv_list): Moved this to c-family/array-notation-common.c.
+ * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
+
+2013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com>
+
+ * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
+ reduction functions outside the for-loop. Added a check if the fundecl
+ is non-NULL. Finally, removed an unwanted if-statement, and made the
+ body unconditional.
+
+2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
+
+ * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
+ condition of the if-statement matches the rank of else-block and then-
+ block when array notations are used.
+ * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
+ expression after the entire function body is parsed.
+ (c_parser_expr_no_commas): Delayed creating array notation expressions
+ to the end of function parsing.
+ * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
+ whole if-statement instead of just the condition.
+ (expand_array_notation_exprs): Added MODIFY_EXPR case.
+
+2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
+
+ PR c/57474
+ * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
+ array to NULL_TREE if they are unused. Also added a check for the
+ field to be NULL before its fields are used in future.
+
+2013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ PR bootstrap/57450
+ * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
+ (build_array_notation_expr): Likewise.
+
+2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
+
+ * c-typeck.c (build_array_ref): Added a check to see if array's
+ index is greater than one. If true, then emit an error.
+ (build_function_call_vec): Exclude error reporting and checking
+ for builtin array-notation functions.
+ (convert_arguments): Likewise.
+ (c_finish_return): Added a check for array notations as a return
+ expression. If true, then emit an error.
+ (c_finish_loop): Added a check for array notations in a loop
+ condition. If true then emit an error.
+ (lvalue_p): Added a ARRAY_NOTATION_REF case.
+ (build_binary_op): Added a check for array notation expr inside
+ op1 and op0. If present, we call another function to find correct
+ type.
+ * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
+ * c-parser.c (c_parser_compound_statement): Check if array
+ notation code is used in tree, if so, then transform them into
+ appropriate C code.
+ (c_parser_expr_no_commas): Check if array notation is used in LHS
+ or RHS, if so, then build array notation expression instead of
+ regular modify.
+ (c_parser_postfix_expression_after_primary): Added a check for
+ colon(s) after square braces, if so then handle it like an array
+ notation. Also, break up array notations in unary op if found.
+ (c_parser_direct_declarator_inner): Added a check for array
+ notation.
+ (c_parser_compound_statement): Added a check for array notation in
+ a stmt. If one is present, then expand array notation expr.
+ (c_parser_if_statement): Likewise.
+ (c_parser_switch_statement): Added a check for array notations in
+ a switch statement's condition. If true, then output an error.
+ (c_parser_while_statement): Similarly, but for a while.
+ (c_parser_do_statement): Similarly, but for a do-while.
+ (c_parser_for_statement): Similarly, but for a for-loop.
+ (c_parser_unary_expression): Check if array notation is used in a
+ pre-increment or pre-decrement expression. If true, then expand
+ them.
+ (c_parser_array_notation): New function.
+ * c-array-notation.c: New file.
+ * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
+
+2013-05-23 Mike Stump <mikestump@comcast.net>
+
+ * c-typeck.c (convert_for_assignment): Handle references to memory
+ spaces better.
+
2013-05-16 Jason Merrill <jason@redhat.com>
* Make-lang.in (cc1$(exeext)): Use link mutex.