re PR c/45784 (gcc OpenMP - error: invalid controlling predicate)
[gcc.git] / gcc / c-family / ChangeLog
index dd2cd519401a1d0a1619df784fc0bf1856b6cde4..c05ca124ddc93fabd2fb8209e6a8385bd74a12d9 100644 (file)
@@ -1,3 +1,245 @@
+2017-07-27  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c/45784
+       * c-omp.c (c_finish_omp_for): If the condition is wrapped in
+       rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
+       new COMPOUND_EXPRs around the rhs of the comparison.
+
+2017-07-27  Marek Polacek  <polacek@redhat.com>
+
+       PR c/81417
+       * c-warn.c (warn_for_sign_compare): Tweak the warning message.  Print
+       the types.
+
+2017-07-27  Jakub Jelinek  <jakub@redhat.com>
+
+       * c-attribs.c (c_common_attribute_table): Add noipa attribute.
+       (handle_noipa_attribute): New function.
+
+2017-07-07  Torsten Duwe  <duwe@suse.de>
+
+       * c-attribs.c (c_common_attribute_table): Add entry for
+       "patchable_function_entry".
+
+2017-07-20  Nathan Sidwell  <nathan@acm.org>
+
+       Remove TYPE_METHODS.
+       * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
+       dump_ada_template, print_ada_methods,
+       print_ada_declaration): Member fns are on TYPE_FIELDS.
+
+2017-07-18  Nathan Sidwell  <nathan@acm.org>
+
+       * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
+
+2017-07-14  David Malcolm  <dmalcolm@redhat.com>
+
+       * c-common.c (try_to_locate_new_include_insertion_point): New
+       function.
+       (per_file_includes_t): New typedef.
+       (added_includes_t): New typedef.
+       (added_includes): New variable.
+       (maybe_add_include_fixit): New function.
+       * c-common.h (maybe_add_include_fixit): New decl.
+
+2017-07-10  Martin Sebor  <msebor@redhat.com>
+
+       PR other/81345
+       * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
+
+2017-07-06  David Malcolm  <dmalcolm@redhat.com>
+
+       * c-common.c (selftest::c_family_tests): New.
+       * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
+       (selftest::c_family_tests): New decl.
+
+2017-07-04  Marek Polacek  <polacek@redhat.com>
+
+       PR c/81231
+       * c-common.c (sync_resolve_size): Give error for pointers to incomplete
+       types.
+
+2017-07-04  Marek Polacek  <polacek@redhat.com>
+
+       * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
+
+2017-06-28  Martin Liska  <mliska@suse.cz>
+
+       PR ipa/81128
+       * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
+       to a function declaration.
+
+2017-06-28  Martin Liska  <mliska@suse.cz>
+
+       PR driver/79659
+       * c.opt: Add IntegerRange to various options.
+
+2017-06-26  Marek Polacek  <polacek@redhat.com>
+
+       PR c/80116
+       * c-common.h (warn_for_multistatement_macros): Declare.
+       * c-warn.c: Include "c-family/c-indentation.h".
+       (warn_for_multistatement_macros): New function.
+       * c.opt (Wmultistatement-macros): New option.
+       * c-indentation.c (guard_tinfo_to_string): No longer static.
+       Change the parameter type to "enum rid".  Handle RID_SWITCH.
+       * c-indentation.h (guard_tinfo_to_string): Declare.
+
+2017-06-23  Marc Glisse  <marc.glisse@inria.fr>
+
+       * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
+
+2017-06-15  Martin Sebor  <msebor@redhat.com>
+
+       PR c++/80560
+       * c.opt (-Wclass-memaccess): New option.
+
+2017-06-14  Boris Kolpackov  <boris@codesynthesis.com>
+
+       * c-opts.c (c_common_finish): Handle '-' special value to -MF.
+
+2017-06-13  Marek Polacek  <polacek@redhat.com>
+
+       PR objc/80949
+       * c-warn.c (do_warn_duplicated_branches): Return if any of the
+       branches is null.
+
+2017-06-13  Martin Liska  <mliska@suse.cz>
+
+       PR sanitize/78204
+       * c-attribs.c (add_no_sanitize_value): New function.
+       (handle_no_sanitize_attribute): Likewise.
+       (handle_no_sanitize_address_attribute): Use the function.
+       (handle_no_sanitize_thread_attribute): New function.
+       (handle_no_address_safety_analysis_attribute): Use
+       add_no_sanitize_value.
+       (handle_no_sanitize_undefined_attribute): Likewise.
+       * c-common.h: Declare new functions.
+       * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
+       (ubsan_instrument_shift): Likewise.
+       (ubsan_instrument_bounds): Likewise.
+       (ubsan_maybe_instrument_array_ref): Likewise.
+       (ubsan_maybe_instrument_reference_or_call): Likewise.
+
+2017-06-11  Jason Merrill  <jason@redhat.com>
+
+       * c-ada-spec.c, c-pragma.c: Use id_equal.
+
+2017-06-04  Marek Polacek  <polacek@redhat.com>
+
+       PR c/80919
+       * c-format.c (matching_type_p): Return false if any of the types
+       requires structural equality.
+
+2017-06-02  Martin Sebor  <msebor@redhat.com>
+
+       PR c/80892
+       * c-warn.c (conversion_warning): Use -Wconversion for integer
+       conversion and -Wfloat-conversion for floating one.
+
+2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
+
+       * c.opt (Wsizeof-pointer-div): New warning option.
+
+2017-06-01  Volker Reichelt  <v.reichelt@netcologne.de>
+
+       * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
+       (Wcatch-value=1): Enable by -Wall.
+
+2017-05-30  David Malcolm  <dmalcolm@redhat.com>
+
+       * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
+       format_chars.
+       * c.opt (fdiagnostics-show-template-tree): New option.
+       (felide-type): New option.
+
+2017-05-25  Volker Reichelt  <v.reichelt@netcologne.de>
+
+       * c.opt (Wcatch-value=): New C++ warning flag.
+
+2017-05-24  Nathan Sidwell  <nathan@acm.org>
+
+       * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
+       const casts to avoid warning.
+
+2017-05-24  Martin Sebor  <msebor@redhat.com>
+
+       PR c/80731
+       * c-common.h (unsafe_conversion_p): Add a function argument.
+       * c-common.c (unsafe_conversion_p): Same.
+       Add type names and values to diagnostics.
+       (scalar_to_vector): Adjust.
+       * c-warn.c (constant_expression_error): Add a function argument.
+       Add type names and values to diagnostics.
+       (conversion_warning): Add a function argument.
+       Add type names and values to diagnostics.
+       (warnings_for_convert_and_check): Same.
+
+2017-05-19  Jason Merrill  <jason@redhat.com>
+
+       * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
+       enumerators.
+
+2017-05-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
+
+       * c-format.c (locus): Move out of function scope,
+       add GTY attribute.
+
+2017-05-19  Nathan Sidwell  <nathan@acm.org>
+
+       * c-opts.c (class_dump_file, class_dump_flags): Delete.
+       (c_common_parse_file): Remove class dump handling.
+       (get_dump_info): Likewise.
+
+2017-05-19  Richard Biener  <rguenther@suse.de>
+
+       PR c++/80593
+       * c-warn.c (strict_aliasing_warning): Do not warn for accesses
+       to alias-set zero memory.
+
+2017-05-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
+
+       * c-format.c (local_tree_type_node): Add GTY attribute.
+
+2017-05-18  Marek Polacek  <polacek@redhat.com>
+
+       * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
+       (c_common_fixed_point_type_for_size): Likewise.
+       (c_common_type_for_mode): Likewise.
+       (shorten_compare): Likewise.
+       (c_promoting_integer_type_p): Use false/true instead of 0/1.
+       * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
+
+2017-05-18  Marek Polacek  <polacek@redhat.com>
+
+       * c-common.c (self_promoting_args_p): Change the return type to bool.
+       Use false/true instead of 0/1.
+       * c-common.h (self_promoting_args_p): Update.
+
+2017-05-17  Marek Polacek  <polacek@redhat.com>
+
+       * c-common.c: Use NULL_TREE instead of 0 where appropriate.
+       * c-warn.c: Likewise.
+
+2017-05-17  Ville Voutilainen  <ville.voutilainen@gmail.com>
+
+       Implement new C++ intrinsics __is_assignable and __is_constructible.
+       * c-common.c (__is_assignable, __is_constructible): New.
+       * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
+
+2017-05-17  Martin Liska  <mliska@suse.cz>
+
+       * c-common.h: Introduce dump_flags_t type and
+       use it instead of int type.
+       * c-gimplify.c (c_genericize): Likewise.
+       * c-opts.c: Likewise.
+
+2017-05-17  Marek Polacek  <polacek@redhat.com>
+
+       * c-common.c (c_save_expr): Remove.
+       (c_common_truthvalue_conversion): Remove a call to c_save_expr.
+       * c-common.h (c_save_expr): Remove declaration.
+
 2017-05-09  Volker Reichelt  <v.reichelt@netcologne.de>
 
        PR c/35441