Daily bump.
[official-gcc.git] / gcc / c-family / ChangeLog
blob9a9f54a0eee9a6b04e4b2d5e49a7d28b3bc00c06
1 2023-11-14  Jakub Jelinek  <jakub@redhat.com>
3         PR c/111309
4         * c-common.cc (check_builtin_function_arguments): Handle
5         BUILT_IN_{CLZ,CTZ,CLRSB,FFS,PARITY,POPCOUNT}G.
6         * c-gimplify.cc (c_gimplify_expr): If __builtin_c[lt]zg second
7         argument hasn't been folded into constant yet, transform it to one
8         argument call inside of a COND_EXPR which for first argument 0
9         returns the second argument.
11 2023-11-11  Martin Uecker  <uecker@tugraz.at>
13         PR c/110815
14         PR c/112428
15         * c-attribs.cc (build_attr_access_from_parms): Synthesize
16         nonnull attribute for parameters declared with `static`.
18 2023-11-09  Florian Weimer  <fweimer@redhat.com>
20         * c.opt (Wreturn-mismatch): New.
22 2023-11-08  Florian Weimer  <fweimer@redhat.com>
24         * c.opt (fpermissive): Enable for C and ObjC.
25         * c-opts.cc (c_common_post_options): Enable -fpermissive.
27 2023-11-07  Joseph Myers  <joseph@codesourcery.com>
29         * c-format.h (T2X_UI): Rename to T23_UI.
30         (T2X_UL): Rename to T23_UL.
31         (T2X_ULL): Rename to T23_ULL.
32         (T2X_US): Rename to T23_US.
33         (T2X_UC): Rename to T23_UC.
34         (T2X_ST): Rename to T23_ST.
35         (T2X_UPD): Rename to T23_UPD.
36         (T2X_UIM): Rename to T23_UIM.
37         (T2X_D32): Rename to T23_D32.
38         (T2X_D64): Rename to T23_D64.
39         (T2X_D128): Rename to T23_D128.
40         (T2X_I8): Rename to T23_I8.
41         (T2X_I16): Rename to T23_I16.
42         (T2X_I32): Rename to T23_I32.
43         (T2X_I64): Rename to T23_I64.
44         (T2X_U8): Rename to T23_U8.
45         (T2X_U16): Rename to T23_U16.
46         (T2X_U32): Rename to T23_U32.
47         (T2X_U64): Rename to T23_U64.
48         (T2X_IF8): Rename to T23_IF8.
49         (T2X_IF16): Rename to T23_IF16.
50         (T2X_IF32): Rename to T23_IF32.
51         (T2X_IF64): Rename to T23_IF64.
52         (T2X_UF8): Rename to T23_UF8.
53         (T2X_UF16): Rename to T23_UF16.
54         (T2X_UF32): Rename to T23_UF32.
55         (T2X_UF64): Rename to T23_UF64.
56         * c-format.cc: Update all uses of T2X_* macros to use T23_*.
58 2023-11-07  Kwok Cheung Yeung  <kcy@codesourcery.com>
60         * c-attribs.cc (c_common_attribute_table): Add attribute for
61         indirect functions.
62         * c-pragma.h (enum parma_omp_clause): Add entry for indirect clause.
64 2023-11-07  Joseph Myers  <joseph@codesourcery.com>
66         * c-common.cc (flag_isoc2x): Rename to flag_isoc23.
67         (c_common_reswords): Use D_C23 instead of D_C2X.
68         * c-common.h: Refer throughout to C23 instead of C2X in comments.
69         (D_C2X): Rename to D_C23.
70         (flag_isoc2x): Rename to flag_isoc23.
71         * c-cppbuiltin.cc (builtin_define_float_constants): Use
72         flag_isoc23 instead of flag_isoc2x.  Refer to C23 instead of C2x
73         in comments.
74         * c-format.cc: Use STD_C23 instead of STD_C2X and flag_isoc23
75         instead of flag_isoc2x.  Refer to C23 instead of C2X in comments.
76         * c-format.h: Use STD_C23 instead of STD_C2X.
77         * c-lex.cc: Use warn_c11_c23_compat instead of warn_c11_c2x_compat
78         and flag_isoc23 instead of flag_isoc2x.  Refer to C23 instead of
79         C2X in diagnostics.
80         * c-opts.cc: Use flag_isoc23 instead of flag_isoc2x.  Refer to C23
81         instead of C2X in comments.
82         (set_std_c2x): Rename to set_std_c23.
83         * c.opt (Wc11-c23-compat): Use CPP(cpp_warn_c11_c23_compat)
84         CppReason(CPP_W_C11_C23_COMPAT) Var(warn_c11_c23_compat) instead
85         of CPP(cpp_warn_c11_c2x_compat) CppReason(CPP_W_C11_C2X_COMPAT)
86         Var(warn_c11_c2x_compat).
88 2023-11-06  Joseph Myers  <joseph@codesourcery.com>
90         PR c/107954
91         * c.opt (Wc11-c2x-compat): Rename to Wc11-c23-compat and make into
92         a deprecated alias of Wc11-c23-compat.
93         (std=c2x): Rename to std=c23 and make into a deprecated alias of
94         std=c23.
95         (std=gnu2x): Rename to std=gnu23 and make into a deprecated alias
96         of std=gnu23.
97         (std=iso9899:2024): New option.  Alias of std=c23.
98         * c-lex.cc (interpret_float): Use OPT_Wc11_c23_compat instead of
99         OPT_Wc11_c2x_compat.
100         * c-opts.cc (c_common_handle_option): Use OPT_std_c23 instead of
101         OPT_std_c2x and OPT_std_gnu23 instead of OPT_std_gnu2x.
103 2023-11-05  Jakub Jelinek  <jakub@redhat.com>
105         * c-lex.cc (c_common_has_attribute): Return 1 for omp::directive
106         and omp::sequence with -fopenmp or -fopenmp-simd also for C, not
107         just for C++.  Return 1 for omp::decl with -fopenmp or -fopenmp-simd
108         for both C and C++.
110 2023-11-04  David Malcolm  <dmalcolm@redhat.com>
112         * c-pragma.cc:: (handle_pragma_push_options): Fix missing "GCC" in
113         name of pragma in "junk" message.
114         (handle_pragma_pop_options): Likewise.
116 2023-11-04  David Malcolm  <dmalcolm@redhat.com>
118         * c-common.cc: Update for changes to diagnostic_context.
119         * c-indentation.cc: Likewise.
120         * c-opts.cc: Likewise.
121         * c-warn.cc: Likewise.
123 2023-11-01  Martin Uecker  <uecker@tugraz.at>
125         PR c/71219
126         * c.opt (Walloc-size): New option.
128 2023-10-31  David Malcolm  <dmalcolm@redhat.com>
130         * c-warn.cc (warn_for_multistatement_macros): Update for removal
131         of MACRO_MAP_EXPANSION_POINT_LOCATION.
133 2023-10-27  Lewis Hyatt  <lhyatt@gmail.com>
135         PR preprocessor/87299
136         * c-pragma.cc (init_pragma): Register `#pragma GCC target' and
137         related pragmas in preprocess-only mode, and enable early handling.
138         (c_reset_target_pragmas): New function refactoring code from...
139         (handle_pragma_reset_options): ...here.
140         * c-pragma.h (c_reset_target_pragmas): Declare.
142 2023-10-26  David Malcolm  <dmalcolm@redhat.com>
144         * c-attribs.cc (c_common_attribute_table): Add
145         "null_terminated_string_arg".
146         (handle_null_terminated_string_arg_attribute): New.
148 2023-10-23  Lewis Hyatt  <lhyatt@gmail.com>
150         PR preprocessor/36887
151         * c-opts.cc (c_common_init_options): Pass new extra hash map
152         argument to cpp_create_reader().
154 2023-10-20  Marek Polacek  <polacek@redhat.com>
156         PR c/111884
157         * c-common.cc (c_common_get_alias_set): Return -1 for char8_t only
158         in C++.
160 2023-10-20  Patrick Palka  <ppalka@redhat.com>
162         * c-warn.cc (check_address_or_pointer_of_packed_member): Handle
163         type-dependent callee of CALL_EXPR.
165 2023-10-20  Alexandre Oliva  <oliva@adacore.com>
167         * c-attribs.cc (handle_expected_throw_attribute): New.
168         (c_common_attribute_table): Add expected_throw.
170 2023-10-19  Lewis Hyatt  <lhyatt@gmail.com>
172         PR c++/89038
173         * c-pragma.cc (handle_pragma_diagnostic_impl):  Handle
174         -Wunknown-pragmas during early processing.
176 2023-10-15  Jakub Jelinek  <jakub@redhat.com>
178         PR tree-optimization/111800
179         * c-warn.cc (match_case_to_enum_1): Assert w.get_precision ()
180         is smaller or equal to WIDE_INT_MAX_INL_PRECISION rather than
181         w.get_len () is smaller or equal to WIDE_INT_MAX_INL_ELTS.
183 2023-10-12  Jakub Jelinek  <jakub@redhat.com>
185         PR c/102989
186         * c-warn.cc (match_case_to_enum_1): Use wi::to_wide just once instead
187         of 3 times, assert get_len () is smaller than WIDE_INT_MAX_INL_ELTS.
189 2023-10-02  David Malcolm  <dmalcolm@redhat.com>
191         * c-common.cc (maybe_add_include_fixit): Update for renaming of
192         diagnostic_context's show_caret to m_source_printing.enabled.
193         * c-opts.cc (c_common_init_options): Update for renaming of
194         diagnostic_context's colorize_source_p to
195         m_source_printing.colorize_source_p.
197 2023-09-20  Jakub Jelinek  <jakub@redhat.com>
199         PR c++/111392
200         * c-omp.cc (c_omp_directives): Add commented out groupprivate
201         directive entry.
203 2023-09-19  Ben Boeckel  <ben.boeckel@kitware.com>
205         * c-opts.cc (c_common_handle_option): Add fdeps_file variable and
206         -fdeps-format=, -fdeps-file=, and -fdeps-target= parsing.
207         * c.opt: Add -fdeps-format=, -fdeps-file=, and -fdeps-target=
208         flags.
210 2023-09-19  Javier Martinez  <javier.martinez.bugzilla@gmail.com>
212         * c-attribs.cc (handle_hot_attribute): remove warning on
213         RECORD_TYPE and UNION_TYPE when in c_dialect_xx.
214         (handle_cold_attribute): Likewise.
216 2023-09-19  Jakub Jelinek  <jakub@redhat.com>
218         * c-common.cc (c_common_signed_or_unsigned_type): Return INTEGER_TYPE
219         for signed variant of unsigned _BitInt(1).
221 2023-09-06  Jakub Jelinek  <jakub@redhat.com>
223         PR c/102989
224         * c-attribs.cc (type_valid_for_vector_size): Reject vector types
225         with BITINT_TYPE elements even if they have mode precision and
226         suitable size.
228 2023-09-06  Jakub Jelinek  <jakub@redhat.com>
230         PR c/102989
231         * c-common.cc (c_common_reswords): Add _BitInt as keyword.
232         (unsafe_conversion_p): Handle BITINT_TYPE like INTEGER_TYPE.
233         (c_common_signed_or_unsigned_type): Handle BITINT_TYPE.
234         (c_common_truthvalue_conversion, c_common_get_alias_set,
235         check_builtin_function_arguments): Handle BITINT_TYPE like
236         INTEGER_TYPE.
237         (sync_resolve_size): Add ORIG_FORMAT argument.  If
238         FETCH && !ORIG_FORMAT, type is BITINT_TYPE, return -1 if size isn't
239         one of 1, 2, 4, 8 or 16 or if it is 16 but TImode is not supported.
240         (atomic_bitint_fetch_using_cas_loop): New function.
241         (resolve_overloaded_builtin): Adjust sync_resolve_size caller.  If
242         -1 is returned, use atomic_bitint_fetch_using_cas_loop to lower it.
243         Formatting fix.
244         (keyword_begins_type_specifier): Handle RID_BITINT.
245         * c-common.h (enum rid): Add RID_BITINT enumerator.
246         * c-cppbuiltin.cc (c_cpp_builtins): For C call
247         targetm.c.bitint_type_info and predefine __BITINT_MAXWIDTH__
248         and for -fbuilding-libgcc also __LIBGCC_BITINT_LIMB_WIDTH__ and
249         __LIBGCC_BITINT_ORDER__ macros if _BitInt is supported.
250         * c-lex.cc (interpret_integer): Handle CPP_N_BITINT.
251         * c-pretty-print.cc (c_pretty_printer::simple_type_specifier,
252         c_pretty_printer::direct_abstract_declarator,
253         c_pretty_printer::direct_declarator, c_pretty_printer::declarator):
254         Handle BITINT_TYPE.
255         (pp_c_integer_constant): Handle printing of large precision wide_ints
256         which would buffer overflow digit_buffer.
257         * c-warn.cc (conversion_warning, warnings_for_convert_and_check,
258         warnings_for_convert_and_check): Handle BITINT_TYPE like
259         INTEGER_TYPE.
261 2023-09-06  Jakub Jelinek  <jakub@redhat.com>
263         PR c/102989
264         * c-ubsan.cc (ubsan_instrument_shift): Use UBSAN_PRINT_FORCE_INT
265         for type0 type descriptor.
267 2023-09-06  Jakub Jelinek  <jakub@redhat.com>
269         * c-lex.cc (interpret_float): For C diagnostics on FN and FNx suffixes
270         append " before C2X" to diagnostics text and follow behavior of
271         pedwarn_c11.
273 2023-09-01  Jakub Jelinek  <jakub@redhat.com>
275         PR c++/111069
276         * c-opts.cc (c_common_post_options): Change latest_abi_version to 19.
278 2023-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
280         * c.opt: Change spelling to macOS.
282 2023-08-31  Richard Biener  <rguenther@suse.de>
284         PR middle-end/111253
285         * c-pretty-print.cc (c_pretty_printer::primary_expression):
286         Only dump gimple_assign_single_p SSA def RHS.
288 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
290         * c-common.h (c_omp_check_loop_binding_exprs): Declare.
291         * c-omp.cc: Include tree-iterator.h.
292         (find_binding_in_body): New.
293         (check_loop_binding_expr_r): New.
294         (LOCATION_OR): New.
295         (check_looop_binding_expr): New.
296         (c_omp_check_loop_binding_exprs): New.
298 2023-08-25  Uros Bizjak  <ubizjak@gmail.com>
300         * c-format.cc (read_any_format_width):
301         Rename TRUE/FALSE to true/false.
303 2023-08-20  Martin Uecker  <uecker@tugraz.at>
305         * c-format.cc: Fix identation.
307 2023-08-20  Tomas Kalibera  <tomas.kalibera@gmail.com>
309         PR c/95130
310         * c-format.cc: skip default format for printf symbol if
311         explicitly declared by prototype.
313 2023-08-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
315         PR c/106537
316         * c.opt (Wcompare-distinct-pointer-types): New option.
318 2023-08-14  Jason Merrill  <jason@redhat.com>
320         * c-cppbuiltin.cc (c_cpp_builtins): Adjust __cpp_concepts.
322 2023-08-11  Jakub Jelinek  <jakub@redhat.com>
324         * c-common.cc (c_common_reswords): Add __typeof_unqual
325         and __typeof_unqual__ spellings of typeof_unqual.
327 2023-08-11  Martin Uecker  <uecker@tugraz.at>
329         PR c/84510
330         * c.opt: Enable warning for C and ObjC.
332 2023-08-05  Martin Uecker  <uecker@tugraz.at>
334         PR c/98536
335         * c-warn.cc (warn_parm_array_mismatch): Do not warn if more
336         bounds are specified.
338 2023-08-04  Tamar Christina  <tamar.christina@arm.com>
340         * c-pragma.h (enum pragma_kind): Add PRAGMA_NOVECTOR.
341         * c-pragma.cc (init_pragma): Use it.
343 2023-08-01  Lewis Hyatt  <lhyatt@gmail.com>
345         * c-common.h (c_init_preprocess): Declare new function.
346         * c-opts.cc (c_common_init): Call it.
347         * c-lex.cc (cb_def_pragma): Add a comment.
348         (get_token): New function wrapping cpp_get_token.
349         (c_lex_with_flags): Use the new wrapper function to support
350         obtaining tokens in preprocess_only mode.
351         (lex_string): Likewise.
352         * c-pragma.cc (pragma_diagnostic_lex_normal): Rename to...
353         (pragma_diagnostic_lex): ...this.
354         (pragma_diagnostic_lex_pp): Remove.
355         (handle_pragma_diagnostic_impl): Call pragma_diagnostic_lex () in
356         all modes.
357         (c_pp_invoke_early_pragma_handler): Adapt to support pragma_lex ()
358         usage.
359         * c-pragma.h (pragma_lex_discard_to_eol): Declare.
361 2023-07-31  Hamza Mahfooz  <someguy@effective-light.com>
363         PR c/65213
364         * c.opt (-Wmissing-variable-declarations): New option.
366 2023-07-20  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
368         PR middle-end/77928
369         * c-common.cc (check_builtin_function_arguments):
370         Handle BUILT_IN_ISEQSIG.
372 2023-07-05  Robin Dapp  <rdapp@ventanamicro.com>
373             Juzhe-Zhong  <juzhe.zhong@rivai.ai>
375         * c-common.cc (c_common_type_for_mode): Use GET_MODE_PRECISION.
377 2023-06-29  Qing Zhao  <qing.zhao@oracle.com>
379         PR c/77650
380         * c.opt: New option -Wflex-array-member-not-at-end.
382 2023-06-28  Jason Merrill  <jason@redhat.com>
384         PR c++/110344
385         * c-cppbuiltin.cc (c_cpp_builtins): Update __cpp_constexpr.
387 2023-06-26  Richard Biener  <rguenther@suse.de>
389         * c-common.cc (shorten_binary_op): Exit early for VECTOR_TYPE
390         operations.
392 2023-06-23  Marek Polacek  <polacek@redhat.com>
394         * c-common.h (cxx_dialect): Add cxx26 as a dialect.
395         * c-opts.cc (set_std_cxx26): New.
396         (c_common_handle_option): Set options when -std={c,gnu}++2{c,6} is
397         enabled.
398         (c_common_post_options): Adjust comments.
399         * c.opt: Add options for -std=c++26, std=c++2c, -std=gnu++26,
400         and -std=gnu++2c.
401         (std=c++2b): Mark as Undocumented.
402         (std=c++23): No longer Undocumented.
404 2023-06-21  Alexander Monakov  <amonakov@ispras.ru>
406         * c-gimplify.cc (fma_supported_p): New helper.
407         (c_gimplify_expr) [PLUS_EXPR, MINUS_EXPR]: Implement FMA
408         contraction.
410 2023-06-16  Alex Coplan  <alex.coplan@arm.com>
412         * c.opt (Welaborated-enum-base): New.
414 2023-06-13  David Malcolm  <dmalcolm@redhat.com>
416         PR c/84890
417         * known-headers.cc
418         (suggest_missing_header::~suggest_missing_header): Reword note to
419         avoid negative tone of "forgetting".
421 2023-06-07  Jason Merrill  <jason@redhat.com>
423         PR c++/58487
424         * c.opt: Add -Wnrvo.
426 2023-05-26  Martin Uecker  <uecker@tugraz.at>
428         * c-attribs.cc (build_attr_access_from_parms): Split loop to first
429         record all parameters.
431 2023-05-18  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
433         * c-ada-spec.cc (has_static_fields): Use _P() defines from tree.h.
434         (dump_ada_declaration): Ditto.
435         (dump_ada_structure): Ditto.
436         * c-common.cc (unsafe_conversion_p): Ditto.
437         (shorten_compare): Ditto.
438         (pointer_int_sum): Ditto.
439         (c_common_truthvalue_conversion): Ditto.
440         (scalar_to_vector): Ditto.
441         * c-common.h (gnu_vector_type_p): Ditto.
442         * c-omp.cc (c_omp_depend_t_p): Ditto.
443         (c_omp_split_clauses): Ditto.
444         * c-ubsan.cc (ubsan_instrument_division): Ditto.
445         * c-warn.cc (conversion_warning): Ditto.
446         (warnings_for_convert_and_check): Ditto.
448 2023-05-18  Joseph Myers  <joseph@codesourcery.com>
450         * c-format.cc (print_char_table): Handle %B like %b.
452 2023-05-15  Joseph Myers  <joseph@codesourcery.com>
454         * c-lex.cc (c_common_has_attribute): Use 202311 as
455         __has_c_attribute return for all C2x attributes.
457 2023-05-15  Patrick Palka  <ppalka@redhat.com>
459         * c-cppbuiltin.cc (c_cpp_builtins): Predefine __cpp_auto_cast
460         for C++23.
462 2023-05-01  Marek Polacek  <polacek@redhat.com>
464         * c-ubsan.cc (ubsan_maybe_instrument_array_ref): Don't copy_node.
466 2023-03-28  David Malcolm  <dmalcolm@redhat.com>
468         PR c/107002
469         * c-common.h (check_for_xor_used_as_pow): Add "rhs_loc" param.
470         * c-warn.cc (check_for_xor_used_as_pow): Add "rhs_loc" param.
471         Reject cases where involving macro expansions.
473 2023-03-28  Jason Merrill  <jason@redhat.com>
475         PR c++/107163
476         * c-common.cc (verify_tree): Don't use sequenced handling
477         for COMPONENT_REF.
479 2023-03-17  Jakub Jelinek  <jakub@redhat.com>
481         PR c/109151
482         * c-ubsan.cc (ubsan_instrument_division): Handle all scalar integral
483         types rather than just INTEGER_TYPE.
485 2023-03-10  Marek Polacek  <polacek@redhat.com>
487         PR sanitizer/108060
488         PR sanitizer/109050
489         * c-gimplify.cc (ubsan_walk_array_refs_r): For a MODIFY_EXPR, instrument
490         the RHS before the LHS.
492 2023-03-04  Jakub Jelinek  <jakub@redhat.com>
494         PR c/107465
495         * c-warn.cc (warn_for_sign_compare): Don't warn for unset bits
496         above innermost zero extension of BIT_NOT_EXPR result.
498 2023-03-04  Jakub Jelinek  <jakub@redhat.com>
500         PR c/107465
501         * c-warn.cc (warn_for_sign_compare): If c_common_get_narrower
502         doesn't return a narrower result, use TYPE_UNSIGNED to set unsignedp0
503         and unsignedp1.  For the one BIT_NOT_EXPR case vs. one without,
504         only check for constant in the non-BIT_NOT_EXPR operand, use std::swap
505         to simplify the code, only warn if BIT_NOT_EXPR operand is extended
506         from narrower unsigned, fix up computation of mask for the constant
507         cases and for unsigned other operand case handle differently
508         BIT_NOT_EXPR result being sign vs. zero extended.
510 2023-03-04  Jakub Jelinek  <jakub@redhat.com>
512         PR c/107846
513         * c-warn.cc: Include langhooks.h.
514         (maybe_warn_shift_overflow): Set type0 to what TREE_TYPE (op0)
515         promotes to rather than TREE_TYPE (op0) itself, if TREE_TYPE (op0)
516         is narrower than type0 and unsigned, use wi::min_precision with
517         UNSIGNED and fold_convert op0 to type0 before emitting the warning.
519 2023-03-03  Alexandre Oliva  <oliva@adacore.com>
521         * c-common.cc (c_common_nodes_and_builtins): Take
522         wchar_type_node for wint_type_node when aliased.
523         (c_stddef_cpp_builtins): Define __WINT_TYPE__, when aliased to
524         wchar_t, to the underlying type rather than wchar_t in
525         non-C++.
526         * c-cppbuiltin.cc (type_suffix): Handle wchar_type_node.
528 2023-02-28  Marek Polacek  <polacek@redhat.com>
530         PR c++/107938
531         * c-warn.cc (check_address_or_pointer_of_packed_member): Check
532         POINTER_TYPE_P.
534 2023-02-28  Jakub Jelinek  <jakub@redhat.com>
536         PR sanitizer/108894
537         * c-common.h (c_strict_flex_array_level_of): Declare.
538         * c-common.cc (c_strict_flex_array_level_of): New function,
539         moved and renamed from c-decl.cc's strict_flex_array_level_of.
540         * c-ubsan.cc (ubsan_instrument_bounds): Fix comment typo.  For
541         C check c_strict_flex_array_level_of whether a trailing array
542         should be treated as flexible member like.  Handle C [0] arrays.
543         Add 1 + index_off_by_one rather than index_off_by_one to bounds
544         and use tree_int_cst_lt rather than tree_int_cst_le for idx vs.
545         bounds comparison.
547 2023-02-23  Jakub Jelinek  <jakub@redhat.com>
549         PR translation/108890
550         * c.opt (fcontracts): Fix description.
552 2023-02-22  Marek Polacek  <polacek@redhat.com>
554         PR c/108880
555         * c-gimplify.cc (c_genericize_control_stmt) <case STATEMENT_LIST>: Pass
556         pset to walk_tree_1.
557         (c_genericize): Call walk_tree with an explicit pset.
559 2023-02-18  Martin Uecker  <uecker@tugraz.at>
561         PR c/105660
562         * c-attribs.cc (append_access_attr): Use order of arguments when
563         construction string.
564         (append_access_attr_idxs): Rename and make static.
565         * c-warn.cc (warn_parm_array_mismatch): Add assertion.
567 2023-02-16  Patrick Palka  <ppalka@redhat.com>
569         * c-common.h: Mechanically drop static from static inline
570         functions via s/^static inline/inline/g.
572 2023-02-01  Jason Merrill  <jason@redhat.com>
574         * c.opt: Add -Wno-changes-meaning.
576 2023-01-31  Marek Polacek  <polacek@redhat.com>
578         PR c++/107593
579         PR c++/108597
580         * c-common.h (instantiation_dependent_expression_p): Declare.
581         * c-warn.cc (warn_duplicated_cond_add_or_warn): If the condition
582         is dependent, invalidate the chain.
584 2023-01-26  Marek Polacek  <polacek@redhat.com>
586         PR c++/105300
587         * c-pragma.cc (handle_pragma_message): Warn for CPP_STRING_USERDEF.
589 2023-01-18  Marek Polacek  <polacek@redhat.com>
591         PR c/108424
592         * c-common.cc (check_case_value): Check INTEGRAL_TYPE_P.
594 2023-01-14  Jakub Jelinek  <jakub@redhat.com>
596         PR c++/108365
597         * c-common.h (may_shorten_divmod): New static inline function.
599 2023-01-13  Eric Botcazou  <ebotcazou@adacore.com>
601         * c-ada-spec.cc (is_float32): New function.
602         (is_float64): Likewise.
603         (is_float128): Tweak.
604         (dump_ada_node) <REAL_TYPE>: Call them to recognize more types.
606 2023-01-12  Lewis Hyatt  <lhyatt@gmail.com>
608         PR preprocessor/108244
609         * c-pragma.cc (c_register_pragma_1): Don't attempt to register any
610         deferred pragmas if -fdirectives-only.
611         (init_pragma): Likewise.
613 2023-01-09  Martin Liska  <mliska@suse.cz>
615         PR c/107993
616         * c-attribs.cc (handle_target_clones_attribute): Check for
617         string constant for all target_clone attribute values.
619 2023-01-03  Florian Weimer  <fweimer@redhat.com>
621         * c-cppbuiltin.cc (c_cpp_builtins): Define
622         __LIBGCC_DWARF_CIE_DATA_ALIGNMENT__.
624 2023-01-03  Florian Weimer  <fweimer@redhat.com>
626         Revert:
627         2023-01-03  Florian Weimer  <fweimer@redhat.com>
629         * c-cppbuiltin.cc (__LIBGCC_DWARF_REG_SIZES_CONSTANT__):
630         Define if constant is known.
632 2023-01-03  Florian Weimer  <fweimer@redhat.com>
634         Revert:
635         2023-01-02  Florian Weimer  <fweimer@redhat.com>
637         * c-cppbuiltin.cc (c_cpp_builtins): Define
638         __LIBGCC_DWARF_CIE_DATA_ALIGNMENT__.
640 2023-01-02  Florian Weimer  <fweimer@redhat.com>
642         * c-cppbuiltin.cc (c_cpp_builtins): Define
643         __LIBGCC_DWARF_CIE_DATA_ALIGNMENT__.
645 2023-01-02  Florian Weimer  <fweimer@redhat.com>
647         * c-cppbuiltin.cc (__LIBGCC_DWARF_REG_SIZES_CONSTANT__):
648         Define if constant is known.
650 2022-12-19  Marek Polacek  <polacek@redhat.com>
652         PR c/98487
653         * c-format.cc (check_function_format): Use get_attribute_name.
655 2022-12-16  Qing Zhao  <qing.zhao@oracle.com>
657         * c.opt (Wstrict-flex-arrays): New option.
659 2022-12-02  Andrew MacLeod  <amacleod@redhat.com>
661         * c-attribs.cc (handle_deprecated_attribute): Use type when
662         using TYPE_NAME.
664 2022-12-02  Jakub Jelinek  <jakub@redhat.com>
666         PR c++/84469
667         * c-omp.cc (c_omp_is_loop_iterator): For range for with structured
668         binding return TREE_VEC_LENGTH (d->declv) even if decl is equal
669         to any of the structured binding decls.
671 2022-11-30  Iskander Shakirzyanov  <iskander@ispras.ru>
672             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
674         PR driver/107787
675         * c-common.cc (fold_offsetof,
676         convert_vector_to_array_for_subscript): Use OPT_Warray_bounds_
677         instead of OPT_Warray_bounds.
679 2022-11-24  Jakub Jelinek  <jakub@redhat.com>
681         * c.opt (fcontract-role=, fcontract-semantic=): Terminate descriptions
682         with a dot.
684 2022-11-23  Andrew Pinski  <apinski@marvell.com>
685             Jakub Jelinek  <jakub@redhat.com>
687         PR c/107127
688         * c-gimplify.cc (c_genericize): Use walk_tree_without_duplicates
689         instead of walk_tree for c_genericize_control_r.
691 2022-11-23  Jakub Jelinek  <jakub@redhat.com>
693         * c.opt (fcontract-assumption-mode=, fcontract-continuation-mode=,
694         fcontract-role=, fcontract-semantic=): Add RejectNegative.
695         (fcontract-build-level=): Terminate description with dot.
697 2022-11-19  Jakub Jelinek  <jakub@redhat.com>
699         * c-cppbuiltin.cc (c_cpp_builtins): Bump __cpp_constexpr
700         value from 202207L to 202211L.
702 2022-11-19  Jeff Chapman II  <jchapman@lock3software.com>
703             Andrew Sutton   <asutton@lock3software.com>
704             Andrew Marmaduke  <amarmaduke@lock3software.com>
705             Michael Lopez  <mlopez@lock3software.com>
706             Jason Merrill   <jason@redhat.com>
708         * c.opt: Add contracts flags.
709         * c-cppbuiltin.cc (c_cpp_builtins): Add contracts feature-test
710         macros.
712 2022-11-16  Marek Polacek  <polacek@redhat.com>
714         PR c++/106649
715         * c-cppbuiltin.cc (c_cpp_builtins): Update value of __cpp_constexpr for
716         C++23.
717         * c-opts.cc (c_common_post_options): Set warn_invalid_constexpr
718         depending on cxx_dialect.
719         * c.opt (Winvalid-constexpr): New option.
721 2022-11-16  Jakub Jelinek  <jakub@redhat.com>
723         * c-common.def (CONCEPT_DECL): New tree, moved here from
724         cp-tree.def.
725         * c-common.cc (c_common_init_ts): Handle CONCEPT_DECL.
726         * c-attribs.cc (handle_deprecated_attribute): Allow deprecated
727         attribute on CONCEPT_DECL.
729 2022-11-15  Lewis Hyatt  <lhyatt@gmail.com>
731         * c-opts.cc (c_finish_options): Use special_fname_builtin () rather
732         than a hard-coded string.
734 2022-11-15  Jakub Jelinek  <jakub@redhat.com>
736         * c-cppbuiltin.cc (c_cpp_builtins): Bump C++23
737         __cpp_multidimensional_subscript macro value to 202211L.
739 2022-11-15  Patrick Palka  <ppalka@redhat.com>
741         PR c++/107638
742         * c-lex.cc (c_common_has_attribute): Return 1 for init_priority
743         iff SUPPORTS_INIT_PRIORITY.
745 2022-11-14  Martin Liska  <mliska@suse.cz>
747         Revert:
748         2022-11-09  Martin Liska  <mliska@suse.cz>
750         * c-target.def: Port to RST.
752 2022-11-12  Joseph Myers  <joseph@codesourcery.com>
754         * c-common.cc (c_common_reswords): Use D_C2X instead of D_CXXONLY.
756 2022-11-11  Jonathan Wakely  <jwakely@redhat.com>
758         PR c/85487
759         * c-pragma.cc (handle_pragma_ignore): New function.
760         (init_pragma): Register region and endregion pragmas.
762 2022-11-09  Martin Liska  <mliska@suse.cz>
764         * c-target.def: Port to RST.
766 2022-11-05  Lewis Hyatt  <lhyatt@gmail.com>
768         PR preprocessor/55971
769         * c-ppoutput.cc (adjust_for_newlines): Update comment.
771 2022-11-03  Jason Merrill  <jason@redhat.com>
773         * c-opts.cc (c_common_post_options): -fconcepts no longer implies
774         -fconcepts-ts before C++20.
776 2022-10-28  Joseph Myers  <joseph@codesourcery.com>
778         * c-common.cc (def_fn_type): Call build_function_type for
779         zero-argument variable-argument function.
780         (c_common_nodes_and_builtins): Build default_function_type with
781         build_function_type.
782         * c.opt (fallow-parameterless-variadic-functions): Mark as ignored
783         option.
785 2022-10-28  Joseph Myers  <joseph@codesourcery.com>
787         PR c/61469
788         * c-common.h (ENUM_UNDERLYING_TYPE, ENUM_FIXED_UNDERLYING_TYPE_P):
789         New.  Moved from cp/cp-tree.h.
790         * c-warn.cc (warnings_for_convert_and_check): Do not consider
791         conversions to enum with underlying type bool to overflow.
793 2022-10-26  Marek Polacek  <polacek@redhat.com>
795         PR c++/106393
796         * c.opt (Wdangling-reference): New.
798 2022-10-19  Joseph Myers  <joseph@codesourcery.com>
800         * c-format.h (enum format_lengths): Add FMT_LEN_w8, FMT_LEN_w16,
801         FMT_LEN_w32, FMT_LEN_w64, FMT_LEN_wf8, FMT_LEN_wf16, FMT_LEN_wf32
802         and FMT_LEN_wf64.
803         (NOARGUMENTS, NOLENGTHS): Update definitions.
804         (T_I8, T2X_I8, T_I16, T2X_I16, T_I32, T2X_I32, T_I64, T2X_I64)
805         (T_U8, T2X_U8, T_U16, T2X_U16, T_U32, T2X_U32, T_U64, T2X_U64)
806         (T_IF8, T2X_IF8, T_IF16, T2X_IF16, T_IF32, T2X_IF32, T_IF64)
807         (T2X_IF64, T_UF8, T2X_UF8, T_UF16, T2X_UF16, T_UF32, T2X_UF32)
808         (T_UF64, T2X_UF64): New macros.
809         * c-format.cc (printf_length_specs, scanf_length_specs): Add wN
810         and wfN length modifiers.
811         (print_char_table, scan_char_table): Add entries using wN and wfN
812         length modifiers.
814 2022-10-18  Joseph Myers  <joseph@codesourcery.com>
816         PR c/36113
817         * c-common.cc (c_common_type_for_size): Add fallback to
818         widest_unsigned_literal_type_node or
819         widest_integer_literal_type_node for precision that may not
820         exactly match the precision of those types.
822 2022-10-14  Jakub Jelinek  <jakub@redhat.com>
824         * c-cppbuiltin.cc (c_cpp_builtins): If bfloat16_type_node,
825         predefine __BFLT16_*__ macros and for C++23 also
826         __STDCPP_BFLOAT16_T__.  Predefine bfloat16_type_node related
827         macros for -fbuilding-libgcc.
828         * c-lex.cc (interpret_float): Handle CPP_N_BFLOAT16.
830 2022-10-14  Jakub Jelinek  <jakub@redhat.com>
832         PR middle-end/323
833         PR c++/107097
834         * c-common.def (EXCESS_PRECISION_EXPR): Remove comment part about
835         the tree being specific to C/ObjC.
836         * c-opts.cc (c_common_post_options): Handle flag_excess_precision
837         in C++ the same as in C.
838         * c-lex.cc (interpret_float): Set const_type to excess_precision ()
839         even for C++.
841 2022-10-13  Joseph Myers  <joseph@codesourcery.com>
843         * c-cppbuiltin.cc (builtin_define_float_constants): Do not use
844         value 2 for *_IS_IEC_60559.
846 2022-10-12  Lewis Hyatt  <lhyatt@gmail.com>
848         PR preprocessor/60014
849         PR preprocessor/60723
850         * c-ppoutput.cc (class token_streamer): Remove member
851         line_marker_emitted to...
852         (token_streamer::stream): ...a local variable here. Set
853         print.prev_was_system_token on all code paths.
855 2022-10-10  Nathan Sidwell  <nathan@acm.org>
857         * c-opts.cc (c_common_post_options): Bump abi to 18.
859 2022-10-10  Marek Polacek  <polacek@redhat.com>
861         PR c++/106937
862         * c-pretty-print.cc (pp_c_specifier_qualifier_list): Print only GNU
863         attributes here.
864         (c_pretty_printer::direct_abstract_declarator): Print the standard [[]]
865         attributes here.
866         (pp_c_attributes): Remove.
867         (pp_c_attributes_display): Print the [[]] form if appropriate.  Use
868         get_attribute_name.  Don't print a trailing space when printing the
869         [[]] form.
870         * c-pretty-print.h (pp_c_attributes): Remove.
872 2022-10-07  Qing Zhao  <qing.zhao@oracle.com>
874         * c-attribs.cc (handle_strict_flex_array_attribute): New function.
875         (c_common_attribute_table): New item for strict_flex_array.
876         * c.opt: (fstrict-flex-arrays): New option.
877         (fstrict-flex-arrays=): New option.
879 2022-10-07  Martin Liska  <mliska@suse.cz>
881         * name-hint.h: Use std::move.
883 2022-10-07  Jakub Jelinek  <jakub@redhat.com>
885         * c-common.cc (attribute_fallthrough_p): Lookup fallthrough attribute
886         only in gnu namespace or as standard attribute, treat fallthrough
887         attributes in other namespaces like any other unknown attribute.
889 2022-10-06  Joseph Myers  <joseph@codesourcery.com>
891         * c-common.cc (c_common_reswords): Mark typeof as D_EXT11.  Add
892         typeof_unqual.
893         * c-common.h (enum rid): Add RID_TYPEOF_UNQUAL.
894         (D_EXT11): New macro.  Values of subsequent macros updated.
896 2022-10-06  Jakub Jelinek  <jakub@redhat.com>
898         PR c++/106654
899         * c-attribs.cc (handle_assume_attribute): New function.
900         (c_common_attribute_table): Add entry for assume attribute.
901         * c-lex.cc (c_common_has_attribute): Handle
902         __have_cpp_attribute (assume).
904 2022-10-04  Jakub Jelinek  <jakub@redhat.com>
906         * c-omp.cc (c_omp_directives): Uncomment begin declare target
907         entry.
909 2022-10-03  Patrick Palka  <ppalka@redhat.com>
911         * c-common.cc (c_common_reswords): Use RID_IS_SAME instead of
912         RID_IS_SAME_AS.
914 2022-10-03  Joseph Myers  <joseph@codesourcery.com>
916         * c-cppbuiltin.cc (builtin_define_float_constants): Do not
917         special-case __*_EPSILON__ setting for IBM long double for C2x.
919 2022-09-30  Patrick Palka  <ppalka@redhat.com>
921         * c-common.cc (c_common_reswords): Use cp/cp-trait.def to handle
922         C++ traits.
923         * c-common.h (enum rid): Likewise.
925 2022-09-29  Joseph Myers  <joseph@codesourcery.com>
927         * c-lex.cc (c_common_has_attribute): Handle noreturn attribute for
928         C.
930 2022-09-29  Patrick Palka  <ppalka@redhat.com>
932         * c-common.cc (c_common_reswords): Add __remove_cv,
933         __remove_reference and __remove_cvref.
934         * c-common.h (enum rid): Add RID_REMOVE_CV, RID_REMOVE_REFERENCE
935         and RID_REMOVE_CVREF.
937 2022-09-27  Marek Polacek  <polacek@redhat.com>
939         PR c++/101165
940         PR c++/106882
941         * c-cppbuiltin.cc (c_cpp_builtins): Define __cpp_implicit_move.
943 2022-09-27  Marek Polacek  <polacek@redhat.com>
945         * c-format.cc (c_keywords): Drop nothrow.
947 2022-09-27  Jakub Jelinek  <jakub@redhat.com>
949         PR c++/106651
950         * c-cppbuiltin.cc (c_cpp_builtins): Predefine
951         __cpp_static_call_operator=202207L for C++23.
953 2022-09-27  Jakub Jelinek  <jakub@redhat.com>
955         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ASSUME,
956         PRAGMA_OMP_ASSUMES and PRAGMA_OMP_BEGIN.  Rename
957         PRAGMA_OMP_END_DECLARE_TARGET to PRAGMA_OMP_END.
958         * c-pragma.cc (omp_pragmas): Add assumes and begin.
959         For end rename PRAGMA_OMP_END_DECLARE_TARGET to PRAGMA_OMP_END.
960         (omp_pragmas_simd): Add assume.
961         * c-common.h (c_omp_directives): Declare.
962         * c-omp.cc (omp_directives): Rename to ...
963         (c_omp_directives): ... this.  No longer static.  Uncomment
964         assume, assumes, begin assumes and end assumes entries.
965         In end declare target entry rename PRAGMA_OMP_END_DECLARE_TARGET
966         to PRAGMA_OMP_END.
967         (c_omp_categorize_directive): Adjust for omp_directives to
968         c_omp_directives renaming.
970 2022-09-27  Jakub Jelinek  <jakub@redhat.com>
972         PR c++/106652
973         PR c++/85518
974         * c-common.cc (c_common_reswords): Change _Float{16,32,64,128} and
975         _Float{32,64,128}x flags from D_CONLY to 0.
976         (shorten_binary_op): Punt if common_type returns error_mark_node.
977         (shorten_compare): Likewise.
978         (c_common_nodes_and_builtins): For C++ record _Float{16,32,64,128}
979         and _Float{32,64,128}x builtin types if available.  For C++
980         clear float128t_type_node.
981         * c-cppbuiltin.cc (c_cpp_builtins): Predefine
982         __STDCPP_FLOAT{16,32,64,128}_T__ for C++23 if supported.
983         * c-lex.cc (interpret_float): For q/Q suffixes prefer
984         float128t_type_node over float128_type_node.  Allow
985         {f,F}{16,32,64,128} suffixes for C++ if supported with pedwarn
986         for C++20 and older.  Allow {f,F}{32,64,128}x suffixes for C++
987         with pedwarn.  Don't call excess_precision_type for C++.
989 2022-09-26  Marek Polacek  <polacek@redhat.com>
991         PR c++/106656
992         * c-cppbuiltin.cc (c_cpp_builtins): Update value of __cpp_char8_t
993         for C++20.
995 2022-09-23  Marek Polacek  <polacek@redhat.com>
997         PR c++/106784
998         * c-common.cc (c_common_reswords): Add __is_convertible and
999         __is_nothrow_convertible.
1000         * c-common.h (enum rid): Add RID_IS_CONVERTIBLE and
1001         RID_IS_NOTHROW_CONVERTIBLE.
1003 2022-09-22  David Malcolm  <dmalcolm@redhat.com>
1005         PR c/106830
1006         * c-warn.cc (check_for_xor_used_as_pow): Don't try checking
1007         values that don't fit in uhwi.
1009 2022-09-15  Richard Biener  <rguenther@suse.de>
1011         * c-common.h (build_void_list_node): Remove.
1012         * c-common.cc (c_common_nodes_and_builtins): Do not initialize
1013         void_list_node.
1015 2022-09-09  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1017         * c-format.cc (convert_format_name_to_system_name): Fix warning.
1019 2022-09-07  Joseph Myers  <joseph@codesourcery.com>
1021         * c-common.cc (c_common_reswords): Use D_C2X instead of D_CXXONLY
1022         for alignas, alignof, bool, false, static_assert, thread_local and
1023         true.
1025 2022-09-07  Jakub Jelinek  <jakub@redhat.com>
1027         * c.opt (Winvalid-utf8): Use ObjC instead of objC.  Remove
1028         " in comments" from description.
1029         (Wunicode): New option.
1031 2022-09-06  Jakub Jelinek  <jakub@redhat.com>
1033         PR c/106836
1034         * c-omp.cc (c_omp_split_clauses): Handle OMP_CLAUSE_DOACROSS.
1036 2022-09-03  Jakub Jelinek  <jakub@redhat.com>
1038         * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_DOACROSS.
1039         * c-omp.cc (c_finish_omp_depobj): Check also for OMP_CLAUSE_DOACROSS
1040         clause and diagnose it.  Don't handle OMP_CLAUSE_DEPEND_SOURCE and
1041         OMP_CLAUSE_DEPEND_SINK.  Assert kind is not OMP_CLAUSE_DEPEND_INVALID.
1043 2022-09-02  David Malcolm  <dmalcolm@redhat.com>
1045         PR c/90885
1046         * c-common.h (check_for_xor_used_as_pow): New decl.
1047         * c-lex.cc (c_lex_with_flags): Add DECIMAL_INT to flags as appropriate.
1048         * c-warn.cc (check_for_xor_used_as_pow): New.
1049         * c.opt (Wxor-used-as-pow): New.
1051 2022-09-01  Jason Merrill  <jason@redhat.com>
1053         * c-common.cc (c_common_nodes_and_builtins): Set TREE_STRING_FLAG on
1054         char8_t.
1055         (braced_list_to_string): Check for char-sized elements.
1057 2022-09-01  Jakub Jelinek  <jakub@redhat.com>
1059         PR c++/106655
1060         * c.opt (-Winvalid-utf8): New warning.
1061         * c-opts.cc (c_common_handle_option) <case OPT_finput_charset_>:
1062         Set cpp_opts->cpp_input_charset_explicit.
1063         (c_common_post_options): If -finput-charset=UTF-8 is explicit
1064         in C++23, enable -Winvalid-utf8 by default and if -pedantic
1065         or -pedantic-errors, make it a pedwarn.
1067 2022-08-31  Joseph Myers  <joseph@codesourcery.com>
1069         * c-attribs.cc (handle_deprecated_attribute): Check and pedwarn
1070         for LABEL_DECL.
1071         * c-common.cc (c_add_case_label): Add argument ATTRS.  Call
1072         decl_attributes.
1073         * c-common.h (do_case, c_add_case_label): Update declarations.
1074         * c-lex.cc (c_common_has_attribute): For C, produce a result of
1075         201910 for fallthrough and 202106 for maybe_unused.
1077 2022-08-26  Marek Polacek  <polacek@redhat.com>
1079         PR c++/81159
1080         * c.opt (Wself-move): New option.
1082 2022-08-26  Jakub Jelinek  <jakub@redhat.com>
1084         * c-common.cc (check_builtin_function_arguments): Handle
1085         BUILT_IN_ISSIGNALING.
1087 2022-08-26  Jakub Jelinek  <jakub@redhat.com>
1089         PR c++/106648
1090         * c-cppbuiltin.cc (c_cpp_builtins): Predefine
1091         __cpp_named_character_escapes to 202207L.
1093 2022-08-25  Marek Polacek  <polacek@redhat.com>
1095         * c-common.cc (c_common_reswords): Enable nullptr in C2X.
1096         (c_common_nodes_and_builtins): Create the built-in node for nullptr.
1097         * c-common.h (enum c_tree_index): Add CTI_NULLPTR, CTI_NULLPTR_TYPE.
1098         (struct c_common_resword): Resize the disable member.
1099         (D_C2X): Add.
1100         (nullptr_node): Define.
1101         (nullptr_type_node): Define.
1102         (NULLPTR_TYPE_P): Define.
1103         * c-pretty-print.cc (c_pretty_printer::simple_type_specifier): Handle
1104         NULLPTR_TYPE.
1105         (c_pretty_printer::direct_abstract_declarator): Likewise.
1106         (c_pretty_printer::constant): Likewise.
1108 2022-08-16  Tom Honermann  <tom@honermann.net>
1110         PR c++/106423
1111         * c-opts.cc (c_common_post_options): Disable -Wc++20-compat
1112         diagnostics in C++20 and later.
1113         * c.opt (Wc++20-compat): Enable hooks for the preprocessor.
1115 2022-08-11  Marek Polacek  <polacek@redhat.com>
1117         PR middle-end/102633
1118         * c-gimplify.cc (c_gimplify_expr) <case DECL_EXPR>: Don't call
1119         suppress_warning here.
1121 2022-08-08  Tom Honermann  <tom@honermann.net>
1123         PR preprocessor/106426
1124         * c-opts.cc (c_common_post_options): Assign cpp_opts->unsigned_utf8char
1125         subject to -fchar8_t, -fsigned-char, and/or -funsigned-char.
1127 2022-08-08  Tom Honermann  <tom@honermann.net>
1129         * c-lex.cc (lex_string, lex_charconst): Use char8_t as the type
1130         of CPP_UTF8CHAR and CPP_UTF8STRING when char8_t support is
1131         enabled.
1132         * c-opts.cc (c_common_post_options): Set flag_char8_t if
1133         targeting C2x.
1135 2022-07-31  Lewis Hyatt  <lhyatt@gmail.com>
1137         PR c++/66290
1138         * c-common.h: Rename global done_lexing to
1139         override_libcpp_locations.
1140         * c-common.cc (c_cpp_diagnostic): Likewise.
1141         * c-opts.cc (c_common_finish): Set override_libcpp_locations
1142         (formerly done_lexing) immediately prior to calling cpp_finish ().
1144 2022-07-27  Lewis Hyatt  <lhyatt@gmail.com>
1146         * c-ppoutput.cc (token_streamer::stream): Update input_location
1147         prior to streaming each token.
1149 2022-07-23  Immad Mir  <mirimmad@outlook.com>
1151         * c-attribs.cc: (c_common_attribute_table): add three new attributes
1152         namely: fd_arg, fd_arg_read and fd_arg_write.
1153         (handle_fd_arg_attribute): New.
1155 2022-07-15  Marek Polacek  <polacek@redhat.com>
1157         PR c++/104477
1158         * c-common.cc (c_common_reswords): Add
1159         __reference_constructs_from_temporary and
1160         __reference_converts_from_temporary.
1161         * c-common.h (enum rid): Add RID_REF_CONSTRUCTS_FROM_TEMPORARY and
1162         RID_REF_CONVERTS_FROM_TEMPORARY.
1164 2022-07-15  Jonathan Wakely  <jwakely@redhat.com>
1166         * c-format.cc (class range_label_for_format_type_mismatch):
1167         Adjust to new label_text API.
1169 2022-07-11  Lewis Hyatt  <lhyatt@gmail.com>
1171         PR preprocessor/106252
1172         * c-pragma.cc (handle_pragma_diagnostic_impl): Don't look up the
1173         option argument prior to verifying the option was found.
1175 2022-07-07  David Malcolm  <dmalcolm@redhat.com>
1177         * c-format.cc (range_label_for_format_type_mismatch::get_text):
1178         Update for removal of label_text::maybe_free in favor of automatic
1179         memory management.
1181 2022-07-06  Lewis Hyatt  <lhyatt@gmail.com>
1183         PR preprocessor/53920
1184         PR c++/53431
1185         * c-common.cc (c_option_is_from_cpp_diagnostics): New function.
1186         * c-common.h (c_option_is_from_cpp_diagnostics): Declare.
1187         (c_pp_stream_token): Declare.
1188         * c-ppoutput.cc (init_pp_output): Refactor logic about skipping
1189         pragmas to...
1190         (should_output_pragmas): ...here. New function.
1191         (token_streamer::stream): Support handling early pragmas.
1192         (do_line_change): Likewise.
1193         (c_pp_stream_token): New function.
1194         * c-pragma.cc (struct pragma_diagnostic_data): New helper class.
1195         (pragma_diagnostic_lex_normal): New function. Moved logic for
1196         interpreting GCC diagnostic pragmas here.
1197         (pragma_diagnostic_lex_pp): New function for parsing diagnostic pragmas
1198         directly from libcpp.
1199         (handle_pragma_diagnostic): Refactor into helper function...
1200         (handle_pragma_diagnostic_impl): ...here.  New function.
1201         (handle_pragma_diagnostic_early): New function.
1202         (handle_pragma_diagnostic_early_pp): New function.
1203         (struct pragma_ns_name): Renamed to...
1204         (struct pragma_pp_data): ...this.  Add new "early_handler" member.
1205         (c_register_pragma_1): Support early pragmas in the preprocessor.
1206         (c_register_pragma_with_early_handler): New function.
1207         (c_register_pragma): Support the new early handlers in struct
1208         internal_pragma_handler.
1209         (c_register_pragma_with_data): Likewise.
1210         (c_register_pragma_with_expansion): Likewise.
1211         (c_register_pragma_with_expansion_and_data): Likewise.
1212         (c_invoke_early_pragma_handler): New function.
1213         (c_pp_invoke_early_pragma_handler): New function.
1214         (init_pragma): Add early pragma support for diagnostic pragmas.
1215         * c-pragma.h (struct internal_pragma_handler): Add new early handler
1216         members.
1217         (c_register_pragma_with_early_handler): Declare.
1218         (c_invoke_early_pragma_handler): Declare.
1219         (c_pp_invoke_early_pragma_handler): Declare.
1221 2022-07-05  Marek Polacek  <polacek@redhat.com>
1223         PR c++/105626
1224         * c-format.cc (check_format_arg): Don't emit -Wformat warnings with
1225         u8 strings.
1227 2022-07-01  Marek Polacek  <polacek@redhat.com>
1229         PR c++/106111
1230         * c-common.h (enum rid): Update RID_LAST_CXX20.
1232 2022-06-30  Jonathan Wakely  <jwakely@redhat.com>
1234         * known-headers.cc (get_stdlib_header_for_name): Add <time.h>
1235         names.
1237 2022-06-24  Jason Merrill  <jason@redhat.com>
1239         PR c++/87729
1240         PR c++/20423
1241         * c.opt (Woverloaded-virtual): Add levels, include in -Wall.
1243 2022-06-18  Jakub Jelinek  <jakub@redhat.com>
1245         * c-ubsan.cc (ubsan_instrument_division, ubsan_instrument_shift):
1246         Use flag_sanitize_trap & SANITIZE_??? instead of
1247         flag_sanitize_undefined_trap_on_error.  If 2 sanitizers are involved
1248         and flag_sanitize_trap differs for them, emit __builtin_trap only
1249         for the comparison where trap is requested.
1250         (ubsan_instrument_vla, ubsan_instrument_return): Use
1251         lag_sanitize_trap & SANITIZE_??? instead of
1252         flag_sanitize_undefined_trap_on_error.
1254 2022-06-13  Jason Merrill  <jason@redhat.com>
1256         * c-ubsan.cc (ubsan_instrument_return): Use BUILTINS_LOCATION.
1258 2022-05-27  Marek Polacek  <polacek@redhat.com>
1260         PR c/90658
1261         * c-attribs.cc (get_priority): Check FUNCTION_DECL.
1263 2022-05-27  Jakub Jelinek  <jakub@redhat.com>
1265         * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ENTER.
1267 2022-05-20  David Malcolm  <dmalcolm@redhat.com>
1269         * c-format.cc: Replace uses of "FINAL" and "OVERRIDE" with "final"
1270         and "override".
1271         * c-pretty-print.h: Likewise.
1273 2022-05-18  Marek Polacek  <polacek@redhat.com>
1275         PR c/105131
1276         * c.opt (Wenum-int-mismatch): New.
1278 2022-05-18  Marek Polacek  <polacek@redhat.com>
1280         PR c++/105497
1281         * c-warn.cc (c_do_switch_warnings): Don't warn about unhandled
1282         enumerator when it was marked with attribute unused.
1284 2022-05-18  Eric Botcazou  <ebotcazou@adacore.com>
1286         * c-ada-spec.cc (dump_ada_node) <COMPLEX_TYPE>: Deal with usual
1287         floating-point complex types.
1288         <POINTER_TYPE>: Do not use limited_with clause if the designated
1289         type is a scalar type.
1291 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
1293         * c-omp.cc (c_finish_omp_depobj): Handle
1294         OMP_CLAUSE_DEPEND_INOUTSET.
1296 2022-05-16  Jason Merrill  <jason@redhat.com>
1298         PR c/105492
1299         * c-attribs.cc (handle_mode_attribute): Don't fix broken typedefs
1300         here.
1302 2022-05-16  Martin Liska  <mliska@suse.cz>
1304         * c-common.cc (ARRAY_SIZE): Use ARRAY_SIZE.
1305         (c_common_nodes_and_builtins): Likewise.
1306         * c-format.cc (check_tokens): Likewise.
1307         (check_plain): Likewise.
1308         * c-pragma.cc (c_pp_lookup_pragma): Likewise.
1309         (init_pragma): Likewise.
1310         * known-headers.cc (get_string_macro_hint): Likewise.
1311         (get_stdlib_header_for_name): Likewise.
1312         * c-attribs.cc: Likewise.
1314 2022-05-13  Richard Biener  <rguenther@suse.de>
1316         * c-omp.cc: Remove gimple-fold.h include.
1318 2022-05-12  Jakub Jelinek  <jakub@redhat.com>
1320         * c-common.h (enum rid): Add RID_OMP_ALL_MEMORY.
1321         * c-omp.cc (c_finish_omp_depobj): Don't build_fold_addr_expr
1322         if null_pointer_node.
1324 2022-05-11  Martin Liska  <mliska@suse.cz>
1326         PR target/105355
1327         * c-opts.cc (c_common_handle_option): Change option name.
1328         * c.opt: Remove Joined and use Separate option.
1330 2022-05-09  Alex Coplan  <alex.coplan@arm.com>
1332         * c-common.h (get_dump_info): Delete.
1333         * c-gimplify.cc (c_genericize): Get TDI_original dump file info
1334         from the global dump_manager instead of the (now obsolete)
1335         get_dump_info.
1336         * c-opts.cc (original_dump_file): Delete.
1337         (original_dump_flags): Delete.
1338         (c_common_parse_file): Switch to using global dump_manager to
1339         manage the original dump file; fix leak of dump file.
1340         (get_dump_info): Delete.
1342 2022-05-07  Marek Polacek  <polacek@redhat.com>
1344         PR c++/101833
1345         PR c++/47634
1346         * c-attribs.cc (positional_argument): Pass POS by reference.  Deal
1347         with FN being either a function declaration or function type.  Use
1348         maybe_adjust_arg_pos_for_attribute.
1349         * c-common.cc (check_function_arguments): Maybe pass FNDECL down to
1350         check_function_format.
1351         * c-common.h (maybe_adjust_arg_pos_for_attribute): Declare.
1352         (positional_argument): Adjust.
1353         * c-format.cc (get_constant): Rename to ...
1354         (validate_constant): ... this.  Take EXPR by reference.  Return bool
1355         instead of tree.
1356         (handle_format_arg_attribute): Don't overwrite FORMAT_NUM_EXPR by the
1357         return value of validate_constant.
1358         (decode_format_attr): Don't overwrite FORMAT_NUM_EXPR and
1359         FIRST_ARG_NUM_EXPR by the return value of validate_constant.
1360         (check_function_format): Adjust a parameter name.
1361         (handle_format_attribute): Maybe pass FNDECL down to decode_format_attr.
1363 2022-05-04  Marek Polacek  <polacek@redhat.com>
1365         * c-warn.cc (warnings_for_convert_and_check): Convert constants of type
1366         char to int.
1368 2022-04-30  Jason Merrill  <jason@redhat.com>
1370         PR c/100545
1371         * c-attribs.cc (handle_mode_attribute): Copy attributes, aligned,
1372         and typedef.
1373         * c-common.cc (set_underlying_type): Add assert.
1375 2022-04-26  Patrick Palka  <ppalka@redhat.com>
1377         PR c++/105304
1378         * c-common.cc (verify_tree) [restart]: Move up to before the
1379         NULL test.
1381 2022-04-11  Jakub Jelinek  <jakub@redhat.com>
1383         PR c++/105186
1384         * c-common.cc (c_common_nodes_and_builtins): After registering __int%d
1385         and __int%d__ builtin types, initialize corresponding ridpointers
1386         entry.
1388 2022-03-30  Marek Polacek  <polacek@redhat.com>
1390         PR c++/101030
1391         * c-warn.cc (conversion_warning) <case COND_EXPR>: Don't call
1392         conversion_warning when OP1 is null.
1394 2022-03-30  Thomas Schwinge  <thomas@codesourcery.com>
1396         * c.opt (Wc++11-extensions, Wc++14-extensions, Wc++17-extensions)
1397         (Wc++20-extensions, Wc++23-extensions): Remove 'LangEnabledBy'
1398         option properties.
1400 2022-03-30  Thomas Schwinge  <thomas@codesourcery.com>
1402         * c.opt (Wuse-after-free): Remove.
1404 2022-03-30  Thomas Schwinge  <thomas@codesourcery.com>
1406         * c.opt (Warray-bounds): Remove.
1408 2022-03-26  Thomas Schwinge  <thomas@codesourcery.com>
1410         * c.opt: Properly quote comment.
1412 2022-03-25  Eric Botcazou  <ebotcazou@adacore.com>
1414         * c-ada-spec.cc (dump_ada_import): Deal with the "section" attribute
1415         (dump_ada_node) <POINTER_TYPE>: Do not modify and pass the name, but
1416         the referenced type instead.  Deal with the anonymous original type
1417         of a typedef'ed type.  In the actual access case, follow the chain
1418         of external subtypes.
1419         <TYPE_DECL>: Tidy up control flow.
1421 2022-03-21  Qian Jianhua  <qianjh@cn.fujitsu.com>
1423         * c-ada-spec.cc: Change array length
1425 2022-03-19  Arthur Cohen  <arthur.cohen@embecosm.com>
1427         * c-common.cc (c_family_tests): Call the new tests.
1428         * c-common.h (c_diagnostic_tests): Declare.
1429         (c_opt_problem_cc_tests): Likewise.
1431 2022-03-19  Jakub Jelinek  <jakub@redhat.com>
1433         PR c++/101515
1434         * c-pretty-print.cc (c_fold_indirect_ref_for_warn): For C++ don't
1435         return COMPONENT_REFs with FIELD_DECLs whose containing scope can't
1436         be printed.
1438 2022-03-16  Christophe Lyon  <christophe.lyon@arm.com>
1439             Roger Sayle  <roger@nextmovesoftware.com>
1441         PR c/98198
1442         * c-attribs.cc (decl_or_type_attrs): Add error_mark_node check.
1444 2022-03-16  Patrick Palka  <ppalka@redhat.com>
1446         PR c++/96780
1447         * c.opt: Add -ffold-simple-inlines.
1449 2022-03-13  Tobias Burnus  <tobias@codesourcery.com>
1451         * c-target.def (check_string_object_format_arg): Fix description typo.
1453 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
1455         PR other/65095
1456         * c-common.h (c_omp_map_clause_name): Remove.
1457         * c-omp.cc (c_omp_map_clause_name): Remove.
1459 2022-03-09  Jakub Jelinek  <jakub@redhat.com>
1461         PR c/104711
1462         * c-opts.cc (c_common_post_options): Don't enable
1463         -Wshift-negative-value from -Wextra for C++20 or later.
1464         * c-ubsan.cc (ubsan_instrument_shift): Adjust comments.
1465         * c-warn.cc (maybe_warn_shift_overflow): Use TYPE_OVERFLOW_WRAPS
1466         instead of TYPE_UNSIGNED.
1468 2022-03-07  Jakub Jelinek  <jakub@redhat.com>
1470         * c-attribs.cc: Fix up duplicated word issue in a comment.
1472 2022-03-01  Martin Liska  <mliska@suse.cz>
1474         PR ipa/104533
1475         * c-attribs.cc (handle_target_clones_attribute): Use
1476         get_target_clone_attr_len and report warning soon.
1478 2022-02-17  Jonathan Wakely  <jwakely@redhat.com>
1480         * c-pragma.cc (handle_pragma_pack): Remove parameter name.
1481         (handle_pragma_weak): Likewise.
1482         (handle_pragma_scalar_storage_order): Likewise.
1483         (handle_pragma_redefine_extname): Likewise.
1484         (handle_pragma_visibility): Likewise.
1485         (handle_pragma_diagnostic): Likewise.
1486         (handle_pragma_target): Likewise.
1487         (handle_pragma_optimize): Likewise.
1488         (handle_pragma_push_options): Likewise.
1489         (handle_pragma_pop_options): Likewise.
1490         (handle_pragma_reset_options): Likewise.
1491         (handle_pragma_message): Likewise.
1492         (handle_pragma_float_const_decimal64): Likewise.
1494 2022-02-16  Jakub Jelinek  <jakub@redhat.com>
1496         PR c/104531
1497         * c-omp.cc (c_finish_omp_atomic): For MIN_EXPR/MAX_EXPR, try first
1498         build_binary_op with LT_EXPR and only if that doesn't return
1499         error_mark_node call build_modify_expr.
1501 2022-02-16  Jakub Jelinek  <jakub@redhat.com>
1503         PR c/104510
1504         * c-common.cc (shorten_compare): Convert original arguments to
1505         the original *restype_ptr when mixing binary and decimal float.
1507 2022-02-14  Richard Biener  <rguenther@suse.de>
1509         PR c/104505
1510         * c-pretty-print.cc (c_pretty_printer::postfix_expression): Handle
1511         internal function calls.
1513 2022-02-11  Richard Biener  <rguenther@suse.de>
1515         * c-attribs.cc (c_common_attribute_table): Add entry for
1516         vector_mask.
1517         (handle_vector_mask_attribute): New.
1519 2022-02-10  Marcel Vollweiler  <marcel@codesourcery.com>
1521         * c-omp.cc (c_omp_split_clauses): Added OMP_CLAUSE_HAS_DEVICE_ADDR case.
1522         * c-pragma.h (enum pragma_kind): Added 5.1 in comment.
1523         (enum pragma_omp_clause): Added PRAGMA_OMP_CLAUSE_HAS_DEVICE_ADDR.
1525 2022-02-09  Jason Merrill  <jason@redhat.com>
1527         * c-cppbuiltin.cc (c_cpp_builtins): Update values
1528         of __cpp_constexpr and __cpp_concepts for C++20.
1530 2022-01-24  Marek Polacek  <polacek@redhat.com>
1532         PR preprocessor/104030
1533         * c.opt (Wbidi-chars): Mark as EnumSet.  Also accept =ucn.
1535 2022-01-21  Jakub Jelinek  <jakub@redhat.com>
1537         PR c++/104148
1538         * c-common.h (check_function_arguments_recurse): Add for_format
1539         arg.
1540         * c-common.cc (check_function_nonnull): Pass false to
1541         check_function_arguments_recurse's last argument.
1542         (check_function_arguments_recurse): Add for_format argument,
1543         if true, don't stop on warning_suppressed_p.
1544         * c-format.cc (check_format_info): Pass true to
1545         check_function_arguments_recurse's last argument.
1547 2022-01-19  David Malcolm  <dmalcolm@redhat.com>
1549         * c-common.cc (c_common_c_tests): Rename to...
1550         (c_common_cc_tests): ...this.
1551         (c_family_tests): Update calls for .c to .cc renaming.
1552         * c-common.h (c_format_c_tests): Rename to...
1553         (c_format_cc_tests): ...this.
1554         (c_indentation_c_tests): Rename to...
1555         (c_indentation_cc_tests): ...this.
1556         (c_pretty_print_c_tests): Rename to...
1557         (c_pretty_print_cc_tests): ...this.
1558         * c-format.cc (c_format_c_tests): Rename to...
1559         (c_format_cc_tests): ...this.
1560         * c-indentation.cc (c_indentation_c_tests): Rename to...
1561         (c_indentation_cc_tests): ...this.
1562         * c-pretty-print.cc (c_pretty_print_c_tests): Rename to...
1563         (c_pretty_print_cc_tests): ...this.
1565 2022-01-17  Martin Liska  <mliska@suse.cz>
1567         * c-ada-spec.cc: Rename .c names to .cc.
1568         * c-ada-spec.h: Likewise.
1569         * c-common.cc (c_build_vec_convert): Likewise.
1570         (warning_candidate_p): Likewise.
1571         * c-common.h (enum rid): Likewise.
1572         (build_real_imag_expr): Likewise.
1573         (finish_label_address_expr): Likewise.
1574         (c_get_substring_location): Likewise.
1575         (c_build_bind_expr): Likewise.
1576         (conflict_marker_get_final_tok_kind): Likewise.
1577         (c_parse_error): Likewise.
1578         (check_missing_format_attribute): Likewise.
1579         (invalid_array_size_error): Likewise.
1580         (warn_for_multistatement_macros): Likewise.
1581         (build_attr_access_from_parms): Likewise.
1582         * c-cppbuiltin.cc (c_cpp_builtins): Likewise.
1583         * c-format.cc: Likewise.
1584         * c-gimplify.cc (c_gimplify_expr): Likewise.
1585         * c-indentation.h: Likewise.
1586         * c-objc.h (objc_prop_attr_kind_for_rid): Likewise.
1587         * c-omp.cc (c_omp_predetermined_mapping): Likewise.
1588         * c-opts.cc (c_common_post_options): Likewise.
1589         (set_std_cxx23): Likewise.
1590         * c-pragma.cc (handle_pragma_redefine_extname): Likewise.
1591         * c-pretty-print.h: Likewise.
1593 2022-01-17  Martin Liska  <mliska@suse.cz>
1595         * c-ada-spec.c: Moved to...
1596         * c-ada-spec.cc: ...here.
1597         * c-attribs.c: Moved to...
1598         * c-attribs.cc: ...here.
1599         * c-common.c: Moved to...
1600         * c-common.cc: ...here.
1601         * c-cppbuiltin.c: Moved to...
1602         * c-cppbuiltin.cc: ...here.
1603         * c-dump.c: Moved to...
1604         * c-dump.cc: ...here.
1605         * c-format.c: Moved to...
1606         * c-format.cc: ...here.
1607         * c-gimplify.c: Moved to...
1608         * c-gimplify.cc: ...here.
1609         * c-indentation.c: Moved to...
1610         * c-indentation.cc: ...here.
1611         * c-lex.c: Moved to...
1612         * c-lex.cc: ...here.
1613         * c-omp.c: Moved to...
1614         * c-omp.cc: ...here.
1615         * c-opts.c: Moved to...
1616         * c-opts.cc: ...here.
1617         * c-pch.c: Moved to...
1618         * c-pch.cc: ...here.
1619         * c-ppoutput.c: Moved to...
1620         * c-ppoutput.cc: ...here.
1621         * c-pragma.c: Moved to...
1622         * c-pragma.cc: ...here.
1623         * c-pretty-print.c: Moved to...
1624         * c-pretty-print.cc: ...here.
1625         * c-semantics.c: Moved to...
1626         * c-semantics.cc: ...here.
1627         * c-ubsan.c: Moved to...
1628         * c-ubsan.cc: ...here.
1629         * c-warn.c: Moved to...
1630         * c-warn.cc: ...here.
1631         * cppspec.c: Moved to...
1632         * cppspec.cc: ...here.
1633         * stub-objc.c: Moved to...
1634         * stub-objc.cc: ...here.
1636 2022-01-15  Martin Sebor  <msebor@redhat.com>
1638         PR c/63272
1639         * c.opt (-Wdangling-pointer): New option.
1641 2022-01-15  Martin Sebor  <msebor@redhat.com>
1643         PR tree-optimization/80532
1644         * c.opt (-Wuse-after-free): New options.
1646 2022-01-14  David Malcolm  <dmalcolm@redhat.com>
1648         * c-attribs.c (c_common_attribute_table): Add "tainted_args".
1649         (handle_tainted_args_attribute): New.
1651 2022-01-13  Anthony Sharp  <anthonysharp15@gmail.com>
1652             Jason Merrill  <jason@redhat.com>
1654         PR c++/70417
1655         * c.opt: Added -Wmissing-template-keyword.
1657 2022-01-13  Richard Biener  <rguenther@suse.de>
1659         PR c/104002
1660         * c-common.c (c_common_mark_addressable_vec): Handle TARGET_EXPR.
1662 2022-01-12  Martin Liska  <mliska@suse.cz>
1664         PR target/103804
1665         * c-attribs.c (handle_optimize_attribute): Do not call
1666         cl_optimization_compare if we seen an error.
1668 2022-01-11  Jakub Jelinek  <jakub@redhat.com>
1670         PR c/101537
1671         PR c/103881
1672         * c-warn.c (conversion_warning): Handle BIT_AND_EXPR, BIT_IOR_EXPR
1673         and BIT_XOR_EXPR.
1675 2022-01-10  Richard Biener  <rguenther@suse.de>
1677         PR middle-end/101530
1678         * c-common.c (c_build_shufflevector): Wrap the BIT_FIELD_REF
1679         in a TARGET_EXPR to force a temporary.
1681 2022-01-06  Marek Polacek  <polacek@redhat.com>
1683         PR c++/103758
1684         * c-pragma.c (handle_pragma_scalar_storage_order): Use %< %> in
1685         diagnostic messages.
1686         (handle_pragma_diagnostic): Likewise.
1688 2022-01-03  Marek Polacek  <polacek@redhat.com>
1690         PR c++/103758
1691         * c-format.c (check_tokens): Accept "decl-specifier*".
1693 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
1695         PR c++/103600
1696         * c-attribs.c (handle_non_overlapping_attribute): New function.
1697         (c_common_attribute_table): Add "non overlapping" attribute.
1699 2021-12-30  Jakub Jelinek  <jakub@redhat.com>
1701         PR c++/103012
1702         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Perform
1703         cpp_define_unused/cpp_undef calls with forced token locations
1704         BUILTINS_LOCATION.
1706 2021-12-27  Patrick Palka  <ppalka@redhat.com>
1708         PR c++/103700
1709         * c-common.c (pointer_int_sum): When quiet, return
1710         error_mark_node for an incomplete pointed-to type and don't
1711         call size_in_bytes_loc.
1713 2021-12-17  Jason Merrill  <jason@redhat.com>
1715         PR c++/103681
1716         * c-opts.c (c_common_post_options): Update defaults.
1718 2021-12-16  Martin Liska  <mliska@suse.cz>
1720         PR target/103709
1721         * c-pragma.c (handle_pragma_pop_options): Do not check
1722         global options modification when an error is seen in parsing
1723         of options (pragmas or attributes).
1725 2021-12-12  Jonathan Wakely  <jwakely@redhat.com>
1727         * known-headers.cc: Define INCLUDE_MEMORY instead of
1728         INCLUDE_UNIQUE_PTR.
1729         * name-hint.h: Likewise.
1730         (class name_hint): Use std::unique_ptr instead of gnu::unique_ptr.
1732 2021-12-09  Jakub Jelinek  <jakub@redhat.com>
1734         PR pch/71934
1735         * c-pch.c (c_common_no_more_pch): Pass a temporary void * var
1736         with NULL value instead of NULL to host_hooks.gt_pch_use_address.
1738 2021-12-03  Jakub Jelinek  <jakub@redhat.com>
1740         PR pch/71934
1741         * c-pch.c (struct c_pch_validity): Remove pch_init member.
1742         (pch_init): Don't initialize v.pch_init.
1743         (c_common_valid_pch): Don't warn and punt if .text addresses change.
1745 2021-12-01  Jason Merrill  <jason@redhat.com>
1747         PR c++/103310
1748         * c.opt: Add -fconstexpr-fp-except.
1750 2021-11-29  Richard Biener  <rguenther@suse.de>
1752         * c-format.c (check_format_string): Remove spurious
1753         gcc_unreachable.
1755 2021-11-29  Richard Biener  <rguenther@suse.de>
1757         * c-opts.c (c_common_post_options): Remove unreachable return.
1758         * c-pragma.c (handle_pragma_target): Likewise.
1759         (handle_pragma_optimize): Likewise.
1761 2021-11-25  Jakub Jelinek  <jakub@redhat.com>
1763         PR c++/102611
1764         * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by
1765         default for C++23 regardless of warn_deprecated.
1766         * c-cppbuiltin.c (c_cpp_builtins): Predefine
1767         __cpp_multidimensional_subscript=202110L for C++23.
1769 2021-11-23  Martin Sebor  <msebor@redhat.com>
1771         PR middle-end/88232
1772         * c.opt: Add -Winfinite-recursion.
1774 2021-11-19  Martin Sebor  <msebor@redhat.com>
1776         PR c++/33925
1777         PR c/102867
1778         * c-common.c (decl_with_nonnull_addr_p): Call maybe_nonzero_address
1779         and improve handling tof defined symbols.
1781 2021-11-19  Martin Liska  <mliska@suse.cz>
1783         Revert:
1784         2021-11-18  Martin Liska  <mliska@suse.cz>
1786         * c-gimplify.c (genericize_c_loop): Use option directly.
1788 2021-11-18  Matthias Kretz  <m.kretz@gsi.de>
1790         * c-common.c (c_common_reswords): Add __builtin_assoc_barrier.
1791         * c-common.h (enum rid): Add RID_BUILTIN_ASSOC_BARRIER.
1793 2021-11-18  Martin Liska  <mliska@suse.cz>
1795         * c-gimplify.c (genericize_c_loop): Use option directly.
1797 2021-11-17  Martin Uecker  <uecker@gcc.gnu.org>
1799         PR c/91038
1800         PR c/29970
1801         * c-common.c (pointer_int_sum): Make sure pointer expressions
1802         are evaluated first when the size expression depends on for
1803         variably-modified types.
1805 2021-11-17  Marek Polacek  <polacek@redhat.com>
1807         PR preprocessor/103026
1808         * c.opt (Wbidi-chars, Wbidi-chars=): New option.
1810 2021-11-16  Jason Merrill  <jason@redhat.com>
1812         * c-common.c (release_tree_vector): Only cache vecs smaller than
1813         16 elements.
1815 2021-11-15  Jason Merrill  <jason@redhat.com>
1817         * c.opt: Add -fimplicit-constexpr.
1818         * c-cppbuiltin.c: Define __cpp_implicit_constexpr.
1819         * c-opts.c (c_common_post_options): Disable below C++14.
1821 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
1823         * c-omp.c (c_omp_split_clauses) <case OMP_CLAUSE_THREAD_LIMIT>:
1824         Duplicate to both OMP_TARGET and OMP_TEAMS.
1826 2021-11-10  Marek Polacek  <polacek@redhat.com>
1828         PR c++/101940
1829         * c-pragma.c (handle_pragma_diagnostic): Handle #pragma GCC diagnostic
1830         ignored_attributes.
1832 2021-11-09  David Malcolm  <dmalcolm@redhat.com>
1834         * c-pragma.c (GCC_BAD_AT): New macro.
1835         (GCC_BAD2_AT): New macro.
1836         (handle_pragma_pack): Use the location of the pertinent token when
1837         issuing diagnostics about invalid constants/actions, and trailing
1838         junk.
1839         (handle_pragma_target): Likewise for non-string "GCC option".
1840         (handle_pragma_message): Likewise for trailing junk.
1842 2021-11-03  Joseph Myers  <joseph@codesourcery.com>
1844         PR c/103031
1845         * c-common.c (convert_and_check): Add argument init_const.  Call
1846         convert_init if init_const.
1847         * c-common.h (convert_and_check): Update prototype.
1848         (convert_init): New prototype.
1850 2021-11-01  David Malcolm  <dmalcolm@redhat.com>
1852         * c-lex.c (c_lex_with_flags): When complaining about non-printable
1853         CPP_OTHER tokens, set the "escape on output" flag.
1855 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
1857         * c-omp.c (c_omp_check_loop_iv_r): Don't clear 3rd bit for
1858         POINTER_PLUS_EXPR.
1859         (c_omp_check_nonrect_loop_iv): Handle POINTER_PLUS_EXPR.
1860         (c_omp_check_loop_iv): Set kind even if the iterator is non-integral.
1862 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
1864         PR c++/102854
1865         * c-common.h (c_omp_check_loop_iv_exprs): Add enum tree_code argument.
1866         * c-omp.c (c_omp_check_loop_iv_r): For trees other than decls,
1867         TREE_VEC, PLUS_EXPR, MINUS_EXPR, MULT_EXPR, POINTER_PLUS_EXPR or
1868         conversions temporarily clear the 3rd bit from d->kind while walking
1869         subtrees.
1870         (c_omp_check_loop_iv_exprs): Add CODE argument.  Or in 4 into data.kind
1871         if possibly non-rectangular.
1873 2021-10-21  Jakub Jelinek  <jakub@redhat.com>
1875         PR middle-end/64888
1876         * c-omp.c (c_omp_predefined_variable): Return true also for
1877         ubsan_create_data created artificial variables.
1879 2021-10-14  Joseph Myers  <joseph@codesourcery.com>
1881         * c-format.c (printf_length_specs, scanf_length_specs)
1882         (print_char_table, scan_char_table): Support DFP formats for C2X.
1883         * c-format.h (TEX_D32, TEX_D64, TEX_D128): Remove.
1884         (T2X_D32, T2X_D64, T2X_D128): New macros.
1886 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
1888         * c-omp.c (c_omp_check_context_selector): Rename to
1889         omp_check_context_selector and move to omp-general.c.
1890         (c_omp_mark_declare_variant): Rename to omp_mark_declare_variant and
1891         move to omp-general.c.
1893 2021-10-12  Joseph Myers  <joseph@codesourcery.com>
1895         * c-format.c (print_char_table): Add %b and %B formats.
1896         (scan_char_table): Add %b format.
1897         * c-format.h (T2X_UI, T2X_UL, T2X_ULL, T2X_US, T2X_UC, T2X_ST)
1898         (T2X_UPD, T2X_UIM): New macros.
1900 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
1902         * c-omp.c (c_finish_omp_atomic): Use
1903         clear_padding_type_may_have_padding_p.
1905 2021-10-08  Martin Liska  <mliska@suse.cz>
1907         * c-opts.c (c_common_post_options): Use new macro
1908         OPTION_SET_P.
1910 2021-10-07  Martin Liska  <mliska@suse.cz>
1912         * c-common.c (parse_optimize_options): Make
1913         save_opt_decoded_options a pointer type.
1915 2021-10-06  Jakub Jelinek  <jakub@redhat.com>
1917         PR tree-optimization/102571
1918         * c-omp.c (c_finish_omp_atomic): Optimize the case where type has
1919         padding, but the non-padding bits are contiguous set of bytes
1920         by adjusting the memcmp call arguments instead of emitting
1921         __builtin_clear_padding and then comparing all the type's bytes.
1923 2021-10-06  Jakub Jelinek  <jakub@redhat.com>
1925         PR c++/102612
1926         * c-cppbuiltin.c (c_cpp_builtins): For -std=c++23 predefine
1927         __cpp_constexpr to 202110L rather than 201907L.
1929 2021-10-04  Marek Polacek  <polacek@redhat.com>
1931         PR c++/97573
1932         * c-common.h (do_warn_array_compare): Declare.
1933         * c-warn.c (do_warn_array_compare): New.
1934         * c.opt (Warray-compare): New option.
1936 2021-10-02  Iain Sandoe  <iain@sandoe.co.uk>
1938         * c-format.c: Remove a test of TARGET_FORMAT_TYPES with
1939         NULL, this is not needed.
1941 2021-10-01  Martin Sebor  <msebor@redhat.com>
1943         PR c/102103
1944         * c-common.c (decl_with_nonnull_addr_p): Handle members.
1945         Check and perform warning suppression.
1946         (c_common_truthvalue_conversion): Enhance warning suppression.
1948 2021-10-01  Martin Liska  <mliska@suse.cz>
1950         PR target/102552
1951         * c-common.c (parse_optimize_options): decoded_options[0] is
1952         used for program name, so merged_decoded_options should also
1953         respect that.
1955 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
1956             Richard Biener  <rguenther@suse.de>
1958         PR sanitizer/102515
1959         * c-ubsan.c (ubsan_instrument_division): Check the right
1960         flag_sanitize_recover bit, depending on which sanitization
1961         is done.  Sanitize INT_MIN / -1 under SANITIZE_SI_OVERFLOW
1962         rather than SANITIZE_DIVIDE.  If both SANITIZE_SI_OVERFLOW
1963         and SANITIZE_DIVIDE is enabled, neither check is known
1964         to be false and flag_sanitize_recover bits for those two
1965         aren't the same, emit both __ubsan_handle_divrem_overflow
1966         and __ubsan_handle_divrem_overflow_abort calls.
1968 2021-10-01  Martin Liska  <mliska@suse.cz>
1970         * c-common.c (parse_optimize_options): Combine optimize
1971         options with what was provided on the command line.
1973 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
1975         * c-omp.c (c_omp_split_clauses): Also copy
1976         OMP_CLAUSE_ORDER_REPRODUCIBLE.
1978 2021-09-27  Martin Liska  <mliska@suse.cz>
1980         * c-opts.c (c_common_init_options_struct): Set also
1981         x_flag_default_complex_method.
1983 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
1985         * c-omp.c (c_omp_split_clauses): Copy over OMP_CLAUSE_ALLOCATE_ALIGN.
1987 2021-09-20  Matthias Kretz  <m.kretz@gsi.de>
1989         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define or
1990         undefine __RECIPROCAL_MATH__, __NO_SIGNED_ZEROS__,
1991         __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__, and
1992         __ROUNDING_MATH__ according to the new optimization flags.
1994 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
1996         * c-omp.c (c_omp_split_clauses): Split order clause also to
1997         distribute construct.  Copy over OMP_CLAUSE_ORDER_UNCONSTRAINED.
1999 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
2001         * c-omp.c (c_finish_omp_atomic): Avoid creating
2002         TARGET_EXPR if test is true, use create_tmp_var_raw instead of
2003         create_tmp_var and add a zero initializer to TARGET_EXPRs that
2004         had NULL initializer.  When omitting operands after v = x,
2005         use type of v rather than type of x.  Fix type of vtmp
2006         TARGET_EXPR.
2008 2021-09-13  Jason Merrill  <jason@redhat.com>
2010         * c.opt: Add -Winterference-size.
2011         * c-cppbuiltin.c (cpp_atomic_builtins): Add __GCC_DESTRUCTIVE_SIZE
2012         and __GCC_CONSTRUCTIVE_SIZE.
2014 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
2016         * c-common.h (c_finish_omp_atomic): Add r and weak arguments.
2017         * c-omp.c: Include gimple-fold.h.
2018         (c_finish_omp_atomic): Add r and weak arguments.  Add support for
2019         OpenMP 5.1 atomics.
2021 2021-09-09  qing zhao  <qing.zhao@oracle.com>
2023         * c-attribs.c (handle_uninitialized_attribute): New function.
2024         (c_common_attribute_table): Add "uninitialized" attribute.
2026 2021-09-08  liuhongt  <hongtao.liu@intel.com>
2028         * c-common.c (excess_precision_mode_join): Update below comments.
2029         (c_ts18661_flt_eval_method): Set excess_precision_type to
2030         EXCESS_PRECISION_TYPE_FLOAT16 when -fexcess-precision=16.
2031         * c-cppbuiltin.c (cpp_atomic_builtins): Update below comments.
2032         (c_cpp_flt_eval_method_iec_559): Set excess_precision_type to
2033         EXCESS_PRECISION_TYPE_FLOAT16 when -fexcess-precision=16.
2035 2021-09-07  Marcel Vollweiler  <marcel@codesourcery.com>
2037         * c-omp.c (c_finish_omp_flush): Handle MEMMODEL_SEQ_CST.
2039 2021-09-03  Eric Botcazou  <ebotcazou@adacore.com>
2041         * c-ada-spec.c (dump_ads): Generate pragmas to disable style checks
2042         and -gnatwu warning for the package specification.
2044 2021-09-01  Iain Sandoe  <iain@sandoe.co.uk>
2046         * c-attribs.c (handle_unavailable_attribute): New.
2048 2021-08-30  Jason Merrill  <jason@redhat.com>
2050         * c.opt: Add -Wmissing-requires.
2052 2021-08-25  Lewis Hyatt  <lhyatt@gmail.com>
2054         PR other/93067
2055         * c-opts.c (c_common_input_charset_cb): New function.
2056         (c_common_post_options): Call new function
2057         diagnostic_initialize_input_context().
2059 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
2061         * c-format.c (gcc_gfc_length_specs): Add 'll' and 'w'.
2062         (gcc_gfc_char_table): Add T9L_LL and T9L_ULL to
2063         "di" and "u", respecitively; fill with BADLEN to match
2064         size of 'types'.
2065         (get_init_dynamic_hwi): Split off from ...
2066         (init_dynamic_diag_info): ... here. Call it.
2067         (init_dynamic_gfc_info): Call it.
2069 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
2071         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ERROR.
2072         * c-pragma.c (omp_pragmas): Add error directive.
2073         * c-omp.c (omp_directives): Uncomment error directive entry.
2075 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
2077         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_NOTHING.
2078         * c-pragma.c (omp_pragmas): Add nothing directive.
2079         * c-omp.c (omp_directives): Uncomment nothing directive entry.
2081 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
2083         PR c++/101539
2084         * c-common.h (enum rid): Add RID_IS_LAYOUT_COMPATIBLE.
2085         * c-common.c (c_common_reswords): Add __is_layout_compatible.
2087 2021-08-17  Matt Jacobson  <mhjacobson@me.com>
2089         * c-opts.c (c_common_post_options): Default to
2090         flag_objc_sjlj_exceptions = 1 only when flag_objc_abi < 2.
2092 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
2094         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCOPE.
2095         * c-pragma.c (omp_pragmas): Add scope construct.
2096         * c-omp.c (omp_directives): Uncomment scope directive entry.
2098 2021-08-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2100         * c-cppbuiltin.c (c_cpp_builtins): Define
2101         __LIBGCC_GCOV_TYPE_SIZE if flag_building_libgcc is true.
2103 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
2105         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_MASKED.
2106         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FILTER.
2107         * c-pragma.c (omp_pragmas_simd): Add masked construct.
2108         * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_MASKED
2109         enumerator.
2110         (c_finish_omp_masked): Declare.
2111         * c-omp.c (c_finish_omp_masked): New function.
2112         (c_omp_split_clauses): Handle combined masked constructs.
2114 2021-07-30  Jakub Jelinek  <jakub@redhat.com>
2116         PR c++/101539
2117         * c-common.h (enum rid): Add RID_IS_POINTER_INTERCONVERTIBLE_BASE_OF.
2118         * c-common.c (c_common_reswords): Add
2119         __is_pointer_interconvertible_base_of.
2121 2021-07-29  Richard Biener  <rguenther@suse.de>
2123         PR c/101512
2124         * c-common.c (c_common_mark_addressable_vec): Look through
2125         C_MAYBE_CONST_EXPR even if not at the toplevel.
2127 2021-07-27  Martin Sebor  <msebor@redhat.com>
2129         PR c/101585
2130         * c-warn.c (warn_parm_ptrarray_mismatch): Use OEP_DECL_NAME.
2132 2021-07-23  Jakub Jelinek  <jakub@redhat.com>
2134         * c-lex.c (c_common_has_attribute): Call canonicalize_attr_name also
2135         on attr_id.  Return 1 for omp::directive or omp::sequence in C++11
2136         and later.
2138 2021-07-23  Jakub Jelinek  <jakub@redhat.com>
2140         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP__START_ and
2141         PRAGMA_OMP__LAST_ enumerators.
2143 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
2144             Joseph Myers  <joseph@codesourcery.com>
2145             Cesar Philippidis  <cesar@codesourcery.com>
2147         * c-pragma.h (pragma_omp_clause): Add 'PRAGMA_OACC_CLAUSE_NOHOST'.
2149 2021-07-20  Martin Sebor  <msebor@redhat.com>
2151         * c-common.c (c_build_shufflevector): Adjust by-value argument to
2152         by-const-reference.
2153         * c-common.h (c_build_shufflevector): Same.
2155 2021-07-16  Andrew Pinski  <apinski@marvell.com>
2157         PR c/101453
2158         * c-common.c (parse_optimize_options): Use the correct
2159         size for buffer.
2161 2021-07-15  Martin Sebor  <msebor@redhat.com>
2163         PR c/101289
2164         PR c/97548
2165         * c-warn.c (warn_parm_array_mismatch): Use OEP_DECL_NAME.
2167 2021-07-14  Jason Merrill  <jason@redhat.com>
2169         * c-opts.c (c_common_post_options): Set -fdelete-dead-exceptions.
2171 2021-07-06  Martin Sebor  <msebor@redhat.com>
2173         * c-format.c (gcc_tdiag_char_table): Remove support for %G and %K.
2174         (gcc_cdiag_char_table): Same.
2175         (gcc_cxxdiag_char_table): Same.
2177 2021-07-02  Jakub Jelinek  <jakub@redhat.com>
2179         * c-common.h (enum c_omp_directive_kind): New enum.
2180         (struct c_omp_directive): New type.
2181         (c_omp_categorize_directive): Declare.
2182         * c-omp.c (omp_directives): New variable.
2183         (c_omp_categorize_directive): New function.
2185 2021-07-01  Eric Botcazou  <ebotcazou@adacore.com>
2187         * c-ada-spec.c (packed_layout): New global variable.
2188         (dump_ada_declaration): Set it upon seeing a packed record type.
2189         Do not put the "aliased" keyword if it is set.
2190         (dump_ada_structure): Add Pack aspect if it is set and clear it.
2192 2021-07-01  Eric Botcazou  <ebotcazou@adacore.com>
2194         * c-ada-spec.c (check_name): Rename into...
2195         (check_type_name_conflict): ...this.  Minor tweak.
2196         (dump_ada_function_declaration): Adjust to above renaming.
2197         (dump_ada_array_domains): Fix oversight.
2198         (dump_ada_declaration): Call check_type_name_conflict for variables.
2200 2021-06-25  Martin Sebor  <msebor@redhat.com>
2202         * c-common.c (c_wrap_maybe_const): Remove TREE_NO_WARNING.
2203         (c_common_truthvalue_conversion): Replace direct uses of
2204         TREE_NO_WARNING with warning_suppressed_p, suppress_warning, and
2205         copy_no_warning.
2206         (check_function_arguments_recurse): Same.
2207         * c-gimplify.c (c_gimplify_expr): Same.
2208         * c-warn.c (overflow_warning): Same.
2209         (warn_logical_operator): Same.
2210         (warn_if_unused_value): Same.
2211         (do_warn_unused_parameter): Same.
2213 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
2215         * c-common.h (enum c_omp_region_type): Add C_ORT_TARGET and
2216         C_ORT_OMP_TARGET.
2217         * c-omp.c (c_omp_split_clauses): For OMP_CLAUSE_IN_REDUCTION on
2218         combined target constructs also add map (always, tofrom:) clause.
2220 2021-06-15  Robin Dapp  <rdapp@linux.ibm.com>
2222         * c-attribs.c (common_handle_aligned_attribute): Remove short
2223         circuit and dead code.
2225 2021-06-14  Jonathan Wakely  <jwakely@redhat.com>
2227         PR c++/101052
2228         * known-headers.cc (get_stdlib_header_for_name): Add known
2229         headers for EXIT_FAILURE, EXIT_SUCCESS, abort, atexit, calloc,
2230         exit, and getenv.
2232 2021-06-12  Jason Merrill  <jason@redhat.com>
2234         * c-attribs.c (handle_unused_attribute): Handle FIELD_DECL.
2236 2021-06-11  Jakub Jelinek  <jakub@redhat.com>
2238         PR c++/100974
2239         * c-cppbuiltin.c (c_cpp_builtins): Predefine __cpp_if_consteval for
2240         -std=c++2b for P1938R3 consteval if support.
2242 2021-06-09  Jason Merrill  <jason@redhat.com>
2244         PR c++/100879
2245         * c-warn.c (warn_for_sign_compare): Remove C++ enum mismatch
2246         warning.
2248 2021-06-07  Martin Liska  <mliska@suse.cz>
2250         * c-target.def: Split long lines and replace them
2251         with '\n\'.
2253 2021-06-04  Martin Sebor  <msebor@redhat.com>
2255         PR c/100783
2256         * c-attribs.c (positional_argument): Bail on erroneous types.
2258 2021-06-04  Martin Sebor  <msebor@redhat.com>
2260         * c-warn.c (warn_parm_array_mismatch): Check TREE_PURPOSE to test
2261         for element presence.
2263 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
2265         * c-ada-spec.c (dump_ada_macros): Minor tweaks.
2266         (dump_ada_decl_name): Likewise.
2267         (dump_anonymous_type_name): Remove parent parameter and adjust.
2268         (dump_sloc): Minor tweak.
2269         (dump_ada_array_type): Remove type parameter and adjust.
2270         (dump_ada_enum_type): Remove parent parameter and adjust.
2271         (dump_ada_node): Adjust calls to above functions.
2272         (dumped_anonymous_types): New global variable.
2273         (dump_nested_types_1): Rename into...
2274         (dump_nested_types): ...this.
2275         (dump_nested_type): Remove parent and dumped_types parameters.
2276         <ARRAY_TYPE>: Replace dumped_types with dumped_anonymous_types.
2277         Adjust calls to dump_anonymous_type_name and dump_ada_array_type.
2278         (dump_ada_specs): Initialize and free dumped_anonymous_types.
2280 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
2282         * c-ada-spec.c (pp_ada_tree_identifier): Tidy up.
2283         (dump_ada_node) <POINTER_TYPE>: Deal specially with external subtypes.
2285 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
2287         * c-ada-spec.c (dump_ada_enum_type): Dump a prefix for constants.
2288         (htable_t): New typedef.
2289         (overloaded_names): Use it.
2290         (add_name): New function.
2291         (init_overloaded_names): Use add_name to populate the table and add
2292         special cases for sigaction and stat.
2293         (overloaded_name_p): Rename into...
2294         (overloading_index): ...this.  Do not initialize overloaded_names table
2295         here.  Return the index or zero.
2296         (dump_ada_declaration): Minor tweaks.  Do not skip overloaded functions
2297         but add an overloading suffix instead.
2298         (dump_ada_specs): Initialize overloaded_names tables here.
2300 2021-06-01  Martin Liska  <mliska@suse.cz>
2302         PR other/100759
2303         * c-attribs.c (handle_optimize_attribute): Limit sanity check
2304         to a situation where we are not in processing of an optimize
2305         pragma.
2306         * c-pragma.c (handle_pragma_pop_options): Restore target
2307         options.
2309 2021-05-31  Indu Bhagat  <indu.bhagat@oracle.com>
2311         PR testsuite/100749
2312         * c-pch.c (c_common_valid_pch): Use xstrdup for debug format set names.
2314 2021-05-31  Richard Biener  <rguenther@suse.de>
2316         PR c++/88601
2317         * c-common.c: Include tree-vector-builder.h and
2318         vec-perm-indices.h.
2319         (c_common_reswords): Add __builtin_shufflevector.
2320         (c_build_shufflevector): New funtion.
2321         * c-common.h (enum rid): Add RID_BUILTIN_SHUFFLEVECTOR.
2322         (c_build_shufflevector): Declare.
2324 2021-05-28  Jakub Jelinek  <jakub@redhat.com>
2326         PR middle-end/99928
2327         * c-omp.c (c_omp_split_clauses): For reduction clause if combined with
2328         target add a map tofrom clause with OMP_CLAUSE_MAP_IMPLICIT.
2330 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
2332         * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_AFFINITY.
2334 2021-05-25  Martin Liska  <mliska@suse.cz>
2336         PR tree-optimization/92860
2337         PR target/99592
2338         * c-attribs.c (handle_optimize_attribute): Save target node
2339         before calling parse_optimize_options and save it in case
2340         it changes.
2341         * c-pragma.c (handle_pragma_target): Similarly for pragma.
2342         (handle_pragma_pop_options): Likewise here.
2344 2021-05-25  Martin Liska  <mliska@suse.cz>
2346         * c-attribs.c (handle_no_sanitize_coverage_attribute): New.
2348 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
2350         PR middle-end/99928
2351         * c-omp.c (c_omp_split_clauses): Copy reduction to teams when teams is
2352         combined with simd and not with taskloop or for.
2354 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
2356         PR middle-end/99928
2357         * c-omp.c (c_omp_split_clauses): Set OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT
2358         on firstprivate clause copy going to target construct, and for
2359         target simd set also OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET bit.
2361 2021-05-20  Jonathan Wakely  <jwakely@redhat.com>
2363         * c.opt (Wc++11-extensions, Wc++14-extensions)
2364         (Wc++17-extensions, Wc++20-extensions, Wc++23-extensions): New
2365         options.
2367 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
2369         * c-lex.c (init_c_lex): Use dwarf_debuginfo_p.
2371 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
2373         * c-opts.c (c_common_post_options): Adjust access to debug_type_names.
2374         * c-pch.c (struct c_pch_validity): Use type uint32_t.
2375         (pch_init): Renamed member.
2376         (c_common_valid_pch): Adjust access to debug_type_names.
2378 2021-05-19  Martin Sebor  <msebor@redhat.com>
2380         PR c/100619
2381         * c-attribs.c (build_attr_access_from_parms): Handle arbitrarily many
2382         bounds.
2384 2021-05-18  Richard Biener  <rguenther@suse.de>
2386         PR c/100547
2387         * c-attribs.c (type_valid_for_vector_size): Reject too large nunits.
2388         Reword existing nunit diagnostic.
2390 2021-05-17  Joern Rennecke  <joern.rennecke@embecosm.com>
2392         * c-common.c (braced_list_to_string): Return CTOR unchanged
2393         if host and target character sizes don't match.
2395 2021-05-14  Martin Liska  <mliska@suse.cz>
2397         * c.opt: Add Warning keyword for 2 options.
2399 2021-05-13  Martin Liska  <mliska@suse.cz>
2401         PR middle-end/100504
2402         * c-attribs.c (handle_target_clones_attribute): Expect a string
2403         argument to target_clone argument.
2405 2021-05-11  Joseph Myers  <joseph@codesourcery.com>
2407         * c-lex.c (interpret_float): Handle digit separators for C2X.
2409 2021-05-10  Martin Liska  <mliska@suse.cz>
2411         * c-ada-spec.c (print_destructor): Use startswith
2412         function instead of strncmp.
2413         (dump_ada_declaration): Likewise.
2414         * c-common.c (disable_builtin_function): Likewise.
2415         (def_builtin_1): Likewise.
2416         * c-format.c (check_tokens): Likewise.
2417         (check_plain): Likewise.
2418         (convert_format_name_to_system_name): Likewise.
2420 2021-04-28  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
2422         * c-cppbuiltin.c (c_cpp_builtins): Add supporting macros for new
2423         complex divide
2425 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
2426             Nathan Sidwell  <nathan@codesourcery.com>
2427             Tom de Vries  <vries@codesourcery.com>
2428             Julian Brown  <julian@codesourcery.com>
2429             Kwok Cheung Yeung  <kcy@codesourcery.com>
2431         * c.opt (Wopenacc-parallelism): New.
2433 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
2435         * c.opt (fopenacc-kernels=): Remove.
2437 2021-04-08  Jakub Jelinek  <jakub@redhat.com>
2439         * c-warn.c (do_warn_double_promotion): Fix comment typo,
2440         occured -> occurred.
2441         (check_alignment_of_packed_member): Fix a comment typo,
2442         memeber -> member.
2443         (warn_parm_ptrarray_mismatch): Fix comment typos, os -> of
2444         and onless -> unless.
2445         (warn_parm_array_mismatch): Fix comment typos, declaratation
2446         -> declaration and woud -> would.  Fix up comment indentation.
2448 2021-04-08  Martin Sebor  <msebor@redhat.com>
2450         PR middle-end/99883
2451         * c.opt (Wmismatched-new-delete): Correct spelling.
2453 2021-04-05  Eric Botcazou  <ebotcazou@adacore.com>
2455         * c-ada-spec.c (is_simple_enum): Minor tweaks.
2456         (dump_ada_enum_type): Add TYPE and PARENT parameters.  For non-simple
2457         enumeral types use again the type name for the enumeration constants.
2458         (dump_ada_node): Adjust call to dump_ada_enum_type.
2459         (dump_nested_type): Likewise.
2461 2021-04-01  Jason Merrill  <jason@redhat.com>
2463         PR c++/98481
2464         * c-opts.c (c_common_post_options): Bump latest_abi_version.
2466 2021-03-25  Jakub Jelinek  <jakub@redhat.com>
2468         PR c++/99565
2469         * c-warn.c (do_warn_duplicated_branches): Pass also
2470         OEP_ADDRESS_OF_SAME_FIELD to operand_equal_p.
2472 2021-03-20  Jakub Jelinek  <jakub@redhat.com>
2474         PR debug/99230
2475         * c-gimplify.c (c_genericize_control_stmt): Handle STATEMENT_LIST.
2477 2021-03-05  Eric Botcazou  <ebotcazou@adacore.com>
2479         * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Dump nested types
2480         after entering the separate class package, if any.
2482 2021-03-04  Richard Biener  <rguenther@suse.de>
2484         * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator):
2485         Handle ERROR_MARK.
2487 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
2489         PR c/99325
2490         * c-ppoutput.c (print): Change src_line type from int to unsigned.
2491         (token_streamer::stream) Likewise.
2492         (maybe_print_line_1): Likewise.  Don't strcmp src_file if src_loc is
2493         UNKNOWN_LOCATION.
2495 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
2497         PR c/99324
2498         * c-common.c (build_va_arg): Call c_common_mark_addressable_vec
2499         instead of mark_addressable.  Fix a comment typo -
2500         neutrallly -> neutrally.
2502 2021-02-28  Jakub Jelinek  <jakub@redhat.com>
2504         PR c/99304
2505         * c-attribs.c (handle_malloc_attribute): Fix a typo in inform
2506         message - refernced -> referenced.  Remove superfluous space before
2507         closing paren of function calls.
2509 2021-02-25  Nathan Sidwell  <nathan@acm.org>
2511         PR c++/99166
2512         * c.opt (-flang-info-module-cmi): Renamed option.
2514 2021-02-19  Nathan Sidwell  <nathan@acm.org>
2516         * c.opt (flang-info-module-read, flang-info-module-read=): New.
2518 2021-02-18  H.J. Lu  <hjl.tools@gmail.com>
2520         PR target/99113
2521         * c-attribs.c (c_common_attribute_table): Add the "retain"
2522         attribute.
2523         (handle_retain_attribute): New function.
2525 2021-02-16  Marek Polacek  <polacek@redhat.com>
2527         PR c++/99062
2528         * c-attribs.c (handle_assume_aligned_attribute): Check that the
2529         alignment argument is non-negative.  Tweak a warning message.
2531 2021-02-12  Martin Sebor  <msebor@redhat.com>
2533         PR c/99055
2534         * c-warn.c (warn_parm_array_mismatch): Free strings returned from
2535         print_generic_expr_to_str.
2537 2021-02-10  Richard Biener  <rguenther@suse.de>
2539         * c-common.c (parse_optimize_options): Free decoded_options.
2541 2021-02-04  emsr  <3dw4rd@verizon.net>
2543         * c-cppbuiltin.c (c_cpp_builtins): __cpp_size_t_suffix=202011L.
2545 2021-02-03  Ed Smith-Rowland  <3dw4rd@verizon.net>
2547         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_size_t_suffix.
2548         * c-lex.c (interpret_integer): Set node type for size literal.
2550 2021-01-28  Jakub Jelinek  <jakub@redhat.com>
2552         * c.opt (-std=c++2a, -std=c++20, -std=gnu++2a, -std=gnu++20): Remove
2553         draft from description.
2554         (-std=c++2b): Fix a pasto, 2020 -> 2023.
2556 2021-01-26  Paul Fee  <paul.f.fee@gmail.com>
2558         * c-common.h (cxx_dialect): Add cxx23 as a dialect.
2559         * c.opt: Add options for -std=c++23, std=c++2b, -std=gnu++23
2560         and -std=gnu++2b
2561         * c-opts.c (set_std_cxx23): New.
2562         (c_common_handle_option): Set options when -std=c++23 is enabled.
2563         (c_common_post_options): Adjust comments.
2564         (set_std_cxx20): Likewise.
2566 2021-01-25  Martin Sebor  <msebor@redhat.com>
2568         PR c++/98646
2569         * c-common.c (check_nonnull_arg): Adjust warning text.
2571 2021-01-17  Martin Sebor  <msebor@redhat.com>
2573         * c-pretty-print.c (c_pretty_printer::primary_expression): Don't
2574         assume SSA_NAME_IDENTIFIER evaluates to nonzero.
2576 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
2578         * c-pragma.h (pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_DETACH.
2579         Redefine PRAGMA_OACC_CLAUSE_DETACH.
2581 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
2583         PR tree-optimization/98597
2584         * c-pretty-print.c: Include options.h.
2585         (c_fold_indirect_ref_for_warn): New function.
2586         (print_mem_ref): Use it.  If it returns something that has compatible
2587         type and is TBAA compatible with zero offset, print it and return,
2588         otherwise print it using offsetof syntax or array ref syntax.  Fix up
2589         printing if MEM_REFs first operand is ADDR_EXPR, or when the first
2590         argument has pointer to array type.  Print pointers using the standard
2591         formatting.
2593 2021-01-12  Martin Sebor  <msebor@redhat.com>
2595         PR c/98597
2596         PR c/98592
2597         * c-pretty-print.c (print_mem_ref): Avoid assuming MEM_REF operand
2598         has pointer type.  Remove redundant code.  Avoid calling
2599         gimple_canonical_types_compatible_p.
2601 2021-01-07  Martin Sebor  <msebor@redhat.com>
2603         PR middle-end/98578
2604         * c-pretty-print.c (print_mem_ref): Strip array from access type.
2605         Avoid assuming acces type's size is constant.  Correct condition
2606         guarding the printing of a parenthesis.
2608 2021-01-06  Martin Sebor  <msebor@redhat.com>
2610         PR c++/95768
2611         * c-pretty-print.c (c_pretty_printer::primary_expression): For
2612         SSA_NAMEs print VLA names and GIMPLE defining statements.
2613         (print_mem_ref): New function.
2614         (c_pretty_printer::unary_expression): Call it.
2616 2021-01-06  Richard Biener  <rguenther@suse.de>
2618         PR tree-optimization/95582
2619         * c-attribs.c (c_common_attribute_table): Add entry for
2620         signed_bool_precision.
2621         (handle_signed_bool_precision_attribute): New.
2623 2020-12-24  Iain Sandoe  <iain@sandoe.co.uk>
2625         * c.opt: Add -stdlib= option and enumerations for
2626         libstdc++ and libc++.
2628 2020-12-16  Martin Liska  <mliska@suse.cz>
2630         * c.opt: Remove usage of Report.
2632 2020-12-14  Martin Sebor  <msebor@redhat.com>
2634         PR middle-end/98166
2635         PR c++/57111
2636         PR middle-end/98160
2637         * c-attribs.c (maybe_add_noinline): New function.
2638         (handle_malloc_attribute): Call it.  Use ATTR_FLAG_INTERNAL.
2639         Implicitly add attribute noinline to functions not declared inline
2640         and warn on those.
2642 2020-12-09  Tobias Burnus  <tobias@codesourcery.com>
2644         * c-pragma.c (omp_pragmas): Add 'allocate'.
2645         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ALLOCATE.
2647 2020-12-08  Jakub Jelinek  <jakub@redhat.com>
2649         PR c++/98187
2650         * c-pragma.c (omp_pragmas): Remove "master".
2651         (omp_pragmas_simd): Add "master".
2653 2020-12-07  Marek Polacek  <polacek@redhat.com>
2655         PR c++/98126
2656         * c-common.c (verify_tree_lim_r): New function.
2657         (verify_sequence_points): Use it.  Use nullptr instead of 0.
2659 2020-12-03  Martin Sebor  <msebor@redhat.com>
2661         PR c++/90629
2662         PR middle-end/94527
2663         * c-attribs.c (handle_dealloc_attribute): New function.
2664         (handle_malloc_attribute): Handle argument forms of attribute.
2665         * c.opt (-Wmismatched-dealloc): New option.
2666         (-Wmismatched-new-delete): New option.
2668 2020-12-03  Jakub Jelinek  <jakub@redhat.com>
2670         PR libstdc++/93121
2671         * c-common.h (enum rid): Add RID_BUILTIN_BIT_CAST.
2672         * c-common.c (c_common_reswords): Add __builtin_bit_cast.
2674 2020-12-01  JeanHeyd Meneide  <phdofthehouse@gmail.com>
2676         * c-cppbuiltin.c (c_cpp_builtins): Add predefined
2677         {__GNUC_EXECUTION_CHARSET_NAME} and
2678         _WIDE_EXECUTION_CHARSET_NAME} macros.
2680 2020-12-01  Nathan Sidwell  <nathan@acm.org>
2682         * c-common.c (module, import, export): New internal tokens (with
2683         trailing space).
2684         * c-common.h (RID__MODULE, RID__IMPORT & RID__EXPORT): Enumerate
2685         them.
2686         (D_CXX_MODULES, D_CXX_MODULES_FLAGS): Enable them.
2687         * c-cppbuiltin.c (c_cpp_builtins): Feature macro.
2689 2020-12-01  Nathan Sidwell  <nathan@acm.org>
2691         * c-opts.c (c_common_init_options): Ask for module dependencies.
2692         (c_common_handle_option): Handle -Mmodules -Mno-modules.
2693         * c-pch.c (c_common_valid_pch): ... does not play with C++
2694         modules.
2695         * c.opt (Mmodules, Mno-modules): New preprocessor dependency
2696         options.
2697         (fmodules-ts, fmodule-header, fmodule-implicit-inline)
2698         (fmodule-only, fmodule-mapper, fmodule-lazy)
2699         (fmodule-version-ignore, Winvalid-imported-macros)
2700         (flang-info-include-translate, flang-info-include-translate-not):
2701         New options
2703 2020-11-28  Eric Botcazou  <ebotcazou@adacore.com>
2705         * c-ada-spec.c (dump_nested_type) <RECORD_TYPE>: Remove obsolete code.
2706         (dump_ada_structure): Also deal with convention, unchecked union and
2707         bit-field for nested types.  In the latter case, print an Alignment
2708         aspect along with the Pack aspect.
2710 2020-11-25  Martin Sebor  <msebor@redhat.com>
2712         PR bootstrap/94982
2713         * c-attribs.c (handle_patchable_function_entry_attribute): Avoid
2714         -Wformat-diag.
2716 2020-11-24  Martin Sebor  <msebor@redhat.com>
2718         * c-warn.c (warn_parm_array_mismatch): Avoid invalid redeclarations.
2720 2020-11-23  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
2722         * c-attribs.c (handle_special_var_sec_attribute): New.
2723         (handle_noinit_attribute): Remove.
2724         (attr_noinit_exclusions): Rename to...
2725         (attr_section_exclusions): ...this, and add "persistent" attribute
2726         exclusion.
2727         (c_common_attribute_table): Add "persistent" attribute.
2729 2020-11-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
2731         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2732         Treat opaque types like other types.
2733         (c_pretty_printer::direct_abstract_declarator): Opaque types are
2734         supported types.
2736 2020-11-20  Martin Sebor  <msebor@redhat.com>
2738         * c-warn.c (warn_parm_array_mismatch): Bail on invalid redeclarations
2739         with fewer arguments.
2741 2020-11-20  Martin Sebor  <msebor@redhat.com>
2743         PR middle-end/97879
2744         * c-attribs.c (handle_access_attribute): Handle ATTR_FLAG_INTERNAL.
2745         Error out on invalid modes.
2747 2020-11-20  Jakub Jelinek  <jakub@redhat.com>
2749         PR libstdc++/88101
2750         * c-common.c (check_builtin_function_arguments): Handle
2751         BUILT_IN_CLEAR_PADDING.
2753 2020-11-18  Nathan Sidwell  <nathan@acm.org>
2755         * c-lex.c (c_lex_with_flags): CPP_HEADER_NAMEs can now be seen.
2757 2020-11-17  Nathan Sidwell  <nathan@acm.org>
2759         * c-common.h (enum c_tree_index): Reorder to place lazy fields
2760         after newly-added CTI_MODULE_HWM.
2762 2020-11-17  Joseph Myers  <joseph@codesourcery.com>
2764         * c-cppbuiltin.c (builtin_define_float_constants): Define
2765         "*_IS_IEC_60559__" macros.
2767 2020-11-17  Nathan Sidwell  <nathan@acm.org>
2769         * c-lex.c: #include "langhooks.h".
2770         (cb_undef): Maybe call preprocess_undef lang hook.
2771         * c-opts.c (c_common_post_options): Maybe call preprocess_options
2772         lang hook.
2773         (push_command_line_include): Maybe call preprocess_main_file lang
2774         hook.
2775         (cb_file_change): Likewise.
2776         * c-ppoutput.c: #include "langhooks.h.
2777         (scan_translation_unit): Maybe call preprocess_token lang hook.
2778         (class do_streamer): New, derive from token_streamer.
2779         (directives_only_cb): Data pointer is do_streamer, call
2780         preprocess_token lang hook.
2781         (scan_translation_unit_directives_only): Use do_streamer.
2782         (print_line_1): Move src_line recording to after string output.
2783         (cb_undef): Maybe call preprocess_undef lang hook.
2785 2020-11-17  Nathan Sidwell  <nathan@acm.org>
2787         * c-ppoutput.c (scan_translation_unit): Use token_streamer, remove
2788         code duplicating that functionality.
2790 2020-11-17  Jakub Jelinek  <jakub@redhat.com>
2792         PR c/90628
2793         * c-common.c (check_builtin_function_arguments)
2794         <case BUILT_IN_ADD_OVERFLOW>: Diagnose when last argument is pointer
2795         to _Atomic.  For the TYPE_READONLY case, adjust message to be usable
2796         for more builtins and argument positions.
2798 2020-11-16  Iain Sandoe  <iain@sandoe.co.uk>
2800         PR objc/97854
2801         * stub-objc.c: Include c-common.h to declare enum rid.
2803 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
2805         PR c++/63287
2806         * c-cppbuiltin.c: Include configargs.h.
2807         (c_cpp_builtins): For C++11 and later if THREAD_MODEL_SPEC is not
2808         defined, predefine __STDCPP_THREADS__ to 1 unless thread_model is
2809         "single".
2811 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
2812             Thomas Schwinge  <thomas@codesourcery.com>
2814         * c.opt (fopenacc-kernels): Add.
2816 2020-11-13  Jason Merrill  <jason@redhat.com>
2818         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_using_enum.
2820 2020-11-13  Piotr H. Dabrowski  <phd@phd.re>
2822         PR c++/91318
2823         * c-cppbuiltin.c: c_cpp_builtins_optimize_pragma(): use cpp_define_unused()
2825 2020-11-13  Martin Liska  <mliska@suse.cz>
2827         * c-attribs.c (build_attr_access_from_parms): Format properly.
2829 2020-11-13  Iain Sandoe  <iain@sandoe.co.uk>
2831         PR objc/90707
2832         * c-common.c (c_common_reswords): null_unspecified, nullable,
2833         nonnull, null_resettable: New keywords.
2834         * c-common.h (enum rid): RID_NULL_UNSPECIFIED, RID_NULLABLE,
2835         RID_NONNULL, RID_NULL_RESETTABLE: New.
2836         (OBJC_IS_PATTR_KEYWORD): Include nullability keywords in the
2837         ranges accepted for property attributes.
2838         * c-attribs.c (handle_objc_nullability_attribute): New.
2839         * c-objc.h (enum objc_property_attribute_group): Add
2840         OBJC_PROPATTR_GROUP_NULLABLE.
2841         (enum objc_property_attribute_kind):Add
2842         OBJC_PROPERTY_ATTR_NULL_UNSPECIFIED, OBJC_PROPERTY_ATTR_NULLABLE,
2843         OBJC_PROPERTY_ATTR_NONNULL, OBJC_PROPERTY_ATTR_NULL_RESETTABLE.
2845 2020-11-13  Iain Sandoe  <iain@sandoe.co.uk>
2847         PR objc/77404
2848         * c-attribs.c (handle_objc_root_class_attribute): New
2849         * c-objc.h (objc_start_class_interface): Add a location
2850         value for the position of the class name.
2851         * c.opt: Add Wobjc-root-class.
2852         * stub-objc.c (objc_start_class_interface): Add a location
2853         value for the position of the class name.
2855 2020-11-12  Joseph Myers  <joseph@codesourcery.com>
2857         * c-lex.c (c_common_has_attribute): Take argument std_syntax.
2858         Allow scope for C.  Handle standard attributes for C.  Do not
2859         accept unscoped attributes if std_syntax and not handled as
2860         standard attributes.
2861         * c-common.h (c_common_has_attribute): Update prototype.
2863 2020-11-12  Nicholas Guriev  <guriev-ns@ya.ru>
2865         PR pch/86674
2866         * c-pch.c (c_common_valid_pch): Use cpp_warning with CPP_W_INVALID_PCH
2867         reason to fix -Werror=invalid-pch and -Wno-error=invalid-pch switches.
2869 2020-11-11  Patrick Palka  <ppalka@redhat.com>
2871         PR c++/88115
2872         * c-opts.c (c_common_post_options): Update latest_abi_version.
2874 2020-11-10  Jakub Jelinek  <jakub@redhat.com>
2876         PR c/97748
2877         * c-common.h (warn_if_unused_value): Add quiet argument defaulted
2878         to false.
2879         * c-warn.c (warn_if_unused_value): Likewise.  Pass it down
2880         recursively and just return true instead of warning if it is true.
2881         Handle COMPLEX_EXPR.
2883 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
2885         * c-common.h (c_omp_adjust_map_clauses): New declaration.
2886         * c-omp.c (struct map_clause): Helper type for c_omp_adjust_map_clauses.
2887         (c_omp_adjust_map_clauses): New function.
2889 2020-11-09  Marek Polacek  <polacek@redhat.com>
2891         DR 1914
2892         * c-common.c (attribute_fallthrough_p): Tweak the warning
2893         message.
2895 2020-11-09  Patrick Palka  <ppalka@redhat.com>
2897         * c-pragma.c (handle_pragma_diagnostic): Split the
2898         unknown-option -Wpragmas diagnostic into a warning and a
2899         subsequent note containing a spelling suggestion.  Avoid
2900         computing the suggestion if -Wpragmas warnings are being
2901         suppressed.
2903 2020-11-09  Patrick Palka  <ppalka@redhat.com>
2905         PR testsuite/97117
2906         * c-indentation.c (get_visual_column): Remove location_t
2907         parameter.  Move the column-tracking diagnostic code from here
2908         to ...
2909         (should_warn_for_misleading_indentation): ... here, before the
2910         early exit for when the loci are not all distinct.  Don't pass a
2911         location_t argument to get_visual_column.
2912         (assert_get_visual_column_succeeds): Don't pass a location_t
2913         argument to get_visual_column.
2914         (assert_get_visual_column_fails): Likewise.
2916 2020-11-08  Iain Sandoe  <iain@sandoe.co.uk>
2918         * c-common.h (OBJC_IS_PATTR_KEYWORD): Add class to the list
2919         of keywords accepted in @property attribute contexts.
2920         * c-objc.h (enum objc_property_attribute_group): Add
2921         OBJC_PROPATTR_GROUP_CLASS.
2922         (enum objc_property_attribute_kind): Add
2923         OBJC_PROPERTY_ATTR_CLASS.
2925 2020-11-07  Iain Sandoe  <iain@sandoe.co.uk>
2927         * c-common.c (c_common_reswords): Add 'atomic' property
2928         attribute.
2929         * c-common.h (enum rid): Add RID_PROPATOMIC for atomic
2930         property attributes.
2932 2020-11-07  Iain Sandoe  <iain@sandoe.co.uk>
2934         * c-attribs.c (handle_nsobject_attribute): New.
2935         * c.opt: Add WNSObject-attribute.
2937 2020-11-06  Iain Sandoe  <iain@sandoe.co.uk>
2939         * c-objc.h (enum objc_property_attribute_group): New
2940         (enum objc_property_attribute_kind): New.
2941         (OBJC_PROPATTR_GROUP_MASK): New.
2942         (struct property_attribute_info): Small class encapsulating
2943         parser output from property attributes.
2944         (objc_prop_attr_kind_for_rid): New
2945         (objc_add_property_declaration): Simplify interface.
2946         * stub-objc.c (enum rid): Dummy type.
2947         (objc_add_property_declaration): Simplify interface.
2948         (objc_prop_attr_kind_for_rid): New.
2950 2020-11-06  Nathan Sidwell  <nathan@acm.org>
2952         * c-ada-spec.c (collect_ada_nodes): Rename
2953         DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
2954         (collect_ada_node): Likewise.
2955         (dump_forward_type): Likewise.
2956         * c-common.c (set_underlying_type): Rename
2957         DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
2958         (user_facing_original_type, c_common_finalize_early_debug): Likewise.
2960 2020-11-06  Jakub Jelinek  <jakub@redhat.com>
2962         * c-common.c (verify_sequence_points): Remove DEBUG_FUNCTION.
2964 2020-11-05  Marek Polacek  <polacek@redhat.com>
2966         PR c++/97675
2967         * c.opt (Wexceptions): New option.
2969 2020-11-05  Marek Polacek  <polacek@redhat.com>
2971         PR c++/25814
2972         * c.opt (Wvexing-parse): New option.
2974 2020-11-04  Jakub Jelinek  <jakub@redhat.com>
2976         PR c++/97670
2977         * c-omp.c (c_omp_split_clauses): Look through array reductions to find
2978         underlying decl to clear in the allocate_head bitmap.
2980 2020-11-04  Iain Sandoe  <iain@sandoe.co.uk>
2982         * c-objc.h (objc_non_constant_expr_p): New.
2983         * stub-objc.c (objc_non_constant_expr_p): New.
2985 2020-11-03  Nathan Sidwell  <nathan@acm.org>
2987         * c.opt (MQ,MT): Reword description to be make-agnostic.
2989 2020-11-02  Nathan Sidwell  <nathan@acm.org>
2991         * c-opts.c (c_common_post_options): Move var decl to its
2992         initialization point.
2994 2020-11-01  Iain Sandoe  <iain@sandoe.co.uk>
2996         * c-lex.c (c_lex_with_flags): When combining '@' with a
2997         keyword for Objective-C, combine the location ranges too.
2999 2020-10-30  Qing Zhao  <qing.zhao@oracle.com>
3000             H.J.Lu  <hjl.tools@gmail.com>
3002         * c-attribs.c (c_common_attribute_table): Add new attribute
3003         zero_call_used_regs.
3004         (handle_zero_call_used_regs_attribute): New function.
3006 2020-10-28  Marek Polacek  <polacek@redhat.com>
3008         PR c++/97573
3009         * c-opts.c (c_common_post_options): In C++20, turn on
3010         -Wdeprecated-enum-enum-conversion and
3011         -Wdeprecated-enum-float-conversion.
3012         * c.opt (Wdeprecated-enum-enum-conversion,
3013         Wdeprecated-enum-float-conversion): New options.
3014         (Wenum-conversion): Allow for C++ too.
3016 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
3018         * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALLOCATE.
3019         * c-omp.c: Include bitmap.h.
3020         (c_omp_split_clauses): Handle OMP_CLAUSE_ALLOCATE.
3022 2020-10-26  Ville Voutilainen  <ville.voutilainen@gmail.com>
3024         * c-common.c (__is_nothrow_assignable): New.
3025         (__is_nothrow_constructible): Likewise.
3026         * c-common.h (RID_IS_NOTHROW_ASSIGNABLE): New.
3027         (RID_IS_NOTHROW_CONSTRUCTIBLE): Likewise.
3029 2020-10-23  Jan Hubicka  <hubicka@ucw.cz>
3031         * c-common.c (c_common_finalize_early_debug): Update for new thunk api.
3033 2020-10-23  Marek Polacek  <polacek@redhat.com>
3035         PR c++/91741
3036         * c-common.c (verify_tree): Handle PAREN_SIZEOF_EXPR.
3037         (c_common_init_ts): Likewise.
3038         * c-common.def (PAREN_SIZEOF_EXPR): New tree code.
3039         * c-common.h (maybe_warn_sizeof_array_div): Declare.
3040         * c-warn.c (sizeof_pointer_memaccess_warning): Unwrap NOP_EXPRs.
3041         (maybe_warn_sizeof_array_div): New function.
3042         * c.opt (Wsizeof-array-div): New option.
3044 2020-10-23  Martin Sebor  <msebor@redhat.com>
3046         PR c/97463
3047         * c-warn.c (warn_parm_ptrarray_mismatch): Move null test earlier.
3049 2020-10-22  Martin Liska  <mliska@suse.cz>
3051         PR c/94722
3052         * c-attribs.c (handle_no_stack_protect_function_attribute): New.
3053         (handle_stack_protect_attribute): Add error message for a
3054         no_stack_protector function.
3056 2020-10-22  Martin Liska  <mliska@suse.cz>
3058         * c-cppbuiltin.c (c_cpp_builtins): Use the stack_protector enum.
3060 2020-10-22  Jan Hubicka  <hubicka@ucw.cz>
3062         * c-gimplify.c: Include tree-nested.h
3063         (c_genericize): Update for new nested function info.
3065 2020-10-14  Martin Sebor  <msebor@redhat.com>
3067         PR c/97413
3068         * c-attribs.c (build_attr_access_from_parms): Wrap chain of VLA
3069         bounds in an extra list.
3071 2020-10-05  Richard Biener  <rguenther@suse.de>
3072             Jakub Jelinek  <jakub@redhat.com>
3074         PR c++/97197
3075         * c-pretty-print.c: Include langhooks.h.
3076         (c_pretty_printer::postfix_expression): Handle TARGET_MEM_REF as
3077         expression.
3078         (c_pretty_printer::expression): Handle TARGET_MEM_REF as
3079         unary_expression.
3080         (c_pretty_printer::unary_expression): Handle TARGET_MEM_REF.
3082 2020-09-30  Martin Sebor  <msebor@redhat.com>
3084         PR middle-end/97189
3085         * c-attribs.c (append_access_attr): Use the function declaration
3086         location for a warning about an attribute access argument.
3088 2020-09-29  Marek Polacek  <polacek@redhat.com>
3090         PR c++/94695
3091         * c.opt (Wrange-loop-construct): New option.
3093 2020-09-23  Martin Sebor  <msebor@redhat.com>
3095         PR c/97131
3096         * c-warn.c (warn_parm_ptrarray_mismatch): Handle more invalid input.
3098 2020-09-23  Marek Polacek  <polacek@redhat.com>
3100         PR c/97125
3101         * c-gimplify.c (c_genericize): Only call do_warn_duplicated_branches_r
3102         after loops and other structured control constructs have been lowered.
3104 2020-09-22  Jakub Jelinek  <jakub@redhat.com>
3106         * c.opt (Wbuiltin-declaration-mismatch): Fix typo in variable name:
3107         warn_builtin_declaraion_mismatch -> warn_builtin_declaration_mismatch.
3109 2020-09-21  Marek Polacek  <polacek@redhat.com>
3111         * c.opt (Wctad-maybe-unsupported): New option.
3113 2020-09-19  Martin Sebor  <msebor@redhat.com>
3115         PR c/50584
3116         * c-common.h (warn_parm_array_mismatch): Declare new function.
3117         (has_attribute): Move declaration of an existing function.
3118         (build_attr_access_from_parms): Declare new function.
3119         * c-warn.c (parm_array_as_string): Define new function.
3120         (plus_one):  Define new function.
3121         (warn_parm_ptrarray_mismatch): Define new function.
3122         (warn_parm_array_mismatch):  Define new function.
3123         (vla_bound_parm_decl): New function.
3124         * c.opt (-Warray-parameter, -Wvla-parameter): New options.
3125         * c-pretty-print.c (pp_c_type_qualifier_list): Don't print array type
3126         qualifiers here...
3127         (c_pretty_printer::direct_abstract_declarator): ...but instead print
3128         them in brackets here.  Also print [static].  Strip extraneous
3129         expressions from VLA bounds.
3131 2020-09-19  Martin Sebor  <msebor@redhat.com>
3133         PR c/50584
3134         * c-attribs.c (c_common_attribute_table): Add "arg spec" attribute.
3135         (handle_argspec_attribute): New function.
3136         (get_argument, get_argument_type): New functions.
3137         (append_access_attrs): Add overload.  Handle internal attribute
3138         representation in addition to external.
3139         (handle_access_attribute): Handle internal attribute representation
3140         in addition to external.
3141         (build_attr_access_from_parms): New function.
3143 2020-09-19  Sandra Loosemore  <sandra@codesourcery.com>
3145         * c-gimplify.c (genericize_c_loop): Rewrite to match
3146         c_finish_loop in c-typeck.c.
3148 2020-09-19  Sandra Loosemore  <sandra@codesourcery.com>
3150         * c-common.c (c_block_may_fallthrough): New, split from
3151         cxx_block_may_fallthrough in the cp front end.
3152         (c_common_init_ts): Move handling of loop and switch-related
3153         statements here from the cp front end.
3154         * c-common.def (FOR_STMT, WHILE_STMT, DO_STMT): Move here from
3155         cp front end.
3156         (BREAK_STMT, CONTINUE_STMT, SWITCH_STMT): Likewise.
3157         * c-common.h (c_block_may_fallthru): Declare.
3158         (bc_state_t): Move here from cp front end.
3159         (save_bc_state, restore_bc_state): Declare.
3160         (c_genericize_control_stmt): Declare.
3161         (WHILE_COND, WHILE_BODY): Likewise.
3162         (DO_COND, DO_BODY): Likewise.
3163         (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY, FOR_SCOPE): Likewise.
3164         (SWITCH_STMT_COND, SWITCH_STMT_BODY): Likewise.
3165         (SWITCH_STMT_TYPE, SWITCH_STMT_SCOPE): Likewise.
3166         (SWITCH_STMT_ALL_CASES_P, SWITCH_STMT_NO_BREAK_P): Likewise.
3167         (LABEL_DECL_BREAK, LABEL_DECL_CONTINUE): Likewise.
3168         * c-dump.c (dump_stmt): Copy from cp front end.
3169         (c_dump_tree): Move code to handle structured loop and switch
3170         tree nodes here from cp front end.
3171         * c-gimplify.c: Adjust includes.
3172         (enum bc_t, bc_label, begin_bc_block, finish_bc_block): Move from
3173         cp front end.
3174         (save_bc_state, restore_bc_state): New functions using old code
3175         from cp front end.
3176         (get_bc_label, expr_loc_or_loc): Move from cp front end.
3177         (genericize_c_loop): Move from cp front end.
3178         (genericize_for_stmt, genericize_while_stmt): Likewise.
3179         (genericize_do_stmt, genericize_switch_stmt): Likewise.
3180         (genericize_continue_stmt, genericize_break_stmt): Likewise.
3181         (genericize_omp_for_stmt): Likewise.
3182         (c_genericize_control_stmt): New function using code split from
3183         cp front end.
3184         (c_genericize_control_r): New.
3185         (c_genericize): Call walk_tree with c_genericize_control_r.
3186         * c-pretty-print.c (c_pretty_printer::statement): Move code to handle
3187         structured loop and switch tree nodes here from cp front end.
3189 2020-09-17  Patrick Palka  <ppalka@redhat.com>
3191         PR c/80076
3192         * c-indentation.c (should_warn_for_misleading_indentation): Move
3193         declarations of local variables closer to their first use.
3194         Handle virtual token locations by resolving them to their
3195         respective macro expansion points.  If all three tokens are
3196         produced from the same macro expansion, then instead use their
3197         loci within the macro definition.
3199 2020-09-16  Martin Sebor  <msebor@redhat.com>
3201         PR c/78666
3202         PR c/96126
3203         * c-attribs.c (validate_attr_args): New function.
3204         (validate_attr_arg): Same.
3205         (handle_section_attribute): Call it.  Introduce a local variable.
3206         (handle_alloc_size_attribute):  Same.
3207         (handle_alloc_align_attribute): Same.
3209 2020-09-14  Jakub Jelinek  <jakub@redhat.com>
3211         * c-attribs.c (handle_optimize_attribute): Adjust
3212         cl_optimization_save, cl_optimization_restore and
3213         build_optimization_node callers.
3214         * c-pragma.c (handle_pragma_optimize): Adjust
3215         build_optimization_node caller.
3216         (handle_pragma_push_options): Adjust
3217         build_optimization_node and build_target_option_node callers.
3218         (handle_pragma_pop_options, handle_pragma_reset_options):
3219         Adjust cl_optimization_restore callers.
3221 2020-08-28  Martin Sebor  <msebor@redhat.com>
3223         * c.opt (Wstringop-overread): New option.
3225 2020-08-11  Jakub Jelinek  <jakub@redhat.com>
3227         PR c/96545
3228         * c-common.c (get_atomic_generic_size): Require that first argument's
3229         type points to a complete type and use tree_fits_uhwi_p instead of
3230         just INTEGER_CST TREE_CODE check for the TYPE_SIZE_UNIT.
3232 2020-07-31  Martin Sebor  <msebor@redhat.com>
3234         PR c++/96003
3235         * c-common.c (check_function_arguments_recurse): Return early when
3236         no-warning bit is set.
3238 2020-07-31  Richard Biener  <rguenther@suse.de>
3240         PR debug/96383
3241         * c-common.h (c_common_finalize_early_debug): Declare.
3242         * c-common.c: Include debug.h.
3243         (c_common_finalize_early_debug): finalize_early_debug langhook
3244         implementation generating debug for extern declarations.
3246 2020-07-27  Nathan Sidwell  <nathan@acm.org>
3248         * c-common.c (try_to_locate_new_include_insertion_point): Use
3249         strcmp, not pointer equality.
3251 2020-07-25  Martin Sebor  <msebor@redhat.com>
3253         PR c++/96310
3254         * c-common.c (check_nonnull_arg): Print note only when warning was
3255         issued.
3257 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
3259         * c-omp.c (c_finish_omp_critical): Check for no name but
3260         nonzero hint provided.
3262 2020-07-20  Jason Merrill  <jason@redhat.com>
3264         * c-cppbuiltin.c (c_cpp_builtins): Update
3265         __cpp_nontype_template_args for C++20.
3267 2020-07-20  Martin Sebor  <msebor@redhat.com>
3269         PR c/96249
3270         * c.opt: Remove stray text.
3272 2020-07-14  Lewis Hyatt  <lhyatt@gmail.com>
3274         PR other/86904
3275         * c-indentation.c (should_warn_for_misleading_indentation): Get
3276         global tabstop from the new source.
3277         * c-opts.c (c_common_handle_option): Remove handling of -ftabstop, which
3278         is now a common option.
3279         * c.opt: Likewise.
3281 2020-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3283         * c.opt (Wscalar-storage-order): Add explicit variable.
3285 2020-07-07  Nathan Sidwell  <nathan@acm.org>
3287         * c-opts.c (c_common_post_options): Add 'injecting' arg to
3288         cpp_read_main_file.
3289         (c_finish_options): Add linemap_line_start calls for builtin and cmd
3290         maps.  Force token position to line_table's highest line.
3291         * c-ppoutput.c (print_line_1): Refactor, print line zero.
3292         (cb_define): Always increment source line.
3294 2020-07-06  Martin Sebor  <msebor@redhat.com>
3296         PR c++/95984
3297         * c-common.c (check_function_nonnull): Avoid checking syntesized calls
3298         to stub lambda objects with null this pointer.
3299         (check_nonnull_arg): Handle C++ nullptr.
3301 2020-07-02  Jason Merrill  <jason@redhat.com>
3302             Jakub Jelinek  <jakub@redhat.com>
3304         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_consteval.
3306 2020-06-30  Jakub Jelinek  <jakub@redhat.com>
3308         PR c++/95963
3309         * c-common.c (check_function_arguments_recurse): Don't crash on
3310         calls to internal functions.
3312 2020-06-28  Martin Sebor  <msebor@redhat.com>
3314         PR c++/86568
3315         * c-common.c (struct nonnull_arg_ctx): Add members.
3316         (check_function_nonnull): Use nonnull_arg_ctx as argument.  Handle
3317         C++ member functions specially.  Consider the this pointer implicitly
3318         nonnull.
3319         (check_nonnull_arg): Use location of argument when available.
3320         (check_function_arguments): Use nonnull_arg_ctx as argument.
3322 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
3324         PR middle-end/95903
3325         * c-common.c (pointer_int_sum): Use TYPE_OVERFLOW_UNDEFINED instead of
3326         !TYPE_UNSIGNED check to see if we can apply distributive law and handle
3327         smaller precision intop operands separately.
3329 2020-06-26  Marek Polacek  <polacek@redhat.com>
3331         * c-opts.c (c_common_init_options): Default to gnu++17.
3333 2020-06-17  Jonathan Wakely  <jwakely@redhat.com>
3335         PR c/95378
3336         * c-common.c (get_atomic_generic_size): Check cv-qualifiers in
3337         pointer arguments.
3339 2020-06-16  Jakub Jelinek  <jakub@redhat.com>
3341         * c-common.h (c_omp_check_loop_iv_exprs): Add an int argument.
3342         * c-omp.c (struct c_omp_check_loop_iv_data): Add maybe_nonrect and
3343         idx members.
3344         (c_omp_is_loop_iterator): New function.
3345         (c_omp_check_loop_iv_r): Use it.  Add support for silent scanning
3346         if outer loop iterator is present.  Perform duplicate checking through
3347         hash_set in the function rather than expecting caller to do that.
3348         Pass NULL instead of d->ppset to walk_tree_1.
3349         (c_omp_check_nonrect_loop_iv): New function.
3350         (c_omp_check_loop_iv): Use it.  Fill in new members, allow
3351         non-rectangular loop forms, diagnose multiple associated loops with
3352         the same iterator.  Pass NULL instead of &pset to walk_tree_1.
3353         (c_omp_check_loop_iv_exprs): Likewise.
3355 2020-06-10  Martin Liska  <mliska@suse.cz>
3357         PR tree-optimization/92860
3358         * c-attribs.c (handle_optimize_attribute):
3359         Save global options and compare it after parsing of function
3360         attribute.
3361         * c-pragma.c (opt_stack::saved_global_options): New field.
3362         (handle_pragma_push_options): Save global_options.
3363         (handle_pragma_pop_options): Compare them after pop.
3365 2020-06-09  Jakub Jelinek  <jakub@redhat.com>
3367         PR c/95580
3368         * c-pretty-print.c (c_pretty_printer::unary_expression): Handle the
3369         case when MEM_REF's first argument has type pointer to incomplete type.
3371 2020-06-05  Jason Merrill  <jason@redhat.com>
3373         * c-pretty-print.c (pp_c_additive_expression): Handle negative
3374         operand to POINTER_PLUS_EXPR.
3376 2020-06-04  Martin Sebor  <msebor@redhat.com>
3378         PR middle-end/10138
3379         PR middle-end/95136
3380         * c-attribs.c (append_access_attrs): Handle attr_access::none.
3381         (handle_access_attribute): Same.
3383 2020-06-03  Mark Wielaard  <mark@klomp.org>
3385         * known-headers.cc (get_cp_stdlib_header_for_string_macro_name):
3386         New function.
3387         * known-headers.h (get_cp_stdlib_header_for_string_macro_name):
3388         New function declaration.
3390 2020-06-03  Mark Wielaard  <mark@klomp.org>
3392         * known-headers.cc (get_string_macro_hint): New function.
3393         (get_stdlib_header_for_name): Use get_string_macro_hint.
3394         (get_c_stdlib_header_for_string_macro_name): New function.
3395         * known-headers.h (get_c_stdlib_header_for_string_macro_name):
3396         New function declaration.
3398 2020-06-03  Tobias Burnus  <tobias@codesourcery.com>
3400         * c-common.h (c_omp_predetermined_mapping): Declare.
3401         * c-omp.c (c_omp_predetermined_mapping): New.
3403 2020-05-22  Mark Wielaard  <mark@klomp.org>
3405         * known-headers.cc (get_stdlib_header_for_name): Add a new
3406         stdlib_hint array for stdbool and stdint.
3408 2020-05-22  Mark Wielaard  <mark@klomp.org>
3410         * known-headers.cc (get_stdlib_header_for_name): Return
3411         "<stdbool.h>" for "bool", "true" or "false" when STDLIB_C and
3412         flag_isoc99.
3414 2020-05-20  Nathan Sidwell  <nathan@acm.org>
3416         * c-common.c (try_to_locate_new_include_insertion_point): Revert change.
3418         * c-common.c (try_to_locate_new_include_insertion_point): Use
3419         strcmp to compare filenames.
3420         * c-lex.c (init_c_lex): Move declaration to initialization.
3421         * c-opts.c (handle_deferred_opts): Move cpp_get_deps call into
3422         deferred count loop.
3424 2020-05-15  Jason Merrill  <jason@redhat.com>
3426         * c-opts.c (set_std_cxx20): Set flag_coroutines.
3428 2020-05-13  Jason Merrill  <jason@redhat.com>
3430         * c.opt (std=c++20): Make c++2a the alias.
3431         (std=gnu++20): Likewise.
3432         * c-common.h (cxx_dialect): Change cxx2a to cxx20.
3433         * c-opts.c: Adjust.
3434         * c-cppbuiltin.c: Adjust.
3435         * c-ubsan.c: Adjust.
3436         * c-warn.c: Adjust.
3438 2020-05-12  Eric Botcazou  <ebotcazou@adacore.com>
3440         * c-ada-spec.c (dump_ads): Output pragma Warnings ("U"); on entry.
3442 2020-05-08  Nathan Sidwell  <nathan@acm.org>
3444         Reimplement directives only processing.
3445         * c-ppoutput.c (token_streamer): Ne.
3446         (directives_only_cb): New.  Swallow ...
3447         (print_lines_directives_only): ... this.
3448         (scan_translation_unit_directives_only): Reimplment using the
3449         published interface.
3451 2020-05-07  Marek Polacek  <polacek@redhat.com>
3453         * c-format.c (badwords): Add "nonstatic".
3455 202-05-07  Jakub Jelinek  <jakub@redhat.com>
3457         PR c/94968
3458         * c-common.c (speculation_safe_value_resolve_params): Return false if
3459         error_operand_p (val2).
3460         (resolve_overloaded_builtin) <case BUILT_IN_SPECULATION_SAFE_VALUE_N>:
3461         Remove extraneous semicolon.
3463 2020-05-06  qing zhao  <qing.zhao@oracle.com>
3465         PR c/94230
3466         * c-indentation.c (get_visual_column): Add a hint to use the new
3467         -flarge-source-files option.
3469 2020-05-05  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
3471         * c-attribs.c (handle_vector_size_attribute): Add attribute
3472         nonnull for argument args in order to silence warning of
3473         uninitialized variable usage.  Since this is local to the
3474         compilation unit and thus cannot be checked at call sides by the
3475         compiler, added an assert statement in order to verify this.
3477 2020-05-01  H.J. Lu  <hongjiu.lu@intel.com>
3479         PR target/93492
3480         * c-attribs.c (handle_patchable_function_entry_attribute): Limit
3481         value to USHRT_MAX (65535).
3483 2020-04-29  Jakub Jelinek  <jakub@redhat.com>
3485         * c-format.c (PP_FORMAT_CHAR_TABLE): Add %{ and %}.
3487 2020-04-27  Jakub Jelinek  <jakub@redhat.com>
3489         PR c/94755
3490         * c-common.c (resolve_overloaded_builtin): Return error_mark_node for
3491         fncode == BUILT_IN_NONE before initialization of first_param.
3493 2020-04-23  Marek Polacek  <polacek@redhat.com>
3495         PR c++/94733
3496         * c-attribs.c (find_tm_attribute): Use get_attribute_name instead of
3497         TREE_PURPOSE.
3499 2020-04-14  Patrick Palka  <ppalka@redhat.com>
3501         PR c++/85278
3502         * c-pretty-print.c (pp_c_pointer) <case REFERENCE_TYPE>: Print a double
3503         ampersand if it's an rvalue reference type.
3505 2020-04-13  Martin Sebor  <msebor@redhat.com>
3507         PR c/92326
3508         * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator): Avoid
3509         printing array bound for flexible array members.
3511 2020-04-13  Iain Sandoe  <iain@sandoe.co.uk>
3513         * c-cppbuiltin.c (c_cpp_builtins): Update coroutines builtin
3514         define, per n4861.
3516 2020-04-02  Richard Biener  <rguenther@suse.de>
3518         PR c/94392
3519         * c-opts.c (c_common_post_options): Enable -ffinite-loops
3520         for -O2 and C++11 or newer.
3522 2020-03-28  Patrick Palka  <ppalka@redhat.com>
3524         * c.opt: Add -fconcepts-diagnostics-depth.
3526 2020-03-27  Martin Sebor  <msebor@redhat.com>
3528         PR c++/94346
3529         * c-attribs.c (handle_copy_attribute): Avoid passing expressions
3530         to decl_attributes.  Make handling of different kinds of entities
3531         more robust.
3533 2020-03-27  Martin Sebor  <msebor@redhat.com>
3535         PR c++/94098
3536         * c-attribs.c (handle_access_attribute): Avoid setting TYPE_ATTRIBUTES
3537         here.
3539 2020-03-23  Jakub Jelinek  <jakub@redhat.com>
3541         PR c++/91993
3542         * c-warn.c (warnings_for_convert_and_check): For expr and/or
3543         result being COMPOUND_EXPRs, skip to ultimate rhs.
3545 2020-03-20  Richard Sandiford  <richard.sandiford@arm.com>
3547         PR middle-end/94072
3548         * c-common.c (c_common_type_for_mode): Before using a registered
3549         built-in type, check that the vectorness of the type matches
3550         the vectorness of the mode.
3552 2020-03-17  Jakub Jelinek  <jakub@redhat.com>
3554         * c-common.c (resolve_overloaded_builtin): Fix up duplicated word
3555         issue in a diagnostic message.
3557 2020-03-15  Lewis Hyatt  <lhyatt@gmail.com>
3559         * c.opt: Avoid redundancy in the help text.
3561 2020-03-02  Marek Polacek  <polacek@redhat.com>
3563         PR c++/93958 - add missing -std=gnu++20.
3564         * c.opt: Add -std=gnu++20.
3566 2020-03-01  Martin Sebor  <msebor@redhat.com>
3568         PR c++/92721
3569         * c-attribs.c (append_access_attrs): Correctly handle attribute.
3570         (handle_access_attribute): Same.
3572 2020-02-25  Jakub Jelinek  <jakub@redhat.com>
3574         PR c/93858
3575         * c-pragma.c (handle_pragma_diagnostic): Add missing ? after
3576         "did you mean" hint in diagnostics.
3578 2020-02-15  Jason Merrill  <jason@redhat.com>
3580         * c.opt: Add -std=c++20.
3582 2020-02-14  Eric Botcazou  <ebotcazou@adacore.com>
3584         * c-ada-spec.c: Include bitmap.h.
3585         (dump_ada_double_name): Rename into...
3586         (dump_anonymous_type_name): ...this.  Always use the TYPE_UID.
3587         (dump_ada_array_type): Adjust to above renaming.  Robustify.
3588         (dump_nested_types_1): New function copied from...  Add dumped_types
3589         parameter and pass it down to dump_nested_type.
3590         (dump_nested_types): ...this.  Remove parent parameter.  Just call
3591         dump_nested_types_1 on an automatic bitmap.
3592         (dump_nested_type): Add dumped_types parameter.
3593         <ARRAY_TYPE>: Do not dump it if already present in dumped_types.
3594         Adjust recursive calls and adjust to above renaming.
3595         (dump_ada_declaration): Adjust call to dump_nested_types.
3596         Tidy up and adjust to above renaming.
3597         (dump_ada_specs): Initialize and release bitmap obstack.
3599 2020-02-10  Martin Sebor  <msebor@redhat.com>
3601         PR c/93640
3602         * c-attribs.c (handle_access_attribute): Correct off-by-one mistakes.
3604 2020-02-10  Jakub Jelinek  <jakub@redhat.com>
3606         PR other/93641
3607         * c-format.c (check_plain): Fix up last argument of strncasecmp.
3608         Remove useless extra test.
3610 2020-02-03  Julian Brown  <julian@codesourcery.com>
3611             Tobias Burnus  <tobias@codesourcery.com>
3613         * c-cppbuiltin.c (c_cpp_builtins): Update _OPENACC define to 201711.
3615 2020-01-29  Jason Merrill  <jason@redhat.com>
3617         PR c++/89357
3618         * c-attribs.c (check_cxx_fundamental_alignment_constraints): Remove.
3620 2020-01-23  Jason Merrill  <jason@redhat.com>
3622         * c-warn.c (conversion_warning): Change -Wsign-conversion handling.
3624 2020-01-23  Martin Sebor  <msebor@redhat.com>
3626         PR c/84919
3627         * c-common.c (check_function_arguments): Avoid overlap checking
3628         of sprintf functions.
3630 2020-01-22  Jason Merrill  <jason@redhat.com>
3632         PR testsuite/93391 - PR 40752 test fails with unsigned plain char.
3633         PR c++/40752
3634         * c-warn.c (conversion_warning): Check operands only after checking
3635         the whole expression.  Don't check second operand of + for sign.
3637 2020-01-21  Jason Merrill  <jason@redhat.com>
3638             Manuel López-Ibáñez  <manu@gcc.gnu.org>
3640         PR c++/40752 - useless -Wconversion with short +=.
3641         * c.opt (-Warith-conversion): New.
3642         * c-warn.c (conversion_warning): Recurse for operands of
3643         operators.  Only warn about the whole expression with
3644         -Warith-conversion.
3646 2020-01-21  Jason Merrill  <jason@redhat.com>
3648         * c-common.c (unsafe_conversion_p): Don't warn, return UNSAFE_SIGN.
3649         * c-warn.c (conversion_warning): Warn about UNSAFE_SIGN.
3651 2020-01-20  Nathan Sidwell  <nathan@acm.org>
3653         PR preprocessor/80005
3654         * c-cppbuiltins.c (c_cpp_builtins): Don't define __has_include{,_next}.
3656 2020-01-18  Iain Sandoe  <iain@sandoe.co.uk>
3658         * c-common.c (co_await, co_yield, co_return): New.
3659         * c-common.h (RID_CO_AWAIT, RID_CO_YIELD,
3660         RID_CO_RETURN): New enumeration values.
3661         (D_CXX_COROUTINES): Bit to identify coroutines are active.
3662         (D_CXX_COROUTINES_FLAGS): Guard for coroutine keywords.
3663         * c-cppbuiltin.c (__cpp_coroutines): New cpp define.
3664         * c.opt (fcoroutines): New command-line switch.
3666 2020-01-10  David Malcolm  <dmalcolm@redhat.com>
3668         * c-format.c (local_event_ptr_node): New.
3669         (PP_FORMAT_CHAR_TABLE): Add entry for "%@".
3670         (init_dynamic_diag_info): Initialize local_event_ptr_node.
3671         * c-format.h (T_EVENT_PTR): New define.
3673 2020-01-10  Martin Sebor  <msebor@redhat.com>
3675         PR c/93132
3676         * c-attribs.c (append_access_attrs): Validate against the translated
3677         access string rather than the human-readable representation.
3679 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
3681         Update copyright years.
3683 2019-12-20  Eric Botcazou  <ebotcazou@adacore.com>
3685         * c-ada-spec.h (decl_sloc): Delete.
3686         * c-ada-spec.c (decl_sloc): Make static.
3688 2019-12-19  Julian Brown  <julian@codesourcery.com>
3690         * c-common.h (c_omp_map_clause_name): Add prototype.
3691         * c-omp.c (c_omp_map_clause_name): New function.
3692         * c-pragma.h (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ATTACH and
3693         PRAGMA_OACC_CLAUSE_DETACH.
3695 2019-12-19  Julian Brown  <julian@codesourcery.com>
3696             Maciej W. Rozycki  <macro@codesourcery.com>
3697             Tobias Burnus  <tobias@codesourcery.com>
3698             Thomas Schwinge  <thomas@codesourcery.com>
3700         * c-pragma.h (pragma_omp_clause): Add
3701         PRAGMA_OACC_CLAUSE_NO_CREATE.
3703 2019-12-17  Martin Sebor  <msebor@redhat.com>
3705         PR c++/61339
3706         * c.opt (-Wmismatched-tags, -Wredundant-tags): New options.
3708 2019-12-11  David Malcolm  <dmalcolm@redhat.com>
3710         * c-pretty-print.c (c_pretty_printer::clone): New vfunc
3711         implementation.
3712         * c-pretty-print.h (c_pretty_printer::clone): New vfunc decl.
3714 2019-12-09  David Malcolm  <dmalcolm@redhat.com>
3716         * c-format.c (range_label_for_format_type_mismatch::get_text):
3717         Replace label_text ctor called with true with label_text::take.
3719 2019-12-09  David Malcolm  <dmalcolm@redhat.com>
3721         * c-format.c (selftest::test_type_mismatch_range_labels): Remove
3722         initial newline from expected outputs.
3723         * c-opts.c (c_diagnostic_finalizer): Add pp_newline call before
3724         call to diagnostic_show_locus.
3726 2019-12-06  Jakub Jelinek  <jakub@redhat.com>
3728         * c-cppbuiltin.c (c_cpp_builtins): Don't define __cpp_consteval for
3729         now.
3731 2019-12-05  Marek Polacek  <polacek@redhat.com>
3732             Jakub Jelinek  <jakub@redhat.com>
3734         PR c++/91353 - P1331R2: Allow trivial default init in constexpr contexts.
3735         * c-cppbuiltin.c (c_cpp_builtins): Adjust the value of __cpp_constexpr.
3737 2019-12-05  Marek Polacek  <polacek@redhat.com>
3739         PR c++/92271 - make __is_same alias for __is_same_as.
3740         * c-common.c: Add __is_same, an alias for __is_same_as.
3742 2019-12-03  Marek Polacek  <polacek@redhat.com>
3744         PR c++/91363 - P0960R3: Parenthesized initialization of aggregates.
3745         * c-cppbuiltin.c (c_cpp_builtins): Predefine
3746         __cpp_aggregate_paren_init=201902 for -std=c++2a.
3748 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
3750         * c-attribs.c (handle_symver_attribute): New function
3751         (c_common_attributes): Add symver.
3753 2019-11-30  Richard Sandiford  <richard.sandiford@arm.com>
3755         * c-common.c (pointer_int_sum): Use verify_type_context to check
3756         whether the target allows pointer arithmetic for the types involved.
3757         (c_sizeof_or_alignof_type, c_alignof_expr): Use verify_type_context
3758         to check whether the target allows sizeof and alignof operations
3759         for the types involved.
3761 2019-11-27  Jason Merrill  <jason@redhat.com>
3763         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
3765 2019-11-26  Jakub Jelinek  <jakub@redhat.com>
3767         PR c++/61414
3768         * c-attribs.c (handle_mode_attribute): Add mode attribute to
3769         ENUMERAL_TYPEs.
3771 2019-11-25  Joseph Myers  <joseph@codesourcery.com>
3773         PR c/91985
3774         * c-common.c (c_common_type_for_mode): Handle decimal
3775         floating-point types being NULL_TREE.
3776         * c-format.c (get_format_for_type_1): Handle specified types being
3777         NULL_TREE.
3778         * c-lex.c (interpret_float): Give an error for decimal
3779         floating-point constants when decimal floating-point not
3780         supported.
3782 2019-11-23  Jakub Jelinek  <jakub@redhat.com>
3784         PR middle-end/83859
3785         * c-attribs.c (append_access_attrs): Avoid buffer overflow.  Avoid
3786         memory leak.  Use XNEWVEC macro.  Use auto_diagnostic_group to
3787         group warning with inform together.
3788         (handle_access_attribute): Formatting fix.
3790 2019-11-22  Jakub Jelinek  <jakub@redhat.com>
3792         PR c/90677
3793         * c-common.h (identifier_global_tag): Declare.
3794         * c-format.c (get_pointer_to_named_type): Renamed to ...
3795         (get_named_type): ... this.  Use identifier_global_tag instead of
3796         identifier_global_value, handle the return value being a TYPE_P.
3797         (init_dynamic_diag_info): Adjust get_pointer_to_named_type callers
3798         to call get_named_type instead.  Formatting fixes.
3800         Implement P1902R1, Missing feature-test macros 2017-2019.
3801         * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_init_captures
3802         and __cpp_generic_lambdas for -std=c++2a.  Define
3803         __cpp_designated_initializers, __cpp_constexpr_in_decltype and
3804         __cpp_consteval for -std=c++2a.  Remove a FIXME comment about
3805         __cpp_concepts for -std=c++2a.
3807 2019-11-22  Martin Sebor  <msebor@redhat.com>
3809         PR middle-end/83859
3810         * c-attribs.c (handle_access_attribute): New function.
3811         (c_common_attribute_table): Add new attribute.
3812         (get_argument_type): New function.
3813         (append_access_attrs): New function.
3814         (get_nonnull_operand): Rename...
3815         (get_attribute_operand): ...to this.
3816         * c-common.c (get_nonnull_operand): Rename...
3817         (get_attribute_operand): ...to this.
3819 2019-11-21  Joseph Myers  <joseph@codesourcery.com>
3821         * c-attribs.c (handle_fallthrough_attribute): Use pedwarn instead
3822         of warning.
3824 2019-11-19  Joseph Myers  <joseph@codesourcery.com>
3826         * c-common.c (attribute_fallthrough_p): In C, use pedwarn not
3827         warning for standard attributes mixed with fallthrough attributes.
3829 2019-11-15  Joseph Myers  <joseph@codesourcery.com>
3831         * c-attribs.c (handle_fallthrough_attribute): Remove static.
3832         * c-common.h (handle_fallthrough_attribute): Declare.
3834 2019-11-15  Joseph Myers  <joseph@codesourcery.com>
3836         * c-attribs.c (handle_deprecated_attribute): Remove static.
3837         * c-common.h (handle_deprecated_attribute): Declare.
3839 2019-11-14  Joseph Myers  <joseph@codesourcery.com>
3841         * c-lex.c (lex_charconst): Make CPP_UTF8CHAR constants unsigned
3842         char for C.
3844 2019-11-14  Jakub Jelinek  <jakub@redhat.com>
3846         * c-omp.c (c_omp_check_context_selector): Add nvidia to the list of
3847         valid vendors.
3849         * c-omp.c (c_omp_check_context_selector): Handle name lists
3850         containing string literals.  Don't diagnose atomic_default_mem_order
3851         with multiple props.
3853 2019-11-13  Joseph Myers  <joseph@codesourcery.com>
3855         * c-cppbuiltin.c (builtin_define_float_constants): Also define
3856         NORM_MAX constants.  Update call to get_max_float.
3857         (LAZY_HEX_FP_VALUES_CNT): Update value to include NORM_MAX
3858         constants.
3860 2019-11-13  Eric Botcazou  <ebotcazou@adacore.com>
3862         * c-ada-spec.c (get_underlying_decl): Do not look through typedefs.
3863         (dump_forward_type): Do not generate a declaration for function types.
3864         (dump_nested_type) <ARRAY_TYPE>: Do not generate a nested declaration
3865         of the component type if it is declared in another file.
3867 2019-11-12  Martin Liska  <mliska@suse.cz>
3869         * c-opts.c (c_common_post_options):
3870         Use SET_OPTION_IF_UNSET.
3872 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
3873             Frederik Harwath  <frederik@codesourcery.com>
3875         gcc/c-family/
3876         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_SERIAL enumeration
3877         constant.
3878         * c-pragma.c (oacc_pragmas): Add "serial" entry.
3880 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
3882         * c-common.h (gnu_vector_type_p): New function.
3883         * c-common.c (c_build_vec_perm_expr): Require __builtin_shuffle
3884         vectors to satisfy gnu_vector_type_p.
3885         (c_build_vec_convert): Likewise __builtin_convertvector.
3886         (convert_vector_to_array_for_subscript): Likewise when applying
3887         implicit vector to array conversion.
3888         (scalar_to_vector): Likewise when converting vector-scalar
3889         operations to vector-vector operations.
3891 2019-11-08  Joseph Myers  <joseph@codesourcery.com>
3893         * c.opt (Wold-style-definition): Initialize to -1.
3894         * c-opts.c (c_common_post_options): Set warn_old_style_definition
3895         to flag_isoc2x if not set explicitly.
3897 2019-11-07  Joseph Myers  <joseph@codesourcery.com>
3899         * c-attribs.c (parse_tm_stmt_attr): Handle scoped attributes.
3901 2019-11-05  Jason Merrill  <jason@redhat.com>
3903         * c-opts.c (c_common_post_options): -fconcepts-ts implies
3904         -fconcepts.
3906 2019-11-04  Kamlesh Kumar  <kamleshbhalui@gmail.com>
3908         * c-opts.c (c_common_post_options): Update
3909         latest_abi_version.
3911 2019-11-02  Jakub Jelinek  <jakub@redhat.com>
3913         * c-common.h (c_omp_get_context_selector): Remove.
3914         * c-omp.c (c_omp_get_context_selector): Moved to omp-general.c
3915         and renamed to omp_get_context_selector.
3917         * c-omp.c (c_omp_mark_declare_variant): Use
3918         omp_context_selector_set_compare.
3920         PR c++/88335 - Implement P1073R3: Immediate functions
3921         * c-common.h (enum rid): Add RID_CONSTEVAL.
3922         * c-common.c (c_common_reswords): Add consteval.
3924 2019-11-01  Martin Sebor  <msebor@redhat.com>
3926         PR middle-end/91679
3927         PR middle-end/91647
3928         PR middle-end/91463
3929         PR middle-end/92312
3930         * c-pretty-print.c (direct_abstract_declarator): Print
3931         bound in zero-length arrays.
3932         * c.opt (-Wzero-length-bounds): New option.
3934 2019-10-30  Nathan Sidwell  <nathan@acm.org>
3936         * c-cppbuiltin.c (c_cpp_builtins): Add 'L' suffix to feature
3937         macros.
3939 2019-10-28  Martin Sebor  <msebor@redhat.com>
3941         PR c/66970
3942         * c-common.c (c_common_nodes_and_builtins): Call c_define_builtins
3943         even when only preprocessing.
3944         * c-common.h (names_builtin_p): Declare new function.
3945         * c-lex.c (init_c_lex): Set has_builtin.
3946         (c_common_has_builtin): Define a new function.
3947         * c-ppoutput.c (init_pp_output): Set has_builtin.
3949 2019-10-24  Jakub Jelinek  <jakub@redhat.com>
3951         * c-common.h (c_omp_context_selector_matches): Remove.
3952         * c-omp.c (c_omp_context_selector_matches): Remove.
3953         * c-attribs.c (c_common_attribute_table): Add
3954         "omp declare target {host,nohost,block}" attributes.
3956 2019-10-17  JeanHeyd Meneide  <phdofthehouse@gmail.com>
3958         * c-lex.c (c_common_has_attribute): Update nodiscard value.
3960 2019-10-14  Richard Sandiford  <richard.sandiford@arm.com>
3962         * c-common.h (user_facing_original_type_p): Declare.
3963         * c-common.c: Include c-spellcheck.h.
3964         (user_facing_original_type_p): New function.
3966 2019-10-12  Jakub Jelinek  <jakub@redhat.com>
3968         * c-common.h (c_omp_mark_declare_variant,
3969         c_omp_context_selector_matches): Declare.
3970         * c-omp.c: Include attribs.h, gimplify.h, cgraph.h, symbol-summary.h
3971         and hsa-common.h.
3972         (c_omp_get_context_selector): Support second argument NULL.
3973         (c_omp_mark_declare_variant, c_omp_context_selector_matches): New
3974         functions.
3975         * c-attribs.c (c_common_attribute_table): Remove "omp declare variant"
3976         attribute, add "omp declare variant base" and
3977         "omp declare variant variant" attributes.
3979 2019-10-11  Joseph Myers  <joseph@codesourcery.com>
3981         * c.opt (Wc11-c2x-compat): Add CPP(cpp_warn_c11_c2x_compat)
3982         CppReason(CPP_W_C11_C2X_COMPAT).
3984 2019-10-11  Joseph Myers  <joseph@codesourcery.com>
3986         * c-common.c (c_common_reswords): Do not use D_EXT for _Decimal32,
3987         _Decimal64 and _Decimal128.
3989 2019-10-10  Joseph Myers  <joseph@codesourcery.com>
3991         * c-cppbuiltin.c (c_cpp_builtins): Do not define macros for DFP
3992         types if DFP not supported.
3994 2019-10-10  Jakub Jelinek  <jakub@redhat.com>
3996         * c-common.h (c_omp_check_context_selector,
3997         c_omp_get_context_selector): Declare.
3998         * c-omp.c (c_omp_declare_simd_clauses_to_numbers): Fix spelling
3999         in diagnostic message.
4000         (c_omp_check_context_selector, c_omp_get_context_selector): New
4001         functions.
4002         * c-attribs.c (c_common_attribute_table): Add "omp declare variant"
4003         attribute.
4004         (handle_omp_declare_variant_attribute): New function.
4006 2019-10-09  Martin Sebor  <msebor@redhat.com>
4008         PR tree-optimization/90879
4009         * c.opt (-Wstring-compare): New option.
4011 2019-10-08  Andrew Sutton  <asutton@lock3software.com>
4012             Jason Merrill  <jason@redhat.com>
4014         Update the concepts implementation to conform to the C++20
4015         specification, improve compile times, and generally clean up
4016         the implementation.
4018         * c-cppbuiltin.c (c_cpp_builtins): Use new feature test values for
4019         concepts when -std=c++2a. Bump __cpp_concepts to 201907.
4020         * c.opt: Add -Wconcepts-ts.
4021         * c-opts.c (c_common_post_options): Warn when -fconcepts is used
4022         with -std=c++2a. Disable warning for -fconcepts in C++20 mode.
4023         (set_std_cxx2a): Enable concepts by default.
4025 2019-10-08  Joseph Myers  <joseph@codesourcery.com>
4027         * c-opts.c (c_common_post_options): Set
4028         -fno-fp-int-builtin-inexact for C2X.
4030 2019-10-05  Jakub Jelinek  <jakub@redhat.com>
4032         PR c++/91369 - Implement P0784R7: constexpr new
4033         * c-cppbuiltin.c (c_cpp_builtins): Predefine
4034         __cpp_constexpr_dynamic_alloc=201907 for -std=c++2a.
4036 2019-10-04  Joseph Myers  <joseph@codesourcery.com>
4038         PR c/82752
4039         * c-format.c (C_STD_VER): Handle C2x.
4040         (C_STD_NAME): Likewise.
4041         (strftime_flag_specs): Add 'O' modifier with 'p' flag.
4042         (time_char_table): Use separate entry for 'B' and 'b', with 'O'
4043         modifier allowed and 'p' flag.
4044         * c-format.h (enum format_std_version): Add STD_C2X.
4045         (struct format_char_info): Mention 'p' in comment on flags2.
4047 2019-10-01  David Malcolm  <dmalcolm@redhat.com>
4049         * c-opts.c (c_diagnostic_finalizer): Temporarily clear prefix when
4050         calling diagnostic_show_locus, rather than destroying it afterwards.
4052 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
4054         PR c++/91925
4055         * c-warn.c (check_alignment_of_packed_member): Ignore FIELD_DECLs
4056         with NULL DECL_FIELD_OFFSET.
4058 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
4060         * c-pretty-print.c (pp_c_specifier_qualifier_list): If a vector type
4061         has a type name, use it in preference to the __vector syntax.
4063 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
4065         * c-pretty-print.c (pp_c_parameter_type_list): Avoid printing
4066         two spaces between a comma and "...".
4068 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
4070         PR c++/88203
4071         * c-common.h (c_omp_predefined_variable): Declare.
4072         * c-omp.c (c_omp_predefined_variable): New function.
4073         (c_omp_predetermined_sharing): Return OMP_CLAUSE_DEFAULT_SHARED
4074         for predefined variables.
4076 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
4078         * c-common.h (build_function_call_vec): Take the original
4079         function decl as an optional final parameter.
4080         (check_builtin_function_arguments): Take the original function decl.
4081         * c-common.c (check_builtin_function_arguments): Likewise.
4082         Handle all built-in functions, not just BUILT_IN_NORMAL ones.
4083         Use targetm.check_builtin_call to check BUILT_IN_MD functions.
4085 2019-09-15  Jason Merrill  <jason@redhat.com>
4087         * c-warn.c (warn_logical_operator): Strip location wrappers.  Don't
4088         fold_for_warn in "|| mask" warning.
4090 2019-09-10  Martin Liska  <mliska@suse.cz>
4092         * c.opt: Use newly added WarnRemoved.
4094 2019-09-09  Martin Liska  <mliska@suse.cz>
4096         * c.opt: Update comment of removed
4097         options that are preserved only for backward
4098         compatibility.
4100 2019-09-06  Martin Liska  <mliska@suse.cz>
4102         PR c++/91125
4103         * c-common.c: Remove definition of flag_use_repository.
4104         * c-common.h: Likewise.
4105         * c-opts.c (c_common_handle_option):
4106         Do not handle OPT_frepo option.
4107         * c.opt: Mark the option with Deprecated.
4109 2019-09-04  Marek Polacek  <polacek@redhat.com>
4111         * c.opt (fdeduce-init-list): Ignored.
4113 2019-09-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4115         PR c/78736
4116         * c.opt (Wenum-conversion): New option.
4118 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
4120         * c-attribs.c (handle_section_attribute): Call the
4121         handle_generic_attribute target hook after performing target
4122         independent processing.
4123         (handle_noinit_attribute): Likewise.
4125 2019-09-03  Ian Lance Taylor  <iant@golang.org>
4127         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Always expand
4128         when using -fgo-dump-spec.
4130 2019-09-02  Martin Liska  <mliska@suse.cz>
4132         PR c++/91155
4133         * c-common.c (fname_as_string): Use cxx_printable_name for
4134         __PRETTY_FUNCTION__ same as was used before r265711.
4136 2019-08-28  Marek Polacek  <polacek@redhat.com>
4138         Implement P1152R4: Deprecating some uses of volatile.
4139         PR c++/91361
4140         * c-opts.c (c_common_post_options): Enable -Wvolatile by
4141         default for C++2a, unless -Wno-deprecated.
4142         * c.opt (Wvolatile): New warning.
4144 2019-08-28  Marek Polacek  <polacek@redhat.com>
4146         PR c++/91360 - Implement C++20 P1143R2: constinit.
4147         * c-common.c (c_common_reswords): Add constinit and __constinit.
4148         (keyword_is_decl_specifier): Handle RID_CONSTINIT.
4149         * c-common.h (enum rid): Add RID_CONSTINIT, RID_FIRST_CXX20, and
4150         RID_LAST_CXX20.
4151         (D_CXX20): Define.
4152         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_constinit.
4153         * c-format.c (cxx_keywords): Add "constinit".
4154         * c.opt (Wc++2a-compat, Wc++20-compat): New options.
4156 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
4158         PR c++/91415
4159         * c-common.c (verify_tree): For LSHIFT_EXPR, RSHIFT_EXPR,
4160         COMPONENT_REF and ARRAY_REF in cxx_dialect >= cxx17 mode handle it
4161         like COMPOUND_EXPR rather than normal expression.
4163 2019-08-23  Iain Sandoe  <iain@sandoe.co.uk>
4165         PR pch/61250
4166         * c-lex.c (c_lex_with_flags):  Don't call
4167         c_common_no_more_pch () from here.
4169 2019-08-23  Jakub Jelinek  <jakub@redhat.com>
4171         PR middle-end/91283
4172         * c-common.c (c_ts18661_flt_eval_method): Use flag_excess_precision
4173         instead of flag_excess_precision_cmdline.
4174         * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): Likewise.
4175         * c-opts.c (c_common_post_options): Likewise.
4177 2019-08-22  Martin Sebor  <msebor@redhat.com>
4179         PR middle-end/91490
4180         * c-common.c (braced_list_to_string): Add argument and overload.
4181         Handle flexible length arrays and unions.
4183 2019-08-21  Eric Botcazou  <ebotcazou@adacore.com>
4185         * c-ada-spec.c (dump_ada_function_declaration): Be prepared for broken
4186         function declarations where arguments are missing.  Rename variables.
4188 2019-08-15  Richard Biener  <rguenther@suse.de>
4190         * c-common.c (c_stddef_cpp_builtins): When the GIMPLE FE is
4191         enabled, define __SIZETYPE__.
4193 2019-08-14  Christophe Lyon  <christophe.lyon@linaro.org>
4195         * c-attribs.c (c_common_attribute_table): Add "noinit" entry. Add
4196         exclusion with "section" attribute.
4197         (attr_noinit_exclusions): New table.
4198         (handle_noinit_attribute): New function.
4200 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
4202         PR middle-end/91421
4203         * c-common.c (resolve_overloaded_builtin): Use
4204         copy_decl_built_in_function.
4206 2019-08-13  Martin Sebor  <msebor@redhat.com>
4208         PR c/80619
4209         * c-format.c (printf_length_specs): Set FMT_LEN_w for "w".
4210         (asm_fprintf_length_spec): Same.
4211         * c-format.h (format_lengths): Add FMT_LEN_w.
4213 2019-08-10  Jakub Jelinek  <jakub@redhat.com>
4215         * c-pragma.h (enum pragma_omp_clause): Add
4216         PRAGMA_OMP_CLAUSE_DEVICE_TYPE.
4218 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
4220         * c-pragma.h (enum pragma_omp_clause): Add
4221         PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR.  Set PRAGMA_OACC_CLAUSE_USE_DEVICE
4222         equal to PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR instead of being a separate
4223         enumeration value.
4225 2019-08-05  Marek Polacek  <polacek@redhat.com>
4227         PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
4228         * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by
4229         default for C++2a, unless -Wno-deprecated.
4230         * c.opt (Wcomma-subscript): New warning.
4232 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
4234         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_LOOP.
4235         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_BIND.
4236         * c-pragma.c (omp_pragmas_simd): Add PRAGMA_OMP_LOOP entry.
4237         * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_LOOP.
4238         * c-omp.c (c_omp_split_clauses): Add support for 4 new combined
4239         constructs with the loop construct.
4241 2019-07-13  Jakub Jelinek  <jakub@redhat.com>
4243         PR c/91149
4244         * c-omp.c (c_omp_split_clauses): Fix a pasto in
4245         OMP_CLAUSE_REDUCTION_TASK handling.
4247 2019-07-12  Jakub Jelinek  <jakub@redhat.com>
4249         * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ORDER.
4250         * c-omp.c (c_omp_split_clauses): Handle splitting of OMP_CLAUSE_ORDER.
4252 2019-07-09  Martin Sebor  <msebor@redhat.com>
4254         PR c++/61339
4255         * c-opts.c (handle_deferred_opts): Change class-key of PODs to struct
4256         and others to class.
4257         * c-pretty-print.h: Same.
4259 2019-07-09  Martin Sebor  <msebor@redhat.com>
4261         PR c++/61339
4262         * c-format.c (check_argument_type): Change class-key from class to
4263         struct and vice versa to match convention and avoid -Wclass-is-pod
4264         and -Wstruct-no-pod.
4265         * c-pretty-print.h: Same.
4267 2019-07-03  Martin Liska  <mliska@suse.cz>
4269         * c-common.c (try_to_locate_new_include_insertion_point): Remove
4270         dead assignemts.
4272 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
4274         * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_REDUCTION_INSCAN
4275         clauses on OMP_FOR rather than OMP_PARALLEL when OMP_FOR is combined
4276         with OMP_PARALLEL.
4278 2019-07-02  qing zhao  <qing.zhao@oracle.com>
4280         PR preprocessor/90581
4281         * c-opts.c (c_common_handle_option): Handle -fmax-include-depth.
4282         * c.opt: Add new option -fmax-include-depth.
4284 2019-06-26  Jason Merrill  <jason@redhat.com>
4286         PR c++/55442 - memory-hog with highly recursive constexpr.
4287         * c.opt (fconstexpr-loop-limit): New.
4289 2019-06-25  Jakub Jelinek  <jakub@redhat.com>
4291         PR sanitizer/90954
4292         * c-omp.c (c_finish_omp_atomic): Allow tree_invariant_p in addition
4293         to SAVE_EXPR in first operand of a COMPOUND_EXPR.
4295 2019-06-25  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
4297         * c-common.c (c_common_nodes_and_builtins): Define
4298         alternate "__intN__" name for "__intN" types.
4300 2019-06-24  Jan Hubicka  <jh@suse.cz>
4302         * c-common.c (braced_lists_to_strings): Check that
4303         type is array or integer prior checking string flag.
4305 2019-06-21  Matthew Beliveau  <mbelivea@redhat.com>
4307         PR c++/90875 - added -Wswitch-outside-range option
4308         * c.opt (Wswitch-outside-range): Added new option.
4309         * c-warn.c (c_do_switch_warnings): Use OPT_Wswitch-outside-range.
4311 2019-06-21  Marek Polacek  <polacek@redhat.com>
4313         PR c++/90953 - ICE with -Wmissing-format-attribute.
4314         * c-common.c (check_function_arguments_recurse): Use
4315         get_attribute_name.
4316         (check_missing_format_attribute): Likewise.
4318 2019-06-19  Marek Polacek  <polacek@redhat.com>
4320         PR c++/60364 - noreturn after first decl not diagnosed.
4321         * c-attribs.c (handle_noreturn_attribute): No longer static.
4322         * c-common.h (handle_noreturn_attribute, attr_noreturn_exclusions):
4323         Declare.
4324         * c-format.c (check_function_format): Use get_attribute_name.
4326 2019-06-19  Martin Sebor  <msebor@redhat.com>
4328         PR translation/90156
4329         * c-format.c (function_format_info::format_type): Adjust type.
4330         (function_format_info::is_raw): New member.
4331         (decode_format_type): Adjust signature.  Handle "raw" diag attributes.
4332         (decode_format_attr): Adjust call to decode_format_type.
4333         Avoid a redundant call to convert_format_name_to_system_name.
4334         Avoid abbreviating the word "arguments" in a diagnostic.
4335         (format_warning_substr): New function.
4336         (avoid_dollar_number): Quote dollar sign in a diagnostic.
4337         (finish_dollar_format_checking): Same.
4338         (check_format_info): Same.
4339         (struct baltoks_t): New.
4340         (c_opers, c_keywords, cxx_keywords, badwords, contrs): New arrays.
4341         (maybe_diag_unbalanced_tokens, check_tokens, check_plain): New
4342         functions.
4343         (check_format_info_main): Call check_plain.  Use baltoks_t.  Call
4344         maybe_diag_unbalanced_tokens.
4345         (handle_format_attribute): Spell out the word "arguments" in
4346         a diagnostic.
4348 2019-06-11  Matthew Beliveau  <mbelivea@redhat.com>
4350         PR c++/90449 - add -Winaccessible-base option.
4351         * c.opt (Winaccessible-base): New option.
4353 2019-06-10  Jakub Jelinek  <jakub@redhat.com>
4355         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCAN.
4356         * c-pragma.c (omp_pragmas_simd): Add #pragma omp scan.
4357         * c-omp.c (c_omp_split_clauses): Diagnose inscan reductions on
4358         combined/composite constructs where it is not allowed.  Copy over
4359         OMP_CLAUSE_REDUCTION_INSCAN.
4361 2019-06-05  Martin Sebor  <msebor@redhat.com>
4363         * c-attribs.c (handle_mode_attribute): Adjust quoting and hyphenation.
4364         (handle_alias_ifunc_attribute): Same.
4365         (handle_copy_attribute): Same.
4366         (handle_weakref_attribute): Same.
4367         (handle_nonnull_attribute): Same.
4368         * c-warn.c (warn_for_sign_compare): Same.
4369         (warn_for_restrict): Same.
4370         * c.opt: Same.
4372 2019-06-05  Martin Sebor  <msebor@redhat.com>
4374         * c-pragma.c (handle_pragma_weak): Adjust quoting in a diagnostic.
4375         * c.opt (-Wformat-diag): Remove a spurious period.
4377 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
4379         PR c/90628
4380         * c-common.c (check_builtin_function_arguments)
4381         <case BUILTIN_*_OVERFLOW>: Diagnose pointer to const qualified integer
4382         as last argument.
4384 2019-05-23  Eric Botcazou  <ebotcazou@adacore.com>
4386         * c-ada-spec.c (compare_node): Compare the DECL_UIDs as a last resort.
4388 2019-05-22  Martin Liska  <mliska@suse.cz>
4390         PR lto/90500
4391         * c-attribs.c (handle_copy_attribute): Do not copy
4392         target_clones attribute.
4394 2019-05-21  Eric Botcazou  <ebotcazou@adacore.com>
4396         * c-ada-spec.h (enum cpp_operation): Add IS_ASSIGNMENT_OPERATOR.
4397         * c-ada-spec.c (print_assignment_operator): New function.
4398         (dump_ada_declaration) <FUNCTION_DECL>: Call it do dump explicit copy
4399         assignment operators declared as methods and filter out the others.
4401 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
4403         PR c/89433
4404         * c-attribs.c (c_common_attribute_table): Set min_len to -1 for
4405         "omp declare target".
4407 2019-05-16  Martin Sebor  <msebor@redhat.com>
4409         * c-attribs.c (handle_no_sanitize_attribute): Quote identifiers,
4410         keywords, operators, and types in diagnostics.
4411         (handle_scalar_storage_order_attribute): Same.
4412         (handle_mode_attribute): Same.
4413         (handle_visibility_attribute): Same.
4414         (handle_assume_aligned_attribute): Same.
4415         (handle_no_split_stack_attribute): Same.
4416         * c-common.c (shorten_compare): Same.
4417         (c_common_truthvalue_conversion): Same.
4418         (cb_get_source_date_epoch): Same.
4419         * c-lex.c (cb_def_pragma): Quote keywords, operators, and types
4420         in diagnostics.
4421         (interpret_float): Same.
4422         * c-omp.c (c_finish_omp_for): Same.
4423         * c-opts.c (c_common_post_options): Same.
4424         * c-pch.c (c_common_pch_pragma): Same.
4425         * c-pragma.c (pop_alignment): Same.
4426         (handle_pragma_pack): Same.
4427         (apply_pragma_weak): Same.
4428         (handle_pragma_weak): Same.
4429         (handle_pragma_scalar_storage_order): Same.
4430         (handle_pragma_redefine_extname): Same.
4431         (add_to_renaming_pragma_list): Same.
4432         (maybe_apply_renaming_pragma): Same.
4433         (push_visibility): Same.
4434         (handle_pragma_visibility): Same.
4435         (handle_pragma_optimize): Same.
4436         (handle_pragma_message): Same.
4437         * c-warn.c (warn_for_omitted_condop): Same.
4438         (lvalue_error): Same.
4440 2019-05-15  Richard Biener  <rguenther@suse.de>
4442         PR c/90474
4443         * c-common.c (c_common_mark_addressable_vec): Also mark
4444         a COMPOUND_LITERAL_EXPR_DECL addressable similar to
4445         c_mark_addressable.
4447 2019-05-06  Nathan Sidwell  <nathan@acm.org>
4449         * c-opts.c (handle_defered_opts): Rename struct deps to struc mkdeps.
4451 2019-04-30  Nathan Sidwell  <nathan@acm.org>
4453         * c-common.c (c_common_init_ts): Use MARK_TS_EXP.  Mark SIZEOF_EXPR.
4455 2019-04-30  Martin Liska  <mliska@suse.cz>
4457         * c-pragma.c (handle_pragma_diagnostic): Provide hints
4458         for unknown options.
4460 2019-04-26  Richard Sandiford  <richard.sandiford@arm.com>
4462         * c-warn.c (strict_aliasing_warning): Apply COMPLETE_TYPE_P to
4463         the pointer target rather than the pointer itself.
4465 2019-04-19  Jakub Jelinek  <jakub@redhat.com>
4467         PR c/89888
4468         * c-common.h (c_add_case_label): Remove orig_type and outside_range_p
4469         arguments.
4470         (c_do_switch_warnings): Remove outside_range_p argument.
4471         * c-common.c (check_case_bounds): Removed.
4472         (c_add_case_label): Remove orig_type and outside_range_p arguments.
4473         Don't call check_case_bounds.  Fold low_value as well as high_value.
4474         * c-warn.c (c_do_switch_warnings): Remove outside_range_p argument.
4475         Check for case labels outside of range of original type here and
4476         adjust them.
4478 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
4480         PR translation/90041
4481         * c.opt (-fhandle-exceptions): Use %< and %> around option names
4482         in the Warn diagnostics.
4484         PR c/89946
4485         * c-attribs.c (handle_patchable_function_entry_attribute): Add
4486         function comment.  Warn if arguments of the attribute are not positive
4487         integer constants.
4489 2019-04-09  Eric Botcazou  <ebotcazou@adacore.com>
4491         * c-ada-spec.c (print_destructor): Deal with deleting destructors.
4492         (dump_ada_declaration) <FUNCTION_DECL>: Likewise.
4494 2019-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4496         * c-ada-spec.c (is_float128): New predicate extracted from...
4497         (dump_ada_node) <COMPLEX_TYPE>: Use it to recognize __cfloat128.
4498         <REAL_TYPE>: ...here.  Call it.
4500 2019-04-05  David Malcolm  <dmalcolm@redhat.com>
4502         PR c/89985
4503         * c-warn.c (check_address_or_pointer_of_packed_member): Add
4504         auto_diagnostic_group.  Guard inform calls by result of
4505         warning_at call.
4507 2019-04-05  Marek Polacek  <polacek@redhat.com>
4509         PR c++/89973 - -Waddress-of-packed-member ICE with invalid conversion.
4510         * c-warn.c (check_address_or_pointer_of_packed_member): Check the type
4511         of RHS.
4513 2019-04-03  Jason Merrill  <jason@redhat.com>
4515         PR c++/86586 - -fcompare-debug=-Wsign-compare.
4516         * c-warn.c (warn_for_sign_compare): Call fold_for_warn.
4518 2019-04-01  Martin Sebor  <msebor@redhat.com>
4520         PR c/89685
4521         * c-attribs.c (handle_copy_attribute): Handle references and
4522         non-constant expressions.
4524 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
4526         PR c++/87481
4527         * c.opt (-fconstexpr-ops-limit=): New option.
4529 2019-03-21  Jakub Jelinek  <jakub@redhat.com>
4531         * c-common.c (per_file_includes_t): Use false as Lazy in hash_set
4532         template param.
4534 2019-03-19  Martin Sebor  <msebor@redhat.com>
4536         PR tree-optimization/89688
4537         * c-common.c (braced_list_to_string): Make static.
4538         (braced_lists_to_strings): Define new function.
4539         * c-common.h (braced_list_to_string): Remove.
4540         (braced_lists_to_strings): Declare.
4542 2019-03-12  Martin Liska  <mliska@suse.cz>
4544         * c-opts.c (c_common_handle_option): Wrap option with %< and %>.
4546 2019-03-11  Martin Liska  <mliska@suse.cz>
4548         * c-opts.c (c_common_post_options): Wrap apostrophes
4549         in gcc internal format with %'.
4551 2019-03-11  Martin Liska  <mliska@suse.cz>
4553         * c-attribs.c (handle_nocf_check_attribute): Wrap an option name
4554         in a string format message and fix GNU coding style.
4555         * c-common.c (vector_types_convertible_p): Likewise.
4556         (c_build_vec_perm_expr): Likewise.
4557         * c-indentation.c (get_visual_column): Likewise.
4558         * c-opts.c (c_common_handle_option): Likewise.
4559         (c_common_post_options): Likewise.
4560         (sanitize_cpp_opts): Likewise.
4561         * c-pch.c (c_common_pch_pragma): Likewise.
4562         * c-pragma.c (handle_pragma_pack): Likewise.
4564 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
4566         PR tree-optimization/89550
4567         * c-common.c (c_common_truthvalue_conversion): Only set
4568         TREE_NO_WARNING if warning_at returned true.
4569         * c-warn.c (overflow_warning, warn_logical_operator): Likewise.
4571 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
4572             Martin Sebor  <msebor@gmail.com>
4574         * c.opt (Wmissing-attributes): Clean up doc string.
4576 2019-02-25  Jakub Jelinek  <jakub@redhat.com>
4578         PR c/89495
4579         * c-format.c (maybe_read_dollar_number): Compute nargnum in
4580         HOST_WIDE_INT type to avoid overflows and change overflow_flag
4581         checking.
4583 2019-02-22  Richard Biener  <rguenther@suse.de>
4585         * c-pch.c (no_checksum): Remove.
4586         (pch_init): Remove assertion that executable_checksum is not
4587         all zero.
4588         (c_common_valid_pch): Likewise.
4590 2019-02-18  Martin Sebor  <msebor@redhat.com>
4592         PR middle-end/89294
4593         * c-common.c (invalid_array_size_error): Handle cst_size_not_constant.
4595 2019-02-16  David Malcolm  <dmalcolm@redhat.com>
4597         PR c++/88680
4598         * c-common.c (shorten_compare): Call fold_for_warn on op0 when
4599         implementing -Wtype-limits.
4601 2019-02-11  Martin Sebor  <msebor@redhat.com>
4603         PR c++/87996
4604         * c-common.c (invalid_array_size_error): New function.
4605         (valid_array_size_p): Call it.  Handle size as well as type.
4606         * c-common.h (valid_constant_size_p): New function.
4607         (enum cst_size_error): New type.
4609 2019-01-31  David Malcolm  <dmalcolm@redhat.com>
4611         PR c/89122
4612         * known-headers.cc (get_stdlib_header_for_name): Add
4613         {FLT|DBL|LDBL}_{MAX|MIN} to "hints" array.
4615 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
4617         PR libstdc++/88170
4618         * c-pretty-print.c (pp_c_enumeration_constant): Print always as
4619         a C cast in pp_c_flag_gnu_v3 mode.
4621 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
4623         PR c/86125
4624         * c-common.c (c_common_nodes_and_builtins): Build type variants for
4625         builtin_structptr_types types even for C.
4627 2019-01-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4629         * c-warn.c (check_address_or_pointer_of_packed_member): Handle the case
4630         when rhs is of array type correctly.  Fix handling of nested structures.
4631         Fix handling of indirect_ref together with nop_expr and/or addr_expr.
4632         (check_and_warn_address_or_pointer_of_packed_member): Fix handling of
4633         type casts within nested compound expressions.
4635 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
4637         PR middle-end/88968
4638         * c-omp.c (c_finish_omp_atomic): For bitfield atomics, update type
4639         variable after using BIT_FIELD_REF.
4641 2019-01-18  H.J. Lu  <hongjiu.lu@intel.com>
4643         PR c/51628
4644         PR c/88664
4645         * c-common.h (warn_for_address_or_pointer_of_packed_member):
4646         Remove the boolean argument.
4647         * c-warn.c (check_address_of_packed_member): Renamed to ...
4648         (check_address_or_pointer_of_packed_member): This.  Also
4649         warn pointer conversion.
4650         (check_and_warn_address_of_packed_member): Renamed to ...
4651         (check_and_warn_address_or_pointer_of_packed_member): This.
4652         Also warn pointer conversion.
4653         (warn_for_address_or_pointer_of_packed_member): Remove the
4654         boolean argument.  Don't check pointer conversion here.
4656 2019-01-15  Richard Sandiford  <richard.sandiford@arm.com>
4658         PR inline-asm/52813
4659         * c.opt (Wdeprecated): Move documentation and variable to common.opt.
4661 2019-01-14  Jakub Jelinek  <jakub@redhat.com>
4663         * c-cppbuiltin.c (c_cpp_builtin): Define __cpp_guaranteed_copy_elision
4664         and __cpp_nontype_template_parameter_auto.  Add a comment that
4665         __cpp_template_auto is deprecated.
4667 2019-01-14  Tom Honermann  <tom@honermann.net>
4669         Implement P0482R5, char8_t: A type for UTF-8 characters and strings
4670         * c-common.c (c_common_reswords): Add char8_t.
4671         (fix_string_type): Use char8_t for the type of u8 string literals.
4672         (c_common_get_alias_set): char8_t doesn't alias.
4673         (c_common_nodes_and_builtins): Define char8_t as a builtin type in
4674         C++.
4675         (c_stddef_cpp_builtins): Add __CHAR8_TYPE__.
4676         (keyword_begins_type_specifier): Add RID_CHAR8.
4677         * c-common.h (rid): Add RID_CHAR8.
4678         (c_tree_index): Add CTI_CHAR8_TYPE and CTI_CHAR8_ARRAY_TYPE.
4679         Define D_CXX_CHAR8_T and D_CXX_CHAR8_T_FLAGS.
4680         Define char8_type_node and char8_array_type_node.
4681         * c-cppbuiltin.c (cpp_atomic_builtins): Predefine
4682         __GCC_ATOMIC_CHAR8_T_LOCK_FREE.
4683         (c_cpp_builtins): Predefine __cpp_char8_t.
4684         * c-lex.c (lex_string): Use char8_array_type_node as the type of
4685         CPP_UTF8STRING.
4686         (lex_charconst): Use char8_type_node as the type of CPP_UTF8CHAR.
4687         * c-opts.c: If not otherwise specified, enable -fchar8_t when
4688         targeting C++2a.
4689         * c.opt: Add the -fchar8_t command line option.
4691 2019-01-14  Martin Sebor  <msebor@redhat.com>
4693         PR target/88638
4694         * c-attribs.c (positional_argument): Call valid_format_string_type_p
4695         and issue errors if it fails.
4696         * c-common.h (valid_format_string_type_p): Declare.
4697         * c-format.c (valid_stringptr_type_p): Rename...
4698         (valid_format_string_type_p): ...to this and make extern.
4699         (handle_format_arg_attribute): Adjust to new name.
4700         (check_format_string): Same.
4702 2019-01-13  H.J. Lu  <hongjiu.lu@intel.com>
4704         * c-warn.c (warn_for_address_or_pointer_of_packed_member):
4705         Replace "may may" with "may" in warning message.
4707 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
4709         PR c++/85052
4710         * c-common.h (enum rid): Add RID_BUILTIN_CONVERTVECTOR.
4711         (c_build_vec_convert): Declare.
4712         * c-common.c (c_build_vec_convert): New function.
4714 2019-01-04  Martin Sebor  <msebor@redhat.com>
4716         PR c/88546
4717         * c-attribs.c (handle_copy_attribute): Avoid copying attribute leaf.
4718         Handle C++ empty throw specification and C11 _Noreturn.
4719         (has_attribute): Also handle C11 _Noreturn.
4721 2019-01-04  Martin Sebor  <msebor@redhat.com>
4723         PR c/88363
4724         * c-attribs.c (positional_argument): Also accept enumerated types.
4726 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
4728         Update copyright years.
4730 2018-12-20  H.J. Lu  <hongjiu.lu@intel.com>
4732         PR c/51628
4733         * c-common.h (warn_for_address_or_pointer_of_packed_member): New.
4734         * c-warn.c (check_alignment_of_packed_member): New function.
4735         (check_address_of_packed_member): Likewise.
4736         (check_and_warn_address_of_packed_member): Likewise.
4737         (warn_for_address_or_pointer_of_packed_member): Likewise.
4738         * c.opt: Add -Wno-address-of-packed-member.
4740 2018-12-20  David Malcolm  <dmalcolm@redhat.com>
4742         PR c++/87504
4743         * c-warn.c (get_outermost_macro_expansion): New function.
4744         (spelled_the_same_p): Use it to unwind the macro expansions, and
4745         compare the outermost macro in each nested expansion, rather than
4746         the innermost.
4748 2018-12-19  David Malcolm  <dmalcolm@redhat.com>
4750         PR c++/87504
4751         * c-common.h (warn_tautological_cmp): Convert 1st param from
4752         location_t to const op_location_t &.
4753         * c-warn.c (find_array_ref_with_const_idx_r): Call fold_for_warn
4754         when testing for INTEGER_CST.
4755         (warn_tautological_bitwise_comparison): Convert 1st param from
4756         location_t to const op_location_t &; use it to build a
4757         binary_op_rich_location, and use this.
4758         (spelled_the_same_p): New function.
4759         (warn_tautological_cmp): Convert 1st param from location_t to
4760         const op_location_t &.  Warn for macro expansions if
4761         spelled_the_same_p.  Use binary_op_rich_location.
4763 2018-12-19  David Malcolm  <dmalcolm@redhat.com>
4765         PR c++/43064
4766         PR c++/43486
4767         * c-common.c (unsafe_conversion_p): Fold any location wrapper.
4768         (verify_tree): Handle location wrappers.
4769         (c_common_truthvalue_conversion): Strip any location wrapper.
4770         Handle CONST_DECL.
4771         (fold_offsetof): Strip any location wrapper.
4772         (complete_array_type): Likewise for initial_value.
4773         (convert_vector_to_array_for_subscript): Call fold_for_warn on the
4774         index before checking for INTEGER_CST.
4775         * c-pretty-print.c (c_pretty_printer::primary_expression): Don't
4776         print parentheses around location wrappers.
4777         * c-warn.c (warn_logical_operator): Call fold_for_warn on op_right
4778         before checking for INTEGER_CST.
4779         (warn_tautological_bitwise_comparison): Call
4780         tree_strip_any_location_wrapper on lhs, rhs, and bitop's operand
4781         before checking for INTEGER_CST.
4782         (readonly_error): Strip any location wrapper.
4783         (warn_array_subscript_with_type_char): Strip location wrappers
4784         before checking for INTEGER_CST.  Use the location of the index if
4785         available.
4787 2018-12-06  Jason Merrill  <jason@redhat.com>
4789         PR c++/88136 - -Wdeprecated-copy false positives
4790         * c.opt (Wdeprecated-copy-dtor): New.
4791         (Wdeprecated-copy): Move to -Wextra.
4793 2018-11-29  Martin Sebor  <msebor@redhat.com>
4795         PR c/88172
4796         PR testsuite/88208
4797         * c-attribs.c (common_handle_aligned_attribute): Silently avoid setting
4798         alignments to values less than the target requires.
4799         (has_attribute): For attribute aligned consider both the attribute
4800         and the alignment bits.
4801         * c-common.c (c_init_attributes): Optionally issue a warning for
4802         zero alignment.
4804 2018-11-28  Martin Sebor  <msebor@redhat.com>
4806         PR c/88065
4807         PR c/87297
4808         * c-warn.c (sizeof_pointer_memaccess_warning): Bail if source
4809         or destination is an error.
4811 2018-11-28  Jakub Jelinek  <jakub@redhat.com>
4813         PR c++/88215
4814         * c-ubsan.c: Include langhooks.h.
4815         (ubsan_instrument_division): Change gcc_assert that main variants
4816         of op0 and op1 types are equal to gcc_checking_assert that the
4817         main variants are compatible types.
4819 2018-11-27  Eric Botcazou  <ebotcazou@adacore.com>
4821         * c-ada-spec.c: Include stringpool.h.
4822         (has_static_fields): Return false for incomplete types.
4823         (is_tagged_type): Likewise.
4824         (has_nontrivial_methods): Likewise.
4825         (dump_ada_node) <INTEGER_TYPE>: Deal specifically with __int128.
4826         (struct overloaded_name_hash): New structure.
4827         (struct overloaded_name_hasher): Likewise.
4828         (overloaded_names): New global variable.
4829         (init_overloaded_names): New static function.
4830         (overloaded_name_p): New predicate.
4831         (dump_ada_declaration) <TYPE_DECL>: Tidy up and set TREE_VISITED
4832         on the TYPE_STUB_DECL of the original type of a typedef, if any.
4833         <FUNCTION_DECL>: Bail out for an unsupported overloaded name.
4834         Remove always-true condition and dump forward types.
4835         (dump_ada_specs): Delete overloaded_names.
4837 2018-11-20  Martin Sebor  <msebor@redhat.com>
4839         * c-attribs.c (type_for_vector_size): New function.
4840         (type_valid_for_vector_size): Same.
4841         (handle_vector_size_attribute): Move code to the functions above
4842         and call them.
4843         (validate_attribute, has_attribute): New functions.
4844         * c-common.h (has_attribute): Declare.
4845         (rid): Add RID_HAS_ATTRIBUTE_EXPRESSION.
4846         * c-common.c (c_common_resword): Same.
4848 2018-11-16  Jason Merrill  <jason@redhat.com>
4850         * c-lex.c (c_common_has_attribute): Handle likely/unlikely.
4851         * c-attribs.c (attr_cold_hot_exclusions): Make public.
4853 2018-11-16  Jakub Jelinek  <jakub@redhat.com>
4855         PR middle-end/87854
4856         * c-common.c (fix_string_type): Reject string literals larger than
4857         TYPE_MAX_VALUE (ssizetype) bytes.
4859 2018-11-15  Martin Sebor  <msebor@redhat.com>
4861         PR c++/87541
4862         PR c++/87542
4863         * c-attribs.c (positional_argument): New function.
4864         (handle_alloc_size_attribute): Use it and simplify.
4865         (handle_alloc_align_attribute): Same.
4866         (handle_assume_aligned_attribute): Same.
4867         (handle_nonnull_attribute): Same.
4868         * c-common.c (check_function_arguments): Pass fntype to
4869         check_function_format.
4870         * c-common.h (check_function_format): Add an argument.
4871         (PosArgFlags, positional_argument): Declare new type and function.
4872         * c-format.c (decode_format_attr): Add arguments.
4873         (check_format_string, get_constant): Same.
4874         (convert_format_name_to_system_name): Adjust.
4876 2018-11-15  David Malcolm  <dmalcolm@redhat.com>
4878         PR other/19165
4879         * c-opts.c (c_diagnostic_finalizer): Add diagnostic_t param.
4881 2018-11-14  Jakub Jelinek  <jakub@redhat.com>
4883         P1236R1 - Signed integers are two's complement
4884         * c-warn.c (maybe_warn_shift_overflow): Don't warn for c++2a.
4885         * c-ubsan.c (ubsan_instrument_shift): Make signed shifts
4886         with in-range second operand well defined for -std=c++2a.
4888         PR other/88007
4889         * c-common.c (parse_optimize_options): Allocate option string from
4890         opts_obstack rather than as GC memory.  Move the allocation after
4891         warning for invalid option.
4893 2018-11-13  David Malcolm  <dmalcolm@redhat.com>
4895         * c-common.c (c_get_substring_location): Update for renaming of
4896         get_source_location_for_substring to get_location_within_string.
4897         * c-lex.c: Replace "source_location" with "location_t".
4898         * c-opts.c: Likewise.
4899         * c-ppoutput.c: Likewise.
4901 2018-11-13  Martin Sebor  <msebor@redhat.com>
4903         PR middle-end/81824
4904         * c-attribs.c (handle_copy_attribute): Exclude inlining attributes.
4905         (handle_tls_model_attribute): Improve diagnostics.
4907 2018-11-12  Jason Merrill  <jason@redhat.com>
4909         * c-cppbuiltin.c (c_cpp_builtins): Define
4910         __cpp_impl_destroying_delete.
4912         * c-cppbuiltin.c (c_cpp_builtins): Change __cpp_explicit_bool to
4913         __cpp_conditional_explicit.
4915 2018-11-09  Martin Sebor  <msebor@redhat.com>
4917         PR middle-end/81824
4918         * c-attribs.c (handle_copy_attribute): New function.
4920 2018-11-09  Martin Sebor  <msebor@redhat.com>
4922         PR c/87795
4923         * c-common.c (check_user_alignment): Use MAX_OFILE_ALIGNMENT.
4925 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
4927         * c-common.h (c_finish_omp_taskgroup): Add CLAUSES argument.
4928         (c_finish_omp_atomic): Replace bool SEQ_CST argument with
4929         enum omp_memory_order MEMORY_ORDER.
4930         (c_finish_omp_flush): Add MO argument.
4931         (c_omp_depend_t_p, c_finish_omp_depobj): Declare.
4932         (c_finish_omp_for): Add FINAL_P argument.
4933         * c-omp.c: Include memmodel.h.
4934         (c_finish_omp_taskgroup): Add CLAUSES argument.  Set
4935         OMP_TASKGROUP_CLAUSES to it.
4936         (c_finish_omp_atomic): Replace bool SEQ_CST argument with
4937         enum omp_memory_order MEMORY_ORDER.  Set OMP_ATOMIC_MEMORY_ORDER
4938         instead of OMP_ATOMIC_SEQ_CST.
4939         (c_omp_depend_t_p, c_finish_omp_depobj): New functions.
4940         (c_finish_omp_flush): Add MO argument, if not MEMMODEL_LAST, emit
4941         __atomic_thread_fence call with the given value.
4942         (check_omp_for_incr_expr): Formatting fixes.
4943         (c_finish_omp_for): Add FINAL_P argument.  Allow NE_EXPR
4944         even in OpenMP loops, diagnose if NE_EXPR and incr expression
4945         is not constant expression 1 or -1.  Transform NE_EXPR loops
4946         with iterators pointers to VLA into LT_EXPR or GT_EXPR loops.
4947         (c_omp_check_loop_iv_r): Look for orig decl of C++ range for
4948         loops too.
4949         (c_omp_split_clauses): Add support for combined
4950         #pragma omp parallel master and
4951         #pragma omp {,parallel }master taskloop{, simd} constructs.
4952         Handle OMP_CLAUSE_IN_REDUCTION.  Handle OMP_CLAUSE_REDUCTION_TASK.
4953         Handle OMP_CLAUSE_NONTEMPORAL.  Handle splitting OMP_CLAUSE_IF
4954         also to OMP_SIMD.  Copy OMP_CLAUSE_LASTPRIVATE_CONDITIONAL.
4955         (c_omp_predetermined_sharing): Don't return
4956         OMP_CLAUSE_DEFAULT_SHARED for const qualified decls.
4957         * c-pragma.c (omp_pragmas): Add PRAGMA_OMP_DEPOBJ and
4958         PRAGMA_OMP_REQUIRES.
4959         * c-pragma.h (enum pragma_kind): Likewise.
4960         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_NONTEMPORAL
4961         and PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION.
4963 2018-11-08  David Malcolm  <dmalcolm@redhat.com>
4965         * c-format.c (gcc_dump_printf_char_table): Add entry for %f.
4967 2018-11-08  David Malcolm  <dmalcolm@redhat.com>
4969         * c-format.c (local_cgraph_node_ptr_node): New variable.
4970         (gcc_dump_printf_char_table): Add entry for %C.
4971         (get_pointer_to_named_type): New function, taken from the handling
4972         code for "gimple *" from...
4973         (init_dynamic_diag_info): ...here.  Add handling for
4974         "cgraph_node *".
4975         * c-format.h (T_CGRAPH_NODE): New.
4977 2018-10-19  Jason Merrill  <jason@redhat.com>
4979         * c-cppbuiltin.c (c_cpp_builtins): Add
4980         __cpp_nontype_template_parameter_class.
4982 2018-10-31  Nathan Sidwell  <nathan@acm.org>
4984         * c-opts.c (c_finish_options): Force command line macro
4985         location.  Refactor to avoid repeating main debug hook.
4986         (push_command_line_include): Clarify comment.
4988         * c-opts.c (c_finish_options): Adjust cpp_force_token_locations call.
4990 2018-10-30  Martin Sebor  <msebor@redhat.com>
4992         PR middle-end/87041
4993         * c-format.c (check_format_types): Avoid diagnosing null pointer
4994         arguments to printf-family of functions.
4996 2018-10-30  Marek Polacek  <polacek@redhat.com>
4998         Implement P0892R2, explicit(bool).
4999         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_explicit_bool.
5001 2018-10-29  David Malcolm  <dmalcolm@redhat.com>
5003         * name-hint.h (name_hint::take_deferred): New member function.
5005 2018-10-29  David Malcolm  <dmalcolm@redhat.com>
5007         PR c++/56856
5008         * c-common.c (check_function_sentinel): Call fold_for_warn on the
5009         argument.
5010         (check_function_restrict): Rename param "argarray" to
5011         "unfolded_argarray", and make a copy named "argarray", calling
5012         fold_for_warn on each argument.
5013         (check_function_arguments): Add note about responsibility for
5014         folding the arguments.
5016 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
5018         * c-common.c (flag_isoc2x): New variable.
5019         * c-common.h (clk_c): Update comment to reference C2X.
5020         (flag_isoc99, flag_isoc11): Update comments to reference future
5021         standard versions in general.
5022         (flag_isoc2x): Declare.
5023         * c-opts.c (set_std_c2x): New function.
5024         (c_common_handle_option): Handle -std=c2x and -std=gnu2x.
5025         (set_std_c89, set_std_c99, set_std_c11, set_std_c17): Set
5026         flag_isoc2x to 0.
5027         * c.opt (Wc11-c2x-compat, std=c2x, std=gnu2x): New options.
5029 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
5031         * c.opt (std=c17, std=c18, std=gnu17, std=gnu18, std=iso9899:2017)
5032         (std=iso9899:2018): Document C17 as published in 2018.
5034 2018-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
5036         PR c++/87364
5037         * c-pretty-print.c (c_pretty_printer::constant): Fix typo.
5039 2018-10-11  Will Wray  <wjwray@gmail.com>
5041         PR c++/87364
5042         * c-pretty-print.h (pp_c_type_cast): Prototype.
5043         (pp_c_integer_constant): Likewise.
5044         * c-pretty-print.c (pp_c_type_cast): No longer static.
5045         (pp_c_integer_constant): Likewise.
5046         (pp_c_enumeration_constant): Fix loop termination when finding
5047         name of constant.  No longer returns a value.  Call
5048         pp_c_integer_constant.
5049         (c_pretty_printer::constant): Update for changes to
5050         pp_c_enumeration_constant.
5052 2018-10-11  Jakub Jelinek  <jakub@redhat.com>
5054         * c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312
5055         for no_unique_address.
5057 2018-10-09  David Malcolm  <dmalcolm@redhat.com>
5059         * c-common.c (c_option_controlling_cpp_error): Rename to...
5060         (c_option_controlling_cpp_diagnostic): ...this, and convert
5061         "reason" from int to enum.
5062         (c_cpp_error): Rename to...
5063         (c_cpp_diagnostic): ...this, converting level and reason to enums.
5064         * c-common.h (c_cpp_error): Rename to...
5065         (c_cpp_diagnostic): ...this, converting level and reason to enums.
5066         * c-opts.c (c_common_init_options): Update for renaming.
5068 2018-10-08  Richard Sandiford  <richard.sandiford@arm.com>
5070         PR c/87286
5071         * c-common.c (vector_types_compatible_elements_p): Use
5072         INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE.
5074 2018-10-04  Vinay Kumar  <vinay.kumar@blackfigtech.com>
5076         * c-attribs.c (get_priority): Add a warning flag warn_prio_ctor_dtor
5077         to generate constructor destructor priority warning.
5078         * c.opt (-Wprio-ctor-dtor): New option.
5080 2018-10-01  Jason Merrill  <jason@redhat.com>
5082         * c-lex.c (c_common_has_attribute): Add no_unique_address.
5084 2018-10-01  Eric Botcazou  <ebotcazou@adacore.com>
5086         * c-ada-spec.c (get_underlying_decl): Get to the main type variant.
5087         (dump_ada_node): Add const keyword.
5089 2018-09-25  Martin Liska  <mliska@suse.cz>
5091         * c-common.c (c_common_truthvalue_conversion):
5092         Remove Pascal from documentation.
5094 2018-09-21  Eric Botcazou  <ebotcazou@adacore.com>
5096         * c-ada-spec.c: Include diagnostic.h.
5097         (dump_ada_declaration) <RECORD_TYPE>: Issue a warning on packed layout.
5099 2018-09-19  Marek Polacek  <polacek@redhat.com>
5101         * c.opt (Wclass-conversion): New.
5103 2018-09-17  David Malcolm  <dmalcolm@redhat.com>
5105         * c-format.c (range_label_for_format_type_mismatch::get_text):
5106         Update for new param.
5108 2018-09-17  David Malcolm  <dmalcolm@redhat.com>
5110         * c-format.c (format_warning_at_char): Update for introduction of
5111         format_string_diagnostic_t.
5112         (format_type_warning): Likewise.
5114 2018-09-17  Martin Jambor  <mjambor@suse.cz>
5116         PR c/63886
5117         * c.opt (Wabsolute-value): New.
5119 2018-09-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5121         * c-common.c (complete_flexible_array_elts): New helper function.
5122         * c-common.h (complete_flexible_array_elts): Declare.
5124 2018-09-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5126         * c-common.c (braced_list_to_string): Remove eval parameter.
5127         Add some more checks.  Always create zero-terminated STRING_CST.
5128         * c-common.h (braced_list_to_string): Adjust prototype.
5130 2018-08-27  David Malcolm  <dmalcolm@redhat.com>
5132         PR 87091
5133         * c-common.c (c_cpp_error): Update for conversion of show_caret_p
5134         to a tri-state.
5135         (maybe_suggest_missing_token_insertion): Likewise.
5136         (maybe_add_include_fixit): Add param "override_location".  If set,
5137         and source-printing is enabled, then override the rich_location's
5138         primary location with that of the insertion point for the fix-it
5139         hint, marking it with SHOW_LINES_WITHOUT_RANGE.
5140         * c-common.h (extern void maybe_add_include_fixit): Add bool
5141         param.
5142         * c-format.c (selftest::test_type_mismatch_range_labels): Update
5143         for conversion of show_caret_p to a tri-state.
5144         * c-warn.c (warn_for_restrict): Likewise.
5145         * known-headers.cc
5146         (suggest_missing_header::~suggest_missing_header): Update call to
5147         maybe_add_include_fixit to suggest overriding the location, as it
5148         is for a note.
5150 2018-08-27  Martin Liska  <mliska@suse.cz>
5152         * c-common.c (check_function_restrict): Use new function
5153         fndecl_built_in_p and remove check for FUNCTION_DECL if
5154         possible.
5155         (check_builtin_function_arguments): Likewise.
5156         (reject_gcc_builtin): Likewise.
5157         * c-warn.c (sizeof_pointer_memaccess_warning): Likewise.
5159 2018-08-26  Marek Polacek  <polacek@redhat.com>
5161         PR c++/87029, Implement -Wredundant-move.
5162         * c.opt (Wredundant-move): New option.
5164 2018-08-21  Marek Polacek  <polacek@redhat.com>
5166         PR c++/86981, Implement -Wpessimizing-move.
5167         * c.opt (Wpessimizing-move): New option.
5169 2018-08-20  David Malcolm  <dmalcolm@redhat.com>
5171         PR other/84889
5172         * c-attribs.c (common_handle_aligned_attribute): Add
5173         auto_diagnostic_group instance.
5174         * c-indentation.c (warn_for_misleading_indentation): Likewise.
5175         * c-opts.c (c_common_post_options): Likewise.
5176         * c-warn.c (warn_logical_not_parentheses): Likewise.
5177         (warn_duplicated_cond_add_or_warn): Likewise.
5178         (warn_for_multistatement_macros): Likewise.
5180 2018-08-20  Nathan Sidwell  <nathan@acm.org>
5182         * c-ada-spec.c (macro_length, dump_ada_macros): Adjust macro parm
5183         access.
5185 2018-08-17  Nathan Sidwell  <nathan@acm.org>
5187         * c-cppbuiltin.c (struct lazy_hex_fp_value_struct): Remove macro
5188         field.
5189         (laxy_hex_fp_value_count): Make unsigned.
5190         (lazy_hex_fp_value): Provided with macro & lazy number.  Directly
5191         manipulate the macro.
5192         (builtin_defin_with_hex_fp_value): Adjust callback name, use
5193         cpp_define_lazily.
5195 2018-08-17  David Malcolm  <dmalcolm@redhat.com>
5197         * c-format.c (enum format_type): Add gcc_dump_printf_format_type.
5198         (gcc_dump_printf_length_specs): New.
5199         (gcc_dump_printf_flag_pairs): New.
5200         (gcc_dump_printf_flag_specs): New.
5201         (gcc_dump_printf_char_table): New.
5202         (format_types_orig): Add entry for "gcc_dump_printf".
5203         (init_dynamic_diag_info): Set up length_char_specs and
5204         conversion_specs for gcc_dump_printf_format_type.
5205         (handle_format_attribute): Handle gcc_dump_printf_format_type.
5207 2018-08-17  Nathan Sidwell  <nathan@acm.org>
5209         * c-ada-spec.c (macro_length, dump_ada_macros): Constify.
5211         * c-ada-spec.c: Don't #include "cpp-id-data.h"
5212         * c-cppbuiltin.c: Likewise.
5214 2018-08-17  Martin Liska  <mliska@suse.cz>
5216         * c.opt: Remove Warn, Init and Report for options with
5217         Ignore/Deprecated flag. Warning is done automatically for
5218         Deprecated flags.
5220 2018-08-16  David Malcolm  <dmalcolm@redhat.com>
5222         PR c++/70693
5223         * c-common.c (selftest::c_family_tests): Call
5224         selftest::c_indentation_c_tests.
5225         * c-common.h (selftest::c_indentation_c_tests): New decl.
5226         * c-indentation.c: Include "selftest.h".
5227         (next_tab_stop): Add "tab_width" param, rather than accessing
5228         cpp_opts.
5229         (get_visual_column): Likewise.  Clarify comment.  Bulletproof
5230         against reading past the end of the line.
5231         (get_first_nws_vis_column): Add "tab_width" param.
5232         (detect_intervening_unindent): Likewise.
5233         (should_warn_for_misleading_indentation): Read tab width from
5234         cpp_opts and pass around.
5235         (selftest::test_next_tab_stop): New test.
5236         (selftest::assert_get_visual_column_succeeds): New function.
5237         (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro.
5238         (selftest::assert_get_visual_column_fails): New function.
5239         (ASSERT_GET_VISUAL_COLUMN_FAILS): New macro.
5240         (selftest::test_get_visual_column): New test.
5241         (selftest::c_indentation_c_tests): New function.
5243 2018-08-16  Nathan Sidwell  <nathan@acm.org>
5245         * c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p.
5246         (store_ada_macro): Likewise.
5247         * c-ppoutput.c (cb_used_define, dump_macro): Likewise.
5248         * c-spellcheck.cc (should-suggest_as_macro_p): Likewise,
5250 2018-08-15  David Malcolm  <dmalcolm@redhat.com>
5252         * c-format.c: Include "selftest-diagnostic.h" and
5253         "gcc-rich-location.h".
5254         (format_warning_at_char): Pass NULL for new label params of
5255         format_warning_va.
5256         (class indirection_suffix): New class.
5257         (class range_label_for_format_type_mismatch): New class.
5258         (format_type_warning): Move logic for generating "*" suffix to
5259         class indirection_suffix.  Create "fmt_label" and "param_label"
5260         to show their types, and pass them to the
5261         format_warning_at_substring calls.
5262         (selftest::test_type_mismatch_range_labels): New test.
5263         (selftest::c_format_c_tests): Call it.
5265 2018-08-13  Martin Sebor  <msebor@redhat.com>
5267         PR tree-optimization/71625
5268         * c-common.c (braced_list_to_string): New function.
5269         * c-common.h (braced_list_to_string): Declare it.
5271 2018-08-08  Nathan Sidwell  <nathan@acm.org>
5273         * c-common.c (try_to_locate_new_include_inertion_point): Use
5274         linemap_included_from_linemap.
5275         * c-lex.c (fe_file_change): Use linemap_included_from.
5276         * c-ppoutput.c (pp_file_change): Likewise.
5278 2018-08-01  Martin Sebor  <msebor@redhat.com>
5280         PR tree-optimization/86650
5281         * c-format.c (gcc_tdiag_char_table): Update comment for "%G".
5282         (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same.
5283         (init_dynamic_diag_info): Update from "gcall *" to "gimple *".
5284         * c-format.h (T89_G): Update to be "gimple *" rather than
5285         "gcall *".
5286         (local_gcall_ptr_node): Rename...
5287         (local_gimple_ptr_node): ...to this.
5289 2018-07-31  David Malcolm  <dmalcolm@redhat.com>
5291         * c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing
5292         table entries for gcc_diag_char_table, and the 'Z' entry from
5293         gcc_tdiag_char_table, changing the "chain" entry for 'Z' from
5294         &gcc_tdiag_char_table[0] to &gcc_diag_char_table[0].
5295         (gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly
5296         adding missing "Z" for this table.  Remove erroneous "G" and "K"
5297         entries.
5298         (gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE.  Remove "v".
5299         (gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE.
5300         (gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE.  Remove "v".
5302 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
5304         * c-common.c (speculation_safe_resolve_call): New function.
5305         (speculation_safe_resolve_params): New function.
5306         (speculation_safe_resolve_return): New function.
5307         (resolve_overloaded_builtin): Handle __builtin_speculation_safe_value.
5308         * c-cppbuiltin.c (c_cpp_builtins): Add pre-define for
5309         __HAVE_SPECULATION_SAFE_VALUE.
5311 2018-07-20  David Malcolm  <dmalcolm@redhat.com>
5313         * c-common.c (c_cpp_error): Remove redundant "line_table"
5314         parameter from call to rich_location::set_range.
5315         (maybe_suggest_missing_token_insertion): Likewise.
5317 2018-07-20  Martin Sebor  <msebor@redhat.com>
5319         PR middle-end/82063
5320         * c.opt (-Warray-bounds): Remove redundant -Wall.
5322 2018-07-20  Martin Sebor  <msebor@redhat.com>
5324         PR middle-end/82063
5325         * c-common.h (c_common_handle_option): Change function argument
5326         to HOST_WIDE_INT.
5327         * c-opts.c (c_common_init_options): Same.
5328         (c_common_handle_option): Same.  Remove special handling of
5329         OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_.
5330         * c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change
5331         options to take a HOST_WIDE_INT argument and accept a byte-size
5332         suffix.  Initialize.
5333         (-Wvla-larger-than): Same.
5334         (-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New.
5335         (-Wno-vla-larger-than): Same.
5337 2018-07-12  Jakub Jelinek  <jakub@redhat.com>
5339         * c-attribs.c (c_common_attribute_table): Add
5340         "omp declare target implicit" attribute.
5342 2018-07-12  Richard Biener  <rguenther@suse.de>
5344         PR c/86453
5345         * c-attribs.c (handle_packed_attribute): Do not build a variant
5346         type with TYPE_PACKED, instead ignore the attribute if we may
5347         not apply to the original type.
5349 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
5351         PR c++/86443
5352         * c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv
5353         to contain TREE_LIST for both the original class iterator and the
5354         "last" helper var.
5356 2018-07-07  Eric Botcazou  <ebotcazou@adacore.com>
5358         * c-ada-spec.c (to_ada_name): Remove index parameter.
5359         (pp_ada_tree_identifier): Likewise.
5360         (dump_ada_macros): Adjust call to to_ada_name.
5361         (struct overloaded_name_hash): Delete.
5362         (struct overloaded_name_hasher): Likewise.
5363         (overloaded_names): Likewise.
5364         (compute_overloading_index): Likewise.
5365         (dump_ada_decl_name): Do not call compute_overloading_index and
5366         adjust calls to pp_ada_tree_identifier.
5367         (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
5368         (dump_ada_import): Add spc parameter and switch to aspect syntax.
5369         (dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier.
5370         (dump_ada_enum_type): Remove type and display_convention parameters.
5371         Adjust calls to pp_ada_tree_identifier.
5372         (dump_ada_node): Likewise and for dump_ada_structure.
5373         (dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type
5374         and tidy up.
5375         <RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect
5376         syntax.
5377         (print_constructor): Adjust call to pp_ada_tree_identifier.
5378         (print_destructor): Likewise.
5379         (dump_ada_declaration): Switch to aspect syntax.
5380         (dump_ada_structure): Likewise and tidy up.  Replace display_convention
5381         parameter with nested parameter.
5382         (dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005.
5383         (dump_ada_specs): Do not delete overloaded_names table.
5385 2018-07-06  Peter Bergner  <bergner@linux.ibm.com>
5387         PR target/86324
5388         * c-attribs.c (handle_mode_attribute): Call translate_mode_attribute
5389         target hook.
5391 2018-07-05  Nathan Sidwell  <nathan@acm.org>
5393         * c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not
5394         NO_IMPLICIT_EXTERN_C.
5396 2018-06-28  Martin Liska  <mliska@suse.cz>
5398         * cppspec.c: Include opt-suggestions.h.
5400 2018-06-20  Chung-Lin Tang  <cltang@codesourcery.com>
5401             Thomas Schwinge  <thomas@codesourcery.com>
5402             Cesar Philippidis  <cesar@codesourcery.com>
5404         * c-pragma.h (enum pragma_omp_clause): Add
5405         PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove
5406         PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}.
5408 2018-06-20  Jakub Jelinek  <jakub@redhat.com>
5410         PR c++/86210
5411         * c-common.c (check_nonnull_arg): Use fold_for_warn.  Adjust obsolete
5412         comment.
5414 2018-06-18  Martin Sebor  <msebor@redhat.com>
5416         PR middle-end/85602
5417         * c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute
5418         nonstring.
5420 2018-06-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
5422         * c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR.
5424 2018-06-13  Jason Merrill  <jason@redhat.com>
5426         * c-opts.c (c_common_post_options): Warn about useless -Wabi.
5427         (c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version
5428         handling.
5430         PR c++/86094 - wrong code with defaulted move ctor.
5431         * c-opts.c (c_common_post_options): Bump the current ABI version to
5432         13.  Set warn_abi_version and flag_abi_compat_version to the current
5433         version rather than 0.  Fix defaulting flag_abi_compat_version from
5434         warn_abi_version.
5436 2018-06-12  Martin Sebor  <msebor@redhat.com>
5438         PR c/85931
5439         * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when
5440         sizeof source and destination yields the same value.
5442 2018-06-12  Martin Liska  <mliska@suse.cz>
5444         * c.opt: Make MPX-related options as Deprecated.
5446 2018-06-08  David Malcolm  <dmalcolm@redhat.com>
5448         * c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE
5449         rather than 0.
5451 2018-06-08  Martin Liska  <mliska@suse.cz>
5453         * c-attribs.c (handle_bnd_variable_size_attribute): Remove support
5454         for MPX (macros, related functions, fields in cgraph_node, ...).
5455         (handle_bnd_legacy): Likewise.
5456         (handle_bnd_instrument): Likewise.
5457         * c.opt: Likewise.
5459 2018-06-06  Jakub Jelinek  <jakub@redhat.com>
5461         PR c++/86068
5462         * c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set
5463         __cpp_transactional_memory to 201500 instead of 210500.
5465 2018-06-06  Jason Merrill  <jason@redhat.com>
5467         PR c++/85710 - ICE with -Wmemset-elt-size.
5468         * c-warn.c (warn_for_memset): Don't crash on incomplete element type.
5470 2018-06-01  Jason Merrill  <jason@redhat.com>
5472         * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to
5473         201703.
5475 2018-06-01  Eric Botcazou  <ebotcazou@adacore.com>
5477         * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward
5478         declaration for a typedef independently of whether the declaration of
5479         the subtype is generated.
5481 2018-05-31  Martin Sebor  <msebor@redhat.com>
5483         PR c/82063
5484         * c.opt (-Wno-alloc-size-larger-than): New option.
5486 2018-04-22  David Pagan  <dave.pagan@oracle.com>
5488         PR c/55976
5489         * c-opts.c (c_common_post_options): Set default for warn_return_type
5490         for C++/C++ with ObjC extensions only. For C, makes it possible to
5491         differentiate between default (no option), -Wreturn-type, and
5492         -Wno-return-type.
5494 2018-05-29  Jason Merrill  <jason@redhat.com>
5496         * c.opt (Winit-list-lifetime): New flag.
5498 2018-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5500         * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and
5501         splay_tree_delete_pointers.
5503 2018-05-26  Jakub Jelinek  <jakub@redhat.com>
5505         PR bootstrap/85921
5506         * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary
5507         noinline variable to workaround broken kernel headers.
5509 2018-05-18  Jason Merrill  <jason@redhat.com>
5511         * c.opt (Wdeprecated-copy): New flag.
5513 2018-05-17  Martin Liska  <mliska@suse.cz>
5515         * c-warn.c (overflow_warning): Do not use
5516         space in between 'G_' and '('.
5518 2018-05-09  Jason Merrill  <jason@redhat.com>
5520         * c-common.c (valid_array_size_p): Add complain parameter.
5521         * c-common.h: ...which defaults to true.
5523 2018-05-11  Jakub Jelinek  <jakub@redhat.com>
5525         PR c/85696
5526         * c-omp.c (c_omp_predetermined_sharing): Return
5527         OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.
5529 2018-05-11  Martin Liska  <mliska@suse.cz>
5531         PR sanitizer/85556
5532         * c-attribs.c (handle_no_sanitize_attribute): Iterate all
5533         TREE_LIST values.
5535 2018-05-10  Jakub Jelinek  <jakub@redhat.com>
5537         PR c++/85662
5538         * c-common.h (fold_offsetof_1): Removed.
5539         (fold_offsetof): Add TYPE argument defaulted to size_type_node and
5540         CTX argument defaulted to ERROR_MARK.
5541         * c-common.c (fold_offsetof_1): Renamed to ...
5542         (fold_offsetof): ... this.  Remove wrapper function.  Add TYPE
5543         argument, convert the pointer constant to TYPE and use size_binop
5544         with PLUS_EXPR instead of fold_build_pointer_plus if type is not
5545         a pointer type.  Adjust recursive calls.
5547 2018-05-10  Eric Botcazou  <ebotcazou@adacore.com>
5549         PR c++/85400
5550         * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs.
5552 2018-05-07  Nathan Sidwell  <nathan@acm.org>
5554         * c.opt (ffor-scope): Remove functionality, issue warning.
5556 2018-05-03  Nathan Sidwell  <nathan@acm.org>
5558         * c.opt (ffriend-injection): Remove functionality, issue warning.
5560 2018-05-01  David Malcolm  <dmalcolm@redhat.com>
5562         PR c/84258
5563         * c-format.c (struct format_check_results): Add field
5564         "number_non_char".
5565         (check_format_info): Initialize it, and warn if encountered.
5566         (check_format_arg): Distinguish between wide char and
5567         everything else when detecting arrays of non-char.
5569 2018-04-30  David Malcolm  <dmalcolm@redhat.com>
5571         * c-format.c (get_corrected_substring): Update for
5572         location_get_source_line returning a char_span.  Use a char_span
5573         when handling the prefix of the correction.
5574         * c-indentation.c (get_visual_column): Update for
5575         location_get_source_line returning a char_span.
5576         (get_first_nws_vis_column): Likewise.
5578 2018-03-29  David Malcolm  <dmalcolm@redhat.com>
5580         PR c++/84269
5581         * known-headers.cc (get_stdlib_header_for_name): Add various names
5582         from <assert.h>, <string.h>, and <memory.h>; add more names from
5583         <stdio.h>.
5585 2018-03-27  Jakub Jelinek  <jakub@redhat.com>
5587         PR c++/85061
5588         * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that
5589         get_base_address of the second operand is a VAR_P, rather than the
5590         operand itself, and use gcc_checking_assert instead of gcc_assert.
5592 2018-03-23  Marek Polacek  <polacek@redhat.com>
5594         PR c++/85045
5595         * c-pretty-print.c (c_pretty_printer::multiplicative_expression)
5596         <case RDIV_EXPR>: Tweak condition.
5598 2018-03-20  Eric Botcazou  <ebotcazou@adacore.com>
5600         * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool.
5602 2018-03-16  Jakub Jelinek  <jakub@redhat.com>
5604         PR c/84909
5605         * c-warn.c (conversion_warning): Replace "to to" with "to" in
5606         diagnostics.
5608         PR c/84910
5609         * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
5610         diagnostics.
5612 2018-03-16  Richard Biener  <rguenther@suse.de>
5614         PR c/84873
5615         * c-gimplify.c (c_gimplify_expr): Revert previous change.  Instead
5616         unshare the possibly folded expression.
5618 2018-03-15  Richard Biener  <rguenther@suse.de>
5620         PR c/84873
5621         * c-gimplify.c (c_gimplify_expr): Do not fold expressions.
5623 2018-03-13  Martin Sebor  <msebor@redhat.com>
5625         PR tree-optimization/84725
5626         * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring
5627         with all three narrow character types, including their qualified forms.
5629 2018-03-12  Martin Sebor  <msebor@redhat.com>
5631         PR tree-optimization/83456
5632         * c-common.c (check_function_restrict): Return bool.
5633         Restore checking of bounded built-in functions.
5634         (check_function_arguments): Also return the result
5635         of warn_for_restrict.
5636         * c-common.c (check_function_restrict): Return bool.
5637         * c-warn.c (warn_for_restrict): Return bool.
5639 2018-03-02  Marek Polacek  <polacek@redhat.com>
5641         PR c++/84171
5642         * c-warn.c (warn_for_sign_compare): Bail out if any of the operands
5643         is erroneous.
5645 2018-03-02  Thomas Schwinge  <thomas@codesourcery.com>
5647         * c-attribs.c (c_common_attribute_table): Remove "cilk simd
5648         function".
5650 2018-03-01  Marek Polacek  <polacek@redhat.com>
5652         PR c++/84639
5653         * c-attribs.c (common_handle_aligned_attribute): Don't use invalid
5654         alignment in computation.
5656 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
5658         * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case.
5659         <REAL_TYPE>: Deal specifically with _Float128/__float128.
5661 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
5663         * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case.
5664         (is_char_array): Take a type instead of a declaration.
5665         (dump_ada_array_type): Likewise.
5666         (is_simple_enum): Minor tweak.
5667         (dump_ada_enum_type): New function extracted from...
5668         (dump_ada_node) <ENUMERAL_TYPE>: ...here.  Invoke it.
5669         <INTEGER_TYPE>: Remove unreachable code.
5670         <RECORD_TYPE>: Likewise.  Minor tweaks.
5671         (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes.
5672         <ENUMERAL_TYPE>: New case.
5673         <RECORD_TYPE>: Factor out common code.
5674         (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes.
5675         Minor tweaks.  Deal with enumeral types.
5676         (dump_ada_structure): Minor tweaks.
5678 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
5680         * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic
5681         address for incomplete structures.
5682         (dump_forward_type): Do not bail out for incomplete structures.
5683         (dump_ada_declaration): Do not special-case incomplete structures
5684         for subtypes.  Dump them as null records for types.
5686 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
5688         * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
5689         (is_char_array): Fix formatting.
5690         (dump_template_types): Likewise.
5691         (dump_generic_ada_node): Rename into...
5692         (dump_ada_node): ...this.
5693         <POINTER_TYPE>: Remove superfluous space.  Use generic address for
5694         incomplete structures and not for empty structures.  Do not use it
5695         when forward declarations are needed.
5696         (dump_forward_type): New function.
5697         (dump_nested_types): Remove FORWARD parameter.  Do not consider
5698         TREE_VISITED and do not generate a forward declaration.  Only dump
5699         original nested types for nested declaration.
5700         (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
5701         <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
5702         <RECORD_TYPE>: Do not consider TREE_VISITED.
5703         (dump_ada_declaration): Use booleans and fix formatting throughout.
5704         <TYPE_DECL>: Skip incomplete structures and not empty structures.
5705         Call dump_forward_type instead of dump_nested_types for a typedef.
5706         Remove superfluous check and adjust call to dump_nested_types.
5707         <POINTER_TYPE>: Call dump_forward_type and fall through.
5708         (dump_ada_struct_decl): Rename into...
5709         (dump_ada_structure): ...this.  Do not special-case empty structures.
5711 2018-02-27  Martin Sebor  <msebor@redhat.com>
5713         PR c++/83871
5714         * c.opt (-Wmissing-attributes): New option.
5716 2018-02-21  Martin Liska  <mliska@suse.cz>
5718         * c.opt (Wcatch-value=): Add IntegerRange.
5720 2018-02-15  Jason Merrill  <jason@redhat.com>
5722         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
5724 2018-02-09  Nathan Sidwell  <nathan@acm.org>
5726         PR c/84293
5727         * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
5728         arg.
5729         * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
5730         arg.  Adjust.
5732 2018-02-09  Martin Sebor  <msebor@redhat.com>
5734         PR lto/84212
5735         * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
5736         (-Walloc-size-larger-than, -Wformat-truncation=): Same.
5737         (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
5738         (-Wstrict-overflow, -Wsuggest-attribute): Same.
5739         (-Wuninitialized): Same.
5741 2018-02-09  Eric Botcazou  <ebotcazou@adacore.com>
5743         * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
5744         keyword for components.
5746 2018-02-02  Paolo Carlini  <paolo.carlini@oracle.com>
5748         * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
5750 2018-02-02  Julia Koval  <julia.koval@intel.com>
5752         * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
5754 2018-01-29  Marek Polacek  <polacek@redhat.com>
5756         PR c/83966
5757         * c-format.c (check_function_format): Check current_function_decl.
5759 2018-01-27  Jakub Jelinek  <jakub@redhat.com>
5761         * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
5762         argument.
5763         (LAZY_HEX_FP_VALUES_CNT): Define.
5764         (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
5765         values rather than just 12.
5766         (builtin_define_with_hex_fp_value): Likewise.
5768 2018-01-18  Boris Kolpackov  <boris@codesynthesis.com>
5770         PR other/70268
5771         * c.opt (-fmacro-prefix-map): New option.
5772         * c-opts.c (c_common_handle_option): Handle it.
5773         * c-lex.c (init_c_lex): Set remap_filename cpp callback.
5774         * c-ppoutput.c (init_pp_output): Likewise.
5776 2018-01-17  David Malcolm  <dmalcolm@redhat.com>
5778         PR c++/83814
5779         * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
5781 2018-01-10  Eric Botcazou  <ebotcazou@adacore.com>
5783         * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
5784         Skip 'f' and 'F' characters if it is true.
5785         (store_ada_macro): Minor tweak.
5786         (dump_ada_macros) <CPP_COMMENT>: Likewise.
5787         <CPP_WSTRING>: Likewise.
5788         <CPP_STRING>: Output '&' in the buffer if not the first string.
5789         <CPP_NUMBER>: Adjust calls to dump_number.
5791 2018-01-10  David Malcolm  <dmalcolm@redhat.com>
5793         PR c++/43486
5794         * c-common.c: Include "selftest.h".
5795         (get_atomic_generic_size): Perform the test for integral type
5796         before the range test for any integer constant, fixing indentation
5797         of braces.  Call fold_for_warn before testing for an INTEGER_CST.
5798         (reject_gcc_builtin): Strip any location wrapper from EXPR.
5799         (selftest::test_fold_for_warn): New function.
5800         (selftest::c_common_c_tests): New function.
5801         (selftest::c_family_tests): Call it, and
5802         selftest::c_pretty_print_c_tests.
5803         * c-common.h (selftest::c_pretty_print_c_tests): New decl.
5804         * c-format.c (check_format_arg): Convert VAR_P check to a
5805         fold_for_warn.
5806         * c-pretty-print.c: Include "selftest.h".
5807         (pp_c_cast_expression): Don't print casts for location wrappers.
5808         (selftest::assert_c_pretty_printer_output): New function.
5809         (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
5810         (selftest::test_location_wrappers): New function.
5811         (selftest::c_pretty_print_c_tests): New function.
5812         * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
5814 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
5815             Alan Hayward  <alan.hayward@arm.com>
5816             David Sherwood  <david.sherwood@arm.com>
5818         * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
5820 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
5821             Alan Hayward  <alan.hayward@arm.com>
5822             David Sherwood  <david.sherwood@arm.com>
5824         * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
5825         as polynomial.
5827 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
5828             Alan Hayward  <alan.hayward@arm.com>
5829             David Sherwood  <david.sherwood@arm.com>
5831         * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
5832         (convert_vector_to_array_for_subscript): Handle polynomial
5833         TYPE_VECTOR_SUBPARTS.
5834         (c_common_type_for_mode): Check valid_vector_subparts_p.
5835         * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
5836         VECTOR_CST_NELTS.
5838 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
5840         Update copyright years.
5842 2017-12-22  Mike Stump  <mikestump@comcast.net>
5843             Eric Botcazou  <ebotcazou@adacore.com>
5845         * c-pragma.c (init_pragma): Register pragma GCC unroll.
5846         * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
5848 2017-12-22  Alexandre Oliva  <aoliva@redhat.com>
5850         PR debug/83527
5851         PR debug/83419
5852         * c-semantics.c (only_debug_stmts_after_p): New.
5853         (pop_stmt_list): Clear side effects in debug-only stmt list.
5854         Check for single nondebug stmt followed by debug stmts only.
5856 2017-12-21  Alexandre Oliva  <aoliva@redhat.com>
5858         PR debug/83419
5859         * c-semantics.c (pop_stmt_list): Propagate side effects from
5860         single nondebug stmt to container list.
5862 2017-12-19  Jakub Jelinek  <jakub@redhat.com>
5864         * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
5865         conditions with typical order conditions.
5867 2017-12-18  Marek Polacek  <polacek@redhat.com>
5869         * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
5870         not in effect.
5872 2017-12-17  Martin Sebor  <msebor@redhat.com>
5874         * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
5875         an error for attribute warn_if_not_aligned.
5877 2017-12-16  Martin Sebor  <msebor@redhat.com>
5879         PR tree-optimization/78918
5880         * c-common.c (check_function_restrict): Avoid checking built-ins.
5881         * c.opt (-Wrestrict): Include in -Wall.
5883 2017-12-15  Jakub Jelinek  <jakub@redhat.com>
5885         * c-attribs.c (c_common_attribute_table,
5886         c_common_format_attribute_table): Swap affects_type_identity
5887         and handler fields, adjust comments.
5889 2017-12-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5891         * c.opt (Wcast-function-type): New warning option.
5892         * c-lex.c (get_fileinfo): Avoid warning.
5893         * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
5895 2017-12-14  Qing Zhao  <qing.zhao@oracle.com>
5897         PR middle_end/79538
5898         * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
5899         Adjust the size of buf1 and buf2, add a new buf to avoid
5900         format-overflow warning.
5902 2017-12-12  Alexandre Oliva  <aoliva@redhat.com>
5904         * c-semantics.c (pop_stmt_list): Move begin stmt marker into
5905         subsequent statement list.
5907 2017-12-07  Martin Sebor  <msebor@redhat.com>
5909         PR c/81544
5910         PR c/81566
5911         * c-attribs.c (attr_aligned_exclusions): New array.
5912         (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
5913         (attr_common_exclusions, attr_const_pure_exclusions): Same.
5914         (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
5915         (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
5916         (attr_warn_unused_result_exclusions): Same.
5917         (handle_hot_attribute, handle_cold_attribute): Simplify.
5918         (handle_const_attribute): Warn on function returning void.
5919         (handle_pure_attribute): Same.
5920         (handle_aligned_attribute): Diagnose conflicting attribute
5921         specifications.
5922         * c-warn.c (diagnose_mismatched_attributes): Simplify.
5924 2017-12-06  David Malcolm  <dmalcolm@redhat.com>
5926         PR c/83236
5927         * c-common.c (selftest::c_family_tests): Call
5928         selftest::c_spellcheck_cc_tests.
5929         * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
5930         * c-spellcheck.cc: Include "selftest.h".
5931         (name_reserved_for_implementation_p): New function.
5932         (should_suggest_as_macro_p): New function.
5933         (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
5934         should_suggest_as_macro_p and call it.
5935         (selftest::test_name_reserved_for_implementation_p): New function.
5936         (selftest::c_spellcheck_cc_tests): New function.
5937         * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
5939 2017-12-06  David Malcolm  <dmalcolm@redhat.com>
5941         * c-spellcheck.cc: New file, taken from macro-handling code in
5942         spellcheck-tree.c.
5943         * c-spellcheck.h: New file, taken from macro-handling code in
5944         spellcheck-tree.h.
5946 2017-12-01  Jakub Jelinek  <jakub@redhat.com>
5948         * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
5949         attribute.
5950         (handle_simd_attribute): Don't check for "cilk simd function"
5951         attribute.  Reindent, formatting changes.
5953 2017-11-30  Julia Koval  <julia.koval@intel.com>
5955         * c-common.h (inv_list): Remove.
5957 2017-11-28  Jakub Jelinek  <jakub@redhat.com>
5959         PR sanitizer/81275
5960         * c-common.c (c_switch_covers_all_cases_p_1,
5961         c_switch_covers_all_cases_p): New functions.
5962         * c-common.h (c_switch_covers_all_cases_p): Declare.
5964 2017-11-28  Julia Koval  <julia.koval@intel.com>
5965             Sebastian Peryt  <sebastian.peryt@intel.com>
5967         * array-notation-common.c: Delete.
5968         * c-cilkplus.c: Ditto.
5969         * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
5970         * c-common.def (ARRAY_NOTATION_REF): Remove.
5971         * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
5972         build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
5973         c_validate_cilk_plus_loop, cilkplus_an_parts,
5974         cilk_ignorable_spawn_rhs_op,
5975         cilk_recognize_spawn): Remove.
5976         * c-gimplify.c (CILK_SPAWN_STMT): Remove.
5977         * c-omp.c: Remove CILK_SIMD check.
5978         * c-pragma.c: Ditto.
5979         * c-pragma.h: Remove CILK related pragmas.
5980         * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
5981         ARRAY_NOTATION_REF condition.
5982         (c_pretty_printer::expression): Ditto.
5983         * c.opt (fcilkplus): Remove.
5984         * cilk.c: Delete.
5986 2017-11-21  Marc Glisse  <marc.glisse@inria.fr>
5988         * c-pretty-print.c (pp_c_additive_expression,
5989         c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
5991 2017-11-21  Jakub Jelinek  <jakub@redhat.com>
5993         * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
5995         PR c++/83059
5996         * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
5997         instead of tree_to_uhwi, formatting fix.
5999 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
6001         PR c/81404
6002         * known-headers.cc: New file, based on material from c/c-decl.c.
6003         (suggest_missing_header): Copied as-is.
6004         (get_stdlib_header_for_name): New, based on get_c_name_hint but
6005         heavily edited to add C++ support.  Add some knowledge about
6006         <limits.h>, <stdint.h>, and <wchar.h>.
6007         * known-headers.h: Likewise.
6009 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
6011         * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
6012         (lookup_name_fuzzy): Likewise.  Convert return type from
6013         const char * to name_hint.  Add location_t param.
6014         * name-hint.h: New header.
6016 2017-11-19  Jakub Jelinek  <jakub@redhat.com>
6018         PR c/66618
6019         PR c/69960
6020         * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
6022 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
6024         * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
6025         expected publication date of C17.
6026         (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
6028 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
6030         PR c/81156
6031         * c-common.c (c_common_reswords): Add __builtin_tgmath.
6032         * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
6034 2017-11-10  Martin Sebor  <msebor@redhat.com>
6036         PR c/81117
6037         * c-common.c (catenate_strings): Use memcpy instead of strncpy.
6038         * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
6039         * c.opt (-Wstringop-truncation): New option.
6041 2017-11-06  Martin Liska  <mliska@suse.cz>
6043         PR middle-end/82404
6044         * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
6045         FE.
6046         * c.opt: Set default value of warn_return_type.
6048 2017-10-31  David Malcolm  <dmalcolm@redhat.com>
6050         * c-common.c (binary_op_error): Update for renaming of
6051         error_at_rich_loc.
6052         (c_parse_error): Likewise.
6053         * c-warn.c (warn_logical_not_parentheses): Likewise for
6054         renaming of inform_at_rich_loc.
6055         (warn_for_restrict): Likewise for renaming of
6056         warning_at_rich_loc_n.
6058 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
6060         * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
6061         * c-opts.c (set_std_c17): New function.
6062         (c_common_init_options): Use gnu17 as default C version.
6063         (c_common_handle_option): Handle -std=c17 and -std=gnu17.
6065 2017-10-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
6067         * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
6068         (c_cpp_builtins): If a machine has a fast fma _Float<N> and
6069         _Float<N>X variant, define __FP_FAST_FMA<N> and/or
6070         __FP_FAST_FMA<N>X.
6072 2017-10-23  Marek Polacek  <polacek@redhat.com>
6074         PR c/82681
6075         * c-warn.c (warnings_for_convert_and_check): Fix typos.
6077 2017-10-19  Eric Botcazou  <ebotcazou@adacore.com>
6079         * c-common.c (check_builtin_function_arguments): Also check arguments
6080         of __builtin_alloca_with_align_and_max.
6082 2017-10-17  David Malcolm  <dmalcolm@redhat.com>
6084         * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
6085         rather than NULL to format_warning_va.
6086         (check_format_types): Likewise when calling format_type_warning.
6087         Remove code to extract source_ranges and source_range * in favor
6088         of just a location_t.
6089         (format_type_warning): Convert source_range * param to a
6090         location_t.
6092 2017-10-13  Jakub Jelinek  <jakub@redhat.com>
6094         * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
6095         [LR]SHIFT_EXPR.
6097 2017-10-12  David Malcolm  <dmalcolm@redhat.com>
6099         * c-common.c (enum missing_token_insertion_kind): New enum.
6100         (get_missing_token_insertion_kind): New function.
6101         (maybe_suggest_missing_token_insertion): New function.
6102         * c-common.h (maybe_suggest_missing_token_insertion): New decl.
6104 2017-10-11  Nathan Sidwell  <nathan@acm.org>
6106         * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
6107         (c_common_handle_option): Update incpath_kind names.
6109 2017-10-11  Martin Liska  <mliska@suse.cz>
6111         PR sanitizer/82490
6112         * c-attribs.c (handle_no_sanitize_attribute): Report directly
6113         Wattributes warning.
6115 2017-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
6117         * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
6118         operating on trees as wide_ints.
6119         * c-common.c (pointer_int_sum): Likewise.
6120         * c-pretty-print.c (pp_c_integer_constant): Likewise.
6121         * c-warn.c (match_case_to_enum_1): Likewise.
6122         (c_do_switch_warnings): Likewise.
6123         (maybe_warn_shift_overflow): Likewise.
6125 2017-10-10  Jakub Jelinek  <jakub@redhat.com>
6127         PR c/82437
6128         * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
6129         instead of wide_int::from.
6131 2017-10-06  Jakub Jelinek  <jakub@redhat.com>
6133         PR c/82437
6134         * c-warn.c (warn_tautological_bitwise_comparison): Instead of
6135         using to_widest use wide_int with the larger of the two precisions.
6137 2017-10-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6139         * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
6140         functions.
6142 2017-10-02  Richard Sandiford  <richard.sandiford@linaro.org>
6144         * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
6145         when combining the original unconverted comparison operands.
6147 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
6149         * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
6150         attribute.
6152 2017-09-29  Eric Botcazou  <ebotcazou@adacore.com>
6154         * c-ada-spec.c (to_ada_name): Add index parameter.
6155         (pp_ada_tree_identifier): Likewise.
6156         (dump_ada_macros): Adjust call to to_ada_name.
6157         (struct overloaded_name_hash): New type.
6158         (struct overloaded_name_hasher): Likewise.
6159         (overloaded_names): New hash table.
6160         (compute_overloading_index): New function.
6161         (dump_ada_decl_name): Call it and pass the result to
6162         pp_ada_tree_identifier.
6163         (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
6164         (dump_ada_function_declaration): Likewise.
6165         (dump_generic_ada_node): Likewise.
6166         (print_constructor): Likewise.
6167         (print_destructor): Likewise.
6168         (dump_ada_specs): Delete overloaded_names table.
6170 2017-09-29  Eric Botcazou  <ebotcazou@adacore.com>
6172         * c-ada-spec.c (max_ada_macros): Move around.
6173         (store_ada_macro_index): Likewise.
6174         (source_file): Rename into...
6175         (macro_source_file): ...this.
6176         (count_ada_macro): Move around.
6177         (store_ada_macro): Likewise.
6178         (compare_macro): Likewise.
6179         (print_ada_macros): Merge in...
6180         (dump_ada_macros): ...this.
6181         (source_file_base): Rename into...
6182         (current_source_file): ...this.
6183         (print_comment): Move around.
6184         (dump_ada_nodes): Call dump_ada_declaration directly.
6185         (struct with): Change type of limited field to bool.
6186         (append_withs): Change type of limited_access parameter to bool.
6187         (pp_ada_tree_identifie): Likewise.
6188         (dump_ada_decl_nam): Likewise.
6189         (dump_generic_ada_node): Likewise.  Do not print the return type.
6190         (to_ada_name): Change type of space_found parameter to bool.
6191         (dump_ada_function_declaration): Return void and change type of
6192         parameters to bool.  Also print the return type for a function.
6193         (print_ada_methods): Rename into...
6194         (dump_ada_methods): ...this.
6195         (print_ada_declaration): Rename into ...
6196         (dump_ada_declaration): ...this.  Do not print the return type.
6197         (print_ada_struct_decl): Rename into...
6198         (dump_ada_struct_decl): ...this.
6200 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
6202         * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
6203         rather than DECL_INITIAL.
6204         (common_handle_aligned_attribute): Likewise.
6206 2017-09-20  Alexandre Oliva  <aoliva@redhat.com>
6208         * c.opt (gen-decls): Add RejectNegative.
6210 2017-09-15  Andrew Sutton  <andrew.n.sutton@gmail.com>
6211             Jakub Jelinek  <jakub@redhat.com>
6213         Add support for -std=c++2a.
6214         * c-common.h (cxx_dialect): Add cxx2a as a dialect.
6215         * opt.c: Add options for -std=c++2a and -std=gnu++2a.
6216         * c-opts.c (set_std_cxx2a): New.
6217         (c_common_handle_option): Set options when -std=c++2a is enabled.
6218         (c_common_post_options): Adjust comments.
6219         (set_std_cxx14, set_std_cxx17): Likewise.
6221 2017-09-15  Eric Botcazou  <ebotcazou@adacore.com>
6223         * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
6224         message for non-uniform endianness and issue a warning in C++.
6226 2017-09-15  Jakub Jelinek  <jakub@redhat.com>
6228         * c.opt (Wc++1z-compat): Change from option to undocumented alias.
6229         (Wc++17-compat): Change from undocumented alias to option.
6230         (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
6231         change C++1z to C++17 in description.
6232         (std=c++1z, std=gnu++1z): Change from option to undocumented
6233         deprecated alias.
6234         (std=c++17, std=gnu++17): Change from undocumented alias to option.
6235         Adjust description.
6236         * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
6237         * c-opts.c (set_std_cxx1z): Rename to ...
6238         (set_std_cxx17): ... this.
6239         (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
6240         and OPT_std_gnu__1z to OPT_std_gnu__17.  Adjust set_std_cxx1z
6241         caller.
6242         (c_common_post_options): Use cxx17 instead of cxx1z.  Adjust
6243         comments.
6245 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
6247         * c-attribs.c (common_handle_aligned_attribute): Don't warn
6248         function alignment if warn_if_not_aligned_p is true.
6250 2017-09-12  Nathan Sidwell  <nathan@acm.org>
6252         * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
6253         resort_sorted_fields): Move to c/c-decl.c.
6254         * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
6255         (struct sorted_fields_type): Move to c/c-lang.h.
6257 2017-09-09  Jonathan Wakely  <jwakely@redhat.com>
6259         PR c++/81852
6260         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
6262 2017-09-04  Marek Polacek  <polacek@redhat.com>
6264         PR c/81783
6265         * c-warn.c (warn_tautological_bitwise_comparison): New function.
6266         (warn_tautological_cmp): Call it.
6268 2017-09-01  Boris Kolpackov  <boris@codesynthesis.com>
6270         * c-opts.c (c_common_finish): Write dependency information even if
6271         there are errors.
6273 2017-09-01  Jakub Jelinek  <jakub@redhat.com>
6275         PR c/81887
6276         * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
6277         (omp_pragmas_simd): ... here.
6278         * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
6279         create new clauses list containing just simd clause.
6281 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
6282             Alan Hayward  <alan.hayward@arm.com>
6283             David Sherwood  <david.sherwood@arm.com>
6285         * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
6286         into scalar_mode_supported_p call.
6287         (handle_mode_attribute): Update call to scalar_mode_supported_p.
6289 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
6290             Alan Hayward  <alan.hayward@arm.com>
6291             David Sherwood  <david.sherwood@arm.com>
6293         * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
6294         for the mode iterator.
6296 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
6297             Alan Hayward  <alan.hayward@arm.com>
6298             David Sherwood  <david.sherwood@arm.com>
6300         * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
6301         * c-common.c (c_build_vec_perm_expr): Likewise.
6303 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
6304             Alan Hayward  <alan.hayward@arm.com>
6305             David Sherwood  <david.sherwood@arm.com>
6307         * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
6309 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
6310             Alan Hayward  <alan.hayward@arm.com>
6311             David Sherwood  <david.sherwood@arm.com>
6313         * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
6314         before calling targetm.addr_space.valid_pointer_mode.
6316 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
6317             Alan Hayward  <alan.hayward@arm.com>
6318             David Sherwood  <david.sherwood@arm.com>
6320         * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
6322 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
6323             Alan Hayward  <alan.hayward@arm.com>
6324             David Sherwood  <david.sherwood@arm.com>
6326         * c-common.c (c_common_fixed_point_type_for_size): Use new mode
6327         iterators.
6328         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
6330 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
6331             Alan Hayward  <alan.hayward@arm.com>
6332             David Sherwood  <david.sherwood@arm.com>
6334         * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
6335         case statements.
6337 2017-08-29  Martin Liska  <mliska@suse.cz>
6339         PR other/39851
6340         * c-common.c (parse_optimize_options): Add argument to function
6341         call.
6342         * c-pragma.c (handle_pragma_diagnostic): Likewise.
6344 2017-08-24  David Malcolm  <dmalcolm@redhat.com>
6346         * c-lex.c (interpret_float): Use token location
6347         when building an EXCESS_PRECISION_EXPR.
6349 2017-08-21  David Malcolm  <dmalcolm@redhat.com>
6351         * c-common.c (check_function_arguments): Add "arglogs" param; pass
6352         it to check_function_format.
6353         * c-common.h (check_function_arguments): Add vec<location_t> *
6354         param.
6355         (check_function_format): Likewise.
6356         * c-format.c (struct format_check_context): Add field "arglocs".
6357         (check_function_format): Add param "arglocs"; pass it to
6358         check_format_info.
6359         (check_format_info): Add param "arglocs"; use it to initialize
6360         new field of format_ctx.
6361         (check_format_arg): Pass format_ctx->arglocs to new param of
6362         check_format_info_main.
6363         (class argument_parser): New field "arglocs".
6364         (argument_parser::argument_parser): Add "arglocs_" param and use
6365         it to initialize new field.
6366         (argument_parser::check_argument_type): Pass new arglocs field to
6367         check_format_types.
6368         (check_format_info_main): Add param "arglocs", and use it when
6369         constructing arg_parser.
6370         (check_format_types): Add param "arglocs"; use it if non-NULL when
6371         !EXPR_HAS_LOCATION (cur_param) to get at location information.
6373 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
6375         PR c/53037
6376         * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
6377         (c_common_attribute_table): Add warn_if_not_aligned.
6378         (handle_aligned_attribute): Renamed to ...
6379         (common_handle_aligned_attribute): Remove argument, name, and add
6380         argument, warn_if_not_aligned.  Handle warn_if_not_aligned.
6381         (handle_aligned_attribute): New.
6382         * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
6384 2017-08-14  Martin Sebor  <msebor@redhat.com>
6386         PR c/81117
6387         * c-attribs.c (c_common_attribute_table): Add nonstring entry.
6388         (handle_nonstring_attribute): New function.
6390 2017-08-14  Martin Sebor  <msebor@redhat.com>
6392         PR c/81117
6393         * c-format.h (T89_G): New macro.
6394         * c-format.c (local_gcall_ptr_node): New variable.
6395         (init_dynamic_diag_info): Initialize it.
6397 2017-08-11  Martin Liska  <mliska@suse.cz>
6399         * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
6400         TARGET_SUPPORTS_ALIASES.
6402 2017-08-10  David Malcolm  <dmalcolm@redhat.com>
6404         * c-common.c (c_parse_error): Add rich_location * param, using it
6405         rather implicitly using input_location.
6406         * c-common.h (c_parse_error): Add rich_location * param.
6408 2017-08-09  Marek Polacek  <polacek@redhat.com>
6410         * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
6411         (c_common_truthvalue_conversion): Likewise.
6412         * c-omp.c (c_finish_omp_atomic): Likewise.
6413         * c-common.h (build_binary_op): Update declaration.
6415 2017-08-08  Martin Liska  <mliska@suse.cz>
6417         * c-ada-spec.c: Include header files.
6418         * c-ubsan.c: Likewise.
6419         * c-warn.c: Likewise.
6421 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
6423         PR c/69389
6424         * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
6426 2017-08-07  Eric Botcazou  <ebotcazou@adacore.com>
6428         * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
6429         (print_ada_methods): Likewise.
6430         (print_ada_declaration): Likewise.
6432 2017-08-07  Martin Liska  <mliska@suse.cz>
6434         * array-notation-common.c: Add new includes.
6435         * c-format.c( handle_format_attribute): Canonicalize a format
6436         function name.
6437         * c-lex.c (c_common_has_attribute): Canonicalize name of an
6438         attribute.
6439         * c-pretty-print.c: Add new include.
6441 2017-08-05  Eric Botcazou  <ebotcazou@adacore.com>
6443         * c-ada-spec.c (has_static_fields): Look only into variables.
6444         (print_constructor): Add TYPE parameter and use it for the name.
6445         (print_destructor): Likewise.
6446         (print_ada_declaration): Adjust to new constructor/destructor names.
6447         Adjust calls to print_constructor and print_destructor.
6448         (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
6449         Look only into variables in the final loop.
6451 2017-08-01  Eric Botcazou  <ebotcazou@adacore.com>
6453         * c-ada-spec.c (has_static_fields): Look only into fields.
6454         (dump_generic_ada_node): Small tweak.
6455         (dump_nested_types): Look only into fields.
6456         (print_ada_declaration): Look only into methods.  Small tweak.
6457         (print_ada_struct_decl): Look only into fields.  Use DECL_VIRTUAL_P.
6459 2017-08-01  Eric Botcazou  <ebotcazou@adacore.com>
6461         * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
6462         (dump_ada_function_declaration): Likewise.
6463         (dump_generic_ada_node): Likewise.
6464         (print_ada_declaration): Add support for const-qualified variables.
6466 2017-07-31  Martin Liska  <mliska@suse.cz>
6468         PR sanitize/81530
6469         * c-ubsan.c (ubsan_maybe_instrument_array_ref):
6470         Guard condition with flag_sanitize_p also with current_function_decl
6471         non-null equality.
6472         (ubsan_maybe_instrument_reference_or_call): Likewise.
6474 2017-07-30  Uros Bizjak  <ubizjak@gmail.com>
6476         * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
6478 2017-07-29  Eric Botcazou  <ebotcazou@adacore.com>
6480         * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
6481         for enumeral types.
6482         (print_ada_declaration): Add missing guard for record types.
6484 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
6486         PR c/45784
6487         * c-omp.c (c_finish_omp_for): If the condition is wrapped in
6488         rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
6489         new COMPOUND_EXPRs around the rhs of the comparison.
6491 2017-07-27  Marek Polacek  <polacek@redhat.com>
6493         PR c/81417
6494         * c-warn.c (warn_for_sign_compare): Tweak the warning message.  Print
6495         the types.
6497 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
6499         * c-attribs.c (c_common_attribute_table): Add noipa attribute.
6500         (handle_noipa_attribute): New function.
6502 2017-07-07  Torsten Duwe  <duwe@suse.de>
6504         * c-attribs.c (c_common_attribute_table): Add entry for
6505         "patchable_function_entry".
6507 2017-07-20  Nathan Sidwell  <nathan@acm.org>
6509         Remove TYPE_METHODS.
6510         * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
6511         dump_ada_template, print_ada_methods,
6512         print_ada_declaration): Member fns are on TYPE_FIELDS.
6514 2017-07-18  Nathan Sidwell  <nathan@acm.org>
6516         * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
6518 2017-07-14  David Malcolm  <dmalcolm@redhat.com>
6520         * c-common.c (try_to_locate_new_include_insertion_point): New
6521         function.
6522         (per_file_includes_t): New typedef.
6523         (added_includes_t): New typedef.
6524         (added_includes): New variable.
6525         (maybe_add_include_fixit): New function.
6526         * c-common.h (maybe_add_include_fixit): New decl.
6528 2017-07-10  Martin Sebor  <msebor@redhat.com>
6530         PR other/81345
6531         * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
6533 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
6535         * c-common.c (selftest::c_family_tests): New.
6536         * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
6537         (selftest::c_family_tests): New decl.
6539 2017-07-04  Marek Polacek  <polacek@redhat.com>
6541         PR c/81231
6542         * c-common.c (sync_resolve_size): Give error for pointers to incomplete
6543         types.
6545 2017-07-04  Marek Polacek  <polacek@redhat.com>
6547         * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
6549 2017-06-28  Martin Liska  <mliska@suse.cz>
6551         PR ipa/81128
6552         * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
6553         to a function declaration.
6555 2017-06-28  Martin Liska  <mliska@suse.cz>
6557         PR driver/79659
6558         * c.opt: Add IntegerRange to various options.
6560 2017-06-26  Marek Polacek  <polacek@redhat.com>
6562         PR c/80116
6563         * c-common.h (warn_for_multistatement_macros): Declare.
6564         * c-warn.c: Include "c-family/c-indentation.h".
6565         (warn_for_multistatement_macros): New function.
6566         * c.opt (Wmultistatement-macros): New option.
6567         * c-indentation.c (guard_tinfo_to_string): No longer static.
6568         Change the parameter type to "enum rid".  Handle RID_SWITCH.
6569         * c-indentation.h (guard_tinfo_to_string): Declare.
6571 2017-06-23  Marc Glisse  <marc.glisse@inria.fr>
6573         * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
6575 2017-06-15  Martin Sebor  <msebor@redhat.com>
6577         PR c++/80560
6578         * c.opt (-Wclass-memaccess): New option.
6580 2017-06-14  Boris Kolpackov  <boris@codesynthesis.com>
6582         * c-opts.c (c_common_finish): Handle '-' special value to -MF.
6584 2017-06-13  Marek Polacek  <polacek@redhat.com>
6586         PR objc/80949
6587         * c-warn.c (do_warn_duplicated_branches): Return if any of the
6588         branches is null.
6590 2017-06-13  Martin Liska  <mliska@suse.cz>
6592         PR sanitize/78204
6593         * c-attribs.c (add_no_sanitize_value): New function.
6594         (handle_no_sanitize_attribute): Likewise.
6595         (handle_no_sanitize_address_attribute): Use the function.
6596         (handle_no_sanitize_thread_attribute): New function.
6597         (handle_no_address_safety_analysis_attribute): Use
6598         add_no_sanitize_value.
6599         (handle_no_sanitize_undefined_attribute): Likewise.
6600         * c-common.h: Declare new functions.
6601         * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
6602         (ubsan_instrument_shift): Likewise.
6603         (ubsan_instrument_bounds): Likewise.
6604         (ubsan_maybe_instrument_array_ref): Likewise.
6605         (ubsan_maybe_instrument_reference_or_call): Likewise.
6607 2017-06-11  Jason Merrill  <jason@redhat.com>
6609         * c-ada-spec.c, c-pragma.c: Use id_equal.
6611 2017-06-04  Marek Polacek  <polacek@redhat.com>
6613         PR c/80919
6614         * c-format.c (matching_type_p): Return false if any of the types
6615         requires structural equality.
6617 2017-06-02  Martin Sebor  <msebor@redhat.com>
6619         PR c/80892
6620         * c-warn.c (conversion_warning): Use -Wconversion for integer
6621         conversion and -Wfloat-conversion for floating one.
6623 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6625         * c.opt (Wsizeof-pointer-div): New warning option.
6627 2017-06-01  Volker Reichelt  <v.reichelt@netcologne.de>
6629         * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
6630         (Wcatch-value=1): Enable by -Wall.
6632 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
6634         * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
6635         format_chars.
6636         * c.opt (fdiagnostics-show-template-tree): New option.
6637         (felide-type): New option.
6639 2017-05-25  Volker Reichelt  <v.reichelt@netcologne.de>
6641         * c.opt (Wcatch-value=): New C++ warning flag.
6643 2017-05-24  Nathan Sidwell  <nathan@acm.org>
6645         * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
6646         const casts to avoid warning.
6648 2017-05-24  Martin Sebor  <msebor@redhat.com>
6650         PR c/80731
6651         * c-common.h (unsafe_conversion_p): Add a function argument.
6652         * c-common.c (unsafe_conversion_p): Same.
6653         Add type names and values to diagnostics.
6654         (scalar_to_vector): Adjust.
6655         * c-warn.c (constant_expression_error): Add a function argument.
6656         Add type names and values to diagnostics.
6657         (conversion_warning): Add a function argument.
6658         Add type names and values to diagnostics.
6659         (warnings_for_convert_and_check): Same.
6661 2017-05-19  Jason Merrill  <jason@redhat.com>
6663         * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
6664         enumerators.
6666 2017-05-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6668         * c-format.c (locus): Move out of function scope,
6669         add GTY attribute.
6671 2017-05-19  Nathan Sidwell  <nathan@acm.org>
6673         * c-opts.c (class_dump_file, class_dump_flags): Delete.
6674         (c_common_parse_file): Remove class dump handling.
6675         (get_dump_info): Likewise.
6677 2017-05-19  Richard Biener  <rguenther@suse.de>
6679         PR c++/80593
6680         * c-warn.c (strict_aliasing_warning): Do not warn for accesses
6681         to alias-set zero memory.
6683 2017-05-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6685         * c-format.c (local_tree_type_node): Add GTY attribute.
6687 2017-05-18  Marek Polacek  <polacek@redhat.com>
6689         * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
6690         (c_common_fixed_point_type_for_size): Likewise.
6691         (c_common_type_for_mode): Likewise.
6692         (shorten_compare): Likewise.
6693         (c_promoting_integer_type_p): Use false/true instead of 0/1.
6694         * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
6696 2017-05-18  Marek Polacek  <polacek@redhat.com>
6698         * c-common.c (self_promoting_args_p): Change the return type to bool.
6699         Use false/true instead of 0/1.
6700         * c-common.h (self_promoting_args_p): Update.
6702 2017-05-17  Marek Polacek  <polacek@redhat.com>
6704         * c-common.c: Use NULL_TREE instead of 0 where appropriate.
6705         * c-warn.c: Likewise.
6707 2017-05-17  Ville Voutilainen  <ville.voutilainen@gmail.com>
6709         Implement new C++ intrinsics __is_assignable and __is_constructible.
6710         * c-common.c (__is_assignable, __is_constructible): New.
6711         * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
6713 2017-05-17  Martin Liska  <mliska@suse.cz>
6715         * c-common.h: Introduce dump_flags_t type and
6716         use it instead of int type.
6717         * c-gimplify.c (c_genericize): Likewise.
6718         * c-opts.c: Likewise.
6720 2017-05-17  Marek Polacek  <polacek@redhat.com>
6722         * c-common.c (c_save_expr): Remove.
6723         (c_common_truthvalue_conversion): Remove a call to c_save_expr.
6724         * c-common.h (c_save_expr): Remove declaration.
6726 2017-05-09  Volker Reichelt  <v.reichelt@netcologne.de>
6728         PR c/35441
6729         * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
6730         MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
6731         (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
6732         (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
6733         RDIV_EXPR.
6734         (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
6736 2017-05-09  Marek Polacek  <polacek@redhat.com>
6738         PR c/80525
6739         * c-warn.c (unwrap_c_maybe_const): New.
6740         (warn_logical_operator): Call it.
6742 2017-05-09  Nathan Sidwell  <nathan@acm.org>
6744         * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
6745         * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
6747 2017-05-08  Martin Sebor  <msebor@redhat.com>
6749         PR translation/80280
6750         * c-format.h (struct format_flag_spec): Add new member.
6751         (T89_T): New macro.
6752         * c-format.c (local_tree_type_node): New global.
6753         (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
6754         (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
6755         (strfmon_flag_specs): Likewise.
6756         (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
6757         with distinct quoting properties.
6758         (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
6759         (flag_chars_t::validate): Add argument and handle bad quoting.
6760         (check_format_info_main): Handle quoting problems.
6761         (init_dynamic_diag_info): Simplify.
6763 2017-05-08  Jason Merrill  <jason@redhat.com>
6765         * c-opts.c (c_common_post_options): Update defaults for
6766         flag_abi_version and flag_abi_compat_version.
6768 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
6770         * c-common.c (c_cpp_error): Replace report_diagnostic
6771         with diagnostic_report_diagnostic.
6773 2017-05-04  Martin Sebor  <msebor@redhat.com>
6775         PR translation/80280
6776         * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
6777         (handle_weakref_attribute): Same.
6779 2017-05-03  Nathan Sidwell  <nathan@acm.org>
6781         Canonicalize canonical type hashing
6782         * c-common.c (complete_array_type): Use type_hash_canon.
6784 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
6786         PR c++/80038
6787         * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
6788         prototype.
6789         (cilk_install_body_pedigree_operations): Likewise.
6790         * cilk.c (cilk_set_spawn_marker): Mark functions that should be
6791         detatched.
6792         (cilk_gimplify_call_params_in_spawned_fn): Remove.
6793         (cilk_install_body_pedigree_operations): Likewise.
6794         (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
6795         unwrapping.
6797 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
6799         PR c++/80534
6800         * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
6801         flag on non-aggregate element types.
6803 2017-04-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6805         * c-common.c (c_type_hasher, type_hash_table): Remove.
6806         (c_common_get_alias_set): Remove unreachable code.
6807         * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
6809 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
6811         * c.opt (Wextra-semi): New C++ warning flag.
6813 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
6815         PR middle-end/80423
6816         * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
6818 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
6820         PR middle-end/79788
6821         PR middle-end/80375
6822         * c-common.c (c_common_type_for_mode): Don't handle
6823         widest_*_literal_type_node here.
6824         c_common_signed_or_unsigned_type): Likewise.
6825         (c_common_nodes_and_builtins): Set widest_*_literal_type_node
6826         to *intTI_type_node or *intDI_type_node depending on whether
6827         TImode is supported by the target or not.
6829 2017-04-10  Martin Liska  <mliska@suse.cz>
6831         PR sanitizer/80350
6832         * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
6833         doing an UBSAN check.
6835 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
6837         * c-warn.c (do_warn_double_promotion): Fix typo in comment.
6839 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
6841         PR c++/79572
6842         * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
6843         tree *.
6844         * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise.  Handle
6845         not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
6846         REFERENCE_TYPE.
6848 2017-03-31  David Malcolm  <dmalcolm@redhat.com>
6850         PR documentation/78732
6851         * c.opt (Wendif-labels): Fix description to refer to
6852         #else rather than #elif.
6854 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
6856         PR libstdc++/80251
6857         * c-common.h (enum rid): Add RID_IS_AGGREGATE.
6858         * c-common.c (c_common_reswords): Add __is_aggregate trait.
6860 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
6862         PR middle-end/80162
6863         * c-common.c (c_common_mark_addressable_vec): Don't set
6864         TREE_ADDRESSABLE on DECL_HARD_REGISTER.
6866 2017-03-21  Martin Sebor  <msebor@redhat.com>
6868         PR c++/79548
6869         * c-common.c (set_underlying_type): Mark type used only when
6870         original del is declared unused.
6872 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
6874         PR translation/79848
6875         * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
6876         "%qs".
6878 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
6880         PR c/79921
6881         * c-indentation.c (warn_for_misleading_indentation): Remove parens
6882         from inform's message, so that xgettext can locate it.
6884 2017-03-09  Marek Polacek  <polacek@redhat.com>
6886         PR c++/79962
6887         PR c++/79984
6888         * c-attribs.c (handle_nonnull_attribute): Save the result of default
6889         conversion to the attribute list.
6891 2017-03-09  Martin Liska  <mliska@suse.cz>
6893         * c-ada-spec.c (macro_length): Increment value instead of a pointer.
6895 2017-03-03  Jason Merrill  <jason@redhat.com>
6897         * c.opt (Wnoexcept-type): New.
6899 2017-03-02  Richard Biener  <rguenther@suse.de>
6901         PR c/79756
6902         * c-common.c (c_common_mark_addressable_vec): Look through
6903         C_MAYBE_CONST_EXPR.
6905 2017-02-28  Martin Liska  <mliska@suse.cz>
6907         * c.opt: Replace space with tabular for options of <number>
6908         type.
6910 2017-02-28  Martin Liska  <mliska@suse.cz>
6912         * c.opt: Fix --help=option -Q for options which are of
6913         an enum type.
6915 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
6917         PR c++/79588
6918         * c-common.c (check_function_restrict): New function.
6919         (check_function_arguments): Add FNDECL argument.  Call
6920         check_function_restrict if -Wrestrict.
6921         * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
6922         and NARGS.  Use auto_vec for ARG_POSITIONS, simplify.
6923         * c-common.h (check_function_arguments): Add FNDECL argument.
6924         (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
6926 2017-02-24  Eric Botcazou  <ebotcazou@adacore.com>
6928         * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
6929         treatment of parameters with pointer-to-tagged type and tidy up.
6930         (print_ada_methods): Remove the special treatment of C++ static member
6931         functions.
6933 2017-02-22  Martin Liska  <mliska@suse.cz>
6935         * c.opt: Replace inequality signs with square brackets
6936         for -Wnornalized.
6938 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
6940         PR c++/79641
6941         * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
6942         preserve quals.
6944 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
6946         * c-cppbuiltin.c (builtin_define_float_constants): Define
6947         __DECIMAL_DIG__ to the value for long double.
6949 2017-02-15  Marek Polacek  <polacek@redhat.com>
6951         PR c/79515
6952         * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
6953         conversion has occured.
6955 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
6957         * c-common.c (c_common_reswords): Add "__RTL".
6958         * c-common.h (enum rid): Add RID_RTL.
6960 2017-01-20  Marek Polacek  <polacek@redhat.com>
6962         PR c/64279
6963         * c-common.h (do_warn_duplicated_branches_r): Declare.
6964         * c-gimplify.c (c_genericize): Walk the function tree calling
6965         do_warn_duplicated_branches_r.
6966         * c-warn.c (expr_from_macro_expansion_r): New.
6967         (do_warn_duplicated_branches): New.
6968         (do_warn_duplicated_branches_r): New.
6969         * c.opt (Wduplicated-branches): New option.
6971 2017-01-17  David Malcolm  <dmalcolm@redhat.com>
6973         PR c++/71497
6974         * c-indentation.c (warn_for_misleading_indentation): Use the past
6975         subjunctive in the note.
6977 2017-01-17  Aldy Hernandez  <aldyh@redhat.com>
6979         PR c/79116
6980         * array-notation-common.c (cilkplus_extract_an_triplets): Convert
6981         start type to integer_type.
6983 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
6985         PR driver/49726
6986         * c.opt (gen-decls): Add Driver flag.
6988 2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
6990         Revert:
6991         2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
6993         PR c++/71737
6994         * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
6996 2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
6998         PR c++/71737
6999         * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
7001 2017-01-12  Martin Sebor  <msebor@redhat.com>
7003         (-Wformat-overflow): ...to this.
7005 2017-01-11  Martin Sebor  <msebor@redhat.com>
7007         PR c/78768
7008         * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
7009         Also enable for LTO.
7011 2017-01-10  Jason Merrill  <jason@redhat.com>
7013         Implement P0195R2, C++17 variadic using.
7014         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
7016 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
7018         PR translation/79019
7019         PR translation/79020
7020         * c.opt (Wnormalized=): Fix typo in description.
7022 2017-01-08  Martin Sebor  <msebor@redhat.com>
7024         PR middle-end/77708
7025         * c.opt (-Wformat-truncation): New option.
7027 2017-01-06  Alexandre Oliva  <aoliva@redhat.com>
7029         * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
7030         value to unsigned short to fit in 4 hex digits without
7031         warnings.
7033 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
7035         * c.opt (fsso-struct): Add 'native' value.
7037 2017-01-05  Martin Liska  <mliska@suse.cz>
7039         PR pch/78970
7040         * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
7041         header.
7043 2017-01-04  Marek Polacek  <polacek@redhat.com>
7045         PR c++/64767
7046         * c.opt (Wpointer-compare): New option.
7048 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
7050         PR driver/78957
7051         * c.opt (fsso-struct=): Add RejectNegative.
7053 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
7055         Update copyright years.
7057 2016-12-29  Martin Liska  <mliska@suse.cz>
7059         PR c/78933
7060         * c.opt (strong-eval-order): Add RejectNegative keyword.
7062 2016-12-22  Jason Merrill  <jason@redhat.com>
7064         Implement P0522R0, matching of template template arguments.
7065         * c-cppbuiltin.c (c_cpp_builtins): Define
7066         __cpp_template_template_args.
7068 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
7070         PR bootstrap/78817
7071         * c-common.c (struct nonnull_arg_ctx): New type.
7072         (check_function_nonnull): Return bool instead of void.  Use
7073         nonnull_arg_ctx as context rather than just location_t.
7074         (check_nonnull_arg): Adjust for the new context type, set
7075         warned_p to true if a warning has been diagnosed.
7076         (check_function_arguments): Return bool instead of void.
7077         * c-common.h (check_function_arguments): Adjust prototype.
7079 2016-12-21  Jason Merrill  <jason@redhat.com>
7081         * c.opt (-fnew-ttp-matching): New flag.
7082         * c-opts.c (c_common_post_options): Default on if -std=c++1z.
7084 2016-12-14  Martin Jambor  <mjambor@suse.cz>
7086         * c-omp.c: Include omp-general.h instead of omp-low.h.
7087         (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
7088         name.
7090 2016-12-14  Martin Sebor  <msebor@redhat.com>
7092         PR c/17308
7093         * c-common.c (check_nonnull_arg): Disable when optimization
7094         is enabled.
7096 2016-12-12  Marek Polacek  <polacek@redhat.com>
7098         PR c++/78647
7099         * c-common.c (attribute_fallthrough_p): Return false for
7100         error_mark_node.
7102 2016-12-08  Martin Sebor  <msebor@redhat.com>
7104         PR c/78284
7105         * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
7107 2016-12-08  Martin Sebor  <msebor@redhat.com>
7109         PR c/78165
7110         * c-pretty-print (pp_c_integer_constant): Avoid formatting type
7111         suffix.
7113 2016-12-07  Martin Sebor  <msebor@redhat.com>
7115         PR c/53562
7116         PR middle-end/77784
7117         PR middle-end/78149
7118         PR middle-end/78138
7119         * c.opt (-Wstringop-overflow): New option.
7121 2016-12-02  Maxim Ostapenko  <m.ostapenko@samsung.com>
7123         * c-attribs.c (asan odr indicator): New attribute.
7124         (handle_asan_odr_indicator_attribute): New function.
7126 2016-11-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7128         * c-common.c (c_common_nodes_and_builtins): Remove initialization of
7129         ptrdiff_type_node;
7131 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
7133         * c-common.c (excess_precision_mode_join): New.
7134         (c_ts18661_flt_eval_method): New.
7135         (c_c11_flt_eval_method): Likewise.
7136         (c_flt_eval_method): Likewise.
7137         * c-common.h (excess_precision_mode_join): New.
7138         (c_flt_eval_method): Likewise.
7139         * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
7140         (cpp_iec_559_value): Call it.
7141         (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
7142         call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
7143         __FLT_EVAL_METHOD_TS_18661_3__.
7145 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
7147         * c-opts.c (c_common_post_options): Add logic to handle the default
7148         case for -fpermitted-flt-eval-methods.
7150 2016-11-23  Paolo Bonzini  <bonzini@gnu.org>
7152         * c.opt (Wexpansion-to-defined): New.
7154 2016-11-23  Jakub Jelinek  <jakub@redhat.com>
7156         PR target/78451
7157         * c-pragma.c (handle_pragma_target): Don't replace
7158         current_target_pragma, but chainon the new args to the current one.
7160 2016-11-22  Nathan Sidwell  <nathan@acm.org>
7162         * array-notation-common.c (cilkplus_extract_an_trplets): Fix
7163         indentation and formatting.
7165 2016-11-21  Martin Sebor  <msebor@redhat.com>
7167         * c.opt (-fprintf-return-value): Enable by default.
7169 2016-11-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7171         PR c++/71973
7172         * c.opt (-Wbuiltin-declaration-mismatch): New warning.
7173         * c-common.c (c_common_nodes_and_builtins): Initialize
7174         const_tm_ptr_type_node.
7176 2016-11-16  Marek Polacek  <polacek@redhat.com>
7178         PR c/78285
7179         * c-common.c (c_add_case_label): Turn error_at calls into inform.
7181 2016-11-14  Jakub Jelinek  <jakub@redhat.com>
7183         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
7185 2016-11-14  Prasad Ghangal  <prasad.ghangal@gmail.com>
7186             Richard Biener  <rguenther@suse.de>
7188         * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
7189         * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
7190         * c.opt (fgimple): New option.
7192 2016-11-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7194         PR c/35503
7195         * c-common.h (warn_for_restrict): Declare.
7196         * c-warn.c: Include gcc-rich-location.h.
7197         (warn_for_restrict): New function.
7198         * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
7199         (gcc_cdiag_char_table): Likewise.
7200         (gcc_cxxdiag_char_table): Likewise.
7201         * c.opt (Wrestrict): New option.
7203 2016-11-13  Eric Botcazou  <ebotcazou@adacore.com>
7205         * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
7206         for nested types only if the type is a record or union and dump SLOC.
7208 2016-11-09  Jason Merrill  <jason@redhat.com>
7210         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
7212 2016-11-09  Jakub Jelinek  <jakub@redhat.com>
7214         * c-ubsan.c (ubsan_instrument_shift): Handle split
7215         -fsanitize=shift-base and -fsanitize=shift-exponent.
7217 2016-11-07  Jason Merrill  <jason@redhat.com>
7219         * c.opt (Wc++1z-compat): New.
7220         * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
7222 2016-11-07  Martin Liska  <mliska@suse.cz>
7224         * c-warn.c (warn_for_unused_label): Save all labels used
7225         in goto or in &label.
7227 2016-11-03  Jason Merrill  <jason@redhat.com>
7229         * c-cppbuiltin.c (c_cpp_builtins): Correct
7230         __cpp_inheriting_constructors.
7232 2016-11-01  Jason Merrill  <jason@redhat.com>
7234         * c-cppbuiltin.c (c_cpp_builtins): Update
7235         __cpp_inheriting_constructors.
7237         * c.opt (-fnew-inheriting-ctors): New.
7238         * c-opts.c: Default to on for ABI 11+.
7240 2016-10-31  Jakub Jelinek  <jakub@redhat.com>
7242         PR c++/77948
7243         * c.opt (fext-numeric-literals): Add Var and Init.
7244         * c-opts.c (c_common_handle_option): Don't clear
7245         cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
7246         (c_common_post_options): Clear it here if not set
7247         explicitly.
7249 2016-10-28  Aldy Hernandez  <aldyh@redhat.com>
7251         PR debug/77773
7252         * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
7253         if NULL.
7255 2016-10-25  Jakub Jelinek  <jakub@redhat.com>
7257         * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
7258         * c-common.c (c_common_reswords): Add __builtin_launder.
7260 2016-10-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7262         * c-common.c (c_common_truthvalue_conversion): Warn for
7263         multiplications in boolean context.  Fix the quoting of '<<' and '<'
7264         in the shift warning.
7266 2016-10-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7268         * c-common.c (c_common_truthvalue_conversion): Fix the comment.
7270 2016-10-20  Jason Merrill  <jason@redhat.com>
7272         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
7274 2016-10-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7276         * c-common.c (c_common_truthvalue_conversion): Warn only for signed
7277         integer shift ops in boolean context.
7279 2016-10-18  Aldy Hernandez  <aldyh@redhat.com>
7281         * c.opt (Walloca): New.
7282         (Walloca-larger-than=): New.
7283         (Wvla-larger-than=): New.
7285 2016-10-17  Marek Polacek  <polacek@redhat.com>
7287         * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
7288         Return immediately when finding a match.
7289         (warn_tautological_cmp): Remove a boolean variable that is no longer
7290         needed.
7292 2016-10-17  Marek Polacek  <polacek@redhat.com>
7294         * c-attribs.c: New file.
7295         * c-common.c: Move attributes handling to c-attribs.c.
7296         (get_nonnull_operand): No longer static.
7297         * c-common.h: Move the declarations from c-attribs.c to its own section.
7299 2016-10-14  Jason Merrill  <jason@redhat.com>
7301         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
7302         and __cpp_deduction_guides.
7304 2016-10-13  Jason Merrill  <jason@redhat.com>
7306         * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
7308 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7310         * c-cppbuiltin.c: Include memmodel.h.
7311         * c-opts.c: Likewise.
7312         * c-pragma.c: Likewise.
7313         * c-warn.c: Likewise.
7315 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
7317         * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
7318         (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
7319         * c-opts.c (sanitize_cpp_opts): Initialize
7320         cpp_opts->cpp_warn_implicit_fallthrough.
7322 2016-10-11  Marek Polacek  <polacek@redhat.com>
7324         * c-common.c (warning_candidate_p): Change the return type to bool
7325         and return true/false instead of 1/0.
7326         (vector_mode_valid_p): Likewise.
7328 2016-10-11  Marek Polacek  <polacek@redhat.com>
7330         * c-common.c (fold_for_warn): No longer static.
7331         (bool_promoted_to_int_p): Likewise.
7332         (c_common_get_narrower): Likewise.
7333         (constant_expression_warning): Move to c-warn.c.
7334         (constant_expression_error): Likewise.
7335         (overflow_warning): Likewise.
7336         (warn_logical_operator): Likewise.
7337         (find_array_ref_with_const_idx_r): Likewise.
7338         (warn_tautological_cmp): Likewise.
7339         (expr_has_boolean_operands_p): Likewise.
7340         (warn_logical_not_parentheses): Likewise.
7341         (warn_if_unused_value): Likewise.
7342         (strict_aliasing_warning): Likewise.
7343         (sizeof_pointer_memaccess_warning): Likewise.
7344         (check_main_parameter_types): Likewise.
7345         (conversion_warning): Likewise.
7346         (warnings_for_convert_and_check): Likewise.
7347         (match_case_to_enum_1): Likewise.
7348         (match_case_to_enum): Likewise.
7349         (c_do_switch_warnings): Likewise.
7350         (warn_for_omitted_condop): Likewise.
7351         (readonly_error): Likewise.
7352         (lvalue_error): Likewise.
7353         (invalid_indirection_error): Likewise.
7354         (warn_array_subscript_with_type_char): Likewise.
7355         (warn_about_parentheses): Likewise.
7356         (warn_for_unused_label): Likewise.
7357         (warn_for_div_by_zero): Likewise.
7358         (warn_for_memset): Likewise.
7359         (warn_for_sign_compare): Likewise.
7360         (do_warn_double_promotion): Likewise.
7361         (do_warn_unused_parameter): Likewise.
7362         (record_locally_defined_typedef): Likewise.
7363         (maybe_record_typedef_use): Likewise.
7364         (maybe_warn_unused_local_typedefs): Likewise.
7365         (maybe_warn_bool_compare): Likewise.
7366         (maybe_warn_shift_overflow): Likewise.
7367         (warn_duplicated_cond_add_or_warn): Likewise.
7368         (diagnose_mismatched_attributes): Likewise.
7369         * c-common.h: Move the declarations from c-warn.c to its own section.
7370         * c-warn.c: New file.
7372 2016-10-08  Jason Merrill  <jason@redhat.com>
7374         * c-common.c (c_common_truthvalue_conversion): Don't distribute
7375         into COND_EXPR in C++.
7377 2016-10-08  Jakub Jelinek  <jakub@redhat.com>
7379         * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
7380         token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
7381         CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
7383 2016-10-07  Jakub Jelinek  <jakub@redhat.com>
7385         Implement LWG2296 helper intrinsic
7386         * c-common.h (enum rid): Add RID_ADDRESSOF.
7387         * c-common.c (c_common_reswords): Add __builtin_addressof.
7389 2016-10-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7391         PR c++/77700
7392         * c-common.c (c_common_truthvalue_conversion): Warn also for
7393         suspicious enum values in boolean context.
7395 2016-10-06  Jakub Jelinek  <jakub@redhat.com>
7397         Implement P0258R2 - helper for C++17
7398         std::has_unique_object_representations trait
7399         * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
7400         * c-common.c (c_common_reswords): Add
7401         __has_unique_object_representations.
7403 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
7405         PR sanitizer/66343
7406         * c-ubsan.c (ubsan_instrument_return): Don't call
7407         initialize_sanitizer_builtins here.
7409 2016-10-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7411         * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
7412         conditional expression in boolean context when only one arm is
7413         non-boolean.
7415 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
7417         PR sanitizer/77823
7418         * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
7419         is not integral.
7421         * c-common.c (c_common_reswords): Update comment for C++11.
7423 2016-10-04  Jason Merrill  <jason@redhat.com>
7425         * c-common.c (make_tree_vector_from_ctor): New.
7426         * c-common.h: Declare it.
7428 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
7430         * c-cppbuiltin.c (c_cpp_builtins): Don't define
7431         __LIBGCC_JCR_SECTION_NAME__.
7433 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7435         * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
7436         left shift in boolean context.
7438 2016-09-29  Jakub Jelinek  <jakub@redhat.com>
7440         Implement P0001R1 - C++17 removal of register storage class specifier
7441         * c.opt (Wregister): New warning.
7442         * c-opts.c (c_common_post_options): Enable -Wregister by
7443         default for C++17.
7445 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
7447         * c-opts.c (c_common_post_options): Remove special case for
7448         TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
7449         in C++.
7451 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
7453         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
7454         -std=c++1z.
7456         * c-ada-spec.c (print_ada_declaration): Remove break after return.
7458 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7460         * c-common.c: Include memmodel.h.
7462 2016-09-26  Marek Polacek  <polacek@redhat.com>
7464         * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
7466 2016-09-26  Marek Polacek  <polacek@redhat.com>
7468         PR c/7652
7469         * c-common.c (c_common_attribute_table): Add fallthrough attribute.
7470         (handle_fallthrough_attribute): New function.
7471         (attribute_fallthrough_p): New function.
7472         * c-common.h (attribute_fallthrough_p): Declare.
7474 2016-09-24  Marek Polacek  <polacek@redhat.com>
7476         PR c/77490
7477         * c.opt (Wbool-operation): New.
7479 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7481         * c-common.c (c_common_truthvalue_conversion): Inhibit
7482         Wint-in-bool-context warning with from_macro_definition_at.
7483         Mention the expression will always evaluate to true.
7485 2016-09-21  Martin Sebor  <msebor@redhat.com>
7487         PR bootstrap/77676
7488         * c.opt (fprintf-return-value): Temporarily initialize to zero
7489         to unblock bootstrap failures.
7491 2016-09-21  Jakub Jelinek  <jakub@redhat.com>
7493         PR c++/77651
7494         * c.opt (Waligned-new=): Add RejectNegative.
7495         (faligned-new=): Likewise.  Spelling fix - change
7496         aligned_new_threshhold to aligned_new_threshold.
7497         * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
7498         to aligned_new_threshold.
7500 2016-09-20  Martin Sebor  <msebor@redhat.com>
7502         PR middle-end/49905
7503         * c.opt: Add -Wformat-length and -fprintf-return-value.
7505 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7507         PR c++/77434
7508         * c.opt (Wint-in-bool-context): New warning.
7509         * c-common.c (c_common_truthvalue_conversion): Warn on integer
7510         constants in boolean context.
7512 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
7514         * c-common.c (max_align_t_align): Also consider alignment of
7515         float128_type_node.
7517 2016-09-15  Jason Merrill  <jason@redhat.com>
7519         * c-common.c (check_cxx_fundamental_alignment_constraints): Check
7520         DECL_EXTERNAL.
7522 2016-09-14  Jason Merrill  <jason@redhat.com>
7524         * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
7525         limit FIELD_DECL, either.
7527 2016-09-14  Marek Polacek  <polacek@redhat.com>
7529         * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
7530         * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
7531         * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
7533 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
7535         * c-common.c (warn_logical_not_parentheses): Replace
7536         rich_location::add_fixit_insert calls with add_fixit_insert_before
7537         and add_fixit_insert_after, eliminating the "next_loc" calculation.
7539 2016-09-13  Jason Merrill  <jason@redhat.com>
7540             Tom de Vries  <tom@codesourcery.com>
7542         PR c++/77427
7543         * c-common.c (set_underlying_type): Don't treat array as builtin type.
7545 2016-09-13  Jason Merrill  <jason@redhat.com>
7547         * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
7548         limit types at all.
7550 2016-09-12  Jason Merrill  <jason@redhat.com>
7552         * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
7553         bit/byte confusion, allow large alignment for types.
7555 2016-09-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7557         PR c++/77496
7558         * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
7560 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
7562         PR c/72858
7563         * c-format.c (argument_parser::check_argument_type): Add params
7564         "type_start" and "conversion_char".  Use the former to generate
7565         offset_to_type_start and pass it and conversion_char to
7566         check_format_types.
7567         (check_format_info_main): Capture the start of the type
7568         information as "type_start", and pass it an format_char
7569         to arg_parser.check_argument_type.
7570         (check_format_types): Provide an example in the leading comment.
7571         Add params "offset_to_type_start" and "conversion_char"; pass
7572         them to format_type_warning calls.
7573         (test_get_modifier_for_format_len): Likewise.
7574         (matching_type_p): New function.
7575         (get_format_for_type): Add param "conversion_char" and move
7576         implementation into...
7577         (get_format_for_type_1): ...new function, called twice.
7578         Use new function matching_type_p rather than checking for
7579         TYPE_CANONICAL equality.
7580         (get_corrected_substring): New function.
7581         (format_type_warning): Provide an example in the leading comment.
7582         Add params "offset_to_type_start" and "conversion_char".  Replace
7583         call to get_format_for_type with call to get_corrected_substring
7584         and move rejection of hints for widths/precisions there.
7585         (assert_format_for_type_streq): Add param "conversion_char".
7586         (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
7587         (test_get_format_for_type_printf): Add conversion chars to the
7588         tests, adding coverage for various combinations of integer
7589         vs double conversions, and for preserving octal and hexadecimal
7590         conversions.
7591         (test_get_format_for_type_scanf): Add conversion chars to the
7592         tests.
7594 2016-09-10  Tom de Vries  <tom@codesourcery.com>
7596         PR C/71602
7597         * c-common.c (build_va_arg): Handle more strict
7598         targetm.canonical_va_list_type.  Replace first argument type error with
7599         assert.
7601 2016-09-09  Martin Sebor  <msebor@redhat.com>
7603         PR c/77520
7604         PR c/77521
7605         * c-format.c (argument_parser::find_format_char_info): Use %qc
7606         format directive unconditionally.
7608 2016-09-09  Jason Merrill  <jason@redhat.com>
7610         Implement C++17 new of over-aligned types.
7611         * c.opt: Add -faligned-new and -Waligned-new.
7612         * c-common.c (max_align_t_align): Split out from...
7613         (cxx_fundamental_alignment_p): ...here.
7614         * c-common.h: Declare it.
7615         * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
7617 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
7619         * c-cppbuiltin.c (builtin_define_type_width): New function.
7620         (builtin_define_stdint_macros, c_cpp_builtins): Define type width
7621         macros.
7623 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
7625         * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
7626         a POINTER_TYPE.
7627         (substring_loc::get_location): Move to substring-locations.c,
7628         keeping implementation as...
7629         (c_get_substring_location): New function, from the above, reworked
7630         to use accessors rather than member lookup.
7631         * c-common.h (class substring_loc): Move to substring-locations.h,
7632         replacing with a forward decl.
7633         (c_get_substring_location): New decl.
7634         * c-format.c: Include "substring-locations.h".
7635         (format_warning_va): Move to substring-locations.c.
7636         (format_warning_at_substring): Likewise.
7638 2016-09-06  Martin Sebor  <msebor@redhat.com>
7640         PR c/77336
7641         * c-format.c (check_function_format): Avoid issuing warnings for
7642         functions unless they call format functions with non-constant
7643         format strings.
7645 2016-09-06  Richard Biener  <rguenther@suse.de>
7647         PR c/77450
7648         * c-common.c (c_common_mark_addressable_vec): Handle
7649         COMPOUND_LITERAL_EXPR.
7651 2016-09-05  Marek Polacek  <polacek@redhat.com>
7653         PR c/77423
7654         * c-common.c (bool_promoted_to_int_p): New function.
7655         (expr_has_boolean_operands_p): New function.
7656         (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
7657         (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
7659 2016-09-04  Tom de Vries  <tom@codesourcery.com>
7661         revert:
7662         2016-08-29  Tom de Vries  <tom@codesourcery.com>
7664         * c-common.c (build_va_arg): Replace first argument type error
7665         with assert.
7667 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
7669         PR c/65467
7670         * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
7671         (c_finish_omp_for): Reject _Atomic qualified iterators.
7673 2016-09-01  Martin Sebor  <msebor@redhat.com>
7675         * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
7676         size to guarantee it fits the output of the formatted function
7677         regardless of its arguments.
7679 2016-09-01  Marek Polacek  <polacek@redhat.com>
7681         PR c/7652
7682         * c-common.c (resolve_overloaded_builtin): Fix formatting.  Add
7683         FALLTHRU comments.
7685 2016-08-29  Marek Polacek  <polacek@redhat.com>
7687         PR c/77292
7688         * c-common.c (warn_logical_not_parentheses): Don't warn for
7689         a comparison or a logical operator.
7691 2016-08-29  Tom de Vries  <tom@codesourcery.com>
7693         * c-common.c (build_va_arg): Fix type comparison assert.
7695 2016-08-29  Tom de Vries  <tom@codesourcery.com>
7697         * c-common.c (build_va_arg): Replace first argument type error
7698         with assert.
7700 2016-08-29  Tom de Vries  <tom@codesourcery.com>
7702         PR c/77398
7703         * c-common.c (build_va_arg): Add first argument error.  Build va_arg
7704         with error_mark_node as va_list instead of with illegal va_list.
7706 2016-08-25  Marek Polacek  <polacek@redhat.com>
7707             David Malcolm  <dmalcolm@redhat.com>
7709         * c-common.c (warn_logical_not_parentheses): Print fixit hints.
7710         * c-common.h (warn_logical_not_parentheses): Update declaration.
7712 2016-08-22  Marek Polacek  <polacek@redhat.com>
7714         PR c++/77321
7715         * c-common.c (warn_for_memset): Check type for null.
7717 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
7719         * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
7720         _FloatNx types for suffixes for built-in functions.
7722 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
7724         PR c/32187
7725         * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
7726         (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
7727         (RID_FLOAT128X): New enum rid values.
7728         (CASE_RID_FLOATN_NX): New macro.
7729         * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
7730         keywords.
7731         (c_common_type_for_mode): Check for _FloatN and _FloatNx and
7732         corresponding complex types.
7733         (c_common_nodes_and_builtins): For non-C++, register _FloatN and
7734         _FloatNx and corresponding complex types.
7735         (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
7736         * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
7737         and _FloatNx types for the widest type for determining
7738         DECIMAL_DIG.  Define __LDBL_DECIMAL_DIG__ as well as
7739         __DECIMAL_DIG__ for long double.  Handle FMA_SUFFIX being NULL.
7740         (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
7741         and _FloatNx types.
7742         * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
7743         constants.
7744         * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
7745         _FloatNx types.
7747 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
7749         * c-opts.c (c_diagnostic_finalizer): Update for change to
7750         diagnostic_show_locus.
7752 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
7754         * c-common.c: Include "spellcheck.h".
7755         (cb_get_suggestion): New function.
7756         * c-common.h (cb_get_suggestion): New decl.
7757         * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
7758         cb_get_suggestion.
7760 2016-08-18  Marek Polacek  <polacek@redhat.com>
7762         PR c/71514
7763         * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
7764         and pointer-to-VLA.
7766 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
7768         PR c/72857
7769         * c-common.c (substring_loc::get_range): Rename to...
7770         (substring_loc::get_location): ...this, converting param from a
7771         source_range * to a location_t *.  Call
7772         get_source_location_for_substring rather than
7773         get_source_range_for_substring, and pass in m_caret_idx.
7774         * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
7775         (substring_loc::get_range): Replace with...
7776         (substring_loc::get_location): ...this.
7777         (substring_loc::set_caret_index): New method.
7778         (substring_loc): Add field m_caret_idx.
7779         * c-format.c (format_warning_va): Update for above changes.
7780         Rename local "substring_loc" to "fmt_substring_loc" to avoid
7781         clashing with type name.
7782         (format_warning_at_char): Add caret_idx param to substring_loc ctor.
7783         (check_argument_type): Likewise.
7784         (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
7785         Use a copy when emitting warnings, setting the caret index from TYPE.
7787 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
7788             Arnaud Charlet  <charlet@adacore.com>
7790         * c-ada-spec.c (dump_number): New function.
7791         (handle_escape_character): Likewise.
7792         (print_ada_macros): Add handling of constant integers and strings.
7794 2016-08-12  Marek Polacek  <polacek@redhat.com>
7796         PR c/7652
7797         * c-common.c (scalar_to_vector): Adjust fall through comment.
7798         * c-opts.c (c_common_handle_option): Likewise.
7799         * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
7800         * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
7801         fall through comment.
7802         * cilk.c (extract_free_variables): Add FALLTHRU.
7804 2016-08-10  Jason Merrill  <jason@redhat.com>
7806         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
7808 2016-08-09  Jason Merrill  <jason@redhat.com>
7810         * c-common.c (c_common_attribute_table): vector_size affects type
7811         identity.
7813 2016-08-09  Marek Polacek  <polacek@redhat.com>
7815         PR c/7652
7816         * c-ada-spec.c (dump_generic_ada_node): Add return.
7818 2016-08-09  Jason Merrill  <jason@redhat.com>
7820         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
7821         C++17 constexpr lambdas.
7823 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
7825         PR c/64955
7826         * c-common.h (selftest::c_format_c_tests): New declaration.
7827         (selftest::run_c_tests): New declaration.
7828         * c-format.c: Include "selftest.h.
7829         (format_warning_va): Add param "corrected_substring" and use
7830         it to add a replacement fix-it hint.
7831         (format_warning_at_substring): Likewise.
7832         (format_warning_at_char): Update for new param of
7833         format_warning_va.
7834         (argument_parser::check_argument_type): Pass "fki" to
7835         check_format_types.
7836         (check_format_types): Add param "fki" and pass it to
7837         format_type_warning.
7838         (deref_n_times): New function.
7839         (get_modifier_for_format_len): New function.
7840         (selftest::test_get_modifier_for_format_len): New function.
7841         (get_format_for_type): New function.
7842         (format_type_warning): Add param "fki" and use it to attempt
7843         to provide hints for argument types when calling
7844         format_warning_at_substring.
7845         (selftest::get_info): New function.
7846         (selftest::assert_format_for_type_streq): New function.
7847         (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
7848         (selftest::test_get_format_for_type_printf): New function.
7849         (selftest::test_get_format_for_type_scanf): New function.
7850         (selftest::c_format_c_tests): New function.
7852 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
7854         PR c/52952
7855         * c-format.c: Include "diagnostic.h".
7856         (location_column_from_byte_offset): Delete.
7857         (location_from_offset): Delete.
7858         (format_warning_va): New function.
7859         (format_warning_at_substring): New function.
7860         (format_warning_at_char): New function.
7861         (check_format_arg): Capture location of format_tree and pass to
7862         check_format_info_main.
7863         (argument_parser): Add fields "start_of_this_format" and
7864         "format_string_cst".
7865         (flag_chars_t::validate): Add param "format_string_cst".  Convert
7866         warning_at call using location_from_offset to call to
7867         format_warning_at_char.
7868         (argument_parser::argument_parser): Add param "format_string_cst_"
7869         and use use it to initialize field "format_string_cst".
7870         Initialize new field "start_of_this_format".
7871         (argument_parser::read_format_flags): Convert warning_at call
7872         using location_from_offset to a call to format_warning_at_char.
7873         (argument_parser::read_any_format_left_precision): Likewise.
7874         (argument_parser::read_any_format_precision): Likewise.
7875         (argument_parser::read_any_other_modifier): Likewise.
7876         (argument_parser::find_format_char_info): Likewise, in three places.
7877         (argument_parser::parse_any_scan_set): Likewise, in one place.
7878         (argument_parser::handle_conversions): Likewise, in two places.
7879         (argument_parser::check_argument_type): Add param "fmt_param_loc"
7880         and use it to make a substring_loc.  Pass the latter to
7881         check_format_types.
7882         (check_format_info_main): Add params "fmt_param_loc" and
7883         "format_string_cst".  Convert warning_at calls using
7884         location_from_offset to calls to format_warning_at_char.  Pass the
7885         new params to the arg_parser ctor.  Pass "format_string_cst" to
7886         flag_chars.validate.  Pass "fmt_param_loc" to
7887         arg_parser.check_argument_type.
7888         (check_format_types): Convert first param from a location_t
7889         to a const substring_loc & and rename to "fmt_loc".  Attempt
7890         to extract the range of the relevant parameter and pass it
7891         to format_type_warning.
7892         (format_type_warning): Convert first param from a location_t
7893         to a const substring_loc & and rename to "fmt_loc".  Add
7894         params "param_range" and "type".  Replace calls to warning_at
7895         with calls to format_warning_at_substring.
7897 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
7899         * c-format.c (class flag_chars_t): New class.
7900         (struct length_modifier): New struct.
7901         (class argument_parser): New class.
7902         (flag_chars_t::flag_chars_t): New ctor.
7903         (flag_chars_t::has_char_p): New method.
7904         (flag_chars_t::add_char): New method.
7905         (flag_chars_t::validate): New method.
7906         (flag_chars_t::get_alloc_flag): New method.
7907         (flag_chars_t::assignment_suppression_p): New method.
7908         (argument_parser::argument_parser): New ctor.
7909         (argument_parser::read_any_dollar): New method.
7910         (argument_parser::read_format_flags): New method.
7911         (argument_parser::read_any_format_width): New method.
7912         (argument_parser::read_any_format_left_precision): New method.
7913         (argument_parser::read_any_format_precision): New method.
7914         (argument_parser::handle_alloc_chars): New method.
7915         (argument_parser::read_any_length_modifier): New method.
7916         (argument_parser::read_any_other_modifier): New method.
7917         (argument_parser::find_format_char_info): New method.
7918         (argument_parser::validate_flag_pairs): New method.
7919         (argument_parser::give_y2k_warnings): New method.
7920         (argument_parser::parse_any_scan_set): New method.
7921         (argument_parser::handle_conversions): New method.
7922         (argument_parser::check_argument_type): New method.
7923         (check_format_info_main): Introduce classes argument_parser
7924         and flag_chars_t, moving the code within the loop into methods
7925         of these classes.  Make various locals "const".
7927 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
7929         * c-common.c: Include "substring-locations.h".
7930         (get_cpp_ttype_from_string_type): New function.
7931         (g_string_concat_db): New global.
7932         (substring_loc::get_range): New method.
7933         * c-common.h (g_string_concat_db): New declaration.
7934         (class substring_loc): New class.
7935         * c-lex.c (lex_string): When concatenating strings, capture the
7936         locations of all tokens using a new obstack, and record the
7937         concatenation locations within g_string_concat_db.
7938         * c-opts.c (c_common_init_options): Construct g_string_concat_db
7939         on the ggc-heap.
7941 2016-07-29  Marek Polacek  <polacek@redhat.com>
7943         PR c/71926
7944         * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
7945         parentheses warning.
7947         PR c/71574
7948         * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
7950 2016-07-28  Martin Liska  <mliska@suse.cz>
7952         PR gcov-profile/68025
7953         * c-common.c (handle_no_profile_instrument_function_attribute):
7955 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7957         * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
7958         BITS_PER_UNIT_LOG.
7960 2016-07-25  Jason Merrill  <jason@redhat.com>
7962         PR c++/65970
7963         * c.opt (fconstexpr-loop-limit): New.
7965 2016-07-22  Martin Sebor  <msebor@redhat.com>
7967         PR c++/71675
7968         * c-common.c (resolve_overloaded_builtin): Avoid converting
7969         __atomic_compare_exchange_n return type to that of what its
7970         first argument points to.
7972 2016-07-22  Uros Bizjak  <ubizjak@gmail.com>
7974         * c-common.c: Use HOST_WIDE_INT_M1U instead of
7975         ~(unsigned HOST_WIDE_INT) 0.
7977 2016-07-22  Martin Liska  <mliska@suse.cz>
7979         PR gcov-profile/69028
7980         PR gcov-profile/62047
7981         * cilk.c (create_cilk_helper_decl): Set location of a new decl
7982         to the current_function_decl.
7984 2016-07-21  Jason Merrill  <jason@redhat.com>
7986         PR c++/65168
7987         * c-common.c (c_common_truthvalue_conversion): Check
7988         c_inhibit_evaluation_warnings for warning about address of
7989         reference.
7991 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
7993         * c-common.h (lookup_name_fuzzy): Convert return type from tree to
7994         const char *.
7996 2016-07-15  Jason Merrill  <jason@redhat.com>
7998         * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
8000 2016-07-15  Jakub Jelinek  <jakub@redhat.com>
8002         PR c/71858
8003         * c-common.h (enum lookup_name_fuzzy_kind): Add
8004         FUZZY_LOOKUP_FUNCTION_NAME.
8006 2016-07-08  Jason Merrill  <jason@redhat.com>
8008         P0145: Refining Expression Order for C++.
8009         * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
8010         * c-opts.c: Adjust.
8012 2016-07-05  Markus Trippelsdorf  <markus@trippelsdorf.de>
8014         PR c++/71214
8015         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
8017 2016-06-29  Thomas Schwinge  <thomas@codesourcery.com>
8019         * c-pragma.h (enum pragma_kind): Rename
8020         PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE.  Adjust all
8021         users.
8023 2016-06-29  Richard Biener  <rguenther@suse.de>
8025         PR middle-end/71002
8026         * c-common.c (c_common_get_alias_set): Remove union type punning case.
8028 2016-06-24  Jason Merrill  <jason@redhat.com>
8030         P0145R2: Refining Expression Order for C++.
8031         * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
8032         MODIFY_EXPR.
8034 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
8036         * c-common.c (check_builtin_function_arguments): Require last
8037         argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
8038         Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
8039         if the last argument is pointer to enumerated or boolean type.
8041 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
8043         PR c/70339
8044         * c-common.h (enum lookup_name_fuzzy_kind): New enum.
8045         (lookup_name_fuzzy): New prototype.
8047 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
8049         * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
8051 2016-06-14  Jason Merrill  <jason@redhat.com>
8053         P0145R2: Refining Expression Order for C++.
8054         * c.opt (fargs-in-order): New.
8055         * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
8057 2016-06-13  Jakub Jelinek  <jakub@redhat.com>
8059         PR sanitizer/71498
8060         * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
8061         all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
8063         PR preprocessor/71183
8064         * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
8065         to cb_get_source_date_epoch.
8067 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
8069         PR c/68657
8070         * c.opt (Wpsabi): Add Warning flag.
8072 2016-06-10  Martin Sebor  <msebor@redhat.com>
8074         PR c/71392
8075         * c-common.c (handle_nonnull_attribute): Accept
8076         the nonnull attribute in type-generic builtins.
8078 2016-06-09  Martin Sebor  <msebor@redhat.com>
8080         PR c/70883
8081         * c-common.c (builtin_function_validate_nargs): Make text of error
8082         message consistent with others like it.
8084 2016-06-08  Martin Sebor  <msebor@redhat.com>
8085             Jakub Jelinek  <jakub@redhat.com>
8087         PR c++/70507
8088         PR c/68120
8089         * c-common.c (check_builtin_function_arguments): Handle
8090         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
8092 2016-06-08  Richard Biener  <rguenther@suse.de>
8094         * c-common.c (parse_optimize_options): Improve diagnostic messages.
8096 2016-06-07  Richard Biener  <rguenther@suse.de>
8098         PR c/61564
8099         * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
8100         options and warn about others.
8102 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
8104         * c-common.c (get_source_date_epoch): Rename to
8105         cb_get_source_date_epoch.
8106         * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
8107         message when the parsing fails.  Use error_at instead of fatal_error.
8108         * c-common.h (get_source_date_epoch): Rename to
8109         cb_get_source_date_epoch.
8110         * c-common.h (cb_get_source_date_epoch): Prototype.
8111         * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
8112         * c-common.h (c_omp_region_type): Remove trailing comma.
8113         * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
8114         * c-lex.c (c_lex_with_flags): Remove initialization of
8115         pfile->source_date_epoch.
8117 2016-05-30  Jakub Jelinek  <jakub@redhat.com>
8119         PR c++/71349
8120         * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
8121         C_OMP_CLAUSE_SPLIT_TARGET.  Put OMP_CLAUSE_NOWAIT to
8122         C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
8123         instead of C_OMP_CLAUSE_SPLIT_FOR.
8125 2016-05-24  Richard Biener  <rguenther@suse.de>
8127         PR middle-end/70434
8128         PR c/69504
8129         * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
8130         (convert_vector_to_array_for_subscript): ... this.
8131         * c-common.c (convert_vector_to_pointer_for_subscript): Use a
8132         VIEW_CONVERT_EXPR to an array type.  Rename to ...
8133         (convert_vector_to_array_for_subscript): ... this.
8135 2016-05-12  Marek Polacek  <polacek@redhat.com>
8137         PR c/70756
8138         * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
8139         size_in_bytes and pass LOC to it.
8141 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
8143         PR c/43651
8144         * c.opt (Wduplicate-decl-specifier): New option.
8146 2016-05-11  Marek Polacek  <polacek@redhat.com>
8148         PR c++/71024
8149         * c-common.c (diagnose_mismatched_attributes): New function.
8150         * c-common.h (diagnose_mismatched_attributes): Declare.
8152 2016-05-04  Marek Polacek  <polacek@redhat.com>
8154         * c.opt (Wdangling-else): New option.
8156 2016-05-03  Marek Polacek  <polacek@redhat.com>
8158         PR c/70859
8159         * c-common.c (builtin_function_validate_nargs): Add location
8160         parameter.  Use it.
8161         (check_builtin_function_arguments): Add location and arguments
8162         parameters.  Use them.
8163         * c-common.h (check_builtin_function_arguments): Update declaration.
8165 2016-05-03  Richard Biener  <rguenther@suse.de>
8167         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
8168         allow call args to gimplify to SSA names.
8170 2016-05-03  Marek Polacek  <polacek@redhat.com>
8172         * c-common.h (enum c_omp_region_type): Remove stray comma.
8174 2016-05-02  Cesar Philippidis  <cesar@codesourcery.com>
8176         * c-common.h (enum c_omp_region_type): Define.
8178 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
8180         * c-common.c (shorten_compare): Use wi::to_wide.
8182 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
8184         PR middle-end/70626
8185         * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
8186         * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
8187         reduction clauses in acc parallel loops.
8189 2016-04-29  Marek Polacek  <polacek@redhat.com>
8191         PR c/70852
8192         * c-common.c (warn_for_memset): Check domain before accessing it.
8194 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8196         PR/69089
8197         * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
8198         "aligned" attribute.
8200 2016-04-28  Jason Merrill  <jason@redhat.com>
8202         * c-lex.c (c_common_has_attribute): Handle nodiscard.
8204 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
8205             Matthias Klose  <doko@debian.org>
8207         * c-common.c (get_source_date_epoch): New function, gets the environment
8208         variable SOURCE_DATE_EPOCH and parses it as long long with error
8209         handling.
8210         * c-common.h (get_source_date_epoch): Prototype.
8211         * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
8213 2015-04-27  Ryan Burn  <contact@rnburn.com>
8215         PR c++/69024
8216         PR c++/68997
8217         * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
8218         (cilk_recognize_spawn): Renamed from recognize_spawn and change to
8219         external linkage.
8220         (cilk_detect_and_unwrap): Corresponding changes.
8221         (extract_free_variables): Don't extract free variables from
8222         AGGR_INIT_EXPR slot.
8223         * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
8224         (cilk_recognize_spawn): Likewise.
8226 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
8228         * c.opt (Wmemset-elt-size): New option.
8229         * c-common.c (warn_for_memset): New function.
8230         * c-common.h (warn_for_memset): Declare.
8232 2016-04-25  Jason Merrill  <jason@redhat.com>
8234         * c-common.c (handle_unused_attribute): Accept CONST_DECL.
8235         No longer static.
8236         * c-common.h: Declare it.
8237         * c-lex.c (c_common_has_attribute): Add maybe_unused.
8239 2016-04-22  Jason Merrill  <jason@redhat.com>
8241         * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
8243 2016-04-20  Ilya Verbin  <ilya.verbin@intel.com>
8245         PR c++/69363
8246         * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
8247         * c-common.h (c_finish_cilk_clauses): Remove declaration.
8249 2016-04-18  Michael Matz  <matz@suse.de>
8251         * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
8252         and SET_DECL_ALIGN.
8254 2016-04-17  Eric Botcazou  <ebotcazou@adacore.com>
8256         * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
8257         (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
8258         to incomplete types.
8259         (dump_nested_type): Remove redundant tests and tidy up.
8260         (print_ada_declaration): Also set TREE_VISITED on the declaration of
8261         a type which is the typedef of an original type.
8263 2016-04-15  Marek Polacek  <polacek@redhat.com>
8265         PR c/70651
8266         * c-common.c (build_va_arg): Change two asserts into errors and return
8267         error_mark_node.
8269 2016-04-13  Marek Polacek  <polacek@redhat.com>
8271         PR c++/70639
8272         * c-indentation.c (should_warn_for_misleading_indentation): Bail out
8273         for switch statements, too.
8275 2016-03-28  Jason Merrill  <jason@redhat.com>
8277         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
8279 2016-03-23  Marek Polacek  <polacek@redhat.com>
8281         PR c++/69884
8282         * c.opt (Wignored-attributes): New option.
8284 2016-03-22  David Malcolm  <dmalcolm@redhat.com>
8286         PR c/69993
8287         * c-indentation.c (warn_for_misleading_indentation): Rewrite the
8288         diagnostic text, reversing the order of the warning and note so
8289         that they appear in source order.
8291 2016-03-17  Marek Polacek  <polacek@redhat.com>
8293         PR c/69407
8294         * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
8295         operations.
8297 2016-03-14  Jason Merrill  <jason@redhat.com>
8299         * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
8301         * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
8303 2016-03-09  Richard Biener  <rguenther@suse.de>
8305         PR c/70143
8306         * c-common.c (strict_aliasing_warning): Add back
8307         alias_sets_conflict_p check.
8309 2016-03-08  Jason Merrill  <jason@redhat.com>
8311         * c-opts.c (set_std_cxx1z): Don't enable concepts.
8313 2016-03-04  David Malcolm  <dmalcolm@redhat.com>
8315         PR c/68187
8316         * c-indentation.c (get_visual_column): Move code to determine next
8317         tab stop to...
8318         (next_tab_stop): ...this new function.
8319         (line_contains_hash_if): Delete function.
8320         (detect_preprocessor_logic): Delete function.
8321         (get_first_nws_vis_column): New function.
8322         (detect_intervening_unindent): New function.
8323         (should_warn_for_misleading_indentation): Replace call to
8324         detect_preprocessor_logic with a call to
8325         detect_intervening_unindent.
8327 2016-03-04  David Malcolm  <dmalcolm@redhat.com>
8329         PR c/68187
8330         * c-indentation.c (should_warn_for_misleading_indentation): When
8331         suppressing warnings about cases where the guard and body are on
8332         the same column, only use the first non-whitespace column in place
8333         of the guard token column when dealing with "else" clauses.
8334         When rejecting aligned BODY and NEXT, loosen the requirement
8335         from equality with the first non-whitespace of guard to simply
8336         that they not be indented relative to it.
8338 2016-03-04  Richard Biener  <rguenther@suse.de>
8340         PR c++/70054
8341         * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
8342         instead of alias_sets_conflict_p.
8344 2016-03-01  Marek Polacek  <polacek@redhat.com>
8346         PR c++/69795
8347         * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
8348         any DECL.
8350 2016-02-22  Martin Sebor  <msebor@redhat.com>
8352         PR middle-end/69780
8353         * c-common.c (check_builtin_function_arguments): Validate and
8354         reject invalid arguments to __builtin_alloca_with_align.
8356 2016-02-20  Mark Wielaard  <mjw@redhat.com>
8358         PR c/28901
8359         * c.opt (Wunused-const-variable): Turn into Alias for...
8360         (Wunused-const-variable=): New option.
8362 2016-02-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8364         PR c++/69865
8365         * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
8366         here...
8367         (c_common_init_options): ...to here.
8368         (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
8370 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
8372         PR c++/69826
8373         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
8374         (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
8375         flag_preprocess_only.
8377 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
8379         PR c/69835
8380         * c.opt (Wnonnull-compare): Enable for -Wall.
8382 2016-02-15  Jakub Jelinek  <jakub@redhat.com>
8384         PR c++/69797
8385         * c-common.c (sync_resolve_size): Diagnose too few arguments
8386         even when params is non-NULL empty vector.
8388 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
8390         PR target/60410
8391         * c.opt (fshort-double): Remove.
8393 2016-02-05  Martin Sebor  <msebor@redhat.com>
8395         PR c++/69662
8396         * c.opt (Warning options): Update -Wplacement-new to take
8397         an optional argument.
8399 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
8401         PR preprocessor/69543
8402         PR c/69558
8403         * c-pragma.c (handle_pragma_diagnostic): Pass input_location
8404         instead of loc to control_warning_option.
8406 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
8408         * c.opt (fopenacc-dim=): New option.
8410 2016-01-27  Ryan Burn  <contact@rnburn.com>
8412         PR cilkplus/69267
8413         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
8414         gimplify_arg. Removed superfluous post_p argument.
8415         * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
8416         superfluous post_p argument.
8417         * c-gimplify.c (c_gimplify_expr): Likewise.
8419 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
8421         PR other/69006
8422         * c-opts.c (c_diagnostic_finalizer): Replace invocation of
8423         pp_newline_and_flush with pp_flush.
8425 2016-01-20  Martin Sebor  <msebor@redhat.com>
8427         PR c/69405
8428         * c-common.c (sync_resolve_size): Avoid printing diagnostic about
8429         an incompatible argument when the argument isn't a valid tree node.
8431 2016-01-18  Jason Merrill  <jason@redhat.com>
8433         PR c++/68767
8434         * c-common.c (check_function_arguments_recurse): Fold the whole
8435         COND_EXPR, not just the condition.
8437 2016-01-18  Tom de Vries  <tom@codesourcery.com>
8439         * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
8440         classify as loop clause.
8442 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
8444         PR bootstrap/68271
8445         * c-pragma.c (c_register_pragma_1): Adjust comment to note that
8446         C++ FE no longer has limit on number of pragmas.
8448 2015-01-14  Ryan Burn  <contact@rnburn.com>
8450         PR c++/69048
8451         * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
8452         to add missing cleanup point.
8454 2016-01-14  David Malcolm  <dmalcolm@redhat.com>
8456         PR c++/68819
8457         * c-indentation.c (get_visual_column): Add location_t param.
8458         Handle the column number being zero by effectively disabling the
8459         warning, with an "inform".
8460         (should_warn_for_misleading_indentation): Add location_t argument
8461         for all uses of get_visual_column.
8463 2016-01-10  Patrick Palka  <ppalka@gcc.gnu.org>
8465         PR c++/69029
8466         * c-indentation.c (should_warn_for_misleading_indentation):
8467         Don't warn about do-while statements.
8469 2016-01-07  Martin Sebor  <msebor@redhat.com>
8471         PR c/68966
8472         * c-common.c (sync_resolve_size): Reject first argument when it's
8473         a pointer to _Bool.
8475 2016-01-05  David Malcolm  <dmalcolm@redhat.com>
8477         PR c/69122
8478         * c-indentation.c (get_visual_column): Remove default argument.
8479         (should_warn_for_misleading_indentation): For the multiline case,
8480         update call to get_visual_column for next_stmt_exploc so that it
8481         captures the location of the first non-whitespace character in the
8482         relevant line.  Don't issue warnings if there is non-whitespace
8483         before the next statement.
8485 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
8487         Update copyright years.
8489 2015-12-21  David Malcolm  <dmalcolm@redhat.com>
8491         * c-common.c (binary_op_error): Convert first param from
8492         location_t to rich_location * and use it when emitting an error.
8493         * c-common.h (binary_op_error): Convert first param from
8494         location_t to rich_location *.
8496 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
8498         * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
8499         * c-lex.c (conflict_marker_get_final_tok_kind): New function.
8501 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
8503         * c-common.c (c_common_attribute_table): Handle "omp declare target
8504         link" attribute.
8506 2015-12-14  Jakub Jelinek  <jakub@redhat.com>
8508         PR c/68833
8509         * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
8511 2014-12-12  Tobias Burnus  <burnus@net-b.de>
8513         PR fortran/68815
8514         * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
8515         specifiers (%d, %i,%u and %c).
8517 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
8519         * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
8521 2015-12-08  Jakub Jelinek  <jakub@redhat.com>
8523         PR c/48088
8524         PR c/68657
8525         * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
8526         * c-pragma.c (handle_pragma_diagnostic): Adjust
8527         control_warning_option caller.
8529 2015-12-07  David Malcolm  <dmalcolm@redhat.com>
8531         * c-common.c (c_cpp_error): Update for change to
8532         rich_location::set_range.
8534 2015-12-04  Paolo Bonzini  <bonzini@gnu.org>
8536         * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
8537         shifting 1 out of the sign bit.
8539 2015-12-04  Kirill Yukhin  <kirill.yukhin@intel.com>
8541         * c-common.c (c_common_attribute_table[]): Update max arguments
8542         count for "simd" attribute.
8543         (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
8545 2015-12-03  Jakub Jelinek  <jakub@redhat.com>
8547         PR preprocessor/57580
8548         * c-ppoutput.c (print): Change printed field to bool.
8549         Move src_file last for smaller padding.
8550         (init_pp_output): Set print.printed to false instead of 0.
8551         (scan_translation_unit): Fix up formatting.  Set print.printed
8552         to true after printing something other than newline.
8553         (scan_translation_unit_trad): Set print.printed to true instead of 1.
8554         (maybe_print_line_1): Set print.printed to false instead of 0.
8555         (print_line_1): Likewise.
8556         (do_line_change): Set print.printed to true instead of 1.
8557         (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
8558         dump_macro): Set print.printed to false after printing newline.
8560 2015-12-02  Jason Merrill  <jason@redhat.com>
8562         * c-common.c (fold_for_warn): New.
8563         (warn_logical_operator, warn_tautological_cmp)
8564         (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
8566         * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
8567         (c_fully_fold_internal, decl_constant_value_for_optimization):
8568         Move to c/c-fold.c.
8569         * c-common.h: Don't declare decl_constant_value_for_optimization.
8571 2015-12-02  Joseph Myers  <joseph@codesourcery.com>
8573         PR c/68162
8574         * c-common.h (c_build_qualified_type): Add extra default
8575         arguments.
8577 2015-12-01  Julian Brown  <julian@codesourcery.com>
8578             Cesar Philippidis  <cesar@codesourcery.com>
8579             James Norris  <James_Norris@mentor.com>
8581         * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
8582         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
8583         (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
8585 2015-11-30  Eric Botcazou  <ebotcazou@adacore.com>
8587         * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
8588         (decl_sloc_common): Delete and move bulk of processing to...
8589         (decl_sloc): ...here.
8590         (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
8591         (dump_ada_double_name): Remove S parameter and compute the suffix.
8592         (dump_ada_array_type): Add PARENT parameter.  Simplify computation of
8593         element type and deal with an anonymous one.
8594         (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
8595         (dump_generic_ada_node): Tweak.  Adjust call to dump_ada_array_type
8596         and remove reference to QUAL_UNION_TYPE.
8597         (dump_nested_types): Make 2 passes on the fields and move bulk to...
8598         (dump_nested_type): ...here.  New function extracted from above.
8599         Generate a full declaration for anonymous element type of arrays.
8600         (print_ada_declaration): Really skip anonymous declarations.  Remove
8601         references to QUAL_UNION_TYPE.  Adjust call to dump_ada_array_type.
8602         Clean up processing of declarations of array types and objects.
8603         (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
8604         Remove obsolete code and tidy up.
8606 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
8608         PR c/67581
8609         * c-common.c (handle_transparent_union_attribute): Update
8610         also type variants.
8612 2015-11-27  Martin Liska  <mliska@suse.cz>
8614         PR c++/68312
8615         * array-notation-common.c (cilkplus_extract_an_triplets):
8616         Release vector of vectors.
8617         * cilk.c (gimplify_cilk_spawn): Free allocated memory.
8619 2015-11-26  Eric Botcazou  <ebotcazou@adacore.com>
8621         PR c++/68527
8622         * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
8623         (print_ada_struct_decl): Likewise.
8625 2015-11-23  Igor Zamyatin  <igor.zamyatin@intel.com>
8627         PR c++/68001
8628         * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
8629         * cilk.c (recognize_spawn): Determine location in a more precise
8630         way.
8632 2015-11-19  Jason Merrill  <jason@redhat.com>
8634         * c-common.c (shorten_compare): But look through macros from
8635         system headers.
8637 2015-11-18  Jason Merrill  <jason@redhat.com>
8639         * c-common.c (shorten_compare): Don't -Wtype-limits if the
8640         non-constant operand comes from a macro.
8642 2015-11-17  Jason Merrill  <jason@redhat.com>
8644         PR bootstrap/68346
8645         * c-common.c (warn_tautological_cmp): Fold before checking for
8646         constants.
8648 2015-11-16  Marek Polacek  <polacek@redhat.com>
8650         PR c++/68362
8651         * c-common.c (check_case_bounds): Fold low and high cases.
8653 2015-11-16  Marek Polacek  <polacek@redhat.com>
8655         * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
8656         * c-common.c (c_common_get_alias_set): Likewise.
8657         (handle_visibility_attribute): Likewise.
8659 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
8661         * c-common.c (handle_simd_attribute): New.
8662         (struct attribute_spec): Add entry for "simd".
8663         (handle_simd_attribute): New.
8665 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
8667         * c-lex.c (interpret_float): Use fold_convert.
8669 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
8671         * c-common.c (c_fully_fold_internal): Capture existing souce_range,
8672         and store it on the result.
8673         * c-opts.c (c_common_init_options): Set
8674         global_dc->colorize_source_p.
8676 2015-11-12  James Norris  <jnorris@codesourcery.com>
8677             Joseph Myers  <joseph@codesourcery.com>
8679         * c-pragma.c (oacc_pragmas): Add entry for declare directive.
8680         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
8681         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
8682         PRAGMA_OACC_CLAUSE_LINK.
8684 2015-11-11  Marek Polacek  <polacek@redhat.com>
8686         PR c/68107
8687         PR c++/68266
8688         * c-common.c (valid_array_size_p): New function.
8689         * c-common.h (valid_array_size_p): Declare.
8691 2015-11-11  Dominique d'Humieres  <dominiq@lps.ens.fr>
8693         PR bootstrap/68271
8694         * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
8696 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
8698         * array-notation-common.c: Remove unused header files.
8699         * c-ada-spec.c: Likewise.
8700         * c-cilkplus.c: Likewise.
8701         * c-common.c: Likewise.
8702         * c-cppbuiltin.c: Likewise.
8703         * c-dump.c: Likewise.
8704         * c-format.c: Likewise.
8705         * c-gimplify.c: Likewise.
8706         * c-indentation.c: Likewise.
8707         * c-lex.c: Likewise.
8708         * c-omp.c: Likewise.
8709         * c-opts.c: Likewise.
8710         * c-pch.c: Likewise.
8711         * c-ppoutput.c: Likewise.
8712         * c-pragma.c: Likewise.
8713         * c-pretty-print.c: Likewise.
8714         * c-semantics.c: Likewise.
8715         * c-ubsan.c: Likewise.
8716         * cilk.c: Likewise.
8717         * stub-objc.c: Likewise.
8719 2015-11-09  Thomas Schwinge  <thomas@codesourcery.com>
8720             Cesar Philippidis  <cesar@codesourcery.com>
8721             James Norris  <jnorris@codesourcery.com>
8722             Julian Brown  <julian@codesourcery.com>
8723             Nathan Sidwell  <nathan@codesourcery.com>
8725         * c-pragma.c (oacc_pragmas): Add "routine".
8726         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
8728 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
8730         * c-common.c (c_common_attributes): Add scalar_storage_order.
8731         (handle_scalar_storage_order_attribute): New function.
8732         * c-pragma.c (global_sso): New variable.
8733         (maybe_apply_pragma_scalar_storage_order): New function.
8734         (handle_pragma_scalar_storage_order): Likewise.
8735         (init_pragma): Register scalar_storage_order.
8736         * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
8737         * c.opt (Wscalar-storage-order): New warning.
8738         (fsso-struct=): New option.
8740 2015-11-08  Martin Sebor  <msebor@redhat.com>
8742         * c.opt (Wplacement-new): Add a period to the end of a sentence.
8744 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
8746         * c-common.c: Don't undef DEF_BUILTIN.
8748 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
8750         * c-common.c (c_cpp_error): Convert parameter from location_t to
8751         rich_location *.  Eliminate the "column_override" parameter and
8752         the call to diagnostic_override_column.
8753         Update the "done_lexing" clause to set range 0
8754         on the rich_location, rather than overwriting a location_t.
8755         * c-common.h (c_cpp_error): Convert parameter from location_t to
8756         rich_location *.  Eliminate the "column_override" parameter.
8758 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
8759             Thomas Schwinge  <thomas@codesourcery.com>
8760             James Norris  <jnorris@codesourcery.com>
8762         * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
8763         AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses.  Associate REDUCTION
8764         clauses with parallel and kernels and loops.
8765         * c-pragma.h (enum pragma_omp_clause): Add entries for
8766         PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
8767         * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
8768         NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
8769         INDEPENDENT,SEQ}.
8770         (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
8772 2015-11-05  Martin Sebor  <msebor@redhat.com>
8774         PR c++/67942
8775         * c.opt (-Wplacement-new): New option.
8777 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
8779         * c-common.h (c_finish_omp_atomic): Add TEST argument.
8780         (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
8781         * c-omp.c (c_finish_omp_atomic): Add TEST argument.  Don't call
8782         save_expr or create_tmp_var* if TEST is true.
8783         (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
8784         Don't call add_stmt here.
8785         (struct c_omp_check_loop_iv_data): New type.
8786         (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
8787         c_omp_check_loop_iv_exprs): New functions.
8788         (c_omp_split_clauses): Adjust for lastprivate being allowed on
8789         distribute.
8790         (c_omp_declare_simd_clauses_to_numbers): Change
8791         OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
8792         (c_omp_declare_simd_clauses_to_decls): Similarly change those
8793         from numbers to PARM_DECLs.
8795 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
8797         * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
8798         flag_checking.
8800 2015-11-03  Bernd Schmidt  <bschmidt@redhat.com>
8802         PR c++-common/67882
8803         * c-common.h (fold_offsetof_1): Add argument.
8804         * c-common.c (fold_offsetof_1): Diagnose more invalid
8805         offsetof expressions that reference elements past the end of
8806         an array.
8808 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
8809             Chung-Lin Tang  <cltang@codesourcery.com>
8811         * c-pragma.c (oacc_pragmas): Add "atomic".
8812         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
8814 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
8816         * c-common.c (handle_target_clones_attribute): New.
8817         (c_common_attribute_table): Add handle_target_clones_attribute.
8818         (handle_always_inline_attribute): Add check on target_clones attribute.
8819         (handle_target_attribute): Ditto.
8821 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
8823         * array-notation-common.c: Reorder #include's and remove duplicates.
8824         * c-ada-spec.c: Likewise.
8825         * c-cilkplus.c: Likewise.
8826         * c-common.c: Likewise.
8827         * c-cppbuiltin.c: Likewise.
8828         * c-dump.c: Likewise.
8829         * c-format.c: Likewise.
8830         * c-gimplify.c: Likewise.
8831         * c-indentation.c: Likewise.
8832         * c-lex.c: Likewise.
8833         * c-omp.c: Likewise.
8834         * c-opts.c: Likewise.
8835         * c-pch.c: Likewise.
8836         * c-ppoutput.c: Likewise.
8837         * c-pragma.c: Likewise.
8838         * c-pretty-print.c: Likewise.
8839         * c-semantics.c: Likewise.
8840         * c-ubsan.c: Likewise.
8841         * cilk.c: Likewise.
8842         * stub-objc.c: Likewise.
8844 2015-10-28  Jason Merrill  <jason@redhat.com>
8846         * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
8848 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
8849             James Norris  <jnorris@codesourcery.com>
8850             Cesar Philippidis  <cesar@codesourcery.com>
8852         PR c/64765
8853         PR c/64880
8854         * c-common.h (c_oacc_split_loop_clauses): Declare function.
8855         * c-omp.c (c_oacc_split_loop_clauses): New function.
8857 2015-10-21  Martin Sebor  <msebor@redhat.com>
8859         PR driver/68043
8860         * c.opt: End each sentence that describes an option with a period.
8862 2015-10-20  Marek Polacek  <polacek@redhat.com>
8864         * array-notation-common.c (is_cilkplus_vector_p): Define.
8865         * c-common.h (is_cilkplus_vector_p): Declare.
8867 2015-10-20  Marek Polacek  <polacek@redhat.com>
8869         * c.opt (std=gnu++11): Do not describe as experimental.
8870         (std=gnu++14): Likewise.
8872 2015-10-19  Jason Merrill  <jason@redhat.com>
8874         * c-cppbuiltin.c (c_cpp_builtins): Define
8875         __cpp_nontype_template_args.
8877 2015-10-19  Jason Merrill  <jason@redhat.com>
8879         * c-cppbuiltin.c (c_cpp_builtins): Define
8880         __cpp_enumerator_attributes, __cpp_fold_expressions,
8881         __cpp_unicode_characters.
8883 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
8884             Aldy Hernandez  <aldyh@redhat.com>
8886         * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
8887         DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
8888         (c_define_builtins): Likewise.
8889         * c-common.h (enum c_omp_clause_split): Add
8890         C_OMP_CLAUSE_SPLIT_TASKLOOP.
8891         (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
8892         (c_finish_omp_for): Add ORIG_DECLV argument.
8893         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
8894         201511 instead of 201307.
8895         * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
8896         OMP_CRITICAL_CLAUSES to it.
8897         (c_finish_omp_ordered): Add CLAUSES argument, set
8898         OMP_ORDERED_CLAUSES to it.
8899         (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
8900         to it if OMP_FOR.  Clear DECL_INITIAL on the IVs.
8901         (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
8902         constructs and new OpenMP 4.5 clauses.  Clear
8903         OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD.  Add
8904         verification code.
8905         * c-pragma.c (omp_pragmas_simd): Add taskloop.
8906         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
8907         (enum pragma_omp_clause): Add
8908         PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
8909         and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
8911 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
8913         * c-lex.c (interpret_float): Use real_equal instead of
8914         REAL_VALUES_EQUAL.
8916 2015-10-04  Jason Merrill  <jason@redhat.com>
8918         Implement N4514, C++ Extensions for Transactional Memory.
8919         * c-common.c (c_common_reswords): Add C++ TM TS keywords.
8920         (c_common_attribute_table): Add transaction_safe_dynamic.
8921         transaction_safe now affects type identity.
8922         (handle_tm_attribute): Handle transaction_safe_dynamic.
8923         * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
8924         RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
8925         (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
8926         (D_TRANSMEM): New.
8927         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
8928         * c-pretty-print.c (pp_c_attributes_display): Don't print
8929         transaction_safe in C++.
8931 2015-10-02  Marek Polacek  <polacek@redhat.com>
8933         * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
8935 2015-10-02  Marek Polacek  <polacek@redhat.com>
8937         PR c/64249
8938         * c-common.c (warn_duplicated_cond_add_or_warn): New function.
8939         * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
8940         * c.opt (Wduplicated-cond): New option.
8942 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
8944         * c.opt (std=c11): Do not describe as experimental.
8945         (std=gnu11): Likewise.
8946         (std=iso9899:2011): Likewise.
8948 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
8950         * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
8951         (DEF_FUNCTION_TYPE_VAR_11): Delete.
8953 2015-09-25  Marek Polacek  <polacek@redhat.com>
8955         * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
8956         (ubsan_instrument_shift): Likewise.
8958 2015-09-25  Marek Polacek  <polacek@redhat.com>
8960         PR sanitizer/64906
8961         * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
8963 2015-09-24  Patrick Palka  <ppalka@gcc.gnu.org>
8965         * c-indentation.c (should_warn_for_misleading_indentation):
8966         Compare next_stmt_vis_column with guard_line_first_nws instead
8967         of with guard_line_vis_column.
8969 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8971         PR c/49654
8972         PR c/49655
8973         * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
8974         options and options not valid for the current language.
8976 2015-09-22  Patrick Palka  <ppalka@gcc.gnu.org>
8978         * c-indentation.c (should_warn_for_misleading_indentation):
8979         Float out and consolidate the calls to get_visual_column that
8980         are passed guard_exploc as an argument.  Compare
8981         next_stmt_vis_column with guard_line_first_nws instead of with
8982         body_line_first_nws.
8984 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
8986         * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
8987         Wnamespaces): New C++ warnings.
8989 2015-09-22  Jason Merrill  <jason@redhat.com>
8991         * c-common.h (abi_compat_version_crosses): New.
8992         (warn_abi_version): Declare.
8993         * c-common.c: Define it.
8994         * c-opts.c (c_common_post_options): Handle it.
8995         flag_abi_compat_version defaults to 8.
8997 2015-09-21  Ville Voutilainen  <ville.voutilainen@gmail.com>
8999         Complete the implementation of N4230, Nested namespace definition.
9000         * c-cppbuiltin.c: Add __cpp_namespace_attributes and
9001         __cpp_nested_namespace_definitions.
9003 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9005         * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
9007 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9009         * c-pragma.c (handle_pragma_diagnostic): Use explicit location
9010         when warning.
9011         * c-pragma.h (pragma_lex): Add optional loc argument.
9013 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
9015         * c-format.c (check_format_arg): Adjust to use common block size in all
9016         object pools.
9018 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
9020         * c-format.c (location_from_offset): Update for change in
9021         signature of location_get_source_line.
9022         * c-indentation.c (get_visual_column): Likewise.
9023         (line_contains_hash_if): Likewise.
9025 2015-09-14  Marek Polacek  <polacek@redhat.com>
9027         * c-opts.c (c_common_post_options): Set C++ standard earlier, before
9028         setting various warnings.
9030 2015-09-14  Marek Polacek  <polacek@redhat.com>
9032         * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
9033         a negative value.
9035 2015-09-11  Mark Wielaard  <mjw@redhat.com>
9037         PR c/28901
9038         * c.opt (Wunused-variable): Option from common.opt.
9039         (Wunused-const-variable): New option.
9041 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
9043         PR c++/53184
9044         * c.opt ([Wsubobject-linkage]): Add.
9046 2015-09-03  Martin Sebor  <msebor@redhat.com>
9048         PR c/66516
9049         * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
9050         functions.
9051         * c-common.c (reject_gcc_builtin): Define.
9053 2015-09-02  Balaji V. Iyer  <balaji.v.iyer@intel.com>
9055         PR middle-end/60586
9056         * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
9057         prototype.
9058         * c-gimplify.c (c_gimplify_expr): Added a call to the function
9059         cilk_gimplify_call_params_in_spawned_fn.
9060         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
9061         (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
9062         unwrapping.
9064 2015-08-25  Marek Polacek  <polacek@redhat.com>
9066         PR middle-end/67330
9067         * c-common.c (handle_weak_attribute): Don't check whether the
9068         visibility can be changed here.
9070 2015-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9072         * c-lex.c (c_lex_with_flags): Use explicit locations.
9074 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
9076         * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
9077         c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
9079 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9081         PR middle-end/36757
9082         * c-common.c (check_builtin_function_arguments): Add check
9083         for BUILT_IN_SIGNBIT argument.
9085 2015-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
9087         PR c++/67160
9088         * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
9089         in c++1z mode.
9091 2015-08-17  Marek Polacek  <polacek@redhat.com>
9093         * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
9094         with whitespaces before qualifier names.
9096 2015-08-12  Marek Polacek  <polacek@redhat.com>
9098         PR c++/55095
9099         * c-common.c (maybe_warn_shift_overflow): Properly handle
9100         left-shifting 1 into the sign bit.
9102 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9104         * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
9106 2015-08-06  Andrew Sutton  <andrew.n.sutton@gmail.com>
9107             Braden Obrzut  <admin@maniacsvault.net>
9108             Jason Merrill  <jason@redhat.com>
9110         Add C++ Concepts TS support.
9111         * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
9112         * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
9113         (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
9114         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
9115         * c-opts.c (set_std_cxx1z): Set flag_concepts.
9116         * c.opt (fconcepts): New.
9118 2015-08-02  Martin Sebor  <msebor@redhat.com>
9120         * c.opt (-Wframe-address): New warning option.
9122 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
9124         * c-indentation.c (should_warn_for_misleading_indentation):
9125         Improve heuristics.
9127 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
9129         * c-indentation.c (get_visual_column): Add parameter first_nws,
9130         use it.  Update comment documenting the function.
9131         (is_first_nonwhitespace_on_line): Remove.
9132         (should_warn_for_misleading_indentation): Replace usage of
9133         of is_first_nonwhitespace_on_line with get_visual_column.
9135 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
9137         * c-indentation.h (struct token_indent_info): Define.
9138         (get_token_indent_info): Define.
9139         (warn_for_misleading_information): Declare.
9140         * c-common.h (warn_for_misleading_information): Remove.
9141         * c-identation.c (warn_for_misleading_indentation):
9142         Change declaration to take three token_indent_infos.  Adjust
9143         accordingly.
9144         * c-identation.c (should_warn_for_misleading_indentation):
9145         Likewise.  Bail out early if the body is a compound statement.
9146         (guard_tinfo_to_string): Define.
9148 2015-07-30  Jason Merrill  <jason@redhat.com>
9150         * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
9151         '*' for reference decay.
9153 2015-07-30  Marek Polacek  <polacek@redhat.com>
9155         * c-common.c (warn_tautological_cmp): Bail for float types.
9157 2015-07-27  Marek Polacek  <polacek@redhat.com>
9159         PR bootstrap/67030
9160         * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
9162 2015-07-27  Marek Polacek  <polacek@redhat.com>
9164         PR c++/66555
9165         PR c/54979
9166         * c-common.c (find_array_ref_with_const_idx_r): New function.
9167         (warn_tautological_cmp): New function.
9168         * c-common.h (warn_tautological_cmp): Declare.
9169         * c.opt (Wtautological-compare): New option.
9171 2015-07-23  Marek Polacek  <polacek@redhat.com>
9173         * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
9174         (ubsan_instrument_shift): Likewise.
9176 2015-07-23  Marek Polacek  <polacek@redhat.com>
9178         PR sanitizer/66908
9179         * c-ubsan.c: Include gimplify.h.
9180         (ubsan_instrument_division): Unshare OP0 and OP1.
9181         (ubsan_instrument_shift): Likewise.
9183 2015-07-20  Marek Polacek  <polacek@redhat.com>
9184             Richard Sandiford  <richard.sandiford@arm.com>
9186         PR c++/55095
9187         * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
9188         Use EXPR_LOC_OR_LOC.
9189         (maybe_warn_shift_overflow): New function.
9190         * c-common.h (maybe_warn_shift_overflow): Declare.
9191         * c-opts.c (c_common_post_options): Set warn_shift_overflow.
9192         * c.opt (Wshift-overflow): New option.
9194 2015-07-16  Martin Liska  <mliska@suse.cz>
9196         * c-format.c (static void check_format_info_main): Use
9197         object_allocator instead of pool_allocator.
9198         (check_format_arg): Likewise.
9199         (check_format_info_main): Likewise.
9201 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
9203         * c-opts.c: Remove multiline #include comment.
9205 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
9207         * c-common.c: Fix double word typos.
9209 2015-07-10  Eric Botcazou  <ebotcazou@adacore.com>
9211         * c-ada-spec.h (cpp_operation): Revert latest change.
9212         * c-ada-spec.c (print_ada_declaration): Likewise.  Skip implicit
9213         constructors and destructors.
9215 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
9217         * c-common.h: Adjust includes for flags.h changes.
9218         * stub-objc.c: Likewise.
9220 2015-07-08  Eric Botcazou  <ebotcazou@adacore.com>
9222         * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
9223         * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
9225 2015-07-08  Jakub Jelinek  <jakub@redhat.com>
9227         * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
9228         are to be removed, return NULL rather than original clauses list.
9230 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
9232         * array-notation-common.c: Adjust includes.
9233         * c-ada-spec.c: Likewise.
9234         * c-cilkplus.c: Likewise.
9235         * c-common.h: Likewise.
9236         * c-cppbuiltin.c: Likewise.
9237         * c-dump.c: Likewise.
9238         * c-format.c: Likewise.
9239         * c-gimplify.c: Likewise.
9240         * c-indentation.c: Likewise.
9241         * c-lex.c: Likewise.
9242         * c-omp.c: Likewise.
9243         * c-opts.c: Likewise.
9244         * c-pch.c: Likewise.
9245         * c-ppoutput.c: Likewise.
9246         * c-pragma.c: Likewise.
9247         * c-pretty-print.c: Likewise.
9248         * c-semantics.c: Likewise.
9249         * c-ubsan.c: Likewise.
9250         * cilk.c: Likewise.
9251         * stub-objc.c: Likewise.
9253 2015-07-07  Eric Botcazou  <ebotcazou@adacore.com>
9255         * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
9256         * c-ada-spec.c (print_ada_declaration): Skip move constructors.
9258 2015-07-01  Jason Merrill  <jason@redhat.com>
9260         * c-common.h (D_CXX11): Rename from D_CXX0X.
9261         (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
9262         * c-common.c: Adjust.
9264         * c-opts.c (c_common_post_options): Default to C++14.
9266         * c-opts.c (c_common_post_options): Highest ABI level is now 10.
9268 2015-06-30  Edward Smith-Rowland  <3dw4rd@verizon.net>
9270         Implement N4197 - Adding u8 character literals
9271         * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
9272         CPP_CHAR.
9273         * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
9274         CPP_UTF8CHAR_USERDEF tokens.
9275         * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
9276         and CPP_UTF8CHAR tokens.
9277         (lex_charconst): Treat CPP_UTF8CHAR token.
9279 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9281         PR fortran/66605
9282         * c-common.c (do_warn_unused_parameter): Move here.
9283         * c-common.h (do_warn_unused_parameter): Declare.
9285 2015-06-29  Marek Polacek  <polacek@redhat.com>
9287         PR c/66322
9288         * c-common.c (check_case_bounds): Add bool * parameter.  Set
9289         OUTSIDE_RANGE_P.
9290         (c_add_case_label): Add bool * parameter.  Pass it down to
9291         check_case_bounds.
9292         (c_do_switch_warnings): Add bool parameters.  Implement -Wswitch-bool
9293         warning here.
9294         * c-common.h (c_add_case_label, c_do_switch_warnings): Update
9295         declarations.
9297 2015-06-27  Marek Polacek  <polacek@redhat.com>
9299         * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
9300         or VECTOR_INTEGER_TYPE_P throughout.
9301         * c-gimplify.c: Likewise.
9303 2015-06-26  Marek Polacek  <polacek@redhat.com>
9305         * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
9306         * c-common.c (c_fully_fold_internal): Likewise.
9307         (c_alignof_expr): Likewise.
9308         * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
9309         * c-ubsan.c (ubsan_instrument_bounds): Likewise.
9310         * cilk.c (create_parm_list): Likewise.
9312 2015-06-26  Marek Polacek  <polacek@redhat.com>
9314         * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
9316 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
9318         * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
9319         * c-gimplify.c: Likewise.
9320         * c-pragma.c: Likewise.
9321         * c-ubsan.c: Likewise.
9322         * cilk.c: Likewise.
9324 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9326         * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
9327         ggc_hasher.
9329 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
9331         * cilk.c: Move calls.h after tm.h in the include chain.
9333 2015-06-25  Marek Polacek  <polacek@redhat.com>
9335         * array-notation-common.c: Use VAR_P throughout.
9336         * c-ada-spec.c: Likewise.
9337         * c-common.c: Likewise.
9338         * c-format.c: Likewise.
9339         * c-gimplify.c: Likewise.
9340         * c-omp.c: Likewise.
9341         * c-pragma.c: Likewise.
9342         * c-pretty-print.c: Likewise.
9343         * cilk.c: Likewise.
9345 2015-06-25  Marek Polacek  <polacek@redhat.com>
9347         * cilk.c (extract_free_variables): Use is_global_var.
9349 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
9351         * c-common.c: Don't include target-def.h.
9353 2015-06-23  Marek Polacek  <polacek@redhat.com>
9355         * c-common.c (warn_logical_operator): Use tree_int_cst_equal
9356         when comparing INTEGER_CSTs.
9358 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
9360         * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
9361         * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
9362         (dump_ada_template): Skip partially specialized types.
9364 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
9366         * c-common.c (scalar_to_vector): Use std::swap instead of manually
9367         swapping.
9369 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
9371         * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
9372         * c-ada-spec.c: Likewise.
9373         * c-cilkplus.c: Likewise.
9374         * c-common.c: Likewise.
9375         * c-common.h: Likewise.
9376         * c-cppbuiltin.c: Likewise.
9377         * c-dump.c: Likewise.
9378         * c-format.c: Likewise.
9379         * c-gimplify.c: Likewise.
9380         * c-indentation.c: Likewise.
9381         * c-lex.c: Likewise.
9382         * c-omp.c: Likewise.
9383         * c-opts.c: Likewise.
9384         * c-pch.c: Likewise.
9385         * c-ppoutput.c: Likewise.
9386         * c-pragma.c: Likewise.
9387         * c-pretty-print.c: Likewise.
9388         * c-semantics.c: Likewise.
9389         * c-ubsan.c: Likewise.
9390         * cilk.c: Likewise.
9391         * stub-objc.c: Likewise.
9393 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
9395         PR c++/65168
9396         * c-common.c (c_common_truthvalue_conversion): Warn when
9397         converting an address of a reference to a truth value.
9399 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
9401         * array-notation-common.c : Adjust include files.
9402         * c-ada-spec.c : Likewise.
9403         * c-cilkplus.c : Likewise.
9404         * c-common.c : Likewise.
9405         * c-common.h : Likewise.
9406         * c-cppbuiltin.c : Likewise.
9407         * c-dump.c : Likewise.
9408         * c-format.c : Likewise.
9409         * c-gimplify.c : Likewise.
9410         * c-indentation.c : Likewise.
9411         * c-lex.c : Likewise.
9412         * c-omp.c : Likewise.
9413         * c-opts.c : Likewise.
9414         * c-pch.c : Likewise.
9415         * c-ppoutput.c : Likewise.
9416         * c-pragma.c : Likewise.
9417         * c-pretty-print.c : Likewise.
9418         * c-semantics.c : Likewise.
9419         * c-ubsan.c : Likewise.
9420         * cilk.c : Likewise.
9421         * stub-objc.c : Likewise.
9423 2015-06-08  Marek Polacek  <polacek@redhat.com>
9425         PR c/66415
9426         * c-format.c (location_from_offset): Return LOC if LINE is null.
9428 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
9430         * c-common.h (c_parse_final_cleanups): New prototype.
9431         * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
9433 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
9435         * c-common.c (noplt): New attribute.
9436         (handle_noplt_attribute): New handler.
9438 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
9440         * array-notation-common.c: Adjust includes for restructured coretypes.h.
9441         * c-ada-spec.c: Likewise.
9442         * c-cilkplus.c: Likewise.
9443         * c-common.c: Likewise.
9444         * c-common.h: Likewise.
9445         * c-cppbuiltin.c: Likewise.
9446         * c-dump.c: Likewise.
9447         * c-format.c: Likewise.
9448         * c-gimplify.c: Likewise.
9449         * c-indentation.c: Likewise.
9450         * c-lex.c: Likewise.
9451         * c-omp.c: Likewise.
9452         * c-opts.c: Likewise.
9453         * c-pch.c: Likewise.
9454         * c-ppoutput.c: Likewise.
9455         * c-pragma.c: Likewise.
9456         * c-pretty-print.c: Likewise.
9457         * c-semantics.c: Likewise.
9458         * c-ubsan.c: Likewise.
9459         * cilk.c: Likewise.
9460         * stub-objc.c: Likewise.
9462 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
9464         PR c/66220:
9465         * c-indentation.c (should_warn_for_misleading_indentation): Use
9466         expand_location rather than expand_location_to_spelling_point.
9467         Don't warn if the guarding statement is more indented than the
9468         next/body stmts.
9470 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
9472         * c-indentation.c (warn_for_misleading_indentation): Bail out
9473         immediately if -Wmisleading-indentation isn't enabled.
9475 2015-06-01  Martin Liska  <mliska@suse.cz>
9477         * c-format.c (check_format_arg):Use new type-based pool allocator.
9478         (check_format_info_main) Likewise.
9480 2015-05-31  Eric Botcazou  <ebotcazou@adacore.com>
9482         * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
9483         (has_nontrivial_methods): Likewise.
9485 2015-05-25  Marek Polacek  <polacek@redhat.com>
9487         * c-ubsan.c (ubsan_instrument_shift): Use type0.
9489 2015-05-22  Marek Polacek  <polacek@redhat.com>
9491         PR c/47043
9492         * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
9494 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9496         * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
9497         STACK_GROWS_DOWNWARD.
9499 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9501         * c-cppbuiltin.c (c_cpp_builtins): Check the value of
9502         STACK_GROWS_DOWNWARD rather than if it is defined.
9504 2015-05-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9506         PR c/52952
9507         * c-format.c (location_column_from_byte_offset): New.
9508         (location_from_offset): New.
9509         (struct format_wanted_type): Add offset_loc field.
9510         (check_format_info): Move handling of location for extra arguments
9511         closer to the point of warning.
9512         (check_format_info_main): Pass the result of location_from_offset
9513         to warning_at.
9514         (format_type_warning): Pass the result of location_from_offset
9515         to warning_at.
9517 2015-05-20  Marek Polacek  <polacek@redhat.com>
9519         * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
9521 2015-05-20  Marek Polacek  <polacek@redhat.com>
9523         * c-ada-spec.c (dump_sloc): Use DECL_P.
9525 2015-05-20  Marek Polacek  <polacek@redhat.com>
9527         * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
9528         * c-common.c: Likewise.
9530 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
9532         * c-common.h (fe_file_change): Strengthen param from
9533         const line_map * to const line_map_ordinary *.
9534         (pp_file_change): Likewise.
9535         * c-lex.c (fe_file_change): Likewise.
9536         (cb_define): Use linemap_check_ordinary when invoking
9537         SOURCE_LINE.
9538         (cb_undef): Likewise.
9539         * c-opts.c (c_finish_options): Use linemap_check_ordinary when
9540         invoking cb_file_change.
9541         (c_finish_options): Likewise.
9542         (push_command_line_include): Likewise.
9543         (cb_file_change): Strengthen param "new_map" from
9544         const line_map * to const line_map_ordinary *.
9545         * c-ppoutput.c (cb_define): Likewise for local "map".
9546         (pp_file_change): Likewise for param "map" and local "from".
9548 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
9550         * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
9552 2015-05-18  Tom de Vries  <tom@codesourcery.com>
9554         * c-common.c (build_va_arg_1): New function.
9555         (build_va_arg): Add address operator to va_list operand if necessary.
9557 2015-05-15  Mikhail Maltsev  <maltsevm@gmail.com>
9559         PR c/48956
9560         * c-common.c (int_safely_convertible_to_real_p): Define.
9561         (unsafe_conversion_p): Check conversions involving complex types.
9562         (conversion_warning): Add new warning message for conversions which
9563         discard imaginary component.
9564         * c-common.h: (enum conversion_safety): Add new enumerator for such
9565         conversions.
9567 2015-05-14  Marek Polacek  <polacek@redhat.com>
9569         PR c/66066
9570         PR c/66127
9571         * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
9572         (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
9573         C_MAYBE_CONST_EXPR_INT_OPERANDS set.  Add FOR_INT_CONST argument and
9574         use it.  If FOR_INT_CONST, require that all evaluated operands be
9575         INTEGER_CSTs.
9577 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
9579         * c-common.h (warn_for_misleading_indentation): New prototype.
9580         * c-indentation.c: New file.
9581         * c.opt (Wmisleading-indentation): New option.
9583 2015-05-12  Tom de Vries  <tom@codesourcery.com>
9585         PR tree-optimization/66010
9586         * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
9588 2015-05-09  Jason Merrill  <jason@redhat.com>
9590         * c-opts.c (c_common_post_options): Also clear
9591         cpp_opts->cpp_warn_cxx11_compat.
9593         * c-common.h (enum cxx_dialect): Add cxx_unset.
9594         * c-common.c (cxx_dialect): Initialize to cxx_unset.
9595         * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
9597         * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
9598         (std=gnu++0x): Mark as Undocumented.
9599         (std=gnu++1y): Add deprecated message.
9601 2015-05-08  Jason Merrill  <jason@redhat.com>
9603         * c.opt (Wc++11-compat): Make primary.  Rename var warn_cxx11_compat.
9604         * c-opts.c: Adjust.
9606         * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
9608 2015-05-08  Marek Polacek  <polacek@redhat.com>
9610         PR c/64918
9611         * c.opt (Woverride-init-side-effects): New option.
9613 2015-05-07  Marek Polacek  <polacek@redhat.com>
9615         PR c/65179
9616         * c-common.c (c_fully_fold_internal): Warn when left shifting a
9617         negative value.
9618         * c.opt (Wshift-negative-value): New option.
9619         * c-opts.c (c_common_post_options): Set warn_shift_negative_value
9620         when -Wextra and C99/C++11 mode.
9622 2015-05-07  Marek Polacek  <polacek@redhat.com>
9623             Martin Uecker  <uecker@eecs.berkeley.edu>
9625         * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
9626         flexible member array-like members if SANITIZE_BOUNDS_STRICT.
9628 2015-05-05  Jason Merrill  <jason@redhat.com>
9630         * c.opt (Wterminate): New.
9632 2015-04-30  Marek Polacek  <polacek@redhat.com>
9634         * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
9635         require that the non-constant be of a boolean type.
9637 2015-04-29  Josh Triplett  <josh@joshtriplett.org>
9639         * c-common.c (handle_section_attribute): Refactor to reduce
9640         nesting and distinguish between error cases.
9642 2015-04-29  Marek Polacek  <polacek@redhat.com>
9644         PR c/64610
9645         * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
9646         with 0/1.
9648 2015-04-29  Jakub Jelinek  <jakub@redhat.com>
9650         * c-common.h (omp_clause_mask): Unconditionally define as a class.
9651         Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
9652         HOST_BITS_PER_WIDE_INT.
9654 2015-04-28  Tom de Vries  <tom@codesourcery.com>
9656         PR tree-optimization/65887
9657         * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
9659 2015-04-28  Eric Botcazou  <ebotcazou@adacore.com>
9660             Pierre-Marie de Rodat  <derodat@adacore.com>
9662         * c-ada-spec.c (in_function): Delete.
9663         (dump_generic_ada_node): Do not change in_function and remove the
9664         redundant code dealing with it.
9665         (print_ada_declaration): Do not change in_function.  Use INDENT_INCR.
9666         (print_ada_methods): Output the static member functions in a nested
9667         package after the regular methods as well as associated renamings.
9669 2015-04-24  Marek Polacek  <polacek@redhat.com>
9671         PR c/65830
9672         * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
9673         and OPT_Wshift_count_overflow.
9675         PR c/63357
9676         * c-common.c (warn_logical_operator): Warn if the operands have the
9677         same expressions.
9679 2015-04-24  Marek Polacek  <polacek@redhat.com>
9681         PR c/61534
9682         * c-common.c (warn_logical_operator): Bail if either operand comes
9683         from a macro expansion.
9685 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9687         PR target/55143
9688         * c-common.c (c_default_pointer_mode): Add definition.
9689         * c-common.h (c_default_pointer_mode): Add declaration.
9691 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
9693         * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
9694         on record_builtin_type argument.
9696 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
9698         PR c/65120
9699         * c-common.c (warn_logical_not_parentheses): Don't warn for
9700         !x == 0 or !x != 0.
9702 2015-03-07  Marek Polacek  <polacek@redhat.com>
9704         PR sanitizer/65280
9705         * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
9706         before trying to figure out whether we have a flexible array member.
9708 2015-03-06  Eric Botcazou  <ebotcazou@adacore.com>
9709             Jonathan Wakely  <jwakely.gcc@gmail.com>
9711         * c-ada-spec.c (dump_ada_double_name): Fix pasto.
9713 2015-03-05  Eric Botcazou  <ebotcazou@adacore.com>
9715         PR ada/65319
9716         * c-ada-spec.c (print_destructor): Remove obsolete code.
9718 2015-03-01  Eric Botcazou  <ebotcazou@adacore.com>
9720         * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
9721         (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
9722         DECL_TEMPLATE_RESULT emulations.
9723         (dump_ada_template)): Add guard for TYPE_METHODS.
9725 2015-02-27  Marek Polacek  <polacek@redhat.com>
9727         PR c/65040
9728         * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
9730 2015-02-27  Kai Tietz  <ktietz@redhat.com>
9732         PR c/35330
9733         * c-pragma.c (handle_pragma_weak): Do not try to create
9734         weak/alias of declarations not being function, or variable
9735         declarations.
9737 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
9739         PR libgomp/64625
9740         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
9741         Remove macros.
9742         (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
9744 2015-02-16  Marek Polacek  <polacek@redhat.com>
9746         PR c/65066
9747         * c-format.c (check_format_types): Handle null param.
9749 2015-02-13  Marek Polacek  <polacek@redhat.com>
9751         PR c/65040
9752         * c-format.c (check_format_types): Don't warn about different
9753         signedness if the original value is in the range of WANTED_TYPE.
9755 2015-02-12  Jason Merrill  <jason@redhat.com>
9757         PR c++/64956
9758         * c-opts.c (c_common_post_options): Change flag_abi_version from 0
9759         to the current highest version.
9760         * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
9762 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
9764         PR c/64824
9765         PR c/64868
9766         * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
9767         instead of RDIV_EXPR.  Use build_binary_op instead of
9768         build2_loc.
9770 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
9772         * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
9773         to pass input_location as first argument.
9775 2015-01-23  Tom de Vries  <tom@codesourcery.com>
9777         PR libgomp/64672
9778         * c.opt (fopenacc): Mark as LTO option.
9780 2015-01-23  Tom de Vries  <tom@codesourcery.com>
9782         PR libgomp/64707
9783         * c.opt (fopenmp): Mark as LTO option.
9785 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
9787         PR c/63307
9788         * cilk.c (fill_decls_vec): Only put decls into vector v.
9789         (compare_decls): Fix up formatting.
9791 2015-01-21  Igor Zamyatin  <igor.zamyatin@intel.com>
9793         PR c/63307
9794         * cilk.c: Include vec.h.
9795         (struct cilk_decls): New structure.
9796         (wrapper_parm_cb): Split this function to...
9797         (fill_decls_vec): ...this...
9798         (create_parm_list): ...and this.
9799         (compare_decls): New function.
9800         (for_local_cb): Remove.
9801         (wrapper_local_cb): Ditto.
9802         (build_wrapper_type): For now first traverse and fill vector of
9803         declarations then sort it and then deal with sorted vector.
9804         (cilk_outline): Ditto.
9805         (declare_one_free_variable): Ditto.
9807 2015-01-21  Jason Merrill  <jason@redhat.com>
9809         PR c++/64629
9810         * c-format.c (check_format_arg): Call decl_constant_value.
9812 2015-01-19  Martin Liska  <mliska@suse.cz>
9814         * c-common.c (handle_noicf_attribute): New function.
9816 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
9817             Bernd Schmidt  <bernds@codesourcery.com>
9818             James Norris  <jnorris@codesourcery.com>
9819             Cesar Philippidis  <cesar@codesourcery.com>
9820             Ilmir Usmanov  <i.usmanov@samsung.com>
9821             Jakub Jelinek  <jakub@redhat.com>
9823         * c.opt (fopenacc): New option.
9824         * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
9825         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
9826         New macros.
9827         * c-common.h (c_finish_oacc_wait): New prototype.
9828         * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
9829         (c_finish_oacc_wait): New function.
9830         * c-pragma.c (oacc_pragmas): New variable.
9831         (c_pp_lookup_pragma, init_pragma): Handle it.
9832         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
9833         PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
9834         PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
9835         PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
9836         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
9837         PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
9838         PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
9839         PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
9840         PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
9841         PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
9842         PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
9843         PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
9844         PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
9845         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
9846         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
9847         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
9848         PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
9849         PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
9850         PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
9851         PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
9852         PRAGMA_OACC_CLAUSE_WORKER.
9854 2015-01-14  Marcos Diaz  <marcos.diaz@tallertechnologies.com>
9856         * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
9857         for the new option fstack-protector_explicit.
9858         * c-common.c (c_common_attribute_table): Add stack_protect attribute.
9859         (handle_stack_protect_attribute): New function.
9861 2015-01-13  Martin Uecker  <uecker@eecs.berkeley.edu>
9863         * c.opt: New option -Warray-bounds=.
9865 2015-01-09  Michael Collison  <michael.collison@linaro.org>
9867         * array-notation-common.c: Include hash-set.h, machmode.h,
9868         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
9869         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
9870         * c-ada-spec.c: Ditto.
9871         * c-cilkplus.c: Ditto.
9872         * c-common.c: Include input.h due to flattening of tree.h.
9873         Define macro GCC_C_COMMON_C.
9874         * c-common.h: Flatten tree.h header files into c-common.h.
9875         Remove include of tree-core.h.
9876         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
9877         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
9878         fold-const.h, wide-int.h, and inchash.h due to
9879         flattening of tree.h.
9880         * c-dump.c: Ditto.
9881         * c-format.c: Flatten tree.h header files into c-common.h.
9882         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
9883         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
9884         fold-const.h, wide-int.h, and inchash.h due to
9885         flattening of tree.h.
9886         * c-dump.c: Include hash-set.h, machmode.h,
9887         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
9888         fold-const.h, wide-int.h, and inchash.h due to
9889         flattening of tree.h.
9890         * c-format.c: Include hash-set.h, machmode.h,
9891         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
9892         fold-const.h, wide-int.h, inchash.h and real.h due to
9893         flattening of tree.h.
9894         * c-gimplify.c: Include hash-set.h, machmode.h,
9895         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
9896         fold-const.h, wide-int.h, and inchash.h due to
9897         flattening of tree.h.
9898         * cilk.c: Ditto.
9899         * c-lex.c: Ditto.
9900         * c-omp.c: Ditto.
9901         * c-opts.c: Ditto.
9902         * c-pch.c: Ditto.
9903         * c-ppoutput.c: Ditto.
9904         * c-pragma.c: Ditto.
9905         * c-pretty-print.c: Ditto.
9906         * c-semantics.c: Ditto.
9907         * c-ubsan.c: Ditto.
9908         * stub-objc.c: Ditto.
9910 2015-01-08  Jason Merrill  <jason@redhat.com>
9912         * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
9913         do_ubsan_in_current_function.
9914         (ubsan_maybe_instrument_reference_or_call): Likewise.
9915         * c-ubsan.h: Declare it.
9917 2015-01-08  Mike Stump  <mikestump@comcast.net>
9919         * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
9921 2015-01-07  Marek Polacek  <polacek@redhat.com>
9923         PR c/64440
9924         * c-common.c (c_fully_fold_internal): Warn for division and modulo
9925         if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
9927 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
9929         PR c++/31397
9930         * c.opt (Wsuggest-override): New option.
9932 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
9934         Update copyright years.
9936 2015-01-05  Marek Polacek  <polacek@redhat.com>
9938         PR c/64423
9939         * c-common.c (warn_array_subscript_with_type_char): Add location_t
9940         parameter.  Use it.
9941         * c-common.h (warn_array_subscript_with_type_char): Update
9942         declaration.
9944 2014-12-20  Edward Smith-Rowland  <3dw4rd@verizon.net>
9946         * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
9947         Control macro with flag_sized_deallocation.
9949 2014-12-20  Martin Uecker  <uecker@eecs.berkeley.edu>
9951         * c.opt (Wdiscarded-array-qualifiers): New option.
9953 2014-12-19  Jakub Jelinek  <jakub@redhat.com>
9955         PR preprocessor/63831
9956         * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
9957         and __has_cpp_attribute here.
9958         * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
9959         c_common_has_attribute.
9960         * c-common.h (c_common_has_attribute): New prototype.
9961         * c-lex.c (init_c_lex): Set cb->has_attribute to
9962         c_common_has_attribute instead of cb_has_attribute.
9963         (get_token_no_padding): New function.
9964         (cb_has_attribute): Renamed to ...
9965         (c_common_has_attribute): ... this.  No longer static.  Use
9966         get_token_no_padding, require ()s, don't build TREE_LIST
9967         unnecessarily, fix up formatting, adjust diagnostics, call
9968         init_attributes.
9970 2014-12-15  Jason Merrill  <jason@redhat.com>
9972         * c.opt (-fsized-deallocation, -Wc++14-compat): New.
9973         (-Wsized-deallocation): New.
9974         * c-opts.c (c_common_post_options): -fsized-deallocation defaults
9975         to on in C++14 and up.
9977 2014-12-11  Jason Merrill  <jason@redhat.com>
9979         * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
9981         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
9982         we aren't complaining about VLAs.
9984 2014-12-06  Marek Polacek  <polacek@redhat.com>
9986         PR tree-optimization/64183
9987         * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
9988         shift-expression if it is integer_type_node.  Use types_compatible_p.
9990 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
9992         * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
9993         last argument from create_tmp_var_raw and create_tmp_var calls.
9994         * cilk.c (gimplify_cilk_spawn): Likewise.
9995         * c-omp.c (c_finish_omp_atomic): Likewise.
9997 2014-11-28  Marek Polacek  <polacek@redhat.com>
9999         * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
10000         instead of unsigned_type_node.
10002 2014-11-28  Marek Polacek  <polacek@redhat.com>
10004         PR c/63862
10005         * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
10006         to op1_utype.
10007         * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
10008         expression to unsigned_type_node.
10010 2014-11-20  Mark Wielaard  <mjw@redhat.com>
10012         PR debug/38757
10013         * c-opts.c (set_std_c89): Set lang_hooks.name.
10014         (set_std_c99): Likewise.
10015         (set_std_c11): Likewise.
10016         (set_std_cxx98): Likewise.
10017         (set_std_cxx11): Likewise.
10018         (set_std_cxx14): Likewise.
10019         (set_std_cxx1z): Likewise.
10021 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
10023         PR target/63764
10024         * c-common.h (convert_vector_to_pointer_for_subscript): Change
10025         return type to bool.
10026         * c-common.c: Include gimple-expr.h.
10027         (convert_vector_to_pointer_for_subscript): Change return type to
10028         bool.  If *vecp is not lvalue_p and has VECTOR_TYPE, return true
10029         and copy it into a TARGET_EXPR and use that instead of *vecp
10030         directly.
10032 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
10034         Merger of git branch "gimple-classes-v2-option-3".
10035         * ChangeLog.gimple-classes: New.
10036         * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
10037         from being just a vec<gimple> to a vec<gbind *>.
10039 2014-11-18  Jakub Jelinek  <jakub@redhat.com>
10041         PR sanitizer/63813
10042         * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
10043         argument to ptype, set type to TREE_TYPE (ptype).  Don't call
10044         get_pointer_alignment for non-pointers.  Use ptype, or if it is
10045         reference type, corresponding pointer type, as type of kind
10046         argument.
10047         (ubsan_maybe_instrument_reference,
10048         ubsan_maybe_instrument_member_call): Adjust callers.
10050 2014-11-15  Marek Polacek  <polacek@redhat.com>
10052         PR middle-end/63884
10053         * array-notation-common.c (is_sec_implicit_index_fn): Return false
10054         for NULL fndecl.
10055         (extract_array_notation_exprs): Return for NULL node.
10057 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
10059         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
10060         undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
10062 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
10064         PR c/59708
10065         * c-common.c (check_builtin_function_arguments): Handle
10066         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
10068 2014-11-10  Andi Kleen  <ak@linux.intel.com>
10070         PR c/60804
10071         * c-common.h (check_no_cilk): Declare.
10072         * cilk.c (get_error_location): New function.
10073         (check_no_cilk): Dito.
10075 2014-11-10  Andi Kleen  <ak@linux.intel.com>
10077         * cilk.c (recognize_spawn): Use expression location
10078         for error message.
10080 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
10082         * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
10084 2014-11-10  Edward Smith-Rowland  <3dw4rd@verizon.net>
10086         * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
10087         (__cpp_rtti, __cpp_exceptions): New macros for C++98;
10088         (__cpp_range_based_for, __cpp_initializer_lists,
10089         __cpp_delegating_constructors, __cpp_nsdmi,
10090         __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
10091         for C++11; (__cpp_attribute_deprecated): Remove in favor of
10092         __has_cpp_attribute.
10093         * c-lex.c (cb_has_attribute): New callback CPP function;
10094         (init_c_lex): Set has_attribute callback.
10096 2014-11-04  Richard Biener  <rguenther@suse.de>
10098         * c-common.c (shorten_compare): Do not shorten mixed
10099         DFP and non-DFP compares.
10101 2014-11-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
10103         * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
10104         * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
10105         Commentary and rearrangement of tests.
10106         * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
10107         Commentary and rearrangement of tests.
10108         * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto.
10109         * g++.dg/cpp1y/feat-cxx98.C: Commentary.
10111 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
10113         * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
10114         enum from machine_mode.
10116 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
10118         * c-common.c: Adjust include files.
10119         * c-gimplify.c: Ditto.
10120         * cilk.c: Ditto.
10121         * c-pragma.c: Ditto.
10122         * c-ubsan.c: Ditto.
10124 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
10126         * c-gimplify.c: Adjust include files.
10128 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10130         PR c++/53061
10131         * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
10132         c_common_initialize_diagnostics.
10133         * c-common.h: Likewise.
10135 2014-10-24  Marek Polacek  <polacek@redhat.com>
10137         PR c/56980
10138         * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
10139         print "struct"/"union"/"enum" for typedefed names.
10141 2014-10-23  Marek Polacek  <polacek@redhat.com>
10143         * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
10144         in unsigned type.
10146 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
10147             Yury Gribov  <y.gribov@samsung.com>
10149         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
10150         ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
10151         instead of flag_sanitize_recover as bool flag.
10153 2014-10-21  Kirill Yukhin  <kirill.yukhin@intel.com>
10155         * cilk.c: Revert previous change.
10157 2014-10-20  Igor Zamyatin  <igor.zamyatin@intel.com>
10159         PR c/63307
10160         * cilk.c: Include vec.h.
10161         (struct cilk_decls): New structure.
10162         (wrapper_parm_cb): Split this function to...
10163         (fill_decls_vec): ...this...
10164         (create_parm_list): ...and this.
10165         (compare_decls): New function.
10166         (for_local_cb): Remove.
10167         (wrapper_local_cb): Ditto.
10168         (build_wrapper_type): For now first traverse and fill vector of
10169         declarations then sort it and then deal with sorted vector.
10170         (cilk_outline): Ditto.
10171         (declare_one_free_variable): Ditto.
10173 2014-10-17  Marek Polacek  <polacek@redhat.com>
10175         * c-opts.c (c_common_post_options): Set warn_implicit_int.
10176         * c.opt (Wimplicit-int): Initialize to -1.
10178 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
10180         * c-pragma.c: Adjust include files.
10181         * c-semantics.c: Likewise.
10183 2014-10-16  DJ Delorie  <dj@redhat.com>
10185         * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
10186         multiples of bytes.
10188 2014-10-14  Jason Merrill  <jason@redhat.com>
10190         PR c++/63455
10191         * c-common.h (CPP_PREPARSED_EXPR): New.
10192         (N_CP_TTYPES): Adjust.
10194 2014-10-15  Marek Polacek  <polacek@redhat.com>
10196         * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
10198 2014-10-14  DJ Delorie  <dj@redhat.com>
10200         * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
10201         types, not just __int128.
10202         * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
10203         types, not just __int128.
10204         (cpp_atomic_builtins): Round pointer sizes up.
10205         (type_suffix): Use type precision, not specific types.
10206         * c-common.c (c_common_reswords): Remove __int128 special case.
10207         (c_common_type_for_size): Check for all __intN types, not just
10208         __int128.
10209         (c_common_type_for_mode): Likewise.
10210         (c_common_signed_or_unsigned_type): Likewise.
10211         (c_build_bitfield_integer_type): Likewise.
10212         (c_common_nodes_and_builtins): Likewise.
10213         (keyword_begins_type_specifier): Likewise.
10214         * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
10215         __intN variants.
10217 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
10219         * c-common.c: Use hash_table instead of hashtab.
10221 2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>
10223         * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
10224         C++11 section.
10226 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
10228         PR c++/54427
10229         PR c++/57198
10230         PR c++/58845
10231         * c-common.c (warn_logical_operator): Punt for vectors.
10233 2014-10-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
10235         Implement SD-6: SG10 Feature Test Recommendations
10236         * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
10237         macros and the __has_header macro.
10239 2014-09-30  Jason Merrill  <jason@redhat.com>
10241         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
10242         RID_IS_TRIVIALLY_CONSTRUCTIBLE.
10243         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
10245         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
10246         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
10248         * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
10249         * c-common.c (c_common_reswords): Remove __is_convertible_to.
10251 2014-09-24  Marek Polacek  <polacek@redhat.com>
10253         PR c/61405
10254         PR c/53874
10255         * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
10257 2014-09-23  Andi Kleen  <ak@linux.intel.com>
10259         * c-common.c (handle_no_reorder_attribute): New function.
10260         (c_common_attribute_table): Add no_reorder attribute.
10262 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
10264         * c-cppbuiltin.c (c_cpp_builtins): Define
10265         __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
10266         modes.
10268 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
10270         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
10271         for supported floating-point modes.
10273 2014-09-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10275         * c.opt (Wpsabi): Use LangEnabledBy.
10276         * c-opts.c (c_common_handle_option): Do not handle here.
10278 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
10280         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
10281         macros for floating-point modes.
10283 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
10285         PR target/58757
10286         * c-cppbuiltin.c (builtin_define_float_constants): Correct
10287         __*_DENORM_MIN__ without denormals.
10289 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
10291         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
10292         ubsan_instrument_vla, ubsan_instrument_return): Adjust
10293         ubsan_create_data callers.
10294         (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
10295         index is constant or BIT_AND_EXPR with constant mask and is
10296         small enough for the bound.
10297         * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
10298         ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
10300 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10302         * c.opt: Add CppReason to various flags.
10303         (Wdate-time): Re-sort.
10304         * c-common.c: Include c-common.h earlier.
10305         (struct reason_option_codes_t): Delete.
10306         (c_option_controlling_cpp_error): Prefix global type and struct
10307         with cpp_.
10309 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10311         * c.opt (Wnormalized): New.
10312         (Wnormalized=): Use Enum and Reject Negative.
10313         * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
10315 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
10317         * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
10318         digits of floating-point modes if -fbuilding-libgcc.
10320 2014-09-05  Joseph Myers  <joseph@codesourcery.com>
10322         * c-cppbuiltin.c (c_cpp_builtins): Also define
10323         __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
10324         __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
10325         __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
10326         __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
10327         __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
10328         __LIBGCC_STACK_GROWS_DOWNWARD__,
10329         __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
10330         __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
10331         __LIBGCC_DWARF_FRAME_REGISTERS__,
10332         __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
10333         __LIBGCC_STACK_POINTER_REGNUM__ and
10334         __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
10335         (builtin_define_with_value): Handle backslash-escaping in string
10336         macro values.
10338 2014-09-05  Richard Biener  <rguenther@suse.de>
10340         PR middle-end/63148
10341         * c-format.c (check_format_arg): Properly handle
10342         effectively signed POINTER_PLUS_EXPR offset.
10344 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10346         * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
10347         Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
10348         (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
10349         and Init.
10350         * c-opts.c (c_common_handle_option): Do not handle here.
10351         (sanitize_cpp_opts): Likewise.
10352         * c-common.c (struct reason_option_codes_t): Handle
10353         CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
10355 2014-09-03  Marek Polacek  <polacek@redhat.com>
10357         * c.opt (Wlogical-not-parentheses): Enable by -Wall.
10359 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
10360             Balaji V. Iyer  <balaji.v.iyer@intel.com>
10361             Igor Zamyatin  <igor.zamyatin@intel.com>
10363         * c-cilkplus.c (cilk_for_number_of_iterations): New function.
10364         * c-common.c (c_common_reswords): Added _Cilk_for.
10365         * c-common.h (enum rid): Added RID_CILK_FOR.
10366         (cilk_for_number_of_iterations): Add declaration.
10367         * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
10368         CILK_FOR.
10369         * c-pragma.c (init_pragma): Register "grainsize" pragma.
10370         * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
10372 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10374         * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
10375         Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
10376         Wundef): Use CPP, Var and Init.
10377         * c-opts.c (c_common_handle_option): Do not handle the above flags here.
10379 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10381         * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
10382         * c-opts.c (c_common_handle_option): Do not handle here.
10384 2014-08-25  Jason Merrill  <jason@redhat.com>
10386         * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
10387         -std=c++14 and -std=gnu++14, rather than the reverse.
10388         * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
10389         OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
10390         * c-common.h (cxx_dialect): Remove cxx1y.
10392 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
10394         * c-common.h (enum cxx_dialect): Add cxx14.
10395         * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
10396         * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
10397         cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
10399 2014-08-22  Jason Merrill  <jason@redhat.com>
10401         * c.opt (std=gnu++17): Fix alias.
10403 2014-08-22  Marek Polacek  <polacek@redhat.com>
10405         PR c++/62199
10406         * c-common.c (warn_logical_not_parentheses): Don't check LHS.  Don't
10407         check for vector types.  Drop LHS argument.
10408         * c-common.h (warn_logical_not_parentheses): Adjust.
10410 2014-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10412         * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
10413         (Wmultichar): Likewise.
10414         (Wdate-time): Use C-family languages instead of Common. Use CPP
10415         and Var.
10416         * c-opts.c (c_common_handle_option): Do not handle the above
10417         options here.
10418         (sanitize_cpp_opts): Likewise.
10420 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10422         PR fortran/44054
10423         * c-opts.c: Include tree-diagnostics.h.
10424         (c_diagnostic_finalizer): New.
10425         (c_common_initialize_diagnostics): Use it.
10427 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10429         PR preprocessor/51303
10430         * c-common.c (struct reason_option_codes_t option_codes):
10431         Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
10433 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10435         PR c/60975
10436         PR c/53063
10437         * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
10438         * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
10439         (c_common_post_options): Call init_global_opts_from_cpp.
10440         (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
10442 2014-08-19  Marek Polacek  <polacek@redhat.com>
10444         PR c++/62153
10445         * c-common.c (maybe_warn_bool_compare): New function.
10446         * c-common.h (maybe_warn_bool_compare): Declare.
10447         * c.opt (Wbool-compare): New option.
10449 2014-08-19  Marek Polacek  <polacek@redhat.com>
10451         * c.opt (Wc99-c11-compat): New option.
10453 2014-08-19  Marek Polacek  <polacek@redhat.com>
10455         * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
10456         to warn_c90_c99_compat.
10457         * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
10458         to -1.
10460 2014-08-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10461             Steven Bosscher  <steven@gcc.gnu.org>
10463         PR c/52952
10464         * c-format.c: Add extra_arg_loc and format_string_loc to struct
10465         format_check_results.
10466         (check_function_format): Use true and add comment for boolean
10467         argument.
10468         (finish_dollar_format_checking): Use explicit location when warning.
10469         (check_format_info): Likewise.
10470         (check_format_arg): Set extra_arg_loc and format_string_loc.
10471         (check_format_info_main): Use explicit location when warning.
10472         (check_format_types): Pass explicit location.
10473         (format_type_warning): Likewise.
10475 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10477         PR fortran/44054
10478         * c-format.c: Handle Fortran flags.
10480 2014-08-12  Igor Zamyatin  <igor.zamyatin@intel.com>
10482         PR other/61962
10483         * array-notation-common.c (find_rank): Added handling for other
10484         types of references.
10486 2014-08-10  Marek Polacek  <polacek@redhat.com>
10488         PR c/51849
10489         * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
10490         * c.opt (Wc90-c99-compat): Add option.
10492 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
10494         * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
10496 2014-08-03  Marek Polacek  <polacek@redhat.com>
10498         * c-common.c (check_case_value): Add location_t parameter.  Use it.
10499         (c_add_case_label): Pass loc to check_case_value.
10501 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
10503         * cilk.c: Use hash_map instead of pointer_map.
10505 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
10507         * c-gimplify.c: Use hash_set instead of pointer_set.
10509 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
10511         PR middle-end/61455
10512         * array-notation-common.c (extract_array_notation_exprs): Handling
10513         of DECL_EXPR added.
10515 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
10517         * c-common.h (min_align_of_type): Removed prototype.
10518         * c-common.c (min_align_of_type): Removed.
10519         * c-ubsan.h (ubsan_maybe_instrument_reference,
10520         ubsan_maybe_instrument_member_call): New prototypes.
10521         * c-ubsan.c: Include stor-layout.h and builtins.h.
10522         (ubsan_maybe_instrument_reference_or_call,
10523         ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
10524         functions.
10526 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
10528         PR c++/60517
10529         * c.opt (-Wreturn-local-addr): Move to common.opt.
10531 2014-07-30  Jason Merrill  <jason@redhat.com>
10533         PR c++/61659
10534         PR c++/61687
10535         Revert:
10536         * c.opt (-fuse-all-virtuals): New.
10538 2014-07-30  Tom Tromey  <tromey@redhat.com>
10540         PR c/59855
10541         * c.opt (Wdesignated-init): New option.
10542         * c-common.c (c_common_attribute_table): Add "designated_init".
10543         (handle_designated_init): New function.
10545 2014-07-24  Marek Polacek  <polacek@redhat.com>
10547         PR c/57653
10548         * c-opts.c (c_finish_options): If -imacros is in effect, return.
10550 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
10552         PR preprocessor/60723 - missing system-ness marks for macro tokens
10553         * c-ppoutput.c (struct print::prev_was_system_token): New data
10554         member.
10555         (init_pp_output): Initialize it.
10556         (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
10557         (do_line_change): Return a flag saying if a line marker was
10558         emitted or not.
10559         (scan_translation_unit): Detect if the system-ness of the token we
10560         are about to emit is different from the one of the previously
10561         emitted token.  If so, emit a line marker.  Avoid emitting useless
10562         adjacent line markers.  Avoid emitting line markers for tokens
10563         originating from the expansion of built-in macros.
10564         (scan_translation_unit_directives_only): Adjust.
10566 2014-07-15  Marek Polacek  <polacek@redhat.com>
10568         * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
10569         TYPE_MAX_VALUE is NULL.
10571 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
10573         PR middle-end/61294
10574         * c.opt (Wmemset-transposed-args): New warning.
10576 2014-07-10  Jason Merrill  <jason@redhat.com>
10578         PR c++/61659
10579         PR c++/61687
10580         * c.opt (-fuse-all-virtuals): New.
10582 2014-07-09  Richard Biener  <rguenther@suse.de>
10584         PR c-family/61741
10585         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
10586         using unsigned arithmetic if overflow does not wrap instead of
10587         if overflow is undefined.
10589 2014-07-06  Marek Polacek  <polacek@redhat.com>
10591         PR c/6940
10592         * c.opt (Wsizeof-array-argument): New option.
10594 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
10596         * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
10597         comments->count <= 1, as comments->entries might be NULL.
10599 2014-07-01  Marek Polacek  <polacek@redhat.com>
10601         * c.opt (Wint-conversion): New option.
10603 2014-07-01  Marek Polacek  <polacek@redhat.com>
10605         PR c/58286
10606         * c.opt (Wincompatible-pointer-types): New option.
10608 2014-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
10610         PR c++/51400
10611         * c-common.c (handle_noreturn_attribute, handle_const_attribute):
10612         Do not discard TYPE_QUALS of type.
10614 2014-06-26  Jason Merrill  <jason@redhat.com>
10616         * c-common.h (enum cxx_dialect): Add cxx1z.
10617         * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
10618         * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
10620 2014-06-26  Teresa Johnson  <tejohnson@google.com>
10622         * c-common.h (get_dump_info): Declare.
10623         * c-gimplify.c (c_genericize): Use saved dump files.
10624         * c-opts.c (c_common_parse_file): Begin and end dumps
10625         once around parsing invocation.
10626         (get_dump_info): New function.
10628 2014-06-23  Marek Polacek  <polacek@redhat.com>
10629             Andrew MacLeod  <amacleod@redhat.com>
10631         PR c/61553
10632         * c-common.c (get_atomic_generic_size): Don't segfault if the
10633         type doesn't have a size.
10635 2014-06-20  Marek Polacek  <polacek@redhat.com>
10637         * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
10638         (ubsan_walk_array_refs_r): New function.
10639         (c_genericize): Instrument array bounds.
10640         * c-ubsan.c: Include "internal-fn.h".
10641         (ubsan_instrument_division): Mark instrumented arrays as having
10642         side effects.  Adjust ubsan_type_descriptor call.
10643         (ubsan_instrument_shift): Likewise.
10644         (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
10645         (ubsan_instrument_bounds): New function.
10646         (ubsan_array_ref_instrumented_p): New function.
10647         (ubsan_maybe_instrument_array_ref): New function.
10648         * c-ubsan.h (ubsan_instrument_bounds): Declare.
10649         (ubsan_array_ref_instrumented_p): Declare.
10650         (ubsan_maybe_instrument_array_ref): Declare.
10652 2014-06-20  Hale Wang  <hale.wang@arm.com>
10654         PR lto/61123
10655         * c.opt (fshort-enums): Add to LTO.
10656         * c.opt (fshort-wchar): Likewise.
10658 2014-06-16  Marek Polacek  <polacek@redhat.com>
10660         PR c/60439
10661         * c.opt (Wswitch-bool): Add Var.
10663 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
10665         PR middle-end/61486
10666         * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
10667         #pragma omp target teams or
10668         #pragma omp {,target }teams distribute simd.
10670 2014-06-12  Jason Merrill  <jason@redhat.com>
10672         * c.opt (Wabi=, fabi-compat-version): New.
10673         * c-opts.c (c_common_handle_option): Handle -Wabi=.
10674         (c_common_post_options): Handle flag_abi_compat_version default.
10675         Disallow -fabi-compat-version=1.
10676         * c-common.h (abi_version_crosses): New.
10678 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
10680         * c-common.c (handle_section_attribute): Update handling for
10681         section names that are no longer trees.
10683 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
10685         PR fortran/60928
10686         * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
10687         (omp_pragmas): ... back here.
10689 2014-06-05  Marek Polacek  <polacek@redhat.com>
10691         PR c/49706
10692         * c-common.c (warn_logical_not_parentheses): New function.
10693         * c-common.h (warn_logical_not_parentheses): Declare.
10694         * c.opt (Wlogical-not-parentheses): New option.
10696 2014-06-04  Marek Polacek  <polacek@redhat.com>
10698         PR c/30020
10699         * c-common.c (check_case_bounds): Add location parameter.
10700         Use it.
10701         (c_add_case_label): Pass loc to check_case_bounds.
10703 2014-06-03  Marek Polacek  <polacek@redhat.com>
10705         PR c/60439
10706         * c.opt (Wswitch-bool): New option.
10708 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
10710         * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
10711         Remove prototypes.
10712         (record_types_used_by_current_var_decl): Move prototype to where
10713         it belongs.
10715         * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
10716         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
10717         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
10719 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
10721         * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
10722         * c-common.c (c_common_nodes_and_builtins): Don't initialize
10723         void_zero_node.
10724         * c-pretty-print.c (pp_c_void_constant): New function.
10725         (c_pretty_printer::constant, c_pretty_printer::primary_expression)
10726         (c_pretty_printer::expression): Handle VOID_CST.
10727         * cilk.c (extract_free_variables): Likewise.
10728         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
10729         (ubsan_instrument_vla): Use void_node instead of void_zero_node.
10731 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
10733         * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
10734         * c-pragma.c (push_alignment): Adjust.
10735         (handle_pragma_push_options): Likewise.
10737 2014-05-09  Marek Polacek  <polacek@redhat.com>
10739         PR c/50459
10740         * c-common.c (check_user_alignment): Return -1 if alignment is error
10741         node.
10742         (handle_aligned_attribute): Don't call default_conversion on
10743         FUNCTION_DECLs.
10744         (handle_vector_size_attribute): Likewise.
10745         (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
10746         (handle_sentinel_attribute): Call default_conversion and allow even
10747         integral types as an argument.
10749 2014-05-08  Marek Polacek  <polacek@redhat.com>
10751         PR c/61053
10752         * c-common.c (min_align_of_type): New function factored out from...
10753         (c_sizeof_or_alignof_type): ...here.
10754         * c-common.h (min_align_of_type): Declare.
10756 2014-05-08  Marek Polacek  <polacek@redhat.com>
10758         PR c/61077
10759         * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
10760         parameter type of main.
10762 2014-05-07  DJ Delorie  <dj@redhat.com>
10764         * c-cppbuiltin.c (print_bits_of_hex): New.
10765         (builtin_define_type_minmax): Print values using hex so as not to
10766         require a pre-computed list of string values.
10768 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
10769             Mike Stump  <mikestump@comcast.net>
10770             Richard Sandiford  <rdsandiford@googlemail.com>
10772         * c-ada-spec.c: Include wide-int.h.
10773         (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
10774         (dump_generic_ada_node): Use wide-int interfaces.
10775         * c-common.c: Include wide-int-print.h.
10776         (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
10777         (pointer_int_sum): Use wide-int interfaces.
10778         (c_common_nodes_and_builtins): Use make_int_cst.
10779         (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
10780         (handle_alloc_size_attribute): Use wide-int interfaces.
10781         (get_nonnull_operand): Likewise.
10782         * c-format.c (get_constant): Use tree_fits_uhwi_p.
10783         * c-lex.c: Include wide-int.h.
10784         (narrowest_unsigned_type): Take a widest_int rather than two
10785         HOST_WIDE_INTs.
10786         (narrowest_signed_type): Likewise.
10787         (interpret_integer): Update accordingly.  Use wide-int interfaces.
10788         (lex_charconst): Use wide-int interfaces.
10789         * c-pretty-print.c: Include wide-int.h.
10790         (pp_c_integer_constant): Use wide-int interfaces.
10791         * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
10792         INT_CST_LT_UNSIGNED.
10794 2014-05-06  Richard Biener  <rguenther@suse.de>
10796         * c-opts.c (c_common_post_options): For -freestanding,
10797         -fno-hosted and -fno-builtin disable pattern recognition
10798         if not enabled explicitely.
10800 2014-05-02  Marek Polacek  <polacek@redhat.com>
10802         * c.opt (Wsizeof-pointer-memaccess): Describe option.
10804 2014-05-01  Marek Polacek  <polacek@redhat.com>
10806         PR c/43245
10807         * c.opt (Wdiscarded-qualifiers): Add.
10809 2014-04-30  Marek Polacek  <polacek@redhat.com>
10811         * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs.  Perform
10812         INT_MIN / -1 sanitization only for integer types.
10814 2014-04-25  Marek Polacek  <polacek@redhat.com>
10816         PR c/18079
10817         * c-common.c (handle_noinline_attribute): Warn if the attribute
10818         conflicts with always_inline attribute.
10819         (handle_always_inline_attribute): Warn if the attribute conflicts
10820         with noinline attribute.
10822 2014-04-25  Marek Polacek  <polacek@redhat.com>
10824         PR c/60156
10825         * c-common.c (check_main_parameter_types): Warn about variadic main.
10827 2014-04-24  Mike Stump  <mikestump@comcast.net>
10829         * c.opt (Wshadow-ivar): Default to on.
10831 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
10833         * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
10835 2014-04-23  Marek Polacek  <polacek@redhat.com>
10837         * c-common.c (handle_tm_wrap_attribute): Tweak error message.
10839 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
10841         PR sanitizer/60275
10842         * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
10843         if flag_sanitize_undefined_trap_on_error.
10844         (ubsan_instrument_division, ubsan_instrument_shift,
10845         ubsan_instrument_vla): Likewise.  Use __ubsan_handle_*_abort ()
10846         if !flag_sanitize_recover.
10848 2014-04-22  Marc Glisse  <marc.glisse@inria.fr>
10850         PR libstdc++/43622
10851         * c-common.c (registered_builtin_types): Make non-static.
10852         * c-common.h (registered_builtin_types): Declare.
10854 2014-04-14  Richard Biener  <rguenther@suse.de>
10855             Marc Glisse  <marc.glisse@inria.fr>
10857         PR c/60819
10858         * c-common.c (convert_vector_to_pointer_for_subscript): Properly
10859         apply may-alias the scalar pointer type when applicable.
10861 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
10863         PR middle-end/60467
10864         * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
10865         as possible argument for Cilk_spawn.
10867 2014-04-11  Tobias Burnus  <burnus@net-b.de>
10869         PR c/60194
10870         * c.opt (Wformat-signedness): Add
10871         * c-format.c(check_format_types): Use it.
10873 2014-04-11  Jason Merrill  <jason@redhat.com>
10875         PR c++/57926
10876         * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
10877         default_conversion for an array argument.
10879 2014-04-08  Marek Polacek  <polacek@redhat.com>
10881         PR sanitizer/60745
10882         * c-ubsan.c: Include asan.h.
10883         (ubsan_instrument_return): Call initialize_sanitizer_builtins.
10885 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
10887         * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
10889 2014-04-02  Marek Polacek  <polacek@redhat.com>
10891         * c-common.h (c_expand_expr): Remove declaration.
10893 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
10895         PR c++/60689
10896         * c-common.c (add_atomic_size_parameter): When creating new
10897         params vector, push the size argument first.
10899 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
10901         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
10902         ubsan_instrument_vla, ubsan_instrument_return): Adjust
10903         ubsan_create_data callers.
10905 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
10907         PR debug/60603
10908         * c-opts.c (c_finish_options): Restore cb_file_change call to
10909         <built-in>.
10911 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
10913         PR middle-end/36282
10914         * c-pragma.c (apply_pragma_weak): Only look at
10915         TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
10916         DECL_ASSEMBLER_NAME_SET_P (decl).
10917         (maybe_apply_pending_pragma_weaks): Exit early if
10918         vec_safe_is_empty (pending_weaks) rather than only when
10919         !pending_weaks.
10920         (maybe_apply_pragma_weak): Likewise.  If !DECL_ASSEMBLER_NAME_SET_P,
10921         set assembler name back to NULL afterwards.
10923 2014-03-11  Jason Merrill  <jason@redhat.com>
10925         * c.opt: Add -std=gnu++14.
10927 2014-03-11  Ian Bolton  <ian.bolton@arm.com>
10929         * c-opts.c (c_common_post_options): Don't override
10930         -ffp-contract=fast if unsafe-math-optimizations is on.
10932 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
10934         * c.opt: Enable LTO FE for fshort-double.
10936 2014-03-07  Jason Merrill  <jason@redhat.com>
10938         * c.opt: Add -std=c++14.
10940 2014-03-06  Marek Polacek  <polacek@redhat.com>
10942         PR c/60197
10943         * cilk.c (contains_cilk_spawn_stmt): New function.
10944         (contains_cilk_spawn_stmt_walker): Likewise.
10945         (recognize_spawn): Give error on invalid use of _Cilk_spawn.
10946         * c-common.h (contains_cilk_spawn_stmt): Add declaration.
10948 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
10950         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
10951         (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
10952         even when flag_preprocess_only.
10954 2014-02-26  Jason Merrill  <jason@redhat.com>
10956         PR c++/59231
10957         PR c++/11586
10958         * c-common.c (shorten_compare): Don't check
10959         c_inhibit_evaluation_warnings.
10961 2014-02-19  Jakub Jelinek  <jakub@redhat.com>
10963         PR c/37743
10964         * c-common.c (c_common_nodes_and_builtins): When initializing
10965         c_uint{16,32,64}_type_node, also set corresponding
10966         uint{16,32,64}_type_node to the same value.
10968         PR c++/60267
10969         * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
10970         for PRAGMA_IVDEP if flag_preprocess_only.
10972 2014-02-12  Jakub Jelinek  <jakub@redhat.com>
10974         PR c/60101
10975         * c-common.c (merge_tlist): If copy is true, call new_tlist,
10976         if false, add ADD itself, rather than vice versa.
10977         (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
10978         copy.  For SAVE_EXPR, only call merge_tlist once.
10980 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
10982         PR middle-end/60092
10983         * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
10984         and tree_to_uhwi.
10985         (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
10986         functions.
10987         (c_common_attribute_table): Add alloc_align and assume_aligned
10988         attributes.
10990 2014-02-06  Marek Polacek  <polacek@redhat.com>
10992         PR c/60087
10993         * c-common.c (warn_for_sign_compare): Call warning_at with location
10994         instead of warning.
10996 2014-02-05  Marek Polacek  <polacek@redhat.com>
10998         PR c/53123
10999         * c-omp.c (c_finish_omp_atomic): Remove unreachable return
11000         statement.
11002 2014-02-04  Marek Polacek  <polacek@redhat.com>
11004         PR c/60036
11005         * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
11006         SAVE_EXPR.
11008 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
11010         PR c++/53017
11011         PR c++/59211
11012         * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
11013         handle_vector_size_attribute, handle_nonnull_attribute): Call
11014         default_conversion on the attribute argument.
11015         (handle_nonnull_attribute): Increment the argument number.
11017 2014-01-31  Marek Polacek  <polacek@redhat.com>
11019         PR c/59963
11020         * c-common.c (add_atomic_size_parameter): Pass vNULL to
11021         build_function_call_vec.
11022         (resolve_overloaded_builtin): Likewise.
11023         * c-common.h (build_function_call_vec): Adjust declaration.
11025 2014-01-30  Marek Polacek  <polacek@redhat.com>
11027         PR c/59940
11028         * c-common.h (unsafe_conversion_p): Adjust declaration.
11029         (warnings_for_convert_and_check): Likewise.
11030         (convert_and_check): Likewise.
11031         * c-common.c (unsafe_conversion_p): Add location parameter.  Call
11032         expansion_point_location_if_in_system_header on it.
11033         (warnings_for_convert_and_check): Add location parameter.  Call
11034         expansion_point_location_if_in_system_header on it.  Use it.
11035         (convert_and_check): Add location parameter.  Use it.
11036         (conversion_warning): Likewise.
11037         (c_add_case_label): Adjust convert_and_check calls.
11038         (scalar_to_vector): Adjust unsafe_conversion_p calls.
11040 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
11042         * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
11043         flag_cilkplus.
11044         * c-pragma.c (init_pragma): Likewise.
11045         * c.opt: Likewise.
11047 2014-01-23  Marek Polacek  <polacek@redhat.com>
11049         PR c/59846
11050         * c-common.c (shorten_compare): Add location_t parameter.
11051         * c-common.h (shorten_binary_op): Adjust declaration.
11053 2014-01-23  Marek Polacek  <polacek@redhat.com>
11055         PR c/58346
11056         * c-common.c (pointer_to_zero_sized_aggr_p): New function.
11057         * c-common.h: Declare it.
11059 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
11061         * c-ada-spec.h (dump_ada_specs): Revert prototype change.
11062         * c-ada-spec.c (dump_ads): Likewise.
11063         (cpp_check): Likewise.
11064         (dump_ada_specs): Likewise.
11066 2014-01-15  Laurent Alfonsi  <laurent.alfonsi@st.com>
11068         PR c++/49718
11069         * c-common.c (handle_no_instrument_function_attribute): Allow
11070         no_instrument_function attribute in class member
11071         definition/declaration.
11073 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
11075         PR c/58943
11076         * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
11077         build_modify_expr with non-NOP_EXPR opcode.  Handle return from it
11078         being COMPOUND_EXPR.
11079         (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
11080         operand a SAVE_EXPR and second MODIFY_EXPR.
11082 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
11084         PR target/58115
11085         * c-pch.c (c_common_write_pch): Call
11086         prepare_target_option_nodes_for_pch.
11088 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
11090         Update copyright years
11092 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
11094         * array-notation-common.c, c-cilkplus.c: Use the standard form for
11095         the copyright notice.
11097 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
11099         * c-ada-spec.c (print_constructor): New function.
11100         (print_destructor): Retrieve the origin of the destructor.
11101         (print_ada_declaration): Revamp handling of constructors/destructors.
11103 2013-12-23  Stuart Hastings  <stuart@apple.com>
11104             Bill Maddox  <maddox@google.com>
11105             Jason Merrill  <jason@redhat.com>
11107         * c.opt: Add -fdeclone-ctor-dtor.
11108         * c-opts.c (c_common_post_options): Default to on iff -Os.
11110 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
11112         * c-common.c (c_common_attribute_table): Added "cilk simd function"
11113         attribute.
11114         * c-pragma.h (enum pragma_cilk_clause): Remove.
11115         (enum pragma_omp_clause): Added the following fields:
11116         PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
11117         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
11118         PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
11119         PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
11120         PRAGMA_CILK_CLAUSE_UNIFORM.
11123 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
11125         * cilk.c (cilk_outline): Made this function non-static.
11126         (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
11127         (create_cilk_wrapper): Added a new parameter: a function pointer.
11128         (c_install_body_w_frame_cleanup): Remove
11129         (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
11130         * c-common.h (cilk_outline): New prototype.
11131         (gimplify_cilk_spawn): Removed two parameters.
11132         (cilk_install_body_with_frame_cleanup): New prototype.
11133         * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
11134         CILK_SPAWN_STMT case.
11136 2013-12-11  Bernd Schmidt  <bernds@codesourcery.com>
11138         * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
11140         * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
11141         (int_array_type_node): Remove.
11142         * c-common.c (c_common_nodes_and_builtins): Don't build it.
11144 2013-12-05  Marek Polacek  <polacek@redhat.com>
11146         PR c/52023
11147         * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
11148         [ADJUST_FIELD_ALIGN].
11150 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
11152         PR c/52023
11153         * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
11154         and check field alignment if set.
11155         * c-common.h (c_sizeof_or_alignof_type): Update prototype.
11156         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
11158 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
11159             Marek Polacek  <polacek@redhat.com>
11161         * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
11162         sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
11164 2013-11-29   H.J. Lu  <hongjiu.lu@intel.com>
11166         PR c/59309
11167         * cilk.c (gimplify_cilk_spawn): Properly handle function without
11168         arguments.
11170 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
11172         PR c/59280
11173         * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
11174         goto invalid.  If it is error_mark_node, don't issue further
11175         diagnostics.
11177 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
11179         * c.opt (Wopenmp-simd): New.
11181 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
11183         * c-ubsan.h (ubsan_instrument_return): New prototype.
11184         * c-ubsan.c (ubsan_instrument_return): New function.
11186 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
11188         * c-common.c: Add required include files from gimple.h.
11189         * c-gimplify.c: Likewise.
11190         * cilk.c: Likewise.
11192 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
11194         * c-common.c (unsafe_conversion_p): Remove use of
11195         EXPR_LOC_OR_HERE macro.
11196         (conversion_warning): Likewise.
11197         (warnings_for_convert_and_check): Likewise.
11198         (warn_for_collisions_1): Likewise.
11199         (shorten_compare): Likewise, and remove use of in_system_header
11200         macro, using the location from the former.
11201         * c-lex.c (dump_one_header): Remove use of input_filename macro.
11202         (cb_def_pragma): Remove use of in_system_header macro.
11203         (lex_string): Likewise.
11204         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
11206 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
11207             Mike Stump  <mikestump@comcast.net>
11208             Richard Sandiford  <rdsandiford@googlemail.com>
11210         * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
11211         instead of TREE_INT_CST_LOW, in cases where there is a protecting
11212         tree_fits_shwi_p or tree_fits_uhwi_p.
11213         (dump_generic_ada_node): Likewise.
11214         * c-format.c (check_format_arg): Likewise.
11215         * c-pretty-print.c (pp_c_integer_constant): Likewise.
11217 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
11219         * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
11221 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
11223         PR c/53001
11224         * c-common.c (unsafe_conversion_p): Make this function
11225         return an enumeration with more detail.
11226         (conversion_warning): Use the new return type of
11227         unsafe_conversion_p to separately warn either about conversions
11228         that lower floating point number precision or about the other
11229         kinds of conversions.
11230         * c-common.h (enum conversion_safety): New enumeration.
11231         (unsafe_conversion_p): switching return type to
11232         conversion_safety enumeration.
11233         * c.opt: Adding new warning -Wfloat-conversion and
11234         enabling it with -Wconversion.
11236 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
11238         * c-opts.c: Include plugin.h.
11239         (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
11241 2013-11-19  Marek Polacek  <polacek@redhat.com>
11243         * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
11244         call.
11245         (ubsan_instrument_shift): Likewise.
11246         (ubsan_instrument_vla): Likewise.
11248 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
11250         * c-common.c (convert_vector_to_pointer_for_subscript): Remove
11251         cast to unsigned type.
11253 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
11255         * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
11256         tree_low_cst.
11257         (complete_array_type): Update comment to refer to tree_to_[su]hwi
11258         rather than tree_low_cst.
11260 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
11262         * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
11263         tree_to_uhwi throughout.
11265 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
11267         * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
11268         tree_low_cst (..., 0) with tree_to_shwi throughout.
11270 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
11272         * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
11273         host_integerp (..., 1) with tree_fits_uhwi_p throughout.
11275 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
11277         * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
11278         host_integerp (..., 0) with tree_fits_shwi_p throughout.
11280 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
11282         * c-cilkplus.c: New file.
11283         * c-common.c (readonly_error): Add location argument.
11284         * c-common.h (readonly_error): Same.
11285         (c_finish_cilk_clauses): Protoize.
11286         (c_check_cilk_loop): Same.
11287         c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
11288         Do not fail on error_mark_node.
11289         Abstract increment canonicalization to here...
11290         (c_omp_for_incr_canonicalize_ptr): New.
11291         c-pragma.c (init_pragma): Register "simd" pragma.
11292         c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
11293         (enum pragma_cilk_clause): New.
11295 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
11297         * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
11298         wchar_type and host_integerp checks.
11300 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
11302         * c-common.c: Likewise.
11303         * c-gimplify.c: Likewise.
11304         * cilk.c: Likewise.
11306 2013-11-14  Diego Novillo  <dnovillo@google.com>
11308         * c-common.c: Include fold-const.h.
11309         Include stor-layout.h.
11310         Include calls.h.
11311         Include stringpool.h.
11312         Include attribs.h.
11313         Include varasm.h.
11314         Include trans-mem.h.
11315         * c-cppbuiltin.c: Include stor-layout.h.
11316         Include stringpool.h.
11317         * c-format.c: Include stringpool.h.
11318         * c-lex.c: Include stringpool.h.
11319         Include stor-layout.h.
11320         * c-pragma.c: Include stringpool.h.
11321         Include attribs.h.
11322         Include varasm.h.
11323         Include gcc-symtab.h.
11324         * c-pretty-print.c: Include stor-layout.h.
11325         Include attribs.h.
11326         * cilk.c: Include stringpool.h.
11327         Include calls.h.
11329 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
11331         * c-common.h (enum rid): Add RID_AUTO_TYPE.
11332         * c-common.c (c_common_reswords): Add __auto_type.
11333         (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
11335 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
11337         * c-common.c: Include gimplify.h.
11338         * c-gimplify.c: Likewise.
11339         * cilk.c: Likewise.
11340         * c-omp.c: Include gimple-expr.h instead of gimple.h.
11341         * c-ubsan.c: Don't include gimple.h.
11343 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
11345         * c-common.c (c_common_reswords): Add _Thread_local.
11347 2013-11-09  Joseph Myers  <joseph@codesourcery.com>
11349         * c-common.c (atomic_size_supported_p): New function.
11350         (resolve_overloaded_atomic_exchange)
11351         (resolve_overloaded_atomic_compare_exchange)
11352         (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
11353         Use it instead of comparing size with a local list of sizes.
11355 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
11356             Joseph Myers  <joseph@codesourcery.com>
11358         * c-common.h (enum rid): Add RID_ATOMIC.
11359         * c-common.c (c_common_reswords): Add _Atomic.
11360         (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
11361         (keyword_is_type_qualifier): Accept RID_ATOMIC.
11362         * c-format.c (check_format_types): Check for extra _Atomic
11363         qualifiers in format argument.
11364         * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
11365         (pp_c_type_qualifier_list): Mention _Atomic in comment.
11367 2013-11-06  Tobias Burnus  <burnus@net-b.de>
11369         * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
11371 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
11373         * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
11374         standards modes.
11375         * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
11376         to mean lack of IEEE 754 support.
11378 2013-11-05  Tobias Burnus  <burnus@net-b.de>
11380         * c.opt (-Wdate-time): New option
11381         * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
11383 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
11385         * c-cppbuiltin.c (cpp_iec_559_value): Test
11386         flag_excess_precision_cmdline not flag_excess_precision.
11388 2013-11-05  Tobias Burnus  <burnus@net-b.de>
11390         * c.opt (fopenmp-simd): New option.
11391         * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
11392         (omp_pragmas): ... this new struct.
11393         (c_pp_lookup_pragma): Also walk omp_pragmas.
11394         (init_pragma): Init pragmas for -fopenmp-simd.
11396 2013-11-04  Marek Polacek  <polacek@redhat.com>
11398         PR c++/58979
11399         * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
11401 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
11403         * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
11404         New functions.
11405         (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
11407 2013-11-04  Eric Botcazou  <ebotcazou@adacore.com>
11409         * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
11410         (dump_ada_specs): Adjust prototype of second callback.
11411         * c-ada-spec.c (cpp_check): New global variable.
11412         (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
11413         (print_generic_ada_decl): Likewise.
11414         (has_static_fields): Change return type to bool and add guard.
11415         (has_nontrivial_methods): New predicate.
11416         (is_tagged_type): Change return type to bool.
11417         (separate_class_package): Call has_nontrivial_methods.
11418         (pp_ada_tree_identifier): Minor tweaks.
11419         (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
11420         (dump_ada_array_domains): Likewise.
11421         (dump_ada_array_type): Likewise.
11422         (dump_template_types): Remove cpp_check parameter and do not pass it to
11423         dump_generic_ada_node.
11424         (dump_ada_template): Likewise.
11425         (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
11426         recursively.
11427         (print_ada_methods): Change return type to integer.  Remove cpp_check
11428         parameter and do not pass it down.
11429         (dump_nested_types): Remove cpp_check parameter and do not pass it to
11430         dump_generic_ada_node.
11431         (print_ada_declaration): Likewise.  Test RECORD_OR_UNION_TYPE_P before
11432         accessing methods.
11433         (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
11434         down.  Use has_nontrivial_methods to recognize C++ classes.  Use return
11435         value of print_ada_methods.
11436         (dump_ads): Rename cpp_check parameter to check and adjust prototype.
11437         Set cpp_check to it before invoking dump_ada_nodes.
11438         (dump_ada_specs): Likewise.
11440 2013-11-03  Marek Polacek  <polacek@redhat.com>
11442         * c-ubsan.c: Don't include hash-table.h.
11443         (ubsan_instrument_vla): New function.
11444         * c-ubsan.h: Declare it.
11446 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
11448         Automated part of renaming of symtab_node_base to symtab_node.
11450         Patch autogenerated by rename_symtab.py from
11451         https://github.com/davidmalcolm/gcc-refactoring-scripts
11452         revision 58bb219cc090b2f4516a9297d868c245495ee622
11454         * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
11455         symtab_node_base to symtab_node.
11457 2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
11459         Implement C++14 digit separators.
11460         * c-lex.c (interpret_float): Remove digit separators from scratch string
11461         before building real literal.
11463 2013-10-30  Jakub Jelinek  <jakub@redhat.com>
11465         * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
11467 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
11469         * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
11470         fields.
11471         (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
11472         enabled.
11473         * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
11474         (insert_cilk_frame): New prototype.
11475         (cilk_init_builtins): Likewise.
11476         (gimplify_cilk_spawn): Likewise.
11477         (c_cilk_install_body_w_frame_cleanup): Likewise.
11478         (cilk_detect_spawn_and_unwrap): Likewise.
11479         (cilk_set_spawn_marker): Likewise.
11480         (build_cilk_sync): Likewise.
11481         (build_cilk_spawn): Likewise.
11482         * cilk.c: New file.
11484 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
11486         Patch autogenerated by refactor_symtab.py from
11487         https://github.com/davidmalcolm/gcc-refactoring-scripts
11488         revision 58bb219cc090b2f4516a9297d868c245495ee622
11490         * c-gimplify.c (c_genericize): Update for conversion of symtab types
11491         to a true class hierarchy.
11492         * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
11494 2013-10-27  Richard Sandiford  <rdsandiford@googlemail.com>
11496         * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
11498 2013-10-26  Jeff Law  <law@redhat.com>
11500         * c-common.c (c_define_builtins): Remove mudflap support.
11501         * c.opt: Ignore and warn for mudflap options.
11503 2013-10-24  Tobias Burnus  <burnus@net-b.de>
11505         PR other/33426
11506         * c-pragma.c (init_pragma) Add #pragma ivdep handling.
11507         * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
11509 2013-10-23  Jason Merrill  <jason@redhat.com>
11511         * c-format.c (gcc_cxxdiag_char_table): Add %X.
11513 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
11515         * c-common.h (omp_clause_mask::operator !=): New method.
11516         * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
11517         instead of if (mask & something) tests everywhere.
11519         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
11520         201307 instead of 201107.
11521         * c-common.c (DEF_FUNCTION_TYPE_8): Define.
11522         (c_common_attribute_table): Add "omp declare target" and
11523         "omp declare simd" attributes.
11524         (handle_omp_declare_target_attribute,
11525         handle_omp_declare_simd_attribute): New functions.
11526         * c-omp.c: Include c-pragma.h.
11527         (c_finish_omp_taskgroup): New function.
11528         (c_finish_omp_atomic): Add swapped argument, if true,
11529         build the operation first with rhs, lhs arguments and use NOP_EXPR
11530         build_modify_expr.
11531         (c_finish_omp_for): Add code argument, pass it down to make_code.
11532         (c_omp_split_clauses): New function.
11533         (c_split_parallel_clauses): Removed.
11534         (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
11535         c_omp_declare_simd_clauses_to_decls): New functions.
11536         * c-common.h (omp_clause_mask): New type.
11537         (OMP_CLAUSE_MASK_1): Define.
11538         (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
11539         omp_clause_mask::operator |=, omp_clause_mask::operator ~,
11540         omp_clause_mask::operator |, omp_clause_mask::operator &,
11541         omp_clause_mask::operator <<, omp_clause_mask::operator >>,
11542         omp_clause_mask::operator ==): New methods.
11543         (enum c_omp_clause_split): New.
11544         (c_finish_omp_taskgroup): New prototype.
11545         (c_finish_omp_atomic): Add swapped argument.
11546         (c_finish_omp_for): Add code argument.
11547         (c_omp_split_clauses): New prototype.
11548         (c_split_parallel_clauses): Removed.
11549         (c_omp_declare_simd_clauses_to_numbers,
11550         c_omp_declare_simd_clauses_to_decls): New prototypes.
11551         * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
11552         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
11553         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
11554         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
11555         PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
11556         Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
11557         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
11558         PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
11559         PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
11560         PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
11561         PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
11562         PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
11563         PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
11564         PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
11565         PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
11566         PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
11567         PRAGMA_OMP_CLAUSE_UNIFORM.
11569 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
11571         PR tree-optimization/20318
11572         * c-common.c (handle_returns_nonnull_attribute): New function.
11573         (c_common_attribute_table): Add returns_nonnull.
11575 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
11577         PR c++/19476
11578         * c.opt (fcheck-new): Move to common.opt.
11580 2013-09-25  Marek Polacek  <polacek@redhat.com>
11581             Jakub Jelinek  <jakub@redhat.com>
11583         PR sanitizer/58413
11584         * c-ubsan.c (ubsan_instrument_shift): Don't instrument
11585         an expression if we can prove it is correct.
11586         (ubsan_instrument_division): Likewise.  Remove unnecessary
11587         check.
11589 2013-09-18  Marek Polacek  <polacek@redhat.com>
11591         PR sanitizer/58411
11592         * c-common.c (handle_no_sanitize_undefined_attribute): New function.
11593         Declare it.
11594         (struct attribute_spec c_common_att): Add no_sanitize_undefined.
11596 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
11598         PR target/48094
11599         * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
11600         fobjc-gc, freplace-objc-classes): Accept for LTO.
11602 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
11604         * c-target.def: New hook
11606 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
11608         PR c++/43452
11609         * c.opt (Wdelete-incomplete): Add.
11611 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
11613         * c-common.c (same_scalar_type_ignoring_signedness): Delete.
11614         (vector_types_compatible_elements_p): New function.
11615         * c-common.h: (same_scalar_type_ignoring_signedness): Delete
11616         declaration.
11617         (vector_types_compatible_elements_p): Declare.
11619 2013-09-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11621         * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
11622         a virtual member function.
11623         (pp_simple_type_specifier): Remove.
11624         (pp_c_type_specifier): Likewise.
11625         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
11626         Rename from pp_c_type_specifier.  Adjust.
11627         (c_pretty_printer::c_pretty_printer): Do not assign to
11628         simple_type_specifier.
11630 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11632         * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
11633         member function.
11634         (c_pretty_printer::storage_class_specifier): Likewise.
11635         (c_pretty_printer::initializer): Likewise.
11636         (pp_declaration): Remove.
11637         (pp_declaration_specifiers): Likewise.
11638         (pp_abstract_declarator): Likewise.
11639         (pp_declarator): Likewise.
11640         (pp_type_id): Likewise.
11641         (pp_statement): Likewise.
11642         (pp_constant): Likewise.
11643         (pp_id_expression): Likewise.
11644         (pp_primary_expression): Likewise.
11645         (pp_unary_expression): Likewise.
11646         (pp_multiplicative_expression): Likewise.
11647         (pp_conditional_expression): Likewise.
11648         (pp_assignment_expression): Likewise.
11649         (pp_expression): Likewise.
11650         (pp_c_type_id): Likewise.
11651         (pp_c_storage_class_specifier): Likewise.
11652         * c-pretty-print.c (pp_c_type_cast): Tidy.
11653         (pp_c_pointer): Likewise.
11654         (pp_c_type_specifier): Likewise.
11655         (pp_c_parameter_type_list): Likewise.
11656         (pp_c_function_definition): Likewise.
11657         (pp_c_init_declarator): Likewise.
11658         (pp_c_initializer_list): Likewise.
11659         (pp_c_constructor_elts): Likewise.
11660         (c_pretty_printer::direct_abstract_declarator): Likewise.
11661         (c_pretty_printer::declaration_specifiers): Likewise.
11662         (c_pretty_printer::primary_expression): Likewise.
11663         (c_pretty_printer::postfix_expression): Likewise.
11664         (c_pretty_printer::type_id): Rename from pp_c_type_id.
11665         (c_pretty_printer::storage_class_specifier): Rename from
11666         pp_c_storage_class_specifier.
11667         (c_pretty_printer::initializer): Rename from pp_c_initializer.
11668         (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
11669         storage_class_specifier, initializer, offset_list, flags.
11671 2013-08-30  Marek Polacek  <polacek@redhat.com>
11673         * c-ubsan.c: New file.
11674         * c-ubsan.h: New file.
11676 2013-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11678         * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
11679         member function.
11680         (c_pretty_printer::declaration_specifiers): Likewise.
11681         (c_pretty_printer::declarator): Likewise.
11682         (c_pretty_printer::abstract_declarator): Likewise.
11683         (c_pretty_printer::direct_abstract_declarator): Likewise.
11684         (c_pretty_printer::direct_declarator): Likewise.
11685         (c_pretty_printer::function_specifier): Likewise.
11686         (pp_declaration): Adjust.
11687         (pp_declaration_specifiers): Likewise.
11688         (pp_abstract_declarator): Likewise.
11689         (pp_direct_declarator): Likewise.
11690         (pp_function_specifier): Likewise.
11691         (pp_direct_abstract_declarator): Remove as unused.
11692         (pp_c_declaration): Remove.
11693         (pp_c_declaration_specifiers): Likewise.
11694         (pp_c_declarator): Likewise.
11695         (pp_c_direct_declarator): Likewise.
11696         (pp_c_function_specifier): Likewise.
11697         (pp_c_direct_abstract_declarator): Likewise.
11698         * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
11699         from pp_c_abstract_declarator.  Adjust.
11700         (c_pretty_printer::direct_abstract_declarator): Rename from
11701         pp_c_direct_abstract_declarator.  Adjust.
11702         (c_pretty_printer::function_specifier): Rename from
11703         pp_c_function_specifier.  Adjust.
11704         (c_pretty_printer::declaration_specifiers): Rename from
11705         pp_c_declaration_specifiers.  Adjust.
11706         (c_pretty_printer::direct_declarator): Rename from
11707         pp_c_direct_declarator.  Adjust.
11708         (c_pretty_printer::declarator): Rename from pp_c_declarator.  Adjust.
11709         (c_pretty_printer::declaration): Rename from pp_c_declaration.  Adjust.
11710         (c_pretty_printer::c_pretty_printer): Do not assign to
11711         declaration, declaration_specifiers, declarator,
11712         direct_declarator, direct_abstract_declarator, function_specifier.
11714 2013-08-26  Gabriel Dos Reis  <gdre@integrable-solutions.net>
11716         * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
11717         virtual member function.
11718         (c_pretty_printer::multiplicative_expression): Likewise.
11719         (c_pretty_printer::conditional_expression): Likewise.
11720         (c_pretty_printer::assignment_expression): Likewise.
11721         (c_pretty_printer::expression): Likewise.
11722         (pp_unary_expression): Adjust.
11723         (pp_multiplicative_expression): Likewise.
11724         (pp_assignment_expression): Likewise.
11725         (pp_conditional_expression): Likewise.
11726         (pp_expression): Likewise.
11727         * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
11728         from pp_c_unary_expression.  Adjust.
11729         (c_pretty_printer::multiplicative_expression): Rename from
11730         pp_c_multiplicative_expression.  Adjust.
11731         (c_pretty_printer::conditional_expression): Rename from
11732         pp_c_conditional_expression.  Adjust.
11733         (c_pretty_printer::assignment_expression): Rename from
11734         pp_c_assignment_expression.  Adjust.
11735         (c_pretty_printer::expression): Rename from pp_c_expression.  Adjust.
11736         (c_pretty_printer::c_pretty_printer): Do not assign to
11737         unary_expression, multiplicative_expression,
11738         conditional_expression, expression.
11740 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11742         * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
11743         virtual member function.
11744         (pp_postfix_expression): Adjust.
11745         (pp_c_postfix_expression): Remove.
11746         * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
11747         from pp_c_postfix_expression.  Adjust.
11748         (c_pretty_printer::c_pretty_printer): Do not assign to
11749         postfix_expression.
11751 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11753         * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
11754         virtua member function.
11755         (pp_primary_expression): Adjust.
11756         (pp_c_primary_expression): Remove.
11757         * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
11758         from pp_c_primary_expression.  Adjust.
11759         (pp_c_initializer_list): Use pp_primary_expression.
11760         (c_pretty_printer::c_pretty_printer): Do not assign to
11761         primary_expression.
11763 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11765         * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
11766         * c-pretty-print.c (M_): Remove.
11767         (c_pretty_printer::translate_string): Define.
11768         (pp_c_type_specifier): Use it.
11769         (pp_c_primary_expression): Likewise.
11770         (pp_c_expression): Likewise.
11772 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11774         * c-pretty-print.h (c_pretty_printer::id_expression): Now a
11775         virtual function.
11776         (pp_c_id_expression): Remove.
11777         (pp_id_expression): Adjust.
11778         * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
11779         pp_c_id_expression.  Adjust.
11780         (pp_c_postfix_expression): Use pp_id_expression.
11781         (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
11783 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11785         * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
11786         member function.
11787         (pp_constant): Adjust.
11788         (pp_c_constant): Remove.
11789         * c-pretty-print.c (c_pretty_printer::constant): Rename from
11790         pp_c_constant.  Adjust.
11791         (pp_c_constant)
11792         (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
11793         (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
11795 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11797         * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
11798         (c_pretty_printer::c_pretty_printer): Declare.
11799         * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
11800         c_pretty_printer_init.  Adjust.
11801         (print_c_tree): Do not call c_pretty_printer_init.
11802         * c-ada-spec.c (dump_ads): Remove call to pp_construct.
11804 2013-08-09  Arnaud Charlet  <charlet@adacore.com>
11806         * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
11808 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
11810         PR c++/58080
11811         * c-common.c (pointer_int_sum): Add bool parameter.
11812         * c-common.h (pointer_int_sum): Adjust declaration.
11814 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11816         * c-pretty-print.c (print_c_tree): Simplify.  Use non-static local
11817         c_pretty_printer variable.
11819 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11821         * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
11822         (pp_base): Remove.
11823         (pp_c_base): Likewise.  Adjust users.
11824         * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
11825         (pp_c_whitespace): Do not call pp_base.
11826         (pp_c_left_paren): Likewise.
11827         (pp_c_right_paren): Likewise.
11828         (pp_c_left_brace): Likewise.
11829         (pp_c_right_brace): Likewise.
11830         (pp_c_left_bracket): Likewise.
11831         (pp_c_right_bracket): Likewise.
11832         (pp_c_dot): Likewise.
11833         (pp_c_ampersand): Likewise.
11834         (pp_c_star): Likewise.
11835         (pp_c_arrow): Likewise.
11836         (pp_c_semicolon): Likewise.
11837         (pp_c_complement): Likewise.
11838         (pp_c_exclamation): Likewise.
11839         (pp_c_direct_declarator): Likewise.
11840         (pp_c_ws_string): Likewise.
11841         (pp_c_identifier): Likewise.
11842         (pp_c_statement): Likewise.
11843         (print_c_tree): Likewise.
11845 2013-08-04  Ed Smith-Rowland  <3dw4rd@verizon.net>
11847         PR c++/58072
11848         * c-common.c (c_parse_error): Catch user-defined literal tokens and
11849         provide useful error strings.
11851 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11853         * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
11854         printer functions instead of pp_string or operators and punctuators.
11855         (dump_generic_ada_node): Likewise.
11856         * c-pretty-print.c (pp_c_type_specifier): Likewise.
11857         (pp_c_relational_expression): Likewise.
11858         (pp_c_logical_or_expression): Likewise.
11860 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11862         * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
11863         functions instead of pp_character.
11864         (pp_ada_tree_identifier): Likewise.
11865         (dump_ada_double_name): Likewise.
11866         (dump_ada_function_declaration): Likewise.
11867         (dump_ada_array_domains): Likewise.
11868         (dump_template_types): Likewise.
11869         (dump_generic_ada_node): Likewise.
11870         (print_ada_declaration): Likewise.
11871         (print_ada_struct_decl): Likewise.
11872         * c-pretty-print.c (pp_c_integer_constant): Likewise.
11874 2013-07-23  Tom Tromey  <tromey@redhat.com>
11876         * c-common.h (enum rid) <RID_GENERIC>: New constant.
11877         * c-common.c (c_common_reswords): Add _Generic.
11879 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
11881         * c-common.c: Fix typos.
11882         * c-common.h: Likewise.
11884 2013-07-13  Lubos Lunak  <l.lunak@suse.cz>
11886         PR c++/55203
11887         * c-common.c (c_common_attribute_table): Add warn_unused.
11888         (handle_warn_unused_attribute): New.
11890 2013-07-10  Jakub Jelinek  <jakub@redhat.com>
11892         * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
11893         for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
11895 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
11897         PR c++/57869
11898         * c.opt: Add Wconditionally-supported.
11900 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
11902         * array-notation-common.c (length_mismatch_in_expr_p): Delete
11903         unused variables l_length and l_node.
11905 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
11907         PR c/57821
11908         * c-common.c (complete_array_type): Delay folding first index
11909         like other indices.  When folding, check for index overflow.
11911 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
11913         PR c++/57509
11914         * c-common.h (c_build_vec_perm_expr): New complain argument.
11915         * c-common.c (c_build_vec_perm_expr): Likewise.
11916         Use save_expr also in C++.
11918 2013-06-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11920         * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
11921         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
11922         * c-opts.c (c_common_post_options): Likewise.
11924 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
11926         * array-notation-common.c (length_mismatch_in_expr): Changed the
11927         parameter type's from a dynamic array to a vec_tree.  Also removed
11928         the size parameters.
11929         * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
11930         the change above.
11932 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
11934         * c-common.h (struct cilkplus_an_parts): New structure.
11935         (struct cilkplus_an_loop_parts): Likewise.
11936         (cilkplus_extract_an_triplets): New prototype.
11937         (fix_sec_implicit_args): Likewise.
11938         * array-notation-common.c (cilkplus_extract_an_triplets): New function.
11939         (fix_sec_implicit_args): Likewise.
11941 2013-06-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
11943         * array-notation-common.c (find_inv_trees): Removed an unwanted
11944         typecasting.
11945         * c-common.h (struct inv_list::additional_tcodes): Changed type from
11946         enum rid to enum tree_code.
11948 2013-06-11  Jan Hubicka  <jh@suse.cz>
11950         * c-common.c (handle_alias_ifunc_attribute): Do not set
11951         DECL_EXTERNAL for weakref variables.
11952         * c-pragma.c (handle_pragma_weak): Make sure aliases
11953         are not declared as external.
11955 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
11957         * array-notation-common.c (length_mismatch_in_expr_p): Moved this
11958         function from c/c-array-notation.c.
11959         (is_cilkplus_reduce_builtin): Likewise.
11960         (find_rank): Likewise.
11961         (extract_array_notation_exprs): Likewise.
11962         (replace_array_notations): Likewise.
11963         (find_inv_trees): Likewise.
11964         (replace_inv_trees): Likewise.
11965         (contains_array_notation_expr): Likewise.
11966         (find_correct_array_notation_type): Likewise.
11967         * c-common.h (struct inv_list): Moved this struct from the file
11968         c/c-array-notation.c and added a new field called additional tcodes.
11969         (length_mismatch_in_expr_p): New prototype.
11970         (is_cilkplus_reduce_builtin): Likewise.
11971         (find_rank): Likewise.
11972         (extract_array_notation_exprs): Likewise.
11973         (replace_array_notation): Likewise.
11974         (find_inv_trees): Likewise.
11975         (replace_inv_trees): Likewise.
11976         (find_correct_array_notation_type): Likewise.
11978 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
11980         * c-common.c (c_define_builtins): When cilkplus is enabled, the
11981         function array_notation_init_builtins is called.
11982         (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
11983         * c-common.def (ARRAY_NOTATION_REF): New tree.
11984         * c-common.h (build_array_notation_expr): New function declaration.
11985         (build_array_notation_ref): Likewise.
11986         (extract_sec_implicit_index_arg): New extern declaration.
11987         (is_sec_implicit_index_fn): Likewise.
11988         (ARRAY_NOTATION_CHECK): New define.
11989         (ARRAY_NOTATION_ARRAY): Likewise.
11990         (ARRAY_NOTATION_START): Likewise.
11991         (ARRAY_NOTATION_LENGTH): Likewise.
11992         (ARRAY_NOTATION_STRIDE): Likewise.
11993         * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
11994         ARRAY_NOTATION_REF.
11995         (pp_c_expression): Likewise.
11996         * c.opt (flag_enable_cilkplus): New flag.
11997         * array-notation-common.c: New file.
11999 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
12001         PR c++/57274
12002         * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
12004 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
12006         * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
12007         vectors.
12009 2013-05-07  Han Shen  <shenhan@google.com>
12011         * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
12013 2013-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12015         * c-common.c (check_user_alignment): Emit error for negative values.
12017 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
12019         * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
12021 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
12023         * c-cppbuiltin.c (c_cpp_builtins): Do not define
12024         __GXX_EXPERIMENTAL_CXX1Y__.
12026 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
12027             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12029         * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
12030         * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
12031         to simply use OPT_Wpointer_arith.
12032         (c_sizeof_or_alignof_type): Likewise.
12034 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
12036         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
12038 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
12040         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
12041         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
12042         specifiers.
12044 2013-04-07  Steven Bosscher  <steven@gcc.gnu.org>
12046         * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
12048 2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
12050         * c-common.c (pointer_int_sum): Remove dead code.
12052 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
12054         PR middle-end/56524
12055         * c-common.c (handle_optimize_attribute): Don't call
12056         save_optabs_if_changed.
12058 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
12060         PR middle-end/56461
12061         * c-pch.c (pch_init): Free target_validity at the end.
12063 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
12065         * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
12067 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
12068             Jakub Jelinek  <jakub@redhat.com>
12070         PR sanitizer/56454
12071         * c-common.c (handle_no_sanitize_address_attribute): New function.
12072         (c_common_attribute_table): Add no_sanitize_address attribute.
12073         (handle_no_address_safety_analysis_attribute): Add
12074         no_sanitize_address attribute, not no_address_safety_analysis
12075         attribute.
12077 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
12079         PR target/52555
12080         * c-common.c (handle_optimize_attribute): Call
12081         save_optabs_if_changed.
12083 2013-02-18  Jakub Jelinek  <jakub@redhat.com>
12084             Steven Bosscher  <steven@gcc.gnu.org>
12086         PR pch/54117
12087         * c-opts.c (c_common_post_options): If debug info is enabled
12088         and non-dwarf*, refuse to load PCH files and when writing PCH
12089         file warn.
12091 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
12093         PR middle-end/56167
12094         * c-common.c (handle_error_attribute): Fix condition.
12096 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
12098         PR c++/55742
12099         * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
12101 2013-01-18  Jason Merrill  <jason@redhat.com>
12103         PR target/54908
12104         * c.opt (-fextern-tls-init): New.
12105         * c-opts.c (c_common_post_options): Handle it.
12107 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
12109         PR c/48418
12110         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
12111         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
12112         and is either negative or bigger or equal to type precision
12113         of the first operand.
12115 2012-12-03  Marek Polacek  <polacek@redhat.com>
12117         PR c/55570
12118         * c-common.c (check_user_alignment): Swap order of tests,
12119         check TREE_CODE first.
12121 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
12123         PR c++/52654
12124         * c-common.h (overflow_type): New enum.
12125         (build_userdef_literal): Add overflow_type argument.
12126         (tree_userdef_literal): Add overflow_type.
12127         (USERDEF_LITERAL_OVERFLOW): New access macro.
12128         * c-common.c (build_userdef_literal): Add overflow_type
12129         argument.
12130         * c-lex.c (c_lex_with_flags): Add overflow_type to
12131         build_userdef_literal calls.
12132         (interpret_integer, interpret_float): Add overflow_type argument.
12134 2012-11-28  Richard Biener  <rguenther@suse.de>
12136         PR c/35634
12137         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
12138         here and use a type with proper overflow behavior for types that would
12139         need to be promoted for the arithmetic.
12141 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
12143         PR sanitizer/55435
12144         * c-common.c (handle_no_address_safety_analysis_attribute): New
12145         function.
12146         (c_common_attribute_table): Add no_address_safety_analysis.
12148 2012-11-16  Simon Baldwin  <simonb@google.com>
12150         * c.opt: Add f[no-]canonical-system-headers.
12151         * c-opts.c (c_common_handle_option): Handle
12152         OPT_fcanonical_system_headers.
12154 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
12156         PR c++/54413
12157         * c-opts.c (c_common_handle_option): Set new flags.
12158         * c.opt: Describe new flags.
12160 2012-11-09  Jason Merrill  <jason@redhat.com>
12162         * c.opt (Wabi-tag): New.
12164 2012-11-09  Andi Kleen  <ak@linux.intel.com>
12166         PR 55139
12167         * c-common.c (get_atomic_generic_size): Mask with
12168         MEMMODEL_MASK
12170 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12172         PR c/53063
12173         * c.opt (Wformat): Make it Alias Wformat=1.
12174         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
12175         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
12176         LangEnabledBy.
12177         (Wformat=): RejectNegative. Use LangEnabledBy.
12178         (Wnonnull): Use LangEnabledBy.
12179         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
12180         * c-format.c (set_Wformat): Delete.
12181         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
12182         (maybe_read_dollar_number): Likewise.
12183         (avoid_dollar_number): Likewise.
12184         (finish_dollar_format_checking): Likewise.
12185         (check_format_info): Likewise.
12186         (check_format_info_main): Likewise.
12187         (check_format_types): Likewise.
12188         (format_type_warning): Likewise.
12189         * c-common.c (int): Likewise.
12190         (check_function_sentinel): Likewise.
12191         * c-common.h (warn_format,set_Wformat): Do not declare here.
12193 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12195         PR c/53063
12196         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
12197         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
12198         Use LangEnabledBy.
12199         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
12200         common.opt.
12201         (Wvariadic-macros): Init(1).
12202         * c-opts.c (c_common_handle_option): Do not handle them
12203         explicitly.
12204         (c_common_post_options): Likewise.
12205         (sanitize_cpp_opts): warn_unused_macros is now
12206         cpp_warn_unused_macros.
12207         (push_command_line_include): Likewise.
12208         * c-common.c (warn_unknown_pragmas): Do not define.
12209         * c-common.h (warn_unknown_pragmas): Do not declare.
12211 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12213         PR c/51294
12214         * c-common.c (conversion_warning): Handle conditional expressions.
12216 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
12218         PR c++/54930
12219         * c.opt (Wreturn_local_addr): Define new option.
12221 2012-10-25  Jason Merrill  <jason@redhat.com>
12223         * c.opt (Wvirtual-move-assign): New.
12225         * c.opt (Winherited-variadic-ctor): New.
12227 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
12229         PR c++/54427
12230         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
12232 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
12234         * c-common.h (pch_cpp_save_state): Declare.
12235         * c-target.def (c_preinclude): New hook.
12236         * c-opts.c (done_preinclude): New.
12237         (push_command_line_include): Handle default preincluded header.
12238         (cb_file_change): Call pch_cpp_save_state when calling
12239         push_command_line_include.
12240         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
12241         (pch_cpp_save_state): New.
12242         (pch_init): Call pch_cpp_save_state conditionally, instead of
12243         calling cpp_save_state.
12245 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12247         PR c/53063
12248         PR c/40989
12249         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
12250         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
12251         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
12252         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
12253         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
12254         * c-opts.c (c_common_handle_option): Remove explicit handling from
12255         here.
12256         (c_common_post_options): Likewise.
12258 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
12260         * c-ada-spec.c (LOCATION_COL): Delete.
12261         (compare_location): New function.
12262         (compare_node): Use it.
12263         (compare_comment): Likewise.
12265 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12267         PR c/53063
12268         PR c/40989
12269         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
12270         * c-opts.c (c_common_handle_option): Do not set them here. Add
12271         comment.
12272         (c_common_post_options): Likewise.
12274 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
12276         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
12277         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
12278         Remove POINTER_TYPE handling, add large unsigned handling and use
12279         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
12281 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
12283         PR c/54381
12284         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
12285         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
12286         locs and array of 3 trees instead of just single loc and single
12287         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
12288         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
12289         For *cmp* builtins that take two sources strings report warnings
12290         about first and second source, not about destination and source.
12292 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
12294         PR c++/53055
12295         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
12297 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
12299         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
12300         declaring something coming from another file.
12302 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
12304         PR ada/54845
12305         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
12307 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
12309         PR c++/54194
12310         * c-common.c (warn_about_parentheses): Add location_t parameter;
12311         use EXPR_LOC_OR_LOC.
12312         * c-common.h: Update declaration.
12314 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
12316         PR c++/54427
12317         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
12318         more operations. Make error messages optional.
12319         * c-common.h (enum stv_conv): Moved from c-typeck.c.
12320         (scalar_to_vector): Declare.
12322 2012-10-08  Jason Merrill  <jason@redhat.com>
12324         * c-common.c (c_common_reswords): Add thread_local.
12326 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
12328         PR c++/53528 C++11 attribute support
12329         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
12330         new functions.
12331         * c-common.c (check_cxx_fundamental_alignment_constraints): New
12332         static function.
12333         (handle_aligned_attribute): In choose strictest alignment
12334         among many.  Use new check_cxx_fundamental_alignment_constraints.
12335         (handle_transparent_union_attribute): In c++11 attribute syntax,
12336         don't look through typedefs.
12338 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
12340         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
12341         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
12342         out of dumpfile.h.
12344 2012-09-25  Dehao Chen  <dehao@google.com>
12346         PR middle-end/54645
12347         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
12348         map when read in the pch.
12350 2012-09-18  Arnaud Charlet  <charlet@adacore.com>
12352         * c-ada-spec.c: Style fixes.
12354 2012-09-18  Thomas Quinot  <quinot@adacore.com>
12356         * c.opt (-fada-spec-parent): Define new command line switch.
12357         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
12358         is specified, generate binding spec as a child of the specified unit.
12360 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
12361             Manuel López-Ibáñez  <manu@gcc.gnu.org>
12363         PR c++/53210
12364         * c.opt ([Winit-self]): Enabled by -Wall in C++.
12366 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
12368         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
12369         for pointers, and add missing Convention C pragma.
12370         (print_ada_struct_decl): Add missing aliased keyword.
12371         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
12373 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
12375         * c-common.c (sizeof_pointer_memaccess_warning): New function.
12376         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
12377         * c-opts.c (c_common_handle_option): Enable it for -Wall.
12378         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
12379         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
12381 2012-08-10  Richard Guenther  <rguenther@suse.de>
12383         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
12385 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
12387         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
12388         instead of separate pp_newline and pp_flush.
12389         (print_c_tree): Likewise.
12391 2012-07-26  Richard Henderson  <rth@redhat.com>
12393         * c-common.c (handle_hot_attribute): Allow labels.
12394         (handle_cold_attribute): Likewise.
12396 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
12398         PR c++/28656
12399         * c-common.c (check_function_nonnull): Handle multiple nonnull
12400         attributes properly.
12402 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
12404         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
12405         * c-ada-spec.c: Likewise.
12406         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
12408 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
12410         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
12411         Remove code conditional on it.
12413 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
12415         * c-gimplify.c: Do not include basic-block.h.
12416         * c-common.c: Do not include linfuncs.h.
12418 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
12420         * c-common.h: Include tree.h.
12422 2012-07-02  Jason Merrill  <jason@redhat.com>
12424         PR c++/53524
12425         * c-common.c (get_priority): Call default_conversion.
12427 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
12429         * c-pch.c (c_common_write_pch): Remove unused variables.
12431 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
12433         * cppspec.c: Moved from gcc/ to here.
12435 2012-06-27  Kai Tietz  <ktietz@redhat.com>
12437         PR preprocessor/37215
12438         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
12440 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
12442         * c-common.h (c_common_print_pch_checksum): Remove.
12443         * c-pch.c: Do not include output.h.
12444         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
12445         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
12446         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
12447         (struct c_pch_header): Remove.
12448         (get_ident): Update gpch version.
12449         (pch_init): Do not print executable_checksum to asm_out_file.
12450         Do not fail if there is no asm_out_file to read back from.  Set
12451         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
12452         (c_common_write_pch): Verify that nothing was written to asm_out_file
12453         since pch_init was called.  Do not write a c_pch_header, and do not
12454         copy from asm_out_file to the PCH.
12455         (c_common_read_pch): Do not read a c_pch_header, and do not restore
12456         the content of asm_out_file from the PCH.
12457         (c_common_print_pch_checksum): Remove.
12458         * c-opts.c (c_common_init): Print out executable_checksum directly.
12460 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
12462         * c-target.def (objc_declare_unresolved_class_reference,
12463         objc_declare_class_definition): Add new hooks.
12465 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
12467         * c-lex.c: Do not include output.h.
12468         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
12469         Remove uses of ASM_OUTPUT_IDENT.
12471 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
12473         PR c++/51033
12474         * c-common.h (c_build_vec_perm_expr): Move decl here.
12475         * c-common.c (c_build_vec_perm_expr): Move definition
12476         here.
12478 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
12480         * c.opt (fconserve-space): Turn into a no-op.
12482 2012-06-04  Sterling Augustine  <saugustine@google.com>
12484         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
12485         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
12486         both the start and end of the function.
12488 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
12490         * c-common.c: Do not include output.h.
12491         * c-pragma.c: Likewise.
12493 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
12495         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
12496         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
12497         (lang_decl_name): Handle namespace decls.
12499 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
12501         * c-ada-spec.c: Do not include output.h.
12502         * c-semantics.c: Likewise.
12504 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
12506         * c-common.c: Fix typo.
12508 2012-05-29  Michael Matz  <matz@suse.de>
12510         * c-common.h (c_expand_decl): Remove prototype.
12512 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12514         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
12515         * c-opts.c (c_common_handle_option): Remove code handling
12516         warn_missing_braces.
12518 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
12520         PR c++/25137
12521         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
12522         -Wmissing_braces.
12524 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
12526         PR c++/53322
12527         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
12529 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12531         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
12532         * c-opts.c (c_common_handle_option): Do not handle explicitly
12533         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
12535 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
12537         PR preprocessor/7263
12538         * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
12539         to cpp_classify_number.  For diagnostics, use the precise location
12540         instead of the global input_location.
12542 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
12544         PR c++/11856
12545         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
12547 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
12549         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
12551 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12553         PR 53063
12554         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
12555         Wreorder): Use LangEnabledBy.
12556         * c-opts.c (c_common_handle_option): Do not enable them
12557         explicitly. Call lang-specific generated functions.
12558         (c_common_post_options): Do not set them here.
12560 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12562         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
12563         Wmissing-field-initializers,Wmissing-parameter-type,
12564         Wold-style-declaration,Woverride-init): Use EnabledBy.
12565         * c-opts.c (c_common_post_options): Do not set here explicitly.
12567 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12569         PR 53063
12570         * c-opts.c (c_common_handle_option): Use handle_generated_option
12571         to enable sub-options.
12573 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
12575         PR c++/53158
12576         * c-common.c (warnings_for_convert_and_check): Use warning_at.
12578 2012-05-10  Richard Guenther  <rguenther@suse.de>
12580         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
12581         adjust commentary about TYPE_IS_SIZETYPE types.
12583 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12585         PR c++/53261
12586         * c-common.c (warn_logical_operator): Check that argument of
12587         integer_zerop is not NULL.
12589 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12591         PR c/43772
12592         * c-common.c (warn_logical_operator): Do not warn if either side
12593         is already true or false.
12595 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12597         PR c/51712
12598         * c-common.c (expr_original_type): New.
12599         (shorten_compare): Do not warn for enumeration types.
12601 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12603         * c.opt (fpermissive): Add Var(flag_permissive).
12605 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
12607         PR c++/51033
12608         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
12609         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
12611 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
12613         Add -Wvarargs option
12614         * c.opt (Wvarargs): Define new option.
12616 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12618         * c-common.c (check_function_arguments): Replace
12619         Wmissing-format-attribute with Wsuggest-attribute=format.
12621 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12623         * c.opt (Wsuggest-attribute=format): New. Alias of
12624         Wmissing-format-attribute.
12625         * c-format.c (decode_format_type): Replace
12626         Wmissing-format-attribute with Wsuggest-attribute=format.
12627         (check_function_format): Likewise.
12629 2012-04-27  Ollie Wild  <aaw@google.com>
12631         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
12632         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
12633         * c.opt: Add Wliteral-suffix.
12635 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12637         PR c/44774
12638         * c.opt (Wpedantic): New.
12639         (pedantic): Alias Wpedantic.
12640         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
12641         (c_common_post_options): Likewise.
12642         (sanitize_cpp_opts): Likewise.
12643         * c-lex.c (interpret_float): Likewise.
12644         * c-format.c (check_format_types): Likewise.
12645         * c-common.c (pointer_int_sum): Likewise.
12646         (c_sizeof_or_alignof_type): Likewise.
12647         (c_add_case_label): Likewise.
12648         (c_do_switch_warnings): Likewise.
12649         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
12651 2012-04-15  Jason Merrill  <jason@redhat.com>
12653         PR c++/52818
12654         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
12655         (C_STD_NAME): Distinguish between C++98 and C++11.
12657 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
12659         PR target/52624
12660         * c-common.h (uint16_type_node): Rename into...
12661         (c_uint16_type_node): ...this.
12662         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
12663         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
12665 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12667         * c-common.c (warn_if_unused_value): Move definition to here.
12668         * c-common.h (warn_if_unused_value): Move declaration to here.
12670 2012-03-23  William Bader  <williambader@hotmail.com>
12672         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
12674 2012-03-20  Jason Merrill  <jason@redhat.com>
12676         * c-common.h (enum cxx_dialect): Add cxx1y.
12677         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
12678         test.
12679         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
12680         * c-opts.c (c_common_post_options): Likewise.
12681         (set_std_cxx1y): New.
12682         (c_common_handle_option): Call it.
12683         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
12685 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
12687         PR c++/14710
12688         * c.opt ([Wuseless-cast]): Add.
12690 2012-03-16  Richard Guenther  <rguenther@suse.de>
12692         * c-pretty-print.c (pp_c_initializer_list): Adjust.
12694 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12696         PR c++/44783
12697         * c.opt (ftemplate-backtrace-limit) Add.
12699 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12701         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
12702         handling.
12703         * c-pragma.c (handle_pragma_extern_prefix): Remove.
12704         (init_pragma): Don't register extern_prefix.
12706 2012-03-12  Richard Guenther  <rguenther@suse.de>
12708         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
12709         (builtin_type_for_size): Likewise.
12711 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
12713         PR c++/52215
12714         * c-common.c (sync_resolve_params): Don't decide whether to convert
12715         or not based on TYPE_SIZE comparison, convert whenever arg_type
12716         is unsigned INTEGER_TYPE.
12718 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
12720         PR c/52118
12721         * c.opt ([Wunused-local-typedefs]): Fix description.
12723 2012-01-24  Mike Stump  <mikestump@comcast.net>
12725         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
12726         exactly.
12728 2012-01-18  Richard Guenther  <rguenther@suse.de>
12730         * c-opts.c (c_common_post_options): Reset LTO flags if
12731         we are about to generate a PCH.
12733 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
12735         PR c++/51777
12736         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
12737         use pp_unsigned_wide_integer.
12739 2012-01-10  Richard Guenther  <rguenther@suse.de>
12741         PR middle-end/51806
12742         * c-opts.c (c_common_handle_option): Move -Werror handling
12743         to language independent code.
12745 2012-01-05  Richard Guenther  <rguenther@suse.de>
12747         PR middle-end/51764
12748         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
12749         from common.opt.
12751 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
12753         PR c++/51316
12754         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
12755         of array types with an unknown bound.
12757 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
12759         * c-common.c (flag_isoc99): Update comment to refer to C11.
12760         (flag_isoc1x): Change to flag_isoc11.
12761         * c-common.h (flag_isoc99): Update comment to refer to C11.
12762         (flag_isoc1x): Change to flag_isoc11.
12763         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
12764         C11.
12765         * c-opts.c (set_std_c1x): Change to set_std_c11.
12766         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
12767         Call set_std_c11.
12768         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
12769         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
12770         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
12771         standard.
12772         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
12773         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
12774         (std=gnu1x): Make alias of std=gnu11.
12776 2011-12-19  Jason Merrill  <jason@redhat.com>
12778         PR c++/51228
12779         * c-common.c (handle_transparent_union_attribute): Check the first
12780         field if the type is complete.
12782 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
12784         PR libstdc++/51365
12785         * c-common.c (RID_IS_FINAL): Add.
12786         * c-common.h (RID_IS_FINAL): Add.
12788 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
12790         * c.opt (fgnu-runtime): Provide full description.
12791         (fnext-runtime): Likewise.
12792         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
12794 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
12796         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
12797         predefines in one place.  Add LOCK_FREE predefines.
12798         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
12799         new func.
12801 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
12803         PR c/51256
12804         * c-common.c (get_atomic_generic_size): Check for various error
12805         conditions
12806         (resolve_overloaded_atomic_exchange,
12807         resolve_overloaded_atomic_compare_exchange,
12808         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
12809         error_mark_node for error conditions.
12811 2011-11-08  Richard Guenther  <rguenther@suse.de>
12813         PR middle-end/51010
12814         * c-pretty-print.c (pp_c_expression): Handle SSA_NAMEs.
12816 2011-11-07  Richard Henderson  <rth@redhat.com>
12817             Aldy Hernandez  <aldyh@redhat.com>
12818             Torvald Riegel  <triegel@redhat.com>
12820         Merged from transactional-memory.
12822         * c-common.c (handle_tm_wrap_attribute,
12823         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
12824         (struct c_common_reswords): Added __transaction* keywords.
12825         (struct c_common_attribute_table): Added transaction* and tm_regparm
12826         attributes.
12827         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
12828         masks.
12829         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
12830         find_tm_attribute): Declare.
12832 2011-11-07  Jason Merrill  <jason@redhat.com>
12834         PR c++/35688
12835         * c-common.c, c-common.h: Revert yesterday's changes.
12837 2011-11-06  Jason Merrill  <jason@redhat.com>
12839         PR c++/35688
12840         * c-common.c (decl_has_visibility_attr): Split out from...
12841         (c_determine_visibility): ...here.
12842         * c-common.h: Declare it.
12844 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
12846         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
12847         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
12848         type.
12849         (check_user_alignment): New.  Split out of
12850         handle_aligned_attribute.  Disallow integer constants with
12851         noninteger types.  Conditionally allow zero.
12852         (handle_aligned_attribute): Use check_user_alignment.
12853         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
12855 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
12856             Richard Henderson  <rth@redhat.com>
12858         Merged from cxx-mem-model.
12860         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
12861         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
12862         parameters that are the same type size.
12863         (get_atomic_generic_size): New.  Find size of generic
12864         atomic function parameters and do typechecking.
12865         (add_atomic_size_parameter): New.  Insert size into parameter list.
12866         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
12867         either __atomic_exchange_n or external library call.
12868         (resolve_overloaded_atomic_compare_exchange): Restructure
12869         __atomic_compare_exchange to either _n variant or external library call.
12870         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
12871         __atomic_load_n or an external library call.
12872         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
12873         __atomic_store_n or an external library call.
12874         (resolve_overloaded_builtin): Handle new __atomic builtins.
12876 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
12878         PR c++/50608
12879         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
12880         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
12881         <INDIRECT_REF>: Return the argument.
12882         <ARRAY_REF>: Remove special code for negative offset.
12883         Call fold_build_pointer_plus instead of size_binop.
12884         (fold_offsetof): Remove STOP_REF argument and adjust.
12885         * c-common.h (fold_offsetof_1): Declare.
12886         (fold_offsetof): Remove STOP_REF argument.
12888 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
12890         PR c++/50810
12891         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
12892         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
12893         Wnarrowing for C++0x and C++98.
12894         * c.opt ([Wnarrowing]): Update.
12896 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
12898         PR c++/44277
12899         * c.opt: Add Wzero-as-null-pointer-constant.
12901 2011-10-31  Jason Merrill  <jason@redhat.com>
12903         * c.opt (-fdeduce-init-list): Off by default.
12905         PR c++/50920
12906         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
12907         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
12908         and -Wc++11-compat.
12909         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
12911 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
12913         PR c++/30066
12914         * c.opt (fvisibility-inlines-hidden): Description change.
12916 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
12918         Implement C++11 user-defined literals.
12919         * c-common.c (build_userdef_literal): New.
12920         * c-common.def: New tree code.
12921         * c-common.h (tree_userdef_literal): New tree struct and accessors.
12922         * c-lex.c (interpret_float): Add suffix parm.
12923         (c_lex_with_flags): Build literal tokens.
12925 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
12927         PR c++/50841
12928         Revert:
12929         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
12931         PR c++/50810
12932         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
12933         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
12934         Wnarrowing for C++0x and C++98.
12935         * c.opt ([Wnarrowing]): Update.
12937 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
12939         PR c++/50810
12940         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
12941         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
12942         Wnarrowing for C++0x and C++98.
12943         * c.opt ([Wnarrowing]): Update.
12945 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
12947         PR c++/45385
12948         * c-common.c (conversion_warning): Remove code looking for
12949         artificial operands.
12951 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
12953         PR bootstrap/50760
12954         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
12955         !NO_IMPLICIT_EXTERN_C.
12957 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
12959         * c-common.c (c_common_reswords): Add __bases,
12960         __direct_bases.
12961         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
12963 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
12965         PR c++/50757
12966         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
12968 2011-10-15  Tom Tromey  <tromey@redhat.com>
12969             Dodji Seketeli  <dodji@redhat.com>
12971         * c.opt (fdebug-cpp): New option.
12972         * c-opts.c (c_common_handle_option): Handle the option.
12973         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
12974         output stream in parameter. Factorized from ...
12975         (maybe_print_line): ... this. Dump location debug information when
12976         -fdebug-cpp is in effect.
12977         (print_line_1): New static function. Takes an output stream in
12978         parameter. Factorized from ...
12979         (print_line): ... here. Dump location information when -fdebug-cpp
12980         is in effect.
12981         (scan_translation_unit): Dump location information when
12982         -fdebug-cpp is in effect.
12984 2011-10-15  Tom Tromey  <tromey@redhat.com>
12985             Dodji Seketeli  <dodji@redhat.com>
12987         * c.opt (ftrack-macro-expansion): New option. Handle it with and
12988         without argument.
12989         * c-opts.c (c_common_handle_option)<case
12990         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
12991         cases. Handle -ftrack-macro-expansion with and without argument.
12993 2011-10-15  Tom Tromey  <tromey@redhat.com>
12994             Dodji Seketeli  <dodji@redhat.com>
12996         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
12997         (print_line, cb_define, do_line_change): Adjust to avoid touching
12998         the internals of struct line_map.  Use the public API instead.
12999         * c-pch.c (c_common_read_pch): Likewise.
13000         * c-lex.c (fe_file_change): Likewise.
13002 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
13004         PR c++/17212
13005         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
13007 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
13009         PR c++/33067
13010         * c-pretty-print.c (pp_c_floating_constant): Output
13011         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
13013 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
13015         * c-common.c (def_builtin_1): Delete old interface with two
13016         parallel arrays to hold standard builtin declarations, and replace
13017         it with a function based interface that can support creating
13018         builtins on the fly in the future.  Change all uses, and poison
13019         the old names.  Make sure 0 is not a legitimate builtin index.
13020         * c-omp.c (c_finish_omp_barrier): Ditto.
13021         (c_finish_omp_taskwait): Ditto.
13022         (c_finish_omp_flush): Ditto.
13024 2011-10-11  Tristan Gingold  <gingold@adacore.com>
13026         * c.opt: (fallow-parameterless-variadic-functions): New.
13028 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
13030         PR c++/33255 - Support -Wunused-local-typedefs warning
13031         * c-common.h (struct c_language_function::local_typedefs): New
13032         field.
13033         (record_locally_defined_typedef, maybe_record_typedef_use)
13034         (maybe_warn_unused_local_typedefs): Declare new functions.
13035         * c-common.c (record_locally_defined_typedef)
13036         (maybe_record_typedef_use)
13037         (maybe_warn_unused_local_typedefs): Define new functions.
13038         * c.opt: Declare new -Wunused-local-typedefs flag.
13040 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
13042         PR middle-end/50266
13043         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
13044         computations.
13046 2011-09-05  Richard Guenther  <rguenther@suse.de>
13048         * c-common.c (complete_array_type): Use ssize_int (-1) instead
13049         of integer_minus_one_node for empty array upper bounds.
13051 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
13053         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
13054         it's the first time it's being called on this main TU.
13056 2011-08-24  Richard Guenther  <rguenther@suse.de>
13058         PR c/49396
13059         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
13061 2011-08-22  Gabriel Charette  <gchare@google.com>
13063         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
13064         defined in cpp_init_builtins and c_cpp_builtins.
13066 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
13068         * c-common.c (c_common_reswords): Add __builtin_complex.
13069         * c-common.h (RID_BUILTIN_COMPLEX): New.
13071 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
13073         * c-common.c (c_common_reswords): Add _Noreturn.
13074         (keyword_is_function_specifier): Handle RID_NORETURN.
13075         * c-common.h (RID_NORETURN): New.
13077 2011-08-10  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
13079         * c-common.c (unsafe_conversion_p): New function. Check if it is
13080         unsafe to convert an expression to the type.
13081         (conversion_warning): Adjust, use unsafe_conversion_p.
13082         * c-common.h (unsafe_conversion_p): New function declaration.
13084 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
13086         * c-common.h (c_finish_omp_atomic): Adjust prototype.
13087         (c_finish_omp_taskyield): New prototype.
13088         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
13089         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
13090         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
13091         or RHS1 have side-effects, evaluate those too in the right spot,
13092         if it is a decl and LHS is also a decl, error out if they
13093         aren't the same.
13094         (c_finish_omp_taskyield): New function.
13095         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
13096         * c-pragma.c (omp_pragmas): Add taskyield.
13097         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
13098         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
13099         PRAGMA_OMP_CLAUSE_MERGEABLE.
13101 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
13103         * c-common.h (set_underlying_type): Remove parm name from
13104         declaration.
13106 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
13108         * c-pretty-print.h: Search c-common.h in c-family.
13110 2011-07-22  Jason Merrill  <jason@redhat.com>
13112         PR c++/49793
13113         * c.opt (Wnarrowing): New.
13115         PR c++/30112
13116         * c-common.h: Declare c_linkage_bindings.
13117         * c-pragma.c (handle_pragma_redefine_extname): Use it.
13119         PR c++/49813
13120         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
13121         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
13122         as flag_isoc99 for 'restrict'.
13123         (pp_c_specifier_qualifier_list): Likewise for _Complex.
13125 2011-07-21  Ian Lance Taylor  <iant@google.com>
13127         PR middle-end/49705
13128         * c-common.c (c_disable_warnings): New static function.
13129         (c_enable_warnings): New static function.
13130         (c_fully_fold_internal): Change local unused_p to bool.  Call
13131         c_disable_warnings and c_enable_warnings rather than change
13132         c_inhibit_evaluation_warnings.
13134 2011-07-20  Jason Merrill  <jason@redhat.com>
13136         PR c++/6709 (DR 743)
13137         PR c++/42603 (DR 950)
13138         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
13139         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
13140         (CPP_DECLTYPE): New.
13141         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
13143 2011-07-19  Richard Guenther  <rguenther@suse.de>
13145         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
13146         * c-omp.c (c_finish_omp_for): Likewise.
13148 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
13150         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
13151         body on the next line.
13153 2011-07-08  Jason Merrill  <jason@redhat.com>
13155         PR c++/45437
13156         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
13158         PR c++/49673
13159         * c-common.c (c_apply_type_quals_to_decl): Don't check
13160         TYPE_NEEDS_CONSTRUCTING.
13162 2011-07-06  Richard Guenther  <rguenther@suse.de>
13164         * c-common.c (c_common_nodes_and_builtins):
13165         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
13167 2011-07-05  Richard Guenther  <rguenther@suse.de>
13169         * c-common.c (c_common_nodes_and_builtins): Build all common
13170         tree nodes first.
13172 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
13174         * c-common.h (c_tree_chain_next): New static inline function.
13176         * c-common.c (check_builtin_function_arguments): Handle
13177         BUILT_IN_ASSUME_ALIGNED.
13179 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
13181         * c-common.c: Add sync_ or SYNC__ to builtin names.
13182         * c-omp.c: Add sync_ or SYNC__ to builtin names.
13184 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
13186         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
13187         handler.
13188         (gen_pragma_handler): New union.
13189         (internal_pragma_handler): New type.
13190         (c_register_pragma_with_data)
13191         (c_register_pragma_with_expansion_and_data): New functions.
13193         * c-pragma.c (registered_pragmas, c_register_pragma_1)
13194         (c_register_pragma, c_register_pragma_with_expansion)
13195         (c_invoke_pragma_handler): Changed to work with
13196         internal_pragma_handler.
13197         (c_register_pragma_with_data)
13198         (c_register_pragma_with_expansion_and_data): New functions.
13200 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
13202         * c-common.c: Include common/common-target.h.
13203         (handle_section_attribute): Use
13204         targetm_common.have_named_sections.
13205         * c-cppbuiltin.c: Include common/common-target.h.
13206         (c_cpp_builtins): Use targetm_common.except_unwind_info.
13208 2011-06-10  Richard Guenther  <rguenther@suse.de>
13210         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
13211         to print a IDENTIFIER_NODE.
13213 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13214             Joseph Myers  <joseph@codesourcery.com>
13216         * c.opt (fbuilding-libgcc): New option.
13217         * c-cppbuiltin.c (c_cpp_builtins): Define
13218         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
13220 2011-06-07  Jason Merrill  <jason@redhat.com>
13222         * c-common.c (max_tinst_depth): Lower default to 900.
13224         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
13226 2011-06-07  Richard Guenther  <rguenther@suse.de>
13228         * c-common.c (c_common_nodes_and_builtins): Do not set
13229         size_type_node or call set_sizetype.
13231 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
13233         PR debug/49130
13234         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
13235         type when using pointer comparison to compare types.
13237 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
13239         * c.opt: Add -Wdelete-non-virtual-dtor.
13240         * c-opts.c (c_common_handle_option): Include it in -Wall.
13242 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
13244         PR bootstrap/49190
13246         Revert:
13247         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
13249         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
13250         not tree_common.
13252 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
13254         PR c++/49165
13255         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
13256         C++ don't call c_common_truthvalue_conversion on void type arms.
13258 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
13260         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
13261         (stmt_list_stack): Define.
13262         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
13263         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
13265 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
13267         * c-common.c (warning_candidate_p): Check for BLOCKs.
13269 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
13271         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
13272         not tree_common.
13274 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
13276         * c-common.c (def_fn_type): Remove extra va_end.
13278 2011-05-23  Jason Merrill  <jason@redhat.com>
13280         PR c++/48106
13281         * c-common.c (c_common_get_narrower): New.
13282         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
13284 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
13286         * c-common.h (check_function_arguments): Tweak prototype of
13287         check_function_arguments.
13288         * c-common.c (check_function_arguments): Likewise.  Adjust
13289         calls to check_function_nonnull, check_function_format, and
13290         check_function_sentinel.
13291         (check_function_sentinel): Take a FUNCTION_TYPE rather than
13292         separate attributes and typelist arguments.  Use
13293         FOREACH_FUNCTION_ARGS to iterate over argument types.
13295 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
13297         * c-common.c (c_common_reswords): Reorder.
13298         * c-common.h (rid): Likewise.
13300 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
13302         * c-common.c (def_fn_type): Don't call build_function_type, call
13303         build_function_type_array or build_varargs_function_type_array
13304         instead.
13305         (c_common_nodes_and_builtins): Likewise.
13307 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
13309         * c-common.c (c_add_case_label): Omit the loc argument to
13310         build_case_label.
13311         * c-common.h (build_case_label): Remove.
13312         * c-semantics.c (build_case_label): Remove.
13314 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
13316         * c-objc.h (objc_start_method_definition): Update prototype.
13317         * stub-objc.c (objc_start_method_definition): Add extra parameter.
13319 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
13321         * c-common.c (check_main_parameter_types): Reindent.  Don't use
13322         TYPE_ARG_TYPES directly.
13323         (handle_nonnull_attribute): Likewise.
13324         (sync_resolve_params): Likewise.
13325         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
13326         to check_format_string.
13327         (handle_format_attribute): Likewise.
13328         (check_format_string): Take a function type to examine instead of
13329         a type list.  Use a function_arg_iterator to step through argument
13330         types.
13332 2011-05-04  Richard Guenther  <rguenther@suse.de>
13334         * c-common.c (fix_string_type): Use size_int for index type bounds.
13335         (start_fname_decls): Do not pass NULL to build_int_cst.
13336         (c_init_attributes): Likewise.
13337         * c-lex.c (c_lex_with_flags): Likewise.
13339 2011-04-27  Jason Merrill  <jason@redhat.com>
13341         * c-common.c (make_tree_vector_from_list): New.
13342         * c-common.h: Declare it.
13344 2011-04-26  Richard Guenther  <rguenther@suse.de>
13346         PR preprocessor/48248
13347         * c-ppoutput.c (maybe_print_line): Always optimize newlines
13348         for output size with -P.
13350 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
13352         * c-common.c (struct c_common_resword): Add __underlying_type.
13353         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
13355 2011-04-20  Jim Meyering  <meyering@redhat.com>
13357         * c-format.c (init_dollar_format_checking): Remove useless
13358         if-before-free.
13360 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
13362         * c-objc.h (objc_get_interface_ivars): Removed.
13363         (objc_detect_field_duplicates): New.
13364         * stub-objc.c: Likewise.
13366 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
13368         * stub-objc.c (objc_declare_protocols): Renamed to
13369         objc_declare_protocol.
13370         * c-objc.h: Likewise.
13372 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
13374         * stub-objc.c (objc_declare_class): Updated argument name.
13376 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
13378         * c-common.h (c_common_init_ts): Declare.
13379         * c-common.c (c_common_init_ts): Define.
13381 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13383         * c-objc.h (objc_build_message_expr): Updated prototype.
13384         * stub-objc.c (objc_build_message_expr): Likewise.
13386 2011-04-12  Martin Jambor  <mjambor@suse.cz>
13388         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
13389         of cgraph_node.
13391 2011-04-11  Richard Guenther  <rguenther@suse.de>
13393         * c-common.c (complete_array_type): Build a range type of
13394         proper type.
13396 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
13398         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
13399         (handle_type_generic_attribute): Likewise.
13401 2011-04-07  Jason Merrill  <jason@redhat.com>
13403         PR c++/48450
13404         * c-common.c (c_common_truthvalue_conversion): Don't ignore
13405         conversion from C++0x scoped enum.
13407 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
13409         * c-target-def.h: New file.
13410         * c-target.def: New file.
13411         * c-target.h: New file.
13412         * c-common.c (targetcm): Don't define here.
13413         * c-common.h (default_handle_c_option): Declare.
13414         * c-format.c: Include c-target.h instead of target.h.
13415         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
13416         include tm.h.
13417         (default_handle_c_option): Move from targhooks.c.
13419 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
13421         PR preprocessor/48248
13422         * c-ppoutput.c (print): Add src_file field.
13423         (init_pp_output): Initialize it.
13424         (maybe_print_line): Don't optimize by adding up to 8 newlines
13425         if map->to_file and print.src_file are different file.
13426         (print_line): Update print.src_file.
13428 2011-03-25  Kai Tietz  <ktietz@redhat.com>
13430         * c-ada-spec.c (compare_comment): Use filename_cmp
13431         instead of strcmp for filename.
13433 2011-03-25  Jeff Law  <law@redhat.com>
13435         * c-common.c (def_fn_type): Add missing va_end.
13437 2011-03-25  Jason Merrill  <jason@redhat.com>
13439         * c.opt: Add -std=c++03.
13441 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
13443         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
13445 2011-03-17  Kai Tietz  <ktietz@redhat.com>
13447         PR target/12171
13448         * c-pretty-print.c (pp_c_specifier_qualifier_list):
13449         Display allowed attributes for function pointer types.
13450         (pp_c_attributes_display): New function to display
13451         attributes having affects_type_identity flag set to true.
13452         * c-pretty-print.h (pp_c_attributes_display): New prototype.
13454         * c-common.c (c_common_attribute_table):
13455         Add new element.
13456         (c_common_format_attribute_table): Likewise.
13458 2011-03-18  Jason Merrill  <jason@redhat.com>
13460         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
13461         * c-common.h: Don't declare it here.
13462         * c-common.c: Or define it here.
13463         * c-opts.c (c_common_handle_option): Or set it here.
13465         PR c++/35315
13466         * c-common.c (handle_transparent_union_attribute): Don't
13467         make a duplicate type in C++.
13469 2011-03-15  Jason Merrill  <jason@redhat.com>
13471         * c-common.c (max_constexpr_depth): New.
13472         * c-common.h: Declare it.
13473         * c-opts.c (c_common_handle_option): Set it.
13474         * c.opt (fconstexpr-depth): New option.
13476 2011-03-11  Jason Merrill  <jason@redhat.com>
13478         * c-common.c (attribute_takes_identifier_p): Add missing const.
13480         PR c++/46803
13481         * c-common.c (attribute_takes_identifier_p): Assume that an
13482         unknown attribute takes an identifier.
13484 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
13486         PR c/47786
13487         * c-common.c (c_type_hash): Call list_length instead of iterating
13488         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
13490 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
13492         PR c/47809
13493         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
13495 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
13497         * c.opt (fobjc-abi-version=) New.
13498         (fobjc-nilcheck): New.
13500 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
13502         PR c++/46890
13503         * c-common.h (keyword_is_decl_specifier): Declare.
13504         * c-common.c (keyword_is_decl_specifier): Define.
13505         (keyword_is_function_specifier): New function.
13507 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
13509         PR c/47473
13510         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
13511         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
13512         REAL_TYPE.
13514 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
13516         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
13518 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
13520         PR pch/47430
13521         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
13522         after init_c_lex if pch_file is set.
13524 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13526         PR c++/43601
13527         * c.opt (-fkeep-inline-dllexport): New switch.
13529 2011-01-12  Richard Guenther  <rguenther@suse.de>
13531         PR middle-end/32511
13532         * c-common.c (handle_weak_attribute): Warn instead of error
13533         on declaring an inline function weak.
13535 2011-01-05  Tom Tromey  <tromey@redhat.com>
13537         * c-common.h (lvalue_error): Update.
13538         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
13539         not error.
13541 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
13543         PR objc/47075
13544         * c-objc.h (objc_finish_message_expr): Added argument to
13545         prototype.
13547 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
13549         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
13550         Use prototype_p.
13552 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
13554         * c-objc.h (objc_maybe_warn_exceptions): New.
13555         * stub-objc.c (objc_maybe_warn_exceptions): New.
13557 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
13559         * c-common.h (readonly_error): Declare.
13560         * c-common.c (readonly_error): Define.
13562 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
13564         * c-common.h (invalid_indirection_error): Declare.
13565         * c-common.c (invalid_indirection_error): Define.
13567 2010-12-03  Richard Guenther  <rguenther@suse.de>
13569         PR c/46745
13570         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
13571         (pp_c_unary_expression): Likewise.
13572         (pp_c_expression): Likewise.
13574 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
13576         * c-common.h (objc_finish_function): New.
13577         (objc_non_volatilized_type): Removed.
13578         (objc_type_quals_match): Removed.
13579         * stub-objc.c (objc_finish_function): New.
13580         (objc_non_volatilized_type): Removed.
13581         (objc_type_quals_match): Removed.
13583 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
13585         * c-common.h (parse_optimize_options): Declare.
13586         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
13587         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
13589 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
13591         * c-opts.c (check_deps_environment_vars): Use getenv instead of
13592         GET_ENVIRONMENT.
13593         * c-pch.c (O_BINARY): Don't define here.
13594         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
13596 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
13598         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
13599         targetm.except_unwind_info.
13601 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
13603         * c-opts.c (c_common_handle_option): Pass location to
13604         set_struct_debug_option.
13606 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
13608         * c-common.c (visibility_options): Move from ../opts.c.
13609         * c-common.h (struct visibility_flags, visibility_options):
13610         Declare here.
13611         * c-opts.c (finish_options): Rename to c_finish_options.
13612         (c_common_init): Update call to finish_options.
13614 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
13616         PR objc/34033
13617         * c-lex.c (lex_string): Check that each string in an Objective-C
13618         string concat sequence starts with either one or zero '@', and
13619         that there are no spurious '@' signs at the end.
13621 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
13623         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
13624         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
13625         HANDLE_PRAGMA_VISIBILITY.
13626         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
13627         HANDLE_PRAGMA_VISIBILITY): Don't define.
13628         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
13630 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
13632         PR c++/16189
13633         PR c++/36888
13634         PR c++/45331
13635         * c-common.h (keyword_begins_type_specifier): Declare.
13636         (keyword_is_storage_class_specifier): Declare.
13637         (keyword_is_type_qualifier): Declare.
13638         * c-common.c (keyword_begins_type_specifier): New function.
13639         (keyword_is_storage_class_specifier): New function.
13640         (keyword_is_type_qualifier): Declare.
13642 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
13644         PR c/46547
13645         * c-common.c (in_late_binary_op): Define.
13646         (c_common_truthvalue_conversion): Check in_late_binary_op before
13647         calling c_save_expr.
13648         * c-common.h (in_late_binary_op): Declare.
13650 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
13652         * c-opts.c (c_common_handle_option): Update calls to
13653         set_struct_debug_option.
13655 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
13657         * c-common.h (objc_declare_protocols): Added additional argument.
13658         * stub-objc.c (objc_declare_protocol): Same change.
13660 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
13662         PR c/33193
13663         * c-common.h (build_real_imag_expr): Declare.
13664         * c-semantics.c (build_real_imag_expr): Define.
13666 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
13668         * c-opts.c (c_common_parse_file): Take no arguments.
13669         * c-common.h (c_common_parse_file): Update prototype.
13671 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
13673         PR c++/46401
13674         * c-common.c (warning_candidate_p): Don't track non-const calls
13675         or STRING_CSTs.
13677 2010-11-15  Ian Lance Taylor  <iant@google.com>
13679         * c-lex.c (init_c_lex): Set macro debug callbacks if
13680         flag_dump_go_spec is set.
13682 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
13684         * c-common.h (objc_build_incr_expr_for_property_ref): New.
13685         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
13687 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
13689         PR preprocessor/45038
13690         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
13691         dialects.
13693 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
13695         * c-common.h (c_family_lang_mask): Declare.
13696         * c-opts.c (c_family_lang_mask): Make extern.
13697         * c-pragma.c (handle_pragma_diagnostic): Use
13698         control_warning_option.
13700 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
13702         * c-common.c (parse_optimize_options): Update call to
13703         decode_options.
13704         * c-common.h (c_common_handle_option): Update prototype.
13705         * c-opts.c (c_common_handle_option): Take location_t parameter and
13706         pass it to other functions.
13708 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
13710         * c-opts.c (warning_as_error_callback): Remove.
13711         (c_common_initialize_diagnostics): Don't call
13712         register_warning_as_error_callback.
13713         (c_common_handle_option): Handle -Werror=normalized= here.
13715 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
13717         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
13718         in diagnostic.
13719         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
13720         letter.
13721         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
13722         Remove trailing '.' from diagnostics.
13723         * c.opt (Wwrite-strings_: Avoid '`' in help text.
13725 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
13727         * c-common.c (parse_optimize_options): Pass global_dc to
13728         decode_options.
13729         * c-opts.c (c_common_handle_option): Pass &global_options to
13730         set_Wstrict_aliasing.
13731         * c.opt (v): Don't mark Common or document here.
13733 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
13735         PR target/44981
13736         * c-format.c (format_type): New type gcc_objc_string_format_type.
13737         (valid_stringptr_type_p): New.
13738         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
13739         (check_format_string): Pass expected type, use
13740         valid_stringptr_type_p (), check that the format string types are
13741         consistent with the format specification.
13742         (decode_format_attr): Warn if NSString is used outside objective-c.
13743         (format_types_orig): Add NSString.
13744         (format_name): New.
13745         (format_flags): New.
13746         (check_format_arg): Handle format strings requiring an external parser.
13747         first_target_format_type: New variable.
13748         (handle_format_attribute): Set up first_target_format_type, pass the
13749         expected format arg string type to check_format_string().
13750         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
13751         * stub-objc.c (objc_string_ref_type_p): New.
13752         (objc_check_format_arg): New.
13754 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
13756         Fixed using the Objective-C 2.0 dot-syntax with class names.
13757         * c-common.h (objc_build_class_component_ref): New.
13758         * stub-objc.c (objc_build_class_component_ref): New.
13760 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
13762         * c.opt (Wproperty-assign-default): New option.
13764 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
13766         Implemented -fobjc-std=objc1 flag.
13767         * c.opt (fobjc-std=objc1): New option.
13769 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
13771         Implemented format and noreturn attributes for Objective-C methods.
13772         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
13773         attribute for Objective-C methods.
13775 2010-10-31  Jason Merrill  <jason@redhat.com>
13777         * c-common.c (conversion_warning, warn_for_collisions_1): Use
13778         EXPR_LOC_OR_HERE.
13780 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
13782         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
13783         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
13784         (objc_add_property_declaration): Removed arguments for copies and
13785         ivar.
13786         (objc_build_getter_call): Renamed to
13787         objc_maybe_build_component_ref.
13788         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
13789         (objc_is_property_ref): New.
13790         * c-common.c (c_common_reswords): Removed copies and ivar.
13791         * stub-objc.c (objc_add_property_declaration): Removed arguments
13792         for copies and ivar.
13793         (objc_build_getter_call): Renamed to
13794         objc_maybe_build_component_ref.
13795         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
13796         (objc_is_property_ref): New.
13798 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
13799             Matthew Gingell  <gingell@adacore.com>
13801         * c-ada-spec.c (separate_class_package): New function.
13802         (pp_ada_tree_identifier): Prefix references to C++ classes with the
13803         name of their enclosing package.
13804         (print_ada_declaration): Use separate_class_package.
13806 2010-10-27  Jason Merrill  <jason@redhat.com>
13808         * c-common.c (c_common_reswords): Add __is_literal_type.
13809         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
13811         * c-common.c (check_case_value): Remove special C++ code.
13813 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
13815         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
13816         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
13817         and RID_LAST_PATTR.
13818         (objc_add_property_declaration): Added additional arguments.
13819         (objc_property_attribute_kind): Removed.
13820         (objc_set_property_attr): Removed.
13821         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
13822         copy and nonatomic.
13823         * stub-objc.c (objc_add_property_declaration): Added additional
13824         arguments.
13825         (objc_set_property_attr): Removed.
13827 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
13829         * c-common.h (objc_add_property_variable): Renamed to
13830         objc_add_property_declaration.  Added location argument.
13831         * stub-objc.c (objc_add_property_variable): Same change.
13833 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
13835         * c-common.h (objc_maybe_printable_name): New.
13836         * stub-objc.c (objc_maybe_printable_name): New.
13838 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
13839             Andrew Pinski  <pinskia@gmail.com>
13841         * c-common.h (c_common_mark_addressable_vec): Declare.
13842         * c-common.c (c_common_mark_addressable_vec): New function.
13844 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
13846         * c-common.h (objc_set_method_type): Removed.
13847         (objc_add_method_declaration): Added boolean argument.
13848         (objc_start_method_definition): Same change.
13849         (objc_build_method_signature): Same change.
13850         * stub-objc.c (objc_set_method_type): Removed.
13851         (objc_add_method_declaration): Added boolean argument.
13852         (objc_start_method_definition): Same change.
13853         (objc_build_method_signature): Same change.
13855 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
13857         * c-common.h (finish_file): Removed.
13858         (objc_write_global_declarations): New.
13859         * c-opts.c (c_common_parse_file): Do not call finish_file.
13860         * stub-objc.c (objc_write_global_declarations): New.
13862 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
13864         Implemented parsing @synthesize and @dynamic for
13865         Objective-C/Objective-C++.
13866         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
13867         (objc_add_synthesize_declaration): New.
13868         (objc_add_dynamic_declaration): New.
13869         * c-common.c (c_common_reswords): Add synthesize and dynamic.
13870         * stub-objc.c (objc_add_synthesize_declaration): New.
13871         (objc_add_dynamic_declaration): New.
13873 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
13875         PR target/46041
13876         * c-cppbuiltin.c (mode_has_fma): Move function here from
13877         builtins.c.  Don't use the fma optab, instead just use the
13878         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
13879         using -save-temps.
13881 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
13883         Merge from 'apple/trunk' branch on FSF servers.
13885         2005-11-08  Fariborz Jahanian  <fjahanian@apple.com>
13887         Radar 4330422
13888         * c-common.h (objc_non_volatilized_type): New declaration
13889         * stub-objc.c (objc_non_volatilized_type): New stub.
13891 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
13893         Merge from 'apple/trunk' branch on FSF servers.
13895         2006-03-27  Fariborz Jahanian  <fjahanian@apple.com>
13897         Radar 4133425
13898         * c-common.h (objc_diagnose_private_ivar): New decl.
13899         * stub-objc.c (objc_diagnose_private_ivar): New stub.
13901 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
13903         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
13904         * c-common.h (enum rid): Add RID_AT_PACKAGE.
13905         (objc_ivar_visibility_kind): New enum.
13906         (objc_set_visibility): Adjust prototype to use visibility enum.
13907         * stub-objc.c (objc_set_visibility): Adjust stub to use
13908         visibility enum.
13910 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
13912         * c-cppbuiltin.c (builtin_define_float_constants): Emit
13913         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
13914         has the appropriate fma builtins.
13915         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
13917 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
13919         merge from FSF apple 'trunk' branch.
13920         2006 Fariborz Jahanian  <fjahanian@apple.com>
13922         Radars 4436866, 4505126, 4506903, 4517826
13923         * c-common.c (c_common_resword): Define @property and its attributes.
13924         * c-common.h: Define property attribute enum entries.
13925         (OBJC_IS_PATTR_KEYWORD): New.
13926         (objc_property_attribute_kind): New enum.
13927         Declare objc_set_property_attr (), objc_add_property_variable (),
13928         objc_build_getter_call () and objc_build_setter_call ().
13929         * stub-objc.c (objc_set_property_attr): New stub.
13930         (objc_add_property_variable): Likewise.
13931         (objc_build_getter_call): Likewise.
13932         (objc_build_setter_call) Likewise.
13934 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
13936         merge from FSF apple 'trunk' branch.
13937         2006-04-26  Fariborz Jahanian  <fjahanian@apple.com>
13939         Radar 3803157 (method attributes)
13940         * c-common.c (handle_deprecated_attribute): Recognize
13941         objc methods as valid declarations.
13942         * c-common.h: Declare objc_method_decl ().
13943         * stub-objc.c (objc_method_decl): New stub.
13945 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
13947         * c-common.c (parse_optimize_options): Call
13948         decode_cmdline_options_to_array_default_mask before
13949         decode_options.  Update arguments to decode_options.
13950         * c-common.h (c_common_init_options_struct): Declare.
13951         * c-opts.c (c_common_init_options_struct): New.  Split out from
13952         c_common_init_options.
13954 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
13956         Implemented fast enumeration for Objective-C.
13957         * c-common.h (objc_finish_foreach_loop): New.
13958         * stub-objc.c (objc_finish_foreach_loop): New.
13960 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
13962         * c-common.h (struct diagnostic_context): Don't declare here.
13963         (c_common_initialize_diagnostics): Declare using
13964         diagnostic_context typedef.
13965         * c-opts.c (c_common_handle_option): Pass global_dc to
13966         handle_generated_option.
13968 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
13970         * c-opts.c (c_common_handle_option): Pass &global_options_set to
13971         handle_generated_option.
13973 2010-10-03  Ian Lance Taylor  <iant@google.com>
13975         * c.opt (-fplan9-extensions): New option.
13977 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13979         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
13980         Remove.
13981         (c_cpp_builtins): Call functions from cppbuiltin.c instead
13982         of duplicating code.
13984 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
13986         * c-common.c: Add two new entries for @optional
13987         and @required keywords.
13989         merge from FSF 'apple/trunk' branch.
13990         2006-01-30  Fariborz Jahanian  <fjahanian@apple.com>
13992         Radar 4386773
13993         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
13994         objective-c keywords.
13995         (objc_set_method_opt): New declaration.
13996         * stub-objc.c (objc_set_method_opt): New stub.
13998 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
14000         * c-common.c (handle_optimize_attribute): Pass &global_options to
14001         cl_optimization_save and cl_optimization_restore.
14002         * c-opts.c (c_common_handle_option): Pass &global_options to
14003         handle_generated_option.
14004         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
14005         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
14006         &global_options to cl_optimization_restore.
14008 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
14010         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
14011         Objective-C/Objective-C++ keywords.
14013 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
14015         Merge from 'apple/trunk' branch on FSF servers.
14017         2005-10-04  Fariborz Jahanian  <fjahanian@apple.com>
14019         Radar 4281748
14020         * c-common.h (objc_check_global_decl): New declaration.
14021         * stub-objc.c (objc_check_global_decl): New stub.
14023 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
14025         * c.opt: Don't use VarExists.
14027 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
14029         * c-common.c (c_cpp_error): Update names of diagnostic_context
14030         members.
14031         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
14032         cl_optimization members.
14033         * c-opts.c (warning_as_error_callback, c_common_handle_option,
14034         sanitize_cpp_opts, finish_options): Update names of cpp_options
14035         members.
14037 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
14039         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
14040         (objc_is_reserved_word): Removed.
14041         * c-common.c: Updated comments.
14042         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
14043         objc_is_reserved_word.
14044         * stub-objc.c (objc_is_reserved_word): Removed.
14046 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
14048         * c-common.h (objc_add_method_declaration): Adjust prototype to
14049         include attributes.
14050         (objc_start_method_definition): Likewise.
14051         (objc_build_keyword_decl): Likewise.
14052         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
14053         (objc_start_method_definition): Likewise.
14054         (objc_build_keyword_decl): Likewise.
14056 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
14058         * c-common.h (objc_start_class_interface): Adjust prototype.
14059         (objc_start_category_interface): Likewise.
14060         (objc_start_protocol): Likewise.
14061         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
14062         (objc_start_class_interface): Likewise.
14063         (objc_start_category_interface): Likewise.
14065 2010-09-27  Ian Lance Taylor  <iant@google.com>
14067         * c-common.c (c_common_attribute_table): Add no_split_stack.
14068         (handle_no_split_stack_attribute): New static function.
14070 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
14072         Merge from 'apple/trunk' branch on FSF servers.
14074         2005-12-15  Fariborz Jahanian  <fjahanian@apple.com>
14076         Radar 4229905
14077         * c-common.h (objc_have_common_type): New declaration.
14078         * stub-objc.c (objc_have_common_type): New stub.
14080         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
14082         Radar 4154928
14083         * c-common.h (objc_common_type): New prototype.
14084         * stub-objc.c (objc_common_type): New stub.
14086 2010-09-24  Jan Hubicka  <jh@suse.cz>
14088         * c-common.c (handle_leaf_attribute): New function.
14089         (struct attribute_spec c_common_att): Add leaf.
14091 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
14093         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
14094         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
14095         -dump, -dump=, -imacros, -imacros=, -include, -include=,
14096         -include-barrier, -include-directory, -include-directory=,
14097         -include-directory-after, -include-directory-after=,
14098         -include-prefix, -include-prefix=, -include-with-prefix,
14099         -include-with-prefix=, -include-with-prefix-after,
14100         -include-with-prefix-after=, -include-with-prefix-before,
14101         -include-with-prefix-before=, -no-integrated-cpp,
14102         -no-line-commands, -no-standard-includes, -no-warnings, -output,
14103         -output=, -pedantic, -pedantic-errors, -preprocess,
14104         -print-missing-file-dependencies, -trace-includes, -traditional,
14105         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
14106         -user-dependencies, -verbose, -write-dependencies,
14107         -write-user-dependencies, no-integrated-cpp, traditional): New.
14109 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
14111         PR objc/23710
14112         * c-common.h (objc_start_method_definition): Return bool instead
14113         of void.
14114         * stub-objc.c (objc_start_method_definition): Return bool instead
14115         of void.
14117 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
14119         PR objc/25965
14120         * c-common.h (objc_get_interface_ivars): New declaration.
14121         * stub-objc.c (objc_get_interface_ivars): New stub.
14123 2010-09-15  Ian Lance Taylor  <iant@google.com>
14125         * c-common.c (parse_optimize_options): Do not capitalize warning
14126         messages.  Remove period at end of warning message.
14128 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
14130         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
14131         (handle_alias_attribute): ... here.
14132         (handle_ifunc_attribute): New.
14134 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
14136         * c-common.h (do_warn_double_promotion): Declare.
14137         * c-common.c (do_warn_double_promotion): Define.
14139 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
14141         * c.opt (Wdouble-promotion): New.
14143 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
14145         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
14146         fvtable-thunks, fxref): Mark no longer supported in help text.
14148 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
14150         * c.opt (Wimport, fall-virtual, falt-external-templates,
14151         fdefault-inline, fenum-int-equiv, fexternal-templates,
14152         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
14153         fname-mangling-version-, fnew-abi, fnonnull-objects,
14154         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
14155         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
14156         applicable.
14157         (fhandle-exceptions): Mark with Alias and Warn.
14158         * c-opts.c (c_common_handle_option): Don't handle options marked
14159         as ignored.
14161 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
14163         * c.opt (Wcomments, Werror-implicit-function-declaration,
14164         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
14165         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
14166         aliases.
14167         * c-common.c (option_codes): Use OPT_Wcomment instead of
14168         OPT_Wcomments.
14169         * c-opts.c (warning_as_error_callback, c_common_handle_option):
14170         Don't handle options marked as aliases.
14172 2010-08-25  Richard Guenther  <rguenther@suse.de>
14174         * c-common.c (c_common_get_alias_set): Remove special
14175         handling for pointers.
14177 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
14179         * c-common.c: Use FOR_EACH_VEC_ELT.
14180         * c-gimplify.c: Likewise.
14181         * c-pragma.c: Likewise.
14183 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
14185         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
14186         RejectDriver.
14187         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
14188         RejectDriver.
14189         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
14190         instead of OPT_MDX and OPT_MMDX.
14192 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
14194         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
14196 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
14198         * c.opt (MD, MMD): Change to MDX and MMDX.
14199         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
14201 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
14203         * c-opts.c (c_common_handle_option): Call handle_generated_option
14204         instead of handle_option.
14206 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
14208         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
14209         (maybe_apply_renaming_pragma): Delete unneeded declarations.
14211 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
14213         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
14214         (pending_redefine_extname): Change type to a VEC.
14215         (add_to_renaming_pragma_list): Update for new type of
14216         pending_redefine_extname.
14217         (maybe_apply_renaming_pragma): Likewise.
14219 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
14221         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
14222         visited.
14223         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
14224         decide whether a type has already been declared/seen.
14225         Do not go to the original type.
14226         (dump_nested_types): New parameter forward.
14227         Generate forward declaration if needed and mark type as visited.
14228         (print_ada_declaration): Call dump_nested_types if not already done.
14229         Mark types as visited.
14231 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
14233         * c.opt (-print-pch-checksum): Remove option.
14234         * c-opts.c (c_common_handle_option): Don't handle
14235         OPT_print_pch_checksum.
14237 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
14239         * c-common.h (c_common_handle_option): Update prototype and return
14240         value type.
14241         * c-opts.c (c_common_handle_option): Update prototype and return
14242         value type.  Update calls to handle_option and
14243         enable_warning_as_error.
14245 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
14247         PR c/45079
14248         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
14250 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
14252         * c-common.h (c_common_missing_argument): Remove.
14253         * c-opts.c (c_common_missing_argument): Remove.
14254         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
14255         idirafter, imacros, include, isysroot, isystem, iquote): Add
14256         MissingArgError.
14257         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
14259 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
14261         * c-common.h (c_common_option_lang_mask,
14262         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
14263         New.
14264         (c_common_init_options): Update prototype.
14265         * c-opts.c (c_common_option_lang_mask): New.
14266         (c_common_initialize_diagnostics): Split out of
14267         c_common_init_options.
14268         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
14269         New.
14270         (c_common_init_options): Update prototype.  Use decoded options in
14271         search for -lang-asm.
14273 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
14275         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
14276         * c-format.c: Likewise.
14278 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14280         * c-common.h: Include diagnostic-core.h. Error if already
14281         included.
14282         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
14284 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14286         * c-common.c (IN_GCC_FRONTEND): Do not undef.
14287         Do not include expr.h
14288         (vector_mode_valid_p): Move here.
14290 2010-06-21  DJ Delorie  <dj@redhat.com>
14292         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
14293         allow these pragmas anywhere.
14295 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
14297         PR bootstrap/44509
14298         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
14299         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
14300         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
14301         ggc_strdup instead of xstrdup.
14303 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
14305         * c-cppbuiltin.c: Include cpp-id-data.h.
14306         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
14307         (lazy_hex_fp_value): New function.
14308         (builtin_define_with_hex_fp_value): Provide definitions lazily.
14310 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14312         * c-gimplify.c: Do not include tree-flow.h
14314 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
14316         PR other/44034
14317         * c-common.c: Rename targetm member:
14318         targetm.enum_va_list -> targetm.enum_va_list_p
14320 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
14322         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
14324 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
14326         * c-cppbuiltin.c: Do not include except.h.
14328 2010-06-24  Andi Kleen  <ak@linux.intel.com>
14330         * c-common.c (warn_for_omitted_condop): New.
14331         * c-common.h (warn_for_omitted_condop): Add prototype.
14333 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
14335         * c.opt (lang-objc): Remove.
14336         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
14338 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
14340         * c-opts.c: Include "tm_p.h".
14342 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
14344         * c-common.c (parse_optimize_options): Update call to
14345         decode_options.
14347 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
14349         * c-common.c (record_types_used_by_current_var_decl): Adjust for
14350         new type of types_used_by_cur_var_decl.
14352 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
14354         PR bootstrap/44512
14355         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
14356         for C++ standard compliance.
14358 2010-06-16  Jason Merrill  <jason@redhat.com>
14360         * c.opt: Add -Wnoexcept.
14362 2010-06-16  Richard Guenther  <rguenther@suse.de>
14364         PR c/44555
14365         * c-common.c (c_common_truthvalue_conversion): Remove
14366         premature and wrong optimization concering ADDR_EXPRs.
14368 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
14370         * c-ada-spec.c (dump_sloc): Remove column info.
14371         (is_simple_enum): New function.
14372         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
14373         enum types when relevant.
14375 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14377         * c-common.c (conversion_warning): Warn at expression
14378         location.
14380 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
14382         * c-opts.c (c_common_handle_option): Don't handle
14383         OPT_fshow_column.
14385 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14387         * c-pragma.c (push_alignment): Use typed GC allocation.
14388         (handle_pragma_push_options): Likewise.
14390         * c-common.c (parse_optimize_options): Likewise.
14392         * c-common.h (struct sorted_fields_type): Add variable_size GTY
14393         option.
14395 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
14397         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
14398         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
14399         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
14400         flag_signed_bitfields, warn_strict_null_sentinel,
14401         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
14402         flag_gen_declaration, flag_no_gnu_keywords,
14403         flag_implement_inlines, flag_implicit_templates,
14404         flag_implicit_inline_templates, flag_optional_diags,
14405         flag_elide_constructors, flag_default_inline, flag_rtti,
14406         flag_conserve_space, flag_access_control, flag_check_new,
14407         flag_new_for_scope, flag_weak, flag_working_directory,
14408         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
14409         flag_enforce_eh_specs, flag_threadsafe_statics,
14410         flag_pretty_templates): Remove.
14411         * c-common.h (flag_preprocess_only, flag_nil_receivers,
14412         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
14413         flag_replace_objc_classes, flag_undef, flag_no_builtin,
14414         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
14415         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
14416         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
14417         flag_no_gnu_keywords, flag_implement_inlines,
14418         flag_implicit_templates, flag_implicit_inline_templates,
14419         flag_optional_diags, flag_elide_constructors, flag_default_inline,
14420         flag_rtti, flag_conserve_space, flag_access_control,
14421         flag_check_new, flag_new_for_scope, flag_weak,
14422         flag_working_directory, flag_use_cxa_atexit,
14423         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
14424         flag_threadsafe_statics, flag_pretty_templates,
14425         warn_strict_null_sentinel): Remove.
14426         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
14427         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
14428         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
14429         fimplicit-inline-templates, fimplicit-templates,
14430         flax-vector-conversions, fms-extensions, fnil-receivers,
14431         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
14432         frtti, fshort-double, fshort-enums, fshort-wchar,
14433         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
14434         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
14435         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
14436         gen-decls, undef): Use Var.
14437         (fdefault-inline, foptional-diags): Document as doing nothing.
14438         * c-opts.c (c_common_handle_option): Remove cases for options now
14439         using Var.  Mark ignored options as such.
14441 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
14443         * c-common.c: Moved to here from parent directory.
14444         * c-common.def: Likewise.
14445         * c-common.h: Likewise.
14446         * c-cppbuiltin.c: Likewise.
14447         * c-dump.c: Likewise.
14448         * c-format.c: Likewise.
14449         * c-format.h : Likewise.
14450         * c-gimplify.c: Likewise.
14451         * c-lex.c: Likewise.
14452         * c-omp.c: Likewise.
14453         * c.opt: Likewise.
14454         * c-opts.c: Likewise.
14455         * c-pch.c: Likewise.
14456         * c-ppoutput.c: Likewise.
14457         * c-pragma.c: Likewise.
14458         * c-pragma.h: Likewise.
14459         * c-pretty-print.c: Likewise.
14460         * c-pretty-print.h: Likewise.
14461         * c-semantics.c: Likewise.
14462         * stub-objc.c: Likewise.
14464         * c-common.c: Include gt-c-family-c-common.h.
14465         * c-pragma.c: Include gt-c-family-c-pragma.h.
14467 Copyright (C) 2010-2023 Free Software Foundation, Inc.
14469 Copying and distribution of this file, with or without modification,
14470 are permitted in any medium without royalty provided the copyright
14471 notice and this notice are preserved.