]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/c-family/ChangeLog
Implement P0732R2, class types in non-type template parameters.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
index b6ff1f783b32ed8f47ef97a2de7e9bed0148d842..fbafb9da2fb00b0152708b270a9eb8c4f554b655 100644 (file)
@@ -1,3 +1,100 @@
+2018-10-19  Jason Merrill  <jason@redhat.com>
+
+       * c-cppbuiltin.c (c_cpp_builtins): Add
+       __cpp_nontype_template_parameter_class.
+
+2018-10-31  Nathan Sidwell  <nathan@acm.org>
+
+       * c-opts.c (c_finish_options): Force command line macro
+       location.  Refactor to avoid repeating main debug hook.
+       (push_command_line_include): Clarify comment.
+
+       * c-opts.c (c_finish_options): Adjust cpp_force_token_locations call.
+
+2018-10-30  Martin Sebor  <msebor@redhat.com>
+
+       PR middle-end/87041
+       * c-format.c (check_format_types): Avoid diagnosing null pointer
+       arguments to printf-family of functions.
+
+2018-10-30  Marek Polacek  <polacek@redhat.com>
+
+       Implement P0892R2, explicit(bool).
+       * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_explicit_bool.
+
+2018-10-29  David Malcolm  <dmalcolm@redhat.com>
+
+       * name-hint.h (name_hint::take_deferred): New member function.
+
+2018-10-29  David Malcolm  <dmalcolm@redhat.com>
+
+       PR c++/56856
+       * c-common.c (check_function_sentinel): Call fold_for_warn on the
+       argument.
+       (check_function_restrict): Rename param "argarray" to
+       "unfolded_argarray", and make a copy named "argarray", calling
+       fold_for_warn on each argument.
+       (check_function_arguments): Add note about responsibility for
+       folding the arguments.
+
+2018-10-17  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-common.c (flag_isoc2x): New variable.
+       * c-common.h (clk_c): Update comment to reference C2X.
+       (flag_isoc99, flag_isoc11): Update comments to reference future
+       standard versions in general.
+       (flag_isoc2x): Declare.
+       * c-opts.c (set_std_c2x): New function.
+       (c_common_handle_option): Handle -std=c2x and -std=gnu2x.
+       (set_std_c89, set_std_c99, set_std_c11, set_std_c17): Set
+       flag_isoc2x to 0.
+       * c.opt (Wc11-c2x-compat, std=c2x, std=gnu2x): New options.
+
+2018-10-17  Joseph Myers  <joseph@codesourcery.com>
+
+       * c.opt (std=c17, std=c18, std=gnu17, std=gnu18, std=iso9899:2017)
+       (std=iso9899:2018): Document C17 as published in 2018.
+
+2018-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
+
+       PR c++/87364
+       * c-pretty-print.c (c_pretty_printer::constant): Fix typo.
+
+2018-10-11  Will Wray  <wjwray@gmail.com>
+
+       PR c++/87364
+       * c-pretty-print.h (pp_c_type_cast): Prototype.
+       (pp_c_integer_constant): Likewise.
+       * c-pretty-print.c (pp_c_type_cast): No longer static.
+       (pp_c_integer_constant): Likewise.
+       (pp_c_enumeration_constant): Fix loop termination when finding
+       name of constant.  No longer returns a value.  Call
+       pp_c_integer_constant.
+       (c_pretty_printer::constant): Update for changes to
+       pp_c_enumeration_constant.
+
+2018-10-11  Jakub Jelinek  <jakub@redhat.com>
+
+       * c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312
+       for no_unique_address.
+
+2018-10-09  David Malcolm  <dmalcolm@redhat.com>
+
+       * c-common.c (c_option_controlling_cpp_error): Rename to...
+       (c_option_controlling_cpp_diagnostic): ...this, and convert
+       "reason" from int to enum.
+       (c_cpp_error): Rename to...
+       (c_cpp_diagnostic): ...this, converting level and reason to enums.
+       * c-common.h (c_cpp_error): Rename to...
+       (c_cpp_diagnostic): ...this, converting level and reason to enums.
+       * c-opts.c (c_common_init_options): Update for renaming.
+
+2018-10-08  Richard Sandiford  <richard.sandiford@arm.com>
+
+       PR c/87286
+       * c-common.c (vector_types_compatible_elements_p): Use
+       INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE.
+
 2018-10-04  Vinay Kumar  <vinay.kumar@blackfigtech.com>
 
        * c-attribs.c (get_priority): Add a warning flag warn_prio_ctor_dtor