rust: build failure after NON_DEPENDENT_EXPR removal [PR111899]
[official-gcc.git] / gcc / c-family / ChangeLog
blobbca51dfc034dde62ee4c8c5dbe5f290b61c5981b
1 2023-10-19  Lewis Hyatt  <lhyatt@gmail.com>
3         PR c++/89038
4         * c-pragma.cc (handle_pragma_diagnostic_impl):  Handle
5         -Wunknown-pragmas during early processing.
7 2023-10-15  Jakub Jelinek  <jakub@redhat.com>
9         PR tree-optimization/111800
10         * c-warn.cc (match_case_to_enum_1): Assert w.get_precision ()
11         is smaller or equal to WIDE_INT_MAX_INL_PRECISION rather than
12         w.get_len () is smaller or equal to WIDE_INT_MAX_INL_ELTS.
14 2023-10-12  Jakub Jelinek  <jakub@redhat.com>
16         PR c/102989
17         * c-warn.cc (match_case_to_enum_1): Use wi::to_wide just once instead
18         of 3 times, assert get_len () is smaller than WIDE_INT_MAX_INL_ELTS.
20 2023-10-02  David Malcolm  <dmalcolm@redhat.com>
22         * c-common.cc (maybe_add_include_fixit): Update for renaming of
23         diagnostic_context's show_caret to m_source_printing.enabled.
24         * c-opts.cc (c_common_init_options): Update for renaming of
25         diagnostic_context's colorize_source_p to
26         m_source_printing.colorize_source_p.
28 2023-09-20  Jakub Jelinek  <jakub@redhat.com>
30         PR c++/111392
31         * c-omp.cc (c_omp_directives): Add commented out groupprivate
32         directive entry.
34 2023-09-19  Ben Boeckel  <ben.boeckel@kitware.com>
36         * c-opts.cc (c_common_handle_option): Add fdeps_file variable and
37         -fdeps-format=, -fdeps-file=, and -fdeps-target= parsing.
38         * c.opt: Add -fdeps-format=, -fdeps-file=, and -fdeps-target=
39         flags.
41 2023-09-19  Javier Martinez  <javier.martinez.bugzilla@gmail.com>
43         * c-attribs.cc (handle_hot_attribute): remove warning on
44         RECORD_TYPE and UNION_TYPE when in c_dialect_xx.
45         (handle_cold_attribute): Likewise.
47 2023-09-19  Jakub Jelinek  <jakub@redhat.com>
49         * c-common.cc (c_common_signed_or_unsigned_type): Return INTEGER_TYPE
50         for signed variant of unsigned _BitInt(1).
52 2023-09-06  Jakub Jelinek  <jakub@redhat.com>
54         PR c/102989
55         * c-attribs.cc (type_valid_for_vector_size): Reject vector types
56         with BITINT_TYPE elements even if they have mode precision and
57         suitable size.
59 2023-09-06  Jakub Jelinek  <jakub@redhat.com>
61         PR c/102989
62         * c-common.cc (c_common_reswords): Add _BitInt as keyword.
63         (unsafe_conversion_p): Handle BITINT_TYPE like INTEGER_TYPE.
64         (c_common_signed_or_unsigned_type): Handle BITINT_TYPE.
65         (c_common_truthvalue_conversion, c_common_get_alias_set,
66         check_builtin_function_arguments): Handle BITINT_TYPE like
67         INTEGER_TYPE.
68         (sync_resolve_size): Add ORIG_FORMAT argument.  If
69         FETCH && !ORIG_FORMAT, type is BITINT_TYPE, return -1 if size isn't
70         one of 1, 2, 4, 8 or 16 or if it is 16 but TImode is not supported.
71         (atomic_bitint_fetch_using_cas_loop): New function.
72         (resolve_overloaded_builtin): Adjust sync_resolve_size caller.  If
73         -1 is returned, use atomic_bitint_fetch_using_cas_loop to lower it.
74         Formatting fix.
75         (keyword_begins_type_specifier): Handle RID_BITINT.
76         * c-common.h (enum rid): Add RID_BITINT enumerator.
77         * c-cppbuiltin.cc (c_cpp_builtins): For C call
78         targetm.c.bitint_type_info and predefine __BITINT_MAXWIDTH__
79         and for -fbuilding-libgcc also __LIBGCC_BITINT_LIMB_WIDTH__ and
80         __LIBGCC_BITINT_ORDER__ macros if _BitInt is supported.
81         * c-lex.cc (interpret_integer): Handle CPP_N_BITINT.
82         * c-pretty-print.cc (c_pretty_printer::simple_type_specifier,
83         c_pretty_printer::direct_abstract_declarator,
84         c_pretty_printer::direct_declarator, c_pretty_printer::declarator):
85         Handle BITINT_TYPE.
86         (pp_c_integer_constant): Handle printing of large precision wide_ints
87         which would buffer overflow digit_buffer.
88         * c-warn.cc (conversion_warning, warnings_for_convert_and_check,
89         warnings_for_convert_and_check): Handle BITINT_TYPE like
90         INTEGER_TYPE.
92 2023-09-06  Jakub Jelinek  <jakub@redhat.com>
94         PR c/102989
95         * c-ubsan.cc (ubsan_instrument_shift): Use UBSAN_PRINT_FORCE_INT
96         for type0 type descriptor.
98 2023-09-06  Jakub Jelinek  <jakub@redhat.com>
100         * c-lex.cc (interpret_float): For C diagnostics on FN and FNx suffixes
101         append " before C2X" to diagnostics text and follow behavior of
102         pedwarn_c11.
104 2023-09-01  Jakub Jelinek  <jakub@redhat.com>
106         PR c++/111069
107         * c-opts.cc (c_common_post_options): Change latest_abi_version to 19.
109 2023-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
111         * c.opt: Change spelling to macOS.
113 2023-08-31  Richard Biener  <rguenther@suse.de>
115         PR middle-end/111253
116         * c-pretty-print.cc (c_pretty_printer::primary_expression):
117         Only dump gimple_assign_single_p SSA def RHS.
119 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
121         * c-common.h (c_omp_check_loop_binding_exprs): Declare.
122         * c-omp.cc: Include tree-iterator.h.
123         (find_binding_in_body): New.
124         (check_loop_binding_expr_r): New.
125         (LOCATION_OR): New.
126         (check_looop_binding_expr): New.
127         (c_omp_check_loop_binding_exprs): New.
129 2023-08-25  Uros Bizjak  <ubizjak@gmail.com>
131         * c-format.cc (read_any_format_width):
132         Rename TRUE/FALSE to true/false.
134 2023-08-20  Martin Uecker  <uecker@tugraz.at>
136         * c-format.cc: Fix identation.
138 2023-08-20  Tomas Kalibera  <tomas.kalibera@gmail.com>
140         PR c/95130
141         * c-format.cc: skip default format for printf symbol if
142         explicitly declared by prototype.
144 2023-08-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
146         PR c/106537
147         * c.opt (Wcompare-distinct-pointer-types): New option.
149 2023-08-14  Jason Merrill  <jason@redhat.com>
151         * c-cppbuiltin.cc (c_cpp_builtins): Adjust __cpp_concepts.
153 2023-08-11  Jakub Jelinek  <jakub@redhat.com>
155         * c-common.cc (c_common_reswords): Add __typeof_unqual
156         and __typeof_unqual__ spellings of typeof_unqual.
158 2023-08-11  Martin Uecker  <uecker@tugraz.at>
160         PR c/84510
161         * c.opt: Enable warning for C and ObjC.
163 2023-08-05  Martin Uecker  <uecker@tugraz.at>
165         PR c/98536
166         * c-warn.cc (warn_parm_array_mismatch): Do not warn if more
167         bounds are specified.
169 2023-08-04  Tamar Christina  <tamar.christina@arm.com>
171         * c-pragma.h (enum pragma_kind): Add PRAGMA_NOVECTOR.
172         * c-pragma.cc (init_pragma): Use it.
174 2023-08-01  Lewis Hyatt  <lhyatt@gmail.com>
176         * c-common.h (c_init_preprocess): Declare new function.
177         * c-opts.cc (c_common_init): Call it.
178         * c-lex.cc (cb_def_pragma): Add a comment.
179         (get_token): New function wrapping cpp_get_token.
180         (c_lex_with_flags): Use the new wrapper function to support
181         obtaining tokens in preprocess_only mode.
182         (lex_string): Likewise.
183         * c-pragma.cc (pragma_diagnostic_lex_normal): Rename to...
184         (pragma_diagnostic_lex): ...this.
185         (pragma_diagnostic_lex_pp): Remove.
186         (handle_pragma_diagnostic_impl): Call pragma_diagnostic_lex () in
187         all modes.
188         (c_pp_invoke_early_pragma_handler): Adapt to support pragma_lex ()
189         usage.
190         * c-pragma.h (pragma_lex_discard_to_eol): Declare.
192 2023-07-31  Hamza Mahfooz  <someguy@effective-light.com>
194         PR c/65213
195         * c.opt (-Wmissing-variable-declarations): New option.
197 2023-07-20  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
199         PR middle-end/77928
200         * c-common.cc (check_builtin_function_arguments):
201         Handle BUILT_IN_ISEQSIG.
203 2023-07-05  Robin Dapp  <rdapp@ventanamicro.com>
204             Juzhe-Zhong  <juzhe.zhong@rivai.ai>
206         * c-common.cc (c_common_type_for_mode): Use GET_MODE_PRECISION.
208 2023-06-29  Qing Zhao  <qing.zhao@oracle.com>
210         PR c/77650
211         * c.opt: New option -Wflex-array-member-not-at-end.
213 2023-06-28  Jason Merrill  <jason@redhat.com>
215         PR c++/110344
216         * c-cppbuiltin.cc (c_cpp_builtins): Update __cpp_constexpr.
218 2023-06-26  Richard Biener  <rguenther@suse.de>
220         * c-common.cc (shorten_binary_op): Exit early for VECTOR_TYPE
221         operations.
223 2023-06-23  Marek Polacek  <polacek@redhat.com>
225         * c-common.h (cxx_dialect): Add cxx26 as a dialect.
226         * c-opts.cc (set_std_cxx26): New.
227         (c_common_handle_option): Set options when -std={c,gnu}++2{c,6} is
228         enabled.
229         (c_common_post_options): Adjust comments.
230         * c.opt: Add options for -std=c++26, std=c++2c, -std=gnu++26,
231         and -std=gnu++2c.
232         (std=c++2b): Mark as Undocumented.
233         (std=c++23): No longer Undocumented.
235 2023-06-21  Alexander Monakov  <amonakov@ispras.ru>
237         * c-gimplify.cc (fma_supported_p): New helper.
238         (c_gimplify_expr) [PLUS_EXPR, MINUS_EXPR]: Implement FMA
239         contraction.
241 2023-06-16  Alex Coplan  <alex.coplan@arm.com>
243         * c.opt (Welaborated-enum-base): New.
245 2023-06-13  David Malcolm  <dmalcolm@redhat.com>
247         PR c/84890
248         * known-headers.cc
249         (suggest_missing_header::~suggest_missing_header): Reword note to
250         avoid negative tone of "forgetting".
252 2023-06-07  Jason Merrill  <jason@redhat.com>
254         PR c++/58487
255         * c.opt: Add -Wnrvo.
257 2023-05-26  Martin Uecker  <uecker@tugraz.at>
259         * c-attribs.cc (build_attr_access_from_parms): Split loop to first
260         record all parameters.
262 2023-05-18  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
264         * c-ada-spec.cc (has_static_fields): Use _P() defines from tree.h.
265         (dump_ada_declaration): Ditto.
266         (dump_ada_structure): Ditto.
267         * c-common.cc (unsafe_conversion_p): Ditto.
268         (shorten_compare): Ditto.
269         (pointer_int_sum): Ditto.
270         (c_common_truthvalue_conversion): Ditto.
271         (scalar_to_vector): Ditto.
272         * c-common.h (gnu_vector_type_p): Ditto.
273         * c-omp.cc (c_omp_depend_t_p): Ditto.
274         (c_omp_split_clauses): Ditto.
275         * c-ubsan.cc (ubsan_instrument_division): Ditto.
276         * c-warn.cc (conversion_warning): Ditto.
277         (warnings_for_convert_and_check): Ditto.
279 2023-05-18  Joseph Myers  <joseph@codesourcery.com>
281         * c-format.cc (print_char_table): Handle %B like %b.
283 2023-05-15  Joseph Myers  <joseph@codesourcery.com>
285         * c-lex.cc (c_common_has_attribute): Use 202311 as
286         __has_c_attribute return for all C2x attributes.
288 2023-05-15  Patrick Palka  <ppalka@redhat.com>
290         * c-cppbuiltin.cc (c_cpp_builtins): Predefine __cpp_auto_cast
291         for C++23.
293 2023-05-01  Marek Polacek  <polacek@redhat.com>
295         * c-ubsan.cc (ubsan_maybe_instrument_array_ref): Don't copy_node.
297 2023-03-28  David Malcolm  <dmalcolm@redhat.com>
299         PR c/107002
300         * c-common.h (check_for_xor_used_as_pow): Add "rhs_loc" param.
301         * c-warn.cc (check_for_xor_used_as_pow): Add "rhs_loc" param.
302         Reject cases where involving macro expansions.
304 2023-03-28  Jason Merrill  <jason@redhat.com>
306         PR c++/107163
307         * c-common.cc (verify_tree): Don't use sequenced handling
308         for COMPONENT_REF.
310 2023-03-17  Jakub Jelinek  <jakub@redhat.com>
312         PR c/109151
313         * c-ubsan.cc (ubsan_instrument_division): Handle all scalar integral
314         types rather than just INTEGER_TYPE.
316 2023-03-10  Marek Polacek  <polacek@redhat.com>
318         PR sanitizer/108060
319         PR sanitizer/109050
320         * c-gimplify.cc (ubsan_walk_array_refs_r): For a MODIFY_EXPR, instrument
321         the RHS before the LHS.
323 2023-03-04  Jakub Jelinek  <jakub@redhat.com>
325         PR c/107465
326         * c-warn.cc (warn_for_sign_compare): Don't warn for unset bits
327         above innermost zero extension of BIT_NOT_EXPR result.
329 2023-03-04  Jakub Jelinek  <jakub@redhat.com>
331         PR c/107465
332         * c-warn.cc (warn_for_sign_compare): If c_common_get_narrower
333         doesn't return a narrower result, use TYPE_UNSIGNED to set unsignedp0
334         and unsignedp1.  For the one BIT_NOT_EXPR case vs. one without,
335         only check for constant in the non-BIT_NOT_EXPR operand, use std::swap
336         to simplify the code, only warn if BIT_NOT_EXPR operand is extended
337         from narrower unsigned, fix up computation of mask for the constant
338         cases and for unsigned other operand case handle differently
339         BIT_NOT_EXPR result being sign vs. zero extended.
341 2023-03-04  Jakub Jelinek  <jakub@redhat.com>
343         PR c/107846
344         * c-warn.cc: Include langhooks.h.
345         (maybe_warn_shift_overflow): Set type0 to what TREE_TYPE (op0)
346         promotes to rather than TREE_TYPE (op0) itself, if TREE_TYPE (op0)
347         is narrower than type0 and unsigned, use wi::min_precision with
348         UNSIGNED and fold_convert op0 to type0 before emitting the warning.
350 2023-03-03  Alexandre Oliva  <oliva@adacore.com>
352         * c-common.cc (c_common_nodes_and_builtins): Take
353         wchar_type_node for wint_type_node when aliased.
354         (c_stddef_cpp_builtins): Define __WINT_TYPE__, when aliased to
355         wchar_t, to the underlying type rather than wchar_t in
356         non-C++.
357         * c-cppbuiltin.cc (type_suffix): Handle wchar_type_node.
359 2023-02-28  Marek Polacek  <polacek@redhat.com>
361         PR c++/107938
362         * c-warn.cc (check_address_or_pointer_of_packed_member): Check
363         POINTER_TYPE_P.
365 2023-02-28  Jakub Jelinek  <jakub@redhat.com>
367         PR sanitizer/108894
368         * c-common.h (c_strict_flex_array_level_of): Declare.
369         * c-common.cc (c_strict_flex_array_level_of): New function,
370         moved and renamed from c-decl.cc's strict_flex_array_level_of.
371         * c-ubsan.cc (ubsan_instrument_bounds): Fix comment typo.  For
372         C check c_strict_flex_array_level_of whether a trailing array
373         should be treated as flexible member like.  Handle C [0] arrays.
374         Add 1 + index_off_by_one rather than index_off_by_one to bounds
375         and use tree_int_cst_lt rather than tree_int_cst_le for idx vs.
376         bounds comparison.
378 2023-02-23  Jakub Jelinek  <jakub@redhat.com>
380         PR translation/108890
381         * c.opt (fcontracts): Fix description.
383 2023-02-22  Marek Polacek  <polacek@redhat.com>
385         PR c/108880
386         * c-gimplify.cc (c_genericize_control_stmt) <case STATEMENT_LIST>: Pass
387         pset to walk_tree_1.
388         (c_genericize): Call walk_tree with an explicit pset.
390 2023-02-18  Martin Uecker  <uecker@tugraz.at>
392         PR c/105660
393         * c-attribs.cc (append_access_attr): Use order of arguments when
394         construction string.
395         (append_access_attr_idxs): Rename and make static.
396         * c-warn.cc (warn_parm_array_mismatch): Add assertion.
398 2023-02-16  Patrick Palka  <ppalka@redhat.com>
400         * c-common.h: Mechanically drop static from static inline
401         functions via s/^static inline/inline/g.
403 2023-02-01  Jason Merrill  <jason@redhat.com>
405         * c.opt: Add -Wno-changes-meaning.
407 2023-01-31  Marek Polacek  <polacek@redhat.com>
409         PR c++/107593
410         PR c++/108597
411         * c-common.h (instantiation_dependent_expression_p): Declare.
412         * c-warn.cc (warn_duplicated_cond_add_or_warn): If the condition
413         is dependent, invalidate the chain.
415 2023-01-26  Marek Polacek  <polacek@redhat.com>
417         PR c++/105300
418         * c-pragma.cc (handle_pragma_message): Warn for CPP_STRING_USERDEF.
420 2023-01-18  Marek Polacek  <polacek@redhat.com>
422         PR c/108424
423         * c-common.cc (check_case_value): Check INTEGRAL_TYPE_P.
425 2023-01-14  Jakub Jelinek  <jakub@redhat.com>
427         PR c++/108365
428         * c-common.h (may_shorten_divmod): New static inline function.
430 2023-01-13  Eric Botcazou  <ebotcazou@adacore.com>
432         * c-ada-spec.cc (is_float32): New function.
433         (is_float64): Likewise.
434         (is_float128): Tweak.
435         (dump_ada_node) <REAL_TYPE>: Call them to recognize more types.
437 2023-01-12  Lewis Hyatt  <lhyatt@gmail.com>
439         PR preprocessor/108244
440         * c-pragma.cc (c_register_pragma_1): Don't attempt to register any
441         deferred pragmas if -fdirectives-only.
442         (init_pragma): Likewise.
444 2023-01-09  Martin Liska  <mliska@suse.cz>
446         PR c/107993
447         * c-attribs.cc (handle_target_clones_attribute): Check for
448         string constant for all target_clone attribute values.
450 2023-01-03  Florian Weimer  <fweimer@redhat.com>
452         * c-cppbuiltin.cc (c_cpp_builtins): Define
453         __LIBGCC_DWARF_CIE_DATA_ALIGNMENT__.
455 2023-01-03  Florian Weimer  <fweimer@redhat.com>
457         Revert:
458         2023-01-03  Florian Weimer  <fweimer@redhat.com>
460         * c-cppbuiltin.cc (__LIBGCC_DWARF_REG_SIZES_CONSTANT__):
461         Define if constant is known.
463 2023-01-03  Florian Weimer  <fweimer@redhat.com>
465         Revert:
466         2023-01-02  Florian Weimer  <fweimer@redhat.com>
468         * c-cppbuiltin.cc (c_cpp_builtins): Define
469         __LIBGCC_DWARF_CIE_DATA_ALIGNMENT__.
471 2023-01-02  Florian Weimer  <fweimer@redhat.com>
473         * c-cppbuiltin.cc (c_cpp_builtins): Define
474         __LIBGCC_DWARF_CIE_DATA_ALIGNMENT__.
476 2023-01-02  Florian Weimer  <fweimer@redhat.com>
478         * c-cppbuiltin.cc (__LIBGCC_DWARF_REG_SIZES_CONSTANT__):
479         Define if constant is known.
481 2022-12-19  Marek Polacek  <polacek@redhat.com>
483         PR c/98487
484         * c-format.cc (check_function_format): Use get_attribute_name.
486 2022-12-16  Qing Zhao  <qing.zhao@oracle.com>
488         * c.opt (Wstrict-flex-arrays): New option.
490 2022-12-02  Andrew MacLeod  <amacleod@redhat.com>
492         * c-attribs.cc (handle_deprecated_attribute): Use type when
493         using TYPE_NAME.
495 2022-12-02  Jakub Jelinek  <jakub@redhat.com>
497         PR c++/84469
498         * c-omp.cc (c_omp_is_loop_iterator): For range for with structured
499         binding return TREE_VEC_LENGTH (d->declv) even if decl is equal
500         to any of the structured binding decls.
502 2022-11-30  Iskander Shakirzyanov  <iskander@ispras.ru>
503             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
505         PR driver/107787
506         * c-common.cc (fold_offsetof,
507         convert_vector_to_array_for_subscript): Use OPT_Warray_bounds_
508         instead of OPT_Warray_bounds.
510 2022-11-24  Jakub Jelinek  <jakub@redhat.com>
512         * c.opt (fcontract-role=, fcontract-semantic=): Terminate descriptions
513         with a dot.
515 2022-11-23  Andrew Pinski  <apinski@marvell.com>
516             Jakub Jelinek  <jakub@redhat.com>
518         PR c/107127
519         * c-gimplify.cc (c_genericize): Use walk_tree_without_duplicates
520         instead of walk_tree for c_genericize_control_r.
522 2022-11-23  Jakub Jelinek  <jakub@redhat.com>
524         * c.opt (fcontract-assumption-mode=, fcontract-continuation-mode=,
525         fcontract-role=, fcontract-semantic=): Add RejectNegative.
526         (fcontract-build-level=): Terminate description with dot.
528 2022-11-19  Jakub Jelinek  <jakub@redhat.com>
530         * c-cppbuiltin.cc (c_cpp_builtins): Bump __cpp_constexpr
531         value from 202207L to 202211L.
533 2022-11-19  Jeff Chapman II  <jchapman@lock3software.com>
534             Andrew Sutton   <asutton@lock3software.com>
535             Andrew Marmaduke  <amarmaduke@lock3software.com>
536             Michael Lopez  <mlopez@lock3software.com>
537             Jason Merrill   <jason@redhat.com>
539         * c.opt: Add contracts flags.
540         * c-cppbuiltin.cc (c_cpp_builtins): Add contracts feature-test
541         macros.
543 2022-11-16  Marek Polacek  <polacek@redhat.com>
545         PR c++/106649
546         * c-cppbuiltin.cc (c_cpp_builtins): Update value of __cpp_constexpr for
547         C++23.
548         * c-opts.cc (c_common_post_options): Set warn_invalid_constexpr
549         depending on cxx_dialect.
550         * c.opt (Winvalid-constexpr): New option.
552 2022-11-16  Jakub Jelinek  <jakub@redhat.com>
554         * c-common.def (CONCEPT_DECL): New tree, moved here from
555         cp-tree.def.
556         * c-common.cc (c_common_init_ts): Handle CONCEPT_DECL.
557         * c-attribs.cc (handle_deprecated_attribute): Allow deprecated
558         attribute on CONCEPT_DECL.
560 2022-11-15  Lewis Hyatt  <lhyatt@gmail.com>
562         * c-opts.cc (c_finish_options): Use special_fname_builtin () rather
563         than a hard-coded string.
565 2022-11-15  Jakub Jelinek  <jakub@redhat.com>
567         * c-cppbuiltin.cc (c_cpp_builtins): Bump C++23
568         __cpp_multidimensional_subscript macro value to 202211L.
570 2022-11-15  Patrick Palka  <ppalka@redhat.com>
572         PR c++/107638
573         * c-lex.cc (c_common_has_attribute): Return 1 for init_priority
574         iff SUPPORTS_INIT_PRIORITY.
576 2022-11-14  Martin Liska  <mliska@suse.cz>
578         Revert:
579         2022-11-09  Martin Liska  <mliska@suse.cz>
581         * c-target.def: Port to RST.
583 2022-11-12  Joseph Myers  <joseph@codesourcery.com>
585         * c-common.cc (c_common_reswords): Use D_C2X instead of D_CXXONLY.
587 2022-11-11  Jonathan Wakely  <jwakely@redhat.com>
589         PR c/85487
590         * c-pragma.cc (handle_pragma_ignore): New function.
591         (init_pragma): Register region and endregion pragmas.
593 2022-11-09  Martin Liska  <mliska@suse.cz>
595         * c-target.def: Port to RST.
597 2022-11-05  Lewis Hyatt  <lhyatt@gmail.com>
599         PR preprocessor/55971
600         * c-ppoutput.cc (adjust_for_newlines): Update comment.
602 2022-11-03  Jason Merrill  <jason@redhat.com>
604         * c-opts.cc (c_common_post_options): -fconcepts no longer implies
605         -fconcepts-ts before C++20.
607 2022-10-28  Joseph Myers  <joseph@codesourcery.com>
609         * c-common.cc (def_fn_type): Call build_function_type for
610         zero-argument variable-argument function.
611         (c_common_nodes_and_builtins): Build default_function_type with
612         build_function_type.
613         * c.opt (fallow-parameterless-variadic-functions): Mark as ignored
614         option.
616 2022-10-28  Joseph Myers  <joseph@codesourcery.com>
618         PR c/61469
619         * c-common.h (ENUM_UNDERLYING_TYPE, ENUM_FIXED_UNDERLYING_TYPE_P):
620         New.  Moved from cp/cp-tree.h.
621         * c-warn.cc (warnings_for_convert_and_check): Do not consider
622         conversions to enum with underlying type bool to overflow.
624 2022-10-26  Marek Polacek  <polacek@redhat.com>
626         PR c++/106393
627         * c.opt (Wdangling-reference): New.
629 2022-10-19  Joseph Myers  <joseph@codesourcery.com>
631         * c-format.h (enum format_lengths): Add FMT_LEN_w8, FMT_LEN_w16,
632         FMT_LEN_w32, FMT_LEN_w64, FMT_LEN_wf8, FMT_LEN_wf16, FMT_LEN_wf32
633         and FMT_LEN_wf64.
634         (NOARGUMENTS, NOLENGTHS): Update definitions.
635         (T_I8, T2X_I8, T_I16, T2X_I16, T_I32, T2X_I32, T_I64, T2X_I64)
636         (T_U8, T2X_U8, T_U16, T2X_U16, T_U32, T2X_U32, T_U64, T2X_U64)
637         (T_IF8, T2X_IF8, T_IF16, T2X_IF16, T_IF32, T2X_IF32, T_IF64)
638         (T2X_IF64, T_UF8, T2X_UF8, T_UF16, T2X_UF16, T_UF32, T2X_UF32)
639         (T_UF64, T2X_UF64): New macros.
640         * c-format.cc (printf_length_specs, scanf_length_specs): Add wN
641         and wfN length modifiers.
642         (print_char_table, scan_char_table): Add entries using wN and wfN
643         length modifiers.
645 2022-10-18  Joseph Myers  <joseph@codesourcery.com>
647         PR c/36113
648         * c-common.cc (c_common_type_for_size): Add fallback to
649         widest_unsigned_literal_type_node or
650         widest_integer_literal_type_node for precision that may not
651         exactly match the precision of those types.
653 2022-10-14  Jakub Jelinek  <jakub@redhat.com>
655         * c-cppbuiltin.cc (c_cpp_builtins): If bfloat16_type_node,
656         predefine __BFLT16_*__ macros and for C++23 also
657         __STDCPP_BFLOAT16_T__.  Predefine bfloat16_type_node related
658         macros for -fbuilding-libgcc.
659         * c-lex.cc (interpret_float): Handle CPP_N_BFLOAT16.
661 2022-10-14  Jakub Jelinek  <jakub@redhat.com>
663         PR middle-end/323
664         PR c++/107097
665         * c-common.def (EXCESS_PRECISION_EXPR): Remove comment part about
666         the tree being specific to C/ObjC.
667         * c-opts.cc (c_common_post_options): Handle flag_excess_precision
668         in C++ the same as in C.
669         * c-lex.cc (interpret_float): Set const_type to excess_precision ()
670         even for C++.
672 2022-10-13  Joseph Myers  <joseph@codesourcery.com>
674         * c-cppbuiltin.cc (builtin_define_float_constants): Do not use
675         value 2 for *_IS_IEC_60559.
677 2022-10-12  Lewis Hyatt  <lhyatt@gmail.com>
679         PR preprocessor/60014
680         PR preprocessor/60723
681         * c-ppoutput.cc (class token_streamer): Remove member
682         line_marker_emitted to...
683         (token_streamer::stream): ...a local variable here. Set
684         print.prev_was_system_token on all code paths.
686 2022-10-10  Nathan Sidwell  <nathan@acm.org>
688         * c-opts.cc (c_common_post_options): Bump abi to 18.
690 2022-10-10  Marek Polacek  <polacek@redhat.com>
692         PR c++/106937
693         * c-pretty-print.cc (pp_c_specifier_qualifier_list): Print only GNU
694         attributes here.
695         (c_pretty_printer::direct_abstract_declarator): Print the standard [[]]
696         attributes here.
697         (pp_c_attributes): Remove.
698         (pp_c_attributes_display): Print the [[]] form if appropriate.  Use
699         get_attribute_name.  Don't print a trailing space when printing the
700         [[]] form.
701         * c-pretty-print.h (pp_c_attributes): Remove.
703 2022-10-07  Qing Zhao  <qing.zhao@oracle.com>
705         * c-attribs.cc (handle_strict_flex_array_attribute): New function.
706         (c_common_attribute_table): New item for strict_flex_array.
707         * c.opt: (fstrict-flex-arrays): New option.
708         (fstrict-flex-arrays=): New option.
710 2022-10-07  Martin Liska  <mliska@suse.cz>
712         * name-hint.h: Use std::move.
714 2022-10-07  Jakub Jelinek  <jakub@redhat.com>
716         * c-common.cc (attribute_fallthrough_p): Lookup fallthrough attribute
717         only in gnu namespace or as standard attribute, treat fallthrough
718         attributes in other namespaces like any other unknown attribute.
720 2022-10-06  Joseph Myers  <joseph@codesourcery.com>
722         * c-common.cc (c_common_reswords): Mark typeof as D_EXT11.  Add
723         typeof_unqual.
724         * c-common.h (enum rid): Add RID_TYPEOF_UNQUAL.
725         (D_EXT11): New macro.  Values of subsequent macros updated.
727 2022-10-06  Jakub Jelinek  <jakub@redhat.com>
729         PR c++/106654
730         * c-attribs.cc (handle_assume_attribute): New function.
731         (c_common_attribute_table): Add entry for assume attribute.
732         * c-lex.cc (c_common_has_attribute): Handle
733         __have_cpp_attribute (assume).
735 2022-10-04  Jakub Jelinek  <jakub@redhat.com>
737         * c-omp.cc (c_omp_directives): Uncomment begin declare target
738         entry.
740 2022-10-03  Patrick Palka  <ppalka@redhat.com>
742         * c-common.cc (c_common_reswords): Use RID_IS_SAME instead of
743         RID_IS_SAME_AS.
745 2022-10-03  Joseph Myers  <joseph@codesourcery.com>
747         * c-cppbuiltin.cc (builtin_define_float_constants): Do not
748         special-case __*_EPSILON__ setting for IBM long double for C2x.
750 2022-09-30  Patrick Palka  <ppalka@redhat.com>
752         * c-common.cc (c_common_reswords): Use cp/cp-trait.def to handle
753         C++ traits.
754         * c-common.h (enum rid): Likewise.
756 2022-09-29  Joseph Myers  <joseph@codesourcery.com>
758         * c-lex.cc (c_common_has_attribute): Handle noreturn attribute for
759         C.
761 2022-09-29  Patrick Palka  <ppalka@redhat.com>
763         * c-common.cc (c_common_reswords): Add __remove_cv,
764         __remove_reference and __remove_cvref.
765         * c-common.h (enum rid): Add RID_REMOVE_CV, RID_REMOVE_REFERENCE
766         and RID_REMOVE_CVREF.
768 2022-09-27  Marek Polacek  <polacek@redhat.com>
770         PR c++/101165
771         PR c++/106882
772         * c-cppbuiltin.cc (c_cpp_builtins): Define __cpp_implicit_move.
774 2022-09-27  Marek Polacek  <polacek@redhat.com>
776         * c-format.cc (c_keywords): Drop nothrow.
778 2022-09-27  Jakub Jelinek  <jakub@redhat.com>
780         PR c++/106651
781         * c-cppbuiltin.cc (c_cpp_builtins): Predefine
782         __cpp_static_call_operator=202207L for C++23.
784 2022-09-27  Jakub Jelinek  <jakub@redhat.com>
786         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ASSUME,
787         PRAGMA_OMP_ASSUMES and PRAGMA_OMP_BEGIN.  Rename
788         PRAGMA_OMP_END_DECLARE_TARGET to PRAGMA_OMP_END.
789         * c-pragma.cc (omp_pragmas): Add assumes and begin.
790         For end rename PRAGMA_OMP_END_DECLARE_TARGET to PRAGMA_OMP_END.
791         (omp_pragmas_simd): Add assume.
792         * c-common.h (c_omp_directives): Declare.
793         * c-omp.cc (omp_directives): Rename to ...
794         (c_omp_directives): ... this.  No longer static.  Uncomment
795         assume, assumes, begin assumes and end assumes entries.
796         In end declare target entry rename PRAGMA_OMP_END_DECLARE_TARGET
797         to PRAGMA_OMP_END.
798         (c_omp_categorize_directive): Adjust for omp_directives to
799         c_omp_directives renaming.
801 2022-09-27  Jakub Jelinek  <jakub@redhat.com>
803         PR c++/106652
804         PR c++/85518
805         * c-common.cc (c_common_reswords): Change _Float{16,32,64,128} and
806         _Float{32,64,128}x flags from D_CONLY to 0.
807         (shorten_binary_op): Punt if common_type returns error_mark_node.
808         (shorten_compare): Likewise.
809         (c_common_nodes_and_builtins): For C++ record _Float{16,32,64,128}
810         and _Float{32,64,128}x builtin types if available.  For C++
811         clear float128t_type_node.
812         * c-cppbuiltin.cc (c_cpp_builtins): Predefine
813         __STDCPP_FLOAT{16,32,64,128}_T__ for C++23 if supported.
814         * c-lex.cc (interpret_float): For q/Q suffixes prefer
815         float128t_type_node over float128_type_node.  Allow
816         {f,F}{16,32,64,128} suffixes for C++ if supported with pedwarn
817         for C++20 and older.  Allow {f,F}{32,64,128}x suffixes for C++
818         with pedwarn.  Don't call excess_precision_type for C++.
820 2022-09-26  Marek Polacek  <polacek@redhat.com>
822         PR c++/106656
823         * c-cppbuiltin.cc (c_cpp_builtins): Update value of __cpp_char8_t
824         for C++20.
826 2022-09-23  Marek Polacek  <polacek@redhat.com>
828         PR c++/106784
829         * c-common.cc (c_common_reswords): Add __is_convertible and
830         __is_nothrow_convertible.
831         * c-common.h (enum rid): Add RID_IS_CONVERTIBLE and
832         RID_IS_NOTHROW_CONVERTIBLE.
834 2022-09-22  David Malcolm  <dmalcolm@redhat.com>
836         PR c/106830
837         * c-warn.cc (check_for_xor_used_as_pow): Don't try checking
838         values that don't fit in uhwi.
840 2022-09-15  Richard Biener  <rguenther@suse.de>
842         * c-common.h (build_void_list_node): Remove.
843         * c-common.cc (c_common_nodes_and_builtins): Do not initialize
844         void_list_node.
846 2022-09-09  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
848         * c-format.cc (convert_format_name_to_system_name): Fix warning.
850 2022-09-07  Joseph Myers  <joseph@codesourcery.com>
852         * c-common.cc (c_common_reswords): Use D_C2X instead of D_CXXONLY
853         for alignas, alignof, bool, false, static_assert, thread_local and
854         true.
856 2022-09-07  Jakub Jelinek  <jakub@redhat.com>
858         * c.opt (Winvalid-utf8): Use ObjC instead of objC.  Remove
859         " in comments" from description.
860         (Wunicode): New option.
862 2022-09-06  Jakub Jelinek  <jakub@redhat.com>
864         PR c/106836
865         * c-omp.cc (c_omp_split_clauses): Handle OMP_CLAUSE_DOACROSS.
867 2022-09-03  Jakub Jelinek  <jakub@redhat.com>
869         * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_DOACROSS.
870         * c-omp.cc (c_finish_omp_depobj): Check also for OMP_CLAUSE_DOACROSS
871         clause and diagnose it.  Don't handle OMP_CLAUSE_DEPEND_SOURCE and
872         OMP_CLAUSE_DEPEND_SINK.  Assert kind is not OMP_CLAUSE_DEPEND_INVALID.
874 2022-09-02  David Malcolm  <dmalcolm@redhat.com>
876         PR c/90885
877         * c-common.h (check_for_xor_used_as_pow): New decl.
878         * c-lex.cc (c_lex_with_flags): Add DECIMAL_INT to flags as appropriate.
879         * c-warn.cc (check_for_xor_used_as_pow): New.
880         * c.opt (Wxor-used-as-pow): New.
882 2022-09-01  Jason Merrill  <jason@redhat.com>
884         * c-common.cc (c_common_nodes_and_builtins): Set TREE_STRING_FLAG on
885         char8_t.
886         (braced_list_to_string): Check for char-sized elements.
888 2022-09-01  Jakub Jelinek  <jakub@redhat.com>
890         PR c++/106655
891         * c.opt (-Winvalid-utf8): New warning.
892         * c-opts.cc (c_common_handle_option) <case OPT_finput_charset_>:
893         Set cpp_opts->cpp_input_charset_explicit.
894         (c_common_post_options): If -finput-charset=UTF-8 is explicit
895         in C++23, enable -Winvalid-utf8 by default and if -pedantic
896         or -pedantic-errors, make it a pedwarn.
898 2022-08-31  Joseph Myers  <joseph@codesourcery.com>
900         * c-attribs.cc (handle_deprecated_attribute): Check and pedwarn
901         for LABEL_DECL.
902         * c-common.cc (c_add_case_label): Add argument ATTRS.  Call
903         decl_attributes.
904         * c-common.h (do_case, c_add_case_label): Update declarations.
905         * c-lex.cc (c_common_has_attribute): For C, produce a result of
906         201910 for fallthrough and 202106 for maybe_unused.
908 2022-08-26  Marek Polacek  <polacek@redhat.com>
910         PR c++/81159
911         * c.opt (Wself-move): New option.
913 2022-08-26  Jakub Jelinek  <jakub@redhat.com>
915         * c-common.cc (check_builtin_function_arguments): Handle
916         BUILT_IN_ISSIGNALING.
918 2022-08-26  Jakub Jelinek  <jakub@redhat.com>
920         PR c++/106648
921         * c-cppbuiltin.cc (c_cpp_builtins): Predefine
922         __cpp_named_character_escapes to 202207L.
924 2022-08-25  Marek Polacek  <polacek@redhat.com>
926         * c-common.cc (c_common_reswords): Enable nullptr in C2X.
927         (c_common_nodes_and_builtins): Create the built-in node for nullptr.
928         * c-common.h (enum c_tree_index): Add CTI_NULLPTR, CTI_NULLPTR_TYPE.
929         (struct c_common_resword): Resize the disable member.
930         (D_C2X): Add.
931         (nullptr_node): Define.
932         (nullptr_type_node): Define.
933         (NULLPTR_TYPE_P): Define.
934         * c-pretty-print.cc (c_pretty_printer::simple_type_specifier): Handle
935         NULLPTR_TYPE.
936         (c_pretty_printer::direct_abstract_declarator): Likewise.
937         (c_pretty_printer::constant): Likewise.
939 2022-08-16  Tom Honermann  <tom@honermann.net>
941         PR c++/106423
942         * c-opts.cc (c_common_post_options): Disable -Wc++20-compat
943         diagnostics in C++20 and later.
944         * c.opt (Wc++20-compat): Enable hooks for the preprocessor.
946 2022-08-11  Marek Polacek  <polacek@redhat.com>
948         PR middle-end/102633
949         * c-gimplify.cc (c_gimplify_expr) <case DECL_EXPR>: Don't call
950         suppress_warning here.
952 2022-08-08  Tom Honermann  <tom@honermann.net>
954         PR preprocessor/106426
955         * c-opts.cc (c_common_post_options): Assign cpp_opts->unsigned_utf8char
956         subject to -fchar8_t, -fsigned-char, and/or -funsigned-char.
958 2022-08-08  Tom Honermann  <tom@honermann.net>
960         * c-lex.cc (lex_string, lex_charconst): Use char8_t as the type
961         of CPP_UTF8CHAR and CPP_UTF8STRING when char8_t support is
962         enabled.
963         * c-opts.cc (c_common_post_options): Set flag_char8_t if
964         targeting C2x.
966 2022-07-31  Lewis Hyatt  <lhyatt@gmail.com>
968         PR c++/66290
969         * c-common.h: Rename global done_lexing to
970         override_libcpp_locations.
971         * c-common.cc (c_cpp_diagnostic): Likewise.
972         * c-opts.cc (c_common_finish): Set override_libcpp_locations
973         (formerly done_lexing) immediately prior to calling cpp_finish ().
975 2022-07-27  Lewis Hyatt  <lhyatt@gmail.com>
977         * c-ppoutput.cc (token_streamer::stream): Update input_location
978         prior to streaming each token.
980 2022-07-23  Immad Mir  <mirimmad@outlook.com>
982         * c-attribs.cc: (c_common_attribute_table): add three new attributes
983         namely: fd_arg, fd_arg_read and fd_arg_write.
984         (handle_fd_arg_attribute): New.
986 2022-07-15  Marek Polacek  <polacek@redhat.com>
988         PR c++/104477
989         * c-common.cc (c_common_reswords): Add
990         __reference_constructs_from_temporary and
991         __reference_converts_from_temporary.
992         * c-common.h (enum rid): Add RID_REF_CONSTRUCTS_FROM_TEMPORARY and
993         RID_REF_CONVERTS_FROM_TEMPORARY.
995 2022-07-15  Jonathan Wakely  <jwakely@redhat.com>
997         * c-format.cc (class range_label_for_format_type_mismatch):
998         Adjust to new label_text API.
1000 2022-07-11  Lewis Hyatt  <lhyatt@gmail.com>
1002         PR preprocessor/106252
1003         * c-pragma.cc (handle_pragma_diagnostic_impl): Don't look up the
1004         option argument prior to verifying the option was found.
1006 2022-07-07  David Malcolm  <dmalcolm@redhat.com>
1008         * c-format.cc (range_label_for_format_type_mismatch::get_text):
1009         Update for removal of label_text::maybe_free in favor of automatic
1010         memory management.
1012 2022-07-06  Lewis Hyatt  <lhyatt@gmail.com>
1014         PR preprocessor/53920
1015         PR c++/53431
1016         * c-common.cc (c_option_is_from_cpp_diagnostics): New function.
1017         * c-common.h (c_option_is_from_cpp_diagnostics): Declare.
1018         (c_pp_stream_token): Declare.
1019         * c-ppoutput.cc (init_pp_output): Refactor logic about skipping
1020         pragmas to...
1021         (should_output_pragmas): ...here. New function.
1022         (token_streamer::stream): Support handling early pragmas.
1023         (do_line_change): Likewise.
1024         (c_pp_stream_token): New function.
1025         * c-pragma.cc (struct pragma_diagnostic_data): New helper class.
1026         (pragma_diagnostic_lex_normal): New function. Moved logic for
1027         interpreting GCC diagnostic pragmas here.
1028         (pragma_diagnostic_lex_pp): New function for parsing diagnostic pragmas
1029         directly from libcpp.
1030         (handle_pragma_diagnostic): Refactor into helper function...
1031         (handle_pragma_diagnostic_impl): ...here.  New function.
1032         (handle_pragma_diagnostic_early): New function.
1033         (handle_pragma_diagnostic_early_pp): New function.
1034         (struct pragma_ns_name): Renamed to...
1035         (struct pragma_pp_data): ...this.  Add new "early_handler" member.
1036         (c_register_pragma_1): Support early pragmas in the preprocessor.
1037         (c_register_pragma_with_early_handler): New function.
1038         (c_register_pragma): Support the new early handlers in struct
1039         internal_pragma_handler.
1040         (c_register_pragma_with_data): Likewise.
1041         (c_register_pragma_with_expansion): Likewise.
1042         (c_register_pragma_with_expansion_and_data): Likewise.
1043         (c_invoke_early_pragma_handler): New function.
1044         (c_pp_invoke_early_pragma_handler): New function.
1045         (init_pragma): Add early pragma support for diagnostic pragmas.
1046         * c-pragma.h (struct internal_pragma_handler): Add new early handler
1047         members.
1048         (c_register_pragma_with_early_handler): Declare.
1049         (c_invoke_early_pragma_handler): Declare.
1050         (c_pp_invoke_early_pragma_handler): Declare.
1052 2022-07-05  Marek Polacek  <polacek@redhat.com>
1054         PR c++/105626
1055         * c-format.cc (check_format_arg): Don't emit -Wformat warnings with
1056         u8 strings.
1058 2022-07-01  Marek Polacek  <polacek@redhat.com>
1060         PR c++/106111
1061         * c-common.h (enum rid): Update RID_LAST_CXX20.
1063 2022-06-30  Jonathan Wakely  <jwakely@redhat.com>
1065         * known-headers.cc (get_stdlib_header_for_name): Add <time.h>
1066         names.
1068 2022-06-24  Jason Merrill  <jason@redhat.com>
1070         PR c++/87729
1071         PR c++/20423
1072         * c.opt (Woverloaded-virtual): Add levels, include in -Wall.
1074 2022-06-18  Jakub Jelinek  <jakub@redhat.com>
1076         * c-ubsan.cc (ubsan_instrument_division, ubsan_instrument_shift):
1077         Use flag_sanitize_trap & SANITIZE_??? instead of
1078         flag_sanitize_undefined_trap_on_error.  If 2 sanitizers are involved
1079         and flag_sanitize_trap differs for them, emit __builtin_trap only
1080         for the comparison where trap is requested.
1081         (ubsan_instrument_vla, ubsan_instrument_return): Use
1082         lag_sanitize_trap & SANITIZE_??? instead of
1083         flag_sanitize_undefined_trap_on_error.
1085 2022-06-13  Jason Merrill  <jason@redhat.com>
1087         * c-ubsan.cc (ubsan_instrument_return): Use BUILTINS_LOCATION.
1089 2022-05-27  Marek Polacek  <polacek@redhat.com>
1091         PR c/90658
1092         * c-attribs.cc (get_priority): Check FUNCTION_DECL.
1094 2022-05-27  Jakub Jelinek  <jakub@redhat.com>
1096         * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ENTER.
1098 2022-05-20  David Malcolm  <dmalcolm@redhat.com>
1100         * c-format.cc: Replace uses of "FINAL" and "OVERRIDE" with "final"
1101         and "override".
1102         * c-pretty-print.h: Likewise.
1104 2022-05-18  Marek Polacek  <polacek@redhat.com>
1106         PR c/105131
1107         * c.opt (Wenum-int-mismatch): New.
1109 2022-05-18  Marek Polacek  <polacek@redhat.com>
1111         PR c++/105497
1112         * c-warn.cc (c_do_switch_warnings): Don't warn about unhandled
1113         enumerator when it was marked with attribute unused.
1115 2022-05-18  Eric Botcazou  <ebotcazou@adacore.com>
1117         * c-ada-spec.cc (dump_ada_node) <COMPLEX_TYPE>: Deal with usual
1118         floating-point complex types.
1119         <POINTER_TYPE>: Do not use limited_with clause if the designated
1120         type is a scalar type.
1122 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
1124         * c-omp.cc (c_finish_omp_depobj): Handle
1125         OMP_CLAUSE_DEPEND_INOUTSET.
1127 2022-05-16  Jason Merrill  <jason@redhat.com>
1129         PR c/105492
1130         * c-attribs.cc (handle_mode_attribute): Don't fix broken typedefs
1131         here.
1133 2022-05-16  Martin Liska  <mliska@suse.cz>
1135         * c-common.cc (ARRAY_SIZE): Use ARRAY_SIZE.
1136         (c_common_nodes_and_builtins): Likewise.
1137         * c-format.cc (check_tokens): Likewise.
1138         (check_plain): Likewise.
1139         * c-pragma.cc (c_pp_lookup_pragma): Likewise.
1140         (init_pragma): Likewise.
1141         * known-headers.cc (get_string_macro_hint): Likewise.
1142         (get_stdlib_header_for_name): Likewise.
1143         * c-attribs.cc: Likewise.
1145 2022-05-13  Richard Biener  <rguenther@suse.de>
1147         * c-omp.cc: Remove gimple-fold.h include.
1149 2022-05-12  Jakub Jelinek  <jakub@redhat.com>
1151         * c-common.h (enum rid): Add RID_OMP_ALL_MEMORY.
1152         * c-omp.cc (c_finish_omp_depobj): Don't build_fold_addr_expr
1153         if null_pointer_node.
1155 2022-05-11  Martin Liska  <mliska@suse.cz>
1157         PR target/105355
1158         * c-opts.cc (c_common_handle_option): Change option name.
1159         * c.opt: Remove Joined and use Separate option.
1161 2022-05-09  Alex Coplan  <alex.coplan@arm.com>
1163         * c-common.h (get_dump_info): Delete.
1164         * c-gimplify.cc (c_genericize): Get TDI_original dump file info
1165         from the global dump_manager instead of the (now obsolete)
1166         get_dump_info.
1167         * c-opts.cc (original_dump_file): Delete.
1168         (original_dump_flags): Delete.
1169         (c_common_parse_file): Switch to using global dump_manager to
1170         manage the original dump file; fix leak of dump file.
1171         (get_dump_info): Delete.
1173 2022-05-07  Marek Polacek  <polacek@redhat.com>
1175         PR c++/101833
1176         PR c++/47634
1177         * c-attribs.cc (positional_argument): Pass POS by reference.  Deal
1178         with FN being either a function declaration or function type.  Use
1179         maybe_adjust_arg_pos_for_attribute.
1180         * c-common.cc (check_function_arguments): Maybe pass FNDECL down to
1181         check_function_format.
1182         * c-common.h (maybe_adjust_arg_pos_for_attribute): Declare.
1183         (positional_argument): Adjust.
1184         * c-format.cc (get_constant): Rename to ...
1185         (validate_constant): ... this.  Take EXPR by reference.  Return bool
1186         instead of tree.
1187         (handle_format_arg_attribute): Don't overwrite FORMAT_NUM_EXPR by the
1188         return value of validate_constant.
1189         (decode_format_attr): Don't overwrite FORMAT_NUM_EXPR and
1190         FIRST_ARG_NUM_EXPR by the return value of validate_constant.
1191         (check_function_format): Adjust a parameter name.
1192         (handle_format_attribute): Maybe pass FNDECL down to decode_format_attr.
1194 2022-05-04  Marek Polacek  <polacek@redhat.com>
1196         * c-warn.cc (warnings_for_convert_and_check): Convert constants of type
1197         char to int.
1199 2022-04-30  Jason Merrill  <jason@redhat.com>
1201         PR c/100545
1202         * c-attribs.cc (handle_mode_attribute): Copy attributes, aligned,
1203         and typedef.
1204         * c-common.cc (set_underlying_type): Add assert.
1206 2022-04-26  Patrick Palka  <ppalka@redhat.com>
1208         PR c++/105304
1209         * c-common.cc (verify_tree) [restart]: Move up to before the
1210         NULL test.
1212 2022-04-11  Jakub Jelinek  <jakub@redhat.com>
1214         PR c++/105186
1215         * c-common.cc (c_common_nodes_and_builtins): After registering __int%d
1216         and __int%d__ builtin types, initialize corresponding ridpointers
1217         entry.
1219 2022-03-30  Marek Polacek  <polacek@redhat.com>
1221         PR c++/101030
1222         * c-warn.cc (conversion_warning) <case COND_EXPR>: Don't call
1223         conversion_warning when OP1 is null.
1225 2022-03-30  Thomas Schwinge  <thomas@codesourcery.com>
1227         * c.opt (Wc++11-extensions, Wc++14-extensions, Wc++17-extensions)
1228         (Wc++20-extensions, Wc++23-extensions): Remove 'LangEnabledBy'
1229         option properties.
1231 2022-03-30  Thomas Schwinge  <thomas@codesourcery.com>
1233         * c.opt (Wuse-after-free): Remove.
1235 2022-03-30  Thomas Schwinge  <thomas@codesourcery.com>
1237         * c.opt (Warray-bounds): Remove.
1239 2022-03-26  Thomas Schwinge  <thomas@codesourcery.com>
1241         * c.opt: Properly quote comment.
1243 2022-03-25  Eric Botcazou  <ebotcazou@adacore.com>
1245         * c-ada-spec.cc (dump_ada_import): Deal with the "section" attribute
1246         (dump_ada_node) <POINTER_TYPE>: Do not modify and pass the name, but
1247         the referenced type instead.  Deal with the anonymous original type
1248         of a typedef'ed type.  In the actual access case, follow the chain
1249         of external subtypes.
1250         <TYPE_DECL>: Tidy up control flow.
1252 2022-03-21  Qian Jianhua  <qianjh@cn.fujitsu.com>
1254         * c-ada-spec.cc: Change array length
1256 2022-03-19  Arthur Cohen  <arthur.cohen@embecosm.com>
1258         * c-common.cc (c_family_tests): Call the new tests.
1259         * c-common.h (c_diagnostic_tests): Declare.
1260         (c_opt_problem_cc_tests): Likewise.
1262 2022-03-19  Jakub Jelinek  <jakub@redhat.com>
1264         PR c++/101515
1265         * c-pretty-print.cc (c_fold_indirect_ref_for_warn): For C++ don't
1266         return COMPONENT_REFs with FIELD_DECLs whose containing scope can't
1267         be printed.
1269 2022-03-16  Christophe Lyon  <christophe.lyon@arm.com>
1270             Roger Sayle  <roger@nextmovesoftware.com>
1272         PR c/98198
1273         * c-attribs.cc (decl_or_type_attrs): Add error_mark_node check.
1275 2022-03-16  Patrick Palka  <ppalka@redhat.com>
1277         PR c++/96780
1278         * c.opt: Add -ffold-simple-inlines.
1280 2022-03-13  Tobias Burnus  <tobias@codesourcery.com>
1282         * c-target.def (check_string_object_format_arg): Fix description typo.
1284 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
1286         PR other/65095
1287         * c-common.h (c_omp_map_clause_name): Remove.
1288         * c-omp.cc (c_omp_map_clause_name): Remove.
1290 2022-03-09  Jakub Jelinek  <jakub@redhat.com>
1292         PR c/104711
1293         * c-opts.cc (c_common_post_options): Don't enable
1294         -Wshift-negative-value from -Wextra for C++20 or later.
1295         * c-ubsan.cc (ubsan_instrument_shift): Adjust comments.
1296         * c-warn.cc (maybe_warn_shift_overflow): Use TYPE_OVERFLOW_WRAPS
1297         instead of TYPE_UNSIGNED.
1299 2022-03-07  Jakub Jelinek  <jakub@redhat.com>
1301         * c-attribs.cc: Fix up duplicated word issue in a comment.
1303 2022-03-01  Martin Liska  <mliska@suse.cz>
1305         PR ipa/104533
1306         * c-attribs.cc (handle_target_clones_attribute): Use
1307         get_target_clone_attr_len and report warning soon.
1309 2022-02-17  Jonathan Wakely  <jwakely@redhat.com>
1311         * c-pragma.cc (handle_pragma_pack): Remove parameter name.
1312         (handle_pragma_weak): Likewise.
1313         (handle_pragma_scalar_storage_order): Likewise.
1314         (handle_pragma_redefine_extname): Likewise.
1315         (handle_pragma_visibility): Likewise.
1316         (handle_pragma_diagnostic): Likewise.
1317         (handle_pragma_target): Likewise.
1318         (handle_pragma_optimize): Likewise.
1319         (handle_pragma_push_options): Likewise.
1320         (handle_pragma_pop_options): Likewise.
1321         (handle_pragma_reset_options): Likewise.
1322         (handle_pragma_message): Likewise.
1323         (handle_pragma_float_const_decimal64): Likewise.
1325 2022-02-16  Jakub Jelinek  <jakub@redhat.com>
1327         PR c/104531
1328         * c-omp.cc (c_finish_omp_atomic): For MIN_EXPR/MAX_EXPR, try first
1329         build_binary_op with LT_EXPR and only if that doesn't return
1330         error_mark_node call build_modify_expr.
1332 2022-02-16  Jakub Jelinek  <jakub@redhat.com>
1334         PR c/104510
1335         * c-common.cc (shorten_compare): Convert original arguments to
1336         the original *restype_ptr when mixing binary and decimal float.
1338 2022-02-14  Richard Biener  <rguenther@suse.de>
1340         PR c/104505
1341         * c-pretty-print.cc (c_pretty_printer::postfix_expression): Handle
1342         internal function calls.
1344 2022-02-11  Richard Biener  <rguenther@suse.de>
1346         * c-attribs.cc (c_common_attribute_table): Add entry for
1347         vector_mask.
1348         (handle_vector_mask_attribute): New.
1350 2022-02-10  Marcel Vollweiler  <marcel@codesourcery.com>
1352         * c-omp.cc (c_omp_split_clauses): Added OMP_CLAUSE_HAS_DEVICE_ADDR case.
1353         * c-pragma.h (enum pragma_kind): Added 5.1 in comment.
1354         (enum pragma_omp_clause): Added PRAGMA_OMP_CLAUSE_HAS_DEVICE_ADDR.
1356 2022-02-09  Jason Merrill  <jason@redhat.com>
1358         * c-cppbuiltin.cc (c_cpp_builtins): Update values
1359         of __cpp_constexpr and __cpp_concepts for C++20.
1361 2022-01-24  Marek Polacek  <polacek@redhat.com>
1363         PR preprocessor/104030
1364         * c.opt (Wbidi-chars): Mark as EnumSet.  Also accept =ucn.
1366 2022-01-21  Jakub Jelinek  <jakub@redhat.com>
1368         PR c++/104148
1369         * c-common.h (check_function_arguments_recurse): Add for_format
1370         arg.
1371         * c-common.cc (check_function_nonnull): Pass false to
1372         check_function_arguments_recurse's last argument.
1373         (check_function_arguments_recurse): Add for_format argument,
1374         if true, don't stop on warning_suppressed_p.
1375         * c-format.cc (check_format_info): Pass true to
1376         check_function_arguments_recurse's last argument.
1378 2022-01-19  David Malcolm  <dmalcolm@redhat.com>
1380         * c-common.cc (c_common_c_tests): Rename to...
1381         (c_common_cc_tests): ...this.
1382         (c_family_tests): Update calls for .c to .cc renaming.
1383         * c-common.h (c_format_c_tests): Rename to...
1384         (c_format_cc_tests): ...this.
1385         (c_indentation_c_tests): Rename to...
1386         (c_indentation_cc_tests): ...this.
1387         (c_pretty_print_c_tests): Rename to...
1388         (c_pretty_print_cc_tests): ...this.
1389         * c-format.cc (c_format_c_tests): Rename to...
1390         (c_format_cc_tests): ...this.
1391         * c-indentation.cc (c_indentation_c_tests): Rename to...
1392         (c_indentation_cc_tests): ...this.
1393         * c-pretty-print.cc (c_pretty_print_c_tests): Rename to...
1394         (c_pretty_print_cc_tests): ...this.
1396 2022-01-17  Martin Liska  <mliska@suse.cz>
1398         * c-ada-spec.cc: Rename .c names to .cc.
1399         * c-ada-spec.h: Likewise.
1400         * c-common.cc (c_build_vec_convert): Likewise.
1401         (warning_candidate_p): Likewise.
1402         * c-common.h (enum rid): Likewise.
1403         (build_real_imag_expr): Likewise.
1404         (finish_label_address_expr): Likewise.
1405         (c_get_substring_location): Likewise.
1406         (c_build_bind_expr): Likewise.
1407         (conflict_marker_get_final_tok_kind): Likewise.
1408         (c_parse_error): Likewise.
1409         (check_missing_format_attribute): Likewise.
1410         (invalid_array_size_error): Likewise.
1411         (warn_for_multistatement_macros): Likewise.
1412         (build_attr_access_from_parms): Likewise.
1413         * c-cppbuiltin.cc (c_cpp_builtins): Likewise.
1414         * c-format.cc: Likewise.
1415         * c-gimplify.cc (c_gimplify_expr): Likewise.
1416         * c-indentation.h: Likewise.
1417         * c-objc.h (objc_prop_attr_kind_for_rid): Likewise.
1418         * c-omp.cc (c_omp_predetermined_mapping): Likewise.
1419         * c-opts.cc (c_common_post_options): Likewise.
1420         (set_std_cxx23): Likewise.
1421         * c-pragma.cc (handle_pragma_redefine_extname): Likewise.
1422         * c-pretty-print.h: Likewise.
1424 2022-01-17  Martin Liska  <mliska@suse.cz>
1426         * c-ada-spec.c: Moved to...
1427         * c-ada-spec.cc: ...here.
1428         * c-attribs.c: Moved to...
1429         * c-attribs.cc: ...here.
1430         * c-common.c: Moved to...
1431         * c-common.cc: ...here.
1432         * c-cppbuiltin.c: Moved to...
1433         * c-cppbuiltin.cc: ...here.
1434         * c-dump.c: Moved to...
1435         * c-dump.cc: ...here.
1436         * c-format.c: Moved to...
1437         * c-format.cc: ...here.
1438         * c-gimplify.c: Moved to...
1439         * c-gimplify.cc: ...here.
1440         * c-indentation.c: Moved to...
1441         * c-indentation.cc: ...here.
1442         * c-lex.c: Moved to...
1443         * c-lex.cc: ...here.
1444         * c-omp.c: Moved to...
1445         * c-omp.cc: ...here.
1446         * c-opts.c: Moved to...
1447         * c-opts.cc: ...here.
1448         * c-pch.c: Moved to...
1449         * c-pch.cc: ...here.
1450         * c-ppoutput.c: Moved to...
1451         * c-ppoutput.cc: ...here.
1452         * c-pragma.c: Moved to...
1453         * c-pragma.cc: ...here.
1454         * c-pretty-print.c: Moved to...
1455         * c-pretty-print.cc: ...here.
1456         * c-semantics.c: Moved to...
1457         * c-semantics.cc: ...here.
1458         * c-ubsan.c: Moved to...
1459         * c-ubsan.cc: ...here.
1460         * c-warn.c: Moved to...
1461         * c-warn.cc: ...here.
1462         * cppspec.c: Moved to...
1463         * cppspec.cc: ...here.
1464         * stub-objc.c: Moved to...
1465         * stub-objc.cc: ...here.
1467 2022-01-15  Martin Sebor  <msebor@redhat.com>
1469         PR c/63272
1470         * c.opt (-Wdangling-pointer): New option.
1472 2022-01-15  Martin Sebor  <msebor@redhat.com>
1474         PR tree-optimization/80532
1475         * c.opt (-Wuse-after-free): New options.
1477 2022-01-14  David Malcolm  <dmalcolm@redhat.com>
1479         * c-attribs.c (c_common_attribute_table): Add "tainted_args".
1480         (handle_tainted_args_attribute): New.
1482 2022-01-13  Anthony Sharp  <anthonysharp15@gmail.com>
1483             Jason Merrill  <jason@redhat.com>
1485         PR c++/70417
1486         * c.opt: Added -Wmissing-template-keyword.
1488 2022-01-13  Richard Biener  <rguenther@suse.de>
1490         PR c/104002
1491         * c-common.c (c_common_mark_addressable_vec): Handle TARGET_EXPR.
1493 2022-01-12  Martin Liska  <mliska@suse.cz>
1495         PR target/103804
1496         * c-attribs.c (handle_optimize_attribute): Do not call
1497         cl_optimization_compare if we seen an error.
1499 2022-01-11  Jakub Jelinek  <jakub@redhat.com>
1501         PR c/101537
1502         PR c/103881
1503         * c-warn.c (conversion_warning): Handle BIT_AND_EXPR, BIT_IOR_EXPR
1504         and BIT_XOR_EXPR.
1506 2022-01-10  Richard Biener  <rguenther@suse.de>
1508         PR middle-end/101530
1509         * c-common.c (c_build_shufflevector): Wrap the BIT_FIELD_REF
1510         in a TARGET_EXPR to force a temporary.
1512 2022-01-06  Marek Polacek  <polacek@redhat.com>
1514         PR c++/103758
1515         * c-pragma.c (handle_pragma_scalar_storage_order): Use %< %> in
1516         diagnostic messages.
1517         (handle_pragma_diagnostic): Likewise.
1519 2022-01-03  Marek Polacek  <polacek@redhat.com>
1521         PR c++/103758
1522         * c-format.c (check_tokens): Accept "decl-specifier*".
1524 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
1526         PR c++/103600
1527         * c-attribs.c (handle_non_overlapping_attribute): New function.
1528         (c_common_attribute_table): Add "non overlapping" attribute.
1530 2021-12-30  Jakub Jelinek  <jakub@redhat.com>
1532         PR c++/103012
1533         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Perform
1534         cpp_define_unused/cpp_undef calls with forced token locations
1535         BUILTINS_LOCATION.
1537 2021-12-27  Patrick Palka  <ppalka@redhat.com>
1539         PR c++/103700
1540         * c-common.c (pointer_int_sum): When quiet, return
1541         error_mark_node for an incomplete pointed-to type and don't
1542         call size_in_bytes_loc.
1544 2021-12-17  Jason Merrill  <jason@redhat.com>
1546         PR c++/103681
1547         * c-opts.c (c_common_post_options): Update defaults.
1549 2021-12-16  Martin Liska  <mliska@suse.cz>
1551         PR target/103709
1552         * c-pragma.c (handle_pragma_pop_options): Do not check
1553         global options modification when an error is seen in parsing
1554         of options (pragmas or attributes).
1556 2021-12-12  Jonathan Wakely  <jwakely@redhat.com>
1558         * known-headers.cc: Define INCLUDE_MEMORY instead of
1559         INCLUDE_UNIQUE_PTR.
1560         * name-hint.h: Likewise.
1561         (class name_hint): Use std::unique_ptr instead of gnu::unique_ptr.
1563 2021-12-09  Jakub Jelinek  <jakub@redhat.com>
1565         PR pch/71934
1566         * c-pch.c (c_common_no_more_pch): Pass a temporary void * var
1567         with NULL value instead of NULL to host_hooks.gt_pch_use_address.
1569 2021-12-03  Jakub Jelinek  <jakub@redhat.com>
1571         PR pch/71934
1572         * c-pch.c (struct c_pch_validity): Remove pch_init member.
1573         (pch_init): Don't initialize v.pch_init.
1574         (c_common_valid_pch): Don't warn and punt if .text addresses change.
1576 2021-12-01  Jason Merrill  <jason@redhat.com>
1578         PR c++/103310
1579         * c.opt: Add -fconstexpr-fp-except.
1581 2021-11-29  Richard Biener  <rguenther@suse.de>
1583         * c-format.c (check_format_string): Remove spurious
1584         gcc_unreachable.
1586 2021-11-29  Richard Biener  <rguenther@suse.de>
1588         * c-opts.c (c_common_post_options): Remove unreachable return.
1589         * c-pragma.c (handle_pragma_target): Likewise.
1590         (handle_pragma_optimize): Likewise.
1592 2021-11-25  Jakub Jelinek  <jakub@redhat.com>
1594         PR c++/102611
1595         * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by
1596         default for C++23 regardless of warn_deprecated.
1597         * c-cppbuiltin.c (c_cpp_builtins): Predefine
1598         __cpp_multidimensional_subscript=202110L for C++23.
1600 2021-11-23  Martin Sebor  <msebor@redhat.com>
1602         PR middle-end/88232
1603         * c.opt: Add -Winfinite-recursion.
1605 2021-11-19  Martin Sebor  <msebor@redhat.com>
1607         PR c++/33925
1608         PR c/102867
1609         * c-common.c (decl_with_nonnull_addr_p): Call maybe_nonzero_address
1610         and improve handling tof defined symbols.
1612 2021-11-19  Martin Liska  <mliska@suse.cz>
1614         Revert:
1615         2021-11-18  Martin Liska  <mliska@suse.cz>
1617         * c-gimplify.c (genericize_c_loop): Use option directly.
1619 2021-11-18  Matthias Kretz  <m.kretz@gsi.de>
1621         * c-common.c (c_common_reswords): Add __builtin_assoc_barrier.
1622         * c-common.h (enum rid): Add RID_BUILTIN_ASSOC_BARRIER.
1624 2021-11-18  Martin Liska  <mliska@suse.cz>
1626         * c-gimplify.c (genericize_c_loop): Use option directly.
1628 2021-11-17  Martin Uecker  <uecker@gcc.gnu.org>
1630         PR c/91038
1631         PR c/29970
1632         * c-common.c (pointer_int_sum): Make sure pointer expressions
1633         are evaluated first when the size expression depends on for
1634         variably-modified types.
1636 2021-11-17  Marek Polacek  <polacek@redhat.com>
1638         PR preprocessor/103026
1639         * c.opt (Wbidi-chars, Wbidi-chars=): New option.
1641 2021-11-16  Jason Merrill  <jason@redhat.com>
1643         * c-common.c (release_tree_vector): Only cache vecs smaller than
1644         16 elements.
1646 2021-11-15  Jason Merrill  <jason@redhat.com>
1648         * c.opt: Add -fimplicit-constexpr.
1649         * c-cppbuiltin.c: Define __cpp_implicit_constexpr.
1650         * c-opts.c (c_common_post_options): Disable below C++14.
1652 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
1654         * c-omp.c (c_omp_split_clauses) <case OMP_CLAUSE_THREAD_LIMIT>:
1655         Duplicate to both OMP_TARGET and OMP_TEAMS.
1657 2021-11-10  Marek Polacek  <polacek@redhat.com>
1659         PR c++/101940
1660         * c-pragma.c (handle_pragma_diagnostic): Handle #pragma GCC diagnostic
1661         ignored_attributes.
1663 2021-11-09  David Malcolm  <dmalcolm@redhat.com>
1665         * c-pragma.c (GCC_BAD_AT): New macro.
1666         (GCC_BAD2_AT): New macro.
1667         (handle_pragma_pack): Use the location of the pertinent token when
1668         issuing diagnostics about invalid constants/actions, and trailing
1669         junk.
1670         (handle_pragma_target): Likewise for non-string "GCC option".
1671         (handle_pragma_message): Likewise for trailing junk.
1673 2021-11-03  Joseph Myers  <joseph@codesourcery.com>
1675         PR c/103031
1676         * c-common.c (convert_and_check): Add argument init_const.  Call
1677         convert_init if init_const.
1678         * c-common.h (convert_and_check): Update prototype.
1679         (convert_init): New prototype.
1681 2021-11-01  David Malcolm  <dmalcolm@redhat.com>
1683         * c-lex.c (c_lex_with_flags): When complaining about non-printable
1684         CPP_OTHER tokens, set the "escape on output" flag.
1686 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
1688         * c-omp.c (c_omp_check_loop_iv_r): Don't clear 3rd bit for
1689         POINTER_PLUS_EXPR.
1690         (c_omp_check_nonrect_loop_iv): Handle POINTER_PLUS_EXPR.
1691         (c_omp_check_loop_iv): Set kind even if the iterator is non-integral.
1693 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
1695         PR c++/102854
1696         * c-common.h (c_omp_check_loop_iv_exprs): Add enum tree_code argument.
1697         * c-omp.c (c_omp_check_loop_iv_r): For trees other than decls,
1698         TREE_VEC, PLUS_EXPR, MINUS_EXPR, MULT_EXPR, POINTER_PLUS_EXPR or
1699         conversions temporarily clear the 3rd bit from d->kind while walking
1700         subtrees.
1701         (c_omp_check_loop_iv_exprs): Add CODE argument.  Or in 4 into data.kind
1702         if possibly non-rectangular.
1704 2021-10-21  Jakub Jelinek  <jakub@redhat.com>
1706         PR middle-end/64888
1707         * c-omp.c (c_omp_predefined_variable): Return true also for
1708         ubsan_create_data created artificial variables.
1710 2021-10-14  Joseph Myers  <joseph@codesourcery.com>
1712         * c-format.c (printf_length_specs, scanf_length_specs)
1713         (print_char_table, scan_char_table): Support DFP formats for C2X.
1714         * c-format.h (TEX_D32, TEX_D64, TEX_D128): Remove.
1715         (T2X_D32, T2X_D64, T2X_D128): New macros.
1717 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
1719         * c-omp.c (c_omp_check_context_selector): Rename to
1720         omp_check_context_selector and move to omp-general.c.
1721         (c_omp_mark_declare_variant): Rename to omp_mark_declare_variant and
1722         move to omp-general.c.
1724 2021-10-12  Joseph Myers  <joseph@codesourcery.com>
1726         * c-format.c (print_char_table): Add %b and %B formats.
1727         (scan_char_table): Add %b format.
1728         * c-format.h (T2X_UI, T2X_UL, T2X_ULL, T2X_US, T2X_UC, T2X_ST)
1729         (T2X_UPD, T2X_UIM): New macros.
1731 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
1733         * c-omp.c (c_finish_omp_atomic): Use
1734         clear_padding_type_may_have_padding_p.
1736 2021-10-08  Martin Liska  <mliska@suse.cz>
1738         * c-opts.c (c_common_post_options): Use new macro
1739         OPTION_SET_P.
1741 2021-10-07  Martin Liska  <mliska@suse.cz>
1743         * c-common.c (parse_optimize_options): Make
1744         save_opt_decoded_options a pointer type.
1746 2021-10-06  Jakub Jelinek  <jakub@redhat.com>
1748         PR tree-optimization/102571
1749         * c-omp.c (c_finish_omp_atomic): Optimize the case where type has
1750         padding, but the non-padding bits are contiguous set of bytes
1751         by adjusting the memcmp call arguments instead of emitting
1752         __builtin_clear_padding and then comparing all the type's bytes.
1754 2021-10-06  Jakub Jelinek  <jakub@redhat.com>
1756         PR c++/102612
1757         * c-cppbuiltin.c (c_cpp_builtins): For -std=c++23 predefine
1758         __cpp_constexpr to 202110L rather than 201907L.
1760 2021-10-04  Marek Polacek  <polacek@redhat.com>
1762         PR c++/97573
1763         * c-common.h (do_warn_array_compare): Declare.
1764         * c-warn.c (do_warn_array_compare): New.
1765         * c.opt (Warray-compare): New option.
1767 2021-10-02  Iain Sandoe  <iain@sandoe.co.uk>
1769         * c-format.c: Remove a test of TARGET_FORMAT_TYPES with
1770         NULL, this is not needed.
1772 2021-10-01  Martin Sebor  <msebor@redhat.com>
1774         PR c/102103
1775         * c-common.c (decl_with_nonnull_addr_p): Handle members.
1776         Check and perform warning suppression.
1777         (c_common_truthvalue_conversion): Enhance warning suppression.
1779 2021-10-01  Martin Liska  <mliska@suse.cz>
1781         PR target/102552
1782         * c-common.c (parse_optimize_options): decoded_options[0] is
1783         used for program name, so merged_decoded_options should also
1784         respect that.
1786 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
1787             Richard Biener  <rguenther@suse.de>
1789         PR sanitizer/102515
1790         * c-ubsan.c (ubsan_instrument_division): Check the right
1791         flag_sanitize_recover bit, depending on which sanitization
1792         is done.  Sanitize INT_MIN / -1 under SANITIZE_SI_OVERFLOW
1793         rather than SANITIZE_DIVIDE.  If both SANITIZE_SI_OVERFLOW
1794         and SANITIZE_DIVIDE is enabled, neither check is known
1795         to be false and flag_sanitize_recover bits for those two
1796         aren't the same, emit both __ubsan_handle_divrem_overflow
1797         and __ubsan_handle_divrem_overflow_abort calls.
1799 2021-10-01  Martin Liska  <mliska@suse.cz>
1801         * c-common.c (parse_optimize_options): Combine optimize
1802         options with what was provided on the command line.
1804 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
1806         * c-omp.c (c_omp_split_clauses): Also copy
1807         OMP_CLAUSE_ORDER_REPRODUCIBLE.
1809 2021-09-27  Martin Liska  <mliska@suse.cz>
1811         * c-opts.c (c_common_init_options_struct): Set also
1812         x_flag_default_complex_method.
1814 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
1816         * c-omp.c (c_omp_split_clauses): Copy over OMP_CLAUSE_ALLOCATE_ALIGN.
1818 2021-09-20  Matthias Kretz  <m.kretz@gsi.de>
1820         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define or
1821         undefine __RECIPROCAL_MATH__, __NO_SIGNED_ZEROS__,
1822         __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__, and
1823         __ROUNDING_MATH__ according to the new optimization flags.
1825 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
1827         * c-omp.c (c_omp_split_clauses): Split order clause also to
1828         distribute construct.  Copy over OMP_CLAUSE_ORDER_UNCONSTRAINED.
1830 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
1832         * c-omp.c (c_finish_omp_atomic): Avoid creating
1833         TARGET_EXPR if test is true, use create_tmp_var_raw instead of
1834         create_tmp_var and add a zero initializer to TARGET_EXPRs that
1835         had NULL initializer.  When omitting operands after v = x,
1836         use type of v rather than type of x.  Fix type of vtmp
1837         TARGET_EXPR.
1839 2021-09-13  Jason Merrill  <jason@redhat.com>
1841         * c.opt: Add -Winterference-size.
1842         * c-cppbuiltin.c (cpp_atomic_builtins): Add __GCC_DESTRUCTIVE_SIZE
1843         and __GCC_CONSTRUCTIVE_SIZE.
1845 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
1847         * c-common.h (c_finish_omp_atomic): Add r and weak arguments.
1848         * c-omp.c: Include gimple-fold.h.
1849         (c_finish_omp_atomic): Add r and weak arguments.  Add support for
1850         OpenMP 5.1 atomics.
1852 2021-09-09  qing zhao  <qing.zhao@oracle.com>
1854         * c-attribs.c (handle_uninitialized_attribute): New function.
1855         (c_common_attribute_table): Add "uninitialized" attribute.
1857 2021-09-08  liuhongt  <hongtao.liu@intel.com>
1859         * c-common.c (excess_precision_mode_join): Update below comments.
1860         (c_ts18661_flt_eval_method): Set excess_precision_type to
1861         EXCESS_PRECISION_TYPE_FLOAT16 when -fexcess-precision=16.
1862         * c-cppbuiltin.c (cpp_atomic_builtins): Update below comments.
1863         (c_cpp_flt_eval_method_iec_559): Set excess_precision_type to
1864         EXCESS_PRECISION_TYPE_FLOAT16 when -fexcess-precision=16.
1866 2021-09-07  Marcel Vollweiler  <marcel@codesourcery.com>
1868         * c-omp.c (c_finish_omp_flush): Handle MEMMODEL_SEQ_CST.
1870 2021-09-03  Eric Botcazou  <ebotcazou@adacore.com>
1872         * c-ada-spec.c (dump_ads): Generate pragmas to disable style checks
1873         and -gnatwu warning for the package specification.
1875 2021-09-01  Iain Sandoe  <iain@sandoe.co.uk>
1877         * c-attribs.c (handle_unavailable_attribute): New.
1879 2021-08-30  Jason Merrill  <jason@redhat.com>
1881         * c.opt: Add -Wmissing-requires.
1883 2021-08-25  Lewis Hyatt  <lhyatt@gmail.com>
1885         PR other/93067
1886         * c-opts.c (c_common_input_charset_cb): New function.
1887         (c_common_post_options): Call new function
1888         diagnostic_initialize_input_context().
1890 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
1892         * c-format.c (gcc_gfc_length_specs): Add 'll' and 'w'.
1893         (gcc_gfc_char_table): Add T9L_LL and T9L_ULL to
1894         "di" and "u", respecitively; fill with BADLEN to match
1895         size of 'types'.
1896         (get_init_dynamic_hwi): Split off from ...
1897         (init_dynamic_diag_info): ... here. Call it.
1898         (init_dynamic_gfc_info): Call it.
1900 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
1902         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ERROR.
1903         * c-pragma.c (omp_pragmas): Add error directive.
1904         * c-omp.c (omp_directives): Uncomment error directive entry.
1906 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
1908         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_NOTHING.
1909         * c-pragma.c (omp_pragmas): Add nothing directive.
1910         * c-omp.c (omp_directives): Uncomment nothing directive entry.
1912 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
1914         PR c++/101539
1915         * c-common.h (enum rid): Add RID_IS_LAYOUT_COMPATIBLE.
1916         * c-common.c (c_common_reswords): Add __is_layout_compatible.
1918 2021-08-17  Matt Jacobson  <mhjacobson@me.com>
1920         * c-opts.c (c_common_post_options): Default to
1921         flag_objc_sjlj_exceptions = 1 only when flag_objc_abi < 2.
1923 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
1925         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCOPE.
1926         * c-pragma.c (omp_pragmas): Add scope construct.
1927         * c-omp.c (omp_directives): Uncomment scope directive entry.
1929 2021-08-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1931         * c-cppbuiltin.c (c_cpp_builtins): Define
1932         __LIBGCC_GCOV_TYPE_SIZE if flag_building_libgcc is true.
1934 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
1936         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_MASKED.
1937         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FILTER.
1938         * c-pragma.c (omp_pragmas_simd): Add masked construct.
1939         * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_MASKED
1940         enumerator.
1941         (c_finish_omp_masked): Declare.
1942         * c-omp.c (c_finish_omp_masked): New function.
1943         (c_omp_split_clauses): Handle combined masked constructs.
1945 2021-07-30  Jakub Jelinek  <jakub@redhat.com>
1947         PR c++/101539
1948         * c-common.h (enum rid): Add RID_IS_POINTER_INTERCONVERTIBLE_BASE_OF.
1949         * c-common.c (c_common_reswords): Add
1950         __is_pointer_interconvertible_base_of.
1952 2021-07-29  Richard Biener  <rguenther@suse.de>
1954         PR c/101512
1955         * c-common.c (c_common_mark_addressable_vec): Look through
1956         C_MAYBE_CONST_EXPR even if not at the toplevel.
1958 2021-07-27  Martin Sebor  <msebor@redhat.com>
1960         PR c/101585
1961         * c-warn.c (warn_parm_ptrarray_mismatch): Use OEP_DECL_NAME.
1963 2021-07-23  Jakub Jelinek  <jakub@redhat.com>
1965         * c-lex.c (c_common_has_attribute): Call canonicalize_attr_name also
1966         on attr_id.  Return 1 for omp::directive or omp::sequence in C++11
1967         and later.
1969 2021-07-23  Jakub Jelinek  <jakub@redhat.com>
1971         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP__START_ and
1972         PRAGMA_OMP__LAST_ enumerators.
1974 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
1975             Joseph Myers  <joseph@codesourcery.com>
1976             Cesar Philippidis  <cesar@codesourcery.com>
1978         * c-pragma.h (pragma_omp_clause): Add 'PRAGMA_OACC_CLAUSE_NOHOST'.
1980 2021-07-20  Martin Sebor  <msebor@redhat.com>
1982         * c-common.c (c_build_shufflevector): Adjust by-value argument to
1983         by-const-reference.
1984         * c-common.h (c_build_shufflevector): Same.
1986 2021-07-16  Andrew Pinski  <apinski@marvell.com>
1988         PR c/101453
1989         * c-common.c (parse_optimize_options): Use the correct
1990         size for buffer.
1992 2021-07-15  Martin Sebor  <msebor@redhat.com>
1994         PR c/101289
1995         PR c/97548
1996         * c-warn.c (warn_parm_array_mismatch): Use OEP_DECL_NAME.
1998 2021-07-14  Jason Merrill  <jason@redhat.com>
2000         * c-opts.c (c_common_post_options): Set -fdelete-dead-exceptions.
2002 2021-07-06  Martin Sebor  <msebor@redhat.com>
2004         * c-format.c (gcc_tdiag_char_table): Remove support for %G and %K.
2005         (gcc_cdiag_char_table): Same.
2006         (gcc_cxxdiag_char_table): Same.
2008 2021-07-02  Jakub Jelinek  <jakub@redhat.com>
2010         * c-common.h (enum c_omp_directive_kind): New enum.
2011         (struct c_omp_directive): New type.
2012         (c_omp_categorize_directive): Declare.
2013         * c-omp.c (omp_directives): New variable.
2014         (c_omp_categorize_directive): New function.
2016 2021-07-01  Eric Botcazou  <ebotcazou@adacore.com>
2018         * c-ada-spec.c (packed_layout): New global variable.
2019         (dump_ada_declaration): Set it upon seeing a packed record type.
2020         Do not put the "aliased" keyword if it is set.
2021         (dump_ada_structure): Add Pack aspect if it is set and clear it.
2023 2021-07-01  Eric Botcazou  <ebotcazou@adacore.com>
2025         * c-ada-spec.c (check_name): Rename into...
2026         (check_type_name_conflict): ...this.  Minor tweak.
2027         (dump_ada_function_declaration): Adjust to above renaming.
2028         (dump_ada_array_domains): Fix oversight.
2029         (dump_ada_declaration): Call check_type_name_conflict for variables.
2031 2021-06-25  Martin Sebor  <msebor@redhat.com>
2033         * c-common.c (c_wrap_maybe_const): Remove TREE_NO_WARNING.
2034         (c_common_truthvalue_conversion): Replace direct uses of
2035         TREE_NO_WARNING with warning_suppressed_p, suppress_warning, and
2036         copy_no_warning.
2037         (check_function_arguments_recurse): Same.
2038         * c-gimplify.c (c_gimplify_expr): Same.
2039         * c-warn.c (overflow_warning): Same.
2040         (warn_logical_operator): Same.
2041         (warn_if_unused_value): Same.
2042         (do_warn_unused_parameter): Same.
2044 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
2046         * c-common.h (enum c_omp_region_type): Add C_ORT_TARGET and
2047         C_ORT_OMP_TARGET.
2048         * c-omp.c (c_omp_split_clauses): For OMP_CLAUSE_IN_REDUCTION on
2049         combined target constructs also add map (always, tofrom:) clause.
2051 2021-06-15  Robin Dapp  <rdapp@linux.ibm.com>
2053         * c-attribs.c (common_handle_aligned_attribute): Remove short
2054         circuit and dead code.
2056 2021-06-14  Jonathan Wakely  <jwakely@redhat.com>
2058         PR c++/101052
2059         * known-headers.cc (get_stdlib_header_for_name): Add known
2060         headers for EXIT_FAILURE, EXIT_SUCCESS, abort, atexit, calloc,
2061         exit, and getenv.
2063 2021-06-12  Jason Merrill  <jason@redhat.com>
2065         * c-attribs.c (handle_unused_attribute): Handle FIELD_DECL.
2067 2021-06-11  Jakub Jelinek  <jakub@redhat.com>
2069         PR c++/100974
2070         * c-cppbuiltin.c (c_cpp_builtins): Predefine __cpp_if_consteval for
2071         -std=c++2b for P1938R3 consteval if support.
2073 2021-06-09  Jason Merrill  <jason@redhat.com>
2075         PR c++/100879
2076         * c-warn.c (warn_for_sign_compare): Remove C++ enum mismatch
2077         warning.
2079 2021-06-07  Martin Liska  <mliska@suse.cz>
2081         * c-target.def: Split long lines and replace them
2082         with '\n\'.
2084 2021-06-04  Martin Sebor  <msebor@redhat.com>
2086         PR c/100783
2087         * c-attribs.c (positional_argument): Bail on erroneous types.
2089 2021-06-04  Martin Sebor  <msebor@redhat.com>
2091         * c-warn.c (warn_parm_array_mismatch): Check TREE_PURPOSE to test
2092         for element presence.
2094 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
2096         * c-ada-spec.c (dump_ada_macros): Minor tweaks.
2097         (dump_ada_decl_name): Likewise.
2098         (dump_anonymous_type_name): Remove parent parameter and adjust.
2099         (dump_sloc): Minor tweak.
2100         (dump_ada_array_type): Remove type parameter and adjust.
2101         (dump_ada_enum_type): Remove parent parameter and adjust.
2102         (dump_ada_node): Adjust calls to above functions.
2103         (dumped_anonymous_types): New global variable.
2104         (dump_nested_types_1): Rename into...
2105         (dump_nested_types): ...this.
2106         (dump_nested_type): Remove parent and dumped_types parameters.
2107         <ARRAY_TYPE>: Replace dumped_types with dumped_anonymous_types.
2108         Adjust calls to dump_anonymous_type_name and dump_ada_array_type.
2109         (dump_ada_specs): Initialize and free dumped_anonymous_types.
2111 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
2113         * c-ada-spec.c (pp_ada_tree_identifier): Tidy up.
2114         (dump_ada_node) <POINTER_TYPE>: Deal specially with external subtypes.
2116 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
2118         * c-ada-spec.c (dump_ada_enum_type): Dump a prefix for constants.
2119         (htable_t): New typedef.
2120         (overloaded_names): Use it.
2121         (add_name): New function.
2122         (init_overloaded_names): Use add_name to populate the table and add
2123         special cases for sigaction and stat.
2124         (overloaded_name_p): Rename into...
2125         (overloading_index): ...this.  Do not initialize overloaded_names table
2126         here.  Return the index or zero.
2127         (dump_ada_declaration): Minor tweaks.  Do not skip overloaded functions
2128         but add an overloading suffix instead.
2129         (dump_ada_specs): Initialize overloaded_names tables here.
2131 2021-06-01  Martin Liska  <mliska@suse.cz>
2133         PR other/100759
2134         * c-attribs.c (handle_optimize_attribute): Limit sanity check
2135         to a situation where we are not in processing of an optimize
2136         pragma.
2137         * c-pragma.c (handle_pragma_pop_options): Restore target
2138         options.
2140 2021-05-31  Indu Bhagat  <indu.bhagat@oracle.com>
2142         PR testsuite/100749
2143         * c-pch.c (c_common_valid_pch): Use xstrdup for debug format set names.
2145 2021-05-31  Richard Biener  <rguenther@suse.de>
2147         PR c++/88601
2148         * c-common.c: Include tree-vector-builder.h and
2149         vec-perm-indices.h.
2150         (c_common_reswords): Add __builtin_shufflevector.
2151         (c_build_shufflevector): New funtion.
2152         * c-common.h (enum rid): Add RID_BUILTIN_SHUFFLEVECTOR.
2153         (c_build_shufflevector): Declare.
2155 2021-05-28  Jakub Jelinek  <jakub@redhat.com>
2157         PR middle-end/99928
2158         * c-omp.c (c_omp_split_clauses): For reduction clause if combined with
2159         target add a map tofrom clause with OMP_CLAUSE_MAP_IMPLICIT.
2161 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
2163         * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_AFFINITY.
2165 2021-05-25  Martin Liska  <mliska@suse.cz>
2167         PR tree-optimization/92860
2168         PR target/99592
2169         * c-attribs.c (handle_optimize_attribute): Save target node
2170         before calling parse_optimize_options and save it in case
2171         it changes.
2172         * c-pragma.c (handle_pragma_target): Similarly for pragma.
2173         (handle_pragma_pop_options): Likewise here.
2175 2021-05-25  Martin Liska  <mliska@suse.cz>
2177         * c-attribs.c (handle_no_sanitize_coverage_attribute): New.
2179 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
2181         PR middle-end/99928
2182         * c-omp.c (c_omp_split_clauses): Copy reduction to teams when teams is
2183         combined with simd and not with taskloop or for.
2185 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
2187         PR middle-end/99928
2188         * c-omp.c (c_omp_split_clauses): Set OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT
2189         on firstprivate clause copy going to target construct, and for
2190         target simd set also OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET bit.
2192 2021-05-20  Jonathan Wakely  <jwakely@redhat.com>
2194         * c.opt (Wc++11-extensions, Wc++14-extensions)
2195         (Wc++17-extensions, Wc++20-extensions, Wc++23-extensions): New
2196         options.
2198 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
2200         * c-lex.c (init_c_lex): Use dwarf_debuginfo_p.
2202 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
2204         * c-opts.c (c_common_post_options): Adjust access to debug_type_names.
2205         * c-pch.c (struct c_pch_validity): Use type uint32_t.
2206         (pch_init): Renamed member.
2207         (c_common_valid_pch): Adjust access to debug_type_names.
2209 2021-05-19  Martin Sebor  <msebor@redhat.com>
2211         PR c/100619
2212         * c-attribs.c (build_attr_access_from_parms): Handle arbitrarily many
2213         bounds.
2215 2021-05-18  Richard Biener  <rguenther@suse.de>
2217         PR c/100547
2218         * c-attribs.c (type_valid_for_vector_size): Reject too large nunits.
2219         Reword existing nunit diagnostic.
2221 2021-05-17  Joern Rennecke  <joern.rennecke@embecosm.com>
2223         * c-common.c (braced_list_to_string): Return CTOR unchanged
2224         if host and target character sizes don't match.
2226 2021-05-14  Martin Liska  <mliska@suse.cz>
2228         * c.opt: Add Warning keyword for 2 options.
2230 2021-05-13  Martin Liska  <mliska@suse.cz>
2232         PR middle-end/100504
2233         * c-attribs.c (handle_target_clones_attribute): Expect a string
2234         argument to target_clone argument.
2236 2021-05-11  Joseph Myers  <joseph@codesourcery.com>
2238         * c-lex.c (interpret_float): Handle digit separators for C2X.
2240 2021-05-10  Martin Liska  <mliska@suse.cz>
2242         * c-ada-spec.c (print_destructor): Use startswith
2243         function instead of strncmp.
2244         (dump_ada_declaration): Likewise.
2245         * c-common.c (disable_builtin_function): Likewise.
2246         (def_builtin_1): Likewise.
2247         * c-format.c (check_tokens): Likewise.
2248         (check_plain): Likewise.
2249         (convert_format_name_to_system_name): Likewise.
2251 2021-04-28  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
2253         * c-cppbuiltin.c (c_cpp_builtins): Add supporting macros for new
2254         complex divide
2256 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
2257             Nathan Sidwell  <nathan@codesourcery.com>
2258             Tom de Vries  <vries@codesourcery.com>
2259             Julian Brown  <julian@codesourcery.com>
2260             Kwok Cheung Yeung  <kcy@codesourcery.com>
2262         * c.opt (Wopenacc-parallelism): New.
2264 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
2266         * c.opt (fopenacc-kernels=): Remove.
2268 2021-04-08  Jakub Jelinek  <jakub@redhat.com>
2270         * c-warn.c (do_warn_double_promotion): Fix comment typo,
2271         occured -> occurred.
2272         (check_alignment_of_packed_member): Fix a comment typo,
2273         memeber -> member.
2274         (warn_parm_ptrarray_mismatch): Fix comment typos, os -> of
2275         and onless -> unless.
2276         (warn_parm_array_mismatch): Fix comment typos, declaratation
2277         -> declaration and woud -> would.  Fix up comment indentation.
2279 2021-04-08  Martin Sebor  <msebor@redhat.com>
2281         PR middle-end/99883
2282         * c.opt (Wmismatched-new-delete): Correct spelling.
2284 2021-04-05  Eric Botcazou  <ebotcazou@adacore.com>
2286         * c-ada-spec.c (is_simple_enum): Minor tweaks.
2287         (dump_ada_enum_type): Add TYPE and PARENT parameters.  For non-simple
2288         enumeral types use again the type name for the enumeration constants.
2289         (dump_ada_node): Adjust call to dump_ada_enum_type.
2290         (dump_nested_type): Likewise.
2292 2021-04-01  Jason Merrill  <jason@redhat.com>
2294         PR c++/98481
2295         * c-opts.c (c_common_post_options): Bump latest_abi_version.
2297 2021-03-25  Jakub Jelinek  <jakub@redhat.com>
2299         PR c++/99565
2300         * c-warn.c (do_warn_duplicated_branches): Pass also
2301         OEP_ADDRESS_OF_SAME_FIELD to operand_equal_p.
2303 2021-03-20  Jakub Jelinek  <jakub@redhat.com>
2305         PR debug/99230
2306         * c-gimplify.c (c_genericize_control_stmt): Handle STATEMENT_LIST.
2308 2021-03-05  Eric Botcazou  <ebotcazou@adacore.com>
2310         * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Dump nested types
2311         after entering the separate class package, if any.
2313 2021-03-04  Richard Biener  <rguenther@suse.de>
2315         * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator):
2316         Handle ERROR_MARK.
2318 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
2320         PR c/99325
2321         * c-ppoutput.c (print): Change src_line type from int to unsigned.
2322         (token_streamer::stream) Likewise.
2323         (maybe_print_line_1): Likewise.  Don't strcmp src_file if src_loc is
2324         UNKNOWN_LOCATION.
2326 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
2328         PR c/99324
2329         * c-common.c (build_va_arg): Call c_common_mark_addressable_vec
2330         instead of mark_addressable.  Fix a comment typo -
2331         neutrallly -> neutrally.
2333 2021-02-28  Jakub Jelinek  <jakub@redhat.com>
2335         PR c/99304
2336         * c-attribs.c (handle_malloc_attribute): Fix a typo in inform
2337         message - refernced -> referenced.  Remove superfluous space before
2338         closing paren of function calls.
2340 2021-02-25  Nathan Sidwell  <nathan@acm.org>
2342         PR c++/99166
2343         * c.opt (-flang-info-module-cmi): Renamed option.
2345 2021-02-19  Nathan Sidwell  <nathan@acm.org>
2347         * c.opt (flang-info-module-read, flang-info-module-read=): New.
2349 2021-02-18  H.J. Lu  <hjl.tools@gmail.com>
2351         PR target/99113
2352         * c-attribs.c (c_common_attribute_table): Add the "retain"
2353         attribute.
2354         (handle_retain_attribute): New function.
2356 2021-02-16  Marek Polacek  <polacek@redhat.com>
2358         PR c++/99062
2359         * c-attribs.c (handle_assume_aligned_attribute): Check that the
2360         alignment argument is non-negative.  Tweak a warning message.
2362 2021-02-12  Martin Sebor  <msebor@redhat.com>
2364         PR c/99055
2365         * c-warn.c (warn_parm_array_mismatch): Free strings returned from
2366         print_generic_expr_to_str.
2368 2021-02-10  Richard Biener  <rguenther@suse.de>
2370         * c-common.c (parse_optimize_options): Free decoded_options.
2372 2021-02-04  emsr  <3dw4rd@verizon.net>
2374         * c-cppbuiltin.c (c_cpp_builtins): __cpp_size_t_suffix=202011L.
2376 2021-02-03  Ed Smith-Rowland  <3dw4rd@verizon.net>
2378         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_size_t_suffix.
2379         * c-lex.c (interpret_integer): Set node type for size literal.
2381 2021-01-28  Jakub Jelinek  <jakub@redhat.com>
2383         * c.opt (-std=c++2a, -std=c++20, -std=gnu++2a, -std=gnu++20): Remove
2384         draft from description.
2385         (-std=c++2b): Fix a pasto, 2020 -> 2023.
2387 2021-01-26  Paul Fee  <paul.f.fee@gmail.com>
2389         * c-common.h (cxx_dialect): Add cxx23 as a dialect.
2390         * c.opt: Add options for -std=c++23, std=c++2b, -std=gnu++23
2391         and -std=gnu++2b
2392         * c-opts.c (set_std_cxx23): New.
2393         (c_common_handle_option): Set options when -std=c++23 is enabled.
2394         (c_common_post_options): Adjust comments.
2395         (set_std_cxx20): Likewise.
2397 2021-01-25  Martin Sebor  <msebor@redhat.com>
2399         PR c++/98646
2400         * c-common.c (check_nonnull_arg): Adjust warning text.
2402 2021-01-17  Martin Sebor  <msebor@redhat.com>
2404         * c-pretty-print.c (c_pretty_printer::primary_expression): Don't
2405         assume SSA_NAME_IDENTIFIER evaluates to nonzero.
2407 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
2409         * c-pragma.h (pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_DETACH.
2410         Redefine PRAGMA_OACC_CLAUSE_DETACH.
2412 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
2414         PR tree-optimization/98597
2415         * c-pretty-print.c: Include options.h.
2416         (c_fold_indirect_ref_for_warn): New function.
2417         (print_mem_ref): Use it.  If it returns something that has compatible
2418         type and is TBAA compatible with zero offset, print it and return,
2419         otherwise print it using offsetof syntax or array ref syntax.  Fix up
2420         printing if MEM_REFs first operand is ADDR_EXPR, or when the first
2421         argument has pointer to array type.  Print pointers using the standard
2422         formatting.
2424 2021-01-12  Martin Sebor  <msebor@redhat.com>
2426         PR c/98597
2427         PR c/98592
2428         * c-pretty-print.c (print_mem_ref): Avoid assuming MEM_REF operand
2429         has pointer type.  Remove redundant code.  Avoid calling
2430         gimple_canonical_types_compatible_p.
2432 2021-01-07  Martin Sebor  <msebor@redhat.com>
2434         PR middle-end/98578
2435         * c-pretty-print.c (print_mem_ref): Strip array from access type.
2436         Avoid assuming acces type's size is constant.  Correct condition
2437         guarding the printing of a parenthesis.
2439 2021-01-06  Martin Sebor  <msebor@redhat.com>
2441         PR c++/95768
2442         * c-pretty-print.c (c_pretty_printer::primary_expression): For
2443         SSA_NAMEs print VLA names and GIMPLE defining statements.
2444         (print_mem_ref): New function.
2445         (c_pretty_printer::unary_expression): Call it.
2447 2021-01-06  Richard Biener  <rguenther@suse.de>
2449         PR tree-optimization/95582
2450         * c-attribs.c (c_common_attribute_table): Add entry for
2451         signed_bool_precision.
2452         (handle_signed_bool_precision_attribute): New.
2454 2020-12-24  Iain Sandoe  <iain@sandoe.co.uk>
2456         * c.opt: Add -stdlib= option and enumerations for
2457         libstdc++ and libc++.
2459 2020-12-16  Martin Liska  <mliska@suse.cz>
2461         * c.opt: Remove usage of Report.
2463 2020-12-14  Martin Sebor  <msebor@redhat.com>
2465         PR middle-end/98166
2466         PR c++/57111
2467         PR middle-end/98160
2468         * c-attribs.c (maybe_add_noinline): New function.
2469         (handle_malloc_attribute): Call it.  Use ATTR_FLAG_INTERNAL.
2470         Implicitly add attribute noinline to functions not declared inline
2471         and warn on those.
2473 2020-12-09  Tobias Burnus  <tobias@codesourcery.com>
2475         * c-pragma.c (omp_pragmas): Add 'allocate'.
2476         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ALLOCATE.
2478 2020-12-08  Jakub Jelinek  <jakub@redhat.com>
2480         PR c++/98187
2481         * c-pragma.c (omp_pragmas): Remove "master".
2482         (omp_pragmas_simd): Add "master".
2484 2020-12-07  Marek Polacek  <polacek@redhat.com>
2486         PR c++/98126
2487         * c-common.c (verify_tree_lim_r): New function.
2488         (verify_sequence_points): Use it.  Use nullptr instead of 0.
2490 2020-12-03  Martin Sebor  <msebor@redhat.com>
2492         PR c++/90629
2493         PR middle-end/94527
2494         * c-attribs.c (handle_dealloc_attribute): New function.
2495         (handle_malloc_attribute): Handle argument forms of attribute.
2496         * c.opt (-Wmismatched-dealloc): New option.
2497         (-Wmismatched-new-delete): New option.
2499 2020-12-03  Jakub Jelinek  <jakub@redhat.com>
2501         PR libstdc++/93121
2502         * c-common.h (enum rid): Add RID_BUILTIN_BIT_CAST.
2503         * c-common.c (c_common_reswords): Add __builtin_bit_cast.
2505 2020-12-01  JeanHeyd Meneide  <phdofthehouse@gmail.com>
2507         * c-cppbuiltin.c (c_cpp_builtins): Add predefined
2508         {__GNUC_EXECUTION_CHARSET_NAME} and
2509         _WIDE_EXECUTION_CHARSET_NAME} macros.
2511 2020-12-01  Nathan Sidwell  <nathan@acm.org>
2513         * c-common.c (module, import, export): New internal tokens (with
2514         trailing space).
2515         * c-common.h (RID__MODULE, RID__IMPORT & RID__EXPORT): Enumerate
2516         them.
2517         (D_CXX_MODULES, D_CXX_MODULES_FLAGS): Enable them.
2518         * c-cppbuiltin.c (c_cpp_builtins): Feature macro.
2520 2020-12-01  Nathan Sidwell  <nathan@acm.org>
2522         * c-opts.c (c_common_init_options): Ask for module dependencies.
2523         (c_common_handle_option): Handle -Mmodules -Mno-modules.
2524         * c-pch.c (c_common_valid_pch): ... does not play with C++
2525         modules.
2526         * c.opt (Mmodules, Mno-modules): New preprocessor dependency
2527         options.
2528         (fmodules-ts, fmodule-header, fmodule-implicit-inline)
2529         (fmodule-only, fmodule-mapper, fmodule-lazy)
2530         (fmodule-version-ignore, Winvalid-imported-macros)
2531         (flang-info-include-translate, flang-info-include-translate-not):
2532         New options
2534 2020-11-28  Eric Botcazou  <ebotcazou@adacore.com>
2536         * c-ada-spec.c (dump_nested_type) <RECORD_TYPE>: Remove obsolete code.
2537         (dump_ada_structure): Also deal with convention, unchecked union and
2538         bit-field for nested types.  In the latter case, print an Alignment
2539         aspect along with the Pack aspect.
2541 2020-11-25  Martin Sebor  <msebor@redhat.com>
2543         PR bootstrap/94982
2544         * c-attribs.c (handle_patchable_function_entry_attribute): Avoid
2545         -Wformat-diag.
2547 2020-11-24  Martin Sebor  <msebor@redhat.com>
2549         * c-warn.c (warn_parm_array_mismatch): Avoid invalid redeclarations.
2551 2020-11-23  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
2553         * c-attribs.c (handle_special_var_sec_attribute): New.
2554         (handle_noinit_attribute): Remove.
2555         (attr_noinit_exclusions): Rename to...
2556         (attr_section_exclusions): ...this, and add "persistent" attribute
2557         exclusion.
2558         (c_common_attribute_table): Add "persistent" attribute.
2560 2020-11-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
2562         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2563         Treat opaque types like other types.
2564         (c_pretty_printer::direct_abstract_declarator): Opaque types are
2565         supported types.
2567 2020-11-20  Martin Sebor  <msebor@redhat.com>
2569         * c-warn.c (warn_parm_array_mismatch): Bail on invalid redeclarations
2570         with fewer arguments.
2572 2020-11-20  Martin Sebor  <msebor@redhat.com>
2574         PR middle-end/97879
2575         * c-attribs.c (handle_access_attribute): Handle ATTR_FLAG_INTERNAL.
2576         Error out on invalid modes.
2578 2020-11-20  Jakub Jelinek  <jakub@redhat.com>
2580         PR libstdc++/88101
2581         * c-common.c (check_builtin_function_arguments): Handle
2582         BUILT_IN_CLEAR_PADDING.
2584 2020-11-18  Nathan Sidwell  <nathan@acm.org>
2586         * c-lex.c (c_lex_with_flags): CPP_HEADER_NAMEs can now be seen.
2588 2020-11-17  Nathan Sidwell  <nathan@acm.org>
2590         * c-common.h (enum c_tree_index): Reorder to place lazy fields
2591         after newly-added CTI_MODULE_HWM.
2593 2020-11-17  Joseph Myers  <joseph@codesourcery.com>
2595         * c-cppbuiltin.c (builtin_define_float_constants): Define
2596         "*_IS_IEC_60559__" macros.
2598 2020-11-17  Nathan Sidwell  <nathan@acm.org>
2600         * c-lex.c: #include "langhooks.h".
2601         (cb_undef): Maybe call preprocess_undef lang hook.
2602         * c-opts.c (c_common_post_options): Maybe call preprocess_options
2603         lang hook.
2604         (push_command_line_include): Maybe call preprocess_main_file lang
2605         hook.
2606         (cb_file_change): Likewise.
2607         * c-ppoutput.c: #include "langhooks.h.
2608         (scan_translation_unit): Maybe call preprocess_token lang hook.
2609         (class do_streamer): New, derive from token_streamer.
2610         (directives_only_cb): Data pointer is do_streamer, call
2611         preprocess_token lang hook.
2612         (scan_translation_unit_directives_only): Use do_streamer.
2613         (print_line_1): Move src_line recording to after string output.
2614         (cb_undef): Maybe call preprocess_undef lang hook.
2616 2020-11-17  Nathan Sidwell  <nathan@acm.org>
2618         * c-ppoutput.c (scan_translation_unit): Use token_streamer, remove
2619         code duplicating that functionality.
2621 2020-11-17  Jakub Jelinek  <jakub@redhat.com>
2623         PR c/90628
2624         * c-common.c (check_builtin_function_arguments)
2625         <case BUILT_IN_ADD_OVERFLOW>: Diagnose when last argument is pointer
2626         to _Atomic.  For the TYPE_READONLY case, adjust message to be usable
2627         for more builtins and argument positions.
2629 2020-11-16  Iain Sandoe  <iain@sandoe.co.uk>
2631         PR objc/97854
2632         * stub-objc.c: Include c-common.h to declare enum rid.
2634 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
2636         PR c++/63287
2637         * c-cppbuiltin.c: Include configargs.h.
2638         (c_cpp_builtins): For C++11 and later if THREAD_MODEL_SPEC is not
2639         defined, predefine __STDCPP_THREADS__ to 1 unless thread_model is
2640         "single".
2642 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
2643             Thomas Schwinge  <thomas@codesourcery.com>
2645         * c.opt (fopenacc-kernels): Add.
2647 2020-11-13  Jason Merrill  <jason@redhat.com>
2649         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_using_enum.
2651 2020-11-13  Piotr H. Dabrowski  <phd@phd.re>
2653         PR c++/91318
2654         * c-cppbuiltin.c: c_cpp_builtins_optimize_pragma(): use cpp_define_unused()
2656 2020-11-13  Martin Liska  <mliska@suse.cz>
2658         * c-attribs.c (build_attr_access_from_parms): Format properly.
2660 2020-11-13  Iain Sandoe  <iain@sandoe.co.uk>
2662         PR objc/90707
2663         * c-common.c (c_common_reswords): null_unspecified, nullable,
2664         nonnull, null_resettable: New keywords.
2665         * c-common.h (enum rid): RID_NULL_UNSPECIFIED, RID_NULLABLE,
2666         RID_NONNULL, RID_NULL_RESETTABLE: New.
2667         (OBJC_IS_PATTR_KEYWORD): Include nullability keywords in the
2668         ranges accepted for property attributes.
2669         * c-attribs.c (handle_objc_nullability_attribute): New.
2670         * c-objc.h (enum objc_property_attribute_group): Add
2671         OBJC_PROPATTR_GROUP_NULLABLE.
2672         (enum objc_property_attribute_kind):Add
2673         OBJC_PROPERTY_ATTR_NULL_UNSPECIFIED, OBJC_PROPERTY_ATTR_NULLABLE,
2674         OBJC_PROPERTY_ATTR_NONNULL, OBJC_PROPERTY_ATTR_NULL_RESETTABLE.
2676 2020-11-13  Iain Sandoe  <iain@sandoe.co.uk>
2678         PR objc/77404
2679         * c-attribs.c (handle_objc_root_class_attribute): New
2680         * c-objc.h (objc_start_class_interface): Add a location
2681         value for the position of the class name.
2682         * c.opt: Add Wobjc-root-class.
2683         * stub-objc.c (objc_start_class_interface): Add a location
2684         value for the position of the class name.
2686 2020-11-12  Joseph Myers  <joseph@codesourcery.com>
2688         * c-lex.c (c_common_has_attribute): Take argument std_syntax.
2689         Allow scope for C.  Handle standard attributes for C.  Do not
2690         accept unscoped attributes if std_syntax and not handled as
2691         standard attributes.
2692         * c-common.h (c_common_has_attribute): Update prototype.
2694 2020-11-12  Nicholas Guriev  <guriev-ns@ya.ru>
2696         PR pch/86674
2697         * c-pch.c (c_common_valid_pch): Use cpp_warning with CPP_W_INVALID_PCH
2698         reason to fix -Werror=invalid-pch and -Wno-error=invalid-pch switches.
2700 2020-11-11  Patrick Palka  <ppalka@redhat.com>
2702         PR c++/88115
2703         * c-opts.c (c_common_post_options): Update latest_abi_version.
2705 2020-11-10  Jakub Jelinek  <jakub@redhat.com>
2707         PR c/97748
2708         * c-common.h (warn_if_unused_value): Add quiet argument defaulted
2709         to false.
2710         * c-warn.c (warn_if_unused_value): Likewise.  Pass it down
2711         recursively and just return true instead of warning if it is true.
2712         Handle COMPLEX_EXPR.
2714 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
2716         * c-common.h (c_omp_adjust_map_clauses): New declaration.
2717         * c-omp.c (struct map_clause): Helper type for c_omp_adjust_map_clauses.
2718         (c_omp_adjust_map_clauses): New function.
2720 2020-11-09  Marek Polacek  <polacek@redhat.com>
2722         DR 1914
2723         * c-common.c (attribute_fallthrough_p): Tweak the warning
2724         message.
2726 2020-11-09  Patrick Palka  <ppalka@redhat.com>
2728         * c-pragma.c (handle_pragma_diagnostic): Split the
2729         unknown-option -Wpragmas diagnostic into a warning and a
2730         subsequent note containing a spelling suggestion.  Avoid
2731         computing the suggestion if -Wpragmas warnings are being
2732         suppressed.
2734 2020-11-09  Patrick Palka  <ppalka@redhat.com>
2736         PR testsuite/97117
2737         * c-indentation.c (get_visual_column): Remove location_t
2738         parameter.  Move the column-tracking diagnostic code from here
2739         to ...
2740         (should_warn_for_misleading_indentation): ... here, before the
2741         early exit for when the loci are not all distinct.  Don't pass a
2742         location_t argument to get_visual_column.
2743         (assert_get_visual_column_succeeds): Don't pass a location_t
2744         argument to get_visual_column.
2745         (assert_get_visual_column_fails): Likewise.
2747 2020-11-08  Iain Sandoe  <iain@sandoe.co.uk>
2749         * c-common.h (OBJC_IS_PATTR_KEYWORD): Add class to the list
2750         of keywords accepted in @property attribute contexts.
2751         * c-objc.h (enum objc_property_attribute_group): Add
2752         OBJC_PROPATTR_GROUP_CLASS.
2753         (enum objc_property_attribute_kind): Add
2754         OBJC_PROPERTY_ATTR_CLASS.
2756 2020-11-07  Iain Sandoe  <iain@sandoe.co.uk>
2758         * c-common.c (c_common_reswords): Add 'atomic' property
2759         attribute.
2760         * c-common.h (enum rid): Add RID_PROPATOMIC for atomic
2761         property attributes.
2763 2020-11-07  Iain Sandoe  <iain@sandoe.co.uk>
2765         * c-attribs.c (handle_nsobject_attribute): New.
2766         * c.opt: Add WNSObject-attribute.
2768 2020-11-06  Iain Sandoe  <iain@sandoe.co.uk>
2770         * c-objc.h (enum objc_property_attribute_group): New
2771         (enum objc_property_attribute_kind): New.
2772         (OBJC_PROPATTR_GROUP_MASK): New.
2773         (struct property_attribute_info): Small class encapsulating
2774         parser output from property attributes.
2775         (objc_prop_attr_kind_for_rid): New
2776         (objc_add_property_declaration): Simplify interface.
2777         * stub-objc.c (enum rid): Dummy type.
2778         (objc_add_property_declaration): Simplify interface.
2779         (objc_prop_attr_kind_for_rid): New.
2781 2020-11-06  Nathan Sidwell  <nathan@acm.org>
2783         * c-ada-spec.c (collect_ada_nodes): Rename
2784         DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
2785         (collect_ada_node): Likewise.
2786         (dump_forward_type): Likewise.
2787         * c-common.c (set_underlying_type): Rename
2788         DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
2789         (user_facing_original_type, c_common_finalize_early_debug): Likewise.
2791 2020-11-06  Jakub Jelinek  <jakub@redhat.com>
2793         * c-common.c (verify_sequence_points): Remove DEBUG_FUNCTION.
2795 2020-11-05  Marek Polacek  <polacek@redhat.com>
2797         PR c++/97675
2798         * c.opt (Wexceptions): New option.
2800 2020-11-05  Marek Polacek  <polacek@redhat.com>
2802         PR c++/25814
2803         * c.opt (Wvexing-parse): New option.
2805 2020-11-04  Jakub Jelinek  <jakub@redhat.com>
2807         PR c++/97670
2808         * c-omp.c (c_omp_split_clauses): Look through array reductions to find
2809         underlying decl to clear in the allocate_head bitmap.
2811 2020-11-04  Iain Sandoe  <iain@sandoe.co.uk>
2813         * c-objc.h (objc_non_constant_expr_p): New.
2814         * stub-objc.c (objc_non_constant_expr_p): New.
2816 2020-11-03  Nathan Sidwell  <nathan@acm.org>
2818         * c.opt (MQ,MT): Reword description to be make-agnostic.
2820 2020-11-02  Nathan Sidwell  <nathan@acm.org>
2822         * c-opts.c (c_common_post_options): Move var decl to its
2823         initialization point.
2825 2020-11-01  Iain Sandoe  <iain@sandoe.co.uk>
2827         * c-lex.c (c_lex_with_flags): When combining '@' with a
2828         keyword for Objective-C, combine the location ranges too.
2830 2020-10-30  Qing Zhao  <qing.zhao@oracle.com>
2831             H.J.Lu  <hjl.tools@gmail.com>
2833         * c-attribs.c (c_common_attribute_table): Add new attribute
2834         zero_call_used_regs.
2835         (handle_zero_call_used_regs_attribute): New function.
2837 2020-10-28  Marek Polacek  <polacek@redhat.com>
2839         PR c++/97573
2840         * c-opts.c (c_common_post_options): In C++20, turn on
2841         -Wdeprecated-enum-enum-conversion and
2842         -Wdeprecated-enum-float-conversion.
2843         * c.opt (Wdeprecated-enum-enum-conversion,
2844         Wdeprecated-enum-float-conversion): New options.
2845         (Wenum-conversion): Allow for C++ too.
2847 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
2849         * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALLOCATE.
2850         * c-omp.c: Include bitmap.h.
2851         (c_omp_split_clauses): Handle OMP_CLAUSE_ALLOCATE.
2853 2020-10-26  Ville Voutilainen  <ville.voutilainen@gmail.com>
2855         * c-common.c (__is_nothrow_assignable): New.
2856         (__is_nothrow_constructible): Likewise.
2857         * c-common.h (RID_IS_NOTHROW_ASSIGNABLE): New.
2858         (RID_IS_NOTHROW_CONSTRUCTIBLE): Likewise.
2860 2020-10-23  Jan Hubicka  <hubicka@ucw.cz>
2862         * c-common.c (c_common_finalize_early_debug): Update for new thunk api.
2864 2020-10-23  Marek Polacek  <polacek@redhat.com>
2866         PR c++/91741
2867         * c-common.c (verify_tree): Handle PAREN_SIZEOF_EXPR.
2868         (c_common_init_ts): Likewise.
2869         * c-common.def (PAREN_SIZEOF_EXPR): New tree code.
2870         * c-common.h (maybe_warn_sizeof_array_div): Declare.
2871         * c-warn.c (sizeof_pointer_memaccess_warning): Unwrap NOP_EXPRs.
2872         (maybe_warn_sizeof_array_div): New function.
2873         * c.opt (Wsizeof-array-div): New option.
2875 2020-10-23  Martin Sebor  <msebor@redhat.com>
2877         PR c/97463
2878         * c-warn.c (warn_parm_ptrarray_mismatch): Move null test earlier.
2880 2020-10-22  Martin Liska  <mliska@suse.cz>
2882         PR c/94722
2883         * c-attribs.c (handle_no_stack_protect_function_attribute): New.
2884         (handle_stack_protect_attribute): Add error message for a
2885         no_stack_protector function.
2887 2020-10-22  Martin Liska  <mliska@suse.cz>
2889         * c-cppbuiltin.c (c_cpp_builtins): Use the stack_protector enum.
2891 2020-10-22  Jan Hubicka  <hubicka@ucw.cz>
2893         * c-gimplify.c: Include tree-nested.h
2894         (c_genericize): Update for new nested function info.
2896 2020-10-14  Martin Sebor  <msebor@redhat.com>
2898         PR c/97413
2899         * c-attribs.c (build_attr_access_from_parms): Wrap chain of VLA
2900         bounds in an extra list.
2902 2020-10-05  Richard Biener  <rguenther@suse.de>
2903             Jakub Jelinek  <jakub@redhat.com>
2905         PR c++/97197
2906         * c-pretty-print.c: Include langhooks.h.
2907         (c_pretty_printer::postfix_expression): Handle TARGET_MEM_REF as
2908         expression.
2909         (c_pretty_printer::expression): Handle TARGET_MEM_REF as
2910         unary_expression.
2911         (c_pretty_printer::unary_expression): Handle TARGET_MEM_REF.
2913 2020-09-30  Martin Sebor  <msebor@redhat.com>
2915         PR middle-end/97189
2916         * c-attribs.c (append_access_attr): Use the function declaration
2917         location for a warning about an attribute access argument.
2919 2020-09-29  Marek Polacek  <polacek@redhat.com>
2921         PR c++/94695
2922         * c.opt (Wrange-loop-construct): New option.
2924 2020-09-23  Martin Sebor  <msebor@redhat.com>
2926         PR c/97131
2927         * c-warn.c (warn_parm_ptrarray_mismatch): Handle more invalid input.
2929 2020-09-23  Marek Polacek  <polacek@redhat.com>
2931         PR c/97125
2932         * c-gimplify.c (c_genericize): Only call do_warn_duplicated_branches_r
2933         after loops and other structured control constructs have been lowered.
2935 2020-09-22  Jakub Jelinek  <jakub@redhat.com>
2937         * c.opt (Wbuiltin-declaration-mismatch): Fix typo in variable name:
2938         warn_builtin_declaraion_mismatch -> warn_builtin_declaration_mismatch.
2940 2020-09-21  Marek Polacek  <polacek@redhat.com>
2942         * c.opt (Wctad-maybe-unsupported): New option.
2944 2020-09-19  Martin Sebor  <msebor@redhat.com>
2946         PR c/50584
2947         * c-common.h (warn_parm_array_mismatch): Declare new function.
2948         (has_attribute): Move declaration of an existing function.
2949         (build_attr_access_from_parms): Declare new function.
2950         * c-warn.c (parm_array_as_string): Define new function.
2951         (plus_one):  Define new function.
2952         (warn_parm_ptrarray_mismatch): Define new function.
2953         (warn_parm_array_mismatch):  Define new function.
2954         (vla_bound_parm_decl): New function.
2955         * c.opt (-Warray-parameter, -Wvla-parameter): New options.
2956         * c-pretty-print.c (pp_c_type_qualifier_list): Don't print array type
2957         qualifiers here...
2958         (c_pretty_printer::direct_abstract_declarator): ...but instead print
2959         them in brackets here.  Also print [static].  Strip extraneous
2960         expressions from VLA bounds.
2962 2020-09-19  Martin Sebor  <msebor@redhat.com>
2964         PR c/50584
2965         * c-attribs.c (c_common_attribute_table): Add "arg spec" attribute.
2966         (handle_argspec_attribute): New function.
2967         (get_argument, get_argument_type): New functions.
2968         (append_access_attrs): Add overload.  Handle internal attribute
2969         representation in addition to external.
2970         (handle_access_attribute): Handle internal attribute representation
2971         in addition to external.
2972         (build_attr_access_from_parms): New function.
2974 2020-09-19  Sandra Loosemore  <sandra@codesourcery.com>
2976         * c-gimplify.c (genericize_c_loop): Rewrite to match
2977         c_finish_loop in c-typeck.c.
2979 2020-09-19  Sandra Loosemore  <sandra@codesourcery.com>
2981         * c-common.c (c_block_may_fallthrough): New, split from
2982         cxx_block_may_fallthrough in the cp front end.
2983         (c_common_init_ts): Move handling of loop and switch-related
2984         statements here from the cp front end.
2985         * c-common.def (FOR_STMT, WHILE_STMT, DO_STMT): Move here from
2986         cp front end.
2987         (BREAK_STMT, CONTINUE_STMT, SWITCH_STMT): Likewise.
2988         * c-common.h (c_block_may_fallthru): Declare.
2989         (bc_state_t): Move here from cp front end.
2990         (save_bc_state, restore_bc_state): Declare.
2991         (c_genericize_control_stmt): Declare.
2992         (WHILE_COND, WHILE_BODY): Likewise.
2993         (DO_COND, DO_BODY): Likewise.
2994         (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY, FOR_SCOPE): Likewise.
2995         (SWITCH_STMT_COND, SWITCH_STMT_BODY): Likewise.
2996         (SWITCH_STMT_TYPE, SWITCH_STMT_SCOPE): Likewise.
2997         (SWITCH_STMT_ALL_CASES_P, SWITCH_STMT_NO_BREAK_P): Likewise.
2998         (LABEL_DECL_BREAK, LABEL_DECL_CONTINUE): Likewise.
2999         * c-dump.c (dump_stmt): Copy from cp front end.
3000         (c_dump_tree): Move code to handle structured loop and switch
3001         tree nodes here from cp front end.
3002         * c-gimplify.c: Adjust includes.
3003         (enum bc_t, bc_label, begin_bc_block, finish_bc_block): Move from
3004         cp front end.
3005         (save_bc_state, restore_bc_state): New functions using old code
3006         from cp front end.
3007         (get_bc_label, expr_loc_or_loc): Move from cp front end.
3008         (genericize_c_loop): Move from cp front end.
3009         (genericize_for_stmt, genericize_while_stmt): Likewise.
3010         (genericize_do_stmt, genericize_switch_stmt): Likewise.
3011         (genericize_continue_stmt, genericize_break_stmt): Likewise.
3012         (genericize_omp_for_stmt): Likewise.
3013         (c_genericize_control_stmt): New function using code split from
3014         cp front end.
3015         (c_genericize_control_r): New.
3016         (c_genericize): Call walk_tree with c_genericize_control_r.
3017         * c-pretty-print.c (c_pretty_printer::statement): Move code to handle
3018         structured loop and switch tree nodes here from cp front end.
3020 2020-09-17  Patrick Palka  <ppalka@redhat.com>
3022         PR c/80076
3023         * c-indentation.c (should_warn_for_misleading_indentation): Move
3024         declarations of local variables closer to their first use.
3025         Handle virtual token locations by resolving them to their
3026         respective macro expansion points.  If all three tokens are
3027         produced from the same macro expansion, then instead use their
3028         loci within the macro definition.
3030 2020-09-16  Martin Sebor  <msebor@redhat.com>
3032         PR c/78666
3033         PR c/96126
3034         * c-attribs.c (validate_attr_args): New function.
3035         (validate_attr_arg): Same.
3036         (handle_section_attribute): Call it.  Introduce a local variable.
3037         (handle_alloc_size_attribute):  Same.
3038         (handle_alloc_align_attribute): Same.
3040 2020-09-14  Jakub Jelinek  <jakub@redhat.com>
3042         * c-attribs.c (handle_optimize_attribute): Adjust
3043         cl_optimization_save, cl_optimization_restore and
3044         build_optimization_node callers.
3045         * c-pragma.c (handle_pragma_optimize): Adjust
3046         build_optimization_node caller.
3047         (handle_pragma_push_options): Adjust
3048         build_optimization_node and build_target_option_node callers.
3049         (handle_pragma_pop_options, handle_pragma_reset_options):
3050         Adjust cl_optimization_restore callers.
3052 2020-08-28  Martin Sebor  <msebor@redhat.com>
3054         * c.opt (Wstringop-overread): New option.
3056 2020-08-11  Jakub Jelinek  <jakub@redhat.com>
3058         PR c/96545
3059         * c-common.c (get_atomic_generic_size): Require that first argument's
3060         type points to a complete type and use tree_fits_uhwi_p instead of
3061         just INTEGER_CST TREE_CODE check for the TYPE_SIZE_UNIT.
3063 2020-07-31  Martin Sebor  <msebor@redhat.com>
3065         PR c++/96003
3066         * c-common.c (check_function_arguments_recurse): Return early when
3067         no-warning bit is set.
3069 2020-07-31  Richard Biener  <rguenther@suse.de>
3071         PR debug/96383
3072         * c-common.h (c_common_finalize_early_debug): Declare.
3073         * c-common.c: Include debug.h.
3074         (c_common_finalize_early_debug): finalize_early_debug langhook
3075         implementation generating debug for extern declarations.
3077 2020-07-27  Nathan Sidwell  <nathan@acm.org>
3079         * c-common.c (try_to_locate_new_include_insertion_point): Use
3080         strcmp, not pointer equality.
3082 2020-07-25  Martin Sebor  <msebor@redhat.com>
3084         PR c++/96310
3085         * c-common.c (check_nonnull_arg): Print note only when warning was
3086         issued.
3088 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
3090         * c-omp.c (c_finish_omp_critical): Check for no name but
3091         nonzero hint provided.
3093 2020-07-20  Jason Merrill  <jason@redhat.com>
3095         * c-cppbuiltin.c (c_cpp_builtins): Update
3096         __cpp_nontype_template_args for C++20.
3098 2020-07-20  Martin Sebor  <msebor@redhat.com>
3100         PR c/96249
3101         * c.opt: Remove stray text.
3103 2020-07-14  Lewis Hyatt  <lhyatt@gmail.com>
3105         PR other/86904
3106         * c-indentation.c (should_warn_for_misleading_indentation): Get
3107         global tabstop from the new source.
3108         * c-opts.c (c_common_handle_option): Remove handling of -ftabstop, which
3109         is now a common option.
3110         * c.opt: Likewise.
3112 2020-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3114         * c.opt (Wscalar-storage-order): Add explicit variable.
3116 2020-07-07  Nathan Sidwell  <nathan@acm.org>
3118         * c-opts.c (c_common_post_options): Add 'injecting' arg to
3119         cpp_read_main_file.
3120         (c_finish_options): Add linemap_line_start calls for builtin and cmd
3121         maps.  Force token position to line_table's highest line.
3122         * c-ppoutput.c (print_line_1): Refactor, print line zero.
3123         (cb_define): Always increment source line.
3125 2020-07-06  Martin Sebor  <msebor@redhat.com>
3127         PR c++/95984
3128         * c-common.c (check_function_nonnull): Avoid checking syntesized calls
3129         to stub lambda objects with null this pointer.
3130         (check_nonnull_arg): Handle C++ nullptr.
3132 2020-07-02  Jason Merrill  <jason@redhat.com>
3133             Jakub Jelinek  <jakub@redhat.com>
3135         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_consteval.
3137 2020-06-30  Jakub Jelinek  <jakub@redhat.com>
3139         PR c++/95963
3140         * c-common.c (check_function_arguments_recurse): Don't crash on
3141         calls to internal functions.
3143 2020-06-28  Martin Sebor  <msebor@redhat.com>
3145         PR c++/86568
3146         * c-common.c (struct nonnull_arg_ctx): Add members.
3147         (check_function_nonnull): Use nonnull_arg_ctx as argument.  Handle
3148         C++ member functions specially.  Consider the this pointer implicitly
3149         nonnull.
3150         (check_nonnull_arg): Use location of argument when available.
3151         (check_function_arguments): Use nonnull_arg_ctx as argument.
3153 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
3155         PR middle-end/95903
3156         * c-common.c (pointer_int_sum): Use TYPE_OVERFLOW_UNDEFINED instead of
3157         !TYPE_UNSIGNED check to see if we can apply distributive law and handle
3158         smaller precision intop operands separately.
3160 2020-06-26  Marek Polacek  <polacek@redhat.com>
3162         * c-opts.c (c_common_init_options): Default to gnu++17.
3164 2020-06-17  Jonathan Wakely  <jwakely@redhat.com>
3166         PR c/95378
3167         * c-common.c (get_atomic_generic_size): Check cv-qualifiers in
3168         pointer arguments.
3170 2020-06-16  Jakub Jelinek  <jakub@redhat.com>
3172         * c-common.h (c_omp_check_loop_iv_exprs): Add an int argument.
3173         * c-omp.c (struct c_omp_check_loop_iv_data): Add maybe_nonrect and
3174         idx members.
3175         (c_omp_is_loop_iterator): New function.
3176         (c_omp_check_loop_iv_r): Use it.  Add support for silent scanning
3177         if outer loop iterator is present.  Perform duplicate checking through
3178         hash_set in the function rather than expecting caller to do that.
3179         Pass NULL instead of d->ppset to walk_tree_1.
3180         (c_omp_check_nonrect_loop_iv): New function.
3181         (c_omp_check_loop_iv): Use it.  Fill in new members, allow
3182         non-rectangular loop forms, diagnose multiple associated loops with
3183         the same iterator.  Pass NULL instead of &pset to walk_tree_1.
3184         (c_omp_check_loop_iv_exprs): Likewise.
3186 2020-06-10  Martin Liska  <mliska@suse.cz>
3188         PR tree-optimization/92860
3189         * c-attribs.c (handle_optimize_attribute):
3190         Save global options and compare it after parsing of function
3191         attribute.
3192         * c-pragma.c (opt_stack::saved_global_options): New field.
3193         (handle_pragma_push_options): Save global_options.
3194         (handle_pragma_pop_options): Compare them after pop.
3196 2020-06-09  Jakub Jelinek  <jakub@redhat.com>
3198         PR c/95580
3199         * c-pretty-print.c (c_pretty_printer::unary_expression): Handle the
3200         case when MEM_REF's first argument has type pointer to incomplete type.
3202 2020-06-05  Jason Merrill  <jason@redhat.com>
3204         * c-pretty-print.c (pp_c_additive_expression): Handle negative
3205         operand to POINTER_PLUS_EXPR.
3207 2020-06-04  Martin Sebor  <msebor@redhat.com>
3209         PR middle-end/10138
3210         PR middle-end/95136
3211         * c-attribs.c (append_access_attrs): Handle attr_access::none.
3212         (handle_access_attribute): Same.
3214 2020-06-03  Mark Wielaard  <mark@klomp.org>
3216         * known-headers.cc (get_cp_stdlib_header_for_string_macro_name):
3217         New function.
3218         * known-headers.h (get_cp_stdlib_header_for_string_macro_name):
3219         New function declaration.
3221 2020-06-03  Mark Wielaard  <mark@klomp.org>
3223         * known-headers.cc (get_string_macro_hint): New function.
3224         (get_stdlib_header_for_name): Use get_string_macro_hint.
3225         (get_c_stdlib_header_for_string_macro_name): New function.
3226         * known-headers.h (get_c_stdlib_header_for_string_macro_name):
3227         New function declaration.
3229 2020-06-03  Tobias Burnus  <tobias@codesourcery.com>
3231         * c-common.h (c_omp_predetermined_mapping): Declare.
3232         * c-omp.c (c_omp_predetermined_mapping): New.
3234 2020-05-22  Mark Wielaard  <mark@klomp.org>
3236         * known-headers.cc (get_stdlib_header_for_name): Add a new
3237         stdlib_hint array for stdbool and stdint.
3239 2020-05-22  Mark Wielaard  <mark@klomp.org>
3241         * known-headers.cc (get_stdlib_header_for_name): Return
3242         "<stdbool.h>" for "bool", "true" or "false" when STDLIB_C and
3243         flag_isoc99.
3245 2020-05-20  Nathan Sidwell  <nathan@acm.org>
3247         * c-common.c (try_to_locate_new_include_insertion_point): Revert change.
3249         * c-common.c (try_to_locate_new_include_insertion_point): Use
3250         strcmp to compare filenames.
3251         * c-lex.c (init_c_lex): Move declaration to initialization.
3252         * c-opts.c (handle_deferred_opts): Move cpp_get_deps call into
3253         deferred count loop.
3255 2020-05-15  Jason Merrill  <jason@redhat.com>
3257         * c-opts.c (set_std_cxx20): Set flag_coroutines.
3259 2020-05-13  Jason Merrill  <jason@redhat.com>
3261         * c.opt (std=c++20): Make c++2a the alias.
3262         (std=gnu++20): Likewise.
3263         * c-common.h (cxx_dialect): Change cxx2a to cxx20.
3264         * c-opts.c: Adjust.
3265         * c-cppbuiltin.c: Adjust.
3266         * c-ubsan.c: Adjust.
3267         * c-warn.c: Adjust.
3269 2020-05-12  Eric Botcazou  <ebotcazou@adacore.com>
3271         * c-ada-spec.c (dump_ads): Output pragma Warnings ("U"); on entry.
3273 2020-05-08  Nathan Sidwell  <nathan@acm.org>
3275         Reimplement directives only processing.
3276         * c-ppoutput.c (token_streamer): Ne.
3277         (directives_only_cb): New.  Swallow ...
3278         (print_lines_directives_only): ... this.
3279         (scan_translation_unit_directives_only): Reimplment using the
3280         published interface.
3282 2020-05-07  Marek Polacek  <polacek@redhat.com>
3284         * c-format.c (badwords): Add "nonstatic".
3286 202-05-07  Jakub Jelinek  <jakub@redhat.com>
3288         PR c/94968
3289         * c-common.c (speculation_safe_value_resolve_params): Return false if
3290         error_operand_p (val2).
3291         (resolve_overloaded_builtin) <case BUILT_IN_SPECULATION_SAFE_VALUE_N>:
3292         Remove extraneous semicolon.
3294 2020-05-06  qing zhao  <qing.zhao@oracle.com>
3296         PR c/94230
3297         * c-indentation.c (get_visual_column): Add a hint to use the new
3298         -flarge-source-files option.
3300 2020-05-05  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
3302         * c-attribs.c (handle_vector_size_attribute): Add attribute
3303         nonnull for argument args in order to silence warning of
3304         uninitialized variable usage.  Since this is local to the
3305         compilation unit and thus cannot be checked at call sides by the
3306         compiler, added an assert statement in order to verify this.
3308 2020-05-01  H.J. Lu  <hongjiu.lu@intel.com>
3310         PR target/93492
3311         * c-attribs.c (handle_patchable_function_entry_attribute): Limit
3312         value to USHRT_MAX (65535).
3314 2020-04-29  Jakub Jelinek  <jakub@redhat.com>
3316         * c-format.c (PP_FORMAT_CHAR_TABLE): Add %{ and %}.
3318 2020-04-27  Jakub Jelinek  <jakub@redhat.com>
3320         PR c/94755
3321         * c-common.c (resolve_overloaded_builtin): Return error_mark_node for
3322         fncode == BUILT_IN_NONE before initialization of first_param.
3324 2020-04-23  Marek Polacek  <polacek@redhat.com>
3326         PR c++/94733
3327         * c-attribs.c (find_tm_attribute): Use get_attribute_name instead of
3328         TREE_PURPOSE.
3330 2020-04-14  Patrick Palka  <ppalka@redhat.com>
3332         PR c++/85278
3333         * c-pretty-print.c (pp_c_pointer) <case REFERENCE_TYPE>: Print a double
3334         ampersand if it's an rvalue reference type.
3336 2020-04-13  Martin Sebor  <msebor@redhat.com>
3338         PR c/92326
3339         * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator): Avoid
3340         printing array bound for flexible array members.
3342 2020-04-13  Iain Sandoe  <iain@sandoe.co.uk>
3344         * c-cppbuiltin.c (c_cpp_builtins): Update coroutines builtin
3345         define, per n4861.
3347 2020-04-02  Richard Biener  <rguenther@suse.de>
3349         PR c/94392
3350         * c-opts.c (c_common_post_options): Enable -ffinite-loops
3351         for -O2 and C++11 or newer.
3353 2020-03-28  Patrick Palka  <ppalka@redhat.com>
3355         * c.opt: Add -fconcepts-diagnostics-depth.
3357 2020-03-27  Martin Sebor  <msebor@redhat.com>
3359         PR c++/94346
3360         * c-attribs.c (handle_copy_attribute): Avoid passing expressions
3361         to decl_attributes.  Make handling of different kinds of entities
3362         more robust.
3364 2020-03-27  Martin Sebor  <msebor@redhat.com>
3366         PR c++/94098
3367         * c-attribs.c (handle_access_attribute): Avoid setting TYPE_ATTRIBUTES
3368         here.
3370 2020-03-23  Jakub Jelinek  <jakub@redhat.com>
3372         PR c++/91993
3373         * c-warn.c (warnings_for_convert_and_check): For expr and/or
3374         result being COMPOUND_EXPRs, skip to ultimate rhs.
3376 2020-03-20  Richard Sandiford  <richard.sandiford@arm.com>
3378         PR middle-end/94072
3379         * c-common.c (c_common_type_for_mode): Before using a registered
3380         built-in type, check that the vectorness of the type matches
3381         the vectorness of the mode.
3383 2020-03-17  Jakub Jelinek  <jakub@redhat.com>
3385         * c-common.c (resolve_overloaded_builtin): Fix up duplicated word
3386         issue in a diagnostic message.
3388 2020-03-15  Lewis Hyatt  <lhyatt@gmail.com>
3390         * c.opt: Avoid redundancy in the help text.
3392 2020-03-02  Marek Polacek  <polacek@redhat.com>
3394         PR c++/93958 - add missing -std=gnu++20.
3395         * c.opt: Add -std=gnu++20.
3397 2020-03-01  Martin Sebor  <msebor@redhat.com>
3399         PR c++/92721
3400         * c-attribs.c (append_access_attrs): Correctly handle attribute.
3401         (handle_access_attribute): Same.
3403 2020-02-25  Jakub Jelinek  <jakub@redhat.com>
3405         PR c/93858
3406         * c-pragma.c (handle_pragma_diagnostic): Add missing ? after
3407         "did you mean" hint in diagnostics.
3409 2020-02-15  Jason Merrill  <jason@redhat.com>
3411         * c.opt: Add -std=c++20.
3413 2020-02-14  Eric Botcazou  <ebotcazou@adacore.com>
3415         * c-ada-spec.c: Include bitmap.h.
3416         (dump_ada_double_name): Rename into...
3417         (dump_anonymous_type_name): ...this.  Always use the TYPE_UID.
3418         (dump_ada_array_type): Adjust to above renaming.  Robustify.
3419         (dump_nested_types_1): New function copied from...  Add dumped_types
3420         parameter and pass it down to dump_nested_type.
3421         (dump_nested_types): ...this.  Remove parent parameter.  Just call
3422         dump_nested_types_1 on an automatic bitmap.
3423         (dump_nested_type): Add dumped_types parameter.
3424         <ARRAY_TYPE>: Do not dump it if already present in dumped_types.
3425         Adjust recursive calls and adjust to above renaming.
3426         (dump_ada_declaration): Adjust call to dump_nested_types.
3427         Tidy up and adjust to above renaming.
3428         (dump_ada_specs): Initialize and release bitmap obstack.
3430 2020-02-10  Martin Sebor  <msebor@redhat.com>
3432         PR c/93640
3433         * c-attribs.c (handle_access_attribute): Correct off-by-one mistakes.
3435 2020-02-10  Jakub Jelinek  <jakub@redhat.com>
3437         PR other/93641
3438         * c-format.c (check_plain): Fix up last argument of strncasecmp.
3439         Remove useless extra test.
3441 2020-02-03  Julian Brown  <julian@codesourcery.com>
3442             Tobias Burnus  <tobias@codesourcery.com>
3444         * c-cppbuiltin.c (c_cpp_builtins): Update _OPENACC define to 201711.
3446 2020-01-29  Jason Merrill  <jason@redhat.com>
3448         PR c++/89357
3449         * c-attribs.c (check_cxx_fundamental_alignment_constraints): Remove.
3451 2020-01-23  Jason Merrill  <jason@redhat.com>
3453         * c-warn.c (conversion_warning): Change -Wsign-conversion handling.
3455 2020-01-23  Martin Sebor  <msebor@redhat.com>
3457         PR c/84919
3458         * c-common.c (check_function_arguments): Avoid overlap checking
3459         of sprintf functions.
3461 2020-01-22  Jason Merrill  <jason@redhat.com>
3463         PR testsuite/93391 - PR 40752 test fails with unsigned plain char.
3464         PR c++/40752
3465         * c-warn.c (conversion_warning): Check operands only after checking
3466         the whole expression.  Don't check second operand of + for sign.
3468 2020-01-21  Jason Merrill  <jason@redhat.com>
3469             Manuel López-Ibáñez  <manu@gcc.gnu.org>
3471         PR c++/40752 - useless -Wconversion with short +=.
3472         * c.opt (-Warith-conversion): New.
3473         * c-warn.c (conversion_warning): Recurse for operands of
3474         operators.  Only warn about the whole expression with
3475         -Warith-conversion.
3477 2020-01-21  Jason Merrill  <jason@redhat.com>
3479         * c-common.c (unsafe_conversion_p): Don't warn, return UNSAFE_SIGN.
3480         * c-warn.c (conversion_warning): Warn about UNSAFE_SIGN.
3482 2020-01-20  Nathan Sidwell  <nathan@acm.org>
3484         PR preprocessor/80005
3485         * c-cppbuiltins.c (c_cpp_builtins): Don't define __has_include{,_next}.
3487 2020-01-18  Iain Sandoe  <iain@sandoe.co.uk>
3489         * c-common.c (co_await, co_yield, co_return): New.
3490         * c-common.h (RID_CO_AWAIT, RID_CO_YIELD,
3491         RID_CO_RETURN): New enumeration values.
3492         (D_CXX_COROUTINES): Bit to identify coroutines are active.
3493         (D_CXX_COROUTINES_FLAGS): Guard for coroutine keywords.
3494         * c-cppbuiltin.c (__cpp_coroutines): New cpp define.
3495         * c.opt (fcoroutines): New command-line switch.
3497 2020-01-10  David Malcolm  <dmalcolm@redhat.com>
3499         * c-format.c (local_event_ptr_node): New.
3500         (PP_FORMAT_CHAR_TABLE): Add entry for "%@".
3501         (init_dynamic_diag_info): Initialize local_event_ptr_node.
3502         * c-format.h (T_EVENT_PTR): New define.
3504 2020-01-10  Martin Sebor  <msebor@redhat.com>
3506         PR c/93132
3507         * c-attribs.c (append_access_attrs): Validate against the translated
3508         access string rather than the human-readable representation.
3510 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
3512         Update copyright years.
3514 2019-12-20  Eric Botcazou  <ebotcazou@adacore.com>
3516         * c-ada-spec.h (decl_sloc): Delete.
3517         * c-ada-spec.c (decl_sloc): Make static.
3519 2019-12-19  Julian Brown  <julian@codesourcery.com>
3521         * c-common.h (c_omp_map_clause_name): Add prototype.
3522         * c-omp.c (c_omp_map_clause_name): New function.
3523         * c-pragma.h (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ATTACH and
3524         PRAGMA_OACC_CLAUSE_DETACH.
3526 2019-12-19  Julian Brown  <julian@codesourcery.com>
3527             Maciej W. Rozycki  <macro@codesourcery.com>
3528             Tobias Burnus  <tobias@codesourcery.com>
3529             Thomas Schwinge  <thomas@codesourcery.com>
3531         * c-pragma.h (pragma_omp_clause): Add
3532         PRAGMA_OACC_CLAUSE_NO_CREATE.
3534 2019-12-17  Martin Sebor  <msebor@redhat.com>
3536         PR c++/61339
3537         * c.opt (-Wmismatched-tags, -Wredundant-tags): New options.
3539 2019-12-11  David Malcolm  <dmalcolm@redhat.com>
3541         * c-pretty-print.c (c_pretty_printer::clone): New vfunc
3542         implementation.
3543         * c-pretty-print.h (c_pretty_printer::clone): New vfunc decl.
3545 2019-12-09  David Malcolm  <dmalcolm@redhat.com>
3547         * c-format.c (range_label_for_format_type_mismatch::get_text):
3548         Replace label_text ctor called with true with label_text::take.
3550 2019-12-09  David Malcolm  <dmalcolm@redhat.com>
3552         * c-format.c (selftest::test_type_mismatch_range_labels): Remove
3553         initial newline from expected outputs.
3554         * c-opts.c (c_diagnostic_finalizer): Add pp_newline call before
3555         call to diagnostic_show_locus.
3557 2019-12-06  Jakub Jelinek  <jakub@redhat.com>
3559         * c-cppbuiltin.c (c_cpp_builtins): Don't define __cpp_consteval for
3560         now.
3562 2019-12-05  Marek Polacek  <polacek@redhat.com>
3563             Jakub Jelinek  <jakub@redhat.com>
3565         PR c++/91353 - P1331R2: Allow trivial default init in constexpr contexts.
3566         * c-cppbuiltin.c (c_cpp_builtins): Adjust the value of __cpp_constexpr.
3568 2019-12-05  Marek Polacek  <polacek@redhat.com>
3570         PR c++/92271 - make __is_same alias for __is_same_as.
3571         * c-common.c: Add __is_same, an alias for __is_same_as.
3573 2019-12-03  Marek Polacek  <polacek@redhat.com>
3575         PR c++/91363 - P0960R3: Parenthesized initialization of aggregates.
3576         * c-cppbuiltin.c (c_cpp_builtins): Predefine
3577         __cpp_aggregate_paren_init=201902 for -std=c++2a.
3579 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
3581         * c-attribs.c (handle_symver_attribute): New function
3582         (c_common_attributes): Add symver.
3584 2019-11-30  Richard Sandiford  <richard.sandiford@arm.com>
3586         * c-common.c (pointer_int_sum): Use verify_type_context to check
3587         whether the target allows pointer arithmetic for the types involved.
3588         (c_sizeof_or_alignof_type, c_alignof_expr): Use verify_type_context
3589         to check whether the target allows sizeof and alignof operations
3590         for the types involved.
3592 2019-11-27  Jason Merrill  <jason@redhat.com>
3594         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
3596 2019-11-26  Jakub Jelinek  <jakub@redhat.com>
3598         PR c++/61414
3599         * c-attribs.c (handle_mode_attribute): Add mode attribute to
3600         ENUMERAL_TYPEs.
3602 2019-11-25  Joseph Myers  <joseph@codesourcery.com>
3604         PR c/91985
3605         * c-common.c (c_common_type_for_mode): Handle decimal
3606         floating-point types being NULL_TREE.
3607         * c-format.c (get_format_for_type_1): Handle specified types being
3608         NULL_TREE.
3609         * c-lex.c (interpret_float): Give an error for decimal
3610         floating-point constants when decimal floating-point not
3611         supported.
3613 2019-11-23  Jakub Jelinek  <jakub@redhat.com>
3615         PR middle-end/83859
3616         * c-attribs.c (append_access_attrs): Avoid buffer overflow.  Avoid
3617         memory leak.  Use XNEWVEC macro.  Use auto_diagnostic_group to
3618         group warning with inform together.
3619         (handle_access_attribute): Formatting fix.
3621 2019-11-22  Jakub Jelinek  <jakub@redhat.com>
3623         PR c/90677
3624         * c-common.h (identifier_global_tag): Declare.
3625         * c-format.c (get_pointer_to_named_type): Renamed to ...
3626         (get_named_type): ... this.  Use identifier_global_tag instead of
3627         identifier_global_value, handle the return value being a TYPE_P.
3628         (init_dynamic_diag_info): Adjust get_pointer_to_named_type callers
3629         to call get_named_type instead.  Formatting fixes.
3631         Implement P1902R1, Missing feature-test macros 2017-2019.
3632         * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_init_captures
3633         and __cpp_generic_lambdas for -std=c++2a.  Define
3634         __cpp_designated_initializers, __cpp_constexpr_in_decltype and
3635         __cpp_consteval for -std=c++2a.  Remove a FIXME comment about
3636         __cpp_concepts for -std=c++2a.
3638 2019-11-22  Martin Sebor  <msebor@redhat.com>
3640         PR middle-end/83859
3641         * c-attribs.c (handle_access_attribute): New function.
3642         (c_common_attribute_table): Add new attribute.
3643         (get_argument_type): New function.
3644         (append_access_attrs): New function.
3645         (get_nonnull_operand): Rename...
3646         (get_attribute_operand): ...to this.
3647         * c-common.c (get_nonnull_operand): Rename...
3648         (get_attribute_operand): ...to this.
3650 2019-11-21  Joseph Myers  <joseph@codesourcery.com>
3652         * c-attribs.c (handle_fallthrough_attribute): Use pedwarn instead
3653         of warning.
3655 2019-11-19  Joseph Myers  <joseph@codesourcery.com>
3657         * c-common.c (attribute_fallthrough_p): In C, use pedwarn not
3658         warning for standard attributes mixed with fallthrough attributes.
3660 2019-11-15  Joseph Myers  <joseph@codesourcery.com>
3662         * c-attribs.c (handle_fallthrough_attribute): Remove static.
3663         * c-common.h (handle_fallthrough_attribute): Declare.
3665 2019-11-15  Joseph Myers  <joseph@codesourcery.com>
3667         * c-attribs.c (handle_deprecated_attribute): Remove static.
3668         * c-common.h (handle_deprecated_attribute): Declare.
3670 2019-11-14  Joseph Myers  <joseph@codesourcery.com>
3672         * c-lex.c (lex_charconst): Make CPP_UTF8CHAR constants unsigned
3673         char for C.
3675 2019-11-14  Jakub Jelinek  <jakub@redhat.com>
3677         * c-omp.c (c_omp_check_context_selector): Add nvidia to the list of
3678         valid vendors.
3680         * c-omp.c (c_omp_check_context_selector): Handle name lists
3681         containing string literals.  Don't diagnose atomic_default_mem_order
3682         with multiple props.
3684 2019-11-13  Joseph Myers  <joseph@codesourcery.com>
3686         * c-cppbuiltin.c (builtin_define_float_constants): Also define
3687         NORM_MAX constants.  Update call to get_max_float.
3688         (LAZY_HEX_FP_VALUES_CNT): Update value to include NORM_MAX
3689         constants.
3691 2019-11-13  Eric Botcazou  <ebotcazou@adacore.com>
3693         * c-ada-spec.c (get_underlying_decl): Do not look through typedefs.
3694         (dump_forward_type): Do not generate a declaration for function types.
3695         (dump_nested_type) <ARRAY_TYPE>: Do not generate a nested declaration
3696         of the component type if it is declared in another file.
3698 2019-11-12  Martin Liska  <mliska@suse.cz>
3700         * c-opts.c (c_common_post_options):
3701         Use SET_OPTION_IF_UNSET.
3703 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
3704             Frederik Harwath  <frederik@codesourcery.com>
3706         gcc/c-family/
3707         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_SERIAL enumeration
3708         constant.
3709         * c-pragma.c (oacc_pragmas): Add "serial" entry.
3711 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
3713         * c-common.h (gnu_vector_type_p): New function.
3714         * c-common.c (c_build_vec_perm_expr): Require __builtin_shuffle
3715         vectors to satisfy gnu_vector_type_p.
3716         (c_build_vec_convert): Likewise __builtin_convertvector.
3717         (convert_vector_to_array_for_subscript): Likewise when applying
3718         implicit vector to array conversion.
3719         (scalar_to_vector): Likewise when converting vector-scalar
3720         operations to vector-vector operations.
3722 2019-11-08  Joseph Myers  <joseph@codesourcery.com>
3724         * c.opt (Wold-style-definition): Initialize to -1.
3725         * c-opts.c (c_common_post_options): Set warn_old_style_definition
3726         to flag_isoc2x if not set explicitly.
3728 2019-11-07  Joseph Myers  <joseph@codesourcery.com>
3730         * c-attribs.c (parse_tm_stmt_attr): Handle scoped attributes.
3732 2019-11-05  Jason Merrill  <jason@redhat.com>
3734         * c-opts.c (c_common_post_options): -fconcepts-ts implies
3735         -fconcepts.
3737 2019-11-04  Kamlesh Kumar  <kamleshbhalui@gmail.com>
3739         * c-opts.c (c_common_post_options): Update
3740         latest_abi_version.
3742 2019-11-02  Jakub Jelinek  <jakub@redhat.com>
3744         * c-common.h (c_omp_get_context_selector): Remove.
3745         * c-omp.c (c_omp_get_context_selector): Moved to omp-general.c
3746         and renamed to omp_get_context_selector.
3748         * c-omp.c (c_omp_mark_declare_variant): Use
3749         omp_context_selector_set_compare.
3751         PR c++/88335 - Implement P1073R3: Immediate functions
3752         * c-common.h (enum rid): Add RID_CONSTEVAL.
3753         * c-common.c (c_common_reswords): Add consteval.
3755 2019-11-01  Martin Sebor  <msebor@redhat.com>
3757         PR middle-end/91679
3758         PR middle-end/91647
3759         PR middle-end/91463
3760         PR middle-end/92312
3761         * c-pretty-print.c (direct_abstract_declarator): Print
3762         bound in zero-length arrays.
3763         * c.opt (-Wzero-length-bounds): New option.
3765 2019-10-30  Nathan Sidwell  <nathan@acm.org>
3767         * c-cppbuiltin.c (c_cpp_builtins): Add 'L' suffix to feature
3768         macros.
3770 2019-10-28  Martin Sebor  <msebor@redhat.com>
3772         PR c/66970
3773         * c-common.c (c_common_nodes_and_builtins): Call c_define_builtins
3774         even when only preprocessing.
3775         * c-common.h (names_builtin_p): Declare new function.
3776         * c-lex.c (init_c_lex): Set has_builtin.
3777         (c_common_has_builtin): Define a new function.
3778         * c-ppoutput.c (init_pp_output): Set has_builtin.
3780 2019-10-24  Jakub Jelinek  <jakub@redhat.com>
3782         * c-common.h (c_omp_context_selector_matches): Remove.
3783         * c-omp.c (c_omp_context_selector_matches): Remove.
3784         * c-attribs.c (c_common_attribute_table): Add
3785         "omp declare target {host,nohost,block}" attributes.
3787 2019-10-17  JeanHeyd Meneide  <phdofthehouse@gmail.com>
3789         * c-lex.c (c_common_has_attribute): Update nodiscard value.
3791 2019-10-14  Richard Sandiford  <richard.sandiford@arm.com>
3793         * c-common.h (user_facing_original_type_p): Declare.
3794         * c-common.c: Include c-spellcheck.h.
3795         (user_facing_original_type_p): New function.
3797 2019-10-12  Jakub Jelinek  <jakub@redhat.com>
3799         * c-common.h (c_omp_mark_declare_variant,
3800         c_omp_context_selector_matches): Declare.
3801         * c-omp.c: Include attribs.h, gimplify.h, cgraph.h, symbol-summary.h
3802         and hsa-common.h.
3803         (c_omp_get_context_selector): Support second argument NULL.
3804         (c_omp_mark_declare_variant, c_omp_context_selector_matches): New
3805         functions.
3806         * c-attribs.c (c_common_attribute_table): Remove "omp declare variant"
3807         attribute, add "omp declare variant base" and
3808         "omp declare variant variant" attributes.
3810 2019-10-11  Joseph Myers  <joseph@codesourcery.com>
3812         * c.opt (Wc11-c2x-compat): Add CPP(cpp_warn_c11_c2x_compat)
3813         CppReason(CPP_W_C11_C2X_COMPAT).
3815 2019-10-11  Joseph Myers  <joseph@codesourcery.com>
3817         * c-common.c (c_common_reswords): Do not use D_EXT for _Decimal32,
3818         _Decimal64 and _Decimal128.
3820 2019-10-10  Joseph Myers  <joseph@codesourcery.com>
3822         * c-cppbuiltin.c (c_cpp_builtins): Do not define macros for DFP
3823         types if DFP not supported.
3825 2019-10-10  Jakub Jelinek  <jakub@redhat.com>
3827         * c-common.h (c_omp_check_context_selector,
3828         c_omp_get_context_selector): Declare.
3829         * c-omp.c (c_omp_declare_simd_clauses_to_numbers): Fix spelling
3830         in diagnostic message.
3831         (c_omp_check_context_selector, c_omp_get_context_selector): New
3832         functions.
3833         * c-attribs.c (c_common_attribute_table): Add "omp declare variant"
3834         attribute.
3835         (handle_omp_declare_variant_attribute): New function.
3837 2019-10-09  Martin Sebor  <msebor@redhat.com>
3839         PR tree-optimization/90879
3840         * c.opt (-Wstring-compare): New option.
3842 2019-10-08  Andrew Sutton  <asutton@lock3software.com>
3843             Jason Merrill  <jason@redhat.com>
3845         Update the concepts implementation to conform to the C++20
3846         specification, improve compile times, and generally clean up
3847         the implementation.
3849         * c-cppbuiltin.c (c_cpp_builtins): Use new feature test values for
3850         concepts when -std=c++2a. Bump __cpp_concepts to 201907.
3851         * c.opt: Add -Wconcepts-ts.
3852         * c-opts.c (c_common_post_options): Warn when -fconcepts is used
3853         with -std=c++2a. Disable warning for -fconcepts in C++20 mode.
3854         (set_std_cxx2a): Enable concepts by default.
3856 2019-10-08  Joseph Myers  <joseph@codesourcery.com>
3858         * c-opts.c (c_common_post_options): Set
3859         -fno-fp-int-builtin-inexact for C2X.
3861 2019-10-05  Jakub Jelinek  <jakub@redhat.com>
3863         PR c++/91369 - Implement P0784R7: constexpr new
3864         * c-cppbuiltin.c (c_cpp_builtins): Predefine
3865         __cpp_constexpr_dynamic_alloc=201907 for -std=c++2a.
3867 2019-10-04  Joseph Myers  <joseph@codesourcery.com>
3869         PR c/82752
3870         * c-format.c (C_STD_VER): Handle C2x.
3871         (C_STD_NAME): Likewise.
3872         (strftime_flag_specs): Add 'O' modifier with 'p' flag.
3873         (time_char_table): Use separate entry for 'B' and 'b', with 'O'
3874         modifier allowed and 'p' flag.
3875         * c-format.h (enum format_std_version): Add STD_C2X.
3876         (struct format_char_info): Mention 'p' in comment on flags2.
3878 2019-10-01  David Malcolm  <dmalcolm@redhat.com>
3880         * c-opts.c (c_diagnostic_finalizer): Temporarily clear prefix when
3881         calling diagnostic_show_locus, rather than destroying it afterwards.
3883 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
3885         PR c++/91925
3886         * c-warn.c (check_alignment_of_packed_member): Ignore FIELD_DECLs
3887         with NULL DECL_FIELD_OFFSET.
3889 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
3891         * c-pretty-print.c (pp_c_specifier_qualifier_list): If a vector type
3892         has a type name, use it in preference to the __vector syntax.
3894 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
3896         * c-pretty-print.c (pp_c_parameter_type_list): Avoid printing
3897         two spaces between a comma and "...".
3899 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
3901         PR c++/88203
3902         * c-common.h (c_omp_predefined_variable): Declare.
3903         * c-omp.c (c_omp_predefined_variable): New function.
3904         (c_omp_predetermined_sharing): Return OMP_CLAUSE_DEFAULT_SHARED
3905         for predefined variables.
3907 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
3909         * c-common.h (build_function_call_vec): Take the original
3910         function decl as an optional final parameter.
3911         (check_builtin_function_arguments): Take the original function decl.
3912         * c-common.c (check_builtin_function_arguments): Likewise.
3913         Handle all built-in functions, not just BUILT_IN_NORMAL ones.
3914         Use targetm.check_builtin_call to check BUILT_IN_MD functions.
3916 2019-09-15  Jason Merrill  <jason@redhat.com>
3918         * c-warn.c (warn_logical_operator): Strip location wrappers.  Don't
3919         fold_for_warn in "|| mask" warning.
3921 2019-09-10  Martin Liska  <mliska@suse.cz>
3923         * c.opt: Use newly added WarnRemoved.
3925 2019-09-09  Martin Liska  <mliska@suse.cz>
3927         * c.opt: Update comment of removed
3928         options that are preserved only for backward
3929         compatibility.
3931 2019-09-06  Martin Liska  <mliska@suse.cz>
3933         PR c++/91125
3934         * c-common.c: Remove definition of flag_use_repository.
3935         * c-common.h: Likewise.
3936         * c-opts.c (c_common_handle_option):
3937         Do not handle OPT_frepo option.
3938         * c.opt: Mark the option with Deprecated.
3940 2019-09-04  Marek Polacek  <polacek@redhat.com>
3942         * c.opt (fdeduce-init-list): Ignored.
3944 2019-09-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3946         PR c/78736
3947         * c.opt (Wenum-conversion): New option.
3949 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
3951         * c-attribs.c (handle_section_attribute): Call the
3952         handle_generic_attribute target hook after performing target
3953         independent processing.
3954         (handle_noinit_attribute): Likewise.
3956 2019-09-03  Ian Lance Taylor  <iant@golang.org>
3958         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Always expand
3959         when using -fgo-dump-spec.
3961 2019-09-02  Martin Liska  <mliska@suse.cz>
3963         PR c++/91155
3964         * c-common.c (fname_as_string): Use cxx_printable_name for
3965         __PRETTY_FUNCTION__ same as was used before r265711.
3967 2019-08-28  Marek Polacek  <polacek@redhat.com>
3969         Implement P1152R4: Deprecating some uses of volatile.
3970         PR c++/91361
3971         * c-opts.c (c_common_post_options): Enable -Wvolatile by
3972         default for C++2a, unless -Wno-deprecated.
3973         * c.opt (Wvolatile): New warning.
3975 2019-08-28  Marek Polacek  <polacek@redhat.com>
3977         PR c++/91360 - Implement C++20 P1143R2: constinit.
3978         * c-common.c (c_common_reswords): Add constinit and __constinit.
3979         (keyword_is_decl_specifier): Handle RID_CONSTINIT.
3980         * c-common.h (enum rid): Add RID_CONSTINIT, RID_FIRST_CXX20, and
3981         RID_LAST_CXX20.
3982         (D_CXX20): Define.
3983         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_constinit.
3984         * c-format.c (cxx_keywords): Add "constinit".
3985         * c.opt (Wc++2a-compat, Wc++20-compat): New options.
3987 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
3989         PR c++/91415
3990         * c-common.c (verify_tree): For LSHIFT_EXPR, RSHIFT_EXPR,
3991         COMPONENT_REF and ARRAY_REF in cxx_dialect >= cxx17 mode handle it
3992         like COMPOUND_EXPR rather than normal expression.
3994 2019-08-23  Iain Sandoe  <iain@sandoe.co.uk>
3996         PR pch/61250
3997         * c-lex.c (c_lex_with_flags):  Don't call
3998         c_common_no_more_pch () from here.
4000 2019-08-23  Jakub Jelinek  <jakub@redhat.com>
4002         PR middle-end/91283
4003         * c-common.c (c_ts18661_flt_eval_method): Use flag_excess_precision
4004         instead of flag_excess_precision_cmdline.
4005         * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): Likewise.
4006         * c-opts.c (c_common_post_options): Likewise.
4008 2019-08-22  Martin Sebor  <msebor@redhat.com>
4010         PR middle-end/91490
4011         * c-common.c (braced_list_to_string): Add argument and overload.
4012         Handle flexible length arrays and unions.
4014 2019-08-21  Eric Botcazou  <ebotcazou@adacore.com>
4016         * c-ada-spec.c (dump_ada_function_declaration): Be prepared for broken
4017         function declarations where arguments are missing.  Rename variables.
4019 2019-08-15  Richard Biener  <rguenther@suse.de>
4021         * c-common.c (c_stddef_cpp_builtins): When the GIMPLE FE is
4022         enabled, define __SIZETYPE__.
4024 2019-08-14  Christophe Lyon  <christophe.lyon@linaro.org>
4026         * c-attribs.c (c_common_attribute_table): Add "noinit" entry. Add
4027         exclusion with "section" attribute.
4028         (attr_noinit_exclusions): New table.
4029         (handle_noinit_attribute): New function.
4031 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
4033         PR middle-end/91421
4034         * c-common.c (resolve_overloaded_builtin): Use
4035         copy_decl_built_in_function.
4037 2019-08-13  Martin Sebor  <msebor@redhat.com>
4039         PR c/80619
4040         * c-format.c (printf_length_specs): Set FMT_LEN_w for "w".
4041         (asm_fprintf_length_spec): Same.
4042         * c-format.h (format_lengths): Add FMT_LEN_w.
4044 2019-08-10  Jakub Jelinek  <jakub@redhat.com>
4046         * c-pragma.h (enum pragma_omp_clause): Add
4047         PRAGMA_OMP_CLAUSE_DEVICE_TYPE.
4049 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
4051         * c-pragma.h (enum pragma_omp_clause): Add
4052         PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR.  Set PRAGMA_OACC_CLAUSE_USE_DEVICE
4053         equal to PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR instead of being a separate
4054         enumeration value.
4056 2019-08-05  Marek Polacek  <polacek@redhat.com>
4058         PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
4059         * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by
4060         default for C++2a, unless -Wno-deprecated.
4061         * c.opt (Wcomma-subscript): New warning.
4063 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
4065         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_LOOP.
4066         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_BIND.
4067         * c-pragma.c (omp_pragmas_simd): Add PRAGMA_OMP_LOOP entry.
4068         * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_LOOP.
4069         * c-omp.c (c_omp_split_clauses): Add support for 4 new combined
4070         constructs with the loop construct.
4072 2019-07-13  Jakub Jelinek  <jakub@redhat.com>
4074         PR c/91149
4075         * c-omp.c (c_omp_split_clauses): Fix a pasto in
4076         OMP_CLAUSE_REDUCTION_TASK handling.
4078 2019-07-12  Jakub Jelinek  <jakub@redhat.com>
4080         * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ORDER.
4081         * c-omp.c (c_omp_split_clauses): Handle splitting of OMP_CLAUSE_ORDER.
4083 2019-07-09  Martin Sebor  <msebor@redhat.com>
4085         PR c++/61339
4086         * c-opts.c (handle_deferred_opts): Change class-key of PODs to struct
4087         and others to class.
4088         * c-pretty-print.h: Same.
4090 2019-07-09  Martin Sebor  <msebor@redhat.com>
4092         PR c++/61339
4093         * c-format.c (check_argument_type): Change class-key from class to
4094         struct and vice versa to match convention and avoid -Wclass-is-pod
4095         and -Wstruct-no-pod.
4096         * c-pretty-print.h: Same.
4098 2019-07-03  Martin Liska  <mliska@suse.cz>
4100         * c-common.c (try_to_locate_new_include_insertion_point): Remove
4101         dead assignemts.
4103 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
4105         * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_REDUCTION_INSCAN
4106         clauses on OMP_FOR rather than OMP_PARALLEL when OMP_FOR is combined
4107         with OMP_PARALLEL.
4109 2019-07-02  qing zhao  <qing.zhao@oracle.com>
4111         PR preprocessor/90581
4112         * c-opts.c (c_common_handle_option): Handle -fmax-include-depth.
4113         * c.opt: Add new option -fmax-include-depth.
4115 2019-06-26  Jason Merrill  <jason@redhat.com>
4117         PR c++/55442 - memory-hog with highly recursive constexpr.
4118         * c.opt (fconstexpr-loop-limit): New.
4120 2019-06-25  Jakub Jelinek  <jakub@redhat.com>
4122         PR sanitizer/90954
4123         * c-omp.c (c_finish_omp_atomic): Allow tree_invariant_p in addition
4124         to SAVE_EXPR in first operand of a COMPOUND_EXPR.
4126 2019-06-25  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
4128         * c-common.c (c_common_nodes_and_builtins): Define
4129         alternate "__intN__" name for "__intN" types.
4131 2019-06-24  Jan Hubicka  <jh@suse.cz>
4133         * c-common.c (braced_lists_to_strings): Check that
4134         type is array or integer prior checking string flag.
4136 2019-06-21  Matthew Beliveau  <mbelivea@redhat.com>
4138         PR c++/90875 - added -Wswitch-outside-range option
4139         * c.opt (Wswitch-outside-range): Added new option.
4140         * c-warn.c (c_do_switch_warnings): Use OPT_Wswitch-outside-range.
4142 2019-06-21  Marek Polacek  <polacek@redhat.com>
4144         PR c++/90953 - ICE with -Wmissing-format-attribute.
4145         * c-common.c (check_function_arguments_recurse): Use
4146         get_attribute_name.
4147         (check_missing_format_attribute): Likewise.
4149 2019-06-19  Marek Polacek  <polacek@redhat.com>
4151         PR c++/60364 - noreturn after first decl not diagnosed.
4152         * c-attribs.c (handle_noreturn_attribute): No longer static.
4153         * c-common.h (handle_noreturn_attribute, attr_noreturn_exclusions):
4154         Declare.
4155         * c-format.c (check_function_format): Use get_attribute_name.
4157 2019-06-19  Martin Sebor  <msebor@redhat.com>
4159         PR translation/90156
4160         * c-format.c (function_format_info::format_type): Adjust type.
4161         (function_format_info::is_raw): New member.
4162         (decode_format_type): Adjust signature.  Handle "raw" diag attributes.
4163         (decode_format_attr): Adjust call to decode_format_type.
4164         Avoid a redundant call to convert_format_name_to_system_name.
4165         Avoid abbreviating the word "arguments" in a diagnostic.
4166         (format_warning_substr): New function.
4167         (avoid_dollar_number): Quote dollar sign in a diagnostic.
4168         (finish_dollar_format_checking): Same.
4169         (check_format_info): Same.
4170         (struct baltoks_t): New.
4171         (c_opers, c_keywords, cxx_keywords, badwords, contrs): New arrays.
4172         (maybe_diag_unbalanced_tokens, check_tokens, check_plain): New
4173         functions.
4174         (check_format_info_main): Call check_plain.  Use baltoks_t.  Call
4175         maybe_diag_unbalanced_tokens.
4176         (handle_format_attribute): Spell out the word "arguments" in
4177         a diagnostic.
4179 2019-06-11  Matthew Beliveau  <mbelivea@redhat.com>
4181         PR c++/90449 - add -Winaccessible-base option.
4182         * c.opt (Winaccessible-base): New option.
4184 2019-06-10  Jakub Jelinek  <jakub@redhat.com>
4186         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCAN.
4187         * c-pragma.c (omp_pragmas_simd): Add #pragma omp scan.
4188         * c-omp.c (c_omp_split_clauses): Diagnose inscan reductions on
4189         combined/composite constructs where it is not allowed.  Copy over
4190         OMP_CLAUSE_REDUCTION_INSCAN.
4192 2019-06-05  Martin Sebor  <msebor@redhat.com>
4194         * c-attribs.c (handle_mode_attribute): Adjust quoting and hyphenation.
4195         (handle_alias_ifunc_attribute): Same.
4196         (handle_copy_attribute): Same.
4197         (handle_weakref_attribute): Same.
4198         (handle_nonnull_attribute): Same.
4199         * c-warn.c (warn_for_sign_compare): Same.
4200         (warn_for_restrict): Same.
4201         * c.opt: Same.
4203 2019-06-05  Martin Sebor  <msebor@redhat.com>
4205         * c-pragma.c (handle_pragma_weak): Adjust quoting in a diagnostic.
4206         * c.opt (-Wformat-diag): Remove a spurious period.
4208 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
4210         PR c/90628
4211         * c-common.c (check_builtin_function_arguments)
4212         <case BUILTIN_*_OVERFLOW>: Diagnose pointer to const qualified integer
4213         as last argument.
4215 2019-05-23  Eric Botcazou  <ebotcazou@adacore.com>
4217         * c-ada-spec.c (compare_node): Compare the DECL_UIDs as a last resort.
4219 2019-05-22  Martin Liska  <mliska@suse.cz>
4221         PR lto/90500
4222         * c-attribs.c (handle_copy_attribute): Do not copy
4223         target_clones attribute.
4225 2019-05-21  Eric Botcazou  <ebotcazou@adacore.com>
4227         * c-ada-spec.h (enum cpp_operation): Add IS_ASSIGNMENT_OPERATOR.
4228         * c-ada-spec.c (print_assignment_operator): New function.
4229         (dump_ada_declaration) <FUNCTION_DECL>: Call it do dump explicit copy
4230         assignment operators declared as methods and filter out the others.
4232 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
4234         PR c/89433
4235         * c-attribs.c (c_common_attribute_table): Set min_len to -1 for
4236         "omp declare target".
4238 2019-05-16  Martin Sebor  <msebor@redhat.com>
4240         * c-attribs.c (handle_no_sanitize_attribute): Quote identifiers,
4241         keywords, operators, and types in diagnostics.
4242         (handle_scalar_storage_order_attribute): Same.
4243         (handle_mode_attribute): Same.
4244         (handle_visibility_attribute): Same.
4245         (handle_assume_aligned_attribute): Same.
4246         (handle_no_split_stack_attribute): Same.
4247         * c-common.c (shorten_compare): Same.
4248         (c_common_truthvalue_conversion): Same.
4249         (cb_get_source_date_epoch): Same.
4250         * c-lex.c (cb_def_pragma): Quote keywords, operators, and types
4251         in diagnostics.
4252         (interpret_float): Same.
4253         * c-omp.c (c_finish_omp_for): Same.
4254         * c-opts.c (c_common_post_options): Same.
4255         * c-pch.c (c_common_pch_pragma): Same.
4256         * c-pragma.c (pop_alignment): Same.
4257         (handle_pragma_pack): Same.
4258         (apply_pragma_weak): Same.
4259         (handle_pragma_weak): Same.
4260         (handle_pragma_scalar_storage_order): Same.
4261         (handle_pragma_redefine_extname): Same.
4262         (add_to_renaming_pragma_list): Same.
4263         (maybe_apply_renaming_pragma): Same.
4264         (push_visibility): Same.
4265         (handle_pragma_visibility): Same.
4266         (handle_pragma_optimize): Same.
4267         (handle_pragma_message): Same.
4268         * c-warn.c (warn_for_omitted_condop): Same.
4269         (lvalue_error): Same.
4271 2019-05-15  Richard Biener  <rguenther@suse.de>
4273         PR c/90474
4274         * c-common.c (c_common_mark_addressable_vec): Also mark
4275         a COMPOUND_LITERAL_EXPR_DECL addressable similar to
4276         c_mark_addressable.
4278 2019-05-06  Nathan Sidwell  <nathan@acm.org>
4280         * c-opts.c (handle_defered_opts): Rename struct deps to struc mkdeps.
4282 2019-04-30  Nathan Sidwell  <nathan@acm.org>
4284         * c-common.c (c_common_init_ts): Use MARK_TS_EXP.  Mark SIZEOF_EXPR.
4286 2019-04-30  Martin Liska  <mliska@suse.cz>
4288         * c-pragma.c (handle_pragma_diagnostic): Provide hints
4289         for unknown options.
4291 2019-04-26  Richard Sandiford  <richard.sandiford@arm.com>
4293         * c-warn.c (strict_aliasing_warning): Apply COMPLETE_TYPE_P to
4294         the pointer target rather than the pointer itself.
4296 2019-04-19  Jakub Jelinek  <jakub@redhat.com>
4298         PR c/89888
4299         * c-common.h (c_add_case_label): Remove orig_type and outside_range_p
4300         arguments.
4301         (c_do_switch_warnings): Remove outside_range_p argument.
4302         * c-common.c (check_case_bounds): Removed.
4303         (c_add_case_label): Remove orig_type and outside_range_p arguments.
4304         Don't call check_case_bounds.  Fold low_value as well as high_value.
4305         * c-warn.c (c_do_switch_warnings): Remove outside_range_p argument.
4306         Check for case labels outside of range of original type here and
4307         adjust them.
4309 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
4311         PR translation/90041
4312         * c.opt (-fhandle-exceptions): Use %< and %> around option names
4313         in the Warn diagnostics.
4315         PR c/89946
4316         * c-attribs.c (handle_patchable_function_entry_attribute): Add
4317         function comment.  Warn if arguments of the attribute are not positive
4318         integer constants.
4320 2019-04-09  Eric Botcazou  <ebotcazou@adacore.com>
4322         * c-ada-spec.c (print_destructor): Deal with deleting destructors.
4323         (dump_ada_declaration) <FUNCTION_DECL>: Likewise.
4325 2019-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4327         * c-ada-spec.c (is_float128): New predicate extracted from...
4328         (dump_ada_node) <COMPLEX_TYPE>: Use it to recognize __cfloat128.
4329         <REAL_TYPE>: ...here.  Call it.
4331 2019-04-05  David Malcolm  <dmalcolm@redhat.com>
4333         PR c/89985
4334         * c-warn.c (check_address_or_pointer_of_packed_member): Add
4335         auto_diagnostic_group.  Guard inform calls by result of
4336         warning_at call.
4338 2019-04-05  Marek Polacek  <polacek@redhat.com>
4340         PR c++/89973 - -Waddress-of-packed-member ICE with invalid conversion.
4341         * c-warn.c (check_address_or_pointer_of_packed_member): Check the type
4342         of RHS.
4344 2019-04-03  Jason Merrill  <jason@redhat.com>
4346         PR c++/86586 - -fcompare-debug=-Wsign-compare.
4347         * c-warn.c (warn_for_sign_compare): Call fold_for_warn.
4349 2019-04-01  Martin Sebor  <msebor@redhat.com>
4351         PR c/89685
4352         * c-attribs.c (handle_copy_attribute): Handle references and
4353         non-constant expressions.
4355 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
4357         PR c++/87481
4358         * c.opt (-fconstexpr-ops-limit=): New option.
4360 2019-03-21  Jakub Jelinek  <jakub@redhat.com>
4362         * c-common.c (per_file_includes_t): Use false as Lazy in hash_set
4363         template param.
4365 2019-03-19  Martin Sebor  <msebor@redhat.com>
4367         PR tree-optimization/89688
4368         * c-common.c (braced_list_to_string): Make static.
4369         (braced_lists_to_strings): Define new function.
4370         * c-common.h (braced_list_to_string): Remove.
4371         (braced_lists_to_strings): Declare.
4373 2019-03-12  Martin Liska  <mliska@suse.cz>
4375         * c-opts.c (c_common_handle_option): Wrap option with %< and %>.
4377 2019-03-11  Martin Liska  <mliska@suse.cz>
4379         * c-opts.c (c_common_post_options): Wrap apostrophes
4380         in gcc internal format with %'.
4382 2019-03-11  Martin Liska  <mliska@suse.cz>
4384         * c-attribs.c (handle_nocf_check_attribute): Wrap an option name
4385         in a string format message and fix GNU coding style.
4386         * c-common.c (vector_types_convertible_p): Likewise.
4387         (c_build_vec_perm_expr): Likewise.
4388         * c-indentation.c (get_visual_column): Likewise.
4389         * c-opts.c (c_common_handle_option): Likewise.
4390         (c_common_post_options): Likewise.
4391         (sanitize_cpp_opts): Likewise.
4392         * c-pch.c (c_common_pch_pragma): Likewise.
4393         * c-pragma.c (handle_pragma_pack): Likewise.
4395 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
4397         PR tree-optimization/89550
4398         * c-common.c (c_common_truthvalue_conversion): Only set
4399         TREE_NO_WARNING if warning_at returned true.
4400         * c-warn.c (overflow_warning, warn_logical_operator): Likewise.
4402 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
4403             Martin Sebor  <msebor@gmail.com>
4405         * c.opt (Wmissing-attributes): Clean up doc string.
4407 2019-02-25  Jakub Jelinek  <jakub@redhat.com>
4409         PR c/89495
4410         * c-format.c (maybe_read_dollar_number): Compute nargnum in
4411         HOST_WIDE_INT type to avoid overflows and change overflow_flag
4412         checking.
4414 2019-02-22  Richard Biener  <rguenther@suse.de>
4416         * c-pch.c (no_checksum): Remove.
4417         (pch_init): Remove assertion that executable_checksum is not
4418         all zero.
4419         (c_common_valid_pch): Likewise.
4421 2019-02-18  Martin Sebor  <msebor@redhat.com>
4423         PR middle-end/89294
4424         * c-common.c (invalid_array_size_error): Handle cst_size_not_constant.
4426 2019-02-16  David Malcolm  <dmalcolm@redhat.com>
4428         PR c++/88680
4429         * c-common.c (shorten_compare): Call fold_for_warn on op0 when
4430         implementing -Wtype-limits.
4432 2019-02-11  Martin Sebor  <msebor@redhat.com>
4434         PR c++/87996
4435         * c-common.c (invalid_array_size_error): New function.
4436         (valid_array_size_p): Call it.  Handle size as well as type.
4437         * c-common.h (valid_constant_size_p): New function.
4438         (enum cst_size_error): New type.
4440 2019-01-31  David Malcolm  <dmalcolm@redhat.com>
4442         PR c/89122
4443         * known-headers.cc (get_stdlib_header_for_name): Add
4444         {FLT|DBL|LDBL}_{MAX|MIN} to "hints" array.
4446 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
4448         PR libstdc++/88170
4449         * c-pretty-print.c (pp_c_enumeration_constant): Print always as
4450         a C cast in pp_c_flag_gnu_v3 mode.
4452 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
4454         PR c/86125
4455         * c-common.c (c_common_nodes_and_builtins): Build type variants for
4456         builtin_structptr_types types even for C.
4458 2019-01-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4460         * c-warn.c (check_address_or_pointer_of_packed_member): Handle the case
4461         when rhs is of array type correctly.  Fix handling of nested structures.
4462         Fix handling of indirect_ref together with nop_expr and/or addr_expr.
4463         (check_and_warn_address_or_pointer_of_packed_member): Fix handling of
4464         type casts within nested compound expressions.
4466 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
4468         PR middle-end/88968
4469         * c-omp.c (c_finish_omp_atomic): For bitfield atomics, update type
4470         variable after using BIT_FIELD_REF.
4472 2019-01-18  H.J. Lu  <hongjiu.lu@intel.com>
4474         PR c/51628
4475         PR c/88664
4476         * c-common.h (warn_for_address_or_pointer_of_packed_member):
4477         Remove the boolean argument.
4478         * c-warn.c (check_address_of_packed_member): Renamed to ...
4479         (check_address_or_pointer_of_packed_member): This.  Also
4480         warn pointer conversion.
4481         (check_and_warn_address_of_packed_member): Renamed to ...
4482         (check_and_warn_address_or_pointer_of_packed_member): This.
4483         Also warn pointer conversion.
4484         (warn_for_address_or_pointer_of_packed_member): Remove the
4485         boolean argument.  Don't check pointer conversion here.
4487 2019-01-15  Richard Sandiford  <richard.sandiford@arm.com>
4489         PR inline-asm/52813
4490         * c.opt (Wdeprecated): Move documentation and variable to common.opt.
4492 2019-01-14  Jakub Jelinek  <jakub@redhat.com>
4494         * c-cppbuiltin.c (c_cpp_builtin): Define __cpp_guaranteed_copy_elision
4495         and __cpp_nontype_template_parameter_auto.  Add a comment that
4496         __cpp_template_auto is deprecated.
4498 2019-01-14  Tom Honermann  <tom@honermann.net>
4500         Implement P0482R5, char8_t: A type for UTF-8 characters and strings
4501         * c-common.c (c_common_reswords): Add char8_t.
4502         (fix_string_type): Use char8_t for the type of u8 string literals.
4503         (c_common_get_alias_set): char8_t doesn't alias.
4504         (c_common_nodes_and_builtins): Define char8_t as a builtin type in
4505         C++.
4506         (c_stddef_cpp_builtins): Add __CHAR8_TYPE__.
4507         (keyword_begins_type_specifier): Add RID_CHAR8.
4508         * c-common.h (rid): Add RID_CHAR8.
4509         (c_tree_index): Add CTI_CHAR8_TYPE and CTI_CHAR8_ARRAY_TYPE.
4510         Define D_CXX_CHAR8_T and D_CXX_CHAR8_T_FLAGS.
4511         Define char8_type_node and char8_array_type_node.
4512         * c-cppbuiltin.c (cpp_atomic_builtins): Predefine
4513         __GCC_ATOMIC_CHAR8_T_LOCK_FREE.
4514         (c_cpp_builtins): Predefine __cpp_char8_t.
4515         * c-lex.c (lex_string): Use char8_array_type_node as the type of
4516         CPP_UTF8STRING.
4517         (lex_charconst): Use char8_type_node as the type of CPP_UTF8CHAR.
4518         * c-opts.c: If not otherwise specified, enable -fchar8_t when
4519         targeting C++2a.
4520         * c.opt: Add the -fchar8_t command line option.
4522 2019-01-14  Martin Sebor  <msebor@redhat.com>
4524         PR target/88638
4525         * c-attribs.c (positional_argument): Call valid_format_string_type_p
4526         and issue errors if it fails.
4527         * c-common.h (valid_format_string_type_p): Declare.
4528         * c-format.c (valid_stringptr_type_p): Rename...
4529         (valid_format_string_type_p): ...to this and make extern.
4530         (handle_format_arg_attribute): Adjust to new name.
4531         (check_format_string): Same.
4533 2019-01-13  H.J. Lu  <hongjiu.lu@intel.com>
4535         * c-warn.c (warn_for_address_or_pointer_of_packed_member):
4536         Replace "may may" with "may" in warning message.
4538 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
4540         PR c++/85052
4541         * c-common.h (enum rid): Add RID_BUILTIN_CONVERTVECTOR.
4542         (c_build_vec_convert): Declare.
4543         * c-common.c (c_build_vec_convert): New function.
4545 2019-01-04  Martin Sebor  <msebor@redhat.com>
4547         PR c/88546
4548         * c-attribs.c (handle_copy_attribute): Avoid copying attribute leaf.
4549         Handle C++ empty throw specification and C11 _Noreturn.
4550         (has_attribute): Also handle C11 _Noreturn.
4552 2019-01-04  Martin Sebor  <msebor@redhat.com>
4554         PR c/88363
4555         * c-attribs.c (positional_argument): Also accept enumerated types.
4557 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
4559         Update copyright years.
4561 2018-12-20  H.J. Lu  <hongjiu.lu@intel.com>
4563         PR c/51628
4564         * c-common.h (warn_for_address_or_pointer_of_packed_member): New.
4565         * c-warn.c (check_alignment_of_packed_member): New function.
4566         (check_address_of_packed_member): Likewise.
4567         (check_and_warn_address_of_packed_member): Likewise.
4568         (warn_for_address_or_pointer_of_packed_member): Likewise.
4569         * c.opt: Add -Wno-address-of-packed-member.
4571 2018-12-20  David Malcolm  <dmalcolm@redhat.com>
4573         PR c++/87504
4574         * c-warn.c (get_outermost_macro_expansion): New function.
4575         (spelled_the_same_p): Use it to unwind the macro expansions, and
4576         compare the outermost macro in each nested expansion, rather than
4577         the innermost.
4579 2018-12-19  David Malcolm  <dmalcolm@redhat.com>
4581         PR c++/87504
4582         * c-common.h (warn_tautological_cmp): Convert 1st param from
4583         location_t to const op_location_t &.
4584         * c-warn.c (find_array_ref_with_const_idx_r): Call fold_for_warn
4585         when testing for INTEGER_CST.
4586         (warn_tautological_bitwise_comparison): Convert 1st param from
4587         location_t to const op_location_t &; use it to build a
4588         binary_op_rich_location, and use this.
4589         (spelled_the_same_p): New function.
4590         (warn_tautological_cmp): Convert 1st param from location_t to
4591         const op_location_t &.  Warn for macro expansions if
4592         spelled_the_same_p.  Use binary_op_rich_location.
4594 2018-12-19  David Malcolm  <dmalcolm@redhat.com>
4596         PR c++/43064
4597         PR c++/43486
4598         * c-common.c (unsafe_conversion_p): Fold any location wrapper.
4599         (verify_tree): Handle location wrappers.
4600         (c_common_truthvalue_conversion): Strip any location wrapper.
4601         Handle CONST_DECL.
4602         (fold_offsetof): Strip any location wrapper.
4603         (complete_array_type): Likewise for initial_value.
4604         (convert_vector_to_array_for_subscript): Call fold_for_warn on the
4605         index before checking for INTEGER_CST.
4606         * c-pretty-print.c (c_pretty_printer::primary_expression): Don't
4607         print parentheses around location wrappers.
4608         * c-warn.c (warn_logical_operator): Call fold_for_warn on op_right
4609         before checking for INTEGER_CST.
4610         (warn_tautological_bitwise_comparison): Call
4611         tree_strip_any_location_wrapper on lhs, rhs, and bitop's operand
4612         before checking for INTEGER_CST.
4613         (readonly_error): Strip any location wrapper.
4614         (warn_array_subscript_with_type_char): Strip location wrappers
4615         before checking for INTEGER_CST.  Use the location of the index if
4616         available.
4618 2018-12-06  Jason Merrill  <jason@redhat.com>
4620         PR c++/88136 - -Wdeprecated-copy false positives
4621         * c.opt (Wdeprecated-copy-dtor): New.
4622         (Wdeprecated-copy): Move to -Wextra.
4624 2018-11-29  Martin Sebor  <msebor@redhat.com>
4626         PR c/88172
4627         PR testsuite/88208
4628         * c-attribs.c (common_handle_aligned_attribute): Silently avoid setting
4629         alignments to values less than the target requires.
4630         (has_attribute): For attribute aligned consider both the attribute
4631         and the alignment bits.
4632         * c-common.c (c_init_attributes): Optionally issue a warning for
4633         zero alignment.
4635 2018-11-28  Martin Sebor  <msebor@redhat.com>
4637         PR c/88065
4638         PR c/87297
4639         * c-warn.c (sizeof_pointer_memaccess_warning): Bail if source
4640         or destination is an error.
4642 2018-11-28  Jakub Jelinek  <jakub@redhat.com>
4644         PR c++/88215
4645         * c-ubsan.c: Include langhooks.h.
4646         (ubsan_instrument_division): Change gcc_assert that main variants
4647         of op0 and op1 types are equal to gcc_checking_assert that the
4648         main variants are compatible types.
4650 2018-11-27  Eric Botcazou  <ebotcazou@adacore.com>
4652         * c-ada-spec.c: Include stringpool.h.
4653         (has_static_fields): Return false for incomplete types.
4654         (is_tagged_type): Likewise.
4655         (has_nontrivial_methods): Likewise.
4656         (dump_ada_node) <INTEGER_TYPE>: Deal specifically with __int128.
4657         (struct overloaded_name_hash): New structure.
4658         (struct overloaded_name_hasher): Likewise.
4659         (overloaded_names): New global variable.
4660         (init_overloaded_names): New static function.
4661         (overloaded_name_p): New predicate.
4662         (dump_ada_declaration) <TYPE_DECL>: Tidy up and set TREE_VISITED
4663         on the TYPE_STUB_DECL of the original type of a typedef, if any.
4664         <FUNCTION_DECL>: Bail out for an unsupported overloaded name.
4665         Remove always-true condition and dump forward types.
4666         (dump_ada_specs): Delete overloaded_names.
4668 2018-11-20  Martin Sebor  <msebor@redhat.com>
4670         * c-attribs.c (type_for_vector_size): New function.
4671         (type_valid_for_vector_size): Same.
4672         (handle_vector_size_attribute): Move code to the functions above
4673         and call them.
4674         (validate_attribute, has_attribute): New functions.
4675         * c-common.h (has_attribute): Declare.
4676         (rid): Add RID_HAS_ATTRIBUTE_EXPRESSION.
4677         * c-common.c (c_common_resword): Same.
4679 2018-11-16  Jason Merrill  <jason@redhat.com>
4681         * c-lex.c (c_common_has_attribute): Handle likely/unlikely.
4682         * c-attribs.c (attr_cold_hot_exclusions): Make public.
4684 2018-11-16  Jakub Jelinek  <jakub@redhat.com>
4686         PR middle-end/87854
4687         * c-common.c (fix_string_type): Reject string literals larger than
4688         TYPE_MAX_VALUE (ssizetype) bytes.
4690 2018-11-15  Martin Sebor  <msebor@redhat.com>
4692         PR c++/87541
4693         PR c++/87542
4694         * c-attribs.c (positional_argument): New function.
4695         (handle_alloc_size_attribute): Use it and simplify.
4696         (handle_alloc_align_attribute): Same.
4697         (handle_assume_aligned_attribute): Same.
4698         (handle_nonnull_attribute): Same.
4699         * c-common.c (check_function_arguments): Pass fntype to
4700         check_function_format.
4701         * c-common.h (check_function_format): Add an argument.
4702         (PosArgFlags, positional_argument): Declare new type and function.
4703         * c-format.c (decode_format_attr): Add arguments.
4704         (check_format_string, get_constant): Same.
4705         (convert_format_name_to_system_name): Adjust.
4707 2018-11-15  David Malcolm  <dmalcolm@redhat.com>
4709         PR other/19165
4710         * c-opts.c (c_diagnostic_finalizer): Add diagnostic_t param.
4712 2018-11-14  Jakub Jelinek  <jakub@redhat.com>
4714         P1236R1 - Signed integers are two's complement
4715         * c-warn.c (maybe_warn_shift_overflow): Don't warn for c++2a.
4716         * c-ubsan.c (ubsan_instrument_shift): Make signed shifts
4717         with in-range second operand well defined for -std=c++2a.
4719         PR other/88007
4720         * c-common.c (parse_optimize_options): Allocate option string from
4721         opts_obstack rather than as GC memory.  Move the allocation after
4722         warning for invalid option.
4724 2018-11-13  David Malcolm  <dmalcolm@redhat.com>
4726         * c-common.c (c_get_substring_location): Update for renaming of
4727         get_source_location_for_substring to get_location_within_string.
4728         * c-lex.c: Replace "source_location" with "location_t".
4729         * c-opts.c: Likewise.
4730         * c-ppoutput.c: Likewise.
4732 2018-11-13  Martin Sebor  <msebor@redhat.com>
4734         PR middle-end/81824
4735         * c-attribs.c (handle_copy_attribute): Exclude inlining attributes.
4736         (handle_tls_model_attribute): Improve diagnostics.
4738 2018-11-12  Jason Merrill  <jason@redhat.com>
4740         * c-cppbuiltin.c (c_cpp_builtins): Define
4741         __cpp_impl_destroying_delete.
4743         * c-cppbuiltin.c (c_cpp_builtins): Change __cpp_explicit_bool to
4744         __cpp_conditional_explicit.
4746 2018-11-09  Martin Sebor  <msebor@redhat.com>
4748         PR middle-end/81824
4749         * c-attribs.c (handle_copy_attribute): New function.
4751 2018-11-09  Martin Sebor  <msebor@redhat.com>
4753         PR c/87795
4754         * c-common.c (check_user_alignment): Use MAX_OFILE_ALIGNMENT.
4756 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
4758         * c-common.h (c_finish_omp_taskgroup): Add CLAUSES argument.
4759         (c_finish_omp_atomic): Replace bool SEQ_CST argument with
4760         enum omp_memory_order MEMORY_ORDER.
4761         (c_finish_omp_flush): Add MO argument.
4762         (c_omp_depend_t_p, c_finish_omp_depobj): Declare.
4763         (c_finish_omp_for): Add FINAL_P argument.
4764         * c-omp.c: Include memmodel.h.
4765         (c_finish_omp_taskgroup): Add CLAUSES argument.  Set
4766         OMP_TASKGROUP_CLAUSES to it.
4767         (c_finish_omp_atomic): Replace bool SEQ_CST argument with
4768         enum omp_memory_order MEMORY_ORDER.  Set OMP_ATOMIC_MEMORY_ORDER
4769         instead of OMP_ATOMIC_SEQ_CST.
4770         (c_omp_depend_t_p, c_finish_omp_depobj): New functions.
4771         (c_finish_omp_flush): Add MO argument, if not MEMMODEL_LAST, emit
4772         __atomic_thread_fence call with the given value.
4773         (check_omp_for_incr_expr): Formatting fixes.
4774         (c_finish_omp_for): Add FINAL_P argument.  Allow NE_EXPR
4775         even in OpenMP loops, diagnose if NE_EXPR and incr expression
4776         is not constant expression 1 or -1.  Transform NE_EXPR loops
4777         with iterators pointers to VLA into LT_EXPR or GT_EXPR loops.
4778         (c_omp_check_loop_iv_r): Look for orig decl of C++ range for
4779         loops too.
4780         (c_omp_split_clauses): Add support for combined
4781         #pragma omp parallel master and
4782         #pragma omp {,parallel }master taskloop{, simd} constructs.
4783         Handle OMP_CLAUSE_IN_REDUCTION.  Handle OMP_CLAUSE_REDUCTION_TASK.
4784         Handle OMP_CLAUSE_NONTEMPORAL.  Handle splitting OMP_CLAUSE_IF
4785         also to OMP_SIMD.  Copy OMP_CLAUSE_LASTPRIVATE_CONDITIONAL.
4786         (c_omp_predetermined_sharing): Don't return
4787         OMP_CLAUSE_DEFAULT_SHARED for const qualified decls.
4788         * c-pragma.c (omp_pragmas): Add PRAGMA_OMP_DEPOBJ and
4789         PRAGMA_OMP_REQUIRES.
4790         * c-pragma.h (enum pragma_kind): Likewise.
4791         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_NONTEMPORAL
4792         and PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION.
4794 2018-11-08  David Malcolm  <dmalcolm@redhat.com>
4796         * c-format.c (gcc_dump_printf_char_table): Add entry for %f.
4798 2018-11-08  David Malcolm  <dmalcolm@redhat.com>
4800         * c-format.c (local_cgraph_node_ptr_node): New variable.
4801         (gcc_dump_printf_char_table): Add entry for %C.
4802         (get_pointer_to_named_type): New function, taken from the handling
4803         code for "gimple *" from...
4804         (init_dynamic_diag_info): ...here.  Add handling for
4805         "cgraph_node *".
4806         * c-format.h (T_CGRAPH_NODE): New.
4808 2018-10-19  Jason Merrill  <jason@redhat.com>
4810         * c-cppbuiltin.c (c_cpp_builtins): Add
4811         __cpp_nontype_template_parameter_class.
4813 2018-10-31  Nathan Sidwell  <nathan@acm.org>
4815         * c-opts.c (c_finish_options): Force command line macro
4816         location.  Refactor to avoid repeating main debug hook.
4817         (push_command_line_include): Clarify comment.
4819         * c-opts.c (c_finish_options): Adjust cpp_force_token_locations call.
4821 2018-10-30  Martin Sebor  <msebor@redhat.com>
4823         PR middle-end/87041
4824         * c-format.c (check_format_types): Avoid diagnosing null pointer
4825         arguments to printf-family of functions.
4827 2018-10-30  Marek Polacek  <polacek@redhat.com>
4829         Implement P0892R2, explicit(bool).
4830         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_explicit_bool.
4832 2018-10-29  David Malcolm  <dmalcolm@redhat.com>
4834         * name-hint.h (name_hint::take_deferred): New member function.
4836 2018-10-29  David Malcolm  <dmalcolm@redhat.com>
4838         PR c++/56856
4839         * c-common.c (check_function_sentinel): Call fold_for_warn on the
4840         argument.
4841         (check_function_restrict): Rename param "argarray" to
4842         "unfolded_argarray", and make a copy named "argarray", calling
4843         fold_for_warn on each argument.
4844         (check_function_arguments): Add note about responsibility for
4845         folding the arguments.
4847 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
4849         * c-common.c (flag_isoc2x): New variable.
4850         * c-common.h (clk_c): Update comment to reference C2X.
4851         (flag_isoc99, flag_isoc11): Update comments to reference future
4852         standard versions in general.
4853         (flag_isoc2x): Declare.
4854         * c-opts.c (set_std_c2x): New function.
4855         (c_common_handle_option): Handle -std=c2x and -std=gnu2x.
4856         (set_std_c89, set_std_c99, set_std_c11, set_std_c17): Set
4857         flag_isoc2x to 0.
4858         * c.opt (Wc11-c2x-compat, std=c2x, std=gnu2x): New options.
4860 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
4862         * c.opt (std=c17, std=c18, std=gnu17, std=gnu18, std=iso9899:2017)
4863         (std=iso9899:2018): Document C17 as published in 2018.
4865 2018-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
4867         PR c++/87364
4868         * c-pretty-print.c (c_pretty_printer::constant): Fix typo.
4870 2018-10-11  Will Wray  <wjwray@gmail.com>
4872         PR c++/87364
4873         * c-pretty-print.h (pp_c_type_cast): Prototype.
4874         (pp_c_integer_constant): Likewise.
4875         * c-pretty-print.c (pp_c_type_cast): No longer static.
4876         (pp_c_integer_constant): Likewise.
4877         (pp_c_enumeration_constant): Fix loop termination when finding
4878         name of constant.  No longer returns a value.  Call
4879         pp_c_integer_constant.
4880         (c_pretty_printer::constant): Update for changes to
4881         pp_c_enumeration_constant.
4883 2018-10-11  Jakub Jelinek  <jakub@redhat.com>
4885         * c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312
4886         for no_unique_address.
4888 2018-10-09  David Malcolm  <dmalcolm@redhat.com>
4890         * c-common.c (c_option_controlling_cpp_error): Rename to...
4891         (c_option_controlling_cpp_diagnostic): ...this, and convert
4892         "reason" from int to enum.
4893         (c_cpp_error): Rename to...
4894         (c_cpp_diagnostic): ...this, converting level and reason to enums.
4895         * c-common.h (c_cpp_error): Rename to...
4896         (c_cpp_diagnostic): ...this, converting level and reason to enums.
4897         * c-opts.c (c_common_init_options): Update for renaming.
4899 2018-10-08  Richard Sandiford  <richard.sandiford@arm.com>
4901         PR c/87286
4902         * c-common.c (vector_types_compatible_elements_p): Use
4903         INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE.
4905 2018-10-04  Vinay Kumar  <vinay.kumar@blackfigtech.com>
4907         * c-attribs.c (get_priority): Add a warning flag warn_prio_ctor_dtor
4908         to generate constructor destructor priority warning.
4909         * c.opt (-Wprio-ctor-dtor): New option.
4911 2018-10-01  Jason Merrill  <jason@redhat.com>
4913         * c-lex.c (c_common_has_attribute): Add no_unique_address.
4915 2018-10-01  Eric Botcazou  <ebotcazou@adacore.com>
4917         * c-ada-spec.c (get_underlying_decl): Get to the main type variant.
4918         (dump_ada_node): Add const keyword.
4920 2018-09-25  Martin Liska  <mliska@suse.cz>
4922         * c-common.c (c_common_truthvalue_conversion):
4923         Remove Pascal from documentation.
4925 2018-09-21  Eric Botcazou  <ebotcazou@adacore.com>
4927         * c-ada-spec.c: Include diagnostic.h.
4928         (dump_ada_declaration) <RECORD_TYPE>: Issue a warning on packed layout.
4930 2018-09-19  Marek Polacek  <polacek@redhat.com>
4932         * c.opt (Wclass-conversion): New.
4934 2018-09-17  David Malcolm  <dmalcolm@redhat.com>
4936         * c-format.c (range_label_for_format_type_mismatch::get_text):
4937         Update for new param.
4939 2018-09-17  David Malcolm  <dmalcolm@redhat.com>
4941         * c-format.c (format_warning_at_char): Update for introduction of
4942         format_string_diagnostic_t.
4943         (format_type_warning): Likewise.
4945 2018-09-17  Martin Jambor  <mjambor@suse.cz>
4947         PR c/63886
4948         * c.opt (Wabsolute-value): New.
4950 2018-09-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4952         * c-common.c (complete_flexible_array_elts): New helper function.
4953         * c-common.h (complete_flexible_array_elts): Declare.
4955 2018-09-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4957         * c-common.c (braced_list_to_string): Remove eval parameter.
4958         Add some more checks.  Always create zero-terminated STRING_CST.
4959         * c-common.h (braced_list_to_string): Adjust prototype.
4961 2018-08-27  David Malcolm  <dmalcolm@redhat.com>
4963         PR 87091
4964         * c-common.c (c_cpp_error): Update for conversion of show_caret_p
4965         to a tri-state.
4966         (maybe_suggest_missing_token_insertion): Likewise.
4967         (maybe_add_include_fixit): Add param "override_location".  If set,
4968         and source-printing is enabled, then override the rich_location's
4969         primary location with that of the insertion point for the fix-it
4970         hint, marking it with SHOW_LINES_WITHOUT_RANGE.
4971         * c-common.h (extern void maybe_add_include_fixit): Add bool
4972         param.
4973         * c-format.c (selftest::test_type_mismatch_range_labels): Update
4974         for conversion of show_caret_p to a tri-state.
4975         * c-warn.c (warn_for_restrict): Likewise.
4976         * known-headers.cc
4977         (suggest_missing_header::~suggest_missing_header): Update call to
4978         maybe_add_include_fixit to suggest overriding the location, as it
4979         is for a note.
4981 2018-08-27  Martin Liska  <mliska@suse.cz>
4983         * c-common.c (check_function_restrict): Use new function
4984         fndecl_built_in_p and remove check for FUNCTION_DECL if
4985         possible.
4986         (check_builtin_function_arguments): Likewise.
4987         (reject_gcc_builtin): Likewise.
4988         * c-warn.c (sizeof_pointer_memaccess_warning): Likewise.
4990 2018-08-26  Marek Polacek  <polacek@redhat.com>
4992         PR c++/87029, Implement -Wredundant-move.
4993         * c.opt (Wredundant-move): New option.
4995 2018-08-21  Marek Polacek  <polacek@redhat.com>
4997         PR c++/86981, Implement -Wpessimizing-move.
4998         * c.opt (Wpessimizing-move): New option.
5000 2018-08-20  David Malcolm  <dmalcolm@redhat.com>
5002         PR other/84889
5003         * c-attribs.c (common_handle_aligned_attribute): Add
5004         auto_diagnostic_group instance.
5005         * c-indentation.c (warn_for_misleading_indentation): Likewise.
5006         * c-opts.c (c_common_post_options): Likewise.
5007         * c-warn.c (warn_logical_not_parentheses): Likewise.
5008         (warn_duplicated_cond_add_or_warn): Likewise.
5009         (warn_for_multistatement_macros): Likewise.
5011 2018-08-20  Nathan Sidwell  <nathan@acm.org>
5013         * c-ada-spec.c (macro_length, dump_ada_macros): Adjust macro parm
5014         access.
5016 2018-08-17  Nathan Sidwell  <nathan@acm.org>
5018         * c-cppbuiltin.c (struct lazy_hex_fp_value_struct): Remove macro
5019         field.
5020         (laxy_hex_fp_value_count): Make unsigned.
5021         (lazy_hex_fp_value): Provided with macro & lazy number.  Directly
5022         manipulate the macro.
5023         (builtin_defin_with_hex_fp_value): Adjust callback name, use
5024         cpp_define_lazily.
5026 2018-08-17  David Malcolm  <dmalcolm@redhat.com>
5028         * c-format.c (enum format_type): Add gcc_dump_printf_format_type.
5029         (gcc_dump_printf_length_specs): New.
5030         (gcc_dump_printf_flag_pairs): New.
5031         (gcc_dump_printf_flag_specs): New.
5032         (gcc_dump_printf_char_table): New.
5033         (format_types_orig): Add entry for "gcc_dump_printf".
5034         (init_dynamic_diag_info): Set up length_char_specs and
5035         conversion_specs for gcc_dump_printf_format_type.
5036         (handle_format_attribute): Handle gcc_dump_printf_format_type.
5038 2018-08-17  Nathan Sidwell  <nathan@acm.org>
5040         * c-ada-spec.c (macro_length, dump_ada_macros): Constify.
5042         * c-ada-spec.c: Don't #include "cpp-id-data.h"
5043         * c-cppbuiltin.c: Likewise.
5045 2018-08-17  Martin Liska  <mliska@suse.cz>
5047         * c.opt: Remove Warn, Init and Report for options with
5048         Ignore/Deprecated flag. Warning is done automatically for
5049         Deprecated flags.
5051 2018-08-16  David Malcolm  <dmalcolm@redhat.com>
5053         PR c++/70693
5054         * c-common.c (selftest::c_family_tests): Call
5055         selftest::c_indentation_c_tests.
5056         * c-common.h (selftest::c_indentation_c_tests): New decl.
5057         * c-indentation.c: Include "selftest.h".
5058         (next_tab_stop): Add "tab_width" param, rather than accessing
5059         cpp_opts.
5060         (get_visual_column): Likewise.  Clarify comment.  Bulletproof
5061         against reading past the end of the line.
5062         (get_first_nws_vis_column): Add "tab_width" param.
5063         (detect_intervening_unindent): Likewise.
5064         (should_warn_for_misleading_indentation): Read tab width from
5065         cpp_opts and pass around.
5066         (selftest::test_next_tab_stop): New test.
5067         (selftest::assert_get_visual_column_succeeds): New function.
5068         (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro.
5069         (selftest::assert_get_visual_column_fails): New function.
5070         (ASSERT_GET_VISUAL_COLUMN_FAILS): New macro.
5071         (selftest::test_get_visual_column): New test.
5072         (selftest::c_indentation_c_tests): New function.
5074 2018-08-16  Nathan Sidwell  <nathan@acm.org>
5076         * c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p.
5077         (store_ada_macro): Likewise.
5078         * c-ppoutput.c (cb_used_define, dump_macro): Likewise.
5079         * c-spellcheck.cc (should-suggest_as_macro_p): Likewise,
5081 2018-08-15  David Malcolm  <dmalcolm@redhat.com>
5083         * c-format.c: Include "selftest-diagnostic.h" and
5084         "gcc-rich-location.h".
5085         (format_warning_at_char): Pass NULL for new label params of
5086         format_warning_va.
5087         (class indirection_suffix): New class.
5088         (class range_label_for_format_type_mismatch): New class.
5089         (format_type_warning): Move logic for generating "*" suffix to
5090         class indirection_suffix.  Create "fmt_label" and "param_label"
5091         to show their types, and pass them to the
5092         format_warning_at_substring calls.
5093         (selftest::test_type_mismatch_range_labels): New test.
5094         (selftest::c_format_c_tests): Call it.
5096 2018-08-13  Martin Sebor  <msebor@redhat.com>
5098         PR tree-optimization/71625
5099         * c-common.c (braced_list_to_string): New function.
5100         * c-common.h (braced_list_to_string): Declare it.
5102 2018-08-08  Nathan Sidwell  <nathan@acm.org>
5104         * c-common.c (try_to_locate_new_include_inertion_point): Use
5105         linemap_included_from_linemap.
5106         * c-lex.c (fe_file_change): Use linemap_included_from.
5107         * c-ppoutput.c (pp_file_change): Likewise.
5109 2018-08-01  Martin Sebor  <msebor@redhat.com>
5111         PR tree-optimization/86650
5112         * c-format.c (gcc_tdiag_char_table): Update comment for "%G".
5113         (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same.
5114         (init_dynamic_diag_info): Update from "gcall *" to "gimple *".
5115         * c-format.h (T89_G): Update to be "gimple *" rather than
5116         "gcall *".
5117         (local_gcall_ptr_node): Rename...
5118         (local_gimple_ptr_node): ...to this.
5120 2018-07-31  David Malcolm  <dmalcolm@redhat.com>
5122         * c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing
5123         table entries for gcc_diag_char_table, and the 'Z' entry from
5124         gcc_tdiag_char_table, changing the "chain" entry for 'Z' from
5125         &gcc_tdiag_char_table[0] to &gcc_diag_char_table[0].
5126         (gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly
5127         adding missing "Z" for this table.  Remove erroneous "G" and "K"
5128         entries.
5129         (gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE.  Remove "v".
5130         (gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE.
5131         (gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE.  Remove "v".
5133 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
5135         * c-common.c (speculation_safe_resolve_call): New function.
5136         (speculation_safe_resolve_params): New function.
5137         (speculation_safe_resolve_return): New function.
5138         (resolve_overloaded_builtin): Handle __builtin_speculation_safe_value.
5139         * c-cppbuiltin.c (c_cpp_builtins): Add pre-define for
5140         __HAVE_SPECULATION_SAFE_VALUE.
5142 2018-07-20  David Malcolm  <dmalcolm@redhat.com>
5144         * c-common.c (c_cpp_error): Remove redundant "line_table"
5145         parameter from call to rich_location::set_range.
5146         (maybe_suggest_missing_token_insertion): Likewise.
5148 2018-07-20  Martin Sebor  <msebor@redhat.com>
5150         PR middle-end/82063
5151         * c.opt (-Warray-bounds): Remove redundant -Wall.
5153 2018-07-20  Martin Sebor  <msebor@redhat.com>
5155         PR middle-end/82063
5156         * c-common.h (c_common_handle_option): Change function argument
5157         to HOST_WIDE_INT.
5158         * c-opts.c (c_common_init_options): Same.
5159         (c_common_handle_option): Same.  Remove special handling of
5160         OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_.
5161         * c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change
5162         options to take a HOST_WIDE_INT argument and accept a byte-size
5163         suffix.  Initialize.
5164         (-Wvla-larger-than): Same.
5165         (-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New.
5166         (-Wno-vla-larger-than): Same.
5168 2018-07-12  Jakub Jelinek  <jakub@redhat.com>
5170         * c-attribs.c (c_common_attribute_table): Add
5171         "omp declare target implicit" attribute.
5173 2018-07-12  Richard Biener  <rguenther@suse.de>
5175         PR c/86453
5176         * c-attribs.c (handle_packed_attribute): Do not build a variant
5177         type with TYPE_PACKED, instead ignore the attribute if we may
5178         not apply to the original type.
5180 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
5182         PR c++/86443
5183         * c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv
5184         to contain TREE_LIST for both the original class iterator and the
5185         "last" helper var.
5187 2018-07-07  Eric Botcazou  <ebotcazou@adacore.com>
5189         * c-ada-spec.c (to_ada_name): Remove index parameter.
5190         (pp_ada_tree_identifier): Likewise.
5191         (dump_ada_macros): Adjust call to to_ada_name.
5192         (struct overloaded_name_hash): Delete.
5193         (struct overloaded_name_hasher): Likewise.
5194         (overloaded_names): Likewise.
5195         (compute_overloading_index): Likewise.
5196         (dump_ada_decl_name): Do not call compute_overloading_index and
5197         adjust calls to pp_ada_tree_identifier.
5198         (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
5199         (dump_ada_import): Add spc parameter and switch to aspect syntax.
5200         (dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier.
5201         (dump_ada_enum_type): Remove type and display_convention parameters.
5202         Adjust calls to pp_ada_tree_identifier.
5203         (dump_ada_node): Likewise and for dump_ada_structure.
5204         (dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type
5205         and tidy up.
5206         <RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect
5207         syntax.
5208         (print_constructor): Adjust call to pp_ada_tree_identifier.
5209         (print_destructor): Likewise.
5210         (dump_ada_declaration): Switch to aspect syntax.
5211         (dump_ada_structure): Likewise and tidy up.  Replace display_convention
5212         parameter with nested parameter.
5213         (dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005.
5214         (dump_ada_specs): Do not delete overloaded_names table.
5216 2018-07-06  Peter Bergner  <bergner@linux.ibm.com>
5218         PR target/86324
5219         * c-attribs.c (handle_mode_attribute): Call translate_mode_attribute
5220         target hook.
5222 2018-07-05  Nathan Sidwell  <nathan@acm.org>
5224         * c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not
5225         NO_IMPLICIT_EXTERN_C.
5227 2018-06-28  Martin Liska  <mliska@suse.cz>
5229         * cppspec.c: Include opt-suggestions.h.
5231 2018-06-20  Chung-Lin Tang  <cltang@codesourcery.com>
5232             Thomas Schwinge  <thomas@codesourcery.com>
5233             Cesar Philippidis  <cesar@codesourcery.com>
5235         * c-pragma.h (enum pragma_omp_clause): Add
5236         PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove
5237         PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}.
5239 2018-06-20  Jakub Jelinek  <jakub@redhat.com>
5241         PR c++/86210
5242         * c-common.c (check_nonnull_arg): Use fold_for_warn.  Adjust obsolete
5243         comment.
5245 2018-06-18  Martin Sebor  <msebor@redhat.com>
5247         PR middle-end/85602
5248         * c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute
5249         nonstring.
5251 2018-06-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
5253         * c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR.
5255 2018-06-13  Jason Merrill  <jason@redhat.com>
5257         * c-opts.c (c_common_post_options): Warn about useless -Wabi.
5258         (c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version
5259         handling.
5261         PR c++/86094 - wrong code with defaulted move ctor.
5262         * c-opts.c (c_common_post_options): Bump the current ABI version to
5263         13.  Set warn_abi_version and flag_abi_compat_version to the current
5264         version rather than 0.  Fix defaulting flag_abi_compat_version from
5265         warn_abi_version.
5267 2018-06-12  Martin Sebor  <msebor@redhat.com>
5269         PR c/85931
5270         * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when
5271         sizeof source and destination yields the same value.
5273 2018-06-12  Martin Liska  <mliska@suse.cz>
5275         * c.opt: Make MPX-related options as Deprecated.
5277 2018-06-08  David Malcolm  <dmalcolm@redhat.com>
5279         * c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE
5280         rather than 0.
5282 2018-06-08  Martin Liska  <mliska@suse.cz>
5284         * c-attribs.c (handle_bnd_variable_size_attribute): Remove support
5285         for MPX (macros, related functions, fields in cgraph_node, ...).
5286         (handle_bnd_legacy): Likewise.
5287         (handle_bnd_instrument): Likewise.
5288         * c.opt: Likewise.
5290 2018-06-06  Jakub Jelinek  <jakub@redhat.com>
5292         PR c++/86068
5293         * c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set
5294         __cpp_transactional_memory to 201500 instead of 210500.
5296 2018-06-06  Jason Merrill  <jason@redhat.com>
5298         PR c++/85710 - ICE with -Wmemset-elt-size.
5299         * c-warn.c (warn_for_memset): Don't crash on incomplete element type.
5301 2018-06-01  Jason Merrill  <jason@redhat.com>
5303         * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to
5304         201703.
5306 2018-06-01  Eric Botcazou  <ebotcazou@adacore.com>
5308         * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward
5309         declaration for a typedef independently of whether the declaration of
5310         the subtype is generated.
5312 2018-05-31  Martin Sebor  <msebor@redhat.com>
5314         PR c/82063
5315         * c.opt (-Wno-alloc-size-larger-than): New option.
5317 2018-04-22  David Pagan  <dave.pagan@oracle.com>
5319         PR c/55976
5320         * c-opts.c (c_common_post_options): Set default for warn_return_type
5321         for C++/C++ with ObjC extensions only. For C, makes it possible to
5322         differentiate between default (no option), -Wreturn-type, and
5323         -Wno-return-type.
5325 2018-05-29  Jason Merrill  <jason@redhat.com>
5327         * c.opt (Winit-list-lifetime): New flag.
5329 2018-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5331         * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and
5332         splay_tree_delete_pointers.
5334 2018-05-26  Jakub Jelinek  <jakub@redhat.com>
5336         PR bootstrap/85921
5337         * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary
5338         noinline variable to workaround broken kernel headers.
5340 2018-05-18  Jason Merrill  <jason@redhat.com>
5342         * c.opt (Wdeprecated-copy): New flag.
5344 2018-05-17  Martin Liska  <mliska@suse.cz>
5346         * c-warn.c (overflow_warning): Do not use
5347         space in between 'G_' and '('.
5349 2018-05-09  Jason Merrill  <jason@redhat.com>
5351         * c-common.c (valid_array_size_p): Add complain parameter.
5352         * c-common.h: ...which defaults to true.
5354 2018-05-11  Jakub Jelinek  <jakub@redhat.com>
5356         PR c/85696
5357         * c-omp.c (c_omp_predetermined_sharing): Return
5358         OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.
5360 2018-05-11  Martin Liska  <mliska@suse.cz>
5362         PR sanitizer/85556
5363         * c-attribs.c (handle_no_sanitize_attribute): Iterate all
5364         TREE_LIST values.
5366 2018-05-10  Jakub Jelinek  <jakub@redhat.com>
5368         PR c++/85662
5369         * c-common.h (fold_offsetof_1): Removed.
5370         (fold_offsetof): Add TYPE argument defaulted to size_type_node and
5371         CTX argument defaulted to ERROR_MARK.
5372         * c-common.c (fold_offsetof_1): Renamed to ...
5373         (fold_offsetof): ... this.  Remove wrapper function.  Add TYPE
5374         argument, convert the pointer constant to TYPE and use size_binop
5375         with PLUS_EXPR instead of fold_build_pointer_plus if type is not
5376         a pointer type.  Adjust recursive calls.
5378 2018-05-10  Eric Botcazou  <ebotcazou@adacore.com>
5380         PR c++/85400
5381         * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs.
5383 2018-05-07  Nathan Sidwell  <nathan@acm.org>
5385         * c.opt (ffor-scope): Remove functionality, issue warning.
5387 2018-05-03  Nathan Sidwell  <nathan@acm.org>
5389         * c.opt (ffriend-injection): Remove functionality, issue warning.
5391 2018-05-01  David Malcolm  <dmalcolm@redhat.com>
5393         PR c/84258
5394         * c-format.c (struct format_check_results): Add field
5395         "number_non_char".
5396         (check_format_info): Initialize it, and warn if encountered.
5397         (check_format_arg): Distinguish between wide char and
5398         everything else when detecting arrays of non-char.
5400 2018-04-30  David Malcolm  <dmalcolm@redhat.com>
5402         * c-format.c (get_corrected_substring): Update for
5403         location_get_source_line returning a char_span.  Use a char_span
5404         when handling the prefix of the correction.
5405         * c-indentation.c (get_visual_column): Update for
5406         location_get_source_line returning a char_span.
5407         (get_first_nws_vis_column): Likewise.
5409 2018-03-29  David Malcolm  <dmalcolm@redhat.com>
5411         PR c++/84269
5412         * known-headers.cc (get_stdlib_header_for_name): Add various names
5413         from <assert.h>, <string.h>, and <memory.h>; add more names from
5414         <stdio.h>.
5416 2018-03-27  Jakub Jelinek  <jakub@redhat.com>
5418         PR c++/85061
5419         * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that
5420         get_base_address of the second operand is a VAR_P, rather than the
5421         operand itself, and use gcc_checking_assert instead of gcc_assert.
5423 2018-03-23  Marek Polacek  <polacek@redhat.com>
5425         PR c++/85045
5426         * c-pretty-print.c (c_pretty_printer::multiplicative_expression)
5427         <case RDIV_EXPR>: Tweak condition.
5429 2018-03-20  Eric Botcazou  <ebotcazou@adacore.com>
5431         * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool.
5433 2018-03-16  Jakub Jelinek  <jakub@redhat.com>
5435         PR c/84909
5436         * c-warn.c (conversion_warning): Replace "to to" with "to" in
5437         diagnostics.
5439         PR c/84910
5440         * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
5441         diagnostics.
5443 2018-03-16  Richard Biener  <rguenther@suse.de>
5445         PR c/84873
5446         * c-gimplify.c (c_gimplify_expr): Revert previous change.  Instead
5447         unshare the possibly folded expression.
5449 2018-03-15  Richard Biener  <rguenther@suse.de>
5451         PR c/84873
5452         * c-gimplify.c (c_gimplify_expr): Do not fold expressions.
5454 2018-03-13  Martin Sebor  <msebor@redhat.com>
5456         PR tree-optimization/84725
5457         * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring
5458         with all three narrow character types, including their qualified forms.
5460 2018-03-12  Martin Sebor  <msebor@redhat.com>
5462         PR tree-optimization/83456
5463         * c-common.c (check_function_restrict): Return bool.
5464         Restore checking of bounded built-in functions.
5465         (check_function_arguments): Also return the result
5466         of warn_for_restrict.
5467         * c-common.c (check_function_restrict): Return bool.
5468         * c-warn.c (warn_for_restrict): Return bool.
5470 2018-03-02  Marek Polacek  <polacek@redhat.com>
5472         PR c++/84171
5473         * c-warn.c (warn_for_sign_compare): Bail out if any of the operands
5474         is erroneous.
5476 2018-03-02  Thomas Schwinge  <thomas@codesourcery.com>
5478         * c-attribs.c (c_common_attribute_table): Remove "cilk simd
5479         function".
5481 2018-03-01  Marek Polacek  <polacek@redhat.com>
5483         PR c++/84639
5484         * c-attribs.c (common_handle_aligned_attribute): Don't use invalid
5485         alignment in computation.
5487 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
5489         * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case.
5490         <REAL_TYPE>: Deal specifically with _Float128/__float128.
5492 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
5494         * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case.
5495         (is_char_array): Take a type instead of a declaration.
5496         (dump_ada_array_type): Likewise.
5497         (is_simple_enum): Minor tweak.
5498         (dump_ada_enum_type): New function extracted from...
5499         (dump_ada_node) <ENUMERAL_TYPE>: ...here.  Invoke it.
5500         <INTEGER_TYPE>: Remove unreachable code.
5501         <RECORD_TYPE>: Likewise.  Minor tweaks.
5502         (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes.
5503         <ENUMERAL_TYPE>: New case.
5504         <RECORD_TYPE>: Factor out common code.
5505         (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes.
5506         Minor tweaks.  Deal with enumeral types.
5507         (dump_ada_structure): Minor tweaks.
5509 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
5511         * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic
5512         address for incomplete structures.
5513         (dump_forward_type): Do not bail out for incomplete structures.
5514         (dump_ada_declaration): Do not special-case incomplete structures
5515         for subtypes.  Dump them as null records for types.
5517 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
5519         * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
5520         (is_char_array): Fix formatting.
5521         (dump_template_types): Likewise.
5522         (dump_generic_ada_node): Rename into...
5523         (dump_ada_node): ...this.
5524         <POINTER_TYPE>: Remove superfluous space.  Use generic address for
5525         incomplete structures and not for empty structures.  Do not use it
5526         when forward declarations are needed.
5527         (dump_forward_type): New function.
5528         (dump_nested_types): Remove FORWARD parameter.  Do not consider
5529         TREE_VISITED and do not generate a forward declaration.  Only dump
5530         original nested types for nested declaration.
5531         (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
5532         <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
5533         <RECORD_TYPE>: Do not consider TREE_VISITED.
5534         (dump_ada_declaration): Use booleans and fix formatting throughout.
5535         <TYPE_DECL>: Skip incomplete structures and not empty structures.
5536         Call dump_forward_type instead of dump_nested_types for a typedef.
5537         Remove superfluous check and adjust call to dump_nested_types.
5538         <POINTER_TYPE>: Call dump_forward_type and fall through.
5539         (dump_ada_struct_decl): Rename into...
5540         (dump_ada_structure): ...this.  Do not special-case empty structures.
5542 2018-02-27  Martin Sebor  <msebor@redhat.com>
5544         PR c++/83871
5545         * c.opt (-Wmissing-attributes): New option.
5547 2018-02-21  Martin Liska  <mliska@suse.cz>
5549         * c.opt (Wcatch-value=): Add IntegerRange.
5551 2018-02-15  Jason Merrill  <jason@redhat.com>
5553         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
5555 2018-02-09  Nathan Sidwell  <nathan@acm.org>
5557         PR c/84293
5558         * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
5559         arg.
5560         * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
5561         arg.  Adjust.
5563 2018-02-09  Martin Sebor  <msebor@redhat.com>
5565         PR lto/84212
5566         * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
5567         (-Walloc-size-larger-than, -Wformat-truncation=): Same.
5568         (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
5569         (-Wstrict-overflow, -Wsuggest-attribute): Same.
5570         (-Wuninitialized): Same.
5572 2018-02-09  Eric Botcazou  <ebotcazou@adacore.com>
5574         * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
5575         keyword for components.
5577 2018-02-02  Paolo Carlini  <paolo.carlini@oracle.com>
5579         * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
5581 2018-02-02  Julia Koval  <julia.koval@intel.com>
5583         * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
5585 2018-01-29  Marek Polacek  <polacek@redhat.com>
5587         PR c/83966
5588         * c-format.c (check_function_format): Check current_function_decl.
5590 2018-01-27  Jakub Jelinek  <jakub@redhat.com>
5592         * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
5593         argument.
5594         (LAZY_HEX_FP_VALUES_CNT): Define.
5595         (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
5596         values rather than just 12.
5597         (builtin_define_with_hex_fp_value): Likewise.
5599 2018-01-18  Boris Kolpackov  <boris@codesynthesis.com>
5601         PR other/70268
5602         * c.opt (-fmacro-prefix-map): New option.
5603         * c-opts.c (c_common_handle_option): Handle it.
5604         * c-lex.c (init_c_lex): Set remap_filename cpp callback.
5605         * c-ppoutput.c (init_pp_output): Likewise.
5607 2018-01-17  David Malcolm  <dmalcolm@redhat.com>
5609         PR c++/83814
5610         * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
5612 2018-01-10  Eric Botcazou  <ebotcazou@adacore.com>
5614         * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
5615         Skip 'f' and 'F' characters if it is true.
5616         (store_ada_macro): Minor tweak.
5617         (dump_ada_macros) <CPP_COMMENT>: Likewise.
5618         <CPP_WSTRING>: Likewise.
5619         <CPP_STRING>: Output '&' in the buffer if not the first string.
5620         <CPP_NUMBER>: Adjust calls to dump_number.
5622 2018-01-10  David Malcolm  <dmalcolm@redhat.com>
5624         PR c++/43486
5625         * c-common.c: Include "selftest.h".
5626         (get_atomic_generic_size): Perform the test for integral type
5627         before the range test for any integer constant, fixing indentation
5628         of braces.  Call fold_for_warn before testing for an INTEGER_CST.
5629         (reject_gcc_builtin): Strip any location wrapper from EXPR.
5630         (selftest::test_fold_for_warn): New function.
5631         (selftest::c_common_c_tests): New function.
5632         (selftest::c_family_tests): Call it, and
5633         selftest::c_pretty_print_c_tests.
5634         * c-common.h (selftest::c_pretty_print_c_tests): New decl.
5635         * c-format.c (check_format_arg): Convert VAR_P check to a
5636         fold_for_warn.
5637         * c-pretty-print.c: Include "selftest.h".
5638         (pp_c_cast_expression): Don't print casts for location wrappers.
5639         (selftest::assert_c_pretty_printer_output): New function.
5640         (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
5641         (selftest::test_location_wrappers): New function.
5642         (selftest::c_pretty_print_c_tests): New function.
5643         * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
5645 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
5646             Alan Hayward  <alan.hayward@arm.com>
5647             David Sherwood  <david.sherwood@arm.com>
5649         * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
5651 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
5652             Alan Hayward  <alan.hayward@arm.com>
5653             David Sherwood  <david.sherwood@arm.com>
5655         * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
5656         as polynomial.
5658 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
5659             Alan Hayward  <alan.hayward@arm.com>
5660             David Sherwood  <david.sherwood@arm.com>
5662         * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
5663         (convert_vector_to_array_for_subscript): Handle polynomial
5664         TYPE_VECTOR_SUBPARTS.
5665         (c_common_type_for_mode): Check valid_vector_subparts_p.
5666         * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
5667         VECTOR_CST_NELTS.
5669 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
5671         Update copyright years.
5673 2017-12-22  Mike Stump  <mikestump@comcast.net>
5674             Eric Botcazou  <ebotcazou@adacore.com>
5676         * c-pragma.c (init_pragma): Register pragma GCC unroll.
5677         * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
5679 2017-12-22  Alexandre Oliva  <aoliva@redhat.com>
5681         PR debug/83527
5682         PR debug/83419
5683         * c-semantics.c (only_debug_stmts_after_p): New.
5684         (pop_stmt_list): Clear side effects in debug-only stmt list.
5685         Check for single nondebug stmt followed by debug stmts only.
5687 2017-12-21  Alexandre Oliva  <aoliva@redhat.com>
5689         PR debug/83419
5690         * c-semantics.c (pop_stmt_list): Propagate side effects from
5691         single nondebug stmt to container list.
5693 2017-12-19  Jakub Jelinek  <jakub@redhat.com>
5695         * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
5696         conditions with typical order conditions.
5698 2017-12-18  Marek Polacek  <polacek@redhat.com>
5700         * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
5701         not in effect.
5703 2017-12-17  Martin Sebor  <msebor@redhat.com>
5705         * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
5706         an error for attribute warn_if_not_aligned.
5708 2017-12-16  Martin Sebor  <msebor@redhat.com>
5710         PR tree-optimization/78918
5711         * c-common.c (check_function_restrict): Avoid checking built-ins.
5712         * c.opt (-Wrestrict): Include in -Wall.
5714 2017-12-15  Jakub Jelinek  <jakub@redhat.com>
5716         * c-attribs.c (c_common_attribute_table,
5717         c_common_format_attribute_table): Swap affects_type_identity
5718         and handler fields, adjust comments.
5720 2017-12-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5722         * c.opt (Wcast-function-type): New warning option.
5723         * c-lex.c (get_fileinfo): Avoid warning.
5724         * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
5726 2017-12-14  Qing Zhao  <qing.zhao@oracle.com>
5728         PR middle_end/79538
5729         * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
5730         Adjust the size of buf1 and buf2, add a new buf to avoid
5731         format-overflow warning.
5733 2017-12-12  Alexandre Oliva  <aoliva@redhat.com>
5735         * c-semantics.c (pop_stmt_list): Move begin stmt marker into
5736         subsequent statement list.
5738 2017-12-07  Martin Sebor  <msebor@redhat.com>
5740         PR c/81544
5741         PR c/81566
5742         * c-attribs.c (attr_aligned_exclusions): New array.
5743         (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
5744         (attr_common_exclusions, attr_const_pure_exclusions): Same.
5745         (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
5746         (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
5747         (attr_warn_unused_result_exclusions): Same.
5748         (handle_hot_attribute, handle_cold_attribute): Simplify.
5749         (handle_const_attribute): Warn on function returning void.
5750         (handle_pure_attribute): Same.
5751         (handle_aligned_attribute): Diagnose conflicting attribute
5752         specifications.
5753         * c-warn.c (diagnose_mismatched_attributes): Simplify.
5755 2017-12-06  David Malcolm  <dmalcolm@redhat.com>
5757         PR c/83236
5758         * c-common.c (selftest::c_family_tests): Call
5759         selftest::c_spellcheck_cc_tests.
5760         * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
5761         * c-spellcheck.cc: Include "selftest.h".
5762         (name_reserved_for_implementation_p): New function.
5763         (should_suggest_as_macro_p): New function.
5764         (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
5765         should_suggest_as_macro_p and call it.
5766         (selftest::test_name_reserved_for_implementation_p): New function.
5767         (selftest::c_spellcheck_cc_tests): New function.
5768         * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
5770 2017-12-06  David Malcolm  <dmalcolm@redhat.com>
5772         * c-spellcheck.cc: New file, taken from macro-handling code in
5773         spellcheck-tree.c.
5774         * c-spellcheck.h: New file, taken from macro-handling code in
5775         spellcheck-tree.h.
5777 2017-12-01  Jakub Jelinek  <jakub@redhat.com>
5779         * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
5780         attribute.
5781         (handle_simd_attribute): Don't check for "cilk simd function"
5782         attribute.  Reindent, formatting changes.
5784 2017-11-30  Julia Koval  <julia.koval@intel.com>
5786         * c-common.h (inv_list): Remove.
5788 2017-11-28  Jakub Jelinek  <jakub@redhat.com>
5790         PR sanitizer/81275
5791         * c-common.c (c_switch_covers_all_cases_p_1,
5792         c_switch_covers_all_cases_p): New functions.
5793         * c-common.h (c_switch_covers_all_cases_p): Declare.
5795 2017-11-28  Julia Koval  <julia.koval@intel.com>
5796             Sebastian Peryt  <sebastian.peryt@intel.com>
5798         * array-notation-common.c: Delete.
5799         * c-cilkplus.c: Ditto.
5800         * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
5801         * c-common.def (ARRAY_NOTATION_REF): Remove.
5802         * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
5803         build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
5804         c_validate_cilk_plus_loop, cilkplus_an_parts,
5805         cilk_ignorable_spawn_rhs_op,
5806         cilk_recognize_spawn): Remove.
5807         * c-gimplify.c (CILK_SPAWN_STMT): Remove.
5808         * c-omp.c: Remove CILK_SIMD check.
5809         * c-pragma.c: Ditto.
5810         * c-pragma.h: Remove CILK related pragmas.
5811         * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
5812         ARRAY_NOTATION_REF condition.
5813         (c_pretty_printer::expression): Ditto.
5814         * c.opt (fcilkplus): Remove.
5815         * cilk.c: Delete.
5817 2017-11-21  Marc Glisse  <marc.glisse@inria.fr>
5819         * c-pretty-print.c (pp_c_additive_expression,
5820         c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
5822 2017-11-21  Jakub Jelinek  <jakub@redhat.com>
5824         * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
5826         PR c++/83059
5827         * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
5828         instead of tree_to_uhwi, formatting fix.
5830 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
5832         PR c/81404
5833         * known-headers.cc: New file, based on material from c/c-decl.c.
5834         (suggest_missing_header): Copied as-is.
5835         (get_stdlib_header_for_name): New, based on get_c_name_hint but
5836         heavily edited to add C++ support.  Add some knowledge about
5837         <limits.h>, <stdint.h>, and <wchar.h>.
5838         * known-headers.h: Likewise.
5840 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
5842         * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
5843         (lookup_name_fuzzy): Likewise.  Convert return type from
5844         const char * to name_hint.  Add location_t param.
5845         * name-hint.h: New header.
5847 2017-11-19  Jakub Jelinek  <jakub@redhat.com>
5849         PR c/66618
5850         PR c/69960
5851         * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
5853 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
5855         * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
5856         expected publication date of C17.
5857         (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
5859 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
5861         PR c/81156
5862         * c-common.c (c_common_reswords): Add __builtin_tgmath.
5863         * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
5865 2017-11-10  Martin Sebor  <msebor@redhat.com>
5867         PR c/81117
5868         * c-common.c (catenate_strings): Use memcpy instead of strncpy.
5869         * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
5870         * c.opt (-Wstringop-truncation): New option.
5872 2017-11-06  Martin Liska  <mliska@suse.cz>
5874         PR middle-end/82404
5875         * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
5876         FE.
5877         * c.opt: Set default value of warn_return_type.
5879 2017-10-31  David Malcolm  <dmalcolm@redhat.com>
5881         * c-common.c (binary_op_error): Update for renaming of
5882         error_at_rich_loc.
5883         (c_parse_error): Likewise.
5884         * c-warn.c (warn_logical_not_parentheses): Likewise for
5885         renaming of inform_at_rich_loc.
5886         (warn_for_restrict): Likewise for renaming of
5887         warning_at_rich_loc_n.
5889 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
5891         * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
5892         * c-opts.c (set_std_c17): New function.
5893         (c_common_init_options): Use gnu17 as default C version.
5894         (c_common_handle_option): Handle -std=c17 and -std=gnu17.
5896 2017-10-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
5898         * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
5899         (c_cpp_builtins): If a machine has a fast fma _Float<N> and
5900         _Float<N>X variant, define __FP_FAST_FMA<N> and/or
5901         __FP_FAST_FMA<N>X.
5903 2017-10-23  Marek Polacek  <polacek@redhat.com>
5905         PR c/82681
5906         * c-warn.c (warnings_for_convert_and_check): Fix typos.
5908 2017-10-19  Eric Botcazou  <ebotcazou@adacore.com>
5910         * c-common.c (check_builtin_function_arguments): Also check arguments
5911         of __builtin_alloca_with_align_and_max.
5913 2017-10-17  David Malcolm  <dmalcolm@redhat.com>
5915         * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
5916         rather than NULL to format_warning_va.
5917         (check_format_types): Likewise when calling format_type_warning.
5918         Remove code to extract source_ranges and source_range * in favor
5919         of just a location_t.
5920         (format_type_warning): Convert source_range * param to a
5921         location_t.
5923 2017-10-13  Jakub Jelinek  <jakub@redhat.com>
5925         * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
5926         [LR]SHIFT_EXPR.
5928 2017-10-12  David Malcolm  <dmalcolm@redhat.com>
5930         * c-common.c (enum missing_token_insertion_kind): New enum.
5931         (get_missing_token_insertion_kind): New function.
5932         (maybe_suggest_missing_token_insertion): New function.
5933         * c-common.h (maybe_suggest_missing_token_insertion): New decl.
5935 2017-10-11  Nathan Sidwell  <nathan@acm.org>
5937         * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
5938         (c_common_handle_option): Update incpath_kind names.
5940 2017-10-11  Martin Liska  <mliska@suse.cz>
5942         PR sanitizer/82490
5943         * c-attribs.c (handle_no_sanitize_attribute): Report directly
5944         Wattributes warning.
5946 2017-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
5948         * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
5949         operating on trees as wide_ints.
5950         * c-common.c (pointer_int_sum): Likewise.
5951         * c-pretty-print.c (pp_c_integer_constant): Likewise.
5952         * c-warn.c (match_case_to_enum_1): Likewise.
5953         (c_do_switch_warnings): Likewise.
5954         (maybe_warn_shift_overflow): Likewise.
5956 2017-10-10  Jakub Jelinek  <jakub@redhat.com>
5958         PR c/82437
5959         * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
5960         instead of wide_int::from.
5962 2017-10-06  Jakub Jelinek  <jakub@redhat.com>
5964         PR c/82437
5965         * c-warn.c (warn_tautological_bitwise_comparison): Instead of
5966         using to_widest use wide_int with the larger of the two precisions.
5968 2017-10-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5970         * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
5971         functions.
5973 2017-10-02  Richard Sandiford  <richard.sandiford@linaro.org>
5975         * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
5976         when combining the original unconverted comparison operands.
5978 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
5980         * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
5981         attribute.
5983 2017-09-29  Eric Botcazou  <ebotcazou@adacore.com>
5985         * c-ada-spec.c (to_ada_name): Add index parameter.
5986         (pp_ada_tree_identifier): Likewise.
5987         (dump_ada_macros): Adjust call to to_ada_name.
5988         (struct overloaded_name_hash): New type.
5989         (struct overloaded_name_hasher): Likewise.
5990         (overloaded_names): New hash table.
5991         (compute_overloading_index): New function.
5992         (dump_ada_decl_name): Call it and pass the result to
5993         pp_ada_tree_identifier.
5994         (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
5995         (dump_ada_function_declaration): Likewise.
5996         (dump_generic_ada_node): Likewise.
5997         (print_constructor): Likewise.
5998         (print_destructor): Likewise.
5999         (dump_ada_specs): Delete overloaded_names table.
6001 2017-09-29  Eric Botcazou  <ebotcazou@adacore.com>
6003         * c-ada-spec.c (max_ada_macros): Move around.
6004         (store_ada_macro_index): Likewise.
6005         (source_file): Rename into...
6006         (macro_source_file): ...this.
6007         (count_ada_macro): Move around.
6008         (store_ada_macro): Likewise.
6009         (compare_macro): Likewise.
6010         (print_ada_macros): Merge in...
6011         (dump_ada_macros): ...this.
6012         (source_file_base): Rename into...
6013         (current_source_file): ...this.
6014         (print_comment): Move around.
6015         (dump_ada_nodes): Call dump_ada_declaration directly.
6016         (struct with): Change type of limited field to bool.
6017         (append_withs): Change type of limited_access parameter to bool.
6018         (pp_ada_tree_identifie): Likewise.
6019         (dump_ada_decl_nam): Likewise.
6020         (dump_generic_ada_node): Likewise.  Do not print the return type.
6021         (to_ada_name): Change type of space_found parameter to bool.
6022         (dump_ada_function_declaration): Return void and change type of
6023         parameters to bool.  Also print the return type for a function.
6024         (print_ada_methods): Rename into...
6025         (dump_ada_methods): ...this.
6026         (print_ada_declaration): Rename into ...
6027         (dump_ada_declaration): ...this.  Do not print the return type.
6028         (print_ada_struct_decl): Rename into...
6029         (dump_ada_struct_decl): ...this.
6031 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
6033         * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
6034         rather than DECL_INITIAL.
6035         (common_handle_aligned_attribute): Likewise.
6037 2017-09-20  Alexandre Oliva  <aoliva@redhat.com>
6039         * c.opt (gen-decls): Add RejectNegative.
6041 2017-09-15  Andrew Sutton  <andrew.n.sutton@gmail.com>
6042             Jakub Jelinek  <jakub@redhat.com>
6044         Add support for -std=c++2a.
6045         * c-common.h (cxx_dialect): Add cxx2a as a dialect.
6046         * opt.c: Add options for -std=c++2a and -std=gnu++2a.
6047         * c-opts.c (set_std_cxx2a): New.
6048         (c_common_handle_option): Set options when -std=c++2a is enabled.
6049         (c_common_post_options): Adjust comments.
6050         (set_std_cxx14, set_std_cxx17): Likewise.
6052 2017-09-15  Eric Botcazou  <ebotcazou@adacore.com>
6054         * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
6055         message for non-uniform endianness and issue a warning in C++.
6057 2017-09-15  Jakub Jelinek  <jakub@redhat.com>
6059         * c.opt (Wc++1z-compat): Change from option to undocumented alias.
6060         (Wc++17-compat): Change from undocumented alias to option.
6061         (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
6062         change C++1z to C++17 in description.
6063         (std=c++1z, std=gnu++1z): Change from option to undocumented
6064         deprecated alias.
6065         (std=c++17, std=gnu++17): Change from undocumented alias to option.
6066         Adjust description.
6067         * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
6068         * c-opts.c (set_std_cxx1z): Rename to ...
6069         (set_std_cxx17): ... this.
6070         (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
6071         and OPT_std_gnu__1z to OPT_std_gnu__17.  Adjust set_std_cxx1z
6072         caller.
6073         (c_common_post_options): Use cxx17 instead of cxx1z.  Adjust
6074         comments.
6076 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
6078         * c-attribs.c (common_handle_aligned_attribute): Don't warn
6079         function alignment if warn_if_not_aligned_p is true.
6081 2017-09-12  Nathan Sidwell  <nathan@acm.org>
6083         * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
6084         resort_sorted_fields): Move to c/c-decl.c.
6085         * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
6086         (struct sorted_fields_type): Move to c/c-lang.h.
6088 2017-09-09  Jonathan Wakely  <jwakely@redhat.com>
6090         PR c++/81852
6091         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
6093 2017-09-04  Marek Polacek  <polacek@redhat.com>
6095         PR c/81783
6096         * c-warn.c (warn_tautological_bitwise_comparison): New function.
6097         (warn_tautological_cmp): Call it.
6099 2017-09-01  Boris Kolpackov  <boris@codesynthesis.com>
6101         * c-opts.c (c_common_finish): Write dependency information even if
6102         there are errors.
6104 2017-09-01  Jakub Jelinek  <jakub@redhat.com>
6106         PR c/81887
6107         * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
6108         (omp_pragmas_simd): ... here.
6109         * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
6110         create new clauses list containing just simd clause.
6112 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
6113             Alan Hayward  <alan.hayward@arm.com>
6114             David Sherwood  <david.sherwood@arm.com>
6116         * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
6117         into scalar_mode_supported_p call.
6118         (handle_mode_attribute): Update call to scalar_mode_supported_p.
6120 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
6121             Alan Hayward  <alan.hayward@arm.com>
6122             David Sherwood  <david.sherwood@arm.com>
6124         * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
6125         for the mode iterator.
6127 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
6128             Alan Hayward  <alan.hayward@arm.com>
6129             David Sherwood  <david.sherwood@arm.com>
6131         * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
6132         * c-common.c (c_build_vec_perm_expr): Likewise.
6134 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
6135             Alan Hayward  <alan.hayward@arm.com>
6136             David Sherwood  <david.sherwood@arm.com>
6138         * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
6140 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
6141             Alan Hayward  <alan.hayward@arm.com>
6142             David Sherwood  <david.sherwood@arm.com>
6144         * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
6145         before calling targetm.addr_space.valid_pointer_mode.
6147 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
6148             Alan Hayward  <alan.hayward@arm.com>
6149             David Sherwood  <david.sherwood@arm.com>
6151         * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
6153 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
6154             Alan Hayward  <alan.hayward@arm.com>
6155             David Sherwood  <david.sherwood@arm.com>
6157         * c-common.c (c_common_fixed_point_type_for_size): Use new mode
6158         iterators.
6159         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
6161 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
6162             Alan Hayward  <alan.hayward@arm.com>
6163             David Sherwood  <david.sherwood@arm.com>
6165         * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
6166         case statements.
6168 2017-08-29  Martin Liska  <mliska@suse.cz>
6170         PR other/39851
6171         * c-common.c (parse_optimize_options): Add argument to function
6172         call.
6173         * c-pragma.c (handle_pragma_diagnostic): Likewise.
6175 2017-08-24  David Malcolm  <dmalcolm@redhat.com>
6177         * c-lex.c (interpret_float): Use token location
6178         when building an EXCESS_PRECISION_EXPR.
6180 2017-08-21  David Malcolm  <dmalcolm@redhat.com>
6182         * c-common.c (check_function_arguments): Add "arglogs" param; pass
6183         it to check_function_format.
6184         * c-common.h (check_function_arguments): Add vec<location_t> *
6185         param.
6186         (check_function_format): Likewise.
6187         * c-format.c (struct format_check_context): Add field "arglocs".
6188         (check_function_format): Add param "arglocs"; pass it to
6189         check_format_info.
6190         (check_format_info): Add param "arglocs"; use it to initialize
6191         new field of format_ctx.
6192         (check_format_arg): Pass format_ctx->arglocs to new param of
6193         check_format_info_main.
6194         (class argument_parser): New field "arglocs".
6195         (argument_parser::argument_parser): Add "arglocs_" param and use
6196         it to initialize new field.
6197         (argument_parser::check_argument_type): Pass new arglocs field to
6198         check_format_types.
6199         (check_format_info_main): Add param "arglocs", and use it when
6200         constructing arg_parser.
6201         (check_format_types): Add param "arglocs"; use it if non-NULL when
6202         !EXPR_HAS_LOCATION (cur_param) to get at location information.
6204 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
6206         PR c/53037
6207         * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
6208         (c_common_attribute_table): Add warn_if_not_aligned.
6209         (handle_aligned_attribute): Renamed to ...
6210         (common_handle_aligned_attribute): Remove argument, name, and add
6211         argument, warn_if_not_aligned.  Handle warn_if_not_aligned.
6212         (handle_aligned_attribute): New.
6213         * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
6215 2017-08-14  Martin Sebor  <msebor@redhat.com>
6217         PR c/81117
6218         * c-attribs.c (c_common_attribute_table): Add nonstring entry.
6219         (handle_nonstring_attribute): New function.
6221 2017-08-14  Martin Sebor  <msebor@redhat.com>
6223         PR c/81117
6224         * c-format.h (T89_G): New macro.
6225         * c-format.c (local_gcall_ptr_node): New variable.
6226         (init_dynamic_diag_info): Initialize it.
6228 2017-08-11  Martin Liska  <mliska@suse.cz>
6230         * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
6231         TARGET_SUPPORTS_ALIASES.
6233 2017-08-10  David Malcolm  <dmalcolm@redhat.com>
6235         * c-common.c (c_parse_error): Add rich_location * param, using it
6236         rather implicitly using input_location.
6237         * c-common.h (c_parse_error): Add rich_location * param.
6239 2017-08-09  Marek Polacek  <polacek@redhat.com>
6241         * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
6242         (c_common_truthvalue_conversion): Likewise.
6243         * c-omp.c (c_finish_omp_atomic): Likewise.
6244         * c-common.h (build_binary_op): Update declaration.
6246 2017-08-08  Martin Liska  <mliska@suse.cz>
6248         * c-ada-spec.c: Include header files.
6249         * c-ubsan.c: Likewise.
6250         * c-warn.c: Likewise.
6252 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
6254         PR c/69389
6255         * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
6257 2017-08-07  Eric Botcazou  <ebotcazou@adacore.com>
6259         * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
6260         (print_ada_methods): Likewise.
6261         (print_ada_declaration): Likewise.
6263 2017-08-07  Martin Liska  <mliska@suse.cz>
6265         * array-notation-common.c: Add new includes.
6266         * c-format.c( handle_format_attribute): Canonicalize a format
6267         function name.
6268         * c-lex.c (c_common_has_attribute): Canonicalize name of an
6269         attribute.
6270         * c-pretty-print.c: Add new include.
6272 2017-08-05  Eric Botcazou  <ebotcazou@adacore.com>
6274         * c-ada-spec.c (has_static_fields): Look only into variables.
6275         (print_constructor): Add TYPE parameter and use it for the name.
6276         (print_destructor): Likewise.
6277         (print_ada_declaration): Adjust to new constructor/destructor names.
6278         Adjust calls to print_constructor and print_destructor.
6279         (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
6280         Look only into variables in the final loop.
6282 2017-08-01  Eric Botcazou  <ebotcazou@adacore.com>
6284         * c-ada-spec.c (has_static_fields): Look only into fields.
6285         (dump_generic_ada_node): Small tweak.
6286         (dump_nested_types): Look only into fields.
6287         (print_ada_declaration): Look only into methods.  Small tweak.
6288         (print_ada_struct_decl): Look only into fields.  Use DECL_VIRTUAL_P.
6290 2017-08-01  Eric Botcazou  <ebotcazou@adacore.com>
6292         * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
6293         (dump_ada_function_declaration): Likewise.
6294         (dump_generic_ada_node): Likewise.
6295         (print_ada_declaration): Add support for const-qualified variables.
6297 2017-07-31  Martin Liska  <mliska@suse.cz>
6299         PR sanitize/81530
6300         * c-ubsan.c (ubsan_maybe_instrument_array_ref):
6301         Guard condition with flag_sanitize_p also with current_function_decl
6302         non-null equality.
6303         (ubsan_maybe_instrument_reference_or_call): Likewise.
6305 2017-07-30  Uros Bizjak  <ubizjak@gmail.com>
6307         * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
6309 2017-07-29  Eric Botcazou  <ebotcazou@adacore.com>
6311         * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
6312         for enumeral types.
6313         (print_ada_declaration): Add missing guard for record types.
6315 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
6317         PR c/45784
6318         * c-omp.c (c_finish_omp_for): If the condition is wrapped in
6319         rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
6320         new COMPOUND_EXPRs around the rhs of the comparison.
6322 2017-07-27  Marek Polacek  <polacek@redhat.com>
6324         PR c/81417
6325         * c-warn.c (warn_for_sign_compare): Tweak the warning message.  Print
6326         the types.
6328 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
6330         * c-attribs.c (c_common_attribute_table): Add noipa attribute.
6331         (handle_noipa_attribute): New function.
6333 2017-07-07  Torsten Duwe  <duwe@suse.de>
6335         * c-attribs.c (c_common_attribute_table): Add entry for
6336         "patchable_function_entry".
6338 2017-07-20  Nathan Sidwell  <nathan@acm.org>
6340         Remove TYPE_METHODS.
6341         * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
6342         dump_ada_template, print_ada_methods,
6343         print_ada_declaration): Member fns are on TYPE_FIELDS.
6345 2017-07-18  Nathan Sidwell  <nathan@acm.org>
6347         * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
6349 2017-07-14  David Malcolm  <dmalcolm@redhat.com>
6351         * c-common.c (try_to_locate_new_include_insertion_point): New
6352         function.
6353         (per_file_includes_t): New typedef.
6354         (added_includes_t): New typedef.
6355         (added_includes): New variable.
6356         (maybe_add_include_fixit): New function.
6357         * c-common.h (maybe_add_include_fixit): New decl.
6359 2017-07-10  Martin Sebor  <msebor@redhat.com>
6361         PR other/81345
6362         * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
6364 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
6366         * c-common.c (selftest::c_family_tests): New.
6367         * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
6368         (selftest::c_family_tests): New decl.
6370 2017-07-04  Marek Polacek  <polacek@redhat.com>
6372         PR c/81231
6373         * c-common.c (sync_resolve_size): Give error for pointers to incomplete
6374         types.
6376 2017-07-04  Marek Polacek  <polacek@redhat.com>
6378         * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
6380 2017-06-28  Martin Liska  <mliska@suse.cz>
6382         PR ipa/81128
6383         * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
6384         to a function declaration.
6386 2017-06-28  Martin Liska  <mliska@suse.cz>
6388         PR driver/79659
6389         * c.opt: Add IntegerRange to various options.
6391 2017-06-26  Marek Polacek  <polacek@redhat.com>
6393         PR c/80116
6394         * c-common.h (warn_for_multistatement_macros): Declare.
6395         * c-warn.c: Include "c-family/c-indentation.h".
6396         (warn_for_multistatement_macros): New function.
6397         * c.opt (Wmultistatement-macros): New option.
6398         * c-indentation.c (guard_tinfo_to_string): No longer static.
6399         Change the parameter type to "enum rid".  Handle RID_SWITCH.
6400         * c-indentation.h (guard_tinfo_to_string): Declare.
6402 2017-06-23  Marc Glisse  <marc.glisse@inria.fr>
6404         * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
6406 2017-06-15  Martin Sebor  <msebor@redhat.com>
6408         PR c++/80560
6409         * c.opt (-Wclass-memaccess): New option.
6411 2017-06-14  Boris Kolpackov  <boris@codesynthesis.com>
6413         * c-opts.c (c_common_finish): Handle '-' special value to -MF.
6415 2017-06-13  Marek Polacek  <polacek@redhat.com>
6417         PR objc/80949
6418         * c-warn.c (do_warn_duplicated_branches): Return if any of the
6419         branches is null.
6421 2017-06-13  Martin Liska  <mliska@suse.cz>
6423         PR sanitize/78204
6424         * c-attribs.c (add_no_sanitize_value): New function.
6425         (handle_no_sanitize_attribute): Likewise.
6426         (handle_no_sanitize_address_attribute): Use the function.
6427         (handle_no_sanitize_thread_attribute): New function.
6428         (handle_no_address_safety_analysis_attribute): Use
6429         add_no_sanitize_value.
6430         (handle_no_sanitize_undefined_attribute): Likewise.
6431         * c-common.h: Declare new functions.
6432         * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
6433         (ubsan_instrument_shift): Likewise.
6434         (ubsan_instrument_bounds): Likewise.
6435         (ubsan_maybe_instrument_array_ref): Likewise.
6436         (ubsan_maybe_instrument_reference_or_call): Likewise.
6438 2017-06-11  Jason Merrill  <jason@redhat.com>
6440         * c-ada-spec.c, c-pragma.c: Use id_equal.
6442 2017-06-04  Marek Polacek  <polacek@redhat.com>
6444         PR c/80919
6445         * c-format.c (matching_type_p): Return false if any of the types
6446         requires structural equality.
6448 2017-06-02  Martin Sebor  <msebor@redhat.com>
6450         PR c/80892
6451         * c-warn.c (conversion_warning): Use -Wconversion for integer
6452         conversion and -Wfloat-conversion for floating one.
6454 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6456         * c.opt (Wsizeof-pointer-div): New warning option.
6458 2017-06-01  Volker Reichelt  <v.reichelt@netcologne.de>
6460         * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
6461         (Wcatch-value=1): Enable by -Wall.
6463 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
6465         * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
6466         format_chars.
6467         * c.opt (fdiagnostics-show-template-tree): New option.
6468         (felide-type): New option.
6470 2017-05-25  Volker Reichelt  <v.reichelt@netcologne.de>
6472         * c.opt (Wcatch-value=): New C++ warning flag.
6474 2017-05-24  Nathan Sidwell  <nathan@acm.org>
6476         * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
6477         const casts to avoid warning.
6479 2017-05-24  Martin Sebor  <msebor@redhat.com>
6481         PR c/80731
6482         * c-common.h (unsafe_conversion_p): Add a function argument.
6483         * c-common.c (unsafe_conversion_p): Same.
6484         Add type names and values to diagnostics.
6485         (scalar_to_vector): Adjust.
6486         * c-warn.c (constant_expression_error): Add a function argument.
6487         Add type names and values to diagnostics.
6488         (conversion_warning): Add a function argument.
6489         Add type names and values to diagnostics.
6490         (warnings_for_convert_and_check): Same.
6492 2017-05-19  Jason Merrill  <jason@redhat.com>
6494         * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
6495         enumerators.
6497 2017-05-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6499         * c-format.c (locus): Move out of function scope,
6500         add GTY attribute.
6502 2017-05-19  Nathan Sidwell  <nathan@acm.org>
6504         * c-opts.c (class_dump_file, class_dump_flags): Delete.
6505         (c_common_parse_file): Remove class dump handling.
6506         (get_dump_info): Likewise.
6508 2017-05-19  Richard Biener  <rguenther@suse.de>
6510         PR c++/80593
6511         * c-warn.c (strict_aliasing_warning): Do not warn for accesses
6512         to alias-set zero memory.
6514 2017-05-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6516         * c-format.c (local_tree_type_node): Add GTY attribute.
6518 2017-05-18  Marek Polacek  <polacek@redhat.com>
6520         * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
6521         (c_common_fixed_point_type_for_size): Likewise.
6522         (c_common_type_for_mode): Likewise.
6523         (shorten_compare): Likewise.
6524         (c_promoting_integer_type_p): Use false/true instead of 0/1.
6525         * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
6527 2017-05-18  Marek Polacek  <polacek@redhat.com>
6529         * c-common.c (self_promoting_args_p): Change the return type to bool.
6530         Use false/true instead of 0/1.
6531         * c-common.h (self_promoting_args_p): Update.
6533 2017-05-17  Marek Polacek  <polacek@redhat.com>
6535         * c-common.c: Use NULL_TREE instead of 0 where appropriate.
6536         * c-warn.c: Likewise.
6538 2017-05-17  Ville Voutilainen  <ville.voutilainen@gmail.com>
6540         Implement new C++ intrinsics __is_assignable and __is_constructible.
6541         * c-common.c (__is_assignable, __is_constructible): New.
6542         * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
6544 2017-05-17  Martin Liska  <mliska@suse.cz>
6546         * c-common.h: Introduce dump_flags_t type and
6547         use it instead of int type.
6548         * c-gimplify.c (c_genericize): Likewise.
6549         * c-opts.c: Likewise.
6551 2017-05-17  Marek Polacek  <polacek@redhat.com>
6553         * c-common.c (c_save_expr): Remove.
6554         (c_common_truthvalue_conversion): Remove a call to c_save_expr.
6555         * c-common.h (c_save_expr): Remove declaration.
6557 2017-05-09  Volker Reichelt  <v.reichelt@netcologne.de>
6559         PR c/35441
6560         * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
6561         MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
6562         (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
6563         (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
6564         RDIV_EXPR.
6565         (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
6567 2017-05-09  Marek Polacek  <polacek@redhat.com>
6569         PR c/80525
6570         * c-warn.c (unwrap_c_maybe_const): New.
6571         (warn_logical_operator): Call it.
6573 2017-05-09  Nathan Sidwell  <nathan@acm.org>
6575         * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
6576         * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
6578 2017-05-08  Martin Sebor  <msebor@redhat.com>
6580         PR translation/80280
6581         * c-format.h (struct format_flag_spec): Add new member.
6582         (T89_T): New macro.
6583         * c-format.c (local_tree_type_node): New global.
6584         (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
6585         (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
6586         (strfmon_flag_specs): Likewise.
6587         (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
6588         with distinct quoting properties.
6589         (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
6590         (flag_chars_t::validate): Add argument and handle bad quoting.
6591         (check_format_info_main): Handle quoting problems.
6592         (init_dynamic_diag_info): Simplify.
6594 2017-05-08  Jason Merrill  <jason@redhat.com>
6596         * c-opts.c (c_common_post_options): Update defaults for
6597         flag_abi_version and flag_abi_compat_version.
6599 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
6601         * c-common.c (c_cpp_error): Replace report_diagnostic
6602         with diagnostic_report_diagnostic.
6604 2017-05-04  Martin Sebor  <msebor@redhat.com>
6606         PR translation/80280
6607         * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
6608         (handle_weakref_attribute): Same.
6610 2017-05-03  Nathan Sidwell  <nathan@acm.org>
6612         Canonicalize canonical type hashing
6613         * c-common.c (complete_array_type): Use type_hash_canon.
6615 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
6617         PR c++/80038
6618         * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
6619         prototype.
6620         (cilk_install_body_pedigree_operations): Likewise.
6621         * cilk.c (cilk_set_spawn_marker): Mark functions that should be
6622         detatched.
6623         (cilk_gimplify_call_params_in_spawned_fn): Remove.
6624         (cilk_install_body_pedigree_operations): Likewise.
6625         (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
6626         unwrapping.
6628 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
6630         PR c++/80534
6631         * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
6632         flag on non-aggregate element types.
6634 2017-04-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6636         * c-common.c (c_type_hasher, type_hash_table): Remove.
6637         (c_common_get_alias_set): Remove unreachable code.
6638         * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
6640 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
6642         * c.opt (Wextra-semi): New C++ warning flag.
6644 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
6646         PR middle-end/80423
6647         * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
6649 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
6651         PR middle-end/79788
6652         PR middle-end/80375
6653         * c-common.c (c_common_type_for_mode): Don't handle
6654         widest_*_literal_type_node here.
6655         c_common_signed_or_unsigned_type): Likewise.
6656         (c_common_nodes_and_builtins): Set widest_*_literal_type_node
6657         to *intTI_type_node or *intDI_type_node depending on whether
6658         TImode is supported by the target or not.
6660 2017-04-10  Martin Liska  <mliska@suse.cz>
6662         PR sanitizer/80350
6663         * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
6664         doing an UBSAN check.
6666 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
6668         * c-warn.c (do_warn_double_promotion): Fix typo in comment.
6670 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
6672         PR c++/79572
6673         * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
6674         tree *.
6675         * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise.  Handle
6676         not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
6677         REFERENCE_TYPE.
6679 2017-03-31  David Malcolm  <dmalcolm@redhat.com>
6681         PR documentation/78732
6682         * c.opt (Wendif-labels): Fix description to refer to
6683         #else rather than #elif.
6685 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
6687         PR libstdc++/80251
6688         * c-common.h (enum rid): Add RID_IS_AGGREGATE.
6689         * c-common.c (c_common_reswords): Add __is_aggregate trait.
6691 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
6693         PR middle-end/80162
6694         * c-common.c (c_common_mark_addressable_vec): Don't set
6695         TREE_ADDRESSABLE on DECL_HARD_REGISTER.
6697 2017-03-21  Martin Sebor  <msebor@redhat.com>
6699         PR c++/79548
6700         * c-common.c (set_underlying_type): Mark type used only when
6701         original del is declared unused.
6703 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
6705         PR translation/79848
6706         * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
6707         "%qs".
6709 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
6711         PR c/79921
6712         * c-indentation.c (warn_for_misleading_indentation): Remove parens
6713         from inform's message, so that xgettext can locate it.
6715 2017-03-09  Marek Polacek  <polacek@redhat.com>
6717         PR c++/79962
6718         PR c++/79984
6719         * c-attribs.c (handle_nonnull_attribute): Save the result of default
6720         conversion to the attribute list.
6722 2017-03-09  Martin Liska  <mliska@suse.cz>
6724         * c-ada-spec.c (macro_length): Increment value instead of a pointer.
6726 2017-03-03  Jason Merrill  <jason@redhat.com>
6728         * c.opt (Wnoexcept-type): New.
6730 2017-03-02  Richard Biener  <rguenther@suse.de>
6732         PR c/79756
6733         * c-common.c (c_common_mark_addressable_vec): Look through
6734         C_MAYBE_CONST_EXPR.
6736 2017-02-28  Martin Liska  <mliska@suse.cz>
6738         * c.opt: Replace space with tabular for options of <number>
6739         type.
6741 2017-02-28  Martin Liska  <mliska@suse.cz>
6743         * c.opt: Fix --help=option -Q for options which are of
6744         an enum type.
6746 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
6748         PR c++/79588
6749         * c-common.c (check_function_restrict): New function.
6750         (check_function_arguments): Add FNDECL argument.  Call
6751         check_function_restrict if -Wrestrict.
6752         * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
6753         and NARGS.  Use auto_vec for ARG_POSITIONS, simplify.
6754         * c-common.h (check_function_arguments): Add FNDECL argument.
6755         (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
6757 2017-02-24  Eric Botcazou  <ebotcazou@adacore.com>
6759         * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
6760         treatment of parameters with pointer-to-tagged type and tidy up.
6761         (print_ada_methods): Remove the special treatment of C++ static member
6762         functions.
6764 2017-02-22  Martin Liska  <mliska@suse.cz>
6766         * c.opt: Replace inequality signs with square brackets
6767         for -Wnornalized.
6769 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
6771         PR c++/79641
6772         * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
6773         preserve quals.
6775 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
6777         * c-cppbuiltin.c (builtin_define_float_constants): Define
6778         __DECIMAL_DIG__ to the value for long double.
6780 2017-02-15  Marek Polacek  <polacek@redhat.com>
6782         PR c/79515
6783         * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
6784         conversion has occured.
6786 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
6788         * c-common.c (c_common_reswords): Add "__RTL".
6789         * c-common.h (enum rid): Add RID_RTL.
6791 2017-01-20  Marek Polacek  <polacek@redhat.com>
6793         PR c/64279
6794         * c-common.h (do_warn_duplicated_branches_r): Declare.
6795         * c-gimplify.c (c_genericize): Walk the function tree calling
6796         do_warn_duplicated_branches_r.
6797         * c-warn.c (expr_from_macro_expansion_r): New.
6798         (do_warn_duplicated_branches): New.
6799         (do_warn_duplicated_branches_r): New.
6800         * c.opt (Wduplicated-branches): New option.
6802 2017-01-17  David Malcolm  <dmalcolm@redhat.com>
6804         PR c++/71497
6805         * c-indentation.c (warn_for_misleading_indentation): Use the past
6806         subjunctive in the note.
6808 2017-01-17  Aldy Hernandez  <aldyh@redhat.com>
6810         PR c/79116
6811         * array-notation-common.c (cilkplus_extract_an_triplets): Convert
6812         start type to integer_type.
6814 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
6816         PR driver/49726
6817         * c.opt (gen-decls): Add Driver flag.
6819 2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
6821         Revert:
6822         2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
6824         PR c++/71737
6825         * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
6827 2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
6829         PR c++/71737
6830         * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
6832 2017-01-12  Martin Sebor  <msebor@redhat.com>
6834         (-Wformat-overflow): ...to this.
6836 2017-01-11  Martin Sebor  <msebor@redhat.com>
6838         PR c/78768
6839         * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
6840         Also enable for LTO.
6842 2017-01-10  Jason Merrill  <jason@redhat.com>
6844         Implement P0195R2, C++17 variadic using.
6845         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
6847 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
6849         PR translation/79019
6850         PR translation/79020
6851         * c.opt (Wnormalized=): Fix typo in description.
6853 2017-01-08  Martin Sebor  <msebor@redhat.com>
6855         PR middle-end/77708
6856         * c.opt (-Wformat-truncation): New option.
6858 2017-01-06  Alexandre Oliva  <aoliva@redhat.com>
6860         * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
6861         value to unsigned short to fit in 4 hex digits without
6862         warnings.
6864 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
6866         * c.opt (fsso-struct): Add 'native' value.
6868 2017-01-05  Martin Liska  <mliska@suse.cz>
6870         PR pch/78970
6871         * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
6872         header.
6874 2017-01-04  Marek Polacek  <polacek@redhat.com>
6876         PR c++/64767
6877         * c.opt (Wpointer-compare): New option.
6879 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
6881         PR driver/78957
6882         * c.opt (fsso-struct=): Add RejectNegative.
6884 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
6886         Update copyright years.
6888 2016-12-29  Martin Liska  <mliska@suse.cz>
6890         PR c/78933
6891         * c.opt (strong-eval-order): Add RejectNegative keyword.
6893 2016-12-22  Jason Merrill  <jason@redhat.com>
6895         Implement P0522R0, matching of template template arguments.
6896         * c-cppbuiltin.c (c_cpp_builtins): Define
6897         __cpp_template_template_args.
6899 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
6901         PR bootstrap/78817
6902         * c-common.c (struct nonnull_arg_ctx): New type.
6903         (check_function_nonnull): Return bool instead of void.  Use
6904         nonnull_arg_ctx as context rather than just location_t.
6905         (check_nonnull_arg): Adjust for the new context type, set
6906         warned_p to true if a warning has been diagnosed.
6907         (check_function_arguments): Return bool instead of void.
6908         * c-common.h (check_function_arguments): Adjust prototype.
6910 2016-12-21  Jason Merrill  <jason@redhat.com>
6912         * c.opt (-fnew-ttp-matching): New flag.
6913         * c-opts.c (c_common_post_options): Default on if -std=c++1z.
6915 2016-12-14  Martin Jambor  <mjambor@suse.cz>
6917         * c-omp.c: Include omp-general.h instead of omp-low.h.
6918         (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
6919         name.
6921 2016-12-14  Martin Sebor  <msebor@redhat.com>
6923         PR c/17308
6924         * c-common.c (check_nonnull_arg): Disable when optimization
6925         is enabled.
6927 2016-12-12  Marek Polacek  <polacek@redhat.com>
6929         PR c++/78647
6930         * c-common.c (attribute_fallthrough_p): Return false for
6931         error_mark_node.
6933 2016-12-08  Martin Sebor  <msebor@redhat.com>
6935         PR c/78284
6936         * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
6938 2016-12-08  Martin Sebor  <msebor@redhat.com>
6940         PR c/78165
6941         * c-pretty-print (pp_c_integer_constant): Avoid formatting type
6942         suffix.
6944 2016-12-07  Martin Sebor  <msebor@redhat.com>
6946         PR c/53562
6947         PR middle-end/77784
6948         PR middle-end/78149
6949         PR middle-end/78138
6950         * c.opt (-Wstringop-overflow): New option.
6952 2016-12-02  Maxim Ostapenko  <m.ostapenko@samsung.com>
6954         * c-attribs.c (asan odr indicator): New attribute.
6955         (handle_asan_odr_indicator_attribute): New function.
6957 2016-11-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6959         * c-common.c (c_common_nodes_and_builtins): Remove initialization of
6960         ptrdiff_type_node;
6962 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
6964         * c-common.c (excess_precision_mode_join): New.
6965         (c_ts18661_flt_eval_method): New.
6966         (c_c11_flt_eval_method): Likewise.
6967         (c_flt_eval_method): Likewise.
6968         * c-common.h (excess_precision_mode_join): New.
6969         (c_flt_eval_method): Likewise.
6970         * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
6971         (cpp_iec_559_value): Call it.
6972         (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
6973         call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
6974         __FLT_EVAL_METHOD_TS_18661_3__.
6976 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
6978         * c-opts.c (c_common_post_options): Add logic to handle the default
6979         case for -fpermitted-flt-eval-methods.
6981 2016-11-23  Paolo Bonzini  <bonzini@gnu.org>
6983         * c.opt (Wexpansion-to-defined): New.
6985 2016-11-23  Jakub Jelinek  <jakub@redhat.com>
6987         PR target/78451
6988         * c-pragma.c (handle_pragma_target): Don't replace
6989         current_target_pragma, but chainon the new args to the current one.
6991 2016-11-22  Nathan Sidwell  <nathan@acm.org>
6993         * array-notation-common.c (cilkplus_extract_an_trplets): Fix
6994         indentation and formatting.
6996 2016-11-21  Martin Sebor  <msebor@redhat.com>
6998         * c.opt (-fprintf-return-value): Enable by default.
7000 2016-11-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7002         PR c++/71973
7003         * c.opt (-Wbuiltin-declaration-mismatch): New warning.
7004         * c-common.c (c_common_nodes_and_builtins): Initialize
7005         const_tm_ptr_type_node.
7007 2016-11-16  Marek Polacek  <polacek@redhat.com>
7009         PR c/78285
7010         * c-common.c (c_add_case_label): Turn error_at calls into inform.
7012 2016-11-14  Jakub Jelinek  <jakub@redhat.com>
7014         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
7016 2016-11-14  Prasad Ghangal  <prasad.ghangal@gmail.com>
7017             Richard Biener  <rguenther@suse.de>
7019         * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
7020         * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
7021         * c.opt (fgimple): New option.
7023 2016-11-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7025         PR c/35503
7026         * c-common.h (warn_for_restrict): Declare.
7027         * c-warn.c: Include gcc-rich-location.h.
7028         (warn_for_restrict): New function.
7029         * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
7030         (gcc_cdiag_char_table): Likewise.
7031         (gcc_cxxdiag_char_table): Likewise.
7032         * c.opt (Wrestrict): New option.
7034 2016-11-13  Eric Botcazou  <ebotcazou@adacore.com>
7036         * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
7037         for nested types only if the type is a record or union and dump SLOC.
7039 2016-11-09  Jason Merrill  <jason@redhat.com>
7041         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
7043 2016-11-09  Jakub Jelinek  <jakub@redhat.com>
7045         * c-ubsan.c (ubsan_instrument_shift): Handle split
7046         -fsanitize=shift-base and -fsanitize=shift-exponent.
7048 2016-11-07  Jason Merrill  <jason@redhat.com>
7050         * c.opt (Wc++1z-compat): New.
7051         * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
7053 2016-11-07  Martin Liska  <mliska@suse.cz>
7055         * c-warn.c (warn_for_unused_label): Save all labels used
7056         in goto or in &label.
7058 2016-11-03  Jason Merrill  <jason@redhat.com>
7060         * c-cppbuiltin.c (c_cpp_builtins): Correct
7061         __cpp_inheriting_constructors.
7063 2016-11-01  Jason Merrill  <jason@redhat.com>
7065         * c-cppbuiltin.c (c_cpp_builtins): Update
7066         __cpp_inheriting_constructors.
7068         * c.opt (-fnew-inheriting-ctors): New.
7069         * c-opts.c: Default to on for ABI 11+.
7071 2016-10-31  Jakub Jelinek  <jakub@redhat.com>
7073         PR c++/77948
7074         * c.opt (fext-numeric-literals): Add Var and Init.
7075         * c-opts.c (c_common_handle_option): Don't clear
7076         cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
7077         (c_common_post_options): Clear it here if not set
7078         explicitly.
7080 2016-10-28  Aldy Hernandez  <aldyh@redhat.com>
7082         PR debug/77773
7083         * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
7084         if NULL.
7086 2016-10-25  Jakub Jelinek  <jakub@redhat.com>
7088         * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
7089         * c-common.c (c_common_reswords): Add __builtin_launder.
7091 2016-10-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7093         * c-common.c (c_common_truthvalue_conversion): Warn for
7094         multiplications in boolean context.  Fix the quoting of '<<' and '<'
7095         in the shift warning.
7097 2016-10-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7099         * c-common.c (c_common_truthvalue_conversion): Fix the comment.
7101 2016-10-20  Jason Merrill  <jason@redhat.com>
7103         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
7105 2016-10-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7107         * c-common.c (c_common_truthvalue_conversion): Warn only for signed
7108         integer shift ops in boolean context.
7110 2016-10-18  Aldy Hernandez  <aldyh@redhat.com>
7112         * c.opt (Walloca): New.
7113         (Walloca-larger-than=): New.
7114         (Wvla-larger-than=): New.
7116 2016-10-17  Marek Polacek  <polacek@redhat.com>
7118         * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
7119         Return immediately when finding a match.
7120         (warn_tautological_cmp): Remove a boolean variable that is no longer
7121         needed.
7123 2016-10-17  Marek Polacek  <polacek@redhat.com>
7125         * c-attribs.c: New file.
7126         * c-common.c: Move attributes handling to c-attribs.c.
7127         (get_nonnull_operand): No longer static.
7128         * c-common.h: Move the declarations from c-attribs.c to its own section.
7130 2016-10-14  Jason Merrill  <jason@redhat.com>
7132         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
7133         and __cpp_deduction_guides.
7135 2016-10-13  Jason Merrill  <jason@redhat.com>
7137         * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
7139 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7141         * c-cppbuiltin.c: Include memmodel.h.
7142         * c-opts.c: Likewise.
7143         * c-pragma.c: Likewise.
7144         * c-warn.c: Likewise.
7146 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
7148         * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
7149         (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
7150         * c-opts.c (sanitize_cpp_opts): Initialize
7151         cpp_opts->cpp_warn_implicit_fallthrough.
7153 2016-10-11  Marek Polacek  <polacek@redhat.com>
7155         * c-common.c (warning_candidate_p): Change the return type to bool
7156         and return true/false instead of 1/0.
7157         (vector_mode_valid_p): Likewise.
7159 2016-10-11  Marek Polacek  <polacek@redhat.com>
7161         * c-common.c (fold_for_warn): No longer static.
7162         (bool_promoted_to_int_p): Likewise.
7163         (c_common_get_narrower): Likewise.
7164         (constant_expression_warning): Move to c-warn.c.
7165         (constant_expression_error): Likewise.
7166         (overflow_warning): Likewise.
7167         (warn_logical_operator): Likewise.
7168         (find_array_ref_with_const_idx_r): Likewise.
7169         (warn_tautological_cmp): Likewise.
7170         (expr_has_boolean_operands_p): Likewise.
7171         (warn_logical_not_parentheses): Likewise.
7172         (warn_if_unused_value): Likewise.
7173         (strict_aliasing_warning): Likewise.
7174         (sizeof_pointer_memaccess_warning): Likewise.
7175         (check_main_parameter_types): Likewise.
7176         (conversion_warning): Likewise.
7177         (warnings_for_convert_and_check): Likewise.
7178         (match_case_to_enum_1): Likewise.
7179         (match_case_to_enum): Likewise.
7180         (c_do_switch_warnings): Likewise.
7181         (warn_for_omitted_condop): Likewise.
7182         (readonly_error): Likewise.
7183         (lvalue_error): Likewise.
7184         (invalid_indirection_error): Likewise.
7185         (warn_array_subscript_with_type_char): Likewise.
7186         (warn_about_parentheses): Likewise.
7187         (warn_for_unused_label): Likewise.
7188         (warn_for_div_by_zero): Likewise.
7189         (warn_for_memset): Likewise.
7190         (warn_for_sign_compare): Likewise.
7191         (do_warn_double_promotion): Likewise.
7192         (do_warn_unused_parameter): Likewise.
7193         (record_locally_defined_typedef): Likewise.
7194         (maybe_record_typedef_use): Likewise.
7195         (maybe_warn_unused_local_typedefs): Likewise.
7196         (maybe_warn_bool_compare): Likewise.
7197         (maybe_warn_shift_overflow): Likewise.
7198         (warn_duplicated_cond_add_or_warn): Likewise.
7199         (diagnose_mismatched_attributes): Likewise.
7200         * c-common.h: Move the declarations from c-warn.c to its own section.
7201         * c-warn.c: New file.
7203 2016-10-08  Jason Merrill  <jason@redhat.com>
7205         * c-common.c (c_common_truthvalue_conversion): Don't distribute
7206         into COND_EXPR in C++.
7208 2016-10-08  Jakub Jelinek  <jakub@redhat.com>
7210         * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
7211         token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
7212         CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
7214 2016-10-07  Jakub Jelinek  <jakub@redhat.com>
7216         Implement LWG2296 helper intrinsic
7217         * c-common.h (enum rid): Add RID_ADDRESSOF.
7218         * c-common.c (c_common_reswords): Add __builtin_addressof.
7220 2016-10-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7222         PR c++/77700
7223         * c-common.c (c_common_truthvalue_conversion): Warn also for
7224         suspicious enum values in boolean context.
7226 2016-10-06  Jakub Jelinek  <jakub@redhat.com>
7228         Implement P0258R2 - helper for C++17
7229         std::has_unique_object_representations trait
7230         * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
7231         * c-common.c (c_common_reswords): Add
7232         __has_unique_object_representations.
7234 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
7236         PR sanitizer/66343
7237         * c-ubsan.c (ubsan_instrument_return): Don't call
7238         initialize_sanitizer_builtins here.
7240 2016-10-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7242         * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
7243         conditional expression in boolean context when only one arm is
7244         non-boolean.
7246 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
7248         PR sanitizer/77823
7249         * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
7250         is not integral.
7252         * c-common.c (c_common_reswords): Update comment for C++11.
7254 2016-10-04  Jason Merrill  <jason@redhat.com>
7256         * c-common.c (make_tree_vector_from_ctor): New.
7257         * c-common.h: Declare it.
7259 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
7261         * c-cppbuiltin.c (c_cpp_builtins): Don't define
7262         __LIBGCC_JCR_SECTION_NAME__.
7264 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7266         * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
7267         left shift in boolean context.
7269 2016-09-29  Jakub Jelinek  <jakub@redhat.com>
7271         Implement P0001R1 - C++17 removal of register storage class specifier
7272         * c.opt (Wregister): New warning.
7273         * c-opts.c (c_common_post_options): Enable -Wregister by
7274         default for C++17.
7276 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
7278         * c-opts.c (c_common_post_options): Remove special case for
7279         TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
7280         in C++.
7282 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
7284         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
7285         -std=c++1z.
7287         * c-ada-spec.c (print_ada_declaration): Remove break after return.
7289 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7291         * c-common.c: Include memmodel.h.
7293 2016-09-26  Marek Polacek  <polacek@redhat.com>
7295         * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
7297 2016-09-26  Marek Polacek  <polacek@redhat.com>
7299         PR c/7652
7300         * c-common.c (c_common_attribute_table): Add fallthrough attribute.
7301         (handle_fallthrough_attribute): New function.
7302         (attribute_fallthrough_p): New function.
7303         * c-common.h (attribute_fallthrough_p): Declare.
7305 2016-09-24  Marek Polacek  <polacek@redhat.com>
7307         PR c/77490
7308         * c.opt (Wbool-operation): New.
7310 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7312         * c-common.c (c_common_truthvalue_conversion): Inhibit
7313         Wint-in-bool-context warning with from_macro_definition_at.
7314         Mention the expression will always evaluate to true.
7316 2016-09-21  Martin Sebor  <msebor@redhat.com>
7318         PR bootstrap/77676
7319         * c.opt (fprintf-return-value): Temporarily initialize to zero
7320         to unblock bootstrap failures.
7322 2016-09-21  Jakub Jelinek  <jakub@redhat.com>
7324         PR c++/77651
7325         * c.opt (Waligned-new=): Add RejectNegative.
7326         (faligned-new=): Likewise.  Spelling fix - change
7327         aligned_new_threshhold to aligned_new_threshold.
7328         * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
7329         to aligned_new_threshold.
7331 2016-09-20  Martin Sebor  <msebor@redhat.com>
7333         PR middle-end/49905
7334         * c.opt: Add -Wformat-length and -fprintf-return-value.
7336 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7338         PR c++/77434
7339         * c.opt (Wint-in-bool-context): New warning.
7340         * c-common.c (c_common_truthvalue_conversion): Warn on integer
7341         constants in boolean context.
7343 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
7345         * c-common.c (max_align_t_align): Also consider alignment of
7346         float128_type_node.
7348 2016-09-15  Jason Merrill  <jason@redhat.com>
7350         * c-common.c (check_cxx_fundamental_alignment_constraints): Check
7351         DECL_EXTERNAL.
7353 2016-09-14  Jason Merrill  <jason@redhat.com>
7355         * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
7356         limit FIELD_DECL, either.
7358 2016-09-14  Marek Polacek  <polacek@redhat.com>
7360         * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
7361         * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
7362         * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
7364 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
7366         * c-common.c (warn_logical_not_parentheses): Replace
7367         rich_location::add_fixit_insert calls with add_fixit_insert_before
7368         and add_fixit_insert_after, eliminating the "next_loc" calculation.
7370 2016-09-13  Jason Merrill  <jason@redhat.com>
7371             Tom de Vries  <tom@codesourcery.com>
7373         PR c++/77427
7374         * c-common.c (set_underlying_type): Don't treat array as builtin type.
7376 2016-09-13  Jason Merrill  <jason@redhat.com>
7378         * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
7379         limit types at all.
7381 2016-09-12  Jason Merrill  <jason@redhat.com>
7383         * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
7384         bit/byte confusion, allow large alignment for types.
7386 2016-09-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7388         PR c++/77496
7389         * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
7391 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
7393         PR c/72858
7394         * c-format.c (argument_parser::check_argument_type): Add params
7395         "type_start" and "conversion_char".  Use the former to generate
7396         offset_to_type_start and pass it and conversion_char to
7397         check_format_types.
7398         (check_format_info_main): Capture the start of the type
7399         information as "type_start", and pass it an format_char
7400         to arg_parser.check_argument_type.
7401         (check_format_types): Provide an example in the leading comment.
7402         Add params "offset_to_type_start" and "conversion_char"; pass
7403         them to format_type_warning calls.
7404         (test_get_modifier_for_format_len): Likewise.
7405         (matching_type_p): New function.
7406         (get_format_for_type): Add param "conversion_char" and move
7407         implementation into...
7408         (get_format_for_type_1): ...new function, called twice.
7409         Use new function matching_type_p rather than checking for
7410         TYPE_CANONICAL equality.
7411         (get_corrected_substring): New function.
7412         (format_type_warning): Provide an example in the leading comment.
7413         Add params "offset_to_type_start" and "conversion_char".  Replace
7414         call to get_format_for_type with call to get_corrected_substring
7415         and move rejection of hints for widths/precisions there.
7416         (assert_format_for_type_streq): Add param "conversion_char".
7417         (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
7418         (test_get_format_for_type_printf): Add conversion chars to the
7419         tests, adding coverage for various combinations of integer
7420         vs double conversions, and for preserving octal and hexadecimal
7421         conversions.
7422         (test_get_format_for_type_scanf): Add conversion chars to the
7423         tests.
7425 2016-09-10  Tom de Vries  <tom@codesourcery.com>
7427         PR C/71602
7428         * c-common.c (build_va_arg): Handle more strict
7429         targetm.canonical_va_list_type.  Replace first argument type error with
7430         assert.
7432 2016-09-09  Martin Sebor  <msebor@redhat.com>
7434         PR c/77520
7435         PR c/77521
7436         * c-format.c (argument_parser::find_format_char_info): Use %qc
7437         format directive unconditionally.
7439 2016-09-09  Jason Merrill  <jason@redhat.com>
7441         Implement C++17 new of over-aligned types.
7442         * c.opt: Add -faligned-new and -Waligned-new.
7443         * c-common.c (max_align_t_align): Split out from...
7444         (cxx_fundamental_alignment_p): ...here.
7445         * c-common.h: Declare it.
7446         * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
7448 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
7450         * c-cppbuiltin.c (builtin_define_type_width): New function.
7451         (builtin_define_stdint_macros, c_cpp_builtins): Define type width
7452         macros.
7454 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
7456         * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
7457         a POINTER_TYPE.
7458         (substring_loc::get_location): Move to substring-locations.c,
7459         keeping implementation as...
7460         (c_get_substring_location): New function, from the above, reworked
7461         to use accessors rather than member lookup.
7462         * c-common.h (class substring_loc): Move to substring-locations.h,
7463         replacing with a forward decl.
7464         (c_get_substring_location): New decl.
7465         * c-format.c: Include "substring-locations.h".
7466         (format_warning_va): Move to substring-locations.c.
7467         (format_warning_at_substring): Likewise.
7469 2016-09-06  Martin Sebor  <msebor@redhat.com>
7471         PR c/77336
7472         * c-format.c (check_function_format): Avoid issuing warnings for
7473         functions unless they call format functions with non-constant
7474         format strings.
7476 2016-09-06  Richard Biener  <rguenther@suse.de>
7478         PR c/77450
7479         * c-common.c (c_common_mark_addressable_vec): Handle
7480         COMPOUND_LITERAL_EXPR.
7482 2016-09-05  Marek Polacek  <polacek@redhat.com>
7484         PR c/77423
7485         * c-common.c (bool_promoted_to_int_p): New function.
7486         (expr_has_boolean_operands_p): New function.
7487         (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
7488         (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
7490 2016-09-04  Tom de Vries  <tom@codesourcery.com>
7492         revert:
7493         2016-08-29  Tom de Vries  <tom@codesourcery.com>
7495         * c-common.c (build_va_arg): Replace first argument type error
7496         with assert.
7498 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
7500         PR c/65467
7501         * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
7502         (c_finish_omp_for): Reject _Atomic qualified iterators.
7504 2016-09-01  Martin Sebor  <msebor@redhat.com>
7506         * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
7507         size to guarantee it fits the output of the formatted function
7508         regardless of its arguments.
7510 2016-09-01  Marek Polacek  <polacek@redhat.com>
7512         PR c/7652
7513         * c-common.c (resolve_overloaded_builtin): Fix formatting.  Add
7514         FALLTHRU comments.
7516 2016-08-29  Marek Polacek  <polacek@redhat.com>
7518         PR c/77292
7519         * c-common.c (warn_logical_not_parentheses): Don't warn for
7520         a comparison or a logical operator.
7522 2016-08-29  Tom de Vries  <tom@codesourcery.com>
7524         * c-common.c (build_va_arg): Fix type comparison assert.
7526 2016-08-29  Tom de Vries  <tom@codesourcery.com>
7528         * c-common.c (build_va_arg): Replace first argument type error
7529         with assert.
7531 2016-08-29  Tom de Vries  <tom@codesourcery.com>
7533         PR c/77398
7534         * c-common.c (build_va_arg): Add first argument error.  Build va_arg
7535         with error_mark_node as va_list instead of with illegal va_list.
7537 2016-08-25  Marek Polacek  <polacek@redhat.com>
7538             David Malcolm  <dmalcolm@redhat.com>
7540         * c-common.c (warn_logical_not_parentheses): Print fixit hints.
7541         * c-common.h (warn_logical_not_parentheses): Update declaration.
7543 2016-08-22  Marek Polacek  <polacek@redhat.com>
7545         PR c++/77321
7546         * c-common.c (warn_for_memset): Check type for null.
7548 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
7550         * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
7551         _FloatNx types for suffixes for built-in functions.
7553 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
7555         PR c/32187
7556         * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
7557         (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
7558         (RID_FLOAT128X): New enum rid values.
7559         (CASE_RID_FLOATN_NX): New macro.
7560         * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
7561         keywords.
7562         (c_common_type_for_mode): Check for _FloatN and _FloatNx and
7563         corresponding complex types.
7564         (c_common_nodes_and_builtins): For non-C++, register _FloatN and
7565         _FloatNx and corresponding complex types.
7566         (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
7567         * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
7568         and _FloatNx types for the widest type for determining
7569         DECIMAL_DIG.  Define __LDBL_DECIMAL_DIG__ as well as
7570         __DECIMAL_DIG__ for long double.  Handle FMA_SUFFIX being NULL.
7571         (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
7572         and _FloatNx types.
7573         * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
7574         constants.
7575         * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
7576         _FloatNx types.
7578 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
7580         * c-opts.c (c_diagnostic_finalizer): Update for change to
7581         diagnostic_show_locus.
7583 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
7585         * c-common.c: Include "spellcheck.h".
7586         (cb_get_suggestion): New function.
7587         * c-common.h (cb_get_suggestion): New decl.
7588         * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
7589         cb_get_suggestion.
7591 2016-08-18  Marek Polacek  <polacek@redhat.com>
7593         PR c/71514
7594         * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
7595         and pointer-to-VLA.
7597 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
7599         PR c/72857
7600         * c-common.c (substring_loc::get_range): Rename to...
7601         (substring_loc::get_location): ...this, converting param from a
7602         source_range * to a location_t *.  Call
7603         get_source_location_for_substring rather than
7604         get_source_range_for_substring, and pass in m_caret_idx.
7605         * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
7606         (substring_loc::get_range): Replace with...
7607         (substring_loc::get_location): ...this.
7608         (substring_loc::set_caret_index): New method.
7609         (substring_loc): Add field m_caret_idx.
7610         * c-format.c (format_warning_va): Update for above changes.
7611         Rename local "substring_loc" to "fmt_substring_loc" to avoid
7612         clashing with type name.
7613         (format_warning_at_char): Add caret_idx param to substring_loc ctor.
7614         (check_argument_type): Likewise.
7615         (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
7616         Use a copy when emitting warnings, setting the caret index from TYPE.
7618 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
7619             Arnaud Charlet  <charlet@adacore.com>
7621         * c-ada-spec.c (dump_number): New function.
7622         (handle_escape_character): Likewise.
7623         (print_ada_macros): Add handling of constant integers and strings.
7625 2016-08-12  Marek Polacek  <polacek@redhat.com>
7627         PR c/7652
7628         * c-common.c (scalar_to_vector): Adjust fall through comment.
7629         * c-opts.c (c_common_handle_option): Likewise.
7630         * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
7631         * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
7632         fall through comment.
7633         * cilk.c (extract_free_variables): Add FALLTHRU.
7635 2016-08-10  Jason Merrill  <jason@redhat.com>
7637         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
7639 2016-08-09  Jason Merrill  <jason@redhat.com>
7641         * c-common.c (c_common_attribute_table): vector_size affects type
7642         identity.
7644 2016-08-09  Marek Polacek  <polacek@redhat.com>
7646         PR c/7652
7647         * c-ada-spec.c (dump_generic_ada_node): Add return.
7649 2016-08-09  Jason Merrill  <jason@redhat.com>
7651         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
7652         C++17 constexpr lambdas.
7654 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
7656         PR c/64955
7657         * c-common.h (selftest::c_format_c_tests): New declaration.
7658         (selftest::run_c_tests): New declaration.
7659         * c-format.c: Include "selftest.h.
7660         (format_warning_va): Add param "corrected_substring" and use
7661         it to add a replacement fix-it hint.
7662         (format_warning_at_substring): Likewise.
7663         (format_warning_at_char): Update for new param of
7664         format_warning_va.
7665         (argument_parser::check_argument_type): Pass "fki" to
7666         check_format_types.
7667         (check_format_types): Add param "fki" and pass it to
7668         format_type_warning.
7669         (deref_n_times): New function.
7670         (get_modifier_for_format_len): New function.
7671         (selftest::test_get_modifier_for_format_len): New function.
7672         (get_format_for_type): New function.
7673         (format_type_warning): Add param "fki" and use it to attempt
7674         to provide hints for argument types when calling
7675         format_warning_at_substring.
7676         (selftest::get_info): New function.
7677         (selftest::assert_format_for_type_streq): New function.
7678         (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
7679         (selftest::test_get_format_for_type_printf): New function.
7680         (selftest::test_get_format_for_type_scanf): New function.
7681         (selftest::c_format_c_tests): New function.
7683 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
7685         PR c/52952
7686         * c-format.c: Include "diagnostic.h".
7687         (location_column_from_byte_offset): Delete.
7688         (location_from_offset): Delete.
7689         (format_warning_va): New function.
7690         (format_warning_at_substring): New function.
7691         (format_warning_at_char): New function.
7692         (check_format_arg): Capture location of format_tree and pass to
7693         check_format_info_main.
7694         (argument_parser): Add fields "start_of_this_format" and
7695         "format_string_cst".
7696         (flag_chars_t::validate): Add param "format_string_cst".  Convert
7697         warning_at call using location_from_offset to call to
7698         format_warning_at_char.
7699         (argument_parser::argument_parser): Add param "format_string_cst_"
7700         and use use it to initialize field "format_string_cst".
7701         Initialize new field "start_of_this_format".
7702         (argument_parser::read_format_flags): Convert warning_at call
7703         using location_from_offset to a call to format_warning_at_char.
7704         (argument_parser::read_any_format_left_precision): Likewise.
7705         (argument_parser::read_any_format_precision): Likewise.
7706         (argument_parser::read_any_other_modifier): Likewise.
7707         (argument_parser::find_format_char_info): Likewise, in three places.
7708         (argument_parser::parse_any_scan_set): Likewise, in one place.
7709         (argument_parser::handle_conversions): Likewise, in two places.
7710         (argument_parser::check_argument_type): Add param "fmt_param_loc"
7711         and use it to make a substring_loc.  Pass the latter to
7712         check_format_types.
7713         (check_format_info_main): Add params "fmt_param_loc" and
7714         "format_string_cst".  Convert warning_at calls using
7715         location_from_offset to calls to format_warning_at_char.  Pass the
7716         new params to the arg_parser ctor.  Pass "format_string_cst" to
7717         flag_chars.validate.  Pass "fmt_param_loc" to
7718         arg_parser.check_argument_type.
7719         (check_format_types): Convert first param from a location_t
7720         to a const substring_loc & and rename to "fmt_loc".  Attempt
7721         to extract the range of the relevant parameter and pass it
7722         to format_type_warning.
7723         (format_type_warning): Convert first param from a location_t
7724         to a const substring_loc & and rename to "fmt_loc".  Add
7725         params "param_range" and "type".  Replace calls to warning_at
7726         with calls to format_warning_at_substring.
7728 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
7730         * c-format.c (class flag_chars_t): New class.
7731         (struct length_modifier): New struct.
7732         (class argument_parser): New class.
7733         (flag_chars_t::flag_chars_t): New ctor.
7734         (flag_chars_t::has_char_p): New method.
7735         (flag_chars_t::add_char): New method.
7736         (flag_chars_t::validate): New method.
7737         (flag_chars_t::get_alloc_flag): New method.
7738         (flag_chars_t::assignment_suppression_p): New method.
7739         (argument_parser::argument_parser): New ctor.
7740         (argument_parser::read_any_dollar): New method.
7741         (argument_parser::read_format_flags): New method.
7742         (argument_parser::read_any_format_width): New method.
7743         (argument_parser::read_any_format_left_precision): New method.
7744         (argument_parser::read_any_format_precision): New method.
7745         (argument_parser::handle_alloc_chars): New method.
7746         (argument_parser::read_any_length_modifier): New method.
7747         (argument_parser::read_any_other_modifier): New method.
7748         (argument_parser::find_format_char_info): New method.
7749         (argument_parser::validate_flag_pairs): New method.
7750         (argument_parser::give_y2k_warnings): New method.
7751         (argument_parser::parse_any_scan_set): New method.
7752         (argument_parser::handle_conversions): New method.
7753         (argument_parser::check_argument_type): New method.
7754         (check_format_info_main): Introduce classes argument_parser
7755         and flag_chars_t, moving the code within the loop into methods
7756         of these classes.  Make various locals "const".
7758 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
7760         * c-common.c: Include "substring-locations.h".
7761         (get_cpp_ttype_from_string_type): New function.
7762         (g_string_concat_db): New global.
7763         (substring_loc::get_range): New method.
7764         * c-common.h (g_string_concat_db): New declaration.
7765         (class substring_loc): New class.
7766         * c-lex.c (lex_string): When concatenating strings, capture the
7767         locations of all tokens using a new obstack, and record the
7768         concatenation locations within g_string_concat_db.
7769         * c-opts.c (c_common_init_options): Construct g_string_concat_db
7770         on the ggc-heap.
7772 2016-07-29  Marek Polacek  <polacek@redhat.com>
7774         PR c/71926
7775         * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
7776         parentheses warning.
7778         PR c/71574
7779         * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
7781 2016-07-28  Martin Liska  <mliska@suse.cz>
7783         PR gcov-profile/68025
7784         * c-common.c (handle_no_profile_instrument_function_attribute):
7786 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7788         * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
7789         BITS_PER_UNIT_LOG.
7791 2016-07-25  Jason Merrill  <jason@redhat.com>
7793         PR c++/65970
7794         * c.opt (fconstexpr-loop-limit): New.
7796 2016-07-22  Martin Sebor  <msebor@redhat.com>
7798         PR c++/71675
7799         * c-common.c (resolve_overloaded_builtin): Avoid converting
7800         __atomic_compare_exchange_n return type to that of what its
7801         first argument points to.
7803 2016-07-22  Uros Bizjak  <ubizjak@gmail.com>
7805         * c-common.c: Use HOST_WIDE_INT_M1U instead of
7806         ~(unsigned HOST_WIDE_INT) 0.
7808 2016-07-22  Martin Liska  <mliska@suse.cz>
7810         PR gcov-profile/69028
7811         PR gcov-profile/62047
7812         * cilk.c (create_cilk_helper_decl): Set location of a new decl
7813         to the current_function_decl.
7815 2016-07-21  Jason Merrill  <jason@redhat.com>
7817         PR c++/65168
7818         * c-common.c (c_common_truthvalue_conversion): Check
7819         c_inhibit_evaluation_warnings for warning about address of
7820         reference.
7822 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
7824         * c-common.h (lookup_name_fuzzy): Convert return type from tree to
7825         const char *.
7827 2016-07-15  Jason Merrill  <jason@redhat.com>
7829         * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
7831 2016-07-15  Jakub Jelinek  <jakub@redhat.com>
7833         PR c/71858
7834         * c-common.h (enum lookup_name_fuzzy_kind): Add
7835         FUZZY_LOOKUP_FUNCTION_NAME.
7837 2016-07-08  Jason Merrill  <jason@redhat.com>
7839         P0145: Refining Expression Order for C++.
7840         * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
7841         * c-opts.c: Adjust.
7843 2016-07-05  Markus Trippelsdorf  <markus@trippelsdorf.de>
7845         PR c++/71214
7846         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
7848 2016-06-29  Thomas Schwinge  <thomas@codesourcery.com>
7850         * c-pragma.h (enum pragma_kind): Rename
7851         PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE.  Adjust all
7852         users.
7854 2016-06-29  Richard Biener  <rguenther@suse.de>
7856         PR middle-end/71002
7857         * c-common.c (c_common_get_alias_set): Remove union type punning case.
7859 2016-06-24  Jason Merrill  <jason@redhat.com>
7861         P0145R2: Refining Expression Order for C++.
7862         * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
7863         MODIFY_EXPR.
7865 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
7867         * c-common.c (check_builtin_function_arguments): Require last
7868         argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
7869         Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
7870         if the last argument is pointer to enumerated or boolean type.
7872 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
7874         PR c/70339
7875         * c-common.h (enum lookup_name_fuzzy_kind): New enum.
7876         (lookup_name_fuzzy): New prototype.
7878 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
7880         * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
7882 2016-06-14  Jason Merrill  <jason@redhat.com>
7884         P0145R2: Refining Expression Order for C++.
7885         * c.opt (fargs-in-order): New.
7886         * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
7888 2016-06-13  Jakub Jelinek  <jakub@redhat.com>
7890         PR sanitizer/71498
7891         * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
7892         all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
7894         PR preprocessor/71183
7895         * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
7896         to cb_get_source_date_epoch.
7898 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
7900         PR c/68657
7901         * c.opt (Wpsabi): Add Warning flag.
7903 2016-06-10  Martin Sebor  <msebor@redhat.com>
7905         PR c/71392
7906         * c-common.c (handle_nonnull_attribute): Accept
7907         the nonnull attribute in type-generic builtins.
7909 2016-06-09  Martin Sebor  <msebor@redhat.com>
7911         PR c/70883
7912         * c-common.c (builtin_function_validate_nargs): Make text of error
7913         message consistent with others like it.
7915 2016-06-08  Martin Sebor  <msebor@redhat.com>
7916             Jakub Jelinek  <jakub@redhat.com>
7918         PR c++/70507
7919         PR c/68120
7920         * c-common.c (check_builtin_function_arguments): Handle
7921         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
7923 2016-06-08  Richard Biener  <rguenther@suse.de>
7925         * c-common.c (parse_optimize_options): Improve diagnostic messages.
7927 2016-06-07  Richard Biener  <rguenther@suse.de>
7929         PR c/61564
7930         * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
7931         options and warn about others.
7933 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
7935         * c-common.c (get_source_date_epoch): Rename to
7936         cb_get_source_date_epoch.
7937         * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
7938         message when the parsing fails.  Use error_at instead of fatal_error.
7939         * c-common.h (get_source_date_epoch): Rename to
7940         cb_get_source_date_epoch.
7941         * c-common.h (cb_get_source_date_epoch): Prototype.
7942         * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
7943         * c-common.h (c_omp_region_type): Remove trailing comma.
7944         * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
7945         * c-lex.c (c_lex_with_flags): Remove initialization of
7946         pfile->source_date_epoch.
7948 2016-05-30  Jakub Jelinek  <jakub@redhat.com>
7950         PR c++/71349
7951         * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
7952         C_OMP_CLAUSE_SPLIT_TARGET.  Put OMP_CLAUSE_NOWAIT to
7953         C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
7954         instead of C_OMP_CLAUSE_SPLIT_FOR.
7956 2016-05-24  Richard Biener  <rguenther@suse.de>
7958         PR middle-end/70434
7959         PR c/69504
7960         * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
7961         (convert_vector_to_array_for_subscript): ... this.
7962         * c-common.c (convert_vector_to_pointer_for_subscript): Use a
7963         VIEW_CONVERT_EXPR to an array type.  Rename to ...
7964         (convert_vector_to_array_for_subscript): ... this.
7966 2016-05-12  Marek Polacek  <polacek@redhat.com>
7968         PR c/70756
7969         * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
7970         size_in_bytes and pass LOC to it.
7972 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
7974         PR c/43651
7975         * c.opt (Wduplicate-decl-specifier): New option.
7977 2016-05-11  Marek Polacek  <polacek@redhat.com>
7979         PR c++/71024
7980         * c-common.c (diagnose_mismatched_attributes): New function.
7981         * c-common.h (diagnose_mismatched_attributes): Declare.
7983 2016-05-04  Marek Polacek  <polacek@redhat.com>
7985         * c.opt (Wdangling-else): New option.
7987 2016-05-03  Marek Polacek  <polacek@redhat.com>
7989         PR c/70859
7990         * c-common.c (builtin_function_validate_nargs): Add location
7991         parameter.  Use it.
7992         (check_builtin_function_arguments): Add location and arguments
7993         parameters.  Use them.
7994         * c-common.h (check_builtin_function_arguments): Update declaration.
7996 2016-05-03  Richard Biener  <rguenther@suse.de>
7998         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
7999         allow call args to gimplify to SSA names.
8001 2016-05-03  Marek Polacek  <polacek@redhat.com>
8003         * c-common.h (enum c_omp_region_type): Remove stray comma.
8005 2016-05-02  Cesar Philippidis  <cesar@codesourcery.com>
8007         * c-common.h (enum c_omp_region_type): Define.
8009 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
8011         * c-common.c (shorten_compare): Use wi::to_wide.
8013 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
8015         PR middle-end/70626
8016         * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
8017         * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
8018         reduction clauses in acc parallel loops.
8020 2016-04-29  Marek Polacek  <polacek@redhat.com>
8022         PR c/70852
8023         * c-common.c (warn_for_memset): Check domain before accessing it.
8025 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8027         PR/69089
8028         * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
8029         "aligned" attribute.
8031 2016-04-28  Jason Merrill  <jason@redhat.com>
8033         * c-lex.c (c_common_has_attribute): Handle nodiscard.
8035 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
8036             Matthias Klose  <doko@debian.org>
8038         * c-common.c (get_source_date_epoch): New function, gets the environment
8039         variable SOURCE_DATE_EPOCH and parses it as long long with error
8040         handling.
8041         * c-common.h (get_source_date_epoch): Prototype.
8042         * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
8044 2015-04-27  Ryan Burn  <contact@rnburn.com>
8046         PR c++/69024
8047         PR c++/68997
8048         * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
8049         (cilk_recognize_spawn): Renamed from recognize_spawn and change to
8050         external linkage.
8051         (cilk_detect_and_unwrap): Corresponding changes.
8052         (extract_free_variables): Don't extract free variables from
8053         AGGR_INIT_EXPR slot.
8054         * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
8055         (cilk_recognize_spawn): Likewise.
8057 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
8059         * c.opt (Wmemset-elt-size): New option.
8060         * c-common.c (warn_for_memset): New function.
8061         * c-common.h (warn_for_memset): Declare.
8063 2016-04-25  Jason Merrill  <jason@redhat.com>
8065         * c-common.c (handle_unused_attribute): Accept CONST_DECL.
8066         No longer static.
8067         * c-common.h: Declare it.
8068         * c-lex.c (c_common_has_attribute): Add maybe_unused.
8070 2016-04-22  Jason Merrill  <jason@redhat.com>
8072         * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
8074 2016-04-20  Ilya Verbin  <ilya.verbin@intel.com>
8076         PR c++/69363
8077         * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
8078         * c-common.h (c_finish_cilk_clauses): Remove declaration.
8080 2016-04-18  Michael Matz  <matz@suse.de>
8082         * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
8083         and SET_DECL_ALIGN.
8085 2016-04-17  Eric Botcazou  <ebotcazou@adacore.com>
8087         * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
8088         (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
8089         to incomplete types.
8090         (dump_nested_type): Remove redundant tests and tidy up.
8091         (print_ada_declaration): Also set TREE_VISITED on the declaration of
8092         a type which is the typedef of an original type.
8094 2016-04-15  Marek Polacek  <polacek@redhat.com>
8096         PR c/70651
8097         * c-common.c (build_va_arg): Change two asserts into errors and return
8098         error_mark_node.
8100 2016-04-13  Marek Polacek  <polacek@redhat.com>
8102         PR c++/70639
8103         * c-indentation.c (should_warn_for_misleading_indentation): Bail out
8104         for switch statements, too.
8106 2016-03-28  Jason Merrill  <jason@redhat.com>
8108         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
8110 2016-03-23  Marek Polacek  <polacek@redhat.com>
8112         PR c++/69884
8113         * c.opt (Wignored-attributes): New option.
8115 2016-03-22  David Malcolm  <dmalcolm@redhat.com>
8117         PR c/69993
8118         * c-indentation.c (warn_for_misleading_indentation): Rewrite the
8119         diagnostic text, reversing the order of the warning and note so
8120         that they appear in source order.
8122 2016-03-17  Marek Polacek  <polacek@redhat.com>
8124         PR c/69407
8125         * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
8126         operations.
8128 2016-03-14  Jason Merrill  <jason@redhat.com>
8130         * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
8132         * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
8134 2016-03-09  Richard Biener  <rguenther@suse.de>
8136         PR c/70143
8137         * c-common.c (strict_aliasing_warning): Add back
8138         alias_sets_conflict_p check.
8140 2016-03-08  Jason Merrill  <jason@redhat.com>
8142         * c-opts.c (set_std_cxx1z): Don't enable concepts.
8144 2016-03-04  David Malcolm  <dmalcolm@redhat.com>
8146         PR c/68187
8147         * c-indentation.c (get_visual_column): Move code to determine next
8148         tab stop to...
8149         (next_tab_stop): ...this new function.
8150         (line_contains_hash_if): Delete function.
8151         (detect_preprocessor_logic): Delete function.
8152         (get_first_nws_vis_column): New function.
8153         (detect_intervening_unindent): New function.
8154         (should_warn_for_misleading_indentation): Replace call to
8155         detect_preprocessor_logic with a call to
8156         detect_intervening_unindent.
8158 2016-03-04  David Malcolm  <dmalcolm@redhat.com>
8160         PR c/68187
8161         * c-indentation.c (should_warn_for_misleading_indentation): When
8162         suppressing warnings about cases where the guard and body are on
8163         the same column, only use the first non-whitespace column in place
8164         of the guard token column when dealing with "else" clauses.
8165         When rejecting aligned BODY and NEXT, loosen the requirement
8166         from equality with the first non-whitespace of guard to simply
8167         that they not be indented relative to it.
8169 2016-03-04  Richard Biener  <rguenther@suse.de>
8171         PR c++/70054
8172         * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
8173         instead of alias_sets_conflict_p.
8175 2016-03-01  Marek Polacek  <polacek@redhat.com>
8177         PR c++/69795
8178         * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
8179         any DECL.
8181 2016-02-22  Martin Sebor  <msebor@redhat.com>
8183         PR middle-end/69780
8184         * c-common.c (check_builtin_function_arguments): Validate and
8185         reject invalid arguments to __builtin_alloca_with_align.
8187 2016-02-20  Mark Wielaard  <mjw@redhat.com>
8189         PR c/28901
8190         * c.opt (Wunused-const-variable): Turn into Alias for...
8191         (Wunused-const-variable=): New option.
8193 2016-02-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8195         PR c++/69865
8196         * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
8197         here...
8198         (c_common_init_options): ...to here.
8199         (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
8201 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
8203         PR c++/69826
8204         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
8205         (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
8206         flag_preprocess_only.
8208 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
8210         PR c/69835
8211         * c.opt (Wnonnull-compare): Enable for -Wall.
8213 2016-02-15  Jakub Jelinek  <jakub@redhat.com>
8215         PR c++/69797
8216         * c-common.c (sync_resolve_size): Diagnose too few arguments
8217         even when params is non-NULL empty vector.
8219 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
8221         PR target/60410
8222         * c.opt (fshort-double): Remove.
8224 2016-02-05  Martin Sebor  <msebor@redhat.com>
8226         PR c++/69662
8227         * c.opt (Warning options): Update -Wplacement-new to take
8228         an optional argument.
8230 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
8232         PR preprocessor/69543
8233         PR c/69558
8234         * c-pragma.c (handle_pragma_diagnostic): Pass input_location
8235         instead of loc to control_warning_option.
8237 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
8239         * c.opt (fopenacc-dim=): New option.
8241 2016-01-27  Ryan Burn  <contact@rnburn.com>
8243         PR cilkplus/69267
8244         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
8245         gimplify_arg. Removed superfluous post_p argument.
8246         * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
8247         superfluous post_p argument.
8248         * c-gimplify.c (c_gimplify_expr): Likewise.
8250 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
8252         PR other/69006
8253         * c-opts.c (c_diagnostic_finalizer): Replace invocation of
8254         pp_newline_and_flush with pp_flush.
8256 2016-01-20  Martin Sebor  <msebor@redhat.com>
8258         PR c/69405
8259         * c-common.c (sync_resolve_size): Avoid printing diagnostic about
8260         an incompatible argument when the argument isn't a valid tree node.
8262 2016-01-18  Jason Merrill  <jason@redhat.com>
8264         PR c++/68767
8265         * c-common.c (check_function_arguments_recurse): Fold the whole
8266         COND_EXPR, not just the condition.
8268 2016-01-18  Tom de Vries  <tom@codesourcery.com>
8270         * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
8271         classify as loop clause.
8273 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
8275         PR bootstrap/68271
8276         * c-pragma.c (c_register_pragma_1): Adjust comment to note that
8277         C++ FE no longer has limit on number of pragmas.
8279 2015-01-14  Ryan Burn  <contact@rnburn.com>
8281         PR c++/69048
8282         * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
8283         to add missing cleanup point.
8285 2016-01-14  David Malcolm  <dmalcolm@redhat.com>
8287         PR c++/68819
8288         * c-indentation.c (get_visual_column): Add location_t param.
8289         Handle the column number being zero by effectively disabling the
8290         warning, with an "inform".
8291         (should_warn_for_misleading_indentation): Add location_t argument
8292         for all uses of get_visual_column.
8294 2016-01-10  Patrick Palka  <ppalka@gcc.gnu.org>
8296         PR c++/69029
8297         * c-indentation.c (should_warn_for_misleading_indentation):
8298         Don't warn about do-while statements.
8300 2016-01-07  Martin Sebor  <msebor@redhat.com>
8302         PR c/68966
8303         * c-common.c (sync_resolve_size): Reject first argument when it's
8304         a pointer to _Bool.
8306 2016-01-05  David Malcolm  <dmalcolm@redhat.com>
8308         PR c/69122
8309         * c-indentation.c (get_visual_column): Remove default argument.
8310         (should_warn_for_misleading_indentation): For the multiline case,
8311         update call to get_visual_column for next_stmt_exploc so that it
8312         captures the location of the first non-whitespace character in the
8313         relevant line.  Don't issue warnings if there is non-whitespace
8314         before the next statement.
8316 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
8318         Update copyright years.
8320 2015-12-21  David Malcolm  <dmalcolm@redhat.com>
8322         * c-common.c (binary_op_error): Convert first param from
8323         location_t to rich_location * and use it when emitting an error.
8324         * c-common.h (binary_op_error): Convert first param from
8325         location_t to rich_location *.
8327 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
8329         * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
8330         * c-lex.c (conflict_marker_get_final_tok_kind): New function.
8332 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
8334         * c-common.c (c_common_attribute_table): Handle "omp declare target
8335         link" attribute.
8337 2015-12-14  Jakub Jelinek  <jakub@redhat.com>
8339         PR c/68833
8340         * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
8342 2014-12-12  Tobias Burnus  <burnus@net-b.de>
8344         PR fortran/68815
8345         * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
8346         specifiers (%d, %i,%u and %c).
8348 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
8350         * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
8352 2015-12-08  Jakub Jelinek  <jakub@redhat.com>
8354         PR c/48088
8355         PR c/68657
8356         * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
8357         * c-pragma.c (handle_pragma_diagnostic): Adjust
8358         control_warning_option caller.
8360 2015-12-07  David Malcolm  <dmalcolm@redhat.com>
8362         * c-common.c (c_cpp_error): Update for change to
8363         rich_location::set_range.
8365 2015-12-04  Paolo Bonzini  <bonzini@gnu.org>
8367         * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
8368         shifting 1 out of the sign bit.
8370 2015-12-04  Kirill Yukhin  <kirill.yukhin@intel.com>
8372         * c-common.c (c_common_attribute_table[]): Update max arguments
8373         count for "simd" attribute.
8374         (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
8376 2015-12-03  Jakub Jelinek  <jakub@redhat.com>
8378         PR preprocessor/57580
8379         * c-ppoutput.c (print): Change printed field to bool.
8380         Move src_file last for smaller padding.
8381         (init_pp_output): Set print.printed to false instead of 0.
8382         (scan_translation_unit): Fix up formatting.  Set print.printed
8383         to true after printing something other than newline.
8384         (scan_translation_unit_trad): Set print.printed to true instead of 1.
8385         (maybe_print_line_1): Set print.printed to false instead of 0.
8386         (print_line_1): Likewise.
8387         (do_line_change): Set print.printed to true instead of 1.
8388         (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
8389         dump_macro): Set print.printed to false after printing newline.
8391 2015-12-02  Jason Merrill  <jason@redhat.com>
8393         * c-common.c (fold_for_warn): New.
8394         (warn_logical_operator, warn_tautological_cmp)
8395         (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
8397         * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
8398         (c_fully_fold_internal, decl_constant_value_for_optimization):
8399         Move to c/c-fold.c.
8400         * c-common.h: Don't declare decl_constant_value_for_optimization.
8402 2015-12-02  Joseph Myers  <joseph@codesourcery.com>
8404         PR c/68162
8405         * c-common.h (c_build_qualified_type): Add extra default
8406         arguments.
8408 2015-12-01  Julian Brown  <julian@codesourcery.com>
8409             Cesar Philippidis  <cesar@codesourcery.com>
8410             James Norris  <James_Norris@mentor.com>
8412         * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
8413         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
8414         (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
8416 2015-11-30  Eric Botcazou  <ebotcazou@adacore.com>
8418         * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
8419         (decl_sloc_common): Delete and move bulk of processing to...
8420         (decl_sloc): ...here.
8421         (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
8422         (dump_ada_double_name): Remove S parameter and compute the suffix.
8423         (dump_ada_array_type): Add PARENT parameter.  Simplify computation of
8424         element type and deal with an anonymous one.
8425         (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
8426         (dump_generic_ada_node): Tweak.  Adjust call to dump_ada_array_type
8427         and remove reference to QUAL_UNION_TYPE.
8428         (dump_nested_types): Make 2 passes on the fields and move bulk to...
8429         (dump_nested_type): ...here.  New function extracted from above.
8430         Generate a full declaration for anonymous element type of arrays.
8431         (print_ada_declaration): Really skip anonymous declarations.  Remove
8432         references to QUAL_UNION_TYPE.  Adjust call to dump_ada_array_type.
8433         Clean up processing of declarations of array types and objects.
8434         (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
8435         Remove obsolete code and tidy up.
8437 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
8439         PR c/67581
8440         * c-common.c (handle_transparent_union_attribute): Update
8441         also type variants.
8443 2015-11-27  Martin Liska  <mliska@suse.cz>
8445         PR c++/68312
8446         * array-notation-common.c (cilkplus_extract_an_triplets):
8447         Release vector of vectors.
8448         * cilk.c (gimplify_cilk_spawn): Free allocated memory.
8450 2015-11-26  Eric Botcazou  <ebotcazou@adacore.com>
8452         PR c++/68527
8453         * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
8454         (print_ada_struct_decl): Likewise.
8456 2015-11-23  Igor Zamyatin  <igor.zamyatin@intel.com>
8458         PR c++/68001
8459         * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
8460         * cilk.c (recognize_spawn): Determine location in a more precise
8461         way.
8463 2015-11-19  Jason Merrill  <jason@redhat.com>
8465         * c-common.c (shorten_compare): But look through macros from
8466         system headers.
8468 2015-11-18  Jason Merrill  <jason@redhat.com>
8470         * c-common.c (shorten_compare): Don't -Wtype-limits if the
8471         non-constant operand comes from a macro.
8473 2015-11-17  Jason Merrill  <jason@redhat.com>
8475         PR bootstrap/68346
8476         * c-common.c (warn_tautological_cmp): Fold before checking for
8477         constants.
8479 2015-11-16  Marek Polacek  <polacek@redhat.com>
8481         PR c++/68362
8482         * c-common.c (check_case_bounds): Fold low and high cases.
8484 2015-11-16  Marek Polacek  <polacek@redhat.com>
8486         * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
8487         * c-common.c (c_common_get_alias_set): Likewise.
8488         (handle_visibility_attribute): Likewise.
8490 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
8492         * c-common.c (handle_simd_attribute): New.
8493         (struct attribute_spec): Add entry for "simd".
8494         (handle_simd_attribute): New.
8496 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
8498         * c-lex.c (interpret_float): Use fold_convert.
8500 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
8502         * c-common.c (c_fully_fold_internal): Capture existing souce_range,
8503         and store it on the result.
8504         * c-opts.c (c_common_init_options): Set
8505         global_dc->colorize_source_p.
8507 2015-11-12  James Norris  <jnorris@codesourcery.com>
8508             Joseph Myers  <joseph@codesourcery.com>
8510         * c-pragma.c (oacc_pragmas): Add entry for declare directive.
8511         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
8512         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
8513         PRAGMA_OACC_CLAUSE_LINK.
8515 2015-11-11  Marek Polacek  <polacek@redhat.com>
8517         PR c/68107
8518         PR c++/68266
8519         * c-common.c (valid_array_size_p): New function.
8520         * c-common.h (valid_array_size_p): Declare.
8522 2015-11-11  Dominique d'Humieres  <dominiq@lps.ens.fr>
8524         PR bootstrap/68271
8525         * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
8527 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
8529         * array-notation-common.c: Remove unused header files.
8530         * c-ada-spec.c: Likewise.
8531         * c-cilkplus.c: Likewise.
8532         * c-common.c: Likewise.
8533         * c-cppbuiltin.c: Likewise.
8534         * c-dump.c: Likewise.
8535         * c-format.c: Likewise.
8536         * c-gimplify.c: Likewise.
8537         * c-indentation.c: Likewise.
8538         * c-lex.c: Likewise.
8539         * c-omp.c: Likewise.
8540         * c-opts.c: Likewise.
8541         * c-pch.c: Likewise.
8542         * c-ppoutput.c: Likewise.
8543         * c-pragma.c: Likewise.
8544         * c-pretty-print.c: Likewise.
8545         * c-semantics.c: Likewise.
8546         * c-ubsan.c: Likewise.
8547         * cilk.c: Likewise.
8548         * stub-objc.c: Likewise.
8550 2015-11-09  Thomas Schwinge  <thomas@codesourcery.com>
8551             Cesar Philippidis  <cesar@codesourcery.com>
8552             James Norris  <jnorris@codesourcery.com>
8553             Julian Brown  <julian@codesourcery.com>
8554             Nathan Sidwell  <nathan@codesourcery.com>
8556         * c-pragma.c (oacc_pragmas): Add "routine".
8557         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
8559 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
8561         * c-common.c (c_common_attributes): Add scalar_storage_order.
8562         (handle_scalar_storage_order_attribute): New function.
8563         * c-pragma.c (global_sso): New variable.
8564         (maybe_apply_pragma_scalar_storage_order): New function.
8565         (handle_pragma_scalar_storage_order): Likewise.
8566         (init_pragma): Register scalar_storage_order.
8567         * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
8568         * c.opt (Wscalar-storage-order): New warning.
8569         (fsso-struct=): New option.
8571 2015-11-08  Martin Sebor  <msebor@redhat.com>
8573         * c.opt (Wplacement-new): Add a period to the end of a sentence.
8575 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
8577         * c-common.c: Don't undef DEF_BUILTIN.
8579 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
8581         * c-common.c (c_cpp_error): Convert parameter from location_t to
8582         rich_location *.  Eliminate the "column_override" parameter and
8583         the call to diagnostic_override_column.
8584         Update the "done_lexing" clause to set range 0
8585         on the rich_location, rather than overwriting a location_t.
8586         * c-common.h (c_cpp_error): Convert parameter from location_t to
8587         rich_location *.  Eliminate the "column_override" parameter.
8589 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
8590             Thomas Schwinge  <thomas@codesourcery.com>
8591             James Norris  <jnorris@codesourcery.com>
8593         * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
8594         AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses.  Associate REDUCTION
8595         clauses with parallel and kernels and loops.
8596         * c-pragma.h (enum pragma_omp_clause): Add entries for
8597         PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
8598         * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
8599         NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
8600         INDEPENDENT,SEQ}.
8601         (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
8603 2015-11-05  Martin Sebor  <msebor@redhat.com>
8605         PR c++/67942
8606         * c.opt (-Wplacement-new): New option.
8608 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
8610         * c-common.h (c_finish_omp_atomic): Add TEST argument.
8611         (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
8612         * c-omp.c (c_finish_omp_atomic): Add TEST argument.  Don't call
8613         save_expr or create_tmp_var* if TEST is true.
8614         (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
8615         Don't call add_stmt here.
8616         (struct c_omp_check_loop_iv_data): New type.
8617         (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
8618         c_omp_check_loop_iv_exprs): New functions.
8619         (c_omp_split_clauses): Adjust for lastprivate being allowed on
8620         distribute.
8621         (c_omp_declare_simd_clauses_to_numbers): Change
8622         OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
8623         (c_omp_declare_simd_clauses_to_decls): Similarly change those
8624         from numbers to PARM_DECLs.
8626 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
8628         * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
8629         flag_checking.
8631 2015-11-03  Bernd Schmidt  <bschmidt@redhat.com>
8633         PR c++-common/67882
8634         * c-common.h (fold_offsetof_1): Add argument.
8635         * c-common.c (fold_offsetof_1): Diagnose more invalid
8636         offsetof expressions that reference elements past the end of
8637         an array.
8639 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
8640             Chung-Lin Tang  <cltang@codesourcery.com>
8642         * c-pragma.c (oacc_pragmas): Add "atomic".
8643         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
8645 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
8647         * c-common.c (handle_target_clones_attribute): New.
8648         (c_common_attribute_table): Add handle_target_clones_attribute.
8649         (handle_always_inline_attribute): Add check on target_clones attribute.
8650         (handle_target_attribute): Ditto.
8652 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
8654         * array-notation-common.c: Reorder #include's and remove duplicates.
8655         * c-ada-spec.c: Likewise.
8656         * c-cilkplus.c: Likewise.
8657         * c-common.c: Likewise.
8658         * c-cppbuiltin.c: Likewise.
8659         * c-dump.c: Likewise.
8660         * c-format.c: Likewise.
8661         * c-gimplify.c: Likewise.
8662         * c-indentation.c: Likewise.
8663         * c-lex.c: Likewise.
8664         * c-omp.c: Likewise.
8665         * c-opts.c: Likewise.
8666         * c-pch.c: Likewise.
8667         * c-ppoutput.c: Likewise.
8668         * c-pragma.c: Likewise.
8669         * c-pretty-print.c: Likewise.
8670         * c-semantics.c: Likewise.
8671         * c-ubsan.c: Likewise.
8672         * cilk.c: Likewise.
8673         * stub-objc.c: Likewise.
8675 2015-10-28  Jason Merrill  <jason@redhat.com>
8677         * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
8679 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
8680             James Norris  <jnorris@codesourcery.com>
8681             Cesar Philippidis  <cesar@codesourcery.com>
8683         PR c/64765
8684         PR c/64880
8685         * c-common.h (c_oacc_split_loop_clauses): Declare function.
8686         * c-omp.c (c_oacc_split_loop_clauses): New function.
8688 2015-10-21  Martin Sebor  <msebor@redhat.com>
8690         PR driver/68043
8691         * c.opt: End each sentence that describes an option with a period.
8693 2015-10-20  Marek Polacek  <polacek@redhat.com>
8695         * array-notation-common.c (is_cilkplus_vector_p): Define.
8696         * c-common.h (is_cilkplus_vector_p): Declare.
8698 2015-10-20  Marek Polacek  <polacek@redhat.com>
8700         * c.opt (std=gnu++11): Do not describe as experimental.
8701         (std=gnu++14): Likewise.
8703 2015-10-19  Jason Merrill  <jason@redhat.com>
8705         * c-cppbuiltin.c (c_cpp_builtins): Define
8706         __cpp_nontype_template_args.
8708 2015-10-19  Jason Merrill  <jason@redhat.com>
8710         * c-cppbuiltin.c (c_cpp_builtins): Define
8711         __cpp_enumerator_attributes, __cpp_fold_expressions,
8712         __cpp_unicode_characters.
8714 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
8715             Aldy Hernandez  <aldyh@redhat.com>
8717         * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
8718         DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
8719         (c_define_builtins): Likewise.
8720         * c-common.h (enum c_omp_clause_split): Add
8721         C_OMP_CLAUSE_SPLIT_TASKLOOP.
8722         (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
8723         (c_finish_omp_for): Add ORIG_DECLV argument.
8724         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
8725         201511 instead of 201307.
8726         * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
8727         OMP_CRITICAL_CLAUSES to it.
8728         (c_finish_omp_ordered): Add CLAUSES argument, set
8729         OMP_ORDERED_CLAUSES to it.
8730         (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
8731         to it if OMP_FOR.  Clear DECL_INITIAL on the IVs.
8732         (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
8733         constructs and new OpenMP 4.5 clauses.  Clear
8734         OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD.  Add
8735         verification code.
8736         * c-pragma.c (omp_pragmas_simd): Add taskloop.
8737         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
8738         (enum pragma_omp_clause): Add
8739         PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
8740         and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
8742 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
8744         * c-lex.c (interpret_float): Use real_equal instead of
8745         REAL_VALUES_EQUAL.
8747 2015-10-04  Jason Merrill  <jason@redhat.com>
8749         Implement N4514, C++ Extensions for Transactional Memory.
8750         * c-common.c (c_common_reswords): Add C++ TM TS keywords.
8751         (c_common_attribute_table): Add transaction_safe_dynamic.
8752         transaction_safe now affects type identity.
8753         (handle_tm_attribute): Handle transaction_safe_dynamic.
8754         * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
8755         RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
8756         (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
8757         (D_TRANSMEM): New.
8758         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
8759         * c-pretty-print.c (pp_c_attributes_display): Don't print
8760         transaction_safe in C++.
8762 2015-10-02  Marek Polacek  <polacek@redhat.com>
8764         * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
8766 2015-10-02  Marek Polacek  <polacek@redhat.com>
8768         PR c/64249
8769         * c-common.c (warn_duplicated_cond_add_or_warn): New function.
8770         * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
8771         * c.opt (Wduplicated-cond): New option.
8773 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
8775         * c.opt (std=c11): Do not describe as experimental.
8776         (std=gnu11): Likewise.
8777         (std=iso9899:2011): Likewise.
8779 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
8781         * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
8782         (DEF_FUNCTION_TYPE_VAR_11): Delete.
8784 2015-09-25  Marek Polacek  <polacek@redhat.com>
8786         * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
8787         (ubsan_instrument_shift): Likewise.
8789 2015-09-25  Marek Polacek  <polacek@redhat.com>
8791         PR sanitizer/64906
8792         * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
8794 2015-09-24  Patrick Palka  <ppalka@gcc.gnu.org>
8796         * c-indentation.c (should_warn_for_misleading_indentation):
8797         Compare next_stmt_vis_column with guard_line_first_nws instead
8798         of with guard_line_vis_column.
8800 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8802         PR c/49654
8803         PR c/49655
8804         * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
8805         options and options not valid for the current language.
8807 2015-09-22  Patrick Palka  <ppalka@gcc.gnu.org>
8809         * c-indentation.c (should_warn_for_misleading_indentation):
8810         Float out and consolidate the calls to get_visual_column that
8811         are passed guard_exploc as an argument.  Compare
8812         next_stmt_vis_column with guard_line_first_nws instead of with
8813         body_line_first_nws.
8815 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
8817         * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
8818         Wnamespaces): New C++ warnings.
8820 2015-09-22  Jason Merrill  <jason@redhat.com>
8822         * c-common.h (abi_compat_version_crosses): New.
8823         (warn_abi_version): Declare.
8824         * c-common.c: Define it.
8825         * c-opts.c (c_common_post_options): Handle it.
8826         flag_abi_compat_version defaults to 8.
8828 2015-09-21  Ville Voutilainen  <ville.voutilainen@gmail.com>
8830         Complete the implementation of N4230, Nested namespace definition.
8831         * c-cppbuiltin.c: Add __cpp_namespace_attributes and
8832         __cpp_nested_namespace_definitions.
8834 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8836         * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
8838 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8840         * c-pragma.c (handle_pragma_diagnostic): Use explicit location
8841         when warning.
8842         * c-pragma.h (pragma_lex): Add optional loc argument.
8844 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
8846         * c-format.c (check_format_arg): Adjust to use common block size in all
8847         object pools.
8849 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
8851         * c-format.c (location_from_offset): Update for change in
8852         signature of location_get_source_line.
8853         * c-indentation.c (get_visual_column): Likewise.
8854         (line_contains_hash_if): Likewise.
8856 2015-09-14  Marek Polacek  <polacek@redhat.com>
8858         * c-opts.c (c_common_post_options): Set C++ standard earlier, before
8859         setting various warnings.
8861 2015-09-14  Marek Polacek  <polacek@redhat.com>
8863         * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
8864         a negative value.
8866 2015-09-11  Mark Wielaard  <mjw@redhat.com>
8868         PR c/28901
8869         * c.opt (Wunused-variable): Option from common.opt.
8870         (Wunused-const-variable): New option.
8872 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
8874         PR c++/53184
8875         * c.opt ([Wsubobject-linkage]): Add.
8877 2015-09-03  Martin Sebor  <msebor@redhat.com>
8879         PR c/66516
8880         * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
8881         functions.
8882         * c-common.c (reject_gcc_builtin): Define.
8884 2015-09-02  Balaji V. Iyer  <balaji.v.iyer@intel.com>
8886         PR middle-end/60586
8887         * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
8888         prototype.
8889         * c-gimplify.c (c_gimplify_expr): Added a call to the function
8890         cilk_gimplify_call_params_in_spawned_fn.
8891         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
8892         (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
8893         unwrapping.
8895 2015-08-25  Marek Polacek  <polacek@redhat.com>
8897         PR middle-end/67330
8898         * c-common.c (handle_weak_attribute): Don't check whether the
8899         visibility can be changed here.
8901 2015-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8903         * c-lex.c (c_lex_with_flags): Use explicit locations.
8905 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
8907         * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
8908         c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
8910 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8912         PR middle-end/36757
8913         * c-common.c (check_builtin_function_arguments): Add check
8914         for BUILT_IN_SIGNBIT argument.
8916 2015-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
8918         PR c++/67160
8919         * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
8920         in c++1z mode.
8922 2015-08-17  Marek Polacek  <polacek@redhat.com>
8924         * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
8925         with whitespaces before qualifier names.
8927 2015-08-12  Marek Polacek  <polacek@redhat.com>
8929         PR c++/55095
8930         * c-common.c (maybe_warn_shift_overflow): Properly handle
8931         left-shifting 1 into the sign bit.
8933 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8935         * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
8937 2015-08-06  Andrew Sutton  <andrew.n.sutton@gmail.com>
8938             Braden Obrzut  <admin@maniacsvault.net>
8939             Jason Merrill  <jason@redhat.com>
8941         Add C++ Concepts TS support.
8942         * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
8943         * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
8944         (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
8945         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
8946         * c-opts.c (set_std_cxx1z): Set flag_concepts.
8947         * c.opt (fconcepts): New.
8949 2015-08-02  Martin Sebor  <msebor@redhat.com>
8951         * c.opt (-Wframe-address): New warning option.
8953 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
8955         * c-indentation.c (should_warn_for_misleading_indentation):
8956         Improve heuristics.
8958 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
8960         * c-indentation.c (get_visual_column): Add parameter first_nws,
8961         use it.  Update comment documenting the function.
8962         (is_first_nonwhitespace_on_line): Remove.
8963         (should_warn_for_misleading_indentation): Replace usage of
8964         of is_first_nonwhitespace_on_line with get_visual_column.
8966 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
8968         * c-indentation.h (struct token_indent_info): Define.
8969         (get_token_indent_info): Define.
8970         (warn_for_misleading_information): Declare.
8971         * c-common.h (warn_for_misleading_information): Remove.
8972         * c-identation.c (warn_for_misleading_indentation):
8973         Change declaration to take three token_indent_infos.  Adjust
8974         accordingly.
8975         * c-identation.c (should_warn_for_misleading_indentation):
8976         Likewise.  Bail out early if the body is a compound statement.
8977         (guard_tinfo_to_string): Define.
8979 2015-07-30  Jason Merrill  <jason@redhat.com>
8981         * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
8982         '*' for reference decay.
8984 2015-07-30  Marek Polacek  <polacek@redhat.com>
8986         * c-common.c (warn_tautological_cmp): Bail for float types.
8988 2015-07-27  Marek Polacek  <polacek@redhat.com>
8990         PR bootstrap/67030
8991         * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
8993 2015-07-27  Marek Polacek  <polacek@redhat.com>
8995         PR c++/66555
8996         PR c/54979
8997         * c-common.c (find_array_ref_with_const_idx_r): New function.
8998         (warn_tautological_cmp): New function.
8999         * c-common.h (warn_tautological_cmp): Declare.
9000         * c.opt (Wtautological-compare): New option.
9002 2015-07-23  Marek Polacek  <polacek@redhat.com>
9004         * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
9005         (ubsan_instrument_shift): Likewise.
9007 2015-07-23  Marek Polacek  <polacek@redhat.com>
9009         PR sanitizer/66908
9010         * c-ubsan.c: Include gimplify.h.
9011         (ubsan_instrument_division): Unshare OP0 and OP1.
9012         (ubsan_instrument_shift): Likewise.
9014 2015-07-20  Marek Polacek  <polacek@redhat.com>
9015             Richard Sandiford  <richard.sandiford@arm.com>
9017         PR c++/55095
9018         * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
9019         Use EXPR_LOC_OR_LOC.
9020         (maybe_warn_shift_overflow): New function.
9021         * c-common.h (maybe_warn_shift_overflow): Declare.
9022         * c-opts.c (c_common_post_options): Set warn_shift_overflow.
9023         * c.opt (Wshift-overflow): New option.
9025 2015-07-16  Martin Liska  <mliska@suse.cz>
9027         * c-format.c (static void check_format_info_main): Use
9028         object_allocator instead of pool_allocator.
9029         (check_format_arg): Likewise.
9030         (check_format_info_main): Likewise.
9032 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
9034         * c-opts.c: Remove multiline #include comment.
9036 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
9038         * c-common.c: Fix double word typos.
9040 2015-07-10  Eric Botcazou  <ebotcazou@adacore.com>
9042         * c-ada-spec.h (cpp_operation): Revert latest change.
9043         * c-ada-spec.c (print_ada_declaration): Likewise.  Skip implicit
9044         constructors and destructors.
9046 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
9048         * c-common.h: Adjust includes for flags.h changes.
9049         * stub-objc.c: Likewise.
9051 2015-07-08  Eric Botcazou  <ebotcazou@adacore.com>
9053         * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
9054         * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
9056 2015-07-08  Jakub Jelinek  <jakub@redhat.com>
9058         * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
9059         are to be removed, return NULL rather than original clauses list.
9061 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
9063         * array-notation-common.c: Adjust includes.
9064         * c-ada-spec.c: Likewise.
9065         * c-cilkplus.c: Likewise.
9066         * c-common.h: Likewise.
9067         * c-cppbuiltin.c: Likewise.
9068         * c-dump.c: Likewise.
9069         * c-format.c: Likewise.
9070         * c-gimplify.c: Likewise.
9071         * c-indentation.c: Likewise.
9072         * c-lex.c: Likewise.
9073         * c-omp.c: Likewise.
9074         * c-opts.c: Likewise.
9075         * c-pch.c: Likewise.
9076         * c-ppoutput.c: Likewise.
9077         * c-pragma.c: Likewise.
9078         * c-pretty-print.c: Likewise.
9079         * c-semantics.c: Likewise.
9080         * c-ubsan.c: Likewise.
9081         * cilk.c: Likewise.
9082         * stub-objc.c: Likewise.
9084 2015-07-07  Eric Botcazou  <ebotcazou@adacore.com>
9086         * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
9087         * c-ada-spec.c (print_ada_declaration): Skip move constructors.
9089 2015-07-01  Jason Merrill  <jason@redhat.com>
9091         * c-common.h (D_CXX11): Rename from D_CXX0X.
9092         (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
9093         * c-common.c: Adjust.
9095         * c-opts.c (c_common_post_options): Default to C++14.
9097         * c-opts.c (c_common_post_options): Highest ABI level is now 10.
9099 2015-06-30  Edward Smith-Rowland  <3dw4rd@verizon.net>
9101         Implement N4197 - Adding u8 character literals
9102         * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
9103         CPP_CHAR.
9104         * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
9105         CPP_UTF8CHAR_USERDEF tokens.
9106         * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
9107         and CPP_UTF8CHAR tokens.
9108         (lex_charconst): Treat CPP_UTF8CHAR token.
9110 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9112         PR fortran/66605
9113         * c-common.c (do_warn_unused_parameter): Move here.
9114         * c-common.h (do_warn_unused_parameter): Declare.
9116 2015-06-29  Marek Polacek  <polacek@redhat.com>
9118         PR c/66322
9119         * c-common.c (check_case_bounds): Add bool * parameter.  Set
9120         OUTSIDE_RANGE_P.
9121         (c_add_case_label): Add bool * parameter.  Pass it down to
9122         check_case_bounds.
9123         (c_do_switch_warnings): Add bool parameters.  Implement -Wswitch-bool
9124         warning here.
9125         * c-common.h (c_add_case_label, c_do_switch_warnings): Update
9126         declarations.
9128 2015-06-27  Marek Polacek  <polacek@redhat.com>
9130         * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
9131         or VECTOR_INTEGER_TYPE_P throughout.
9132         * c-gimplify.c: Likewise.
9134 2015-06-26  Marek Polacek  <polacek@redhat.com>
9136         * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
9137         * c-common.c (c_fully_fold_internal): Likewise.
9138         (c_alignof_expr): Likewise.
9139         * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
9140         * c-ubsan.c (ubsan_instrument_bounds): Likewise.
9141         * cilk.c (create_parm_list): Likewise.
9143 2015-06-26  Marek Polacek  <polacek@redhat.com>
9145         * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
9147 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
9149         * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
9150         * c-gimplify.c: Likewise.
9151         * c-pragma.c: Likewise.
9152         * c-ubsan.c: Likewise.
9153         * cilk.c: Likewise.
9155 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9157         * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
9158         ggc_hasher.
9160 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
9162         * cilk.c: Move calls.h after tm.h in the include chain.
9164 2015-06-25  Marek Polacek  <polacek@redhat.com>
9166         * array-notation-common.c: Use VAR_P throughout.
9167         * c-ada-spec.c: Likewise.
9168         * c-common.c: Likewise.
9169         * c-format.c: Likewise.
9170         * c-gimplify.c: Likewise.
9171         * c-omp.c: Likewise.
9172         * c-pragma.c: Likewise.
9173         * c-pretty-print.c: Likewise.
9174         * cilk.c: Likewise.
9176 2015-06-25  Marek Polacek  <polacek@redhat.com>
9178         * cilk.c (extract_free_variables): Use is_global_var.
9180 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
9182         * c-common.c: Don't include target-def.h.
9184 2015-06-23  Marek Polacek  <polacek@redhat.com>
9186         * c-common.c (warn_logical_operator): Use tree_int_cst_equal
9187         when comparing INTEGER_CSTs.
9189 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
9191         * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
9192         * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
9193         (dump_ada_template): Skip partially specialized types.
9195 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
9197         * c-common.c (scalar_to_vector): Use std::swap instead of manually
9198         swapping.
9200 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
9202         * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
9203         * c-ada-spec.c: Likewise.
9204         * c-cilkplus.c: Likewise.
9205         * c-common.c: Likewise.
9206         * c-common.h: Likewise.
9207         * c-cppbuiltin.c: Likewise.
9208         * c-dump.c: Likewise.
9209         * c-format.c: Likewise.
9210         * c-gimplify.c: Likewise.
9211         * c-indentation.c: Likewise.
9212         * c-lex.c: Likewise.
9213         * c-omp.c: Likewise.
9214         * c-opts.c: Likewise.
9215         * c-pch.c: Likewise.
9216         * c-ppoutput.c: Likewise.
9217         * c-pragma.c: Likewise.
9218         * c-pretty-print.c: Likewise.
9219         * c-semantics.c: Likewise.
9220         * c-ubsan.c: Likewise.
9221         * cilk.c: Likewise.
9222         * stub-objc.c: Likewise.
9224 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
9226         PR c++/65168
9227         * c-common.c (c_common_truthvalue_conversion): Warn when
9228         converting an address of a reference to a truth value.
9230 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
9232         * array-notation-common.c : Adjust include files.
9233         * c-ada-spec.c : Likewise.
9234         * c-cilkplus.c : Likewise.
9235         * c-common.c : Likewise.
9236         * c-common.h : Likewise.
9237         * c-cppbuiltin.c : Likewise.
9238         * c-dump.c : Likewise.
9239         * c-format.c : Likewise.
9240         * c-gimplify.c : Likewise.
9241         * c-indentation.c : Likewise.
9242         * c-lex.c : Likewise.
9243         * c-omp.c : Likewise.
9244         * c-opts.c : Likewise.
9245         * c-pch.c : Likewise.
9246         * c-ppoutput.c : Likewise.
9247         * c-pragma.c : Likewise.
9248         * c-pretty-print.c : Likewise.
9249         * c-semantics.c : Likewise.
9250         * c-ubsan.c : Likewise.
9251         * cilk.c : Likewise.
9252         * stub-objc.c : Likewise.
9254 2015-06-08  Marek Polacek  <polacek@redhat.com>
9256         PR c/66415
9257         * c-format.c (location_from_offset): Return LOC if LINE is null.
9259 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
9261         * c-common.h (c_parse_final_cleanups): New prototype.
9262         * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
9264 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
9266         * c-common.c (noplt): New attribute.
9267         (handle_noplt_attribute): New handler.
9269 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
9271         * array-notation-common.c: Adjust includes for restructured coretypes.h.
9272         * c-ada-spec.c: Likewise.
9273         * c-cilkplus.c: Likewise.
9274         * c-common.c: Likewise.
9275         * c-common.h: Likewise.
9276         * c-cppbuiltin.c: Likewise.
9277         * c-dump.c: Likewise.
9278         * c-format.c: Likewise.
9279         * c-gimplify.c: Likewise.
9280         * c-indentation.c: Likewise.
9281         * c-lex.c: Likewise.
9282         * c-omp.c: Likewise.
9283         * c-opts.c: Likewise.
9284         * c-pch.c: Likewise.
9285         * c-ppoutput.c: Likewise.
9286         * c-pragma.c: Likewise.
9287         * c-pretty-print.c: Likewise.
9288         * c-semantics.c: Likewise.
9289         * c-ubsan.c: Likewise.
9290         * cilk.c: Likewise.
9291         * stub-objc.c: Likewise.
9293 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
9295         PR c/66220:
9296         * c-indentation.c (should_warn_for_misleading_indentation): Use
9297         expand_location rather than expand_location_to_spelling_point.
9298         Don't warn if the guarding statement is more indented than the
9299         next/body stmts.
9301 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
9303         * c-indentation.c (warn_for_misleading_indentation): Bail out
9304         immediately if -Wmisleading-indentation isn't enabled.
9306 2015-06-01  Martin Liska  <mliska@suse.cz>
9308         * c-format.c (check_format_arg):Use new type-based pool allocator.
9309         (check_format_info_main) Likewise.
9311 2015-05-31  Eric Botcazou  <ebotcazou@adacore.com>
9313         * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
9314         (has_nontrivial_methods): Likewise.
9316 2015-05-25  Marek Polacek  <polacek@redhat.com>
9318         * c-ubsan.c (ubsan_instrument_shift): Use type0.
9320 2015-05-22  Marek Polacek  <polacek@redhat.com>
9322         PR c/47043
9323         * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
9325 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9327         * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
9328         STACK_GROWS_DOWNWARD.
9330 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9332         * c-cppbuiltin.c (c_cpp_builtins): Check the value of
9333         STACK_GROWS_DOWNWARD rather than if it is defined.
9335 2015-05-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9337         PR c/52952
9338         * c-format.c (location_column_from_byte_offset): New.
9339         (location_from_offset): New.
9340         (struct format_wanted_type): Add offset_loc field.
9341         (check_format_info): Move handling of location for extra arguments
9342         closer to the point of warning.
9343         (check_format_info_main): Pass the result of location_from_offset
9344         to warning_at.
9345         (format_type_warning): Pass the result of location_from_offset
9346         to warning_at.
9348 2015-05-20  Marek Polacek  <polacek@redhat.com>
9350         * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
9352 2015-05-20  Marek Polacek  <polacek@redhat.com>
9354         * c-ada-spec.c (dump_sloc): Use DECL_P.
9356 2015-05-20  Marek Polacek  <polacek@redhat.com>
9358         * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
9359         * c-common.c: Likewise.
9361 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
9363         * c-common.h (fe_file_change): Strengthen param from
9364         const line_map * to const line_map_ordinary *.
9365         (pp_file_change): Likewise.
9366         * c-lex.c (fe_file_change): Likewise.
9367         (cb_define): Use linemap_check_ordinary when invoking
9368         SOURCE_LINE.
9369         (cb_undef): Likewise.
9370         * c-opts.c (c_finish_options): Use linemap_check_ordinary when
9371         invoking cb_file_change.
9372         (c_finish_options): Likewise.
9373         (push_command_line_include): Likewise.
9374         (cb_file_change): Strengthen param "new_map" from
9375         const line_map * to const line_map_ordinary *.
9376         * c-ppoutput.c (cb_define): Likewise for local "map".
9377         (pp_file_change): Likewise for param "map" and local "from".
9379 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
9381         * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
9383 2015-05-18  Tom de Vries  <tom@codesourcery.com>
9385         * c-common.c (build_va_arg_1): New function.
9386         (build_va_arg): Add address operator to va_list operand if necessary.
9388 2015-05-15  Mikhail Maltsev  <maltsevm@gmail.com>
9390         PR c/48956
9391         * c-common.c (int_safely_convertible_to_real_p): Define.
9392         (unsafe_conversion_p): Check conversions involving complex types.
9393         (conversion_warning): Add new warning message for conversions which
9394         discard imaginary component.
9395         * c-common.h: (enum conversion_safety): Add new enumerator for such
9396         conversions.
9398 2015-05-14  Marek Polacek  <polacek@redhat.com>
9400         PR c/66066
9401         PR c/66127
9402         * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
9403         (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
9404         C_MAYBE_CONST_EXPR_INT_OPERANDS set.  Add FOR_INT_CONST argument and
9405         use it.  If FOR_INT_CONST, require that all evaluated operands be
9406         INTEGER_CSTs.
9408 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
9410         * c-common.h (warn_for_misleading_indentation): New prototype.
9411         * c-indentation.c: New file.
9412         * c.opt (Wmisleading-indentation): New option.
9414 2015-05-12  Tom de Vries  <tom@codesourcery.com>
9416         PR tree-optimization/66010
9417         * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
9419 2015-05-09  Jason Merrill  <jason@redhat.com>
9421         * c-opts.c (c_common_post_options): Also clear
9422         cpp_opts->cpp_warn_cxx11_compat.
9424         * c-common.h (enum cxx_dialect): Add cxx_unset.
9425         * c-common.c (cxx_dialect): Initialize to cxx_unset.
9426         * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
9428         * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
9429         (std=gnu++0x): Mark as Undocumented.
9430         (std=gnu++1y): Add deprecated message.
9432 2015-05-08  Jason Merrill  <jason@redhat.com>
9434         * c.opt (Wc++11-compat): Make primary.  Rename var warn_cxx11_compat.
9435         * c-opts.c: Adjust.
9437         * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
9439 2015-05-08  Marek Polacek  <polacek@redhat.com>
9441         PR c/64918
9442         * c.opt (Woverride-init-side-effects): New option.
9444 2015-05-07  Marek Polacek  <polacek@redhat.com>
9446         PR c/65179
9447         * c-common.c (c_fully_fold_internal): Warn when left shifting a
9448         negative value.
9449         * c.opt (Wshift-negative-value): New option.
9450         * c-opts.c (c_common_post_options): Set warn_shift_negative_value
9451         when -Wextra and C99/C++11 mode.
9453 2015-05-07  Marek Polacek  <polacek@redhat.com>
9454             Martin Uecker  <uecker@eecs.berkeley.edu>
9456         * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
9457         flexible member array-like members if SANITIZE_BOUNDS_STRICT.
9459 2015-05-05  Jason Merrill  <jason@redhat.com>
9461         * c.opt (Wterminate): New.
9463 2015-04-30  Marek Polacek  <polacek@redhat.com>
9465         * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
9466         require that the non-constant be of a boolean type.
9468 2015-04-29  Josh Triplett  <josh@joshtriplett.org>
9470         * c-common.c (handle_section_attribute): Refactor to reduce
9471         nesting and distinguish between error cases.
9473 2015-04-29  Marek Polacek  <polacek@redhat.com>
9475         PR c/64610
9476         * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
9477         with 0/1.
9479 2015-04-29  Jakub Jelinek  <jakub@redhat.com>
9481         * c-common.h (omp_clause_mask): Unconditionally define as a class.
9482         Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
9483         HOST_BITS_PER_WIDE_INT.
9485 2015-04-28  Tom de Vries  <tom@codesourcery.com>
9487         PR tree-optimization/65887
9488         * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
9490 2015-04-28  Eric Botcazou  <ebotcazou@adacore.com>
9491             Pierre-Marie de Rodat  <derodat@adacore.com>
9493         * c-ada-spec.c (in_function): Delete.
9494         (dump_generic_ada_node): Do not change in_function and remove the
9495         redundant code dealing with it.
9496         (print_ada_declaration): Do not change in_function.  Use INDENT_INCR.
9497         (print_ada_methods): Output the static member functions in a nested
9498         package after the regular methods as well as associated renamings.
9500 2015-04-24  Marek Polacek  <polacek@redhat.com>
9502         PR c/65830
9503         * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
9504         and OPT_Wshift_count_overflow.
9506         PR c/63357
9507         * c-common.c (warn_logical_operator): Warn if the operands have the
9508         same expressions.
9510 2015-04-24  Marek Polacek  <polacek@redhat.com>
9512         PR c/61534
9513         * c-common.c (warn_logical_operator): Bail if either operand comes
9514         from a macro expansion.
9516 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9518         PR target/55143
9519         * c-common.c (c_default_pointer_mode): Add definition.
9520         * c-common.h (c_default_pointer_mode): Add declaration.
9522 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
9524         * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
9525         on record_builtin_type argument.
9527 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
9529         PR c/65120
9530         * c-common.c (warn_logical_not_parentheses): Don't warn for
9531         !x == 0 or !x != 0.
9533 2015-03-07  Marek Polacek  <polacek@redhat.com>
9535         PR sanitizer/65280
9536         * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
9537         before trying to figure out whether we have a flexible array member.
9539 2015-03-06  Eric Botcazou  <ebotcazou@adacore.com>
9540             Jonathan Wakely  <jwakely.gcc@gmail.com>
9542         * c-ada-spec.c (dump_ada_double_name): Fix pasto.
9544 2015-03-05  Eric Botcazou  <ebotcazou@adacore.com>
9546         PR ada/65319
9547         * c-ada-spec.c (print_destructor): Remove obsolete code.
9549 2015-03-01  Eric Botcazou  <ebotcazou@adacore.com>
9551         * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
9552         (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
9553         DECL_TEMPLATE_RESULT emulations.
9554         (dump_ada_template)): Add guard for TYPE_METHODS.
9556 2015-02-27  Marek Polacek  <polacek@redhat.com>
9558         PR c/65040
9559         * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
9561 2015-02-27  Kai Tietz  <ktietz@redhat.com>
9563         PR c/35330
9564         * c-pragma.c (handle_pragma_weak): Do not try to create
9565         weak/alias of declarations not being function, or variable
9566         declarations.
9568 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
9570         PR libgomp/64625
9571         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
9572         Remove macros.
9573         (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
9575 2015-02-16  Marek Polacek  <polacek@redhat.com>
9577         PR c/65066
9578         * c-format.c (check_format_types): Handle null param.
9580 2015-02-13  Marek Polacek  <polacek@redhat.com>
9582         PR c/65040
9583         * c-format.c (check_format_types): Don't warn about different
9584         signedness if the original value is in the range of WANTED_TYPE.
9586 2015-02-12  Jason Merrill  <jason@redhat.com>
9588         PR c++/64956
9589         * c-opts.c (c_common_post_options): Change flag_abi_version from 0
9590         to the current highest version.
9591         * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
9593 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
9595         PR c/64824
9596         PR c/64868
9597         * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
9598         instead of RDIV_EXPR.  Use build_binary_op instead of
9599         build2_loc.
9601 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
9603         * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
9604         to pass input_location as first argument.
9606 2015-01-23  Tom de Vries  <tom@codesourcery.com>
9608         PR libgomp/64672
9609         * c.opt (fopenacc): Mark as LTO option.
9611 2015-01-23  Tom de Vries  <tom@codesourcery.com>
9613         PR libgomp/64707
9614         * c.opt (fopenmp): Mark as LTO option.
9616 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
9618         PR c/63307
9619         * cilk.c (fill_decls_vec): Only put decls into vector v.
9620         (compare_decls): Fix up formatting.
9622 2015-01-21  Igor Zamyatin  <igor.zamyatin@intel.com>
9624         PR c/63307
9625         * cilk.c: Include vec.h.
9626         (struct cilk_decls): New structure.
9627         (wrapper_parm_cb): Split this function to...
9628         (fill_decls_vec): ...this...
9629         (create_parm_list): ...and this.
9630         (compare_decls): New function.
9631         (for_local_cb): Remove.
9632         (wrapper_local_cb): Ditto.
9633         (build_wrapper_type): For now first traverse and fill vector of
9634         declarations then sort it and then deal with sorted vector.
9635         (cilk_outline): Ditto.
9636         (declare_one_free_variable): Ditto.
9638 2015-01-21  Jason Merrill  <jason@redhat.com>
9640         PR c++/64629
9641         * c-format.c (check_format_arg): Call decl_constant_value.
9643 2015-01-19  Martin Liska  <mliska@suse.cz>
9645         * c-common.c (handle_noicf_attribute): New function.
9647 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
9648             Bernd Schmidt  <bernds@codesourcery.com>
9649             James Norris  <jnorris@codesourcery.com>
9650             Cesar Philippidis  <cesar@codesourcery.com>
9651             Ilmir Usmanov  <i.usmanov@samsung.com>
9652             Jakub Jelinek  <jakub@redhat.com>
9654         * c.opt (fopenacc): New option.
9655         * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
9656         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
9657         New macros.
9658         * c-common.h (c_finish_oacc_wait): New prototype.
9659         * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
9660         (c_finish_oacc_wait): New function.
9661         * c-pragma.c (oacc_pragmas): New variable.
9662         (c_pp_lookup_pragma, init_pragma): Handle it.
9663         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
9664         PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
9665         PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
9666         PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
9667         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
9668         PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
9669         PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
9670         PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
9671         PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
9672         PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
9673         PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
9674         PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
9675         PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
9676         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
9677         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
9678         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
9679         PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
9680         PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
9681         PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
9682         PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
9683         PRAGMA_OACC_CLAUSE_WORKER.
9685 2015-01-14  Marcos Diaz  <marcos.diaz@tallertechnologies.com>
9687         * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
9688         for the new option fstack-protector_explicit.
9689         * c-common.c (c_common_attribute_table): Add stack_protect attribute.
9690         (handle_stack_protect_attribute): New function.
9692 2015-01-13  Martin Uecker  <uecker@eecs.berkeley.edu>
9694         * c.opt: New option -Warray-bounds=.
9696 2015-01-09  Michael Collison  <michael.collison@linaro.org>
9698         * array-notation-common.c: Include hash-set.h, machmode.h,
9699         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
9700         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
9701         * c-ada-spec.c: Ditto.
9702         * c-cilkplus.c: Ditto.
9703         * c-common.c: Include input.h due to flattening of tree.h.
9704         Define macro GCC_C_COMMON_C.
9705         * c-common.h: Flatten tree.h header files into c-common.h.
9706         Remove include of tree-core.h.
9707         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
9708         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
9709         fold-const.h, wide-int.h, and inchash.h due to
9710         flattening of tree.h.
9711         * c-dump.c: Ditto.
9712         * c-format.c: Flatten tree.h header files into c-common.h.
9713         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
9714         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
9715         fold-const.h, wide-int.h, and inchash.h due to
9716         flattening of tree.h.
9717         * c-dump.c: Include hash-set.h, machmode.h,
9718         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
9719         fold-const.h, wide-int.h, and inchash.h due to
9720         flattening of tree.h.
9721         * c-format.c: Include hash-set.h, machmode.h,
9722         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
9723         fold-const.h, wide-int.h, inchash.h and real.h due to
9724         flattening of tree.h.
9725         * c-gimplify.c: Include hash-set.h, machmode.h,
9726         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
9727         fold-const.h, wide-int.h, and inchash.h due to
9728         flattening of tree.h.
9729         * cilk.c: Ditto.
9730         * c-lex.c: Ditto.
9731         * c-omp.c: Ditto.
9732         * c-opts.c: Ditto.
9733         * c-pch.c: Ditto.
9734         * c-ppoutput.c: Ditto.
9735         * c-pragma.c: Ditto.
9736         * c-pretty-print.c: Ditto.
9737         * c-semantics.c: Ditto.
9738         * c-ubsan.c: Ditto.
9739         * stub-objc.c: Ditto.
9741 2015-01-08  Jason Merrill  <jason@redhat.com>
9743         * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
9744         do_ubsan_in_current_function.
9745         (ubsan_maybe_instrument_reference_or_call): Likewise.
9746         * c-ubsan.h: Declare it.
9748 2015-01-08  Mike Stump  <mikestump@comcast.net>
9750         * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
9752 2015-01-07  Marek Polacek  <polacek@redhat.com>
9754         PR c/64440
9755         * c-common.c (c_fully_fold_internal): Warn for division and modulo
9756         if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
9758 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
9760         PR c++/31397
9761         * c.opt (Wsuggest-override): New option.
9763 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
9765         Update copyright years.
9767 2015-01-05  Marek Polacek  <polacek@redhat.com>
9769         PR c/64423
9770         * c-common.c (warn_array_subscript_with_type_char): Add location_t
9771         parameter.  Use it.
9772         * c-common.h (warn_array_subscript_with_type_char): Update
9773         declaration.
9775 2014-12-20  Edward Smith-Rowland  <3dw4rd@verizon.net>
9777         * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
9778         Control macro with flag_sized_deallocation.
9780 2014-12-20  Martin Uecker  <uecker@eecs.berkeley.edu>
9782         * c.opt (Wdiscarded-array-qualifiers): New option.
9784 2014-12-19  Jakub Jelinek  <jakub@redhat.com>
9786         PR preprocessor/63831
9787         * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
9788         and __has_cpp_attribute here.
9789         * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
9790         c_common_has_attribute.
9791         * c-common.h (c_common_has_attribute): New prototype.
9792         * c-lex.c (init_c_lex): Set cb->has_attribute to
9793         c_common_has_attribute instead of cb_has_attribute.
9794         (get_token_no_padding): New function.
9795         (cb_has_attribute): Renamed to ...
9796         (c_common_has_attribute): ... this.  No longer static.  Use
9797         get_token_no_padding, require ()s, don't build TREE_LIST
9798         unnecessarily, fix up formatting, adjust diagnostics, call
9799         init_attributes.
9801 2014-12-15  Jason Merrill  <jason@redhat.com>
9803         * c.opt (-fsized-deallocation, -Wc++14-compat): New.
9804         (-Wsized-deallocation): New.
9805         * c-opts.c (c_common_post_options): -fsized-deallocation defaults
9806         to on in C++14 and up.
9808 2014-12-11  Jason Merrill  <jason@redhat.com>
9810         * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
9812         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
9813         we aren't complaining about VLAs.
9815 2014-12-06  Marek Polacek  <polacek@redhat.com>
9817         PR tree-optimization/64183
9818         * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
9819         shift-expression if it is integer_type_node.  Use types_compatible_p.
9821 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
9823         * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
9824         last argument from create_tmp_var_raw and create_tmp_var calls.
9825         * cilk.c (gimplify_cilk_spawn): Likewise.
9826         * c-omp.c (c_finish_omp_atomic): Likewise.
9828 2014-11-28  Marek Polacek  <polacek@redhat.com>
9830         * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
9831         instead of unsigned_type_node.
9833 2014-11-28  Marek Polacek  <polacek@redhat.com>
9835         PR c/63862
9836         * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
9837         to op1_utype.
9838         * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
9839         expression to unsigned_type_node.
9841 2014-11-20  Mark Wielaard  <mjw@redhat.com>
9843         PR debug/38757
9844         * c-opts.c (set_std_c89): Set lang_hooks.name.
9845         (set_std_c99): Likewise.
9846         (set_std_c11): Likewise.
9847         (set_std_cxx98): Likewise.
9848         (set_std_cxx11): Likewise.
9849         (set_std_cxx14): Likewise.
9850         (set_std_cxx1z): Likewise.
9852 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
9854         PR target/63764
9855         * c-common.h (convert_vector_to_pointer_for_subscript): Change
9856         return type to bool.
9857         * c-common.c: Include gimple-expr.h.
9858         (convert_vector_to_pointer_for_subscript): Change return type to
9859         bool.  If *vecp is not lvalue_p and has VECTOR_TYPE, return true
9860         and copy it into a TARGET_EXPR and use that instead of *vecp
9861         directly.
9863 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
9865         Merger of git branch "gimple-classes-v2-option-3".
9866         * ChangeLog.gimple-classes: New.
9867         * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
9868         from being just a vec<gimple> to a vec<gbind *>.
9870 2014-11-18  Jakub Jelinek  <jakub@redhat.com>
9872         PR sanitizer/63813
9873         * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
9874         argument to ptype, set type to TREE_TYPE (ptype).  Don't call
9875         get_pointer_alignment for non-pointers.  Use ptype, or if it is
9876         reference type, corresponding pointer type, as type of kind
9877         argument.
9878         (ubsan_maybe_instrument_reference,
9879         ubsan_maybe_instrument_member_call): Adjust callers.
9881 2014-11-15  Marek Polacek  <polacek@redhat.com>
9883         PR middle-end/63884
9884         * array-notation-common.c (is_sec_implicit_index_fn): Return false
9885         for NULL fndecl.
9886         (extract_array_notation_exprs): Return for NULL node.
9888 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
9890         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
9891         undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
9893 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
9895         PR c/59708
9896         * c-common.c (check_builtin_function_arguments): Handle
9897         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
9899 2014-11-10  Andi Kleen  <ak@linux.intel.com>
9901         PR c/60804
9902         * c-common.h (check_no_cilk): Declare.
9903         * cilk.c (get_error_location): New function.
9904         (check_no_cilk): Dito.
9906 2014-11-10  Andi Kleen  <ak@linux.intel.com>
9908         * cilk.c (recognize_spawn): Use expression location
9909         for error message.
9911 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
9913         * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
9915 2014-11-10  Edward Smith-Rowland  <3dw4rd@verizon.net>
9917         * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
9918         (__cpp_rtti, __cpp_exceptions): New macros for C++98;
9919         (__cpp_range_based_for, __cpp_initializer_lists,
9920         __cpp_delegating_constructors, __cpp_nsdmi,
9921         __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
9922         for C++11; (__cpp_attribute_deprecated): Remove in favor of
9923         __has_cpp_attribute.
9924         * c-lex.c (cb_has_attribute): New callback CPP function;
9925         (init_c_lex): Set has_attribute callback.
9927 2014-11-04  Richard Biener  <rguenther@suse.de>
9929         * c-common.c (shorten_compare): Do not shorten mixed
9930         DFP and non-DFP compares.
9932 2014-11-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
9934         * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
9935         * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
9936         Commentary and rearrangement of tests.
9937         * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
9938         Commentary and rearrangement of tests.
9939         * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto.
9940         * g++.dg/cpp1y/feat-cxx98.C: Commentary.
9942 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
9944         * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
9945         enum from machine_mode.
9947 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
9949         * c-common.c: Adjust include files.
9950         * c-gimplify.c: Ditto.
9951         * cilk.c: Ditto.
9952         * c-pragma.c: Ditto.
9953         * c-ubsan.c: Ditto.
9955 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
9957         * c-gimplify.c: Adjust include files.
9959 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9961         PR c++/53061
9962         * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
9963         c_common_initialize_diagnostics.
9964         * c-common.h: Likewise.
9966 2014-10-24  Marek Polacek  <polacek@redhat.com>
9968         PR c/56980
9969         * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
9970         print "struct"/"union"/"enum" for typedefed names.
9972 2014-10-23  Marek Polacek  <polacek@redhat.com>
9974         * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
9975         in unsigned type.
9977 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
9978             Yury Gribov  <y.gribov@samsung.com>
9980         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
9981         ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
9982         instead of flag_sanitize_recover as bool flag.
9984 2014-10-21  Kirill Yukhin  <kirill.yukhin@intel.com>
9986         * cilk.c: Revert previous change.
9988 2014-10-20  Igor Zamyatin  <igor.zamyatin@intel.com>
9990         PR c/63307
9991         * cilk.c: Include vec.h.
9992         (struct cilk_decls): New structure.
9993         (wrapper_parm_cb): Split this function to...
9994         (fill_decls_vec): ...this...
9995         (create_parm_list): ...and this.
9996         (compare_decls): New function.
9997         (for_local_cb): Remove.
9998         (wrapper_local_cb): Ditto.
9999         (build_wrapper_type): For now first traverse and fill vector of
10000         declarations then sort it and then deal with sorted vector.
10001         (cilk_outline): Ditto.
10002         (declare_one_free_variable): Ditto.
10004 2014-10-17  Marek Polacek  <polacek@redhat.com>
10006         * c-opts.c (c_common_post_options): Set warn_implicit_int.
10007         * c.opt (Wimplicit-int): Initialize to -1.
10009 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
10011         * c-pragma.c: Adjust include files.
10012         * c-semantics.c: Likewise.
10014 2014-10-16  DJ Delorie  <dj@redhat.com>
10016         * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
10017         multiples of bytes.
10019 2014-10-14  Jason Merrill  <jason@redhat.com>
10021         PR c++/63455
10022         * c-common.h (CPP_PREPARSED_EXPR): New.
10023         (N_CP_TTYPES): Adjust.
10025 2014-10-15  Marek Polacek  <polacek@redhat.com>
10027         * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
10029 2014-10-14  DJ Delorie  <dj@redhat.com>
10031         * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
10032         types, not just __int128.
10033         * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
10034         types, not just __int128.
10035         (cpp_atomic_builtins): Round pointer sizes up.
10036         (type_suffix): Use type precision, not specific types.
10037         * c-common.c (c_common_reswords): Remove __int128 special case.
10038         (c_common_type_for_size): Check for all __intN types, not just
10039         __int128.
10040         (c_common_type_for_mode): Likewise.
10041         (c_common_signed_or_unsigned_type): Likewise.
10042         (c_build_bitfield_integer_type): Likewise.
10043         (c_common_nodes_and_builtins): Likewise.
10044         (keyword_begins_type_specifier): Likewise.
10045         * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
10046         __intN variants.
10048 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
10050         * c-common.c: Use hash_table instead of hashtab.
10052 2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>
10054         * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
10055         C++11 section.
10057 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
10059         PR c++/54427
10060         PR c++/57198
10061         PR c++/58845
10062         * c-common.c (warn_logical_operator): Punt for vectors.
10064 2014-10-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
10066         Implement SD-6: SG10 Feature Test Recommendations
10067         * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
10068         macros and the __has_header macro.
10070 2014-09-30  Jason Merrill  <jason@redhat.com>
10072         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
10073         RID_IS_TRIVIALLY_CONSTRUCTIBLE.
10074         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
10076         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
10077         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
10079         * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
10080         * c-common.c (c_common_reswords): Remove __is_convertible_to.
10082 2014-09-24  Marek Polacek  <polacek@redhat.com>
10084         PR c/61405
10085         PR c/53874
10086         * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
10088 2014-09-23  Andi Kleen  <ak@linux.intel.com>
10090         * c-common.c (handle_no_reorder_attribute): New function.
10091         (c_common_attribute_table): Add no_reorder attribute.
10093 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
10095         * c-cppbuiltin.c (c_cpp_builtins): Define
10096         __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
10097         modes.
10099 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
10101         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
10102         for supported floating-point modes.
10104 2014-09-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10106         * c.opt (Wpsabi): Use LangEnabledBy.
10107         * c-opts.c (c_common_handle_option): Do not handle here.
10109 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
10111         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
10112         macros for floating-point modes.
10114 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
10116         PR target/58757
10117         * c-cppbuiltin.c (builtin_define_float_constants): Correct
10118         __*_DENORM_MIN__ without denormals.
10120 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
10122         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
10123         ubsan_instrument_vla, ubsan_instrument_return): Adjust
10124         ubsan_create_data callers.
10125         (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
10126         index is constant or BIT_AND_EXPR with constant mask and is
10127         small enough for the bound.
10128         * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
10129         ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
10131 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10133         * c.opt: Add CppReason to various flags.
10134         (Wdate-time): Re-sort.
10135         * c-common.c: Include c-common.h earlier.
10136         (struct reason_option_codes_t): Delete.
10137         (c_option_controlling_cpp_error): Prefix global type and struct
10138         with cpp_.
10140 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10142         * c.opt (Wnormalized): New.
10143         (Wnormalized=): Use Enum and Reject Negative.
10144         * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
10146 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
10148         * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
10149         digits of floating-point modes if -fbuilding-libgcc.
10151 2014-09-05  Joseph Myers  <joseph@codesourcery.com>
10153         * c-cppbuiltin.c (c_cpp_builtins): Also define
10154         __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
10155         __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
10156         __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
10157         __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
10158         __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
10159         __LIBGCC_STACK_GROWS_DOWNWARD__,
10160         __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
10161         __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
10162         __LIBGCC_DWARF_FRAME_REGISTERS__,
10163         __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
10164         __LIBGCC_STACK_POINTER_REGNUM__ and
10165         __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
10166         (builtin_define_with_value): Handle backslash-escaping in string
10167         macro values.
10169 2014-09-05  Richard Biener  <rguenther@suse.de>
10171         PR middle-end/63148
10172         * c-format.c (check_format_arg): Properly handle
10173         effectively signed POINTER_PLUS_EXPR offset.
10175 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10177         * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
10178         Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
10179         (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
10180         and Init.
10181         * c-opts.c (c_common_handle_option): Do not handle here.
10182         (sanitize_cpp_opts): Likewise.
10183         * c-common.c (struct reason_option_codes_t): Handle
10184         CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
10186 2014-09-03  Marek Polacek  <polacek@redhat.com>
10188         * c.opt (Wlogical-not-parentheses): Enable by -Wall.
10190 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
10191             Balaji V. Iyer  <balaji.v.iyer@intel.com>
10192             Igor Zamyatin  <igor.zamyatin@intel.com>
10194         * c-cilkplus.c (cilk_for_number_of_iterations): New function.
10195         * c-common.c (c_common_reswords): Added _Cilk_for.
10196         * c-common.h (enum rid): Added RID_CILK_FOR.
10197         (cilk_for_number_of_iterations): Add declaration.
10198         * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
10199         CILK_FOR.
10200         * c-pragma.c (init_pragma): Register "grainsize" pragma.
10201         * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
10203 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10205         * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
10206         Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
10207         Wundef): Use CPP, Var and Init.
10208         * c-opts.c (c_common_handle_option): Do not handle the above flags here.
10210 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10212         * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
10213         * c-opts.c (c_common_handle_option): Do not handle here.
10215 2014-08-25  Jason Merrill  <jason@redhat.com>
10217         * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
10218         -std=c++14 and -std=gnu++14, rather than the reverse.
10219         * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
10220         OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
10221         * c-common.h (cxx_dialect): Remove cxx1y.
10223 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
10225         * c-common.h (enum cxx_dialect): Add cxx14.
10226         * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
10227         * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
10228         cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
10230 2014-08-22  Jason Merrill  <jason@redhat.com>
10232         * c.opt (std=gnu++17): Fix alias.
10234 2014-08-22  Marek Polacek  <polacek@redhat.com>
10236         PR c++/62199
10237         * c-common.c (warn_logical_not_parentheses): Don't check LHS.  Don't
10238         check for vector types.  Drop LHS argument.
10239         * c-common.h (warn_logical_not_parentheses): Adjust.
10241 2014-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10243         * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
10244         (Wmultichar): Likewise.
10245         (Wdate-time): Use C-family languages instead of Common. Use CPP
10246         and Var.
10247         * c-opts.c (c_common_handle_option): Do not handle the above
10248         options here.
10249         (sanitize_cpp_opts): Likewise.
10251 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10253         PR fortran/44054
10254         * c-opts.c: Include tree-diagnostics.h.
10255         (c_diagnostic_finalizer): New.
10256         (c_common_initialize_diagnostics): Use it.
10258 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10260         PR preprocessor/51303
10261         * c-common.c (struct reason_option_codes_t option_codes):
10262         Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
10264 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10266         PR c/60975
10267         PR c/53063
10268         * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
10269         * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
10270         (c_common_post_options): Call init_global_opts_from_cpp.
10271         (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
10273 2014-08-19  Marek Polacek  <polacek@redhat.com>
10275         PR c++/62153
10276         * c-common.c (maybe_warn_bool_compare): New function.
10277         * c-common.h (maybe_warn_bool_compare): Declare.
10278         * c.opt (Wbool-compare): New option.
10280 2014-08-19  Marek Polacek  <polacek@redhat.com>
10282         * c.opt (Wc99-c11-compat): New option.
10284 2014-08-19  Marek Polacek  <polacek@redhat.com>
10286         * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
10287         to warn_c90_c99_compat.
10288         * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
10289         to -1.
10291 2014-08-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10292             Steven Bosscher  <steven@gcc.gnu.org>
10294         PR c/52952
10295         * c-format.c: Add extra_arg_loc and format_string_loc to struct
10296         format_check_results.
10297         (check_function_format): Use true and add comment for boolean
10298         argument.
10299         (finish_dollar_format_checking): Use explicit location when warning.
10300         (check_format_info): Likewise.
10301         (check_format_arg): Set extra_arg_loc and format_string_loc.
10302         (check_format_info_main): Use explicit location when warning.
10303         (check_format_types): Pass explicit location.
10304         (format_type_warning): Likewise.
10306 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10308         PR fortran/44054
10309         * c-format.c: Handle Fortran flags.
10311 2014-08-12  Igor Zamyatin  <igor.zamyatin@intel.com>
10313         PR other/61962
10314         * array-notation-common.c (find_rank): Added handling for other
10315         types of references.
10317 2014-08-10  Marek Polacek  <polacek@redhat.com>
10319         PR c/51849
10320         * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
10321         * c.opt (Wc90-c99-compat): Add option.
10323 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
10325         * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
10327 2014-08-03  Marek Polacek  <polacek@redhat.com>
10329         * c-common.c (check_case_value): Add location_t parameter.  Use it.
10330         (c_add_case_label): Pass loc to check_case_value.
10332 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
10334         * cilk.c: Use hash_map instead of pointer_map.
10336 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
10338         * c-gimplify.c: Use hash_set instead of pointer_set.
10340 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
10342         PR middle-end/61455
10343         * array-notation-common.c (extract_array_notation_exprs): Handling
10344         of DECL_EXPR added.
10346 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
10348         * c-common.h (min_align_of_type): Removed prototype.
10349         * c-common.c (min_align_of_type): Removed.
10350         * c-ubsan.h (ubsan_maybe_instrument_reference,
10351         ubsan_maybe_instrument_member_call): New prototypes.
10352         * c-ubsan.c: Include stor-layout.h and builtins.h.
10353         (ubsan_maybe_instrument_reference_or_call,
10354         ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
10355         functions.
10357 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
10359         PR c++/60517
10360         * c.opt (-Wreturn-local-addr): Move to common.opt.
10362 2014-07-30  Jason Merrill  <jason@redhat.com>
10364         PR c++/61659
10365         PR c++/61687
10366         Revert:
10367         * c.opt (-fuse-all-virtuals): New.
10369 2014-07-30  Tom Tromey  <tromey@redhat.com>
10371         PR c/59855
10372         * c.opt (Wdesignated-init): New option.
10373         * c-common.c (c_common_attribute_table): Add "designated_init".
10374         (handle_designated_init): New function.
10376 2014-07-24  Marek Polacek  <polacek@redhat.com>
10378         PR c/57653
10379         * c-opts.c (c_finish_options): If -imacros is in effect, return.
10381 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
10383         PR preprocessor/60723 - missing system-ness marks for macro tokens
10384         * c-ppoutput.c (struct print::prev_was_system_token): New data
10385         member.
10386         (init_pp_output): Initialize it.
10387         (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
10388         (do_line_change): Return a flag saying if a line marker was
10389         emitted or not.
10390         (scan_translation_unit): Detect if the system-ness of the token we
10391         are about to emit is different from the one of the previously
10392         emitted token.  If so, emit a line marker.  Avoid emitting useless
10393         adjacent line markers.  Avoid emitting line markers for tokens
10394         originating from the expansion of built-in macros.
10395         (scan_translation_unit_directives_only): Adjust.
10397 2014-07-15  Marek Polacek  <polacek@redhat.com>
10399         * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
10400         TYPE_MAX_VALUE is NULL.
10402 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
10404         PR middle-end/61294
10405         * c.opt (Wmemset-transposed-args): New warning.
10407 2014-07-10  Jason Merrill  <jason@redhat.com>
10409         PR c++/61659
10410         PR c++/61687
10411         * c.opt (-fuse-all-virtuals): New.
10413 2014-07-09  Richard Biener  <rguenther@suse.de>
10415         PR c-family/61741
10416         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
10417         using unsigned arithmetic if overflow does not wrap instead of
10418         if overflow is undefined.
10420 2014-07-06  Marek Polacek  <polacek@redhat.com>
10422         PR c/6940
10423         * c.opt (Wsizeof-array-argument): New option.
10425 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
10427         * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
10428         comments->count <= 1, as comments->entries might be NULL.
10430 2014-07-01  Marek Polacek  <polacek@redhat.com>
10432         * c.opt (Wint-conversion): New option.
10434 2014-07-01  Marek Polacek  <polacek@redhat.com>
10436         PR c/58286
10437         * c.opt (Wincompatible-pointer-types): New option.
10439 2014-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
10441         PR c++/51400
10442         * c-common.c (handle_noreturn_attribute, handle_const_attribute):
10443         Do not discard TYPE_QUALS of type.
10445 2014-06-26  Jason Merrill  <jason@redhat.com>
10447         * c-common.h (enum cxx_dialect): Add cxx1z.
10448         * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
10449         * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
10451 2014-06-26  Teresa Johnson  <tejohnson@google.com>
10453         * c-common.h (get_dump_info): Declare.
10454         * c-gimplify.c (c_genericize): Use saved dump files.
10455         * c-opts.c (c_common_parse_file): Begin and end dumps
10456         once around parsing invocation.
10457         (get_dump_info): New function.
10459 2014-06-23  Marek Polacek  <polacek@redhat.com>
10460             Andrew MacLeod  <amacleod@redhat.com>
10462         PR c/61553
10463         * c-common.c (get_atomic_generic_size): Don't segfault if the
10464         type doesn't have a size.
10466 2014-06-20  Marek Polacek  <polacek@redhat.com>
10468         * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
10469         (ubsan_walk_array_refs_r): New function.
10470         (c_genericize): Instrument array bounds.
10471         * c-ubsan.c: Include "internal-fn.h".
10472         (ubsan_instrument_division): Mark instrumented arrays as having
10473         side effects.  Adjust ubsan_type_descriptor call.
10474         (ubsan_instrument_shift): Likewise.
10475         (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
10476         (ubsan_instrument_bounds): New function.
10477         (ubsan_array_ref_instrumented_p): New function.
10478         (ubsan_maybe_instrument_array_ref): New function.
10479         * c-ubsan.h (ubsan_instrument_bounds): Declare.
10480         (ubsan_array_ref_instrumented_p): Declare.
10481         (ubsan_maybe_instrument_array_ref): Declare.
10483 2014-06-20  Hale Wang  <hale.wang@arm.com>
10485         PR lto/61123
10486         * c.opt (fshort-enums): Add to LTO.
10487         * c.opt (fshort-wchar): Likewise.
10489 2014-06-16  Marek Polacek  <polacek@redhat.com>
10491         PR c/60439
10492         * c.opt (Wswitch-bool): Add Var.
10494 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
10496         PR middle-end/61486
10497         * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
10498         #pragma omp target teams or
10499         #pragma omp {,target }teams distribute simd.
10501 2014-06-12  Jason Merrill  <jason@redhat.com>
10503         * c.opt (Wabi=, fabi-compat-version): New.
10504         * c-opts.c (c_common_handle_option): Handle -Wabi=.
10505         (c_common_post_options): Handle flag_abi_compat_version default.
10506         Disallow -fabi-compat-version=1.
10507         * c-common.h (abi_version_crosses): New.
10509 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
10511         * c-common.c (handle_section_attribute): Update handling for
10512         section names that are no longer trees.
10514 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
10516         PR fortran/60928
10517         * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
10518         (omp_pragmas): ... back here.
10520 2014-06-05  Marek Polacek  <polacek@redhat.com>
10522         PR c/49706
10523         * c-common.c (warn_logical_not_parentheses): New function.
10524         * c-common.h (warn_logical_not_parentheses): Declare.
10525         * c.opt (Wlogical-not-parentheses): New option.
10527 2014-06-04  Marek Polacek  <polacek@redhat.com>
10529         PR c/30020
10530         * c-common.c (check_case_bounds): Add location parameter.
10531         Use it.
10532         (c_add_case_label): Pass loc to check_case_bounds.
10534 2014-06-03  Marek Polacek  <polacek@redhat.com>
10536         PR c/60439
10537         * c.opt (Wswitch-bool): New option.
10539 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
10541         * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
10542         Remove prototypes.
10543         (record_types_used_by_current_var_decl): Move prototype to where
10544         it belongs.
10546         * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
10547         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
10548         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
10550 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
10552         * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
10553         * c-common.c (c_common_nodes_and_builtins): Don't initialize
10554         void_zero_node.
10555         * c-pretty-print.c (pp_c_void_constant): New function.
10556         (c_pretty_printer::constant, c_pretty_printer::primary_expression)
10557         (c_pretty_printer::expression): Handle VOID_CST.
10558         * cilk.c (extract_free_variables): Likewise.
10559         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
10560         (ubsan_instrument_vla): Use void_node instead of void_zero_node.
10562 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
10564         * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
10565         * c-pragma.c (push_alignment): Adjust.
10566         (handle_pragma_push_options): Likewise.
10568 2014-05-09  Marek Polacek  <polacek@redhat.com>
10570         PR c/50459
10571         * c-common.c (check_user_alignment): Return -1 if alignment is error
10572         node.
10573         (handle_aligned_attribute): Don't call default_conversion on
10574         FUNCTION_DECLs.
10575         (handle_vector_size_attribute): Likewise.
10576         (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
10577         (handle_sentinel_attribute): Call default_conversion and allow even
10578         integral types as an argument.
10580 2014-05-08  Marek Polacek  <polacek@redhat.com>
10582         PR c/61053
10583         * c-common.c (min_align_of_type): New function factored out from...
10584         (c_sizeof_or_alignof_type): ...here.
10585         * c-common.h (min_align_of_type): Declare.
10587 2014-05-08  Marek Polacek  <polacek@redhat.com>
10589         PR c/61077
10590         * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
10591         parameter type of main.
10593 2014-05-07  DJ Delorie  <dj@redhat.com>
10595         * c-cppbuiltin.c (print_bits_of_hex): New.
10596         (builtin_define_type_minmax): Print values using hex so as not to
10597         require a pre-computed list of string values.
10599 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
10600             Mike Stump  <mikestump@comcast.net>
10601             Richard Sandiford  <rdsandiford@googlemail.com>
10603         * c-ada-spec.c: Include wide-int.h.
10604         (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
10605         (dump_generic_ada_node): Use wide-int interfaces.
10606         * c-common.c: Include wide-int-print.h.
10607         (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
10608         (pointer_int_sum): Use wide-int interfaces.
10609         (c_common_nodes_and_builtins): Use make_int_cst.
10610         (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
10611         (handle_alloc_size_attribute): Use wide-int interfaces.
10612         (get_nonnull_operand): Likewise.
10613         * c-format.c (get_constant): Use tree_fits_uhwi_p.
10614         * c-lex.c: Include wide-int.h.
10615         (narrowest_unsigned_type): Take a widest_int rather than two
10616         HOST_WIDE_INTs.
10617         (narrowest_signed_type): Likewise.
10618         (interpret_integer): Update accordingly.  Use wide-int interfaces.
10619         (lex_charconst): Use wide-int interfaces.
10620         * c-pretty-print.c: Include wide-int.h.
10621         (pp_c_integer_constant): Use wide-int interfaces.
10622         * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
10623         INT_CST_LT_UNSIGNED.
10625 2014-05-06  Richard Biener  <rguenther@suse.de>
10627         * c-opts.c (c_common_post_options): For -freestanding,
10628         -fno-hosted and -fno-builtin disable pattern recognition
10629         if not enabled explicitely.
10631 2014-05-02  Marek Polacek  <polacek@redhat.com>
10633         * c.opt (Wsizeof-pointer-memaccess): Describe option.
10635 2014-05-01  Marek Polacek  <polacek@redhat.com>
10637         PR c/43245
10638         * c.opt (Wdiscarded-qualifiers): Add.
10640 2014-04-30  Marek Polacek  <polacek@redhat.com>
10642         * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs.  Perform
10643         INT_MIN / -1 sanitization only for integer types.
10645 2014-04-25  Marek Polacek  <polacek@redhat.com>
10647         PR c/18079
10648         * c-common.c (handle_noinline_attribute): Warn if the attribute
10649         conflicts with always_inline attribute.
10650         (handle_always_inline_attribute): Warn if the attribute conflicts
10651         with noinline attribute.
10653 2014-04-25  Marek Polacek  <polacek@redhat.com>
10655         PR c/60156
10656         * c-common.c (check_main_parameter_types): Warn about variadic main.
10658 2014-04-24  Mike Stump  <mikestump@comcast.net>
10660         * c.opt (Wshadow-ivar): Default to on.
10662 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
10664         * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
10666 2014-04-23  Marek Polacek  <polacek@redhat.com>
10668         * c-common.c (handle_tm_wrap_attribute): Tweak error message.
10670 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
10672         PR sanitizer/60275
10673         * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
10674         if flag_sanitize_undefined_trap_on_error.
10675         (ubsan_instrument_division, ubsan_instrument_shift,
10676         ubsan_instrument_vla): Likewise.  Use __ubsan_handle_*_abort ()
10677         if !flag_sanitize_recover.
10679 2014-04-22  Marc Glisse  <marc.glisse@inria.fr>
10681         PR libstdc++/43622
10682         * c-common.c (registered_builtin_types): Make non-static.
10683         * c-common.h (registered_builtin_types): Declare.
10685 2014-04-14  Richard Biener  <rguenther@suse.de>
10686             Marc Glisse  <marc.glisse@inria.fr>
10688         PR c/60819
10689         * c-common.c (convert_vector_to_pointer_for_subscript): Properly
10690         apply may-alias the scalar pointer type when applicable.
10692 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
10694         PR middle-end/60467
10695         * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
10696         as possible argument for Cilk_spawn.
10698 2014-04-11  Tobias Burnus  <burnus@net-b.de>
10700         PR c/60194
10701         * c.opt (Wformat-signedness): Add
10702         * c-format.c(check_format_types): Use it.
10704 2014-04-11  Jason Merrill  <jason@redhat.com>
10706         PR c++/57926
10707         * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
10708         default_conversion for an array argument.
10710 2014-04-08  Marek Polacek  <polacek@redhat.com>
10712         PR sanitizer/60745
10713         * c-ubsan.c: Include asan.h.
10714         (ubsan_instrument_return): Call initialize_sanitizer_builtins.
10716 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
10718         * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
10720 2014-04-02  Marek Polacek  <polacek@redhat.com>
10722         * c-common.h (c_expand_expr): Remove declaration.
10724 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
10726         PR c++/60689
10727         * c-common.c (add_atomic_size_parameter): When creating new
10728         params vector, push the size argument first.
10730 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
10732         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
10733         ubsan_instrument_vla, ubsan_instrument_return): Adjust
10734         ubsan_create_data callers.
10736 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
10738         PR debug/60603
10739         * c-opts.c (c_finish_options): Restore cb_file_change call to
10740         <built-in>.
10742 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
10744         PR middle-end/36282
10745         * c-pragma.c (apply_pragma_weak): Only look at
10746         TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
10747         DECL_ASSEMBLER_NAME_SET_P (decl).
10748         (maybe_apply_pending_pragma_weaks): Exit early if
10749         vec_safe_is_empty (pending_weaks) rather than only when
10750         !pending_weaks.
10751         (maybe_apply_pragma_weak): Likewise.  If !DECL_ASSEMBLER_NAME_SET_P,
10752         set assembler name back to NULL afterwards.
10754 2014-03-11  Jason Merrill  <jason@redhat.com>
10756         * c.opt: Add -std=gnu++14.
10758 2014-03-11  Ian Bolton  <ian.bolton@arm.com>
10760         * c-opts.c (c_common_post_options): Don't override
10761         -ffp-contract=fast if unsafe-math-optimizations is on.
10763 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
10765         * c.opt: Enable LTO FE for fshort-double.
10767 2014-03-07  Jason Merrill  <jason@redhat.com>
10769         * c.opt: Add -std=c++14.
10771 2014-03-06  Marek Polacek  <polacek@redhat.com>
10773         PR c/60197
10774         * cilk.c (contains_cilk_spawn_stmt): New function.
10775         (contains_cilk_spawn_stmt_walker): Likewise.
10776         (recognize_spawn): Give error on invalid use of _Cilk_spawn.
10777         * c-common.h (contains_cilk_spawn_stmt): Add declaration.
10779 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
10781         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
10782         (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
10783         even when flag_preprocess_only.
10785 2014-02-26  Jason Merrill  <jason@redhat.com>
10787         PR c++/59231
10788         PR c++/11586
10789         * c-common.c (shorten_compare): Don't check
10790         c_inhibit_evaluation_warnings.
10792 2014-02-19  Jakub Jelinek  <jakub@redhat.com>
10794         PR c/37743
10795         * c-common.c (c_common_nodes_and_builtins): When initializing
10796         c_uint{16,32,64}_type_node, also set corresponding
10797         uint{16,32,64}_type_node to the same value.
10799         PR c++/60267
10800         * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
10801         for PRAGMA_IVDEP if flag_preprocess_only.
10803 2014-02-12  Jakub Jelinek  <jakub@redhat.com>
10805         PR c/60101
10806         * c-common.c (merge_tlist): If copy is true, call new_tlist,
10807         if false, add ADD itself, rather than vice versa.
10808         (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
10809         copy.  For SAVE_EXPR, only call merge_tlist once.
10811 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
10813         PR middle-end/60092
10814         * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
10815         and tree_to_uhwi.
10816         (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
10817         functions.
10818         (c_common_attribute_table): Add alloc_align and assume_aligned
10819         attributes.
10821 2014-02-06  Marek Polacek  <polacek@redhat.com>
10823         PR c/60087
10824         * c-common.c (warn_for_sign_compare): Call warning_at with location
10825         instead of warning.
10827 2014-02-05  Marek Polacek  <polacek@redhat.com>
10829         PR c/53123
10830         * c-omp.c (c_finish_omp_atomic): Remove unreachable return
10831         statement.
10833 2014-02-04  Marek Polacek  <polacek@redhat.com>
10835         PR c/60036
10836         * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
10837         SAVE_EXPR.
10839 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
10841         PR c++/53017
10842         PR c++/59211
10843         * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
10844         handle_vector_size_attribute, handle_nonnull_attribute): Call
10845         default_conversion on the attribute argument.
10846         (handle_nonnull_attribute): Increment the argument number.
10848 2014-01-31  Marek Polacek  <polacek@redhat.com>
10850         PR c/59963
10851         * c-common.c (add_atomic_size_parameter): Pass vNULL to
10852         build_function_call_vec.
10853         (resolve_overloaded_builtin): Likewise.
10854         * c-common.h (build_function_call_vec): Adjust declaration.
10856 2014-01-30  Marek Polacek  <polacek@redhat.com>
10858         PR c/59940
10859         * c-common.h (unsafe_conversion_p): Adjust declaration.
10860         (warnings_for_convert_and_check): Likewise.
10861         (convert_and_check): Likewise.
10862         * c-common.c (unsafe_conversion_p): Add location parameter.  Call
10863         expansion_point_location_if_in_system_header on it.
10864         (warnings_for_convert_and_check): Add location parameter.  Call
10865         expansion_point_location_if_in_system_header on it.  Use it.
10866         (convert_and_check): Add location parameter.  Use it.
10867         (conversion_warning): Likewise.
10868         (c_add_case_label): Adjust convert_and_check calls.
10869         (scalar_to_vector): Adjust unsafe_conversion_p calls.
10871 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
10873         * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
10874         flag_cilkplus.
10875         * c-pragma.c (init_pragma): Likewise.
10876         * c.opt: Likewise.
10878 2014-01-23  Marek Polacek  <polacek@redhat.com>
10880         PR c/59846
10881         * c-common.c (shorten_compare): Add location_t parameter.
10882         * c-common.h (shorten_binary_op): Adjust declaration.
10884 2014-01-23  Marek Polacek  <polacek@redhat.com>
10886         PR c/58346
10887         * c-common.c (pointer_to_zero_sized_aggr_p): New function.
10888         * c-common.h: Declare it.
10890 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
10892         * c-ada-spec.h (dump_ada_specs): Revert prototype change.
10893         * c-ada-spec.c (dump_ads): Likewise.
10894         (cpp_check): Likewise.
10895         (dump_ada_specs): Likewise.
10897 2014-01-15  Laurent Alfonsi  <laurent.alfonsi@st.com>
10899         PR c++/49718
10900         * c-common.c (handle_no_instrument_function_attribute): Allow
10901         no_instrument_function attribute in class member
10902         definition/declaration.
10904 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
10906         PR c/58943
10907         * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
10908         build_modify_expr with non-NOP_EXPR opcode.  Handle return from it
10909         being COMPOUND_EXPR.
10910         (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
10911         operand a SAVE_EXPR and second MODIFY_EXPR.
10913 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
10915         PR target/58115
10916         * c-pch.c (c_common_write_pch): Call
10917         prepare_target_option_nodes_for_pch.
10919 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
10921         Update copyright years
10923 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
10925         * array-notation-common.c, c-cilkplus.c: Use the standard form for
10926         the copyright notice.
10928 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
10930         * c-ada-spec.c (print_constructor): New function.
10931         (print_destructor): Retrieve the origin of the destructor.
10932         (print_ada_declaration): Revamp handling of constructors/destructors.
10934 2013-12-23  Stuart Hastings  <stuart@apple.com>
10935             Bill Maddox  <maddox@google.com>
10936             Jason Merrill  <jason@redhat.com>
10938         * c.opt: Add -fdeclone-ctor-dtor.
10939         * c-opts.c (c_common_post_options): Default to on iff -Os.
10941 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
10943         * c-common.c (c_common_attribute_table): Added "cilk simd function"
10944         attribute.
10945         * c-pragma.h (enum pragma_cilk_clause): Remove.
10946         (enum pragma_omp_clause): Added the following fields:
10947         PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
10948         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
10949         PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
10950         PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
10951         PRAGMA_CILK_CLAUSE_UNIFORM.
10954 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
10956         * cilk.c (cilk_outline): Made this function non-static.
10957         (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
10958         (create_cilk_wrapper): Added a new parameter: a function pointer.
10959         (c_install_body_w_frame_cleanup): Remove
10960         (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
10961         * c-common.h (cilk_outline): New prototype.
10962         (gimplify_cilk_spawn): Removed two parameters.
10963         (cilk_install_body_with_frame_cleanup): New prototype.
10964         * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
10965         CILK_SPAWN_STMT case.
10967 2013-12-11  Bernd Schmidt  <bernds@codesourcery.com>
10969         * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
10971         * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
10972         (int_array_type_node): Remove.
10973         * c-common.c (c_common_nodes_and_builtins): Don't build it.
10975 2013-12-05  Marek Polacek  <polacek@redhat.com>
10977         PR c/52023
10978         * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
10979         [ADJUST_FIELD_ALIGN].
10981 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
10983         PR c/52023
10984         * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
10985         and check field alignment if set.
10986         * c-common.h (c_sizeof_or_alignof_type): Update prototype.
10987         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
10989 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
10990             Marek Polacek  <polacek@redhat.com>
10992         * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
10993         sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
10995 2013-11-29   H.J. Lu  <hongjiu.lu@intel.com>
10997         PR c/59309
10998         * cilk.c (gimplify_cilk_spawn): Properly handle function without
10999         arguments.
11001 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
11003         PR c/59280
11004         * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
11005         goto invalid.  If it is error_mark_node, don't issue further
11006         diagnostics.
11008 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
11010         * c.opt (Wopenmp-simd): New.
11012 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
11014         * c-ubsan.h (ubsan_instrument_return): New prototype.
11015         * c-ubsan.c (ubsan_instrument_return): New function.
11017 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
11019         * c-common.c: Add required include files from gimple.h.
11020         * c-gimplify.c: Likewise.
11021         * cilk.c: Likewise.
11023 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
11025         * c-common.c (unsafe_conversion_p): Remove use of
11026         EXPR_LOC_OR_HERE macro.
11027         (conversion_warning): Likewise.
11028         (warnings_for_convert_and_check): Likewise.
11029         (warn_for_collisions_1): Likewise.
11030         (shorten_compare): Likewise, and remove use of in_system_header
11031         macro, using the location from the former.
11032         * c-lex.c (dump_one_header): Remove use of input_filename macro.
11033         (cb_def_pragma): Remove use of in_system_header macro.
11034         (lex_string): Likewise.
11035         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
11037 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
11038             Mike Stump  <mikestump@comcast.net>
11039             Richard Sandiford  <rdsandiford@googlemail.com>
11041         * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
11042         instead of TREE_INT_CST_LOW, in cases where there is a protecting
11043         tree_fits_shwi_p or tree_fits_uhwi_p.
11044         (dump_generic_ada_node): Likewise.
11045         * c-format.c (check_format_arg): Likewise.
11046         * c-pretty-print.c (pp_c_integer_constant): Likewise.
11048 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
11050         * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
11052 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
11054         PR c/53001
11055         * c-common.c (unsafe_conversion_p): Make this function
11056         return an enumeration with more detail.
11057         (conversion_warning): Use the new return type of
11058         unsafe_conversion_p to separately warn either about conversions
11059         that lower floating point number precision or about the other
11060         kinds of conversions.
11061         * c-common.h (enum conversion_safety): New enumeration.
11062         (unsafe_conversion_p): switching return type to
11063         conversion_safety enumeration.
11064         * c.opt: Adding new warning -Wfloat-conversion and
11065         enabling it with -Wconversion.
11067 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
11069         * c-opts.c: Include plugin.h.
11070         (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
11072 2013-11-19  Marek Polacek  <polacek@redhat.com>
11074         * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
11075         call.
11076         (ubsan_instrument_shift): Likewise.
11077         (ubsan_instrument_vla): Likewise.
11079 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
11081         * c-common.c (convert_vector_to_pointer_for_subscript): Remove
11082         cast to unsigned type.
11084 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
11086         * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
11087         tree_low_cst.
11088         (complete_array_type): Update comment to refer to tree_to_[su]hwi
11089         rather than tree_low_cst.
11091 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
11093         * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
11094         tree_to_uhwi throughout.
11096 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
11098         * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
11099         tree_low_cst (..., 0) with tree_to_shwi throughout.
11101 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
11103         * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
11104         host_integerp (..., 1) with tree_fits_uhwi_p throughout.
11106 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
11108         * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
11109         host_integerp (..., 0) with tree_fits_shwi_p throughout.
11111 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
11113         * c-cilkplus.c: New file.
11114         * c-common.c (readonly_error): Add location argument.
11115         * c-common.h (readonly_error): Same.
11116         (c_finish_cilk_clauses): Protoize.
11117         (c_check_cilk_loop): Same.
11118         c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
11119         Do not fail on error_mark_node.
11120         Abstract increment canonicalization to here...
11121         (c_omp_for_incr_canonicalize_ptr): New.
11122         c-pragma.c (init_pragma): Register "simd" pragma.
11123         c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
11124         (enum pragma_cilk_clause): New.
11126 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
11128         * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
11129         wchar_type and host_integerp checks.
11131 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
11133         * c-common.c: Likewise.
11134         * c-gimplify.c: Likewise.
11135         * cilk.c: Likewise.
11137 2013-11-14  Diego Novillo  <dnovillo@google.com>
11139         * c-common.c: Include fold-const.h.
11140         Include stor-layout.h.
11141         Include calls.h.
11142         Include stringpool.h.
11143         Include attribs.h.
11144         Include varasm.h.
11145         Include trans-mem.h.
11146         * c-cppbuiltin.c: Include stor-layout.h.
11147         Include stringpool.h.
11148         * c-format.c: Include stringpool.h.
11149         * c-lex.c: Include stringpool.h.
11150         Include stor-layout.h.
11151         * c-pragma.c: Include stringpool.h.
11152         Include attribs.h.
11153         Include varasm.h.
11154         Include gcc-symtab.h.
11155         * c-pretty-print.c: Include stor-layout.h.
11156         Include attribs.h.
11157         * cilk.c: Include stringpool.h.
11158         Include calls.h.
11160 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
11162         * c-common.h (enum rid): Add RID_AUTO_TYPE.
11163         * c-common.c (c_common_reswords): Add __auto_type.
11164         (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
11166 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
11168         * c-common.c: Include gimplify.h.
11169         * c-gimplify.c: Likewise.
11170         * cilk.c: Likewise.
11171         * c-omp.c: Include gimple-expr.h instead of gimple.h.
11172         * c-ubsan.c: Don't include gimple.h.
11174 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
11176         * c-common.c (c_common_reswords): Add _Thread_local.
11178 2013-11-09  Joseph Myers  <joseph@codesourcery.com>
11180         * c-common.c (atomic_size_supported_p): New function.
11181         (resolve_overloaded_atomic_exchange)
11182         (resolve_overloaded_atomic_compare_exchange)
11183         (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
11184         Use it instead of comparing size with a local list of sizes.
11186 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
11187             Joseph Myers  <joseph@codesourcery.com>
11189         * c-common.h (enum rid): Add RID_ATOMIC.
11190         * c-common.c (c_common_reswords): Add _Atomic.
11191         (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
11192         (keyword_is_type_qualifier): Accept RID_ATOMIC.
11193         * c-format.c (check_format_types): Check for extra _Atomic
11194         qualifiers in format argument.
11195         * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
11196         (pp_c_type_qualifier_list): Mention _Atomic in comment.
11198 2013-11-06  Tobias Burnus  <burnus@net-b.de>
11200         * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
11202 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
11204         * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
11205         standards modes.
11206         * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
11207         to mean lack of IEEE 754 support.
11209 2013-11-05  Tobias Burnus  <burnus@net-b.de>
11211         * c.opt (-Wdate-time): New option
11212         * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
11214 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
11216         * c-cppbuiltin.c (cpp_iec_559_value): Test
11217         flag_excess_precision_cmdline not flag_excess_precision.
11219 2013-11-05  Tobias Burnus  <burnus@net-b.de>
11221         * c.opt (fopenmp-simd): New option.
11222         * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
11223         (omp_pragmas): ... this new struct.
11224         (c_pp_lookup_pragma): Also walk omp_pragmas.
11225         (init_pragma): Init pragmas for -fopenmp-simd.
11227 2013-11-04  Marek Polacek  <polacek@redhat.com>
11229         PR c++/58979
11230         * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
11232 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
11234         * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
11235         New functions.
11236         (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
11238 2013-11-04  Eric Botcazou  <ebotcazou@adacore.com>
11240         * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
11241         (dump_ada_specs): Adjust prototype of second callback.
11242         * c-ada-spec.c (cpp_check): New global variable.
11243         (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
11244         (print_generic_ada_decl): Likewise.
11245         (has_static_fields): Change return type to bool and add guard.
11246         (has_nontrivial_methods): New predicate.
11247         (is_tagged_type): Change return type to bool.
11248         (separate_class_package): Call has_nontrivial_methods.
11249         (pp_ada_tree_identifier): Minor tweaks.
11250         (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
11251         (dump_ada_array_domains): Likewise.
11252         (dump_ada_array_type): Likewise.
11253         (dump_template_types): Remove cpp_check parameter and do not pass it to
11254         dump_generic_ada_node.
11255         (dump_ada_template): Likewise.
11256         (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
11257         recursively.
11258         (print_ada_methods): Change return type to integer.  Remove cpp_check
11259         parameter and do not pass it down.
11260         (dump_nested_types): Remove cpp_check parameter and do not pass it to
11261         dump_generic_ada_node.
11262         (print_ada_declaration): Likewise.  Test RECORD_OR_UNION_TYPE_P before
11263         accessing methods.
11264         (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
11265         down.  Use has_nontrivial_methods to recognize C++ classes.  Use return
11266         value of print_ada_methods.
11267         (dump_ads): Rename cpp_check parameter to check and adjust prototype.
11268         Set cpp_check to it before invoking dump_ada_nodes.
11269         (dump_ada_specs): Likewise.
11271 2013-11-03  Marek Polacek  <polacek@redhat.com>
11273         * c-ubsan.c: Don't include hash-table.h.
11274         (ubsan_instrument_vla): New function.
11275         * c-ubsan.h: Declare it.
11277 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
11279         Automated part of renaming of symtab_node_base to symtab_node.
11281         Patch autogenerated by rename_symtab.py from
11282         https://github.com/davidmalcolm/gcc-refactoring-scripts
11283         revision 58bb219cc090b2f4516a9297d868c245495ee622
11285         * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
11286         symtab_node_base to symtab_node.
11288 2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
11290         Implement C++14 digit separators.
11291         * c-lex.c (interpret_float): Remove digit separators from scratch string
11292         before building real literal.
11294 2013-10-30  Jakub Jelinek  <jakub@redhat.com>
11296         * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
11298 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
11300         * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
11301         fields.
11302         (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
11303         enabled.
11304         * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
11305         (insert_cilk_frame): New prototype.
11306         (cilk_init_builtins): Likewise.
11307         (gimplify_cilk_spawn): Likewise.
11308         (c_cilk_install_body_w_frame_cleanup): Likewise.
11309         (cilk_detect_spawn_and_unwrap): Likewise.
11310         (cilk_set_spawn_marker): Likewise.
11311         (build_cilk_sync): Likewise.
11312         (build_cilk_spawn): Likewise.
11313         * cilk.c: New file.
11315 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
11317         Patch autogenerated by refactor_symtab.py from
11318         https://github.com/davidmalcolm/gcc-refactoring-scripts
11319         revision 58bb219cc090b2f4516a9297d868c245495ee622
11321         * c-gimplify.c (c_genericize): Update for conversion of symtab types
11322         to a true class hierarchy.
11323         * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
11325 2013-10-27  Richard Sandiford  <rdsandiford@googlemail.com>
11327         * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
11329 2013-10-26  Jeff Law  <law@redhat.com>
11331         * c-common.c (c_define_builtins): Remove mudflap support.
11332         * c.opt: Ignore and warn for mudflap options.
11334 2013-10-24  Tobias Burnus  <burnus@net-b.de>
11336         PR other/33426
11337         * c-pragma.c (init_pragma) Add #pragma ivdep handling.
11338         * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
11340 2013-10-23  Jason Merrill  <jason@redhat.com>
11342         * c-format.c (gcc_cxxdiag_char_table): Add %X.
11344 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
11346         * c-common.h (omp_clause_mask::operator !=): New method.
11347         * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
11348         instead of if (mask & something) tests everywhere.
11350         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
11351         201307 instead of 201107.
11352         * c-common.c (DEF_FUNCTION_TYPE_8): Define.
11353         (c_common_attribute_table): Add "omp declare target" and
11354         "omp declare simd" attributes.
11355         (handle_omp_declare_target_attribute,
11356         handle_omp_declare_simd_attribute): New functions.
11357         * c-omp.c: Include c-pragma.h.
11358         (c_finish_omp_taskgroup): New function.
11359         (c_finish_omp_atomic): Add swapped argument, if true,
11360         build the operation first with rhs, lhs arguments and use NOP_EXPR
11361         build_modify_expr.
11362         (c_finish_omp_for): Add code argument, pass it down to make_code.
11363         (c_omp_split_clauses): New function.
11364         (c_split_parallel_clauses): Removed.
11365         (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
11366         c_omp_declare_simd_clauses_to_decls): New functions.
11367         * c-common.h (omp_clause_mask): New type.
11368         (OMP_CLAUSE_MASK_1): Define.
11369         (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
11370         omp_clause_mask::operator |=, omp_clause_mask::operator ~,
11371         omp_clause_mask::operator |, omp_clause_mask::operator &,
11372         omp_clause_mask::operator <<, omp_clause_mask::operator >>,
11373         omp_clause_mask::operator ==): New methods.
11374         (enum c_omp_clause_split): New.
11375         (c_finish_omp_taskgroup): New prototype.
11376         (c_finish_omp_atomic): Add swapped argument.
11377         (c_finish_omp_for): Add code argument.
11378         (c_omp_split_clauses): New prototype.
11379         (c_split_parallel_clauses): Removed.
11380         (c_omp_declare_simd_clauses_to_numbers,
11381         c_omp_declare_simd_clauses_to_decls): New prototypes.
11382         * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
11383         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
11384         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
11385         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
11386         PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
11387         Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
11388         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
11389         PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
11390         PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
11391         PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
11392         PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
11393         PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
11394         PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
11395         PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
11396         PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
11397         PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
11398         PRAGMA_OMP_CLAUSE_UNIFORM.
11400 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
11402         PR tree-optimization/20318
11403         * c-common.c (handle_returns_nonnull_attribute): New function.
11404         (c_common_attribute_table): Add returns_nonnull.
11406 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
11408         PR c++/19476
11409         * c.opt (fcheck-new): Move to common.opt.
11411 2013-09-25  Marek Polacek  <polacek@redhat.com>
11412             Jakub Jelinek  <jakub@redhat.com>
11414         PR sanitizer/58413
11415         * c-ubsan.c (ubsan_instrument_shift): Don't instrument
11416         an expression if we can prove it is correct.
11417         (ubsan_instrument_division): Likewise.  Remove unnecessary
11418         check.
11420 2013-09-18  Marek Polacek  <polacek@redhat.com>
11422         PR sanitizer/58411
11423         * c-common.c (handle_no_sanitize_undefined_attribute): New function.
11424         Declare it.
11425         (struct attribute_spec c_common_att): Add no_sanitize_undefined.
11427 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
11429         PR target/48094
11430         * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
11431         fobjc-gc, freplace-objc-classes): Accept for LTO.
11433 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
11435         * c-target.def: New hook
11437 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
11439         PR c++/43452
11440         * c.opt (Wdelete-incomplete): Add.
11442 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
11444         * c-common.c (same_scalar_type_ignoring_signedness): Delete.
11445         (vector_types_compatible_elements_p): New function.
11446         * c-common.h: (same_scalar_type_ignoring_signedness): Delete
11447         declaration.
11448         (vector_types_compatible_elements_p): Declare.
11450 2013-09-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11452         * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
11453         a virtual member function.
11454         (pp_simple_type_specifier): Remove.
11455         (pp_c_type_specifier): Likewise.
11456         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
11457         Rename from pp_c_type_specifier.  Adjust.
11458         (c_pretty_printer::c_pretty_printer): Do not assign to
11459         simple_type_specifier.
11461 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11463         * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
11464         member function.
11465         (c_pretty_printer::storage_class_specifier): Likewise.
11466         (c_pretty_printer::initializer): Likewise.
11467         (pp_declaration): Remove.
11468         (pp_declaration_specifiers): Likewise.
11469         (pp_abstract_declarator): Likewise.
11470         (pp_declarator): Likewise.
11471         (pp_type_id): Likewise.
11472         (pp_statement): Likewise.
11473         (pp_constant): Likewise.
11474         (pp_id_expression): Likewise.
11475         (pp_primary_expression): Likewise.
11476         (pp_unary_expression): Likewise.
11477         (pp_multiplicative_expression): Likewise.
11478         (pp_conditional_expression): Likewise.
11479         (pp_assignment_expression): Likewise.
11480         (pp_expression): Likewise.
11481         (pp_c_type_id): Likewise.
11482         (pp_c_storage_class_specifier): Likewise.
11483         * c-pretty-print.c (pp_c_type_cast): Tidy.
11484         (pp_c_pointer): Likewise.
11485         (pp_c_type_specifier): Likewise.
11486         (pp_c_parameter_type_list): Likewise.
11487         (pp_c_function_definition): Likewise.
11488         (pp_c_init_declarator): Likewise.
11489         (pp_c_initializer_list): Likewise.
11490         (pp_c_constructor_elts): Likewise.
11491         (c_pretty_printer::direct_abstract_declarator): Likewise.
11492         (c_pretty_printer::declaration_specifiers): Likewise.
11493         (c_pretty_printer::primary_expression): Likewise.
11494         (c_pretty_printer::postfix_expression): Likewise.
11495         (c_pretty_printer::type_id): Rename from pp_c_type_id.
11496         (c_pretty_printer::storage_class_specifier): Rename from
11497         pp_c_storage_class_specifier.
11498         (c_pretty_printer::initializer): Rename from pp_c_initializer.
11499         (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
11500         storage_class_specifier, initializer, offset_list, flags.
11502 2013-08-30  Marek Polacek  <polacek@redhat.com>
11504         * c-ubsan.c: New file.
11505         * c-ubsan.h: New file.
11507 2013-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11509         * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
11510         member function.
11511         (c_pretty_printer::declaration_specifiers): Likewise.
11512         (c_pretty_printer::declarator): Likewise.
11513         (c_pretty_printer::abstract_declarator): Likewise.
11514         (c_pretty_printer::direct_abstract_declarator): Likewise.
11515         (c_pretty_printer::direct_declarator): Likewise.
11516         (c_pretty_printer::function_specifier): Likewise.
11517         (pp_declaration): Adjust.
11518         (pp_declaration_specifiers): Likewise.
11519         (pp_abstract_declarator): Likewise.
11520         (pp_direct_declarator): Likewise.
11521         (pp_function_specifier): Likewise.
11522         (pp_direct_abstract_declarator): Remove as unused.
11523         (pp_c_declaration): Remove.
11524         (pp_c_declaration_specifiers): Likewise.
11525         (pp_c_declarator): Likewise.
11526         (pp_c_direct_declarator): Likewise.
11527         (pp_c_function_specifier): Likewise.
11528         (pp_c_direct_abstract_declarator): Likewise.
11529         * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
11530         from pp_c_abstract_declarator.  Adjust.
11531         (c_pretty_printer::direct_abstract_declarator): Rename from
11532         pp_c_direct_abstract_declarator.  Adjust.
11533         (c_pretty_printer::function_specifier): Rename from
11534         pp_c_function_specifier.  Adjust.
11535         (c_pretty_printer::declaration_specifiers): Rename from
11536         pp_c_declaration_specifiers.  Adjust.
11537         (c_pretty_printer::direct_declarator): Rename from
11538         pp_c_direct_declarator.  Adjust.
11539         (c_pretty_printer::declarator): Rename from pp_c_declarator.  Adjust.
11540         (c_pretty_printer::declaration): Rename from pp_c_declaration.  Adjust.
11541         (c_pretty_printer::c_pretty_printer): Do not assign to
11542         declaration, declaration_specifiers, declarator,
11543         direct_declarator, direct_abstract_declarator, function_specifier.
11545 2013-08-26  Gabriel Dos Reis  <gdre@integrable-solutions.net>
11547         * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
11548         virtual member function.
11549         (c_pretty_printer::multiplicative_expression): Likewise.
11550         (c_pretty_printer::conditional_expression): Likewise.
11551         (c_pretty_printer::assignment_expression): Likewise.
11552         (c_pretty_printer::expression): Likewise.
11553         (pp_unary_expression): Adjust.
11554         (pp_multiplicative_expression): Likewise.
11555         (pp_assignment_expression): Likewise.
11556         (pp_conditional_expression): Likewise.
11557         (pp_expression): Likewise.
11558         * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
11559         from pp_c_unary_expression.  Adjust.
11560         (c_pretty_printer::multiplicative_expression): Rename from
11561         pp_c_multiplicative_expression.  Adjust.
11562         (c_pretty_printer::conditional_expression): Rename from
11563         pp_c_conditional_expression.  Adjust.
11564         (c_pretty_printer::assignment_expression): Rename from
11565         pp_c_assignment_expression.  Adjust.
11566         (c_pretty_printer::expression): Rename from pp_c_expression.  Adjust.
11567         (c_pretty_printer::c_pretty_printer): Do not assign to
11568         unary_expression, multiplicative_expression,
11569         conditional_expression, expression.
11571 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11573         * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
11574         virtual member function.
11575         (pp_postfix_expression): Adjust.
11576         (pp_c_postfix_expression): Remove.
11577         * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
11578         from pp_c_postfix_expression.  Adjust.
11579         (c_pretty_printer::c_pretty_printer): Do not assign to
11580         postfix_expression.
11582 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11584         * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
11585         virtua member function.
11586         (pp_primary_expression): Adjust.
11587         (pp_c_primary_expression): Remove.
11588         * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
11589         from pp_c_primary_expression.  Adjust.
11590         (pp_c_initializer_list): Use pp_primary_expression.
11591         (c_pretty_printer::c_pretty_printer): Do not assign to
11592         primary_expression.
11594 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11596         * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
11597         * c-pretty-print.c (M_): Remove.
11598         (c_pretty_printer::translate_string): Define.
11599         (pp_c_type_specifier): Use it.
11600         (pp_c_primary_expression): Likewise.
11601         (pp_c_expression): Likewise.
11603 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11605         * c-pretty-print.h (c_pretty_printer::id_expression): Now a
11606         virtual function.
11607         (pp_c_id_expression): Remove.
11608         (pp_id_expression): Adjust.
11609         * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
11610         pp_c_id_expression.  Adjust.
11611         (pp_c_postfix_expression): Use pp_id_expression.
11612         (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
11614 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11616         * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
11617         member function.
11618         (pp_constant): Adjust.
11619         (pp_c_constant): Remove.
11620         * c-pretty-print.c (c_pretty_printer::constant): Rename from
11621         pp_c_constant.  Adjust.
11622         (pp_c_constant)
11623         (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
11624         (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
11626 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11628         * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
11629         (c_pretty_printer::c_pretty_printer): Declare.
11630         * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
11631         c_pretty_printer_init.  Adjust.
11632         (print_c_tree): Do not call c_pretty_printer_init.
11633         * c-ada-spec.c (dump_ads): Remove call to pp_construct.
11635 2013-08-09  Arnaud Charlet  <charlet@adacore.com>
11637         * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
11639 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
11641         PR c++/58080
11642         * c-common.c (pointer_int_sum): Add bool parameter.
11643         * c-common.h (pointer_int_sum): Adjust declaration.
11645 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11647         * c-pretty-print.c (print_c_tree): Simplify.  Use non-static local
11648         c_pretty_printer variable.
11650 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11652         * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
11653         (pp_base): Remove.
11654         (pp_c_base): Likewise.  Adjust users.
11655         * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
11656         (pp_c_whitespace): Do not call pp_base.
11657         (pp_c_left_paren): Likewise.
11658         (pp_c_right_paren): Likewise.
11659         (pp_c_left_brace): Likewise.
11660         (pp_c_right_brace): Likewise.
11661         (pp_c_left_bracket): Likewise.
11662         (pp_c_right_bracket): Likewise.
11663         (pp_c_dot): Likewise.
11664         (pp_c_ampersand): Likewise.
11665         (pp_c_star): Likewise.
11666         (pp_c_arrow): Likewise.
11667         (pp_c_semicolon): Likewise.
11668         (pp_c_complement): Likewise.
11669         (pp_c_exclamation): Likewise.
11670         (pp_c_direct_declarator): Likewise.
11671         (pp_c_ws_string): Likewise.
11672         (pp_c_identifier): Likewise.
11673         (pp_c_statement): Likewise.
11674         (print_c_tree): Likewise.
11676 2013-08-04  Ed Smith-Rowland  <3dw4rd@verizon.net>
11678         PR c++/58072
11679         * c-common.c (c_parse_error): Catch user-defined literal tokens and
11680         provide useful error strings.
11682 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11684         * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
11685         printer functions instead of pp_string or operators and punctuators.
11686         (dump_generic_ada_node): Likewise.
11687         * c-pretty-print.c (pp_c_type_specifier): Likewise.
11688         (pp_c_relational_expression): Likewise.
11689         (pp_c_logical_or_expression): Likewise.
11691 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11693         * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
11694         functions instead of pp_character.
11695         (pp_ada_tree_identifier): Likewise.
11696         (dump_ada_double_name): Likewise.
11697         (dump_ada_function_declaration): Likewise.
11698         (dump_ada_array_domains): Likewise.
11699         (dump_template_types): Likewise.
11700         (dump_generic_ada_node): Likewise.
11701         (print_ada_declaration): Likewise.
11702         (print_ada_struct_decl): Likewise.
11703         * c-pretty-print.c (pp_c_integer_constant): Likewise.
11705 2013-07-23  Tom Tromey  <tromey@redhat.com>
11707         * c-common.h (enum rid) <RID_GENERIC>: New constant.
11708         * c-common.c (c_common_reswords): Add _Generic.
11710 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
11712         * c-common.c: Fix typos.
11713         * c-common.h: Likewise.
11715 2013-07-13  Lubos Lunak  <l.lunak@suse.cz>
11717         PR c++/55203
11718         * c-common.c (c_common_attribute_table): Add warn_unused.
11719         (handle_warn_unused_attribute): New.
11721 2013-07-10  Jakub Jelinek  <jakub@redhat.com>
11723         * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
11724         for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
11726 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
11728         PR c++/57869
11729         * c.opt: Add Wconditionally-supported.
11731 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
11733         * array-notation-common.c (length_mismatch_in_expr_p): Delete
11734         unused variables l_length and l_node.
11736 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
11738         PR c/57821
11739         * c-common.c (complete_array_type): Delay folding first index
11740         like other indices.  When folding, check for index overflow.
11742 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
11744         PR c++/57509
11745         * c-common.h (c_build_vec_perm_expr): New complain argument.
11746         * c-common.c (c_build_vec_perm_expr): Likewise.
11747         Use save_expr also in C++.
11749 2013-06-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11751         * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
11752         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
11753         * c-opts.c (c_common_post_options): Likewise.
11755 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
11757         * array-notation-common.c (length_mismatch_in_expr): Changed the
11758         parameter type's from a dynamic array to a vec_tree.  Also removed
11759         the size parameters.
11760         * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
11761         the change above.
11763 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
11765         * c-common.h (struct cilkplus_an_parts): New structure.
11766         (struct cilkplus_an_loop_parts): Likewise.
11767         (cilkplus_extract_an_triplets): New prototype.
11768         (fix_sec_implicit_args): Likewise.
11769         * array-notation-common.c (cilkplus_extract_an_triplets): New function.
11770         (fix_sec_implicit_args): Likewise.
11772 2013-06-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
11774         * array-notation-common.c (find_inv_trees): Removed an unwanted
11775         typecasting.
11776         * c-common.h (struct inv_list::additional_tcodes): Changed type from
11777         enum rid to enum tree_code.
11779 2013-06-11  Jan Hubicka  <jh@suse.cz>
11781         * c-common.c (handle_alias_ifunc_attribute): Do not set
11782         DECL_EXTERNAL for weakref variables.
11783         * c-pragma.c (handle_pragma_weak): Make sure aliases
11784         are not declared as external.
11786 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
11788         * array-notation-common.c (length_mismatch_in_expr_p): Moved this
11789         function from c/c-array-notation.c.
11790         (is_cilkplus_reduce_builtin): Likewise.
11791         (find_rank): Likewise.
11792         (extract_array_notation_exprs): Likewise.
11793         (replace_array_notations): Likewise.
11794         (find_inv_trees): Likewise.
11795         (replace_inv_trees): Likewise.
11796         (contains_array_notation_expr): Likewise.
11797         (find_correct_array_notation_type): Likewise.
11798         * c-common.h (struct inv_list): Moved this struct from the file
11799         c/c-array-notation.c and added a new field called additional tcodes.
11800         (length_mismatch_in_expr_p): New prototype.
11801         (is_cilkplus_reduce_builtin): Likewise.
11802         (find_rank): Likewise.
11803         (extract_array_notation_exprs): Likewise.
11804         (replace_array_notation): Likewise.
11805         (find_inv_trees): Likewise.
11806         (replace_inv_trees): Likewise.
11807         (find_correct_array_notation_type): Likewise.
11809 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
11811         * c-common.c (c_define_builtins): When cilkplus is enabled, the
11812         function array_notation_init_builtins is called.
11813         (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
11814         * c-common.def (ARRAY_NOTATION_REF): New tree.
11815         * c-common.h (build_array_notation_expr): New function declaration.
11816         (build_array_notation_ref): Likewise.
11817         (extract_sec_implicit_index_arg): New extern declaration.
11818         (is_sec_implicit_index_fn): Likewise.
11819         (ARRAY_NOTATION_CHECK): New define.
11820         (ARRAY_NOTATION_ARRAY): Likewise.
11821         (ARRAY_NOTATION_START): Likewise.
11822         (ARRAY_NOTATION_LENGTH): Likewise.
11823         (ARRAY_NOTATION_STRIDE): Likewise.
11824         * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
11825         ARRAY_NOTATION_REF.
11826         (pp_c_expression): Likewise.
11827         * c.opt (flag_enable_cilkplus): New flag.
11828         * array-notation-common.c: New file.
11830 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
11832         PR c++/57274
11833         * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
11835 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
11837         * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
11838         vectors.
11840 2013-05-07  Han Shen  <shenhan@google.com>
11842         * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
11844 2013-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
11846         * c-common.c (check_user_alignment): Emit error for negative values.
11848 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
11850         * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
11852 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
11854         * c-cppbuiltin.c (c_cpp_builtins): Do not define
11855         __GXX_EXPERIMENTAL_CXX1Y__.
11857 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
11858             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11860         * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
11861         * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
11862         to simply use OPT_Wpointer_arith.
11863         (c_sizeof_or_alignof_type): Likewise.
11865 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
11867         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
11869 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
11871         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
11872         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
11873         specifiers.
11875 2013-04-07  Steven Bosscher  <steven@gcc.gnu.org>
11877         * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
11879 2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
11881         * c-common.c (pointer_int_sum): Remove dead code.
11883 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
11885         PR middle-end/56524
11886         * c-common.c (handle_optimize_attribute): Don't call
11887         save_optabs_if_changed.
11889 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
11891         PR middle-end/56461
11892         * c-pch.c (pch_init): Free target_validity at the end.
11894 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
11896         * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
11898 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
11899             Jakub Jelinek  <jakub@redhat.com>
11901         PR sanitizer/56454
11902         * c-common.c (handle_no_sanitize_address_attribute): New function.
11903         (c_common_attribute_table): Add no_sanitize_address attribute.
11904         (handle_no_address_safety_analysis_attribute): Add
11905         no_sanitize_address attribute, not no_address_safety_analysis
11906         attribute.
11908 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
11910         PR target/52555
11911         * c-common.c (handle_optimize_attribute): Call
11912         save_optabs_if_changed.
11914 2013-02-18  Jakub Jelinek  <jakub@redhat.com>
11915             Steven Bosscher  <steven@gcc.gnu.org>
11917         PR pch/54117
11918         * c-opts.c (c_common_post_options): If debug info is enabled
11919         and non-dwarf*, refuse to load PCH files and when writing PCH
11920         file warn.
11922 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
11924         PR middle-end/56167
11925         * c-common.c (handle_error_attribute): Fix condition.
11927 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
11929         PR c++/55742
11930         * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
11932 2013-01-18  Jason Merrill  <jason@redhat.com>
11934         PR target/54908
11935         * c.opt (-fextern-tls-init): New.
11936         * c-opts.c (c_common_post_options): Handle it.
11938 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
11940         PR c/48418
11941         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
11942         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
11943         and is either negative or bigger or equal to type precision
11944         of the first operand.
11946 2012-12-03  Marek Polacek  <polacek@redhat.com>
11948         PR c/55570
11949         * c-common.c (check_user_alignment): Swap order of tests,
11950         check TREE_CODE first.
11952 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
11954         PR c++/52654
11955         * c-common.h (overflow_type): New enum.
11956         (build_userdef_literal): Add overflow_type argument.
11957         (tree_userdef_literal): Add overflow_type.
11958         (USERDEF_LITERAL_OVERFLOW): New access macro.
11959         * c-common.c (build_userdef_literal): Add overflow_type
11960         argument.
11961         * c-lex.c (c_lex_with_flags): Add overflow_type to
11962         build_userdef_literal calls.
11963         (interpret_integer, interpret_float): Add overflow_type argument.
11965 2012-11-28  Richard Biener  <rguenther@suse.de>
11967         PR c/35634
11968         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
11969         here and use a type with proper overflow behavior for types that would
11970         need to be promoted for the arithmetic.
11972 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
11974         PR sanitizer/55435
11975         * c-common.c (handle_no_address_safety_analysis_attribute): New
11976         function.
11977         (c_common_attribute_table): Add no_address_safety_analysis.
11979 2012-11-16  Simon Baldwin  <simonb@google.com>
11981         * c.opt: Add f[no-]canonical-system-headers.
11982         * c-opts.c (c_common_handle_option): Handle
11983         OPT_fcanonical_system_headers.
11985 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
11987         PR c++/54413
11988         * c-opts.c (c_common_handle_option): Set new flags.
11989         * c.opt: Describe new flags.
11991 2012-11-09  Jason Merrill  <jason@redhat.com>
11993         * c.opt (Wabi-tag): New.
11995 2012-11-09  Andi Kleen  <ak@linux.intel.com>
11997         PR 55139
11998         * c-common.c (get_atomic_generic_size): Mask with
11999         MEMMODEL_MASK
12001 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12003         PR c/53063
12004         * c.opt (Wformat): Make it Alias Wformat=1.
12005         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
12006         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
12007         LangEnabledBy.
12008         (Wformat=): RejectNegative. Use LangEnabledBy.
12009         (Wnonnull): Use LangEnabledBy.
12010         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
12011         * c-format.c (set_Wformat): Delete.
12012         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
12013         (maybe_read_dollar_number): Likewise.
12014         (avoid_dollar_number): Likewise.
12015         (finish_dollar_format_checking): Likewise.
12016         (check_format_info): Likewise.
12017         (check_format_info_main): Likewise.
12018         (check_format_types): Likewise.
12019         (format_type_warning): Likewise.
12020         * c-common.c (int): Likewise.
12021         (check_function_sentinel): Likewise.
12022         * c-common.h (warn_format,set_Wformat): Do not declare here.
12024 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12026         PR c/53063
12027         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
12028         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
12029         Use LangEnabledBy.
12030         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
12031         common.opt.
12032         (Wvariadic-macros): Init(1).
12033         * c-opts.c (c_common_handle_option): Do not handle them
12034         explicitly.
12035         (c_common_post_options): Likewise.
12036         (sanitize_cpp_opts): warn_unused_macros is now
12037         cpp_warn_unused_macros.
12038         (push_command_line_include): Likewise.
12039         * c-common.c (warn_unknown_pragmas): Do not define.
12040         * c-common.h (warn_unknown_pragmas): Do not declare.
12042 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12044         PR c/51294
12045         * c-common.c (conversion_warning): Handle conditional expressions.
12047 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
12049         PR c++/54930
12050         * c.opt (Wreturn_local_addr): Define new option.
12052 2012-10-25  Jason Merrill  <jason@redhat.com>
12054         * c.opt (Wvirtual-move-assign): New.
12056         * c.opt (Winherited-variadic-ctor): New.
12058 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
12060         PR c++/54427
12061         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
12063 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
12065         * c-common.h (pch_cpp_save_state): Declare.
12066         * c-target.def (c_preinclude): New hook.
12067         * c-opts.c (done_preinclude): New.
12068         (push_command_line_include): Handle default preincluded header.
12069         (cb_file_change): Call pch_cpp_save_state when calling
12070         push_command_line_include.
12071         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
12072         (pch_cpp_save_state): New.
12073         (pch_init): Call pch_cpp_save_state conditionally, instead of
12074         calling cpp_save_state.
12076 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12078         PR c/53063
12079         PR c/40989
12080         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
12081         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
12082         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
12083         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
12084         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
12085         * c-opts.c (c_common_handle_option): Remove explicit handling from
12086         here.
12087         (c_common_post_options): Likewise.
12089 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
12091         * c-ada-spec.c (LOCATION_COL): Delete.
12092         (compare_location): New function.
12093         (compare_node): Use it.
12094         (compare_comment): Likewise.
12096 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12098         PR c/53063
12099         PR c/40989
12100         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
12101         * c-opts.c (c_common_handle_option): Do not set them here. Add
12102         comment.
12103         (c_common_post_options): Likewise.
12105 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
12107         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
12108         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
12109         Remove POINTER_TYPE handling, add large unsigned handling and use
12110         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
12112 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
12114         PR c/54381
12115         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
12116         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
12117         locs and array of 3 trees instead of just single loc and single
12118         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
12119         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
12120         For *cmp* builtins that take two sources strings report warnings
12121         about first and second source, not about destination and source.
12123 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
12125         PR c++/53055
12126         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
12128 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
12130         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
12131         declaring something coming from another file.
12133 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
12135         PR ada/54845
12136         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
12138 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
12140         PR c++/54194
12141         * c-common.c (warn_about_parentheses): Add location_t parameter;
12142         use EXPR_LOC_OR_LOC.
12143         * c-common.h: Update declaration.
12145 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
12147         PR c++/54427
12148         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
12149         more operations. Make error messages optional.
12150         * c-common.h (enum stv_conv): Moved from c-typeck.c.
12151         (scalar_to_vector): Declare.
12153 2012-10-08  Jason Merrill  <jason@redhat.com>
12155         * c-common.c (c_common_reswords): Add thread_local.
12157 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
12159         PR c++/53528 C++11 attribute support
12160         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
12161         new functions.
12162         * c-common.c (check_cxx_fundamental_alignment_constraints): New
12163         static function.
12164         (handle_aligned_attribute): In choose strictest alignment
12165         among many.  Use new check_cxx_fundamental_alignment_constraints.
12166         (handle_transparent_union_attribute): In c++11 attribute syntax,
12167         don't look through typedefs.
12169 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
12171         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
12172         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
12173         out of dumpfile.h.
12175 2012-09-25  Dehao Chen  <dehao@google.com>
12177         PR middle-end/54645
12178         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
12179         map when read in the pch.
12181 2012-09-18  Arnaud Charlet  <charlet@adacore.com>
12183         * c-ada-spec.c: Style fixes.
12185 2012-09-18  Thomas Quinot  <quinot@adacore.com>
12187         * c.opt (-fada-spec-parent): Define new command line switch.
12188         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
12189         is specified, generate binding spec as a child of the specified unit.
12191 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
12192             Manuel López-Ibáñez  <manu@gcc.gnu.org>
12194         PR c++/53210
12195         * c.opt ([Winit-self]): Enabled by -Wall in C++.
12197 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
12199         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
12200         for pointers, and add missing Convention C pragma.
12201         (print_ada_struct_decl): Add missing aliased keyword.
12202         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
12204 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
12206         * c-common.c (sizeof_pointer_memaccess_warning): New function.
12207         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
12208         * c-opts.c (c_common_handle_option): Enable it for -Wall.
12209         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
12210         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
12212 2012-08-10  Richard Guenther  <rguenther@suse.de>
12214         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
12216 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
12218         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
12219         instead of separate pp_newline and pp_flush.
12220         (print_c_tree): Likewise.
12222 2012-07-26  Richard Henderson  <rth@redhat.com>
12224         * c-common.c (handle_hot_attribute): Allow labels.
12225         (handle_cold_attribute): Likewise.
12227 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
12229         PR c++/28656
12230         * c-common.c (check_function_nonnull): Handle multiple nonnull
12231         attributes properly.
12233 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
12235         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
12236         * c-ada-spec.c: Likewise.
12237         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
12239 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
12241         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
12242         Remove code conditional on it.
12244 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
12246         * c-gimplify.c: Do not include basic-block.h.
12247         * c-common.c: Do not include linfuncs.h.
12249 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
12251         * c-common.h: Include tree.h.
12253 2012-07-02  Jason Merrill  <jason@redhat.com>
12255         PR c++/53524
12256         * c-common.c (get_priority): Call default_conversion.
12258 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
12260         * c-pch.c (c_common_write_pch): Remove unused variables.
12262 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
12264         * cppspec.c: Moved from gcc/ to here.
12266 2012-06-27  Kai Tietz  <ktietz@redhat.com>
12268         PR preprocessor/37215
12269         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
12271 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
12273         * c-common.h (c_common_print_pch_checksum): Remove.
12274         * c-pch.c: Do not include output.h.
12275         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
12276         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
12277         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
12278         (struct c_pch_header): Remove.
12279         (get_ident): Update gpch version.
12280         (pch_init): Do not print executable_checksum to asm_out_file.
12281         Do not fail if there is no asm_out_file to read back from.  Set
12282         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
12283         (c_common_write_pch): Verify that nothing was written to asm_out_file
12284         since pch_init was called.  Do not write a c_pch_header, and do not
12285         copy from asm_out_file to the PCH.
12286         (c_common_read_pch): Do not read a c_pch_header, and do not restore
12287         the content of asm_out_file from the PCH.
12288         (c_common_print_pch_checksum): Remove.
12289         * c-opts.c (c_common_init): Print out executable_checksum directly.
12291 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
12293         * c-target.def (objc_declare_unresolved_class_reference,
12294         objc_declare_class_definition): Add new hooks.
12296 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
12298         * c-lex.c: Do not include output.h.
12299         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
12300         Remove uses of ASM_OUTPUT_IDENT.
12302 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
12304         PR c++/51033
12305         * c-common.h (c_build_vec_perm_expr): Move decl here.
12306         * c-common.c (c_build_vec_perm_expr): Move definition
12307         here.
12309 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
12311         * c.opt (fconserve-space): Turn into a no-op.
12313 2012-06-04  Sterling Augustine  <saugustine@google.com>
12315         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
12316         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
12317         both the start and end of the function.
12319 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
12321         * c-common.c: Do not include output.h.
12322         * c-pragma.c: Likewise.
12324 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
12326         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
12327         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
12328         (lang_decl_name): Handle namespace decls.
12330 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
12332         * c-ada-spec.c: Do not include output.h.
12333         * c-semantics.c: Likewise.
12335 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
12337         * c-common.c: Fix typo.
12339 2012-05-29  Michael Matz  <matz@suse.de>
12341         * c-common.h (c_expand_decl): Remove prototype.
12343 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12345         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
12346         * c-opts.c (c_common_handle_option): Remove code handling
12347         warn_missing_braces.
12349 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
12351         PR c++/25137
12352         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
12353         -Wmissing_braces.
12355 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
12357         PR c++/53322
12358         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
12360 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12362         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
12363         * c-opts.c (c_common_handle_option): Do not handle explicitly
12364         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
12366 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
12368         PR preprocessor/7263
12369         * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
12370         to cpp_classify_number.  For diagnostics, use the precise location
12371         instead of the global input_location.
12373 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
12375         PR c++/11856
12376         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
12378 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
12380         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
12382 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12384         PR 53063
12385         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
12386         Wreorder): Use LangEnabledBy.
12387         * c-opts.c (c_common_handle_option): Do not enable them
12388         explicitly. Call lang-specific generated functions.
12389         (c_common_post_options): Do not set them here.
12391 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12393         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
12394         Wmissing-field-initializers,Wmissing-parameter-type,
12395         Wold-style-declaration,Woverride-init): Use EnabledBy.
12396         * c-opts.c (c_common_post_options): Do not set here explicitly.
12398 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12400         PR 53063
12401         * c-opts.c (c_common_handle_option): Use handle_generated_option
12402         to enable sub-options.
12404 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
12406         PR c++/53158
12407         * c-common.c (warnings_for_convert_and_check): Use warning_at.
12409 2012-05-10  Richard Guenther  <rguenther@suse.de>
12411         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
12412         adjust commentary about TYPE_IS_SIZETYPE types.
12414 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12416         PR c++/53261
12417         * c-common.c (warn_logical_operator): Check that argument of
12418         integer_zerop is not NULL.
12420 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12422         PR c/43772
12423         * c-common.c (warn_logical_operator): Do not warn if either side
12424         is already true or false.
12426 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12428         PR c/51712
12429         * c-common.c (expr_original_type): New.
12430         (shorten_compare): Do not warn for enumeration types.
12432 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12434         * c.opt (fpermissive): Add Var(flag_permissive).
12436 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
12438         PR c++/51033
12439         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
12440         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
12442 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
12444         Add -Wvarargs option
12445         * c.opt (Wvarargs): Define new option.
12447 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12449         * c-common.c (check_function_arguments): Replace
12450         Wmissing-format-attribute with Wsuggest-attribute=format.
12452 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12454         * c.opt (Wsuggest-attribute=format): New. Alias of
12455         Wmissing-format-attribute.
12456         * c-format.c (decode_format_type): Replace
12457         Wmissing-format-attribute with Wsuggest-attribute=format.
12458         (check_function_format): Likewise.
12460 2012-04-27  Ollie Wild  <aaw@google.com>
12462         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
12463         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
12464         * c.opt: Add Wliteral-suffix.
12466 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12468         PR c/44774
12469         * c.opt (Wpedantic): New.
12470         (pedantic): Alias Wpedantic.
12471         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
12472         (c_common_post_options): Likewise.
12473         (sanitize_cpp_opts): Likewise.
12474         * c-lex.c (interpret_float): Likewise.
12475         * c-format.c (check_format_types): Likewise.
12476         * c-common.c (pointer_int_sum): Likewise.
12477         (c_sizeof_or_alignof_type): Likewise.
12478         (c_add_case_label): Likewise.
12479         (c_do_switch_warnings): Likewise.
12480         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
12482 2012-04-15  Jason Merrill  <jason@redhat.com>
12484         PR c++/52818
12485         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
12486         (C_STD_NAME): Distinguish between C++98 and C++11.
12488 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
12490         PR target/52624
12491         * c-common.h (uint16_type_node): Rename into...
12492         (c_uint16_type_node): ...this.
12493         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
12494         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
12496 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12498         * c-common.c (warn_if_unused_value): Move definition to here.
12499         * c-common.h (warn_if_unused_value): Move declaration to here.
12501 2012-03-23  William Bader  <williambader@hotmail.com>
12503         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
12505 2012-03-20  Jason Merrill  <jason@redhat.com>
12507         * c-common.h (enum cxx_dialect): Add cxx1y.
12508         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
12509         test.
12510         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
12511         * c-opts.c (c_common_post_options): Likewise.
12512         (set_std_cxx1y): New.
12513         (c_common_handle_option): Call it.
12514         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
12516 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
12518         PR c++/14710
12519         * c.opt ([Wuseless-cast]): Add.
12521 2012-03-16  Richard Guenther  <rguenther@suse.de>
12523         * c-pretty-print.c (pp_c_initializer_list): Adjust.
12525 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12527         PR c++/44783
12528         * c.opt (ftemplate-backtrace-limit) Add.
12530 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12532         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
12533         handling.
12534         * c-pragma.c (handle_pragma_extern_prefix): Remove.
12535         (init_pragma): Don't register extern_prefix.
12537 2012-03-12  Richard Guenther  <rguenther@suse.de>
12539         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
12540         (builtin_type_for_size): Likewise.
12542 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
12544         PR c++/52215
12545         * c-common.c (sync_resolve_params): Don't decide whether to convert
12546         or not based on TYPE_SIZE comparison, convert whenever arg_type
12547         is unsigned INTEGER_TYPE.
12549 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
12551         PR c/52118
12552         * c.opt ([Wunused-local-typedefs]): Fix description.
12554 2012-01-24  Mike Stump  <mikestump@comcast.net>
12556         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
12557         exactly.
12559 2012-01-18  Richard Guenther  <rguenther@suse.de>
12561         * c-opts.c (c_common_post_options): Reset LTO flags if
12562         we are about to generate a PCH.
12564 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
12566         PR c++/51777
12567         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
12568         use pp_unsigned_wide_integer.
12570 2012-01-10  Richard Guenther  <rguenther@suse.de>
12572         PR middle-end/51806
12573         * c-opts.c (c_common_handle_option): Move -Werror handling
12574         to language independent code.
12576 2012-01-05  Richard Guenther  <rguenther@suse.de>
12578         PR middle-end/51764
12579         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
12580         from common.opt.
12582 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
12584         PR c++/51316
12585         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
12586         of array types with an unknown bound.
12588 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
12590         * c-common.c (flag_isoc99): Update comment to refer to C11.
12591         (flag_isoc1x): Change to flag_isoc11.
12592         * c-common.h (flag_isoc99): Update comment to refer to C11.
12593         (flag_isoc1x): Change to flag_isoc11.
12594         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
12595         C11.
12596         * c-opts.c (set_std_c1x): Change to set_std_c11.
12597         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
12598         Call set_std_c11.
12599         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
12600         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
12601         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
12602         standard.
12603         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
12604         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
12605         (std=gnu1x): Make alias of std=gnu11.
12607 2011-12-19  Jason Merrill  <jason@redhat.com>
12609         PR c++/51228
12610         * c-common.c (handle_transparent_union_attribute): Check the first
12611         field if the type is complete.
12613 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
12615         PR libstdc++/51365
12616         * c-common.c (RID_IS_FINAL): Add.
12617         * c-common.h (RID_IS_FINAL): Add.
12619 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
12621         * c.opt (fgnu-runtime): Provide full description.
12622         (fnext-runtime): Likewise.
12623         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
12625 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
12627         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
12628         predefines in one place.  Add LOCK_FREE predefines.
12629         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
12630         new func.
12632 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
12634         PR c/51256
12635         * c-common.c (get_atomic_generic_size): Check for various error
12636         conditions
12637         (resolve_overloaded_atomic_exchange,
12638         resolve_overloaded_atomic_compare_exchange,
12639         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
12640         error_mark_node for error conditions.
12642 2011-11-08  Richard Guenther  <rguenther@suse.de>
12644         PR middle-end/51010
12645         * c-pretty-print.c (pp_c_expression): Handle SSA_NAMEs.
12647 2011-11-07  Richard Henderson  <rth@redhat.com>
12648             Aldy Hernandez  <aldyh@redhat.com>
12649             Torvald Riegel  <triegel@redhat.com>
12651         Merged from transactional-memory.
12653         * c-common.c (handle_tm_wrap_attribute,
12654         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
12655         (struct c_common_reswords): Added __transaction* keywords.
12656         (struct c_common_attribute_table): Added transaction* and tm_regparm
12657         attributes.
12658         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
12659         masks.
12660         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
12661         find_tm_attribute): Declare.
12663 2011-11-07  Jason Merrill  <jason@redhat.com>
12665         PR c++/35688
12666         * c-common.c, c-common.h: Revert yesterday's changes.
12668 2011-11-06  Jason Merrill  <jason@redhat.com>
12670         PR c++/35688
12671         * c-common.c (decl_has_visibility_attr): Split out from...
12672         (c_determine_visibility): ...here.
12673         * c-common.h: Declare it.
12675 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
12677         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
12678         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
12679         type.
12680         (check_user_alignment): New.  Split out of
12681         handle_aligned_attribute.  Disallow integer constants with
12682         noninteger types.  Conditionally allow zero.
12683         (handle_aligned_attribute): Use check_user_alignment.
12684         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
12686 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
12687             Richard Henderson  <rth@redhat.com>
12689         Merged from cxx-mem-model.
12691         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
12692         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
12693         parameters that are the same type size.
12694         (get_atomic_generic_size): New.  Find size of generic
12695         atomic function parameters and do typechecking.
12696         (add_atomic_size_parameter): New.  Insert size into parameter list.
12697         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
12698         either __atomic_exchange_n or external library call.
12699         (resolve_overloaded_atomic_compare_exchange): Restructure
12700         __atomic_compare_exchange to either _n variant or external library call.
12701         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
12702         __atomic_load_n or an external library call.
12703         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
12704         __atomic_store_n or an external library call.
12705         (resolve_overloaded_builtin): Handle new __atomic builtins.
12707 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
12709         PR c++/50608
12710         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
12711         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
12712         <INDIRECT_REF>: Return the argument.
12713         <ARRAY_REF>: Remove special code for negative offset.
12714         Call fold_build_pointer_plus instead of size_binop.
12715         (fold_offsetof): Remove STOP_REF argument and adjust.
12716         * c-common.h (fold_offsetof_1): Declare.
12717         (fold_offsetof): Remove STOP_REF argument.
12719 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
12721         PR c++/50810
12722         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
12723         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
12724         Wnarrowing for C++0x and C++98.
12725         * c.opt ([Wnarrowing]): Update.
12727 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
12729         PR c++/44277
12730         * c.opt: Add Wzero-as-null-pointer-constant.
12732 2011-10-31  Jason Merrill  <jason@redhat.com>
12734         * c.opt (-fdeduce-init-list): Off by default.
12736         PR c++/50920
12737         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
12738         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
12739         and -Wc++11-compat.
12740         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
12742 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
12744         PR c++/30066
12745         * c.opt (fvisibility-inlines-hidden): Description change.
12747 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
12749         Implement C++11 user-defined literals.
12750         * c-common.c (build_userdef_literal): New.
12751         * c-common.def: New tree code.
12752         * c-common.h (tree_userdef_literal): New tree struct and accessors.
12753         * c-lex.c (interpret_float): Add suffix parm.
12754         (c_lex_with_flags): Build literal tokens.
12756 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
12758         PR c++/50841
12759         Revert:
12760         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
12762         PR c++/50810
12763         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
12764         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
12765         Wnarrowing for C++0x and C++98.
12766         * c.opt ([Wnarrowing]): Update.
12768 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
12770         PR c++/50810
12771         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
12772         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
12773         Wnarrowing for C++0x and C++98.
12774         * c.opt ([Wnarrowing]): Update.
12776 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
12778         PR c++/45385
12779         * c-common.c (conversion_warning): Remove code looking for
12780         artificial operands.
12782 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
12784         PR bootstrap/50760
12785         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
12786         !NO_IMPLICIT_EXTERN_C.
12788 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
12790         * c-common.c (c_common_reswords): Add __bases,
12791         __direct_bases.
12792         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
12794 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
12796         PR c++/50757
12797         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
12799 2011-10-15  Tom Tromey  <tromey@redhat.com>
12800             Dodji Seketeli  <dodji@redhat.com>
12802         * c.opt (fdebug-cpp): New option.
12803         * c-opts.c (c_common_handle_option): Handle the option.
12804         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
12805         output stream in parameter. Factorized from ...
12806         (maybe_print_line): ... this. Dump location debug information when
12807         -fdebug-cpp is in effect.
12808         (print_line_1): New static function. Takes an output stream in
12809         parameter. Factorized from ...
12810         (print_line): ... here. Dump location information when -fdebug-cpp
12811         is in effect.
12812         (scan_translation_unit): Dump location information when
12813         -fdebug-cpp is in effect.
12815 2011-10-15  Tom Tromey  <tromey@redhat.com>
12816             Dodji Seketeli  <dodji@redhat.com>
12818         * c.opt (ftrack-macro-expansion): New option. Handle it with and
12819         without argument.
12820         * c-opts.c (c_common_handle_option)<case
12821         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
12822         cases. Handle -ftrack-macro-expansion with and without argument.
12824 2011-10-15  Tom Tromey  <tromey@redhat.com>
12825             Dodji Seketeli  <dodji@redhat.com>
12827         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
12828         (print_line, cb_define, do_line_change): Adjust to avoid touching
12829         the internals of struct line_map.  Use the public API instead.
12830         * c-pch.c (c_common_read_pch): Likewise.
12831         * c-lex.c (fe_file_change): Likewise.
12833 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
12835         PR c++/17212
12836         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
12838 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
12840         PR c++/33067
12841         * c-pretty-print.c (pp_c_floating_constant): Output
12842         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
12844 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
12846         * c-common.c (def_builtin_1): Delete old interface with two
12847         parallel arrays to hold standard builtin declarations, and replace
12848         it with a function based interface that can support creating
12849         builtins on the fly in the future.  Change all uses, and poison
12850         the old names.  Make sure 0 is not a legitimate builtin index.
12851         * c-omp.c (c_finish_omp_barrier): Ditto.
12852         (c_finish_omp_taskwait): Ditto.
12853         (c_finish_omp_flush): Ditto.
12855 2011-10-11  Tristan Gingold  <gingold@adacore.com>
12857         * c.opt: (fallow-parameterless-variadic-functions): New.
12859 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
12861         PR c++/33255 - Support -Wunused-local-typedefs warning
12862         * c-common.h (struct c_language_function::local_typedefs): New
12863         field.
12864         (record_locally_defined_typedef, maybe_record_typedef_use)
12865         (maybe_warn_unused_local_typedefs): Declare new functions.
12866         * c-common.c (record_locally_defined_typedef)
12867         (maybe_record_typedef_use)
12868         (maybe_warn_unused_local_typedefs): Define new functions.
12869         * c.opt: Declare new -Wunused-local-typedefs flag.
12871 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
12873         PR middle-end/50266
12874         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
12875         computations.
12877 2011-09-05  Richard Guenther  <rguenther@suse.de>
12879         * c-common.c (complete_array_type): Use ssize_int (-1) instead
12880         of integer_minus_one_node for empty array upper bounds.
12882 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
12884         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
12885         it's the first time it's being called on this main TU.
12887 2011-08-24  Richard Guenther  <rguenther@suse.de>
12889         PR c/49396
12890         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
12892 2011-08-22  Gabriel Charette  <gchare@google.com>
12894         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
12895         defined in cpp_init_builtins and c_cpp_builtins.
12897 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
12899         * c-common.c (c_common_reswords): Add __builtin_complex.
12900         * c-common.h (RID_BUILTIN_COMPLEX): New.
12902 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
12904         * c-common.c (c_common_reswords): Add _Noreturn.
12905         (keyword_is_function_specifier): Handle RID_NORETURN.
12906         * c-common.h (RID_NORETURN): New.
12908 2011-08-10  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
12910         * c-common.c (unsafe_conversion_p): New function. Check if it is
12911         unsafe to convert an expression to the type.
12912         (conversion_warning): Adjust, use unsafe_conversion_p.
12913         * c-common.h (unsafe_conversion_p): New function declaration.
12915 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
12917         * c-common.h (c_finish_omp_atomic): Adjust prototype.
12918         (c_finish_omp_taskyield): New prototype.
12919         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
12920         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
12921         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
12922         or RHS1 have side-effects, evaluate those too in the right spot,
12923         if it is a decl and LHS is also a decl, error out if they
12924         aren't the same.
12925         (c_finish_omp_taskyield): New function.
12926         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
12927         * c-pragma.c (omp_pragmas): Add taskyield.
12928         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
12929         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
12930         PRAGMA_OMP_CLAUSE_MERGEABLE.
12932 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
12934         * c-common.h (set_underlying_type): Remove parm name from
12935         declaration.
12937 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
12939         * c-pretty-print.h: Search c-common.h in c-family.
12941 2011-07-22  Jason Merrill  <jason@redhat.com>
12943         PR c++/49793
12944         * c.opt (Wnarrowing): New.
12946         PR c++/30112
12947         * c-common.h: Declare c_linkage_bindings.
12948         * c-pragma.c (handle_pragma_redefine_extname): Use it.
12950         PR c++/49813
12951         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
12952         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
12953         as flag_isoc99 for 'restrict'.
12954         (pp_c_specifier_qualifier_list): Likewise for _Complex.
12956 2011-07-21  Ian Lance Taylor  <iant@google.com>
12958         PR middle-end/49705
12959         * c-common.c (c_disable_warnings): New static function.
12960         (c_enable_warnings): New static function.
12961         (c_fully_fold_internal): Change local unused_p to bool.  Call
12962         c_disable_warnings and c_enable_warnings rather than change
12963         c_inhibit_evaluation_warnings.
12965 2011-07-20  Jason Merrill  <jason@redhat.com>
12967         PR c++/6709 (DR 743)
12968         PR c++/42603 (DR 950)
12969         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
12970         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
12971         (CPP_DECLTYPE): New.
12972         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
12974 2011-07-19  Richard Guenther  <rguenther@suse.de>
12976         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
12977         * c-omp.c (c_finish_omp_for): Likewise.
12979 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
12981         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
12982         body on the next line.
12984 2011-07-08  Jason Merrill  <jason@redhat.com>
12986         PR c++/45437
12987         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
12989         PR c++/49673
12990         * c-common.c (c_apply_type_quals_to_decl): Don't check
12991         TYPE_NEEDS_CONSTRUCTING.
12993 2011-07-06  Richard Guenther  <rguenther@suse.de>
12995         * c-common.c (c_common_nodes_and_builtins):
12996         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
12998 2011-07-05  Richard Guenther  <rguenther@suse.de>
13000         * c-common.c (c_common_nodes_and_builtins): Build all common
13001         tree nodes first.
13003 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
13005         * c-common.h (c_tree_chain_next): New static inline function.
13007         * c-common.c (check_builtin_function_arguments): Handle
13008         BUILT_IN_ASSUME_ALIGNED.
13010 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
13012         * c-common.c: Add sync_ or SYNC__ to builtin names.
13013         * c-omp.c: Add sync_ or SYNC__ to builtin names.
13015 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
13017         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
13018         handler.
13019         (gen_pragma_handler): New union.
13020         (internal_pragma_handler): New type.
13021         (c_register_pragma_with_data)
13022         (c_register_pragma_with_expansion_and_data): New functions.
13024         * c-pragma.c (registered_pragmas, c_register_pragma_1)
13025         (c_register_pragma, c_register_pragma_with_expansion)
13026         (c_invoke_pragma_handler): Changed to work with
13027         internal_pragma_handler.
13028         (c_register_pragma_with_data)
13029         (c_register_pragma_with_expansion_and_data): New functions.
13031 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
13033         * c-common.c: Include common/common-target.h.
13034         (handle_section_attribute): Use
13035         targetm_common.have_named_sections.
13036         * c-cppbuiltin.c: Include common/common-target.h.
13037         (c_cpp_builtins): Use targetm_common.except_unwind_info.
13039 2011-06-10  Richard Guenther  <rguenther@suse.de>
13041         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
13042         to print a IDENTIFIER_NODE.
13044 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13045             Joseph Myers  <joseph@codesourcery.com>
13047         * c.opt (fbuilding-libgcc): New option.
13048         * c-cppbuiltin.c (c_cpp_builtins): Define
13049         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
13051 2011-06-07  Jason Merrill  <jason@redhat.com>
13053         * c-common.c (max_tinst_depth): Lower default to 900.
13055         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
13057 2011-06-07  Richard Guenther  <rguenther@suse.de>
13059         * c-common.c (c_common_nodes_and_builtins): Do not set
13060         size_type_node or call set_sizetype.
13062 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
13064         PR debug/49130
13065         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
13066         type when using pointer comparison to compare types.
13068 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
13070         * c.opt: Add -Wdelete-non-virtual-dtor.
13071         * c-opts.c (c_common_handle_option): Include it in -Wall.
13073 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
13075         PR bootstrap/49190
13077         Revert:
13078         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
13080         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
13081         not tree_common.
13083 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
13085         PR c++/49165
13086         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
13087         C++ don't call c_common_truthvalue_conversion on void type arms.
13089 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
13091         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
13092         (stmt_list_stack): Define.
13093         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
13094         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
13096 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
13098         * c-common.c (warning_candidate_p): Check for BLOCKs.
13100 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
13102         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
13103         not tree_common.
13105 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
13107         * c-common.c (def_fn_type): Remove extra va_end.
13109 2011-05-23  Jason Merrill  <jason@redhat.com>
13111         PR c++/48106
13112         * c-common.c (c_common_get_narrower): New.
13113         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
13115 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
13117         * c-common.h (check_function_arguments): Tweak prototype of
13118         check_function_arguments.
13119         * c-common.c (check_function_arguments): Likewise.  Adjust
13120         calls to check_function_nonnull, check_function_format, and
13121         check_function_sentinel.
13122         (check_function_sentinel): Take a FUNCTION_TYPE rather than
13123         separate attributes and typelist arguments.  Use
13124         FOREACH_FUNCTION_ARGS to iterate over argument types.
13126 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
13128         * c-common.c (c_common_reswords): Reorder.
13129         * c-common.h (rid): Likewise.
13131 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
13133         * c-common.c (def_fn_type): Don't call build_function_type, call
13134         build_function_type_array or build_varargs_function_type_array
13135         instead.
13136         (c_common_nodes_and_builtins): Likewise.
13138 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
13140         * c-common.c (c_add_case_label): Omit the loc argument to
13141         build_case_label.
13142         * c-common.h (build_case_label): Remove.
13143         * c-semantics.c (build_case_label): Remove.
13145 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
13147         * c-objc.h (objc_start_method_definition): Update prototype.
13148         * stub-objc.c (objc_start_method_definition): Add extra parameter.
13150 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
13152         * c-common.c (check_main_parameter_types): Reindent.  Don't use
13153         TYPE_ARG_TYPES directly.
13154         (handle_nonnull_attribute): Likewise.
13155         (sync_resolve_params): Likewise.
13156         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
13157         to check_format_string.
13158         (handle_format_attribute): Likewise.
13159         (check_format_string): Take a function type to examine instead of
13160         a type list.  Use a function_arg_iterator to step through argument
13161         types.
13163 2011-05-04  Richard Guenther  <rguenther@suse.de>
13165         * c-common.c (fix_string_type): Use size_int for index type bounds.
13166         (start_fname_decls): Do not pass NULL to build_int_cst.
13167         (c_init_attributes): Likewise.
13168         * c-lex.c (c_lex_with_flags): Likewise.
13170 2011-04-27  Jason Merrill  <jason@redhat.com>
13172         * c-common.c (make_tree_vector_from_list): New.
13173         * c-common.h: Declare it.
13175 2011-04-26  Richard Guenther  <rguenther@suse.de>
13177         PR preprocessor/48248
13178         * c-ppoutput.c (maybe_print_line): Always optimize newlines
13179         for output size with -P.
13181 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
13183         * c-common.c (struct c_common_resword): Add __underlying_type.
13184         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
13186 2011-04-20  Jim Meyering  <meyering@redhat.com>
13188         * c-format.c (init_dollar_format_checking): Remove useless
13189         if-before-free.
13191 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
13193         * c-objc.h (objc_get_interface_ivars): Removed.
13194         (objc_detect_field_duplicates): New.
13195         * stub-objc.c: Likewise.
13197 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
13199         * stub-objc.c (objc_declare_protocols): Renamed to
13200         objc_declare_protocol.
13201         * c-objc.h: Likewise.
13203 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
13205         * stub-objc.c (objc_declare_class): Updated argument name.
13207 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
13209         * c-common.h (c_common_init_ts): Declare.
13210         * c-common.c (c_common_init_ts): Define.
13212 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13214         * c-objc.h (objc_build_message_expr): Updated prototype.
13215         * stub-objc.c (objc_build_message_expr): Likewise.
13217 2011-04-12  Martin Jambor  <mjambor@suse.cz>
13219         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
13220         of cgraph_node.
13222 2011-04-11  Richard Guenther  <rguenther@suse.de>
13224         * c-common.c (complete_array_type): Build a range type of
13225         proper type.
13227 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
13229         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
13230         (handle_type_generic_attribute): Likewise.
13232 2011-04-07  Jason Merrill  <jason@redhat.com>
13234         PR c++/48450
13235         * c-common.c (c_common_truthvalue_conversion): Don't ignore
13236         conversion from C++0x scoped enum.
13238 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
13240         * c-target-def.h: New file.
13241         * c-target.def: New file.
13242         * c-target.h: New file.
13243         * c-common.c (targetcm): Don't define here.
13244         * c-common.h (default_handle_c_option): Declare.
13245         * c-format.c: Include c-target.h instead of target.h.
13246         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
13247         include tm.h.
13248         (default_handle_c_option): Move from targhooks.c.
13250 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
13252         PR preprocessor/48248
13253         * c-ppoutput.c (print): Add src_file field.
13254         (init_pp_output): Initialize it.
13255         (maybe_print_line): Don't optimize by adding up to 8 newlines
13256         if map->to_file and print.src_file are different file.
13257         (print_line): Update print.src_file.
13259 2011-03-25  Kai Tietz  <ktietz@redhat.com>
13261         * c-ada-spec.c (compare_comment): Use filename_cmp
13262         instead of strcmp for filename.
13264 2011-03-25  Jeff Law  <law@redhat.com>
13266         * c-common.c (def_fn_type): Add missing va_end.
13268 2011-03-25  Jason Merrill  <jason@redhat.com>
13270         * c.opt: Add -std=c++03.
13272 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
13274         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
13276 2011-03-17  Kai Tietz  <ktietz@redhat.com>
13278         PR target/12171
13279         * c-pretty-print.c (pp_c_specifier_qualifier_list):
13280         Display allowed attributes for function pointer types.
13281         (pp_c_attributes_display): New function to display
13282         attributes having affects_type_identity flag set to true.
13283         * c-pretty-print.h (pp_c_attributes_display): New prototype.
13285         * c-common.c (c_common_attribute_table):
13286         Add new element.
13287         (c_common_format_attribute_table): Likewise.
13289 2011-03-18  Jason Merrill  <jason@redhat.com>
13291         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
13292         * c-common.h: Don't declare it here.
13293         * c-common.c: Or define it here.
13294         * c-opts.c (c_common_handle_option): Or set it here.
13296         PR c++/35315
13297         * c-common.c (handle_transparent_union_attribute): Don't
13298         make a duplicate type in C++.
13300 2011-03-15  Jason Merrill  <jason@redhat.com>
13302         * c-common.c (max_constexpr_depth): New.
13303         * c-common.h: Declare it.
13304         * c-opts.c (c_common_handle_option): Set it.
13305         * c.opt (fconstexpr-depth): New option.
13307 2011-03-11  Jason Merrill  <jason@redhat.com>
13309         * c-common.c (attribute_takes_identifier_p): Add missing const.
13311         PR c++/46803
13312         * c-common.c (attribute_takes_identifier_p): Assume that an
13313         unknown attribute takes an identifier.
13315 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
13317         PR c/47786
13318         * c-common.c (c_type_hash): Call list_length instead of iterating
13319         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
13321 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
13323         PR c/47809
13324         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
13326 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
13328         * c.opt (fobjc-abi-version=) New.
13329         (fobjc-nilcheck): New.
13331 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
13333         PR c++/46890
13334         * c-common.h (keyword_is_decl_specifier): Declare.
13335         * c-common.c (keyword_is_decl_specifier): Define.
13336         (keyword_is_function_specifier): New function.
13338 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
13340         PR c/47473
13341         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
13342         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
13343         REAL_TYPE.
13345 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
13347         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
13349 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
13351         PR pch/47430
13352         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
13353         after init_c_lex if pch_file is set.
13355 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13357         PR c++/43601
13358         * c.opt (-fkeep-inline-dllexport): New switch.
13360 2011-01-12  Richard Guenther  <rguenther@suse.de>
13362         PR middle-end/32511
13363         * c-common.c (handle_weak_attribute): Warn instead of error
13364         on declaring an inline function weak.
13366 2011-01-05  Tom Tromey  <tromey@redhat.com>
13368         * c-common.h (lvalue_error): Update.
13369         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
13370         not error.
13372 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
13374         PR objc/47075
13375         * c-objc.h (objc_finish_message_expr): Added argument to
13376         prototype.
13378 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
13380         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
13381         Use prototype_p.
13383 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
13385         * c-objc.h (objc_maybe_warn_exceptions): New.
13386         * stub-objc.c (objc_maybe_warn_exceptions): New.
13388 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
13390         * c-common.h (readonly_error): Declare.
13391         * c-common.c (readonly_error): Define.
13393 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
13395         * c-common.h (invalid_indirection_error): Declare.
13396         * c-common.c (invalid_indirection_error): Define.
13398 2010-12-03  Richard Guenther  <rguenther@suse.de>
13400         PR c/46745
13401         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
13402         (pp_c_unary_expression): Likewise.
13403         (pp_c_expression): Likewise.
13405 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
13407         * c-common.h (objc_finish_function): New.
13408         (objc_non_volatilized_type): Removed.
13409         (objc_type_quals_match): Removed.
13410         * stub-objc.c (objc_finish_function): New.
13411         (objc_non_volatilized_type): Removed.
13412         (objc_type_quals_match): Removed.
13414 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
13416         * c-common.h (parse_optimize_options): Declare.
13417         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
13418         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
13420 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
13422         * c-opts.c (check_deps_environment_vars): Use getenv instead of
13423         GET_ENVIRONMENT.
13424         * c-pch.c (O_BINARY): Don't define here.
13425         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
13427 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
13429         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
13430         targetm.except_unwind_info.
13432 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
13434         * c-opts.c (c_common_handle_option): Pass location to
13435         set_struct_debug_option.
13437 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
13439         * c-common.c (visibility_options): Move from ../opts.c.
13440         * c-common.h (struct visibility_flags, visibility_options):
13441         Declare here.
13442         * c-opts.c (finish_options): Rename to c_finish_options.
13443         (c_common_init): Update call to finish_options.
13445 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
13447         PR objc/34033
13448         * c-lex.c (lex_string): Check that each string in an Objective-C
13449         string concat sequence starts with either one or zero '@', and
13450         that there are no spurious '@' signs at the end.
13452 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
13454         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
13455         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
13456         HANDLE_PRAGMA_VISIBILITY.
13457         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
13458         HANDLE_PRAGMA_VISIBILITY): Don't define.
13459         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
13461 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
13463         PR c++/16189
13464         PR c++/36888
13465         PR c++/45331
13466         * c-common.h (keyword_begins_type_specifier): Declare.
13467         (keyword_is_storage_class_specifier): Declare.
13468         (keyword_is_type_qualifier): Declare.
13469         * c-common.c (keyword_begins_type_specifier): New function.
13470         (keyword_is_storage_class_specifier): New function.
13471         (keyword_is_type_qualifier): Declare.
13473 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
13475         PR c/46547
13476         * c-common.c (in_late_binary_op): Define.
13477         (c_common_truthvalue_conversion): Check in_late_binary_op before
13478         calling c_save_expr.
13479         * c-common.h (in_late_binary_op): Declare.
13481 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
13483         * c-opts.c (c_common_handle_option): Update calls to
13484         set_struct_debug_option.
13486 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
13488         * c-common.h (objc_declare_protocols): Added additional argument.
13489         * stub-objc.c (objc_declare_protocol): Same change.
13491 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
13493         PR c/33193
13494         * c-common.h (build_real_imag_expr): Declare.
13495         * c-semantics.c (build_real_imag_expr): Define.
13497 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
13499         * c-opts.c (c_common_parse_file): Take no arguments.
13500         * c-common.h (c_common_parse_file): Update prototype.
13502 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
13504         PR c++/46401
13505         * c-common.c (warning_candidate_p): Don't track non-const calls
13506         or STRING_CSTs.
13508 2010-11-15  Ian Lance Taylor  <iant@google.com>
13510         * c-lex.c (init_c_lex): Set macro debug callbacks if
13511         flag_dump_go_spec is set.
13513 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
13515         * c-common.h (objc_build_incr_expr_for_property_ref): New.
13516         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
13518 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
13520         PR preprocessor/45038
13521         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
13522         dialects.
13524 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
13526         * c-common.h (c_family_lang_mask): Declare.
13527         * c-opts.c (c_family_lang_mask): Make extern.
13528         * c-pragma.c (handle_pragma_diagnostic): Use
13529         control_warning_option.
13531 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
13533         * c-common.c (parse_optimize_options): Update call to
13534         decode_options.
13535         * c-common.h (c_common_handle_option): Update prototype.
13536         * c-opts.c (c_common_handle_option): Take location_t parameter and
13537         pass it to other functions.
13539 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
13541         * c-opts.c (warning_as_error_callback): Remove.
13542         (c_common_initialize_diagnostics): Don't call
13543         register_warning_as_error_callback.
13544         (c_common_handle_option): Handle -Werror=normalized= here.
13546 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
13548         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
13549         in diagnostic.
13550         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
13551         letter.
13552         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
13553         Remove trailing '.' from diagnostics.
13554         * c.opt (Wwrite-strings_: Avoid '`' in help text.
13556 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
13558         * c-common.c (parse_optimize_options): Pass global_dc to
13559         decode_options.
13560         * c-opts.c (c_common_handle_option): Pass &global_options to
13561         set_Wstrict_aliasing.
13562         * c.opt (v): Don't mark Common or document here.
13564 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
13566         PR target/44981
13567         * c-format.c (format_type): New type gcc_objc_string_format_type.
13568         (valid_stringptr_type_p): New.
13569         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
13570         (check_format_string): Pass expected type, use
13571         valid_stringptr_type_p (), check that the format string types are
13572         consistent with the format specification.
13573         (decode_format_attr): Warn if NSString is used outside objective-c.
13574         (format_types_orig): Add NSString.
13575         (format_name): New.
13576         (format_flags): New.
13577         (check_format_arg): Handle format strings requiring an external parser.
13578         first_target_format_type: New variable.
13579         (handle_format_attribute): Set up first_target_format_type, pass the
13580         expected format arg string type to check_format_string().
13581         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
13582         * stub-objc.c (objc_string_ref_type_p): New.
13583         (objc_check_format_arg): New.
13585 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
13587         Fixed using the Objective-C 2.0 dot-syntax with class names.
13588         * c-common.h (objc_build_class_component_ref): New.
13589         * stub-objc.c (objc_build_class_component_ref): New.
13591 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
13593         * c.opt (Wproperty-assign-default): New option.
13595 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
13597         Implemented -fobjc-std=objc1 flag.
13598         * c.opt (fobjc-std=objc1): New option.
13600 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
13602         Implemented format and noreturn attributes for Objective-C methods.
13603         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
13604         attribute for Objective-C methods.
13606 2010-10-31  Jason Merrill  <jason@redhat.com>
13608         * c-common.c (conversion_warning, warn_for_collisions_1): Use
13609         EXPR_LOC_OR_HERE.
13611 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
13613         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
13614         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
13615         (objc_add_property_declaration): Removed arguments for copies and
13616         ivar.
13617         (objc_build_getter_call): Renamed to
13618         objc_maybe_build_component_ref.
13619         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
13620         (objc_is_property_ref): New.
13621         * c-common.c (c_common_reswords): Removed copies and ivar.
13622         * stub-objc.c (objc_add_property_declaration): Removed arguments
13623         for copies and ivar.
13624         (objc_build_getter_call): Renamed to
13625         objc_maybe_build_component_ref.
13626         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
13627         (objc_is_property_ref): New.
13629 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
13630             Matthew Gingell  <gingell@adacore.com>
13632         * c-ada-spec.c (separate_class_package): New function.
13633         (pp_ada_tree_identifier): Prefix references to C++ classes with the
13634         name of their enclosing package.
13635         (print_ada_declaration): Use separate_class_package.
13637 2010-10-27  Jason Merrill  <jason@redhat.com>
13639         * c-common.c (c_common_reswords): Add __is_literal_type.
13640         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
13642         * c-common.c (check_case_value): Remove special C++ code.
13644 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
13646         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
13647         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
13648         and RID_LAST_PATTR.
13649         (objc_add_property_declaration): Added additional arguments.
13650         (objc_property_attribute_kind): Removed.
13651         (objc_set_property_attr): Removed.
13652         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
13653         copy and nonatomic.
13654         * stub-objc.c (objc_add_property_declaration): Added additional
13655         arguments.
13656         (objc_set_property_attr): Removed.
13658 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
13660         * c-common.h (objc_add_property_variable): Renamed to
13661         objc_add_property_declaration.  Added location argument.
13662         * stub-objc.c (objc_add_property_variable): Same change.
13664 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
13666         * c-common.h (objc_maybe_printable_name): New.
13667         * stub-objc.c (objc_maybe_printable_name): New.
13669 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
13670             Andrew Pinski  <pinskia@gmail.com>
13672         * c-common.h (c_common_mark_addressable_vec): Declare.
13673         * c-common.c (c_common_mark_addressable_vec): New function.
13675 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
13677         * c-common.h (objc_set_method_type): Removed.
13678         (objc_add_method_declaration): Added boolean argument.
13679         (objc_start_method_definition): Same change.
13680         (objc_build_method_signature): Same change.
13681         * stub-objc.c (objc_set_method_type): Removed.
13682         (objc_add_method_declaration): Added boolean argument.
13683         (objc_start_method_definition): Same change.
13684         (objc_build_method_signature): Same change.
13686 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
13688         * c-common.h (finish_file): Removed.
13689         (objc_write_global_declarations): New.
13690         * c-opts.c (c_common_parse_file): Do not call finish_file.
13691         * stub-objc.c (objc_write_global_declarations): New.
13693 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
13695         Implemented parsing @synthesize and @dynamic for
13696         Objective-C/Objective-C++.
13697         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
13698         (objc_add_synthesize_declaration): New.
13699         (objc_add_dynamic_declaration): New.
13700         * c-common.c (c_common_reswords): Add synthesize and dynamic.
13701         * stub-objc.c (objc_add_synthesize_declaration): New.
13702         (objc_add_dynamic_declaration): New.
13704 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
13706         PR target/46041
13707         * c-cppbuiltin.c (mode_has_fma): Move function here from
13708         builtins.c.  Don't use the fma optab, instead just use the
13709         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
13710         using -save-temps.
13712 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
13714         Merge from 'apple/trunk' branch on FSF servers.
13716         2005-11-08  Fariborz Jahanian  <fjahanian@apple.com>
13718         Radar 4330422
13719         * c-common.h (objc_non_volatilized_type): New declaration
13720         * stub-objc.c (objc_non_volatilized_type): New stub.
13722 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
13724         Merge from 'apple/trunk' branch on FSF servers.
13726         2006-03-27  Fariborz Jahanian  <fjahanian@apple.com>
13728         Radar 4133425
13729         * c-common.h (objc_diagnose_private_ivar): New decl.
13730         * stub-objc.c (objc_diagnose_private_ivar): New stub.
13732 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
13734         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
13735         * c-common.h (enum rid): Add RID_AT_PACKAGE.
13736         (objc_ivar_visibility_kind): New enum.
13737         (objc_set_visibility): Adjust prototype to use visibility enum.
13738         * stub-objc.c (objc_set_visibility): Adjust stub to use
13739         visibility enum.
13741 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
13743         * c-cppbuiltin.c (builtin_define_float_constants): Emit
13744         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
13745         has the appropriate fma builtins.
13746         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
13748 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
13750         merge from FSF apple 'trunk' branch.
13751         2006 Fariborz Jahanian  <fjahanian@apple.com>
13753         Radars 4436866, 4505126, 4506903, 4517826
13754         * c-common.c (c_common_resword): Define @property and its attributes.
13755         * c-common.h: Define property attribute enum entries.
13756         (OBJC_IS_PATTR_KEYWORD): New.
13757         (objc_property_attribute_kind): New enum.
13758         Declare objc_set_property_attr (), objc_add_property_variable (),
13759         objc_build_getter_call () and objc_build_setter_call ().
13760         * stub-objc.c (objc_set_property_attr): New stub.
13761         (objc_add_property_variable): Likewise.
13762         (objc_build_getter_call): Likewise.
13763         (objc_build_setter_call) Likewise.
13765 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
13767         merge from FSF apple 'trunk' branch.
13768         2006-04-26  Fariborz Jahanian  <fjahanian@apple.com>
13770         Radar 3803157 (method attributes)
13771         * c-common.c (handle_deprecated_attribute): Recognize
13772         objc methods as valid declarations.
13773         * c-common.h: Declare objc_method_decl ().
13774         * stub-objc.c (objc_method_decl): New stub.
13776 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
13778         * c-common.c (parse_optimize_options): Call
13779         decode_cmdline_options_to_array_default_mask before
13780         decode_options.  Update arguments to decode_options.
13781         * c-common.h (c_common_init_options_struct): Declare.
13782         * c-opts.c (c_common_init_options_struct): New.  Split out from
13783         c_common_init_options.
13785 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
13787         Implemented fast enumeration for Objective-C.
13788         * c-common.h (objc_finish_foreach_loop): New.
13789         * stub-objc.c (objc_finish_foreach_loop): New.
13791 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
13793         * c-common.h (struct diagnostic_context): Don't declare here.
13794         (c_common_initialize_diagnostics): Declare using
13795         diagnostic_context typedef.
13796         * c-opts.c (c_common_handle_option): Pass global_dc to
13797         handle_generated_option.
13799 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
13801         * c-opts.c (c_common_handle_option): Pass &global_options_set to
13802         handle_generated_option.
13804 2010-10-03  Ian Lance Taylor  <iant@google.com>
13806         * c.opt (-fplan9-extensions): New option.
13808 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13810         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
13811         Remove.
13812         (c_cpp_builtins): Call functions from cppbuiltin.c instead
13813         of duplicating code.
13815 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
13817         * c-common.c: Add two new entries for @optional
13818         and @required keywords.
13820         merge from FSF 'apple/trunk' branch.
13821         2006-01-30  Fariborz Jahanian  <fjahanian@apple.com>
13823         Radar 4386773
13824         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
13825         objective-c keywords.
13826         (objc_set_method_opt): New declaration.
13827         * stub-objc.c (objc_set_method_opt): New stub.
13829 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
13831         * c-common.c (handle_optimize_attribute): Pass &global_options to
13832         cl_optimization_save and cl_optimization_restore.
13833         * c-opts.c (c_common_handle_option): Pass &global_options to
13834         handle_generated_option.
13835         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
13836         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
13837         &global_options to cl_optimization_restore.
13839 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
13841         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
13842         Objective-C/Objective-C++ keywords.
13844 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
13846         Merge from 'apple/trunk' branch on FSF servers.
13848         2005-10-04  Fariborz Jahanian  <fjahanian@apple.com>
13850         Radar 4281748
13851         * c-common.h (objc_check_global_decl): New declaration.
13852         * stub-objc.c (objc_check_global_decl): New stub.
13854 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
13856         * c.opt: Don't use VarExists.
13858 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
13860         * c-common.c (c_cpp_error): Update names of diagnostic_context
13861         members.
13862         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
13863         cl_optimization members.
13864         * c-opts.c (warning_as_error_callback, c_common_handle_option,
13865         sanitize_cpp_opts, finish_options): Update names of cpp_options
13866         members.
13868 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
13870         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
13871         (objc_is_reserved_word): Removed.
13872         * c-common.c: Updated comments.
13873         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
13874         objc_is_reserved_word.
13875         * stub-objc.c (objc_is_reserved_word): Removed.
13877 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
13879         * c-common.h (objc_add_method_declaration): Adjust prototype to
13880         include attributes.
13881         (objc_start_method_definition): Likewise.
13882         (objc_build_keyword_decl): Likewise.
13883         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
13884         (objc_start_method_definition): Likewise.
13885         (objc_build_keyword_decl): Likewise.
13887 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
13889         * c-common.h (objc_start_class_interface): Adjust prototype.
13890         (objc_start_category_interface): Likewise.
13891         (objc_start_protocol): Likewise.
13892         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
13893         (objc_start_class_interface): Likewise.
13894         (objc_start_category_interface): Likewise.
13896 2010-09-27  Ian Lance Taylor  <iant@google.com>
13898         * c-common.c (c_common_attribute_table): Add no_split_stack.
13899         (handle_no_split_stack_attribute): New static function.
13901 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
13903         Merge from 'apple/trunk' branch on FSF servers.
13905         2005-12-15  Fariborz Jahanian  <fjahanian@apple.com>
13907         Radar 4229905
13908         * c-common.h (objc_have_common_type): New declaration.
13909         * stub-objc.c (objc_have_common_type): New stub.
13911         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
13913         Radar 4154928
13914         * c-common.h (objc_common_type): New prototype.
13915         * stub-objc.c (objc_common_type): New stub.
13917 2010-09-24  Jan Hubicka  <jh@suse.cz>
13919         * c-common.c (handle_leaf_attribute): New function.
13920         (struct attribute_spec c_common_att): Add leaf.
13922 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
13924         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
13925         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
13926         -dump, -dump=, -imacros, -imacros=, -include, -include=,
13927         -include-barrier, -include-directory, -include-directory=,
13928         -include-directory-after, -include-directory-after=,
13929         -include-prefix, -include-prefix=, -include-with-prefix,
13930         -include-with-prefix=, -include-with-prefix-after,
13931         -include-with-prefix-after=, -include-with-prefix-before,
13932         -include-with-prefix-before=, -no-integrated-cpp,
13933         -no-line-commands, -no-standard-includes, -no-warnings, -output,
13934         -output=, -pedantic, -pedantic-errors, -preprocess,
13935         -print-missing-file-dependencies, -trace-includes, -traditional,
13936         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
13937         -user-dependencies, -verbose, -write-dependencies,
13938         -write-user-dependencies, no-integrated-cpp, traditional): New.
13940 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
13942         PR objc/23710
13943         * c-common.h (objc_start_method_definition): Return bool instead
13944         of void.
13945         * stub-objc.c (objc_start_method_definition): Return bool instead
13946         of void.
13948 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
13950         PR objc/25965
13951         * c-common.h (objc_get_interface_ivars): New declaration.
13952         * stub-objc.c (objc_get_interface_ivars): New stub.
13954 2010-09-15  Ian Lance Taylor  <iant@google.com>
13956         * c-common.c (parse_optimize_options): Do not capitalize warning
13957         messages.  Remove period at end of warning message.
13959 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
13961         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
13962         (handle_alias_attribute): ... here.
13963         (handle_ifunc_attribute): New.
13965 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
13967         * c-common.h (do_warn_double_promotion): Declare.
13968         * c-common.c (do_warn_double_promotion): Define.
13970 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
13972         * c.opt (Wdouble-promotion): New.
13974 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
13976         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
13977         fvtable-thunks, fxref): Mark no longer supported in help text.
13979 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
13981         * c.opt (Wimport, fall-virtual, falt-external-templates,
13982         fdefault-inline, fenum-int-equiv, fexternal-templates,
13983         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
13984         fname-mangling-version-, fnew-abi, fnonnull-objects,
13985         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
13986         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
13987         applicable.
13988         (fhandle-exceptions): Mark with Alias and Warn.
13989         * c-opts.c (c_common_handle_option): Don't handle options marked
13990         as ignored.
13992 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
13994         * c.opt (Wcomments, Werror-implicit-function-declaration,
13995         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
13996         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
13997         aliases.
13998         * c-common.c (option_codes): Use OPT_Wcomment instead of
13999         OPT_Wcomments.
14000         * c-opts.c (warning_as_error_callback, c_common_handle_option):
14001         Don't handle options marked as aliases.
14003 2010-08-25  Richard Guenther  <rguenther@suse.de>
14005         * c-common.c (c_common_get_alias_set): Remove special
14006         handling for pointers.
14008 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
14010         * c-common.c: Use FOR_EACH_VEC_ELT.
14011         * c-gimplify.c: Likewise.
14012         * c-pragma.c: Likewise.
14014 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
14016         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
14017         RejectDriver.
14018         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
14019         RejectDriver.
14020         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
14021         instead of OPT_MDX and OPT_MMDX.
14023 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
14025         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
14027 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
14029         * c.opt (MD, MMD): Change to MDX and MMDX.
14030         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
14032 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
14034         * c-opts.c (c_common_handle_option): Call handle_generated_option
14035         instead of handle_option.
14037 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
14039         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
14040         (maybe_apply_renaming_pragma): Delete unneeded declarations.
14042 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
14044         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
14045         (pending_redefine_extname): Change type to a VEC.
14046         (add_to_renaming_pragma_list): Update for new type of
14047         pending_redefine_extname.
14048         (maybe_apply_renaming_pragma): Likewise.
14050 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
14052         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
14053         visited.
14054         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
14055         decide whether a type has already been declared/seen.
14056         Do not go to the original type.
14057         (dump_nested_types): New parameter forward.
14058         Generate forward declaration if needed and mark type as visited.
14059         (print_ada_declaration): Call dump_nested_types if not already done.
14060         Mark types as visited.
14062 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
14064         * c.opt (-print-pch-checksum): Remove option.
14065         * c-opts.c (c_common_handle_option): Don't handle
14066         OPT_print_pch_checksum.
14068 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
14070         * c-common.h (c_common_handle_option): Update prototype and return
14071         value type.
14072         * c-opts.c (c_common_handle_option): Update prototype and return
14073         value type.  Update calls to handle_option and
14074         enable_warning_as_error.
14076 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
14078         PR c/45079
14079         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
14081 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
14083         * c-common.h (c_common_missing_argument): Remove.
14084         * c-opts.c (c_common_missing_argument): Remove.
14085         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
14086         idirafter, imacros, include, isysroot, isystem, iquote): Add
14087         MissingArgError.
14088         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
14090 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
14092         * c-common.h (c_common_option_lang_mask,
14093         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
14094         New.
14095         (c_common_init_options): Update prototype.
14096         * c-opts.c (c_common_option_lang_mask): New.
14097         (c_common_initialize_diagnostics): Split out of
14098         c_common_init_options.
14099         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
14100         New.
14101         (c_common_init_options): Update prototype.  Use decoded options in
14102         search for -lang-asm.
14104 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
14106         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
14107         * c-format.c: Likewise.
14109 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14111         * c-common.h: Include diagnostic-core.h. Error if already
14112         included.
14113         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
14115 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14117         * c-common.c (IN_GCC_FRONTEND): Do not undef.
14118         Do not include expr.h
14119         (vector_mode_valid_p): Move here.
14121 2010-06-21  DJ Delorie  <dj@redhat.com>
14123         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
14124         allow these pragmas anywhere.
14126 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
14128         PR bootstrap/44509
14129         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
14130         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
14131         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
14132         ggc_strdup instead of xstrdup.
14134 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
14136         * c-cppbuiltin.c: Include cpp-id-data.h.
14137         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
14138         (lazy_hex_fp_value): New function.
14139         (builtin_define_with_hex_fp_value): Provide definitions lazily.
14141 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14143         * c-gimplify.c: Do not include tree-flow.h
14145 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
14147         PR other/44034
14148         * c-common.c: Rename targetm member:
14149         targetm.enum_va_list -> targetm.enum_va_list_p
14151 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
14153         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
14155 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
14157         * c-cppbuiltin.c: Do not include except.h.
14159 2010-06-24  Andi Kleen  <ak@linux.intel.com>
14161         * c-common.c (warn_for_omitted_condop): New.
14162         * c-common.h (warn_for_omitted_condop): Add prototype.
14164 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
14166         * c.opt (lang-objc): Remove.
14167         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
14169 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
14171         * c-opts.c: Include "tm_p.h".
14173 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
14175         * c-common.c (parse_optimize_options): Update call to
14176         decode_options.
14178 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
14180         * c-common.c (record_types_used_by_current_var_decl): Adjust for
14181         new type of types_used_by_cur_var_decl.
14183 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
14185         PR bootstrap/44512
14186         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
14187         for C++ standard compliance.
14189 2010-06-16  Jason Merrill  <jason@redhat.com>
14191         * c.opt: Add -Wnoexcept.
14193 2010-06-16  Richard Guenther  <rguenther@suse.de>
14195         PR c/44555
14196         * c-common.c (c_common_truthvalue_conversion): Remove
14197         premature and wrong optimization concering ADDR_EXPRs.
14199 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
14201         * c-ada-spec.c (dump_sloc): Remove column info.
14202         (is_simple_enum): New function.
14203         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
14204         enum types when relevant.
14206 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14208         * c-common.c (conversion_warning): Warn at expression
14209         location.
14211 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
14213         * c-opts.c (c_common_handle_option): Don't handle
14214         OPT_fshow_column.
14216 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14218         * c-pragma.c (push_alignment): Use typed GC allocation.
14219         (handle_pragma_push_options): Likewise.
14221         * c-common.c (parse_optimize_options): Likewise.
14223         * c-common.h (struct sorted_fields_type): Add variable_size GTY
14224         option.
14226 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
14228         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
14229         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
14230         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
14231         flag_signed_bitfields, warn_strict_null_sentinel,
14232         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
14233         flag_gen_declaration, flag_no_gnu_keywords,
14234         flag_implement_inlines, flag_implicit_templates,
14235         flag_implicit_inline_templates, flag_optional_diags,
14236         flag_elide_constructors, flag_default_inline, flag_rtti,
14237         flag_conserve_space, flag_access_control, flag_check_new,
14238         flag_new_for_scope, flag_weak, flag_working_directory,
14239         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
14240         flag_enforce_eh_specs, flag_threadsafe_statics,
14241         flag_pretty_templates): Remove.
14242         * c-common.h (flag_preprocess_only, flag_nil_receivers,
14243         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
14244         flag_replace_objc_classes, flag_undef, flag_no_builtin,
14245         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
14246         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
14247         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
14248         flag_no_gnu_keywords, flag_implement_inlines,
14249         flag_implicit_templates, flag_implicit_inline_templates,
14250         flag_optional_diags, flag_elide_constructors, flag_default_inline,
14251         flag_rtti, flag_conserve_space, flag_access_control,
14252         flag_check_new, flag_new_for_scope, flag_weak,
14253         flag_working_directory, flag_use_cxa_atexit,
14254         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
14255         flag_threadsafe_statics, flag_pretty_templates,
14256         warn_strict_null_sentinel): Remove.
14257         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
14258         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
14259         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
14260         fimplicit-inline-templates, fimplicit-templates,
14261         flax-vector-conversions, fms-extensions, fnil-receivers,
14262         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
14263         frtti, fshort-double, fshort-enums, fshort-wchar,
14264         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
14265         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
14266         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
14267         gen-decls, undef): Use Var.
14268         (fdefault-inline, foptional-diags): Document as doing nothing.
14269         * c-opts.c (c_common_handle_option): Remove cases for options now
14270         using Var.  Mark ignored options as such.
14272 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
14274         * c-common.c: Moved to here from parent directory.
14275         * c-common.def: Likewise.
14276         * c-common.h: Likewise.
14277         * c-cppbuiltin.c: Likewise.
14278         * c-dump.c: Likewise.
14279         * c-format.c: Likewise.
14280         * c-format.h : Likewise.
14281         * c-gimplify.c: Likewise.
14282         * c-lex.c: Likewise.
14283         * c-omp.c: Likewise.
14284         * c.opt: Likewise.
14285         * c-opts.c: Likewise.
14286         * c-pch.c: Likewise.
14287         * c-ppoutput.c: Likewise.
14288         * c-pragma.c: Likewise.
14289         * c-pragma.h: Likewise.
14290         * c-pretty-print.c: Likewise.
14291         * c-pretty-print.h: Likewise.
14292         * c-semantics.c: Likewise.
14293         * stub-objc.c: Likewise.
14295         * c-common.c: Include gt-c-family-c-common.h.
14296         * c-pragma.c: Include gt-c-family-c-pragma.h.
14298 Copyright (C) 2010-2023 Free Software Foundation, Inc.
14300 Copying and distribution of this file, with or without modification,
14301 are permitted in any medium without royalty provided the copyright
14302 notice and this notice are preserved.