aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/ChangeLog
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c/ChangeLog')
-rw-r--r--gcc/c/ChangeLog149
1 files changed, 148 insertions, 1 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog
index aff4866d915..cd0c128edc8 100644
--- a/gcc/c/ChangeLog
+++ b/gcc/c/ChangeLog
@@ -1,8 +1,155 @@
+2017-08-11 Marek Polacek <polacek@redhat.com>
+
+ PR c/81795
+ * c-decl.c (pushtag): Only print inform if the warning was printed.
+ (grokdeclarator): Likewise.
+
+2017-08-10 David Malcolm <dmalcolm@redhat.com>
+
+ * c-parser.c (c_parser_error): Rename to...
+ (c_parser_error_richloc): ...this, making static, and adding
+ "richloc" parameter, passing it to the c_parse_error call,
+ rather than calling c_parser_set_source_position_from_token.
+ (c_parser_error): Reintroduce, reimplementing in terms of the
+ above, converting return type from void to bool.
+ (class token_pair): New class.
+ (struct matching_paren_traits): New struct.
+ (matching_parens): New typedef.
+ (struct matching_brace_traits): New struct.
+ (matching_braces): New typedef.
+ (get_matching_symbol): New function.
+ (c_parser_require): Add param MATCHING_LOCATION, using it to
+ highlight matching "opening" tokens for missing "closing" tokens.
+ (c_parser_skip_until_found): Likewise.
+ (c_parser_static_assert_declaration_no_semi): Convert explicit
+ parsing of CPP_OPEN_PAREN and CPP_CLOSE_PAREN to use of
+ class matching_parens, so that the pertinent open parenthesis is
+ highlighted when there are problems locating the close
+ parenthesis.
+ (c_parser_struct_or_union_specifier): Likewise.
+ (c_parser_typeof_specifier): Likewise.
+ (c_parser_alignas_specifier): Likewise.
+ (c_parser_simple_asm_expr): Likewise.
+ (c_parser_braced_init): Likewise, for matching_braces.
+ (c_parser_paren_condition): Likewise, for matching_parens.
+ (c_parser_switch_statement): Likewise.
+ (c_parser_for_statement): Likewise.
+ (c_parser_asm_statement): Likewise.
+ (c_parser_asm_operands): Likewise.
+ (c_parser_cast_expression): Likewise.
+ (c_parser_sizeof_expression): Likewise.
+ (c_parser_alignof_expression): Likewise.
+ (c_parser_generic_selection): Likewise.
+ (c_parser_postfix_expression): Likewise for cases RID_VA_ARG,
+ RID_OFFSETOF, RID_TYPES_COMPATIBLE_P, RID_AT_SELECTOR,
+ RID_AT_PROTOCOL, RID_AT_ENCODE, reindenting as necessary.
+ In case CPP_OPEN_PAREN, pass loc_open_paren to the
+ c_parser_skip_until_found call.
+ (c_parser_objc_class_definition): Use class matching_parens as
+ above.
+ (c_parser_objc_method_decl): Likewise.
+ (c_parser_objc_try_catch_finally_statement): Likewise.
+ (c_parser_objc_synchronized_statement): Likewise.
+ (c_parser_objc_at_property_declaration): Likewise.
+ (c_parser_oacc_wait_list): Likewise.
+ (c_parser_omp_var_list_parens): Likewise.
+ (c_parser_omp_clause_collapse): Likewise.
+ (c_parser_omp_clause_default): Likewise.
+ (c_parser_omp_clause_if): Likewise.
+ (c_parser_omp_clause_num_threads): Likewise.
+ (c_parser_omp_clause_num_tasks): Likewise.
+ (c_parser_omp_clause_grainsize): Likewise.
+ (c_parser_omp_clause_priority): Likewise.
+ (c_parser_omp_clause_hint): Likewise.
+ (c_parser_omp_clause_defaultmap): Likewise.
+ (c_parser_oacc_single_int_clause): Likewise.
+ (c_parser_omp_clause_ordered): Likewise.
+ (c_parser_omp_clause_reduction): Likewise.
+ (c_parser_omp_clause_schedule): Likewise.
+ (c_parser_omp_clause_num_teams): Likewise.
+ (c_parser_omp_clause_thread_limit): Likewise.
+ (c_parser_omp_clause_aligned): Likewise.
+ (c_parser_omp_clause_linear): Likewise.
+ (c_parser_omp_clause_safelen): Likewise.
+ (c_parser_omp_clause_simdlen): Likewise.
+ (c_parser_omp_clause_depend): Likewise.
+ (c_parser_omp_clause_map): Likewise.
+ (c_parser_omp_clause_device): Likewise.
+ (c_parser_omp_clause_dist_schedule): Likewise.
+ (c_parser_omp_clause_proc_bind): Likewise.
+ (c_parser_omp_clause_uniform): Likewise.
+ (c_parser_omp_for_loop): Likewise.
+ (c_parser_cilk_clause_vectorlength): Likewise.
+ (c_parser_cilk_clause_linear): Likewise.
+ (c_parser_transaction_expression): Likewise.
+ * c-parser.h (c_parser_require): Add param matching_location with
+ default UNKNOWN_LOCATION.
+ (c_parser_error): Convert return type from void to bool.
+ (c_parser_skip_until_found): Add param matching_location with
+ default UNKNOWN_LOCATION.
+
+2017-08-09 Marek Polacek <polacek@redhat.com>
+
+ * c-decl.c (build_enumerator): Use true/false instead of 1/0.
+ * c-tree.h (build_external_ref): Update declaration.
+ * c-typeck.c (build_array_ref): Use true/false instead of 1/0.
+ (build_external_ref): Change the type of a parameter to bool.
+ (parser_build_binary_op): Use true/false instead of 1/0.
+ (pointer_diff): Likewise.
+ (build_modify_expr): Likewise.
+ (set_designator): Change the type of a parameter to bool.
+ (set_init_index): Use true/false instead of 1/0.
+ (set_init_label): Likewise.
+ (output_init_element): Change the type of a parameter to bool.
+ (output_pending_init_elements): Use true/false instead of 1/0.
+ (process_init_element): Likewise.
+ (build_binary_op): Change the type of a parameter to bool.
+
+2017-08-09 Marek Polacek <polacek@redhat.com>
+
+ PR c/81233
+ * c-typeck.c (pedwarn_init): Make the function take a variable list.
+ Call emit_diagnostic_valist instead of pedwarn.
+ (convert_for_assignment): Unroll the PEDWARN_FOR_ASSIGNMENT macro.
+ Print the relevant types in diagnostics.
+
+2017-08-09 Marek Polacek <polacek@redhat.com>
+
+ PR c/81417
+ * c-array-notation.c (fix_builtin_array_notation_fn): Update calls to
+ build_conditional_expr.
+ * c-parser.c (c_parser_conditional_expression): Create locations for
+ EXP1 and EXP2 from their source ranges. Pass the locations down to
+ build_conditional_expr.
+ * c-tree.h (build_conditional_expr): Update declaration.
+ * c-typeck.c (build_conditional_expr): Add location_t parameters.
+ For -Wsign-compare, also print the types.
+
+2017-08-08 Martin Liska <mliska@suse.cz>
+
+ * c-convert.c: Include header files.
+ * c-typeck.c: Likewise.
+
+2017-08-07 Martin Liska <mliska@suse.cz>
+
+ * c-parser.c (c_parser_attributes): Canonicalize name of an
+ attribute.
+
+2017-08-02 Marek Polacek <polacek@redhat.com>
+
+ PR c/81289
+ * c-parser.c (c_parser_unary_expression): Use set_error.
+
+ PR c/81448
+ PR c/81306
+ * c-warn.c (warn_for_multistatement_macros): Prevent bogus
+ warnings. Avoid walking MACRO_MAP_LOCATIONS.
+
2017-07-31 Jan Hubicka <hubicka@ucw.cz>
Martin Liska <mliska@suse.cz>
* c-typeck.c (c_finish_goto_label): Build gimple predict
- stament.
+ statement.
2017-07-31 Martin Liska <mliska@suse.cz>