Daily bump.
[official-gcc.git] / gcc / c-family / ChangeLog
blob813062e2340be9e6af3896927febf45f8595d1b8
1 2021-11-25  Jakub Jelinek  <jakub@redhat.com>
3         PR c++/102611
4         * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by
5         default for C++23 regardless of warn_deprecated.
6         * c-cppbuiltin.c (c_cpp_builtins): Predefine
7         __cpp_multidimensional_subscript=202110L for C++23.
9 2021-11-23  Martin Sebor  <msebor@redhat.com>
11         PR middle-end/88232
12         * c.opt: Add -Winfinite-recursion.
14 2021-11-19  Martin Sebor  <msebor@redhat.com>
16         PR c++/33925
17         PR c/102867
18         * c-common.c (decl_with_nonnull_addr_p): Call maybe_nonzero_address
19         and improve handling tof defined symbols.
21 2021-11-19  Martin Liska  <mliska@suse.cz>
23         Revert:
24         2021-11-18  Martin Liska  <mliska@suse.cz>
26         * c-gimplify.c (genericize_c_loop): Use option directly.
28 2021-11-18  Matthias Kretz  <m.kretz@gsi.de>
30         * c-common.c (c_common_reswords): Add __builtin_assoc_barrier.
31         * c-common.h (enum rid): Add RID_BUILTIN_ASSOC_BARRIER.
33 2021-11-18  Martin Liska  <mliska@suse.cz>
35         * c-gimplify.c (genericize_c_loop): Use option directly.
37 2021-11-17  Martin Uecker  <uecker@gcc.gnu.org>
39         PR c/91038
40         PR c/29970
41         * c-common.c (pointer_int_sum): Make sure pointer expressions
42         are evaluated first when the size expression depends on for
43         variably-modified types.
45 2021-11-17  Marek Polacek  <polacek@redhat.com>
47         PR preprocessor/103026
48         * c.opt (Wbidi-chars, Wbidi-chars=): New option.
50 2021-11-16  Jason Merrill  <jason@redhat.com>
52         * c-common.c (release_tree_vector): Only cache vecs smaller than
53         16 elements.
55 2021-11-15  Jason Merrill  <jason@redhat.com>
57         * c.opt: Add -fimplicit-constexpr.
58         * c-cppbuiltin.c: Define __cpp_implicit_constexpr.
59         * c-opts.c (c_common_post_options): Disable below C++14.
61 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
63         * c-omp.c (c_omp_split_clauses) <case OMP_CLAUSE_THREAD_LIMIT>:
64         Duplicate to both OMP_TARGET and OMP_TEAMS.
66 2021-11-10  Marek Polacek  <polacek@redhat.com>
68         PR c++/101940
69         * c-pragma.c (handle_pragma_diagnostic): Handle #pragma GCC diagnostic
70         ignored_attributes.
72 2021-11-09  David Malcolm  <dmalcolm@redhat.com>
74         * c-pragma.c (GCC_BAD_AT): New macro.
75         (GCC_BAD2_AT): New macro.
76         (handle_pragma_pack): Use the location of the pertinent token when
77         issuing diagnostics about invalid constants/actions, and trailing
78         junk.
79         (handle_pragma_target): Likewise for non-string "GCC option".
80         (handle_pragma_message): Likewise for trailing junk.
82 2021-11-03  Joseph Myers  <joseph@codesourcery.com>
84         PR c/103031
85         * c-common.c (convert_and_check): Add argument init_const.  Call
86         convert_init if init_const.
87         * c-common.h (convert_and_check): Update prototype.
88         (convert_init): New prototype.
90 2021-11-01  David Malcolm  <dmalcolm@redhat.com>
92         * c-lex.c (c_lex_with_flags): When complaining about non-printable
93         CPP_OTHER tokens, set the "escape on output" flag.
95 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
97         * c-omp.c (c_omp_check_loop_iv_r): Don't clear 3rd bit for
98         POINTER_PLUS_EXPR.
99         (c_omp_check_nonrect_loop_iv): Handle POINTER_PLUS_EXPR.
100         (c_omp_check_loop_iv): Set kind even if the iterator is non-integral.
102 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
104         PR c++/102854
105         * c-common.h (c_omp_check_loop_iv_exprs): Add enum tree_code argument.
106         * c-omp.c (c_omp_check_loop_iv_r): For trees other than decls,
107         TREE_VEC, PLUS_EXPR, MINUS_EXPR, MULT_EXPR, POINTER_PLUS_EXPR or
108         conversions temporarily clear the 3rd bit from d->kind while walking
109         subtrees.
110         (c_omp_check_loop_iv_exprs): Add CODE argument.  Or in 4 into data.kind
111         if possibly non-rectangular.
113 2021-10-21  Jakub Jelinek  <jakub@redhat.com>
115         PR middle-end/64888
116         * c-omp.c (c_omp_predefined_variable): Return true also for
117         ubsan_create_data created artificial variables.
119 2021-10-14  Joseph Myers  <joseph@codesourcery.com>
121         * c-format.c (printf_length_specs, scanf_length_specs)
122         (print_char_table, scan_char_table): Support DFP formats for C2X.
123         * c-format.h (TEX_D32, TEX_D64, TEX_D128): Remove.
124         (T2X_D32, T2X_D64, T2X_D128): New macros.
126 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
128         * c-omp.c (c_omp_check_context_selector): Rename to
129         omp_check_context_selector and move to omp-general.c.
130         (c_omp_mark_declare_variant): Rename to omp_mark_declare_variant and
131         move to omp-general.c.
133 2021-10-12  Joseph Myers  <joseph@codesourcery.com>
135         * c-format.c (print_char_table): Add %b and %B formats.
136         (scan_char_table): Add %b format.
137         * c-format.h (T2X_UI, T2X_UL, T2X_ULL, T2X_US, T2X_UC, T2X_ST)
138         (T2X_UPD, T2X_UIM): New macros.
140 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
142         * c-omp.c (c_finish_omp_atomic): Use
143         clear_padding_type_may_have_padding_p.
145 2021-10-08  Martin Liska  <mliska@suse.cz>
147         * c-opts.c (c_common_post_options): Use new macro
148         OPTION_SET_P.
150 2021-10-07  Martin Liska  <mliska@suse.cz>
152         * c-common.c (parse_optimize_options): Make
153         save_opt_decoded_options a pointer type.
155 2021-10-06  Jakub Jelinek  <jakub@redhat.com>
157         PR tree-optimization/102571
158         * c-omp.c (c_finish_omp_atomic): Optimize the case where type has
159         padding, but the non-padding bits are contiguous set of bytes
160         by adjusting the memcmp call arguments instead of emitting
161         __builtin_clear_padding and then comparing all the type's bytes.
163 2021-10-06  Jakub Jelinek  <jakub@redhat.com>
165         PR c++/102612
166         * c-cppbuiltin.c (c_cpp_builtins): For -std=c++23 predefine
167         __cpp_constexpr to 202110L rather than 201907L.
169 2021-10-04  Marek Polacek  <polacek@redhat.com>
171         PR c++/97573
172         * c-common.h (do_warn_array_compare): Declare.
173         * c-warn.c (do_warn_array_compare): New.
174         * c.opt (Warray-compare): New option.
176 2021-10-02  Iain Sandoe  <iain@sandoe.co.uk>
178         * c-format.c: Remove a test of TARGET_FORMAT_TYPES with
179         NULL, this is not needed.
181 2021-10-01  Martin Sebor  <msebor@redhat.com>
183         PR c/102103
184         * c-common.c (decl_with_nonnull_addr_p): Handle members.
185         Check and perform warning suppression.
186         (c_common_truthvalue_conversion): Enhance warning suppression.
188 2021-10-01  Martin Liska  <mliska@suse.cz>
190         PR target/102552
191         * c-common.c (parse_optimize_options): decoded_options[0] is
192           used for program name, so merged_decoded_options should also
193           respect that.
195 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
196             Richard Biener  <rguenther@suse.de>
198         PR sanitizer/102515
199         * c-ubsan.c (ubsan_instrument_division): Check the right
200         flag_sanitize_recover bit, depending on which sanitization
201         is done.  Sanitize INT_MIN / -1 under SANITIZE_SI_OVERFLOW
202         rather than SANITIZE_DIVIDE.  If both SANITIZE_SI_OVERFLOW
203         and SANITIZE_DIVIDE is enabled, neither check is known
204         to be false and flag_sanitize_recover bits for those two
205         aren't the same, emit both __ubsan_handle_divrem_overflow
206         and __ubsan_handle_divrem_overflow_abort calls.
208 2021-10-01  Martin Liska  <mliska@suse.cz>
210         * c-common.c (parse_optimize_options): Combine optimize
211         options with what was provided on the command line.
213 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
215         * c-omp.c (c_omp_split_clauses): Also copy
216         OMP_CLAUSE_ORDER_REPRODUCIBLE.
218 2021-09-27  Martin Liska  <mliska@suse.cz>
220         * c-opts.c (c_common_init_options_struct): Set also
221           x_flag_default_complex_method.
223 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
225         * c-omp.c (c_omp_split_clauses): Copy over OMP_CLAUSE_ALLOCATE_ALIGN.
227 2021-09-20  Matthias Kretz  <m.kretz@gsi.de>
229         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define or
230         undefine __RECIPROCAL_MATH__, __NO_SIGNED_ZEROS__,
231         __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__, and
232         __ROUNDING_MATH__ according to the new optimization flags.
234 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
236         * c-omp.c (c_omp_split_clauses): Split order clause also to
237         distribute construct.  Copy over OMP_CLAUSE_ORDER_UNCONSTRAINED.
239 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
241         * c-omp.c (c_finish_omp_atomic): Avoid creating
242         TARGET_EXPR if test is true, use create_tmp_var_raw instead of
243         create_tmp_var and add a zero initializer to TARGET_EXPRs that
244         had NULL initializer.  When omitting operands after v = x,
245         use type of v rather than type of x.  Fix type of vtmp
246         TARGET_EXPR.
248 2021-09-13  Jason Merrill  <jason@redhat.com>
250         * c.opt: Add -Winterference-size.
251         * c-cppbuiltin.c (cpp_atomic_builtins): Add __GCC_DESTRUCTIVE_SIZE
252         and __GCC_CONSTRUCTIVE_SIZE.
254 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
256         * c-common.h (c_finish_omp_atomic): Add r and weak arguments.
257         * c-omp.c: Include gimple-fold.h.
258         (c_finish_omp_atomic): Add r and weak arguments.  Add support for
259         OpenMP 5.1 atomics.
261 2021-09-09  qing zhao  <qing.zhao@oracle.com>
263         * c-attribs.c (handle_uninitialized_attribute): New function.
264         (c_common_attribute_table): Add "uninitialized" attribute.
266 2021-09-08  liuhongt  <hongtao.liu@intel.com>
268         * c-common.c (excess_precision_mode_join): Update below comments.
269         (c_ts18661_flt_eval_method): Set excess_precision_type to
270         EXCESS_PRECISION_TYPE_FLOAT16 when -fexcess-precision=16.
271         * c-cppbuiltin.c (cpp_atomic_builtins): Update below comments.
272         (c_cpp_flt_eval_method_iec_559): Set excess_precision_type to
273         EXCESS_PRECISION_TYPE_FLOAT16 when -fexcess-precision=16.
275 2021-09-07  Marcel Vollweiler  <marcel@codesourcery.com>
277         * c-omp.c (c_finish_omp_flush): Handle MEMMODEL_SEQ_CST.
279 2021-09-03  Eric Botcazou  <ebotcazou@adacore.com>
281         * c-ada-spec.c (dump_ads): Generate pragmas to disable style checks
282         and -gnatwu warning for the package specification.
284 2021-09-01  Iain Sandoe  <iain@sandoe.co.uk>
286         * c-attribs.c (handle_unavailable_attribute): New.
288 2021-08-30  Jason Merrill  <jason@redhat.com>
290         * c.opt: Add -Wmissing-requires.
292 2021-08-25  Lewis Hyatt  <lhyatt@gmail.com>
294         PR other/93067
295         * c-opts.c (c_common_input_charset_cb): New function.
296         (c_common_post_options): Call new function
297         diagnostic_initialize_input_context().
299 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
301         * c-format.c (gcc_gfc_length_specs): Add 'll' and 'w'.
302         (gcc_gfc_char_table): Add T9L_LL and T9L_ULL to
303         "di" and "u", respecitively; fill with BADLEN to match
304         size of 'types'.
305         (get_init_dynamic_hwi): Split off from ...
306         (init_dynamic_diag_info): ... here. Call it.
307         (init_dynamic_gfc_info): Call it.
309 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
311         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ERROR.
312         * c-pragma.c (omp_pragmas): Add error directive.
313         * c-omp.c (omp_directives): Uncomment error directive entry.
315 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
317         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_NOTHING.
318         * c-pragma.c (omp_pragmas): Add nothing directive.
319         * c-omp.c (omp_directives): Uncomment nothing directive entry.
321 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
323         PR c++/101539
324         * c-common.h (enum rid): Add RID_IS_LAYOUT_COMPATIBLE.
325         * c-common.c (c_common_reswords): Add __is_layout_compatible.
327 2021-08-17  Matt Jacobson  <mhjacobson@me.com>
329         * c-opts.c (c_common_post_options): Default to
330         flag_objc_sjlj_exceptions = 1 only when flag_objc_abi < 2.
332 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
334         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCOPE.
335         * c-pragma.c (omp_pragmas): Add scope construct.
336         * c-omp.c (omp_directives): Uncomment scope directive entry.
338 2021-08-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
340         * c-cppbuiltin.c (c_cpp_builtins): Define
341         __LIBGCC_GCOV_TYPE_SIZE if flag_building_libgcc is true.
343 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
345         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_MASKED.
346         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FILTER.
347         * c-pragma.c (omp_pragmas_simd): Add masked construct.
348         * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_MASKED
349         enumerator.
350         (c_finish_omp_masked): Declare.
351         * c-omp.c (c_finish_omp_masked): New function.
352         (c_omp_split_clauses): Handle combined masked constructs.
354 2021-07-30  Jakub Jelinek  <jakub@redhat.com>
356         PR c++/101539
357         * c-common.h (enum rid): Add RID_IS_POINTER_INTERCONVERTIBLE_BASE_OF.
358         * c-common.c (c_common_reswords): Add
359         __is_pointer_interconvertible_base_of.
361 2021-07-29  Richard Biener  <rguenther@suse.de>
363         PR c/101512
364         * c-common.c (c_common_mark_addressable_vec): Look through
365         C_MAYBE_CONST_EXPR even if not at the toplevel.
367 2021-07-27  Martin Sebor  <msebor@redhat.com>
369         PR c/101585
370         * c-warn.c (warn_parm_ptrarray_mismatch): Use OEP_DECL_NAME.
372 2021-07-23  Jakub Jelinek  <jakub@redhat.com>
374         * c-lex.c (c_common_has_attribute): Call canonicalize_attr_name also
375         on attr_id.  Return 1 for omp::directive or omp::sequence in C++11
376         and later.
378 2021-07-23  Jakub Jelinek  <jakub@redhat.com>
380         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP__START_ and
381         PRAGMA_OMP__LAST_ enumerators.
383 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
384             Joseph Myers  <joseph@codesourcery.com>
385             Cesar Philippidis  <cesar@codesourcery.com>
387         * c-pragma.h (pragma_omp_clause): Add 'PRAGMA_OACC_CLAUSE_NOHOST'.
389 2021-07-20  Martin Sebor  <msebor@redhat.com>
391         * c-common.c (c_build_shufflevector): Adjust by-value argument to
392         by-const-reference.
393         * c-common.h (c_build_shufflevector): Same.
395 2021-07-16  Andrew Pinski  <apinski@marvell.com>
397         PR c/101453
398         * c-common.c (parse_optimize_options): Use the correct
399         size for buffer.
401 2021-07-15  Martin Sebor  <msebor@redhat.com>
403         PR c/101289
404         PR c/97548
405         * c-warn.c (warn_parm_array_mismatch): Use OEP_DECL_NAME.
407 2021-07-14  Jason Merrill  <jason@redhat.com>
409         * c-opts.c (c_common_post_options): Set -fdelete-dead-exceptions.
411 2021-07-06  Martin Sebor  <msebor@redhat.com>
413         * c-format.c (gcc_tdiag_char_table): Remove support for %G and %K.
414          (gcc_cdiag_char_table): Same.
415          (gcc_cxxdiag_char_table): Same.
417 2021-07-02  Jakub Jelinek  <jakub@redhat.com>
419         * c-common.h (enum c_omp_directive_kind): New enum.
420         (struct c_omp_directive): New type.
421         (c_omp_categorize_directive): Declare.
422         * c-omp.c (omp_directives): New variable.
423         (c_omp_categorize_directive): New function.
425 2021-07-01  Eric Botcazou  <ebotcazou@adacore.com>
427         * c-ada-spec.c (packed_layout): New global variable.
428         (dump_ada_declaration): Set it upon seeing a packed record type.
429         Do not put the "aliased" keyword if it is set.
430         (dump_ada_structure): Add Pack aspect if it is set and clear it.
432 2021-07-01  Eric Botcazou  <ebotcazou@adacore.com>
434         * c-ada-spec.c (check_name): Rename into...
435         (check_type_name_conflict): ...this.  Minor tweak.
436         (dump_ada_function_declaration): Adjust to above renaming.
437         (dump_ada_array_domains): Fix oversight.
438         (dump_ada_declaration): Call check_type_name_conflict for variables.
440 2021-06-25  Martin Sebor  <msebor@redhat.com>
442         * c-common.c (c_wrap_maybe_const): Remove TREE_NO_WARNING.
443         (c_common_truthvalue_conversion): Replace direct uses of
444         TREE_NO_WARNING with warning_suppressed_p, suppress_warning, and
445         copy_no_warning.
446         (check_function_arguments_recurse): Same.
447         * c-gimplify.c (c_gimplify_expr): Same.
448         * c-warn.c (overflow_warning): Same.
449         (warn_logical_operator): Same.
450         (warn_if_unused_value): Same.
451         (do_warn_unused_parameter): Same.
453 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
455         * c-common.h (enum c_omp_region_type): Add C_ORT_TARGET and
456         C_ORT_OMP_TARGET.
457         * c-omp.c (c_omp_split_clauses): For OMP_CLAUSE_IN_REDUCTION on
458         combined target constructs also add map (always, tofrom:) clause.
460 2021-06-15  Robin Dapp  <rdapp@linux.ibm.com>
462         * c-attribs.c (common_handle_aligned_attribute): Remove short
463         circuit and dead code.
465 2021-06-14  Jonathan Wakely  <jwakely@redhat.com>
467         PR c++/101052
468         * known-headers.cc (get_stdlib_header_for_name): Add known
469         headers for EXIT_FAILURE, EXIT_SUCCESS, abort, atexit, calloc,
470         exit, and getenv.
472 2021-06-12  Jason Merrill  <jason@redhat.com>
474         * c-attribs.c (handle_unused_attribute): Handle FIELD_DECL.
476 2021-06-11  Jakub Jelinek  <jakub@redhat.com>
478         PR c++/100974
479         * c-cppbuiltin.c (c_cpp_builtins): Predefine __cpp_if_consteval for
480         -std=c++2b for P1938R3 consteval if support.
482 2021-06-09  Jason Merrill  <jason@redhat.com>
484         PR c++/100879
485         * c-warn.c (warn_for_sign_compare): Remove C++ enum mismatch
486         warning.
488 2021-06-07  Martin Liska  <mliska@suse.cz>
490         * c-target.def: Split long lines and replace them
491         with '\n\'.
493 2021-06-04  Martin Sebor  <msebor@redhat.com>
495         PR c/100783
496         * c-attribs.c (positional_argument): Bail on erroneous types.
498 2021-06-04  Martin Sebor  <msebor@redhat.com>
500         * c-warn.c (warn_parm_array_mismatch): Check TREE_PURPOSE to test
501         for element presence.
503 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
505         * c-ada-spec.c (dump_ada_macros): Minor tweaks.
506         (dump_ada_decl_name): Likewise.
507         (dump_anonymous_type_name): Remove parent parameter and adjust.
508         (dump_sloc): Minor tweak.
509         (dump_ada_array_type): Remove type parameter and adjust.
510         (dump_ada_enum_type): Remove parent parameter and adjust.
511         (dump_ada_node): Adjust calls to above functions.
512         (dumped_anonymous_types): New global variable.
513         (dump_nested_types_1): Rename into...
514         (dump_nested_types): ...this.
515         (dump_nested_type): Remove parent and dumped_types parameters.
516         <ARRAY_TYPE>: Replace dumped_types with dumped_anonymous_types.
517         Adjust calls to dump_anonymous_type_name and dump_ada_array_type.
518         (dump_ada_specs): Initialize and free dumped_anonymous_types.
520 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
522         * c-ada-spec.c (pp_ada_tree_identifier): Tidy up.
523         (dump_ada_node) <POINTER_TYPE>: Deal specially with external subtypes.
525 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
527         * c-ada-spec.c (dump_ada_enum_type): Dump a prefix for constants.
528         (htable_t): New typedef.
529         (overloaded_names): Use it.
530         (add_name): New function.
531         (init_overloaded_names): Use add_name to populate the table and add
532         special cases for sigaction and stat.
533         (overloaded_name_p): Rename into...
534         (overloading_index): ...this.  Do not initialize overloaded_names table
535         here.  Return the index or zero.
536         (dump_ada_declaration): Minor tweaks.  Do not skip overloaded functions
537         but add an overloading suffix instead.
538         (dump_ada_specs): Initialize overloaded_names tables here.
540 2021-06-01  Martin Liska  <mliska@suse.cz>
542         PR other/100759
543         * c-attribs.c (handle_optimize_attribute): Limit sanity check
544         to a situation where we are not in processing of an optimize
545         pragma.
546         * c-pragma.c (handle_pragma_pop_options): Restore target
547         options.
549 2021-05-31  Indu Bhagat  <indu.bhagat@oracle.com>
551         PR testsuite/100749
552         * c-pch.c (c_common_valid_pch): Use xstrdup for debug format set names.
554 2021-05-31  Richard Biener  <rguenther@suse.de>
556         PR c++/88601
557         * c-common.c: Include tree-vector-builder.h and
558         vec-perm-indices.h.
559         (c_common_reswords): Add __builtin_shufflevector.
560         (c_build_shufflevector): New funtion.
561         * c-common.h (enum rid): Add RID_BUILTIN_SHUFFLEVECTOR.
562         (c_build_shufflevector): Declare.
564 2021-05-28  Jakub Jelinek  <jakub@redhat.com>
566         PR middle-end/99928
567         * c-omp.c (c_omp_split_clauses): For reduction clause if combined with
568         target add a map tofrom clause with OMP_CLAUSE_MAP_IMPLICIT.
570 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
572         * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_AFFINITY.
574 2021-05-25  Martin Liska  <mliska@suse.cz>
576         PR tree-optimization/92860
577         PR target/99592
578         * c-attribs.c (handle_optimize_attribute): Save target node
579         before calling parse_optimize_options and save it in case
580         it changes.
581         * c-pragma.c (handle_pragma_target): Similarly for pragma.
582         (handle_pragma_pop_options): Likewise here.
584 2021-05-25  Martin Liska  <mliska@suse.cz>
586         * c-attribs.c (handle_no_sanitize_coverage_attribute): New.
588 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
590         PR middle-end/99928
591         * c-omp.c (c_omp_split_clauses): Copy reduction to teams when teams is
592         combined with simd and not with taskloop or for.
594 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
596         PR middle-end/99928
597         * c-omp.c (c_omp_split_clauses): Set OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT
598         on firstprivate clause copy going to target construct, and for
599         target simd set also OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET bit.
601 2021-05-20  Jonathan Wakely  <jwakely@redhat.com>
603         * c.opt (Wc++11-extensions, Wc++14-extensions)
604         (Wc++17-extensions, Wc++20-extensions, Wc++23-extensions): New
605         options.
607 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
609         * c-lex.c (init_c_lex): Use dwarf_debuginfo_p.
611 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
613         * c-opts.c (c_common_post_options): Adjust access to debug_type_names.
614         * c-pch.c (struct c_pch_validity): Use type uint32_t.
615         (pch_init): Renamed member.
616         (c_common_valid_pch): Adjust access to debug_type_names.
618 2021-05-19  Martin Sebor  <msebor@redhat.com>
620         PR c/100619
621         * c-attribs.c (build_attr_access_from_parms): Handle arbitrarily many
622         bounds.
624 2021-05-18  Richard Biener  <rguenther@suse.de>
626         PR c/100547
627         * c-attribs.c (type_valid_for_vector_size): Reject too large nunits.
628         Reword existing nunit diagnostic.
630 2021-05-17  Joern Rennecke  <joern.rennecke@embecosm.com>
632         * c-common.c (braced_list_to_string): Return CTOR unchanged
633         if host and target character sizes don't match.
635 2021-05-14  Martin Liska  <mliska@suse.cz>
637         * c.opt: Add Warning keyword for 2 options.
639 2021-05-13  Martin Liska  <mliska@suse.cz>
641         PR middle-end/100504
642         * c-attribs.c (handle_target_clones_attribute): Expect a string
643         argument to target_clone argument.
645 2021-05-11  Joseph Myers  <joseph@codesourcery.com>
647         * c-lex.c (interpret_float): Handle digit separators for C2X.
649 2021-05-10  Martin Liska  <mliska@suse.cz>
651         * c-ada-spec.c (print_destructor): Use startswith
652         function instead of strncmp.
653         (dump_ada_declaration): Likewise.
654         * c-common.c (disable_builtin_function): Likewise.
655         (def_builtin_1): Likewise.
656         * c-format.c (check_tokens): Likewise.
657         (check_plain): Likewise.
658         (convert_format_name_to_system_name): Likewise.
660 2021-04-28  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
662         * c-cppbuiltin.c (c_cpp_builtins): Add supporting macros for new
663         complex divide
665 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
666             Nathan Sidwell  <nathan@codesourcery.com>
667             Tom de Vries  <vries@codesourcery.com>
668             Julian Brown  <julian@codesourcery.com>
669             Kwok Cheung Yeung  <kcy@codesourcery.com>
671         * c.opt (Wopenacc-parallelism): New.
673 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
675         * c.opt (fopenacc-kernels=): Remove.
677 2021-04-08  Jakub Jelinek  <jakub@redhat.com>
679         * c-warn.c (do_warn_double_promotion): Fix comment typo,
680         occured -> occurred.
681         (check_alignment_of_packed_member): Fix a comment typo,
682         memeber -> member.
683         (warn_parm_ptrarray_mismatch): Fix comment typos, os -> of
684         and onless -> unless.
685         (warn_parm_array_mismatch): Fix comment typos, declaratation
686         -> declaration and woud -> would.  Fix up comment indentation.
688 2021-04-08  Martin Sebor  <msebor@redhat.com>
690         PR middle-end/99883
691         * c.opt (Wmismatched-new-delete): Correct spelling.
693 2021-04-05  Eric Botcazou  <ebotcazou@adacore.com>
695         * c-ada-spec.c (is_simple_enum): Minor tweaks.
696         (dump_ada_enum_type): Add TYPE and PARENT parameters.  For non-simple
697         enumeral types use again the type name for the enumeration constants.
698         (dump_ada_node): Adjust call to dump_ada_enum_type.
699         (dump_nested_type): Likewise.
701 2021-04-01  Jason Merrill  <jason@redhat.com>
703         PR c++/98481
704         * c-opts.c (c_common_post_options): Bump latest_abi_version.
706 2021-03-25  Jakub Jelinek  <jakub@redhat.com>
708         PR c++/99565
709         * c-warn.c (do_warn_duplicated_branches): Pass also
710         OEP_ADDRESS_OF_SAME_FIELD to operand_equal_p.
712 2021-03-20  Jakub Jelinek  <jakub@redhat.com>
714         PR debug/99230
715         * c-gimplify.c (c_genericize_control_stmt): Handle STATEMENT_LIST.
717 2021-03-05  Eric Botcazou  <ebotcazou@adacore.com>
719         * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Dump nested types
720         after entering the separate class package, if any.
722 2021-03-04  Richard Biener  <rguenther@suse.de>
724         * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator):
725         Handle ERROR_MARK.
727 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
729         PR c/99325
730         * c-ppoutput.c (print): Change src_line type from int to unsigned.
731         (token_streamer::stream) Likewise.
732         (maybe_print_line_1): Likewise.  Don't strcmp src_file if src_loc is
733         UNKNOWN_LOCATION.
735 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
737         PR c/99324
738         * c-common.c (build_va_arg): Call c_common_mark_addressable_vec
739         instead of mark_addressable.  Fix a comment typo -
740         neutrallly -> neutrally.
742 2021-02-28  Jakub Jelinek  <jakub@redhat.com>
744         PR c/99304
745         * c-attribs.c (handle_malloc_attribute): Fix a typo in inform
746         message - refernced -> referenced.  Remove superfluous space before
747         closing paren of function calls.
749 2021-02-25  Nathan Sidwell  <nathan@acm.org>
751         PR c++/99166
752         * c.opt (-flang-info-module-cmi): Renamed option.
754 2021-02-19  Nathan Sidwell  <nathan@acm.org>
756         * c.opt (flang-info-module-read, flang-info-module-read=): New.
758 2021-02-18  H.J. Lu  <hjl.tools@gmail.com>
760         PR target/99113
761         * c-attribs.c (c_common_attribute_table): Add the "retain"
762         attribute.
763         (handle_retain_attribute): New function.
765 2021-02-16  Marek Polacek  <polacek@redhat.com>
767         PR c++/99062
768         * c-attribs.c (handle_assume_aligned_attribute): Check that the
769         alignment argument is non-negative.  Tweak a warning message.
771 2021-02-12  Martin Sebor  <msebor@redhat.com>
773         PR c/99055
774         * c-warn.c (warn_parm_array_mismatch): Free strings returned from
775         print_generic_expr_to_str.
777 2021-02-10  Richard Biener  <rguenther@suse.de>
779         * c-common.c (parse_optimize_options): Free decoded_options.
781 2021-02-04  emsr  <3dw4rd@verizon.net>
783         * c-cppbuiltin.c (c_cpp_builtins): __cpp_size_t_suffix=202011L.
785 2021-02-03  Ed Smith-Rowland  <3dw4rd@verizon.net>
787         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_size_t_suffix.
788         * c-lex.c (interpret_integer): Set node type for size literal.
790 2021-01-28  Jakub Jelinek  <jakub@redhat.com>
792         * c.opt (-std=c++2a, -std=c++20, -std=gnu++2a, -std=gnu++20): Remove
793         draft from description.
794         (-std=c++2b): Fix a pasto, 2020 -> 2023.
796 2021-01-26  Paul Fee  <paul.f.fee@gmail.com>
798         * c-common.h (cxx_dialect): Add cxx23 as a dialect.
799         * c.opt: Add options for -std=c++23, std=c++2b, -std=gnu++23
800         and -std=gnu++2b
801         * c-opts.c (set_std_cxx23): New.
802         (c_common_handle_option): Set options when -std=c++23 is enabled.
803         (c_common_post_options): Adjust comments.
804         (set_std_cxx20): Likewise.
806 2021-01-25  Martin Sebor  <msebor@redhat.com>
808         PR c++/98646
809         * c-common.c (check_nonnull_arg): Adjust warning text.
811 2021-01-17  Martin Sebor  <msebor@redhat.com>
813         * c-pretty-print.c (c_pretty_printer::primary_expression): Don't
814         assume SSA_NAME_IDENTIFIER evaluates to nonzero.
816 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
818         * c-pragma.h (pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_DETACH.
819         Redefine PRAGMA_OACC_CLAUSE_DETACH.
821 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
823         PR tree-optimization/98597
824         * c-pretty-print.c: Include options.h.
825         (c_fold_indirect_ref_for_warn): New function.
826         (print_mem_ref): Use it.  If it returns something that has compatible
827         type and is TBAA compatible with zero offset, print it and return,
828         otherwise print it using offsetof syntax or array ref syntax.  Fix up
829         printing if MEM_REFs first operand is ADDR_EXPR, or when the first
830         argument has pointer to array type.  Print pointers using the standard
831         formatting.
833 2021-01-12  Martin Sebor  <msebor@redhat.com>
835         PR c/98597
836         PR c/98592
837         * c-pretty-print.c (print_mem_ref): Avoid assuming MEM_REF operand
838         has pointer type.  Remove redundant code.  Avoid calling
839         gimple_canonical_types_compatible_p.
841 2021-01-07  Martin Sebor  <msebor@redhat.com>
843         PR middle-end/98578
844         * c-pretty-print.c (print_mem_ref): Strip array from access type.
845         Avoid assuming acces type's size is constant.  Correct condition
846         guarding the printing of a parenthesis.
848 2021-01-06  Martin Sebor  <msebor@redhat.com>
850         PR c++/95768
851         * c-pretty-print.c (c_pretty_printer::primary_expression): For
852         SSA_NAMEs print VLA names and GIMPLE defining statements.
853         (print_mem_ref): New function.
854         (c_pretty_printer::unary_expression): Call it.
856 2021-01-06  Richard Biener  <rguenther@suse.de>
858         PR tree-optimization/95582
859         * c-attribs.c (c_common_attribute_table): Add entry for
860         signed_bool_precision.
861         (handle_signed_bool_precision_attribute): New.
863 2020-12-24  Iain Sandoe  <iain@sandoe.co.uk>
865         * c.opt: Add -stdlib= option and enumerations for
866         libstdc++ and libc++.
868 2020-12-16  Martin Liska  <mliska@suse.cz>
870         * c.opt: Remove usage of Report.
872 2020-12-14  Martin Sebor  <msebor@redhat.com>
874         PR middle-end/98166
875         PR c++/57111
876         PR middle-end/98160
877         * c-attribs.c (maybe_add_noinline): New function.
878         (handle_malloc_attribute): Call it.  Use ATTR_FLAG_INTERNAL.
879         Implicitly add attribute noinline to functions not declared inline
880         and warn on those.
882 2020-12-09  Tobias Burnus  <tobias@codesourcery.com>
884         * c-pragma.c (omp_pragmas): Add 'allocate'.
885         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ALLOCATE.
887 2020-12-08  Jakub Jelinek  <jakub@redhat.com>
889         PR c++/98187
890         * c-pragma.c (omp_pragmas): Remove "master".
891         (omp_pragmas_simd): Add "master".
893 2020-12-07  Marek Polacek  <polacek@redhat.com>
895         PR c++/98126
896         * c-common.c (verify_tree_lim_r): New function.
897         (verify_sequence_points): Use it.  Use nullptr instead of 0.
899 2020-12-03  Martin Sebor  <msebor@redhat.com>
901         PR c++/90629
902         PR middle-end/94527
903         * c-attribs.c (handle_dealloc_attribute): New function.
904         (handle_malloc_attribute): Handle argument forms of attribute.
905         * c.opt (-Wmismatched-dealloc): New option.
906         (-Wmismatched-new-delete): New option.
908 2020-12-03  Jakub Jelinek  <jakub@redhat.com>
910         PR libstdc++/93121
911         * c-common.h (enum rid): Add RID_BUILTIN_BIT_CAST.
912         * c-common.c (c_common_reswords): Add __builtin_bit_cast.
914 2020-12-01  JeanHeyd Meneide  <phdofthehouse@gmail.com>
916         * c-cppbuiltin.c (c_cpp_builtins): Add predefined
917         {__GNUC_EXECUTION_CHARSET_NAME} and
918         _WIDE_EXECUTION_CHARSET_NAME} macros.
920 2020-12-01  Nathan Sidwell  <nathan@acm.org>
922         * c-common.c (module, import, export): New internal tokens (with
923         trailing space).
924         * c-common.h (RID__MODULE, RID__IMPORT & RID__EXPORT): Enumerate
925         them.
926         (D_CXX_MODULES, D_CXX_MODULES_FLAGS): Enable them.
927         * c-cppbuiltin.c (c_cpp_builtins): Feature macro.
929 2020-12-01  Nathan Sidwell  <nathan@acm.org>
931         * c-opts.c (c_common_init_options): Ask for module dependencies.
932         (c_common_handle_option): Handle -Mmodules -Mno-modules.
933         * c-pch.c (c_common_valid_pch): ... does not play with C++
934         modules.
935         * c.opt (Mmodules, Mno-modules): New preprocessor dependency
936         options.
937         (fmodules-ts, fmodule-header, fmodule-implicit-inline)
938         (fmodule-only, fmodule-mapper, fmodule-lazy)
939         (fmodule-version-ignore, Winvalid-imported-macros)
940         (flang-info-include-translate, flang-info-include-translate-not):
941         New options
943 2020-11-28  Eric Botcazou  <ebotcazou@adacore.com>
945         * c-ada-spec.c (dump_nested_type) <RECORD_TYPE>: Remove obsolete code.
946         (dump_ada_structure): Also deal with convention, unchecked union and
947         bit-field for nested types.  In the latter case, print an Alignment
948         aspect along with the Pack aspect.
950 2020-11-25  Martin Sebor  <msebor@redhat.com>
952         PR bootstrap/94982
953         * c-attribs.c (handle_patchable_function_entry_attribute): Avoid
954         -Wformat-diag.
956 2020-11-24  Martin Sebor  <msebor@redhat.com>
958         * c-warn.c (warn_parm_array_mismatch): Avoid invalid redeclarations.
960 2020-11-23  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
962         * c-attribs.c (handle_special_var_sec_attribute): New.
963         (handle_noinit_attribute): Remove.
964         (attr_noinit_exclusions): Rename to...
965         (attr_section_exclusions): ...this, and add "persistent" attribute
966         exclusion.
967         (c_common_attribute_table): Add "persistent" attribute.
969 2020-11-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
971         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
972         Treat opaque types like other types.
973         (c_pretty_printer::direct_abstract_declarator): Opaque types are
974         supported types.
976 2020-11-20  Martin Sebor  <msebor@redhat.com>
978         * c-warn.c (warn_parm_array_mismatch): Bail on invalid redeclarations
979         with fewer arguments.
981 2020-11-20  Martin Sebor  <msebor@redhat.com>
983         PR middle-end/97879
984         * c-attribs.c (handle_access_attribute): Handle ATTR_FLAG_INTERNAL.
985         Error out on invalid modes.
987 2020-11-20  Jakub Jelinek  <jakub@redhat.com>
989         PR libstdc++/88101
990         * c-common.c (check_builtin_function_arguments): Handle
991         BUILT_IN_CLEAR_PADDING.
993 2020-11-18  Nathan Sidwell  <nathan@acm.org>
995         * c-lex.c (c_lex_with_flags): CPP_HEADER_NAMEs can now be seen.
997 2020-11-17  Nathan Sidwell  <nathan@acm.org>
999         * c-common.h (enum c_tree_index): Reorder to place lazy fields
1000         after newly-added CTI_MODULE_HWM.
1002 2020-11-17  Joseph Myers  <joseph@codesourcery.com>
1004         * c-cppbuiltin.c (builtin_define_float_constants): Define
1005         "*_IS_IEC_60559__" macros.
1007 2020-11-17  Nathan Sidwell  <nathan@acm.org>
1009         * c-lex.c: #include "langhooks.h".
1010         (cb_undef): Maybe call preprocess_undef lang hook.
1011         * c-opts.c (c_common_post_options): Maybe call preprocess_options
1012         lang hook.
1013         (push_command_line_include): Maybe call preprocess_main_file lang
1014         hook.
1015         (cb_file_change): Likewise.
1016         * c-ppoutput.c: #include "langhooks.h.
1017         (scan_translation_unit): Maybe call preprocess_token lang hook.
1018         (class do_streamer): New, derive from token_streamer.
1019         (directives_only_cb): Data pointer is do_streamer, call
1020         preprocess_token lang hook.
1021         (scan_translation_unit_directives_only): Use do_streamer.
1022         (print_line_1): Move src_line recording to after string output.
1023         (cb_undef): Maybe call preprocess_undef lang hook.
1025 2020-11-17  Nathan Sidwell  <nathan@acm.org>
1027         * c-ppoutput.c (scan_translation_unit): Use token_streamer, remove
1028         code duplicating that functionality.
1030 2020-11-17  Jakub Jelinek  <jakub@redhat.com>
1032         PR c/90628
1033         * c-common.c (check_builtin_function_arguments)
1034         <case BUILT_IN_ADD_OVERFLOW>: Diagnose when last argument is pointer
1035         to _Atomic.  For the TYPE_READONLY case, adjust message to be usable
1036         for more builtins and argument positions.
1038 2020-11-16  Iain Sandoe  <iain@sandoe.co.uk>
1040         PR objc/97854
1041         * stub-objc.c: Include c-common.h to declare enum rid.
1043 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
1045         PR c++/63287
1046         * c-cppbuiltin.c: Include configargs.h.
1047         (c_cpp_builtins): For C++11 and later if THREAD_MODEL_SPEC is not
1048         defined, predefine __STDCPP_THREADS__ to 1 unless thread_model is
1049         "single".
1051 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
1052             Thomas Schwinge  <thomas@codesourcery.com>
1054         * c.opt (fopenacc-kernels): Add.
1056 2020-11-13  Jason Merrill  <jason@redhat.com>
1058         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_using_enum.
1060 2020-11-13  Piotr H. Dabrowski  <phd@phd.re>
1062         PR c++/91318
1063         * c-cppbuiltin.c: c_cpp_builtins_optimize_pragma(): use cpp_define_unused()
1065 2020-11-13  Martin Liska  <mliska@suse.cz>
1067         * c-attribs.c (build_attr_access_from_parms): Format properly.
1069 2020-11-13  Iain Sandoe  <iain@sandoe.co.uk>
1071         PR objc/90707
1072         * c-common.c (c_common_reswords): null_unspecified, nullable,
1073         nonnull, null_resettable: New keywords.
1074         * c-common.h (enum rid): RID_NULL_UNSPECIFIED, RID_NULLABLE,
1075         RID_NONNULL, RID_NULL_RESETTABLE: New.
1076         (OBJC_IS_PATTR_KEYWORD): Include nullability keywords in the
1077         ranges accepted for property attributes.
1078         * c-attribs.c (handle_objc_nullability_attribute): New.
1079         * c-objc.h (enum objc_property_attribute_group): Add
1080         OBJC_PROPATTR_GROUP_NULLABLE.
1081         (enum objc_property_attribute_kind):Add
1082         OBJC_PROPERTY_ATTR_NULL_UNSPECIFIED, OBJC_PROPERTY_ATTR_NULLABLE,
1083         OBJC_PROPERTY_ATTR_NONNULL, OBJC_PROPERTY_ATTR_NULL_RESETTABLE.
1085 2020-11-13  Iain Sandoe  <iain@sandoe.co.uk>
1087         PR objc/77404
1088         * c-attribs.c (handle_objc_root_class_attribute): New
1089         * c-objc.h (objc_start_class_interface): Add a location
1090         value for the position of the class name.
1091         * c.opt: Add Wobjc-root-class.
1092         * stub-objc.c (objc_start_class_interface): Add a location
1093         value for the position of the class name.
1095 2020-11-12  Joseph Myers  <joseph@codesourcery.com>
1097         * c-lex.c (c_common_has_attribute): Take argument std_syntax.
1098         Allow scope for C.  Handle standard attributes for C.  Do not
1099         accept unscoped attributes if std_syntax and not handled as
1100         standard attributes.
1101         * c-common.h (c_common_has_attribute): Update prototype.
1103 2020-11-12  Nicholas Guriev  <guriev-ns@ya.ru>
1105         PR pch/86674
1106         * c-pch.c (c_common_valid_pch): Use cpp_warning with CPP_W_INVALID_PCH
1107         reason to fix -Werror=invalid-pch and -Wno-error=invalid-pch switches.
1109 2020-11-11  Patrick Palka  <ppalka@redhat.com>
1111         PR c++/88115
1112         * c-opts.c (c_common_post_options): Update latest_abi_version.
1114 2020-11-10  Jakub Jelinek  <jakub@redhat.com>
1116         PR c/97748
1117         * c-common.h (warn_if_unused_value): Add quiet argument defaulted
1118         to false.
1119         * c-warn.c (warn_if_unused_value): Likewise.  Pass it down
1120         recursively and just return true instead of warning if it is true.
1121         Handle COMPLEX_EXPR.
1123 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
1125         * c-common.h (c_omp_adjust_map_clauses): New declaration.
1126         * c-omp.c (struct map_clause): Helper type for c_omp_adjust_map_clauses.
1127         (c_omp_adjust_map_clauses): New function.
1129 2020-11-09  Marek Polacek  <polacek@redhat.com>
1131         DR 1914
1132         * c-common.c (attribute_fallthrough_p): Tweak the warning
1133         message.
1135 2020-11-09  Patrick Palka  <ppalka@redhat.com>
1137         * c-pragma.c (handle_pragma_diagnostic): Split the
1138         unknown-option -Wpragmas diagnostic into a warning and a
1139         subsequent note containing a spelling suggestion.  Avoid
1140         computing the suggestion if -Wpragmas warnings are being
1141         suppressed.
1143 2020-11-09  Patrick Palka  <ppalka@redhat.com>
1145         PR testsuite/97117
1146         * c-indentation.c (get_visual_column): Remove location_t
1147         parameter.  Move the column-tracking diagnostic code from here
1148         to ...
1149         (should_warn_for_misleading_indentation): ... here, before the
1150         early exit for when the loci are not all distinct.  Don't pass a
1151         location_t argument to get_visual_column.
1152         (assert_get_visual_column_succeeds): Don't pass a location_t
1153         argument to get_visual_column.
1154         (assert_get_visual_column_fails): Likewise.
1156 2020-11-08  Iain Sandoe  <iain@sandoe.co.uk>
1158         * c-common.h (OBJC_IS_PATTR_KEYWORD): Add class to the list
1159         of keywords accepted in @property attribute contexts.
1160         * c-objc.h (enum objc_property_attribute_group): Add
1161         OBJC_PROPATTR_GROUP_CLASS.
1162         (enum objc_property_attribute_kind): Add
1163         OBJC_PROPERTY_ATTR_CLASS.
1165 2020-11-07  Iain Sandoe  <iain@sandoe.co.uk>
1167         * c-common.c (c_common_reswords): Add 'atomic' property
1168         attribute.
1169         * c-common.h (enum rid): Add RID_PROPATOMIC for atomic
1170         property attributes.
1172 2020-11-07  Iain Sandoe  <iain@sandoe.co.uk>
1174         * c-attribs.c (handle_nsobject_attribute): New.
1175         * c.opt: Add WNSObject-attribute.
1177 2020-11-06  Iain Sandoe  <iain@sandoe.co.uk>
1179         * c-objc.h (enum objc_property_attribute_group): New
1180         (enum objc_property_attribute_kind): New.
1181         (OBJC_PROPATTR_GROUP_MASK): New.
1182         (struct property_attribute_info): Small class encapsulating
1183         parser output from property attributes.
1184         (objc_prop_attr_kind_for_rid): New
1185         (objc_add_property_declaration): Simplify interface.
1186         * stub-objc.c (enum rid): Dummy type.
1187         (objc_add_property_declaration): Simplify interface.
1188         (objc_prop_attr_kind_for_rid): New.
1190 2020-11-06  Nathan Sidwell  <nathan@acm.org>
1192         * c-ada-spec.c (collect_ada_nodes): Rename
1193         DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
1194         (collect_ada_node): Likewise.
1195         (dump_forward_type): Likewise.
1196         * c-common.c (set_underlying_type): Rename
1197         DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
1198         (user_facing_original_type, c_common_finalize_early_debug): Likewise.
1200 2020-11-06  Jakub Jelinek  <jakub@redhat.com>
1202         * c-common.c (verify_sequence_points): Remove DEBUG_FUNCTION.
1204 2020-11-05  Marek Polacek  <polacek@redhat.com>
1206         PR c++/97675
1207         * c.opt (Wexceptions): New option.
1209 2020-11-05  Marek Polacek  <polacek@redhat.com>
1211         PR c++/25814
1212         * c.opt (Wvexing-parse): New option.
1214 2020-11-04  Jakub Jelinek  <jakub@redhat.com>
1216         PR c++/97670
1217         * c-omp.c (c_omp_split_clauses): Look through array reductions to find
1218         underlying decl to clear in the allocate_head bitmap.
1220 2020-11-04  Iain Sandoe  <iain@sandoe.co.uk>
1222         * c-objc.h (objc_non_constant_expr_p): New.
1223         * stub-objc.c (objc_non_constant_expr_p): New.
1225 2020-11-03  Nathan Sidwell  <nathan@acm.org>
1227         * c.opt (MQ,MT): Reword description to be make-agnostic.
1229 2020-11-02  Nathan Sidwell  <nathan@acm.org>
1231         * c-opts.c (c_common_post_options): Move var decl to its
1232         initialization point.
1234 2020-11-01  Iain Sandoe  <iain@sandoe.co.uk>
1236         * c-lex.c (c_lex_with_flags): When combining '@' with a
1237         keyword for Objective-C, combine the location ranges too.
1239 2020-10-30  Qing Zhao  <qing.zhao@oracle.com>
1240             H.J.Lu  <hjl.tools@gmail.com>
1242         * c-attribs.c (c_common_attribute_table): Add new attribute
1243         zero_call_used_regs.
1244         (handle_zero_call_used_regs_attribute): New function.
1246 2020-10-28  Marek Polacek  <polacek@redhat.com>
1248         PR c++/97573
1249         * c-opts.c (c_common_post_options): In C++20, turn on
1250         -Wdeprecated-enum-enum-conversion and
1251         -Wdeprecated-enum-float-conversion.
1252         * c.opt (Wdeprecated-enum-enum-conversion,
1253         Wdeprecated-enum-float-conversion): New options.
1254         (Wenum-conversion): Allow for C++ too.
1256 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
1258         * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALLOCATE.
1259         * c-omp.c: Include bitmap.h.
1260         (c_omp_split_clauses): Handle OMP_CLAUSE_ALLOCATE.
1262 2020-10-26  Ville Voutilainen  <ville.voutilainen@gmail.com>
1264         * c-common.c (__is_nothrow_assignable): New.
1265         (__is_nothrow_constructible): Likewise.
1266         * c-common.h (RID_IS_NOTHROW_ASSIGNABLE): New.
1267         (RID_IS_NOTHROW_CONSTRUCTIBLE): Likewise.
1269 2020-10-23  Jan Hubicka  <hubicka@ucw.cz>
1271         * c-common.c (c_common_finalize_early_debug): Update for new thunk api.
1273 2020-10-23  Marek Polacek  <polacek@redhat.com>
1275         PR c++/91741
1276         * c-common.c (verify_tree): Handle PAREN_SIZEOF_EXPR.
1277         (c_common_init_ts): Likewise.
1278         * c-common.def (PAREN_SIZEOF_EXPR): New tree code.
1279         * c-common.h (maybe_warn_sizeof_array_div): Declare.
1280         * c-warn.c (sizeof_pointer_memaccess_warning): Unwrap NOP_EXPRs.
1281         (maybe_warn_sizeof_array_div): New function.
1282         * c.opt (Wsizeof-array-div): New option.
1284 2020-10-23  Martin Sebor  <msebor@redhat.com>
1286         PR c/97463
1287         * c-warn.c (warn_parm_ptrarray_mismatch): Move null test earlier.
1289 2020-10-22  Martin Liska  <mliska@suse.cz>
1291         PR c/94722
1292         * c-attribs.c (handle_no_stack_protect_function_attribute): New.
1293         (handle_stack_protect_attribute): Add error message for a
1294         no_stack_protector function.
1296 2020-10-22  Martin Liska  <mliska@suse.cz>
1298         * c-cppbuiltin.c (c_cpp_builtins): Use the stack_protector enum.
1300 2020-10-22  Jan Hubicka  <hubicka@ucw.cz>
1302         * c-gimplify.c: Include tree-nested.h
1303         (c_genericize): Update for new nested function info.
1305 2020-10-14  Martin Sebor  <msebor@redhat.com>
1307         PR c/97413
1308         * c-attribs.c (build_attr_access_from_parms): Wrap chain of VLA
1309         bounds in an extra list.
1311 2020-10-05  Richard Biener  <rguenther@suse.de>
1312             Jakub Jelinek  <jakub@redhat.com>
1314         PR c++/97197
1315         * c-pretty-print.c: Include langhooks.h.
1316         (c_pretty_printer::postfix_expression): Handle TARGET_MEM_REF as
1317         expression.
1318         (c_pretty_printer::expression): Handle TARGET_MEM_REF as
1319         unary_expression.
1320         (c_pretty_printer::unary_expression): Handle TARGET_MEM_REF.
1322 2020-09-30  Martin Sebor  <msebor@redhat.com>
1324         PR middle-end/97189
1325         * c-attribs.c (append_access_attr): Use the function declaration
1326         location for a warning about an attribute access argument.
1328 2020-09-29  Marek Polacek  <polacek@redhat.com>
1330         PR c++/94695
1331         * c.opt (Wrange-loop-construct): New option.
1333 2020-09-23  Martin Sebor  <msebor@redhat.com>
1335         PR c/97131
1336         * c-warn.c (warn_parm_ptrarray_mismatch): Handle more invalid input.
1338 2020-09-23  Marek Polacek  <polacek@redhat.com>
1340         PR c/97125
1341         * c-gimplify.c (c_genericize): Only call do_warn_duplicated_branches_r
1342         after loops and other structured control constructs have been lowered.
1344 2020-09-22  Jakub Jelinek  <jakub@redhat.com>
1346         * c.opt (Wbuiltin-declaration-mismatch): Fix typo in variable name:
1347         warn_builtin_declaraion_mismatch -> warn_builtin_declaration_mismatch.
1349 2020-09-21  Marek Polacek  <polacek@redhat.com>
1351         * c.opt (Wctad-maybe-unsupported): New option.
1353 2020-09-19  Martin Sebor  <msebor@redhat.com>
1355         PR c/50584
1356         * c-common.h (warn_parm_array_mismatch): Declare new function.
1357         (has_attribute): Move declaration of an existing function.
1358         (build_attr_access_from_parms): Declare new function.
1359         * c-warn.c (parm_array_as_string): Define new function.
1360         (plus_one):  Define new function.
1361         (warn_parm_ptrarray_mismatch): Define new function.
1362         (warn_parm_array_mismatch):  Define new function.
1363         (vla_bound_parm_decl): New function.
1364         * c.opt (-Warray-parameter, -Wvla-parameter): New options.
1365         * c-pretty-print.c (pp_c_type_qualifier_list): Don't print array type
1366         qualifiers here...
1367         (c_pretty_printer::direct_abstract_declarator): ...but instead print
1368         them in brackets here.  Also print [static].  Strip extraneous
1369         expressions from VLA bounds.
1371 2020-09-19  Martin Sebor  <msebor@redhat.com>
1373         PR c/50584
1374         * c-attribs.c (c_common_attribute_table): Add "arg spec" attribute.
1375         (handle_argspec_attribute): New function.
1376         (get_argument, get_argument_type): New functions.
1377         (append_access_attrs): Add overload.  Handle internal attribute
1378         representation in addition to external.
1379         (handle_access_attribute): Handle internal attribute representation
1380         in addition to external.
1381         (build_attr_access_from_parms): New function.
1383 2020-09-19  Sandra Loosemore  <sandra@codesourcery.com>
1385         * c-gimplify.c (genericize_c_loop): Rewrite to match
1386         c_finish_loop in c-typeck.c.
1388 2020-09-19  Sandra Loosemore  <sandra@codesourcery.com>
1390         * c-common.c (c_block_may_fallthrough): New, split from
1391         cxx_block_may_fallthrough in the cp front end.
1392         (c_common_init_ts): Move handling of loop and switch-related
1393         statements here from the cp front end.
1394         * c-common.def (FOR_STMT, WHILE_STMT, DO_STMT): Move here from
1395         cp front end.
1396         (BREAK_STMT, CONTINUE_STMT, SWITCH_STMT): Likewise.
1397         * c-common.h (c_block_may_fallthru): Declare.
1398         (bc_state_t): Move here from cp front end.
1399         (save_bc_state, restore_bc_state): Declare.
1400         (c_genericize_control_stmt): Declare.
1401         (WHILE_COND, WHILE_BODY): Likewise.
1402         (DO_COND, DO_BODY): Likewise.
1403         (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY, FOR_SCOPE): Likewise.
1404         (SWITCH_STMT_COND, SWITCH_STMT_BODY): Likewise.
1405         (SWITCH_STMT_TYPE, SWITCH_STMT_SCOPE): Likewise.
1406         (SWITCH_STMT_ALL_CASES_P, SWITCH_STMT_NO_BREAK_P): Likewise.
1407         (LABEL_DECL_BREAK, LABEL_DECL_CONTINUE): Likewise.
1408         * c-dump.c (dump_stmt): Copy from cp front end.
1409         (c_dump_tree): Move code to handle structured loop and switch
1410         tree nodes here from cp front end.
1411         * c-gimplify.c: Adjust includes.
1412         (enum bc_t, bc_label, begin_bc_block, finish_bc_block): Move from
1413         cp front end.
1414         (save_bc_state, restore_bc_state): New functions using old code
1415         from cp front end.
1416         (get_bc_label, expr_loc_or_loc): Move from cp front end.
1417         (genericize_c_loop): Move from cp front end.
1418         (genericize_for_stmt, genericize_while_stmt): Likewise.
1419         (genericize_do_stmt, genericize_switch_stmt): Likewise.
1420         (genericize_continue_stmt, genericize_break_stmt): Likewise.
1421         (genericize_omp_for_stmt): Likewise.
1422         (c_genericize_control_stmt): New function using code split from
1423         cp front end.
1424         (c_genericize_control_r): New.
1425         (c_genericize): Call walk_tree with c_genericize_control_r.
1426         * c-pretty-print.c (c_pretty_printer::statement): Move code to handle
1427         structured loop and switch tree nodes here from cp front end.
1429 2020-09-17  Patrick Palka  <ppalka@redhat.com>
1431         PR c/80076
1432         * c-indentation.c (should_warn_for_misleading_indentation): Move
1433         declarations of local variables closer to their first use.
1434         Handle virtual token locations by resolving them to their
1435         respective macro expansion points.  If all three tokens are
1436         produced from the same macro expansion, then instead use their
1437         loci within the macro definition.
1439 2020-09-16  Martin Sebor  <msebor@redhat.com>
1441         PR c/78666
1442         PR c/96126
1443         * c-attribs.c (validate_attr_args): New function.
1444         (validate_attr_arg): Same.
1445         (handle_section_attribute): Call it.  Introduce a local variable.
1446         (handle_alloc_size_attribute):  Same.
1447         (handle_alloc_align_attribute): Same.
1449 2020-09-14  Jakub Jelinek  <jakub@redhat.com>
1451         * c-attribs.c (handle_optimize_attribute): Adjust
1452         cl_optimization_save, cl_optimization_restore and
1453         build_optimization_node callers.
1454         * c-pragma.c (handle_pragma_optimize): Adjust
1455         build_optimization_node caller.
1456         (handle_pragma_push_options): Adjust
1457         build_optimization_node and build_target_option_node callers.
1458         (handle_pragma_pop_options, handle_pragma_reset_options):
1459         Adjust cl_optimization_restore callers.
1461 2020-08-28  Martin Sebor  <msebor@redhat.com>
1463         * c.opt (Wstringop-overread): New option.
1465 2020-08-11  Jakub Jelinek  <jakub@redhat.com>
1467         PR c/96545
1468         * c-common.c (get_atomic_generic_size): Require that first argument's
1469         type points to a complete type and use tree_fits_uhwi_p instead of
1470         just INTEGER_CST TREE_CODE check for the TYPE_SIZE_UNIT.
1472 2020-07-31  Martin Sebor  <msebor@redhat.com>
1474         PR c++/96003
1475         * c-common.c (check_function_arguments_recurse): Return early when
1476         no-warning bit is set.
1478 2020-07-31  Richard Biener  <rguenther@suse.de>
1480         PR debug/96383
1481         * c-common.h (c_common_finalize_early_debug): Declare.
1482         * c-common.c: Include debug.h.
1483         (c_common_finalize_early_debug): finalize_early_debug langhook
1484         implementation generating debug for extern declarations.
1486 2020-07-27  Nathan Sidwell  <nathan@acm.org>
1488         * c-common.c (try_to_locate_new_include_insertion_point): Use
1489         strcmp, not pointer equality.
1491 2020-07-25  Martin Sebor  <msebor@redhat.com>
1493         PR c++/96310
1494         * c-common.c (check_nonnull_arg): Print note only when warning was
1495         issued.
1497 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
1499         * c-omp.c (c_finish_omp_critical): Check for no name but
1500         nonzero hint provided.
1502 2020-07-20  Jason Merrill  <jason@redhat.com>
1504         * c-cppbuiltin.c (c_cpp_builtins): Update
1505         __cpp_nontype_template_args for C++20.
1507 2020-07-20  Martin Sebor  <msebor@redhat.com>
1509         PR c/96249
1510         * c.opt: Remove stray text.
1512 2020-07-14  Lewis Hyatt  <lhyatt@gmail.com>
1514         PR other/86904
1515         * c-indentation.c (should_warn_for_misleading_indentation): Get
1516         global tabstop from the new source.
1517         * c-opts.c (c_common_handle_option): Remove handling of -ftabstop, which
1518         is now a common option.
1519         * c.opt: Likewise.
1521 2020-07-08  Eric Botcazou  <ebotcazou@adacore.com>
1523         * c.opt (Wscalar-storage-order): Add explicit variable.
1525 2020-07-07  Nathan Sidwell  <nathan@acm.org>
1527         * c-opts.c (c_common_post_options): Add 'injecting' arg to
1528         cpp_read_main_file.
1529         (c_finish_options): Add linemap_line_start calls for builtin and cmd
1530         maps.  Force token position to line_table's highest line.
1531         * c-ppoutput.c (print_line_1): Refactor, print line zero.
1532         (cb_define): Always increment source line.
1534 2020-07-06  Martin Sebor  <msebor@redhat.com>
1536         PR c++/95984
1537         * c-common.c (check_function_nonnull): Avoid checking syntesized calls
1538         to stub lambda objects with null this pointer.
1539         (check_nonnull_arg): Handle C++ nullptr.
1541 2020-07-02  Jason Merrill  <jason@redhat.com>
1542             Jakub Jelinek  <jakub@redhat.com>
1544         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_consteval.
1546 2020-06-30  Jakub Jelinek  <jakub@redhat.com>
1548         PR c++/95963
1549         * c-common.c (check_function_arguments_recurse): Don't crash on
1550         calls to internal functions.
1552 2020-06-28  Martin Sebor  <msebor@redhat.com>
1554         PR c++/86568
1555         * c-common.c (struct nonnull_arg_ctx): Add members.
1556         (check_function_nonnull): Use nonnull_arg_ctx as argument.  Handle
1557         C++ member functions specially.  Consider the this pointer implicitly
1558         nonnull.
1559         (check_nonnull_arg): Use location of argument when available.
1560         (check_function_arguments): Use nonnull_arg_ctx as argument.
1562 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
1564         PR middle-end/95903
1565         * c-common.c (pointer_int_sum): Use TYPE_OVERFLOW_UNDEFINED instead of
1566         !TYPE_UNSIGNED check to see if we can apply distributive law and handle
1567         smaller precision intop operands separately.
1569 2020-06-26  Marek Polacek  <polacek@redhat.com>
1571         * c-opts.c (c_common_init_options): Default to gnu++17.
1573 2020-06-17  Jonathan Wakely  <jwakely@redhat.com>
1575         PR c/95378
1576         * c-common.c (get_atomic_generic_size): Check cv-qualifiers in
1577         pointer arguments.
1579 2020-06-16  Jakub Jelinek  <jakub@redhat.com>
1581         * c-common.h (c_omp_check_loop_iv_exprs): Add an int argument.
1582         * c-omp.c (struct c_omp_check_loop_iv_data): Add maybe_nonrect and
1583         idx members.
1584         (c_omp_is_loop_iterator): New function.
1585         (c_omp_check_loop_iv_r): Use it.  Add support for silent scanning
1586         if outer loop iterator is present.  Perform duplicate checking through
1587         hash_set in the function rather than expecting caller to do that.
1588         Pass NULL instead of d->ppset to walk_tree_1.
1589         (c_omp_check_nonrect_loop_iv): New function.
1590         (c_omp_check_loop_iv): Use it.  Fill in new members, allow
1591         non-rectangular loop forms, diagnose multiple associated loops with
1592         the same iterator.  Pass NULL instead of &pset to walk_tree_1.
1593         (c_omp_check_loop_iv_exprs): Likewise.
1595 2020-06-10  Martin Liska  <mliska@suse.cz>
1597         PR tree-optimization/92860
1598         * c-attribs.c (handle_optimize_attribute):
1599         Save global options and compare it after parsing of function
1600         attribute.
1601         * c-pragma.c (opt_stack::saved_global_options): New field.
1602         (handle_pragma_push_options): Save global_options.
1603         (handle_pragma_pop_options): Compare them after pop.
1605 2020-06-09  Jakub Jelinek  <jakub@redhat.com>
1607         PR c/95580
1608         * c-pretty-print.c (c_pretty_printer::unary_expression): Handle the
1609         case when MEM_REF's first argument has type pointer to incomplete type.
1611 2020-06-05  Jason Merrill  <jason@redhat.com>
1613         * c-pretty-print.c (pp_c_additive_expression): Handle negative
1614         operand to POINTER_PLUS_EXPR.
1616 2020-06-04  Martin Sebor  <msebor@redhat.com>
1618         PR middle-end/10138
1619         PR middle-end/95136
1620         * c-attribs.c (append_access_attrs): Handle attr_access::none.
1621         (handle_access_attribute): Same.
1623 2020-06-03  Mark Wielaard  <mark@klomp.org>
1625         * known-headers.cc (get_cp_stdlib_header_for_string_macro_name):
1626         New function.
1627         * known-headers.h (get_cp_stdlib_header_for_string_macro_name):
1628         New function declaration.
1630 2020-06-03  Mark Wielaard  <mark@klomp.org>
1632         * known-headers.cc (get_string_macro_hint): New function.
1633         (get_stdlib_header_for_name): Use get_string_macro_hint.
1634         (get_c_stdlib_header_for_string_macro_name): New function.
1635         * known-headers.h (get_c_stdlib_header_for_string_macro_name):
1636         New function declaration.
1638 2020-06-03  Tobias Burnus  <tobias@codesourcery.com>
1640         * c-common.h (c_omp_predetermined_mapping): Declare.
1641         * c-omp.c (c_omp_predetermined_mapping): New.
1643 2020-05-22  Mark Wielaard  <mark@klomp.org>
1645         * known-headers.cc (get_stdlib_header_for_name): Add a new
1646         stdlib_hint array for stdbool and stdint.
1648 2020-05-22  Mark Wielaard  <mark@klomp.org>
1650         * known-headers.cc (get_stdlib_header_for_name): Return
1651         "<stdbool.h>" for "bool", "true" or "false" when STDLIB_C and
1652         flag_isoc99.
1654 2020-05-20  Nathan Sidwell  <nathan@acm.org>
1656         * c-common.c (try_to_locate_new_include_insertion_point): Revert change.
1658         * c-common.c (try_to_locate_new_include_insertion_point): Use
1659         strcmp to compare filenames.
1660         * c-lex.c (init_c_lex): Move declaration to initialization.
1661         * c-opts.c (handle_deferred_opts): Move cpp_get_deps call into
1662         deferred count loop.
1664 2020-05-15  Jason Merrill  <jason@redhat.com>
1666         * c-opts.c (set_std_cxx20): Set flag_coroutines.
1668 2020-05-13  Jason Merrill  <jason@redhat.com>
1670         * c.opt (std=c++20): Make c++2a the alias.
1671         (std=gnu++20): Likewise.
1672         * c-common.h (cxx_dialect): Change cxx2a to cxx20.
1673         * c-opts.c: Adjust.
1674         * c-cppbuiltin.c: Adjust.
1675         * c-ubsan.c: Adjust.
1676         * c-warn.c: Adjust.
1678 2020-05-12  Eric Botcazou  <ebotcazou@adacore.com>
1680         * c-ada-spec.c (dump_ads): Output pragma Warnings ("U"); on entry.
1682 2020-05-08  Nathan Sidwell  <nathan@acm.org>
1684         Reimplement directives only processing.
1685         * c-ppoutput.c (token_streamer): Ne.
1686         (directives_only_cb): New.  Swallow ...
1687         (print_lines_directives_only): ... this.
1688         (scan_translation_unit_directives_only): Reimplment using the
1689         published interface.
1691 2020-05-07  Marek Polacek  <polacek@redhat.com>
1693         * c-format.c (badwords): Add "nonstatic".
1695 202-05-07  Jakub Jelinek  <jakub@redhat.com>
1697         PR c/94968
1698         * c-common.c (speculation_safe_value_resolve_params): Return false if
1699         error_operand_p (val2).
1700         (resolve_overloaded_builtin) <case BUILT_IN_SPECULATION_SAFE_VALUE_N>:
1701         Remove extraneous semicolon.
1703 2020-05-06  qing zhao  <qing.zhao@oracle.com>
1705         PR c/94230
1706         * c-indentation.c (get_visual_column): Add a hint to use the new
1707         -flarge-source-files option.
1709 2020-05-05  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
1711         * c-attribs.c (handle_vector_size_attribute): Add attribute
1712         nonnull for argument args in order to silence warning of
1713         uninitialized variable usage.  Since this is local to the
1714         compilation unit and thus cannot be checked at call sides by the
1715         compiler, added an assert statement in order to verify this.
1717 2020-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1719         PR target/93492
1720         * c-attribs.c (handle_patchable_function_entry_attribute): Limit
1721         value to USHRT_MAX (65535).
1723 2020-04-29  Jakub Jelinek  <jakub@redhat.com>
1725         * c-format.c (PP_FORMAT_CHAR_TABLE): Add %{ and %}.
1727 2020-04-27  Jakub Jelinek  <jakub@redhat.com>
1729         PR c/94755
1730         * c-common.c (resolve_overloaded_builtin): Return error_mark_node for
1731         fncode == BUILT_IN_NONE before initialization of first_param.
1733 2020-04-23  Marek Polacek  <polacek@redhat.com>
1735         PR c++/94733
1736         * c-attribs.c (find_tm_attribute): Use get_attribute_name instead of
1737         TREE_PURPOSE.
1739 2020-04-14  Patrick Palka  <ppalka@redhat.com>
1741         PR c++/85278
1742         * c-pretty-print.c (pp_c_pointer) <case REFERENCE_TYPE>: Print a double
1743         ampersand if it's an rvalue reference type.
1745 2020-04-13  Martin Sebor  <msebor@redhat.com>
1747         PR c/92326
1748         * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator): Avoid
1749         printing array bound for flexible array members.
1751 2020-04-13  Iain Sandoe  <iain@sandoe.co.uk>
1753         * c-cppbuiltin.c (c_cpp_builtins): Update coroutines builtin
1754         define, per n4861.
1756 2020-04-02  Richard Biener  <rguenther@suse.de>
1758         PR c/94392
1759         * c-opts.c (c_common_post_options): Enable -ffinite-loops
1760         for -O2 and C++11 or newer.
1762 2020-03-28  Patrick Palka  <ppalka@redhat.com>
1764         * c.opt: Add -fconcepts-diagnostics-depth.
1766 2020-03-27  Martin Sebor  <msebor@redhat.com>
1768         PR c++/94346
1769         * c-attribs.c (handle_copy_attribute): Avoid passing expressions
1770         to decl_attributes.  Make handling of different kinds of entities
1771         more robust.
1773 2020-03-27  Martin Sebor  <msebor@redhat.com>
1775         PR c++/94098
1776         * c-attribs.c (handle_access_attribute): Avoid setting TYPE_ATTRIBUTES
1777         here.
1779 2020-03-23  Jakub Jelinek  <jakub@redhat.com>
1781         PR c++/91993
1782         * c-warn.c (warnings_for_convert_and_check): For expr and/or
1783         result being COMPOUND_EXPRs, skip to ultimate rhs.
1785 2020-03-20  Richard Sandiford  <richard.sandiford@arm.com>
1787         PR middle-end/94072
1788         * c-common.c (c_common_type_for_mode): Before using a registered
1789         built-in type, check that the vectorness of the type matches
1790         the vectorness of the mode.
1792 2020-03-17  Jakub Jelinek  <jakub@redhat.com>
1794         * c-common.c (resolve_overloaded_builtin): Fix up duplicated word
1795         issue in a diagnostic message.
1797 2020-03-15  Lewis Hyatt  <lhyatt@gmail.com>
1799         * c.opt: Avoid redundancy in the help text.
1801 2020-03-02  Marek Polacek  <polacek@redhat.com>
1803         PR c++/93958 - add missing -std=gnu++20.
1804         * c.opt: Add -std=gnu++20.
1806 2020-03-01  Martin Sebor  <msebor@redhat.com>
1808         PR c++/92721
1809         * c-attribs.c (append_access_attrs): Correctly handle attribute.
1810         (handle_access_attribute): Same.
1812 2020-02-25  Jakub Jelinek  <jakub@redhat.com>
1814         PR c/93858
1815         * c-pragma.c (handle_pragma_diagnostic): Add missing ? after
1816         "did you mean" hint in diagnostics.
1818 2020-02-15  Jason Merrill  <jason@redhat.com>
1820         * c.opt: Add -std=c++20.
1822 2020-02-14  Eric Botcazou  <ebotcazou@adacore.com>
1824         * c-ada-spec.c: Include bitmap.h.
1825         (dump_ada_double_name): Rename into...
1826         (dump_anonymous_type_name): ...this.  Always use the TYPE_UID.
1827         (dump_ada_array_type): Adjust to above renaming.  Robustify.
1828         (dump_nested_types_1): New function copied from...  Add dumped_types
1829         parameter and pass it down to dump_nested_type.
1830         (dump_nested_types): ...this.  Remove parent parameter.  Just call
1831         dump_nested_types_1 on an automatic bitmap.
1832         (dump_nested_type): Add dumped_types parameter.
1833         <ARRAY_TYPE>: Do not dump it if already present in dumped_types.
1834         Adjust recursive calls and adjust to above renaming.
1835         (dump_ada_declaration): Adjust call to dump_nested_types.
1836         Tidy up and adjust to above renaming.
1837         (dump_ada_specs): Initialize and release bitmap obstack.
1839 2020-02-10  Martin Sebor  <msebor@redhat.com>
1841         PR c/93640
1842         * c-attribs.c (handle_access_attribute): Correct off-by-one mistakes.
1844 2020-02-10  Jakub Jelinek  <jakub@redhat.com>
1846         PR other/93641
1847         * c-format.c (check_plain): Fix up last argument of strncasecmp.
1848         Remove useless extra test.
1850 2020-02-03  Julian Brown  <julian@codesourcery.com>
1851             Tobias Burnus  <tobias@codesourcery.com>
1853         * c-cppbuiltin.c (c_cpp_builtins): Update _OPENACC define to 201711.
1855 2020-01-29  Jason Merrill  <jason@redhat.com>
1857         PR c++/89357
1858         * c-attribs.c (check_cxx_fundamental_alignment_constraints): Remove.
1860 2020-01-23  Jason Merrill  <jason@redhat.com>
1862         * c-warn.c (conversion_warning): Change -Wsign-conversion handling.
1864 2020-01-23  Martin Sebor  <msebor@redhat.com>
1866         PR c/84919
1867         * c-common.c (check_function_arguments): Avoid overlap checking
1868         of sprintf functions.
1870 2020-01-22  Jason Merrill  <jason@redhat.com>
1872         PR testsuite/93391 - PR 40752 test fails with unsigned plain char.
1873         PR c++/40752
1874         * c-warn.c (conversion_warning): Check operands only after checking
1875         the whole expression.  Don't check second operand of + for sign.
1877 2020-01-21  Jason Merrill  <jason@redhat.com>
1878             Manuel López-Ibáñez  <manu@gcc.gnu.org>
1880         PR c++/40752 - useless -Wconversion with short +=.
1881         * c.opt (-Warith-conversion): New.
1882         * c-warn.c (conversion_warning): Recurse for operands of
1883         operators.  Only warn about the whole expression with
1884         -Warith-conversion.
1886 2020-01-21  Jason Merrill  <jason@redhat.com>
1888         * c-common.c (unsafe_conversion_p): Don't warn, return UNSAFE_SIGN.
1889         * c-warn.c (conversion_warning): Warn about UNSAFE_SIGN.
1891 2020-01-20  Nathan Sidwell  <nathan@acm.org>
1893         PR preprocessor/80005
1894         * c-cppbuiltins.c (c_cpp_builtins): Don't define __has_include{,_next}.
1896 2020-01-18  Iain Sandoe  <iain@sandoe.co.uk>
1898         * c-common.c (co_await, co_yield, co_return): New.
1899         * c-common.h (RID_CO_AWAIT, RID_CO_YIELD,
1900         RID_CO_RETURN): New enumeration values.
1901         (D_CXX_COROUTINES): Bit to identify coroutines are active.
1902         (D_CXX_COROUTINES_FLAGS): Guard for coroutine keywords.
1903         * c-cppbuiltin.c (__cpp_coroutines): New cpp define.
1904         * c.opt (fcoroutines): New command-line switch.
1906 2020-01-10  David Malcolm  <dmalcolm@redhat.com>
1908         * c-format.c (local_event_ptr_node): New.
1909         (PP_FORMAT_CHAR_TABLE): Add entry for "%@".
1910         (init_dynamic_diag_info): Initialize local_event_ptr_node.
1911         * c-format.h (T_EVENT_PTR): New define.
1913 2020-01-10  Martin Sebor  <msebor@redhat.com>
1915         PR c/93132
1916         * c-attribs.c (append_access_attrs): Validate against the translated
1917         access string rather than the human-readable representation.
1919 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
1921         Update copyright years.
1923 2019-12-20  Eric Botcazou  <ebotcazou@adacore.com>
1925         * c-ada-spec.h (decl_sloc): Delete.
1926         * c-ada-spec.c (decl_sloc): Make static.
1928 2019-12-19  Julian Brown  <julian@codesourcery.com>
1930         * c-common.h (c_omp_map_clause_name): Add prototype.
1931         * c-omp.c (c_omp_map_clause_name): New function.
1932         * c-pragma.h (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ATTACH and
1933         PRAGMA_OACC_CLAUSE_DETACH.
1935 2019-12-19  Julian Brown  <julian@codesourcery.com>
1936             Maciej W. Rozycki  <macro@codesourcery.com>
1937             Tobias Burnus  <tobias@codesourcery.com>
1938             Thomas Schwinge  <thomas@codesourcery.com>
1940         * c-pragma.h (pragma_omp_clause): Add
1941         PRAGMA_OACC_CLAUSE_NO_CREATE.
1943 2019-12-17  Martin Sebor  <msebor@redhat.com>
1945         PR c++/61339
1946         * c.opt (-Wmismatched-tags, -Wredundant-tags): New options.
1948 2019-12-11  David Malcolm  <dmalcolm@redhat.com>
1950         * c-pretty-print.c (c_pretty_printer::clone): New vfunc
1951         implementation.
1952         * c-pretty-print.h (c_pretty_printer::clone): New vfunc decl.
1954 2019-12-09  David Malcolm  <dmalcolm@redhat.com>
1956         * c-format.c (range_label_for_format_type_mismatch::get_text):
1957         Replace label_text ctor called with true with label_text::take.
1959 2019-12-09  David Malcolm  <dmalcolm@redhat.com>
1961         * c-format.c (selftest::test_type_mismatch_range_labels): Remove
1962         initial newline from expected outputs.
1963         * c-opts.c (c_diagnostic_finalizer): Add pp_newline call before
1964         call to diagnostic_show_locus.
1966 2019-12-06  Jakub Jelinek  <jakub@redhat.com>
1968         * c-cppbuiltin.c (c_cpp_builtins): Don't define __cpp_consteval for
1969         now.
1971 2019-12-05  Marek Polacek  <polacek@redhat.com>
1972             Jakub Jelinek  <jakub@redhat.com>
1974         PR c++/91353 - P1331R2: Allow trivial default init in constexpr contexts.
1975         * c-cppbuiltin.c (c_cpp_builtins): Adjust the value of __cpp_constexpr.
1977 2019-12-05  Marek Polacek  <polacek@redhat.com>
1979         PR c++/92271 - make __is_same alias for __is_same_as.
1980         * c-common.c: Add __is_same, an alias for __is_same_as.
1982 2019-12-03  Marek Polacek  <polacek@redhat.com>
1984         PR c++/91363 - P0960R3: Parenthesized initialization of aggregates.
1985         * c-cppbuiltin.c (c_cpp_builtins): Predefine
1986         __cpp_aggregate_paren_init=201902 for -std=c++2a.
1988 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
1990         * c-attribs.c (handle_symver_attribute): New function
1991         (c_common_attributes): Add symver.
1993 2019-11-30  Richard Sandiford  <richard.sandiford@arm.com>
1995         * c-common.c (pointer_int_sum): Use verify_type_context to check
1996         whether the target allows pointer arithmetic for the types involved.
1997         (c_sizeof_or_alignof_type, c_alignof_expr): Use verify_type_context
1998         to check whether the target allows sizeof and alignof operations
1999         for the types involved.
2001 2019-11-27  Jason Merrill  <jason@redhat.com>
2003         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
2005 2019-11-26  Jakub Jelinek  <jakub@redhat.com>
2007         PR c++/61414
2008         * c-attribs.c (handle_mode_attribute): Add mode attribute to
2009         ENUMERAL_TYPEs.
2011 2019-11-25  Joseph Myers  <joseph@codesourcery.com>
2013         PR c/91985
2014         * c-common.c (c_common_type_for_mode): Handle decimal
2015         floating-point types being NULL_TREE.
2016         * c-format.c (get_format_for_type_1): Handle specified types being
2017         NULL_TREE.
2018         * c-lex.c (interpret_float): Give an error for decimal
2019         floating-point constants when decimal floating-point not
2020         supported.
2022 2019-11-23  Jakub Jelinek  <jakub@redhat.com>
2024         PR middle-end/83859
2025         * c-attribs.c (append_access_attrs): Avoid buffer overflow.  Avoid
2026         memory leak.  Use XNEWVEC macro.  Use auto_diagnostic_group to
2027         group warning with inform together.
2028         (handle_access_attribute): Formatting fix.
2030 2019-11-22  Jakub Jelinek  <jakub@redhat.com>
2032         PR c/90677
2033         * c-common.h (identifier_global_tag): Declare.
2034         * c-format.c (get_pointer_to_named_type): Renamed to ...
2035         (get_named_type): ... this.  Use identifier_global_tag instead of
2036         identifier_global_value, handle the return value being a TYPE_P.
2037         (init_dynamic_diag_info): Adjust get_pointer_to_named_type callers
2038         to call get_named_type instead.  Formatting fixes.
2040         Implement P1902R1, Missing feature-test macros 2017-2019.
2041         * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_init_captures
2042         and __cpp_generic_lambdas for -std=c++2a.  Define
2043         __cpp_designated_initializers, __cpp_constexpr_in_decltype and
2044         __cpp_consteval for -std=c++2a.  Remove a FIXME comment about
2045         __cpp_concepts for -std=c++2a.
2047 2019-11-22  Martin Sebor  <msebor@redhat.com>
2049         PR middle-end/83859
2050         * c-attribs.c (handle_access_attribute): New function.
2051         (c_common_attribute_table): Add new attribute.
2052         (get_argument_type): New function.
2053         (append_access_attrs): New function.
2054         (get_nonnull_operand): Rename...
2055         (get_attribute_operand): ...to this.
2056         * c-common.c (get_nonnull_operand): Rename...
2057         (get_attribute_operand): ...to this.
2059 2019-11-21  Joseph Myers  <joseph@codesourcery.com>
2061         * c-attribs.c (handle_fallthrough_attribute): Use pedwarn instead
2062         of warning.
2064 2019-11-19  Joseph Myers  <joseph@codesourcery.com>
2066         * c-common.c (attribute_fallthrough_p): In C, use pedwarn not
2067         warning for standard attributes mixed with fallthrough attributes.
2069 2019-11-15  Joseph Myers  <joseph@codesourcery.com>
2071         * c-attribs.c (handle_fallthrough_attribute): Remove static.
2072         * c-common.h (handle_fallthrough_attribute): Declare.
2074 2019-11-15  Joseph Myers  <joseph@codesourcery.com>
2076         * c-attribs.c (handle_deprecated_attribute): Remove static.
2077         * c-common.h (handle_deprecated_attribute): Declare.
2079 2019-11-14  Joseph Myers  <joseph@codesourcery.com>
2081         * c-lex.c (lex_charconst): Make CPP_UTF8CHAR constants unsigned
2082         char for C.
2084 2019-11-14  Jakub Jelinek  <jakub@redhat.com>
2086         * c-omp.c (c_omp_check_context_selector): Add nvidia to the list of
2087         valid vendors.
2089         * c-omp.c (c_omp_check_context_selector): Handle name lists
2090         containing string literals.  Don't diagnose atomic_default_mem_order
2091         with multiple props.
2093 2019-11-13  Joseph Myers  <joseph@codesourcery.com>
2095         * c-cppbuiltin.c (builtin_define_float_constants): Also define
2096         NORM_MAX constants.  Update call to get_max_float.
2097         (LAZY_HEX_FP_VALUES_CNT): Update value to include NORM_MAX
2098         constants.
2100 2019-11-13  Eric Botcazou  <ebotcazou@adacore.com>
2102         * c-ada-spec.c (get_underlying_decl): Do not look through typedefs.
2103         (dump_forward_type): Do not generate a declaration for function types.
2104         (dump_nested_type) <ARRAY_TYPE>: Do not generate a nested declaration
2105         of the component type if it is declared in another file.
2107 2019-11-12  Martin Liska  <mliska@suse.cz>
2109         * c-opts.c (c_common_post_options):
2110         Use SET_OPTION_IF_UNSET.
2112 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
2113             Frederik Harwath  <frederik@codesourcery.com>
2115         gcc/c-family/
2116         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_SERIAL enumeration
2117         constant.
2118         * c-pragma.c (oacc_pragmas): Add "serial" entry.
2120 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
2122         * c-common.h (gnu_vector_type_p): New function.
2123         * c-common.c (c_build_vec_perm_expr): Require __builtin_shuffle
2124         vectors to satisfy gnu_vector_type_p.
2125         (c_build_vec_convert): Likewise __builtin_convertvector.
2126         (convert_vector_to_array_for_subscript): Likewise when applying
2127         implicit vector to array conversion.
2128         (scalar_to_vector): Likewise when converting vector-scalar
2129         operations to vector-vector operations.
2131 2019-11-08  Joseph Myers  <joseph@codesourcery.com>
2133         * c.opt (Wold-style-definition): Initialize to -1.
2134         * c-opts.c (c_common_post_options): Set warn_old_style_definition
2135         to flag_isoc2x if not set explicitly.
2137 2019-11-07  Joseph Myers  <joseph@codesourcery.com>
2139         * c-attribs.c (parse_tm_stmt_attr): Handle scoped attributes.
2141 2019-11-05  Jason Merrill  <jason@redhat.com>
2143         * c-opts.c (c_common_post_options): -fconcepts-ts implies
2144         -fconcepts.
2146 2019-11-04  Kamlesh Kumar  <kamleshbhalui@gmail.com>
2148         * c-opts.c (c_common_post_options): Update
2149         latest_abi_version.
2151 2019-11-02  Jakub Jelinek  <jakub@redhat.com>
2153         * c-common.h (c_omp_get_context_selector): Remove.
2154         * c-omp.c (c_omp_get_context_selector): Moved to omp-general.c
2155         and renamed to omp_get_context_selector.
2157         * c-omp.c (c_omp_mark_declare_variant): Use
2158         omp_context_selector_set_compare.
2160         PR c++/88335 - Implement P1073R3: Immediate functions
2161         * c-common.h (enum rid): Add RID_CONSTEVAL.
2162         * c-common.c (c_common_reswords): Add consteval.
2164 2019-11-01  Martin Sebor  <msebor@redhat.com>
2166         PR middle-end/91679
2167         PR middle-end/91647
2168         PR middle-end/91463
2169         PR middle-end/92312
2170         * c-pretty-print.c (direct_abstract_declarator): Print
2171         bound in zero-length arrays.
2172         * c.opt (-Wzero-length-bounds): New option.
2174 2019-10-30  Nathan Sidwell  <nathan@acm.org>
2176         * c-cppbuiltin.c (c_cpp_builtins): Add 'L' suffix to feature
2177         macros.
2179 2019-10-28  Martin Sebor  <msebor@redhat.com>
2181         PR c/66970
2182         * c-common.c (c_common_nodes_and_builtins): Call c_define_builtins
2183         even when only preprocessing.
2184         * c-common.h (names_builtin_p): Declare new function.
2185         * c-lex.c (init_c_lex): Set has_builtin.
2186         (c_common_has_builtin): Define a new function.
2187         * c-ppoutput.c (init_pp_output): Set has_builtin.
2189 2019-10-24  Jakub Jelinek  <jakub@redhat.com>
2191         * c-common.h (c_omp_context_selector_matches): Remove.
2192         * c-omp.c (c_omp_context_selector_matches): Remove.
2193         * c-attribs.c (c_common_attribute_table): Add
2194         "omp declare target {host,nohost,block}" attributes.
2196 2019-10-17  JeanHeyd Meneide  <phdofthehouse@gmail.com>
2198         * c-lex.c (c_common_has_attribute): Update nodiscard value.
2200 2019-10-14  Richard Sandiford  <richard.sandiford@arm.com>
2202         * c-common.h (user_facing_original_type_p): Declare.
2203         * c-common.c: Include c-spellcheck.h.
2204         (user_facing_original_type_p): New function.
2206 2019-10-12  Jakub Jelinek  <jakub@redhat.com>
2208         * c-common.h (c_omp_mark_declare_variant,
2209         c_omp_context_selector_matches): Declare.
2210         * c-omp.c: Include attribs.h, gimplify.h, cgraph.h, symbol-summary.h
2211         and hsa-common.h.
2212         (c_omp_get_context_selector): Support second argument NULL.
2213         (c_omp_mark_declare_variant, c_omp_context_selector_matches): New
2214         functions.
2215         * c-attribs.c (c_common_attribute_table): Remove "omp declare variant"
2216         attribute, add "omp declare variant base" and
2217         "omp declare variant variant" attributes.
2219 2019-10-11  Joseph Myers  <joseph@codesourcery.com>
2221         * c.opt (Wc11-c2x-compat): Add CPP(cpp_warn_c11_c2x_compat)
2222         CppReason(CPP_W_C11_C2X_COMPAT).
2224 2019-10-11  Joseph Myers  <joseph@codesourcery.com>
2226         * c-common.c (c_common_reswords): Do not use D_EXT for _Decimal32,
2227         _Decimal64 and _Decimal128.
2229 2019-10-10  Joseph Myers  <joseph@codesourcery.com>
2231         * c-cppbuiltin.c (c_cpp_builtins): Do not define macros for DFP
2232         types if DFP not supported.
2234 2019-10-10  Jakub Jelinek  <jakub@redhat.com>
2236         * c-common.h (c_omp_check_context_selector,
2237         c_omp_get_context_selector): Declare.
2238         * c-omp.c (c_omp_declare_simd_clauses_to_numbers): Fix spelling
2239         in diagnostic message.
2240         (c_omp_check_context_selector, c_omp_get_context_selector): New
2241         functions.
2242         * c-attribs.c (c_common_attribute_table): Add "omp declare variant"
2243         attribute.
2244         (handle_omp_declare_variant_attribute): New function.
2246 2019-10-09  Martin Sebor  <msebor@redhat.com>
2248         PR tree-optimization/90879
2249         * c.opt (-Wstring-compare): New option.
2251 2019-10-08  Andrew Sutton  <asutton@lock3software.com>
2252             Jason Merrill  <jason@redhat.com>
2254         Update the concepts implementation to conform to the C++20
2255         specification, improve compile times, and generally clean up
2256         the implementation.
2258         * c-cppbuiltin.c (c_cpp_builtins): Use new feature test values for
2259         concepts when -std=c++2a. Bump __cpp_concepts to 201907.
2260         * c.opt: Add -Wconcepts-ts.
2261         * c-opts.c (c_common_post_options): Warn when -fconcepts is used
2262         with -std=c++2a. Disable warning for -fconcepts in C++20 mode.
2263         (set_std_cxx2a): Enable concepts by default.
2265 2019-10-08  Joseph Myers  <joseph@codesourcery.com>
2267         * c-opts.c (c_common_post_options): Set
2268         -fno-fp-int-builtin-inexact for C2X.
2270 2019-10-05  Jakub Jelinek  <jakub@redhat.com>
2272         PR c++/91369 - Implement P0784R7: constexpr new
2273         * c-cppbuiltin.c (c_cpp_builtins): Predefine
2274         __cpp_constexpr_dynamic_alloc=201907 for -std=c++2a.
2276 2019-10-04  Joseph Myers  <joseph@codesourcery.com>
2278         PR c/82752
2279         * c-format.c (C_STD_VER): Handle C2x.
2280         (C_STD_NAME): Likewise.
2281         (strftime_flag_specs): Add 'O' modifier with 'p' flag.
2282         (time_char_table): Use separate entry for 'B' and 'b', with 'O'
2283         modifier allowed and 'p' flag.
2284         * c-format.h (enum format_std_version): Add STD_C2X.
2285         (struct format_char_info): Mention 'p' in comment on flags2.
2287 2019-10-01  David Malcolm  <dmalcolm@redhat.com>
2289         * c-opts.c (c_diagnostic_finalizer): Temporarily clear prefix when
2290         calling diagnostic_show_locus, rather than destroying it afterwards.
2292 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
2294         PR c++/91925
2295         * c-warn.c (check_alignment_of_packed_member): Ignore FIELD_DECLs
2296         with NULL DECL_FIELD_OFFSET.
2298 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
2300         * c-pretty-print.c (pp_c_specifier_qualifier_list): If a vector type
2301         has a type name, use it in preference to the __vector syntax.
2303 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
2305         * c-pretty-print.c (pp_c_parameter_type_list): Avoid printing
2306         two spaces between a comma and "...".
2308 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
2310         PR c++/88203
2311         * c-common.h (c_omp_predefined_variable): Declare.
2312         * c-omp.c (c_omp_predefined_variable): New function.
2313         (c_omp_predetermined_sharing): Return OMP_CLAUSE_DEFAULT_SHARED
2314         for predefined variables.
2316 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
2318         * c-common.h (build_function_call_vec): Take the original
2319         function decl as an optional final parameter.
2320         (check_builtin_function_arguments): Take the original function decl.
2321         * c-common.c (check_builtin_function_arguments): Likewise.
2322         Handle all built-in functions, not just BUILT_IN_NORMAL ones.
2323         Use targetm.check_builtin_call to check BUILT_IN_MD functions.
2325 2019-09-15  Jason Merrill  <jason@redhat.com>
2327         * c-warn.c (warn_logical_operator): Strip location wrappers.  Don't
2328         fold_for_warn in "|| mask" warning.
2330 2019-09-10  Martin Liska  <mliska@suse.cz>
2332         * c.opt: Use newly added WarnRemoved.
2334 2019-09-09  Martin Liska  <mliska@suse.cz>
2336         * c.opt: Update comment of removed
2337         options that are preserved only for backward
2338         compatibility.
2340 2019-09-06  Martin Liska  <mliska@suse.cz>
2342         PR c++/91125
2343         * c-common.c: Remove definition of flag_use_repository.
2344         * c-common.h: Likewise.
2345         * c-opts.c (c_common_handle_option):
2346         Do not handle OPT_frepo option.
2347         * c.opt: Mark the option with Deprecated.
2349 2019-09-04  Marek Polacek  <polacek@redhat.com>
2351         * c.opt (fdeduce-init-list): Ignored.
2353 2019-09-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2355         PR c/78736
2356         * c.opt (Wenum-conversion): New option.
2358 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
2360         * c-attribs.c (handle_section_attribute): Call the
2361         handle_generic_attribute target hook after performing target
2362         independent processing.
2363         (handle_noinit_attribute): Likewise.
2365 2019-09-03  Ian Lance Taylor  <iant@golang.org>
2367         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Always expand
2368         when using -fgo-dump-spec.
2370 2019-09-02  Martin Liska  <mliska@suse.cz>
2372         PR c++/91155
2373         * c-common.c (fname_as_string): Use cxx_printable_name for
2374         __PRETTY_FUNCTION__ same as was used before r265711.
2376 2019-08-28  Marek Polacek  <polacek@redhat.com>
2378         Implement P1152R4: Deprecating some uses of volatile.
2379         PR c++/91361
2380         * c-opts.c (c_common_post_options): Enable -Wvolatile by
2381         default for C++2a, unless -Wno-deprecated.
2382         * c.opt (Wvolatile): New warning.
2384 2019-08-28  Marek Polacek  <polacek@redhat.com>
2386         PR c++/91360 - Implement C++20 P1143R2: constinit.
2387         * c-common.c (c_common_reswords): Add constinit and __constinit.
2388         (keyword_is_decl_specifier): Handle RID_CONSTINIT.
2389         * c-common.h (enum rid): Add RID_CONSTINIT, RID_FIRST_CXX20, and
2390         RID_LAST_CXX20.
2391         (D_CXX20): Define.
2392         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_constinit.
2393         * c-format.c (cxx_keywords): Add "constinit".
2394         * c.opt (Wc++2a-compat, Wc++20-compat): New options.
2396 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
2398         PR c++/91415
2399         * c-common.c (verify_tree): For LSHIFT_EXPR, RSHIFT_EXPR,
2400         COMPONENT_REF and ARRAY_REF in cxx_dialect >= cxx17 mode handle it
2401         like COMPOUND_EXPR rather than normal expression.
2403 2019-08-23  Iain Sandoe  <iain@sandoe.co.uk>
2405         PR pch/61250
2406         * c-lex.c (c_lex_with_flags):  Don't call
2407         c_common_no_more_pch () from here.
2409 2019-08-23  Jakub Jelinek  <jakub@redhat.com>
2411         PR middle-end/91283
2412         * c-common.c (c_ts18661_flt_eval_method): Use flag_excess_precision
2413         instead of flag_excess_precision_cmdline.
2414         * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): Likewise.
2415         * c-opts.c (c_common_post_options): Likewise.
2417 2019-08-22  Martin Sebor  <msebor@redhat.com>
2419         PR middle-end/91490
2420         * c-common.c (braced_list_to_string): Add argument and overload.
2421         Handle flexible length arrays and unions.
2423 2019-08-21  Eric Botcazou  <ebotcazou@adacore.com>
2425         * c-ada-spec.c (dump_ada_function_declaration): Be prepared for broken
2426         function declarations where arguments are missing.  Rename variables.
2428 2019-08-15  Richard Biener  <rguenther@suse.de>
2430         * c-common.c (c_stddef_cpp_builtins): When the GIMPLE FE is
2431         enabled, define __SIZETYPE__.
2433 2019-08-14  Christophe Lyon  <christophe.lyon@linaro.org>
2435         * c-attribs.c (c_common_attribute_table): Add "noinit" entry. Add
2436         exclusion with "section" attribute.
2437         (attr_noinit_exclusions): New table.
2438         (handle_noinit_attribute): New function.
2440 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
2442         PR middle-end/91421
2443         * c-common.c (resolve_overloaded_builtin): Use
2444         copy_decl_built_in_function.
2446 2019-08-13  Martin Sebor  <msebor@redhat.com>
2448         PR c/80619
2449         * c-format.c (printf_length_specs): Set FMT_LEN_w for "w".
2450         (asm_fprintf_length_spec): Same.
2451         * c-format.h (format_lengths): Add FMT_LEN_w.
2453 2019-08-10  Jakub Jelinek  <jakub@redhat.com>
2455         * c-pragma.h (enum pragma_omp_clause): Add
2456         PRAGMA_OMP_CLAUSE_DEVICE_TYPE.
2458 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
2460         * c-pragma.h (enum pragma_omp_clause): Add
2461         PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR.  Set PRAGMA_OACC_CLAUSE_USE_DEVICE
2462         equal to PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR instead of being a separate
2463         enumeration value.
2465 2019-08-05  Marek Polacek  <polacek@redhat.com>
2467         PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
2468         * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by
2469         default for C++2a, unless -Wno-deprecated.
2470         * c.opt (Wcomma-subscript): New warning.
2472 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
2474         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_LOOP.
2475         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_BIND.
2476         * c-pragma.c (omp_pragmas_simd): Add PRAGMA_OMP_LOOP entry.
2477         * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_LOOP.
2478         * c-omp.c (c_omp_split_clauses): Add support for 4 new combined
2479         constructs with the loop construct.
2481 2019-07-13  Jakub Jelinek  <jakub@redhat.com>
2483         PR c/91149
2484         * c-omp.c (c_omp_split_clauses): Fix a pasto in
2485         OMP_CLAUSE_REDUCTION_TASK handling.
2487 2019-07-12  Jakub Jelinek  <jakub@redhat.com>
2489         * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ORDER.
2490         * c-omp.c (c_omp_split_clauses): Handle splitting of OMP_CLAUSE_ORDER.
2492 2019-07-09  Martin Sebor  <msebor@redhat.com>
2494         PR c++/61339
2495         * c-opts.c (handle_deferred_opts): Change class-key of PODs to struct
2496         and others to class.
2497         * c-pretty-print.h: Same.
2499 2019-07-09  Martin Sebor  <msebor@redhat.com>
2501         PR c++/61339
2502         * c-format.c (check_argument_type): Change class-key from class to
2503         struct and vice versa to match convention and avoid -Wclass-is-pod
2504         and -Wstruct-no-pod.
2505         * c-pretty-print.h: Same.
2507 2019-07-03  Martin Liska  <mliska@suse.cz>
2509         * c-common.c (try_to_locate_new_include_insertion_point): Remove
2510         dead assignemts.
2512 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
2514         * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_REDUCTION_INSCAN
2515         clauses on OMP_FOR rather than OMP_PARALLEL when OMP_FOR is combined
2516         with OMP_PARALLEL.
2518 2019-07-02  qing zhao  <qing.zhao@oracle.com>
2520         PR preprocessor/90581
2521         * c-opts.c (c_common_handle_option): Handle -fmax-include-depth.
2522         * c.opt: Add new option -fmax-include-depth.
2524 2019-06-26  Jason Merrill  <jason@redhat.com>
2526         PR c++/55442 - memory-hog with highly recursive constexpr.
2527         * c.opt (fconstexpr-loop-limit): New.
2529 2019-06-25  Jakub Jelinek  <jakub@redhat.com>
2531         PR sanitizer/90954
2532         * c-omp.c (c_finish_omp_atomic): Allow tree_invariant_p in addition
2533         to SAVE_EXPR in first operand of a COMPOUND_EXPR.
2535 2019-06-25  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
2537         * c-common.c (c_common_nodes_and_builtins): Define
2538         alternate "__intN__" name for "__intN" types.
2540 2019-06-24  Jan Hubicka  <jh@suse.cz>
2542         * c-common.c (braced_lists_to_strings): Check that
2543         type is array or integer prior checking string flag.
2545 2019-06-21  Matthew Beliveau  <mbelivea@redhat.com>
2547         PR c++/90875 - added -Wswitch-outside-range option
2548         * c.opt (Wswitch-outside-range): Added new option.
2549         * c-warn.c (c_do_switch_warnings): Use OPT_Wswitch-outside-range.
2551 2019-06-21  Marek Polacek  <polacek@redhat.com>
2553         PR c++/90953 - ICE with -Wmissing-format-attribute.
2554         * c-common.c (check_function_arguments_recurse): Use
2555         get_attribute_name.
2556         (check_missing_format_attribute): Likewise.
2558 2019-06-19  Marek Polacek  <polacek@redhat.com>
2560         PR c++/60364 - noreturn after first decl not diagnosed.
2561         * c-attribs.c (handle_noreturn_attribute): No longer static.
2562         * c-common.h (handle_noreturn_attribute, attr_noreturn_exclusions):
2563         Declare.
2564         * c-format.c (check_function_format): Use get_attribute_name.
2566 2019-06-19  Martin Sebor  <msebor@redhat.com>
2568         PR translation/90156
2569         * c-format.c (function_format_info::format_type): Adjust type.
2570         (function_format_info::is_raw): New member.
2571         (decode_format_type): Adjust signature.  Handle "raw" diag attributes.
2572         (decode_format_attr): Adjust call to decode_format_type.
2573         Avoid a redundant call to convert_format_name_to_system_name.
2574         Avoid abbreviating the word "arguments" in a diagnostic.
2575         (format_warning_substr): New function.
2576         (avoid_dollar_number): Quote dollar sign in a diagnostic.
2577         (finish_dollar_format_checking): Same.
2578         (check_format_info): Same.
2579         (struct baltoks_t): New.
2580         (c_opers, c_keywords, cxx_keywords, badwords, contrs): New arrays.
2581         (maybe_diag_unbalanced_tokens, check_tokens, check_plain): New
2582         functions.
2583         (check_format_info_main): Call check_plain.  Use baltoks_t.  Call
2584         maybe_diag_unbalanced_tokens.
2585         (handle_format_attribute): Spell out the word "arguments" in
2586         a diagnostic.
2588 2019-06-11  Matthew Beliveau  <mbelivea@redhat.com>
2590         PR c++/90449 - add -Winaccessible-base option.
2591         * c.opt (Winaccessible-base): New option.
2593 2019-06-10  Jakub Jelinek  <jakub@redhat.com>
2595         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCAN.
2596         * c-pragma.c (omp_pragmas_simd): Add #pragma omp scan.
2597         * c-omp.c (c_omp_split_clauses): Diagnose inscan reductions on
2598         combined/composite constructs where it is not allowed.  Copy over
2599         OMP_CLAUSE_REDUCTION_INSCAN.
2601 2019-06-05  Martin Sebor  <msebor@redhat.com>
2603         * c-attribs.c (handle_mode_attribute): Adjust quoting and hyphenation.
2604         (handle_alias_ifunc_attribute): Same.
2605         (handle_copy_attribute): Same.
2606         (handle_weakref_attribute): Same.
2607         (handle_nonnull_attribute): Same.
2608         * c-warn.c (warn_for_sign_compare): Same.
2609         (warn_for_restrict): Same.
2610         * c.opt: Same.
2612 2019-06-05  Martin Sebor  <msebor@redhat.com>
2614         * c-pragma.c (handle_pragma_weak): Adjust quoting in a diagnostic.
2615         * c.opt (-Wformat-diag): Remove a spurious period.
2617 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
2619         PR c/90628
2620         * c-common.c (check_builtin_function_arguments)
2621         <case BUILTIN_*_OVERFLOW>: Diagnose pointer to const qualified integer
2622         as last argument.
2624 2019-05-23  Eric Botcazou  <ebotcazou@adacore.com>
2626         * c-ada-spec.c (compare_node): Compare the DECL_UIDs as a last resort.
2628 2019-05-22  Martin Liska  <mliska@suse.cz>
2630         PR lto/90500
2631         * c-attribs.c (handle_copy_attribute): Do not copy
2632         target_clones attribute.
2634 2019-05-21  Eric Botcazou  <ebotcazou@adacore.com>
2636         * c-ada-spec.h (enum cpp_operation): Add IS_ASSIGNMENT_OPERATOR.
2637         * c-ada-spec.c (print_assignment_operator): New function.
2638         (dump_ada_declaration) <FUNCTION_DECL>: Call it do dump explicit copy
2639         assignment operators declared as methods and filter out the others.
2641 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
2643         PR c/89433
2644         * c-attribs.c (c_common_attribute_table): Set min_len to -1 for
2645         "omp declare target".
2647 2019-05-16  Martin Sebor  <msebor@redhat.com>
2649         * c-attribs.c (handle_no_sanitize_attribute): Quote identifiers,
2650         keywords, operators, and types in diagnostics.
2651         (handle_scalar_storage_order_attribute): Same.
2652         (handle_mode_attribute): Same.
2653         (handle_visibility_attribute): Same.
2654         (handle_assume_aligned_attribute): Same.
2655         (handle_no_split_stack_attribute): Same.
2656         * c-common.c (shorten_compare): Same.
2657         (c_common_truthvalue_conversion): Same.
2658         (cb_get_source_date_epoch): Same.
2659         * c-lex.c (cb_def_pragma): Quote keywords, operators, and types
2660         in diagnostics.
2661         (interpret_float): Same.
2662         * c-omp.c (c_finish_omp_for): Same.
2663         * c-opts.c (c_common_post_options): Same.
2664         * c-pch.c (c_common_pch_pragma): Same.
2665         * c-pragma.c (pop_alignment): Same.
2666         (handle_pragma_pack): Same.
2667         (apply_pragma_weak): Same.
2668         (handle_pragma_weak): Same.
2669         (handle_pragma_scalar_storage_order): Same.
2670         (handle_pragma_redefine_extname): Same.
2671         (add_to_renaming_pragma_list): Same.
2672         (maybe_apply_renaming_pragma): Same.
2673         (push_visibility): Same.
2674         (handle_pragma_visibility): Same.
2675         (handle_pragma_optimize): Same.
2676         (handle_pragma_message): Same.
2677         * c-warn.c (warn_for_omitted_condop): Same.
2678         (lvalue_error): Same.
2680 2019-05-15  Richard Biener  <rguenther@suse.de>
2682         PR c/90474
2683         * c-common.c (c_common_mark_addressable_vec): Also mark
2684         a COMPOUND_LITERAL_EXPR_DECL addressable similar to
2685         c_mark_addressable.
2687 2019-05-06  Nathan Sidwell  <nathan@acm.org>
2689         * c-opts.c (handle_defered_opts): Rename struct deps to struc mkdeps.
2691 2019-04-30  Nathan Sidwell  <nathan@acm.org>
2693         * c-common.c (c_common_init_ts): Use MARK_TS_EXP.  Mark SIZEOF_EXPR.
2695 2019-04-30  Martin Liska  <mliska@suse.cz>
2697         * c-pragma.c (handle_pragma_diagnostic): Provide hints
2698         for unknown options.
2700 2019-04-26  Richard Sandiford  <richard.sandiford@arm.com>
2702         * c-warn.c (strict_aliasing_warning): Apply COMPLETE_TYPE_P to
2703         the pointer target rather than the pointer itself.
2705 2019-04-19  Jakub Jelinek  <jakub@redhat.com>
2707         PR c/89888
2708         * c-common.h (c_add_case_label): Remove orig_type and outside_range_p
2709         arguments.
2710         (c_do_switch_warnings): Remove outside_range_p argument.
2711         * c-common.c (check_case_bounds): Removed.
2712         (c_add_case_label): Remove orig_type and outside_range_p arguments.
2713         Don't call check_case_bounds.  Fold low_value as well as high_value.
2714         * c-warn.c (c_do_switch_warnings): Remove outside_range_p argument.
2715         Check for case labels outside of range of original type here and
2716         adjust them.
2718 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
2720         PR translation/90041
2721         * c.opt (-fhandle-exceptions): Use %< and %> around option names
2722         in the Warn diagnostics.
2724         PR c/89946
2725         * c-attribs.c (handle_patchable_function_entry_attribute): Add
2726         function comment.  Warn if arguments of the attribute are not positive
2727         integer constants.
2729 2019-04-09  Eric Botcazou  <ebotcazou@adacore.com>
2731         * c-ada-spec.c (print_destructor): Deal with deleting destructors.
2732         (dump_ada_declaration) <FUNCTION_DECL>: Likewise.
2734 2019-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2736         * c-ada-spec.c (is_float128): New predicate extracted from...
2737         (dump_ada_node) <COMPLEX_TYPE>: Use it to recognize __cfloat128.
2738         <REAL_TYPE>: ...here.  Call it.
2740 2019-04-05  David Malcolm  <dmalcolm@redhat.com>
2742         PR c/89985
2743         * c-warn.c (check_address_or_pointer_of_packed_member): Add
2744         auto_diagnostic_group.  Guard inform calls by result of
2745         warning_at call.
2747 2019-04-05  Marek Polacek  <polacek@redhat.com>
2749         PR c++/89973 - -Waddress-of-packed-member ICE with invalid conversion.
2750         * c-warn.c (check_address_or_pointer_of_packed_member): Check the type
2751         of RHS.
2753 2019-04-03  Jason Merrill  <jason@redhat.com>
2755         PR c++/86586 - -fcompare-debug=-Wsign-compare.
2756         * c-warn.c (warn_for_sign_compare): Call fold_for_warn.
2758 2019-04-01  Martin Sebor  <msebor@redhat.com>
2760         PR c/89685
2761         * c-attribs.c (handle_copy_attribute): Handle references and
2762         non-constant expressions.
2764 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
2766         PR c++/87481
2767         * c.opt (-fconstexpr-ops-limit=): New option.
2769 2019-03-21  Jakub Jelinek  <jakub@redhat.com>
2771         * c-common.c (per_file_includes_t): Use false as Lazy in hash_set
2772         template param.
2774 2019-03-19  Martin Sebor  <msebor@redhat.com>
2776         PR tree-optimization/89688
2777         * c-common.c (braced_list_to_string): Make static.
2778         (braced_lists_to_strings): Define new function.
2779         * c-common.h (braced_list_to_string): Remove.
2780         (braced_lists_to_strings): Declare.
2782 2019-03-12  Martin Liska  <mliska@suse.cz>
2784         * c-opts.c (c_common_handle_option): Wrap option with %< and %>.
2786 2019-03-11  Martin Liska  <mliska@suse.cz>
2788         * c-opts.c (c_common_post_options): Wrap apostrophes
2789         in gcc internal format with %'.
2791 2019-03-11  Martin Liska  <mliska@suse.cz>
2793         * c-attribs.c (handle_nocf_check_attribute): Wrap an option name
2794         in a string format message and fix GNU coding style.
2795         * c-common.c (vector_types_convertible_p): Likewise.
2796         (c_build_vec_perm_expr): Likewise.
2797         * c-indentation.c (get_visual_column): Likewise.
2798         * c-opts.c (c_common_handle_option): Likewise.
2799         (c_common_post_options): Likewise.
2800         (sanitize_cpp_opts): Likewise.
2801         * c-pch.c (c_common_pch_pragma): Likewise.
2802         * c-pragma.c (handle_pragma_pack): Likewise.
2804 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
2806         PR tree-optimization/89550
2807         * c-common.c (c_common_truthvalue_conversion): Only set
2808         TREE_NO_WARNING if warning_at returned true.
2809         * c-warn.c (overflow_warning, warn_logical_operator): Likewise.
2811 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
2812             Martin Sebor  <msebor@gmail.com>
2814         * c.opt (Wmissing-attributes): Clean up doc string.
2816 2019-02-25  Jakub Jelinek  <jakub@redhat.com>
2818         PR c/89495
2819         * c-format.c (maybe_read_dollar_number): Compute nargnum in
2820         HOST_WIDE_INT type to avoid overflows and change overflow_flag
2821         checking.
2823 2019-02-22  Richard Biener  <rguenther@suse.de>
2825         * c-pch.c (no_checksum): Remove.
2826         (pch_init): Remove assertion that executable_checksum is not
2827         all zero.
2828         (c_common_valid_pch): Likewise.
2830 2019-02-18  Martin Sebor  <msebor@redhat.com>
2832         PR middle-end/89294
2833         * c-common.c (invalid_array_size_error): Handle cst_size_not_constant.
2835 2019-02-16  David Malcolm  <dmalcolm@redhat.com>
2837         PR c++/88680
2838         * c-common.c (shorten_compare): Call fold_for_warn on op0 when
2839         implementing -Wtype-limits.
2841 2019-02-11  Martin Sebor  <msebor@redhat.com>
2843         PR c++/87996
2844         * c-common.c (invalid_array_size_error): New function.
2845         (valid_array_size_p): Call it.  Handle size as well as type.
2846         * c-common.h (valid_constant_size_p): New function.
2847         (enum cst_size_error): New type.
2849 2019-01-31  David Malcolm  <dmalcolm@redhat.com>
2851         PR c/89122
2852         * known-headers.cc (get_stdlib_header_for_name): Add
2853         {FLT|DBL|LDBL}_{MAX|MIN} to "hints" array.
2855 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
2857         PR libstdc++/88170
2858         * c-pretty-print.c (pp_c_enumeration_constant): Print always as
2859         a C cast in pp_c_flag_gnu_v3 mode.
2861 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
2863         PR c/86125
2864         * c-common.c (c_common_nodes_and_builtins): Build type variants for
2865         builtin_structptr_types types even for C.
2867 2019-01-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2869         * c-warn.c (check_address_or_pointer_of_packed_member): Handle the case
2870         when rhs is of array type correctly.  Fix handling of nested structures.
2871         Fix handling of indirect_ref together with nop_expr and/or addr_expr.
2872         (check_and_warn_address_or_pointer_of_packed_member): Fix handling of
2873         type casts within nested compound expressions.
2875 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
2877         PR middle-end/88968
2878         * c-omp.c (c_finish_omp_atomic): For bitfield atomics, update type
2879         variable after using BIT_FIELD_REF.
2881 2019-01-18  H.J. Lu  <hongjiu.lu@intel.com>
2883         PR c/51628
2884         PR c/88664
2885         * c-common.h (warn_for_address_or_pointer_of_packed_member):
2886         Remove the boolean argument.
2887         * c-warn.c (check_address_of_packed_member): Renamed to ...
2888         (check_address_or_pointer_of_packed_member): This.  Also
2889         warn pointer conversion.
2890         (check_and_warn_address_of_packed_member): Renamed to ...
2891         (check_and_warn_address_or_pointer_of_packed_member): This.
2892         Also warn pointer conversion.
2893         (warn_for_address_or_pointer_of_packed_member): Remove the
2894         boolean argument.  Don't check pointer conversion here.
2896 2019-01-15  Richard Sandiford  <richard.sandiford@arm.com>
2898         PR inline-asm/52813
2899         * c.opt (Wdeprecated): Move documentation and variable to common.opt.
2901 2019-01-14  Jakub Jelinek  <jakub@redhat.com>
2903         * c-cppbuiltin.c (c_cpp_builtin): Define __cpp_guaranteed_copy_elision
2904         and __cpp_nontype_template_parameter_auto.  Add a comment that
2905         __cpp_template_auto is deprecated.
2907 2019-01-14  Tom Honermann  <tom@honermann.net>
2909         Implement P0482R5, char8_t: A type for UTF-8 characters and strings
2910         * c-common.c (c_common_reswords): Add char8_t.
2911         (fix_string_type): Use char8_t for the type of u8 string literals.
2912         (c_common_get_alias_set): char8_t doesn't alias.
2913         (c_common_nodes_and_builtins): Define char8_t as a builtin type in
2914         C++.
2915         (c_stddef_cpp_builtins): Add __CHAR8_TYPE__.
2916         (keyword_begins_type_specifier): Add RID_CHAR8.
2917         * c-common.h (rid): Add RID_CHAR8.
2918         (c_tree_index): Add CTI_CHAR8_TYPE and CTI_CHAR8_ARRAY_TYPE.
2919         Define D_CXX_CHAR8_T and D_CXX_CHAR8_T_FLAGS.
2920         Define char8_type_node and char8_array_type_node.
2921         * c-cppbuiltin.c (cpp_atomic_builtins): Predefine
2922         __GCC_ATOMIC_CHAR8_T_LOCK_FREE.
2923         (c_cpp_builtins): Predefine __cpp_char8_t.
2924         * c-lex.c (lex_string): Use char8_array_type_node as the type of
2925         CPP_UTF8STRING.
2926         (lex_charconst): Use char8_type_node as the type of CPP_UTF8CHAR.
2927         * c-opts.c: If not otherwise specified, enable -fchar8_t when
2928         targeting C++2a.
2929         * c.opt: Add the -fchar8_t command line option.
2931 2019-01-14  Martin Sebor  <msebor@redhat.com>
2933         PR target/88638
2934         * c-attribs.c (positional_argument): Call valid_format_string_type_p
2935         and issue errors if it fails.
2936         * c-common.h (valid_format_string_type_p): Declare.
2937         * c-format.c (valid_stringptr_type_p): Rename...
2938         (valid_format_string_type_p): ...to this and make extern.
2939         (handle_format_arg_attribute): Adjust to new name.
2940         (check_format_string): Same.
2942 2019-01-13  H.J. Lu  <hongjiu.lu@intel.com>
2944         * c-warn.c (warn_for_address_or_pointer_of_packed_member):
2945         Replace "may may" with "may" in warning message.
2947 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
2949         PR c++/85052
2950         * c-common.h (enum rid): Add RID_BUILTIN_CONVERTVECTOR.
2951         (c_build_vec_convert): Declare.
2952         * c-common.c (c_build_vec_convert): New function.
2954 2019-01-04  Martin Sebor  <msebor@redhat.com>
2956         PR c/88546
2957         * c-attribs.c (handle_copy_attribute): Avoid copying attribute leaf.
2958         Handle C++ empty throw specification and C11 _Noreturn.
2959         (has_attribute): Also handle C11 _Noreturn.
2961 2019-01-04  Martin Sebor  <msebor@redhat.com>
2963         PR c/88363
2964         * c-attribs.c (positional_argument): Also accept enumerated types.
2966 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
2968         Update copyright years.
2970 2018-12-20  H.J. Lu  <hongjiu.lu@intel.com>
2972         PR c/51628
2973         * c-common.h (warn_for_address_or_pointer_of_packed_member): New.
2974         * c-warn.c (check_alignment_of_packed_member): New function.
2975         (check_address_of_packed_member): Likewise.
2976         (check_and_warn_address_of_packed_member): Likewise.
2977         (warn_for_address_or_pointer_of_packed_member): Likewise.
2978         * c.opt: Add -Wno-address-of-packed-member.
2980 2018-12-20  David Malcolm  <dmalcolm@redhat.com>
2982         PR c++/87504
2983         * c-warn.c (get_outermost_macro_expansion): New function.
2984         (spelled_the_same_p): Use it to unwind the macro expansions, and
2985         compare the outermost macro in each nested expansion, rather than
2986         the innermost.
2988 2018-12-19  David Malcolm  <dmalcolm@redhat.com>
2990         PR c++/87504
2991         * c-common.h (warn_tautological_cmp): Convert 1st param from
2992         location_t to const op_location_t &.
2993         * c-warn.c (find_array_ref_with_const_idx_r): Call fold_for_warn
2994         when testing for INTEGER_CST.
2995         (warn_tautological_bitwise_comparison): Convert 1st param from
2996         location_t to const op_location_t &; use it to build a
2997         binary_op_rich_location, and use this.
2998         (spelled_the_same_p): New function.
2999         (warn_tautological_cmp): Convert 1st param from location_t to
3000         const op_location_t &.  Warn for macro expansions if
3001         spelled_the_same_p.  Use binary_op_rich_location.
3003 2018-12-19  David Malcolm  <dmalcolm@redhat.com>
3005         PR c++/43064
3006         PR c++/43486
3007         * c-common.c (unsafe_conversion_p): Fold any location wrapper.
3008         (verify_tree): Handle location wrappers.
3009         (c_common_truthvalue_conversion): Strip any location wrapper.
3010         Handle CONST_DECL.
3011         (fold_offsetof): Strip any location wrapper.
3012         (complete_array_type): Likewise for initial_value.
3013         (convert_vector_to_array_for_subscript): Call fold_for_warn on the
3014         index before checking for INTEGER_CST.
3015         * c-pretty-print.c (c_pretty_printer::primary_expression): Don't
3016         print parentheses around location wrappers.
3017         * c-warn.c (warn_logical_operator): Call fold_for_warn on op_right
3018         before checking for INTEGER_CST.
3019         (warn_tautological_bitwise_comparison): Call
3020         tree_strip_any_location_wrapper on lhs, rhs, and bitop's operand
3021         before checking for INTEGER_CST.
3022         (readonly_error): Strip any location wrapper.
3023         (warn_array_subscript_with_type_char): Strip location wrappers
3024         before checking for INTEGER_CST.  Use the location of the index if
3025         available.
3027 2018-12-06  Jason Merrill  <jason@redhat.com>
3029         PR c++/88136 - -Wdeprecated-copy false positives
3030         * c.opt (Wdeprecated-copy-dtor): New.
3031         (Wdeprecated-copy): Move to -Wextra.
3033 2018-11-29  Martin Sebor  <msebor@redhat.com>
3035         PR c/88172
3036         PR testsuite/88208
3037         * c-attribs.c (common_handle_aligned_attribute): Silently avoid setting
3038         alignments to values less than the target requires.
3039         (has_attribute): For attribute aligned consider both the attribute
3040         and the alignment bits.
3041         * c-common.c (c_init_attributes): Optionally issue a warning for
3042         zero alignment.
3044 2018-11-28  Martin Sebor  <msebor@redhat.com>
3046         PR c/88065
3047         PR c/87297
3048         * c-warn.c (sizeof_pointer_memaccess_warning): Bail if source
3049         or destination is an error.
3051 2018-11-28  Jakub Jelinek  <jakub@redhat.com>
3053         PR c++/88215
3054         * c-ubsan.c: Include langhooks.h.
3055         (ubsan_instrument_division): Change gcc_assert that main variants
3056         of op0 and op1 types are equal to gcc_checking_assert that the
3057         main variants are compatible types.
3059 2018-11-27  Eric Botcazou  <ebotcazou@adacore.com>
3061         * c-ada-spec.c: Include stringpool.h.
3062         (has_static_fields): Return false for incomplete types.
3063         (is_tagged_type): Likewise.
3064         (has_nontrivial_methods): Likewise.
3065         (dump_ada_node) <INTEGER_TYPE>: Deal specifically with __int128.
3066         (struct overloaded_name_hash): New structure.
3067         (struct overloaded_name_hasher): Likewise.
3068         (overloaded_names): New global variable.
3069         (init_overloaded_names): New static function.
3070         (overloaded_name_p): New predicate.
3071         (dump_ada_declaration) <TYPE_DECL>: Tidy up and set TREE_VISITED
3072         on the TYPE_STUB_DECL of the original type of a typedef, if any.
3073         <FUNCTION_DECL>: Bail out for an unsupported overloaded name.
3074         Remove always-true condition and dump forward types.
3075         (dump_ada_specs): Delete overloaded_names.
3077 2018-11-20  Martin Sebor  <msebor@redhat.com>
3079         * c-attribs.c (type_for_vector_size): New function.
3080         (type_valid_for_vector_size): Same.
3081         (handle_vector_size_attribute): Move code to the functions above
3082         and call them.
3083         (validate_attribute, has_attribute): New functions.
3084         * c-common.h (has_attribute): Declare.
3085         (rid): Add RID_HAS_ATTRIBUTE_EXPRESSION.
3086         * c-common.c (c_common_resword): Same.
3088 2018-11-16  Jason Merrill  <jason@redhat.com>
3090         * c-lex.c (c_common_has_attribute): Handle likely/unlikely.
3091         * c-attribs.c (attr_cold_hot_exclusions): Make public.
3093 2018-11-16  Jakub Jelinek  <jakub@redhat.com>
3095         PR middle-end/87854
3096         * c-common.c (fix_string_type): Reject string literals larger than
3097         TYPE_MAX_VALUE (ssizetype) bytes.
3099 2018-11-15  Martin Sebor  <msebor@redhat.com>
3101         PR c++/87541
3102         PR c++/87542
3103         * c-attribs.c (positional_argument): New function.
3104         (handle_alloc_size_attribute): Use it and simplify.
3105         (handle_alloc_align_attribute): Same.
3106         (handle_assume_aligned_attribute): Same.
3107         (handle_nonnull_attribute): Same.
3108         * c-common.c (check_function_arguments): Pass fntype to
3109         check_function_format.
3110         * c-common.h (check_function_format): Add an argument.
3111         (PosArgFlags, positional_argument): Declare new type and function.
3112         * c-format.c (decode_format_attr): Add arguments.
3113         (check_format_string, get_constant): Same.
3114         (convert_format_name_to_system_name): Adjust.
3116 2018-11-15  David Malcolm  <dmalcolm@redhat.com>
3118         PR other/19165
3119         * c-opts.c (c_diagnostic_finalizer): Add diagnostic_t param.
3121 2018-11-14  Jakub Jelinek  <jakub@redhat.com>
3123         P1236R1 - Signed integers are two's complement
3124         * c-warn.c (maybe_warn_shift_overflow): Don't warn for c++2a.
3125         * c-ubsan.c (ubsan_instrument_shift): Make signed shifts
3126         with in-range second operand well defined for -std=c++2a.
3128         PR other/88007
3129         * c-common.c (parse_optimize_options): Allocate option string from
3130         opts_obstack rather than as GC memory.  Move the allocation after
3131         warning for invalid option.
3133 2018-11-13  David Malcolm  <dmalcolm@redhat.com>
3135         * c-common.c (c_get_substring_location): Update for renaming of
3136         get_source_location_for_substring to get_location_within_string.
3137         * c-lex.c: Replace "source_location" with "location_t".
3138         * c-opts.c: Likewise.
3139         * c-ppoutput.c: Likewise.
3141 2018-11-13  Martin Sebor  <msebor@redhat.com>
3143         PR middle-end/81824
3144         * c-attribs.c (handle_copy_attribute): Exclude inlining attributes.
3145         (handle_tls_model_attribute): Improve diagnostics.
3147 2018-11-12  Jason Merrill  <jason@redhat.com>
3149         * c-cppbuiltin.c (c_cpp_builtins): Define
3150         __cpp_impl_destroying_delete.
3152         * c-cppbuiltin.c (c_cpp_builtins): Change __cpp_explicit_bool to
3153         __cpp_conditional_explicit.
3155 2018-11-09  Martin Sebor  <msebor@redhat.com>
3157         PR middle-end/81824
3158         * c-attribs.c (handle_copy_attribute): New function.
3160 2018-11-09  Martin Sebor  <msebor@redhat.com>
3162         PR c/87795
3163         * c-common.c (check_user_alignment): Use MAX_OFILE_ALIGNMENT.
3165 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
3167         * c-common.h (c_finish_omp_taskgroup): Add CLAUSES argument.
3168         (c_finish_omp_atomic): Replace bool SEQ_CST argument with
3169         enum omp_memory_order MEMORY_ORDER.
3170         (c_finish_omp_flush): Add MO argument.
3171         (c_omp_depend_t_p, c_finish_omp_depobj): Declare.
3172         (c_finish_omp_for): Add FINAL_P argument.
3173         * c-omp.c: Include memmodel.h.
3174         (c_finish_omp_taskgroup): Add CLAUSES argument.  Set
3175         OMP_TASKGROUP_CLAUSES to it.
3176         (c_finish_omp_atomic): Replace bool SEQ_CST argument with
3177         enum omp_memory_order MEMORY_ORDER.  Set OMP_ATOMIC_MEMORY_ORDER
3178         instead of OMP_ATOMIC_SEQ_CST.
3179         (c_omp_depend_t_p, c_finish_omp_depobj): New functions.
3180         (c_finish_omp_flush): Add MO argument, if not MEMMODEL_LAST, emit
3181         __atomic_thread_fence call with the given value.
3182         (check_omp_for_incr_expr): Formatting fixes.
3183         (c_finish_omp_for): Add FINAL_P argument.  Allow NE_EXPR
3184         even in OpenMP loops, diagnose if NE_EXPR and incr expression
3185         is not constant expression 1 or -1.  Transform NE_EXPR loops
3186         with iterators pointers to VLA into LT_EXPR or GT_EXPR loops.
3187         (c_omp_check_loop_iv_r): Look for orig decl of C++ range for
3188         loops too.
3189         (c_omp_split_clauses): Add support for combined
3190         #pragma omp parallel master and
3191         #pragma omp {,parallel }master taskloop{, simd} constructs.
3192         Handle OMP_CLAUSE_IN_REDUCTION.  Handle OMP_CLAUSE_REDUCTION_TASK.
3193         Handle OMP_CLAUSE_NONTEMPORAL.  Handle splitting OMP_CLAUSE_IF
3194         also to OMP_SIMD.  Copy OMP_CLAUSE_LASTPRIVATE_CONDITIONAL.
3195         (c_omp_predetermined_sharing): Don't return
3196         OMP_CLAUSE_DEFAULT_SHARED for const qualified decls.
3197         * c-pragma.c (omp_pragmas): Add PRAGMA_OMP_DEPOBJ and
3198         PRAGMA_OMP_REQUIRES.
3199         * c-pragma.h (enum pragma_kind): Likewise.
3200         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_NONTEMPORAL
3201         and PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION.
3203 2018-11-08  David Malcolm  <dmalcolm@redhat.com>
3205         * c-format.c (gcc_dump_printf_char_table): Add entry for %f.
3207 2018-11-08  David Malcolm  <dmalcolm@redhat.com>
3209         * c-format.c (local_cgraph_node_ptr_node): New variable.
3210         (gcc_dump_printf_char_table): Add entry for %C.
3211         (get_pointer_to_named_type): New function, taken from the handling
3212         code for "gimple *" from...
3213         (init_dynamic_diag_info): ...here.  Add handling for
3214         "cgraph_node *".
3215         * c-format.h (T_CGRAPH_NODE): New.
3217 2018-10-19  Jason Merrill  <jason@redhat.com>
3219         * c-cppbuiltin.c (c_cpp_builtins): Add
3220         __cpp_nontype_template_parameter_class.
3222 2018-10-31  Nathan Sidwell  <nathan@acm.org>
3224         * c-opts.c (c_finish_options): Force command line macro
3225         location.  Refactor to avoid repeating main debug hook.
3226         (push_command_line_include): Clarify comment.
3228         * c-opts.c (c_finish_options): Adjust cpp_force_token_locations call.
3230 2018-10-30  Martin Sebor  <msebor@redhat.com>
3232         PR middle-end/87041
3233         * c-format.c (check_format_types): Avoid diagnosing null pointer
3234         arguments to printf-family of functions.
3236 2018-10-30  Marek Polacek  <polacek@redhat.com>
3238         Implement P0892R2, explicit(bool).
3239         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_explicit_bool.
3241 2018-10-29  David Malcolm  <dmalcolm@redhat.com>
3243         * name-hint.h (name_hint::take_deferred): New member function.
3245 2018-10-29  David Malcolm  <dmalcolm@redhat.com>
3247         PR c++/56856
3248         * c-common.c (check_function_sentinel): Call fold_for_warn on the
3249         argument.
3250         (check_function_restrict): Rename param "argarray" to
3251         "unfolded_argarray", and make a copy named "argarray", calling
3252         fold_for_warn on each argument.
3253         (check_function_arguments): Add note about responsibility for
3254         folding the arguments.
3256 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
3258         * c-common.c (flag_isoc2x): New variable.
3259         * c-common.h (clk_c): Update comment to reference C2X.
3260         (flag_isoc99, flag_isoc11): Update comments to reference future
3261         standard versions in general.
3262         (flag_isoc2x): Declare.
3263         * c-opts.c (set_std_c2x): New function.
3264         (c_common_handle_option): Handle -std=c2x and -std=gnu2x.
3265         (set_std_c89, set_std_c99, set_std_c11, set_std_c17): Set
3266         flag_isoc2x to 0.
3267         * c.opt (Wc11-c2x-compat, std=c2x, std=gnu2x): New options.
3269 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
3271         * c.opt (std=c17, std=c18, std=gnu17, std=gnu18, std=iso9899:2017)
3272         (std=iso9899:2018): Document C17 as published in 2018.
3274 2018-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
3276         PR c++/87364
3277         * c-pretty-print.c (c_pretty_printer::constant): Fix typo.
3279 2018-10-11  Will Wray  <wjwray@gmail.com>
3281         PR c++/87364
3282         * c-pretty-print.h (pp_c_type_cast): Prototype.
3283         (pp_c_integer_constant): Likewise.
3284         * c-pretty-print.c (pp_c_type_cast): No longer static.
3285         (pp_c_integer_constant): Likewise.
3286         (pp_c_enumeration_constant): Fix loop termination when finding
3287         name of constant.  No longer returns a value.  Call
3288         pp_c_integer_constant.
3289         (c_pretty_printer::constant): Update for changes to
3290         pp_c_enumeration_constant.
3292 2018-10-11  Jakub Jelinek  <jakub@redhat.com>
3294         * c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312
3295         for no_unique_address.
3297 2018-10-09  David Malcolm  <dmalcolm@redhat.com>
3299         * c-common.c (c_option_controlling_cpp_error): Rename to...
3300         (c_option_controlling_cpp_diagnostic): ...this, and convert
3301         "reason" from int to enum.
3302         (c_cpp_error): Rename to...
3303         (c_cpp_diagnostic): ...this, converting level and reason to enums.
3304         * c-common.h (c_cpp_error): Rename to...
3305         (c_cpp_diagnostic): ...this, converting level and reason to enums.
3306         * c-opts.c (c_common_init_options): Update for renaming.
3308 2018-10-08  Richard Sandiford  <richard.sandiford@arm.com>
3310         PR c/87286
3311         * c-common.c (vector_types_compatible_elements_p): Use
3312         INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE.
3314 2018-10-04  Vinay Kumar  <vinay.kumar@blackfigtech.com>
3316         * c-attribs.c (get_priority): Add a warning flag warn_prio_ctor_dtor
3317         to generate constructor destructor priority warning.
3318         * c.opt (-Wprio-ctor-dtor): New option.
3320 2018-10-01  Jason Merrill  <jason@redhat.com>
3322         * c-lex.c (c_common_has_attribute): Add no_unique_address.
3324 2018-10-01  Eric Botcazou  <ebotcazou@adacore.com>
3326         * c-ada-spec.c (get_underlying_decl): Get to the main type variant.
3327         (dump_ada_node): Add const keyword.
3329 2018-09-25  Martin Liska  <mliska@suse.cz>
3331         * c-common.c (c_common_truthvalue_conversion):
3332         Remove Pascal from documentation.
3334 2018-09-21  Eric Botcazou  <ebotcazou@adacore.com>
3336         * c-ada-spec.c: Include diagnostic.h.
3337         (dump_ada_declaration) <RECORD_TYPE>: Issue a warning on packed layout.
3339 2018-09-19  Marek Polacek  <polacek@redhat.com>
3341         * c.opt (Wclass-conversion): New.
3343 2018-09-17  David Malcolm  <dmalcolm@redhat.com>
3345         * c-format.c (range_label_for_format_type_mismatch::get_text):
3346         Update for new param.
3348 2018-09-17  David Malcolm  <dmalcolm@redhat.com>
3350         * c-format.c (format_warning_at_char): Update for introduction of
3351         format_string_diagnostic_t.
3352         (format_type_warning): Likewise.
3354 2018-09-17  Martin Jambor  <mjambor@suse.cz>
3356         PR c/63886
3357         * c.opt (Wabsolute-value): New.
3359 2018-09-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3361         * c-common.c (complete_flexible_array_elts): New helper function.
3362         * c-common.h (complete_flexible_array_elts): Declare.
3364 2018-09-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3366         * c-common.c (braced_list_to_string): Remove eval parameter.
3367         Add some more checks.  Always create zero-terminated STRING_CST.
3368         * c-common.h (braced_list_to_string): Adjust prototype.
3370 2018-08-27  David Malcolm  <dmalcolm@redhat.com>
3372         PR 87091
3373         * c-common.c (c_cpp_error): Update for conversion of show_caret_p
3374         to a tri-state.
3375         (maybe_suggest_missing_token_insertion): Likewise.
3376         (maybe_add_include_fixit): Add param "override_location".  If set,
3377         and source-printing is enabled, then override the rich_location's
3378         primary location with that of the insertion point for the fix-it
3379         hint, marking it with SHOW_LINES_WITHOUT_RANGE.
3380         * c-common.h (extern void maybe_add_include_fixit): Add bool
3381         param.
3382         * c-format.c (selftest::test_type_mismatch_range_labels): Update
3383         for conversion of show_caret_p to a tri-state.
3384         * c-warn.c (warn_for_restrict): Likewise.
3385         * known-headers.cc
3386         (suggest_missing_header::~suggest_missing_header): Update call to
3387         maybe_add_include_fixit to suggest overriding the location, as it
3388         is for a note.
3390 2018-08-27  Martin Liska  <mliska@suse.cz>
3392         * c-common.c (check_function_restrict): Use new function
3393         fndecl_built_in_p and remove check for FUNCTION_DECL if
3394         possible.
3395         (check_builtin_function_arguments): Likewise.
3396         (reject_gcc_builtin): Likewise.
3397         * c-warn.c (sizeof_pointer_memaccess_warning): Likewise.
3399 2018-08-26  Marek Polacek  <polacek@redhat.com>
3401         PR c++/87029, Implement -Wredundant-move.
3402         * c.opt (Wredundant-move): New option.
3404 2018-08-21  Marek Polacek  <polacek@redhat.com>
3406         PR c++/86981, Implement -Wpessimizing-move.
3407         * c.opt (Wpessimizing-move): New option.
3409 2018-08-20  David Malcolm  <dmalcolm@redhat.com>
3411         PR other/84889
3412         * c-attribs.c (common_handle_aligned_attribute): Add
3413         auto_diagnostic_group instance.
3414         * c-indentation.c (warn_for_misleading_indentation): Likewise.
3415         * c-opts.c (c_common_post_options): Likewise.
3416         * c-warn.c (warn_logical_not_parentheses): Likewise.
3417         (warn_duplicated_cond_add_or_warn): Likewise.
3418         (warn_for_multistatement_macros): Likewise.
3420 2018-08-20  Nathan Sidwell  <nathan@acm.org>
3422         * c-ada-spec.c (macro_length, dump_ada_macros): Adjust macro parm
3423         access.
3425 2018-08-17  Nathan Sidwell  <nathan@acm.org>
3427         * c-cppbuiltin.c (struct lazy_hex_fp_value_struct): Remove macro
3428         field.
3429         (laxy_hex_fp_value_count): Make unsigned.
3430         (lazy_hex_fp_value): Provided with macro & lazy number.  Directly
3431         manipulate the macro.
3432         (builtin_defin_with_hex_fp_value): Adjust callback name, use
3433         cpp_define_lazily.
3435 2018-08-17  David Malcolm  <dmalcolm@redhat.com>
3437         * c-format.c (enum format_type): Add gcc_dump_printf_format_type.
3438         (gcc_dump_printf_length_specs): New.
3439         (gcc_dump_printf_flag_pairs): New.
3440         (gcc_dump_printf_flag_specs): New.
3441         (gcc_dump_printf_char_table): New.
3442         (format_types_orig): Add entry for "gcc_dump_printf".
3443         (init_dynamic_diag_info): Set up length_char_specs and
3444         conversion_specs for gcc_dump_printf_format_type.
3445         (handle_format_attribute): Handle gcc_dump_printf_format_type.
3447 2018-08-17  Nathan Sidwell  <nathan@acm.org>
3449         * c-ada-spec.c (macro_length, dump_ada_macros): Constify.
3451         * c-ada-spec.c: Don't #include "cpp-id-data.h"
3452         * c-cppbuiltin.c: Likewise.
3454 2018-08-17  Martin Liska  <mliska@suse.cz>
3456         * c.opt: Remove Warn, Init and Report for options with
3457         Ignore/Deprecated flag. Warning is done automatically for
3458         Deprecated flags.
3460 2018-08-16  David Malcolm  <dmalcolm@redhat.com>
3462         PR c++/70693
3463         * c-common.c (selftest::c_family_tests): Call
3464         selftest::c_indentation_c_tests.
3465         * c-common.h (selftest::c_indentation_c_tests): New decl.
3466         * c-indentation.c: Include "selftest.h".
3467         (next_tab_stop): Add "tab_width" param, rather than accessing
3468         cpp_opts.
3469         (get_visual_column): Likewise.  Clarify comment.  Bulletproof
3470         against reading past the end of the line.
3471         (get_first_nws_vis_column): Add "tab_width" param.
3472         (detect_intervening_unindent): Likewise.
3473         (should_warn_for_misleading_indentation): Read tab width from
3474         cpp_opts and pass around.
3475         (selftest::test_next_tab_stop): New test.
3476         (selftest::assert_get_visual_column_succeeds): New function.
3477         (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro.
3478         (selftest::assert_get_visual_column_fails): New function.
3479         (ASSERT_GET_VISUAL_COLUMN_FAILS): New macro.
3480         (selftest::test_get_visual_column): New test.
3481         (selftest::c_indentation_c_tests): New function.
3483 2018-08-16  Nathan Sidwell  <nathan@acm.org>
3485         * c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p.
3486         (store_ada_macro): Likewise.
3487         * c-ppoutput.c (cb_used_define, dump_macro): Likewise.
3488         * c-spellcheck.cc (should-suggest_as_macro_p): Likewise,
3490 2018-08-15  David Malcolm  <dmalcolm@redhat.com>
3492         * c-format.c: Include "selftest-diagnostic.h" and
3493         "gcc-rich-location.h".
3494         (format_warning_at_char): Pass NULL for new label params of
3495         format_warning_va.
3496         (class indirection_suffix): New class.
3497         (class range_label_for_format_type_mismatch): New class.
3498         (format_type_warning): Move logic for generating "*" suffix to
3499         class indirection_suffix.  Create "fmt_label" and "param_label"
3500         to show their types, and pass them to the
3501         format_warning_at_substring calls.
3502         (selftest::test_type_mismatch_range_labels): New test.
3503         (selftest::c_format_c_tests): Call it.
3505 2018-08-13  Martin Sebor  <msebor@redhat.com>
3507         PR tree-optimization/71625
3508         * c-common.c (braced_list_to_string): New function.
3509         * c-common.h (braced_list_to_string): Declare it.
3511 2018-08-08  Nathan Sidwell  <nathan@acm.org>
3513         * c-common.c (try_to_locate_new_include_inertion_point): Use
3514         linemap_included_from_linemap.
3515         * c-lex.c (fe_file_change): Use linemap_included_from.
3516         * c-ppoutput.c (pp_file_change): Likewise.
3518 2018-08-01  Martin Sebor  <msebor@redhat.com>
3520         PR tree-optimization/86650
3521         * c-format.c (gcc_tdiag_char_table): Update comment for "%G".
3522         (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same.
3523         (init_dynamic_diag_info): Update from "gcall *" to "gimple *".
3524         * c-format.h (T89_G): Update to be "gimple *" rather than
3525         "gcall *".
3526         (local_gcall_ptr_node): Rename...
3527         (local_gimple_ptr_node): ...to this.
3529 2018-07-31  David Malcolm  <dmalcolm@redhat.com>
3531         * c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing
3532         table entries for gcc_diag_char_table, and the 'Z' entry from
3533         gcc_tdiag_char_table, changing the "chain" entry for 'Z' from
3534         &gcc_tdiag_char_table[0] to &gcc_diag_char_table[0].
3535         (gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly
3536         adding missing "Z" for this table.  Remove erroneous "G" and "K"
3537         entries.
3538         (gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE.  Remove "v".
3539         (gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE.
3540         (gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE.  Remove "v".
3542 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
3544         * c-common.c (speculation_safe_resolve_call): New function.
3545         (speculation_safe_resolve_params): New function.
3546         (speculation_safe_resolve_return): New function.
3547         (resolve_overloaded_builtin): Handle __builtin_speculation_safe_value.
3548         * c-cppbuiltin.c (c_cpp_builtins): Add pre-define for
3549         __HAVE_SPECULATION_SAFE_VALUE.
3551 2018-07-20  David Malcolm  <dmalcolm@redhat.com>
3553         * c-common.c (c_cpp_error): Remove redundant "line_table"
3554         parameter from call to rich_location::set_range.
3555         (maybe_suggest_missing_token_insertion): Likewise.
3557 2018-07-20  Martin Sebor  <msebor@redhat.com>
3559         PR middle-end/82063
3560         * c.opt (-Warray-bounds): Remove redundant -Wall.
3562 2018-07-20  Martin Sebor  <msebor@redhat.com>
3564         PR middle-end/82063
3565         * c-common.h (c_common_handle_option): Change function argument
3566         to HOST_WIDE_INT.
3567         * c-opts.c (c_common_init_options): Same.
3568         (c_common_handle_option): Same.  Remove special handling of
3569         OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_.
3570         * c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change
3571         options to take a HOST_WIDE_INT argument and accept a byte-size
3572         suffix.  Initialize.
3573         (-Wvla-larger-than): Same.
3574         (-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New.
3575         (-Wno-vla-larger-than): Same.
3577 2018-07-12  Jakub Jelinek  <jakub@redhat.com>
3579         * c-attribs.c (c_common_attribute_table): Add
3580         "omp declare target implicit" attribute.
3582 2018-07-12  Richard Biener  <rguenther@suse.de>
3584         PR c/86453
3585         * c-attribs.c (handle_packed_attribute): Do not build a variant
3586         type with TYPE_PACKED, instead ignore the attribute if we may
3587         not apply to the original type.
3589 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
3591         PR c++/86443
3592         * c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv
3593         to contain TREE_LIST for both the original class iterator and the
3594         "last" helper var.
3596 2018-07-07  Eric Botcazou  <ebotcazou@adacore.com>
3598         * c-ada-spec.c (to_ada_name): Remove index parameter.
3599         (pp_ada_tree_identifier): Likewise.
3600         (dump_ada_macros): Adjust call to to_ada_name.
3601         (struct overloaded_name_hash): Delete.
3602         (struct overloaded_name_hasher): Likewise.
3603         (overloaded_names): Likewise.
3604         (compute_overloading_index): Likewise.
3605         (dump_ada_decl_name): Do not call compute_overloading_index and
3606         adjust calls to pp_ada_tree_identifier.
3607         (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
3608         (dump_ada_import): Add spc parameter and switch to aspect syntax.
3609         (dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier.
3610         (dump_ada_enum_type): Remove type and display_convention parameters.
3611         Adjust calls to pp_ada_tree_identifier.
3612         (dump_ada_node): Likewise and for dump_ada_structure.
3613         (dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type
3614         and tidy up.
3615         <RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect
3616         syntax.
3617         (print_constructor): Adjust call to pp_ada_tree_identifier.
3618         (print_destructor): Likewise.
3619         (dump_ada_declaration): Switch to aspect syntax.
3620         (dump_ada_structure): Likewise and tidy up.  Replace display_convention
3621         parameter with nested parameter.
3622         (dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005.
3623         (dump_ada_specs): Do not delete overloaded_names table.
3625 2018-07-06  Peter Bergner  <bergner@linux.ibm.com>
3627         PR target/86324
3628         * c-attribs.c (handle_mode_attribute): Call translate_mode_attribute
3629         target hook.
3631 2018-07-05  Nathan Sidwell  <nathan@acm.org>
3633         * c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not
3634         NO_IMPLICIT_EXTERN_C.
3636 2018-06-28  Martin Liska  <mliska@suse.cz>
3638         * cppspec.c: Include opt-suggestions.h.
3640 2018-06-20  Chung-Lin Tang  <cltang@codesourcery.com>
3641             Thomas Schwinge  <thomas@codesourcery.com>
3642             Cesar Philippidis  <cesar@codesourcery.com>
3644         * c-pragma.h (enum pragma_omp_clause): Add
3645         PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove
3646         PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}.
3648 2018-06-20  Jakub Jelinek  <jakub@redhat.com>
3650         PR c++/86210
3651         * c-common.c (check_nonnull_arg): Use fold_for_warn.  Adjust obsolete
3652         comment.
3654 2018-06-18  Martin Sebor  <msebor@redhat.com>
3656         PR middle-end/85602
3657         * c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute
3658         nonstring.
3660 2018-06-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
3662         * c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR.
3664 2018-06-13  Jason Merrill  <jason@redhat.com>
3666         * c-opts.c (c_common_post_options): Warn about useless -Wabi.
3667         (c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version
3668         handling.
3670         PR c++/86094 - wrong code with defaulted move ctor.
3671         * c-opts.c (c_common_post_options): Bump the current ABI version to
3672         13.  Set warn_abi_version and flag_abi_compat_version to the current
3673         version rather than 0.  Fix defaulting flag_abi_compat_version from
3674         warn_abi_version.
3676 2018-06-12  Martin Sebor  <msebor@redhat.com>
3678         PR c/85931
3679         * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when
3680         sizeof source and destination yields the same value.
3682 2018-06-12  Martin Liska  <mliska@suse.cz>
3684         * c.opt: Make MPX-related options as Deprecated.
3686 2018-06-08  David Malcolm  <dmalcolm@redhat.com>
3688         * c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE
3689         rather than 0.
3691 2018-06-08  Martin Liska  <mliska@suse.cz>
3693         * c-attribs.c (handle_bnd_variable_size_attribute): Remove support
3694         for MPX (macros, related functions, fields in cgraph_node, ...).
3695         (handle_bnd_legacy): Likewise.
3696         (handle_bnd_instrument): Likewise.
3697         * c.opt: Likewise.
3699 2018-06-06  Jakub Jelinek  <jakub@redhat.com>
3701         PR c++/86068
3702         * c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set
3703         __cpp_transactional_memory to 201500 instead of 210500.
3705 2018-06-06  Jason Merrill  <jason@redhat.com>
3707         PR c++/85710 - ICE with -Wmemset-elt-size.
3708         * c-warn.c (warn_for_memset): Don't crash on incomplete element type.
3710 2018-06-01  Jason Merrill  <jason@redhat.com>
3712         * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to
3713         201703.
3715 2018-06-01  Eric Botcazou  <ebotcazou@adacore.com>
3717         * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward
3718         declaration for a typedef independently of whether the declaration of
3719         the subtype is generated.
3721 2018-05-31  Martin Sebor  <msebor@redhat.com>
3723         PR c/82063
3724         * c.opt (-Wno-alloc-size-larger-than): New option.
3726 2018-04-22  David Pagan  <dave.pagan@oracle.com>
3728         PR c/55976
3729         * c-opts.c (c_common_post_options): Set default for warn_return_type
3730         for C++/C++ with ObjC extensions only. For C, makes it possible to
3731         differentiate between default (no option), -Wreturn-type, and
3732         -Wno-return-type.
3734 2018-05-29  Jason Merrill  <jason@redhat.com>
3736         * c.opt (Winit-list-lifetime): New flag.
3738 2018-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3740         * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and
3741         splay_tree_delete_pointers.
3743 2018-05-26  Jakub Jelinek  <jakub@redhat.com>
3745         PR bootstrap/85921
3746         * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary
3747         noinline variable to workaround broken kernel headers.
3749 2018-05-18  Jason Merrill  <jason@redhat.com>
3751         * c.opt (Wdeprecated-copy): New flag.
3753 2018-05-17  Martin Liska  <mliska@suse.cz>
3755         * c-warn.c (overflow_warning): Do not use
3756         space in between 'G_' and '('.
3758 2018-05-09  Jason Merrill  <jason@redhat.com>
3760         * c-common.c (valid_array_size_p): Add complain parameter.
3761         * c-common.h: ...which defaults to true.
3763 2018-05-11  Jakub Jelinek  <jakub@redhat.com>
3765         PR c/85696
3766         * c-omp.c (c_omp_predetermined_sharing): Return
3767         OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.
3769 2018-05-11  Martin Liska  <mliska@suse.cz>
3771         PR sanitizer/85556
3772         * c-attribs.c (handle_no_sanitize_attribute): Iterate all
3773         TREE_LIST values.
3775 2018-05-10  Jakub Jelinek  <jakub@redhat.com>
3777         PR c++/85662
3778         * c-common.h (fold_offsetof_1): Removed.
3779         (fold_offsetof): Add TYPE argument defaulted to size_type_node and
3780         CTX argument defaulted to ERROR_MARK.
3781         * c-common.c (fold_offsetof_1): Renamed to ...
3782         (fold_offsetof): ... this.  Remove wrapper function.  Add TYPE
3783         argument, convert the pointer constant to TYPE and use size_binop
3784         with PLUS_EXPR instead of fold_build_pointer_plus if type is not
3785         a pointer type.  Adjust recursive calls.
3787 2018-05-10  Eric Botcazou  <ebotcazou@adacore.com>
3789         PR c++/85400
3790         * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs.
3792 2018-05-07  Nathan Sidwell  <nathan@acm.org>
3794         * c.opt (ffor-scope): Remove functionality, issue warning.
3796 2018-05-03  Nathan Sidwell  <nathan@acm.org>
3798         * c.opt (ffriend-injection): Remove functionality, issue warning.
3800 2018-05-01  David Malcolm  <dmalcolm@redhat.com>
3802         PR c/84258
3803         * c-format.c (struct format_check_results): Add field
3804         "number_non_char".
3805         (check_format_info): Initialize it, and warn if encountered.
3806         (check_format_arg): Distinguish between wide char and
3807         everything else when detecting arrays of non-char.
3809 2018-04-30  David Malcolm  <dmalcolm@redhat.com>
3811         * c-format.c (get_corrected_substring): Update for
3812         location_get_source_line returning a char_span.  Use a char_span
3813         when handling the prefix of the correction.
3814         * c-indentation.c (get_visual_column): Update for
3815         location_get_source_line returning a char_span.
3816         (get_first_nws_vis_column): Likewise.
3818 2018-03-29  David Malcolm  <dmalcolm@redhat.com>
3820         PR c++/84269
3821         * known-headers.cc (get_stdlib_header_for_name): Add various names
3822         from <assert.h>, <string.h>, and <memory.h>; add more names from
3823         <stdio.h>.
3825 2018-03-27  Jakub Jelinek  <jakub@redhat.com>
3827         PR c++/85061
3828         * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that
3829         get_base_address of the second operand is a VAR_P, rather than the
3830         operand itself, and use gcc_checking_assert instead of gcc_assert.
3832 2018-03-23  Marek Polacek  <polacek@redhat.com>
3834         PR c++/85045
3835         * c-pretty-print.c (c_pretty_printer::multiplicative_expression)
3836         <case RDIV_EXPR>: Tweak condition.
3838 2018-03-20  Eric Botcazou  <ebotcazou@adacore.com>
3840         * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool.
3842 2018-03-16  Jakub Jelinek  <jakub@redhat.com>
3844         PR c/84909
3845         * c-warn.c (conversion_warning): Replace "to to" with "to" in
3846         diagnostics.
3848         PR c/84910
3849         * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
3850         diagnostics.
3852 2018-03-16  Richard Biener  <rguenther@suse.de>
3854         PR c/84873
3855         * c-gimplify.c (c_gimplify_expr): Revert previous change.  Instead
3856         unshare the possibly folded expression.
3858 2018-03-15  Richard Biener  <rguenther@suse.de>
3860         PR c/84873
3861         * c-gimplify.c (c_gimplify_expr): Do not fold expressions.
3863 2018-03-13  Martin Sebor  <msebor@redhat.com>
3865         PR tree-optimization/84725
3866         * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring
3867         with all three narrow character types, including their qualified forms.
3869 2018-03-12  Martin Sebor  <msebor@redhat.com>
3871         PR tree-optimization/83456
3872         * c-common.c (check_function_restrict): Return bool.
3873         Restore checking of bounded built-in functions.
3874         (check_function_arguments): Also return the result
3875         of warn_for_restrict.
3876         * c-common.c (check_function_restrict): Return bool.
3877         * c-warn.c (warn_for_restrict): Return bool.
3879 2018-03-02  Marek Polacek  <polacek@redhat.com>
3881         PR c++/84171
3882         * c-warn.c (warn_for_sign_compare): Bail out if any of the operands
3883         is erroneous.
3885 2018-03-02  Thomas Schwinge  <thomas@codesourcery.com>
3887         * c-attribs.c (c_common_attribute_table): Remove "cilk simd
3888         function".
3890 2018-03-01  Marek Polacek  <polacek@redhat.com>
3892         PR c++/84639
3893         * c-attribs.c (common_handle_aligned_attribute): Don't use invalid
3894         alignment in computation.
3896 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
3898         * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case.
3899         <REAL_TYPE>: Deal specifically with _Float128/__float128.
3901 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
3903         * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case.
3904         (is_char_array): Take a type instead of a declaration.
3905         (dump_ada_array_type): Likewise.
3906         (is_simple_enum): Minor tweak.
3907         (dump_ada_enum_type): New function extracted from...
3908         (dump_ada_node) <ENUMERAL_TYPE>: ...here.  Invoke it.
3909         <INTEGER_TYPE>: Remove unreachable code.
3910         <RECORD_TYPE>: Likewise.  Minor tweaks.
3911         (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes.
3912         <ENUMERAL_TYPE>: New case.
3913         <RECORD_TYPE>: Factor out common code.
3914         (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes.
3915         Minor tweaks.  Deal with enumeral types.
3916         (dump_ada_structure): Minor tweaks.
3918 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
3920         * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic
3921         address for incomplete structures.
3922         (dump_forward_type): Do not bail out for incomplete structures.
3923         (dump_ada_declaration): Do not special-case incomplete structures
3924         for subtypes.  Dump them as null records for types.
3926 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
3928         * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
3929         (is_char_array): Fix formatting.
3930         (dump_template_types): Likewise.
3931         (dump_generic_ada_node): Rename into...
3932         (dump_ada_node): ...this.
3933         <POINTER_TYPE>: Remove superfluous space.  Use generic address for
3934         incomplete structures and not for empty structures.  Do not use it
3935         when forward declarations are needed.
3936         (dump_forward_type): New function.
3937         (dump_nested_types): Remove FORWARD parameter.  Do not consider
3938         TREE_VISITED and do not generate a forward declaration.  Only dump
3939         original nested types for nested declaration.
3940         (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
3941         <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
3942         <RECORD_TYPE>: Do not consider TREE_VISITED.
3943         (dump_ada_declaration): Use booleans and fix formatting throughout.
3944         <TYPE_DECL>: Skip incomplete structures and not empty structures.
3945         Call dump_forward_type instead of dump_nested_types for a typedef.
3946         Remove superfluous check and adjust call to dump_nested_types.
3947         <POINTER_TYPE>: Call dump_forward_type and fall through.
3948         (dump_ada_struct_decl): Rename into...
3949         (dump_ada_structure): ...this.  Do not special-case empty structures.
3951 2018-02-27  Martin Sebor  <msebor@redhat.com>
3953         PR c++/83871
3954         * c.opt (-Wmissing-attributes): New option.
3956 2018-02-21  Martin Liska  <mliska@suse.cz>
3958         * c.opt (Wcatch-value=): Add IntegerRange.
3960 2018-02-15  Jason Merrill  <jason@redhat.com>
3962         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
3964 2018-02-09  Nathan Sidwell  <nathan@acm.org>
3966         PR c/84293
3967         * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
3968         arg.
3969         * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
3970         arg.  Adjust.
3972 2018-02-09  Martin Sebor  <msebor@redhat.com>
3974         PR lto/84212
3975         * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
3976         (-Walloc-size-larger-than, -Wformat-truncation=): Same.
3977         (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
3978         (-Wstrict-overflow, -Wsuggest-attribute): Same.
3979         (-Wuninitialized): Same.
3981 2018-02-09  Eric Botcazou  <ebotcazou@adacore.com>
3983         * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
3984         keyword for components.
3986 2018-02-02  Paolo Carlini  <paolo.carlini@oracle.com>
3988         * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
3990 2018-02-02  Julia Koval  <julia.koval@intel.com>
3992         * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
3994 2018-01-29  Marek Polacek  <polacek@redhat.com>
3996         PR c/83966
3997         * c-format.c (check_function_format): Check current_function_decl.
3999 2018-01-27  Jakub Jelinek  <jakub@redhat.com>
4001         * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
4002         argument.
4003         (LAZY_HEX_FP_VALUES_CNT): Define.
4004         (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
4005         values rather than just 12.
4006         (builtin_define_with_hex_fp_value): Likewise.
4008 2018-01-18  Boris Kolpackov  <boris@codesynthesis.com>
4010         PR other/70268
4011         * c.opt (-fmacro-prefix-map): New option.
4012         * c-opts.c (c_common_handle_option): Handle it.
4013         * c-lex.c (init_c_lex): Set remap_filename cpp callback.
4014         * c-ppoutput.c (init_pp_output): Likewise.
4016 2018-01-17  David Malcolm  <dmalcolm@redhat.com>
4018         PR c++/83814
4019         * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
4021 2018-01-10  Eric Botcazou  <ebotcazou@adacore.com>
4023         * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
4024         Skip 'f' and 'F' characters if it is true.
4025         (store_ada_macro): Minor tweak.
4026         (dump_ada_macros) <CPP_COMMENT>: Likewise.
4027         <CPP_WSTRING>: Likewise.
4028         <CPP_STRING>: Output '&' in the buffer if not the first string.
4029         <CPP_NUMBER>: Adjust calls to dump_number.
4031 2018-01-10  David Malcolm  <dmalcolm@redhat.com>
4033         PR c++/43486
4034         * c-common.c: Include "selftest.h".
4035         (get_atomic_generic_size): Perform the test for integral type
4036         before the range test for any integer constant, fixing indentation
4037         of braces.  Call fold_for_warn before testing for an INTEGER_CST.
4038         (reject_gcc_builtin): Strip any location wrapper from EXPR.
4039         (selftest::test_fold_for_warn): New function.
4040         (selftest::c_common_c_tests): New function.
4041         (selftest::c_family_tests): Call it, and
4042         selftest::c_pretty_print_c_tests.
4043         * c-common.h (selftest::c_pretty_print_c_tests): New decl.
4044         * c-format.c (check_format_arg): Convert VAR_P check to a
4045         fold_for_warn.
4046         * c-pretty-print.c: Include "selftest.h".
4047         (pp_c_cast_expression): Don't print casts for location wrappers.
4048         (selftest::assert_c_pretty_printer_output): New function.
4049         (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
4050         (selftest::test_location_wrappers): New function.
4051         (selftest::c_pretty_print_c_tests): New function.
4052         * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
4054 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
4055             Alan Hayward  <alan.hayward@arm.com>
4056             David Sherwood  <david.sherwood@arm.com>
4058         * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
4060 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
4061             Alan Hayward  <alan.hayward@arm.com>
4062             David Sherwood  <david.sherwood@arm.com>
4064         * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
4065         as polynomial.
4067 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
4068             Alan Hayward  <alan.hayward@arm.com>
4069             David Sherwood  <david.sherwood@arm.com>
4071         * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
4072         (convert_vector_to_array_for_subscript): Handle polynomial
4073         TYPE_VECTOR_SUBPARTS.
4074         (c_common_type_for_mode): Check valid_vector_subparts_p.
4075         * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
4076         VECTOR_CST_NELTS.
4078 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
4080         Update copyright years.
4082 2017-12-22  Mike Stump  <mikestump@comcast.net>
4083             Eric Botcazou  <ebotcazou@adacore.com>
4085         * c-pragma.c (init_pragma): Register pragma GCC unroll.
4086         * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
4088 2017-12-22  Alexandre Oliva  <aoliva@redhat.com>
4090         PR debug/83527
4091         PR debug/83419
4092         * c-semantics.c (only_debug_stmts_after_p): New.
4093         (pop_stmt_list): Clear side effects in debug-only stmt list.
4094         Check for single nondebug stmt followed by debug stmts only.
4096 2017-12-21  Alexandre Oliva  <aoliva@redhat.com>
4098         PR debug/83419
4099         * c-semantics.c (pop_stmt_list): Propagate side effects from
4100         single nondebug stmt to container list.
4102 2017-12-19  Jakub Jelinek  <jakub@redhat.com>
4104         * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
4105         conditions with typical order conditions.
4107 2017-12-18  Marek Polacek  <polacek@redhat.com>
4109         * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
4110         not in effect.
4112 2017-12-17  Martin Sebor  <msebor@redhat.com>
4114         * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
4115         an error for attribute warn_if_not_aligned.
4117 2017-12-16  Martin Sebor  <msebor@redhat.com>
4119         PR tree-optimization/78918
4120         * c-common.c (check_function_restrict): Avoid checking built-ins.
4121         * c.opt (-Wrestrict): Include in -Wall.
4123 2017-12-15  Jakub Jelinek  <jakub@redhat.com>
4125         * c-attribs.c (c_common_attribute_table,
4126         c_common_format_attribute_table): Swap affects_type_identity
4127         and handler fields, adjust comments.
4129 2017-12-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4131         * c.opt (Wcast-function-type): New warning option.
4132         * c-lex.c (get_fileinfo): Avoid warning.
4133         * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
4135 2017-12-14  Qing Zhao  <qing.zhao@oracle.com>
4137         PR middle_end/79538
4138         * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
4139         Adjust the size of buf1 and buf2, add a new buf to avoid
4140         format-overflow warning.
4142 2017-12-12  Alexandre Oliva  <aoliva@redhat.com>
4144         * c-semantics.c (pop_stmt_list): Move begin stmt marker into
4145         subsequent statement list.
4147 2017-12-07  Martin Sebor  <msebor@redhat.com>
4149         PR c/81544
4150         PR c/81566
4151         * c-attribs.c (attr_aligned_exclusions): New array.
4152         (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
4153         (attr_common_exclusions, attr_const_pure_exclusions): Same.
4154         (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
4155         (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
4156         (attr_warn_unused_result_exclusions): Same.
4157         (handle_hot_attribute, handle_cold_attribute): Simplify.
4158         (handle_const_attribute): Warn on function returning void.
4159         (handle_pure_attribute): Same.
4160         (handle_aligned_attribute): Diagnose conflicting attribute
4161         specifications.
4162         * c-warn.c (diagnose_mismatched_attributes): Simplify.
4164 2017-12-06  David Malcolm  <dmalcolm@redhat.com>
4166         PR c/83236
4167         * c-common.c (selftest::c_family_tests): Call
4168         selftest::c_spellcheck_cc_tests.
4169         * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
4170         * c-spellcheck.cc: Include "selftest.h".
4171         (name_reserved_for_implementation_p): New function.
4172         (should_suggest_as_macro_p): New function.
4173         (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
4174         should_suggest_as_macro_p and call it.
4175         (selftest::test_name_reserved_for_implementation_p): New function.
4176         (selftest::c_spellcheck_cc_tests): New function.
4177         * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
4179 2017-12-06  David Malcolm  <dmalcolm@redhat.com>
4181         * c-spellcheck.cc: New file, taken from macro-handling code in
4182         spellcheck-tree.c.
4183         * c-spellcheck.h: New file, taken from macro-handling code in
4184         spellcheck-tree.h.
4186 2017-12-01  Jakub Jelinek  <jakub@redhat.com>
4188         * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
4189         attribute.
4190         (handle_simd_attribute): Don't check for "cilk simd function"
4191         attribute.  Reindent, formatting changes.
4193 2017-11-30  Julia Koval  <julia.koval@intel.com>
4195         * c-common.h (inv_list): Remove.
4197 2017-11-28  Jakub Jelinek  <jakub@redhat.com>
4199         PR sanitizer/81275
4200         * c-common.c (c_switch_covers_all_cases_p_1,
4201         c_switch_covers_all_cases_p): New functions.
4202         * c-common.h (c_switch_covers_all_cases_p): Declare.
4204 2017-11-28  Julia Koval  <julia.koval@intel.com>
4205             Sebastian Peryt  <sebastian.peryt@intel.com>
4207         * array-notation-common.c: Delete.
4208         * c-cilkplus.c: Ditto.
4209         * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
4210         * c-common.def (ARRAY_NOTATION_REF): Remove.
4211         * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
4212         build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
4213         c_validate_cilk_plus_loop, cilkplus_an_parts,
4214         cilk_ignorable_spawn_rhs_op,
4215         cilk_recognize_spawn): Remove.
4216         * c-gimplify.c (CILK_SPAWN_STMT): Remove.
4217         * c-omp.c: Remove CILK_SIMD check.
4218         * c-pragma.c: Ditto.
4219         * c-pragma.h: Remove CILK related pragmas.
4220         * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
4221         ARRAY_NOTATION_REF condition.
4222         (c_pretty_printer::expression): Ditto.
4223         * c.opt (fcilkplus): Remove.
4224         * cilk.c: Delete.
4226 2017-11-21  Marc Glisse  <marc.glisse@inria.fr>
4228         * c-pretty-print.c (pp_c_additive_expression,
4229         c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
4231 2017-11-21  Jakub Jelinek  <jakub@redhat.com>
4233         * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
4235         PR c++/83059
4236         * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
4237         instead of tree_to_uhwi, formatting fix.
4239 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
4241         PR c/81404
4242         * known-headers.cc: New file, based on material from c/c-decl.c.
4243         (suggest_missing_header): Copied as-is.
4244         (get_stdlib_header_for_name): New, based on get_c_name_hint but
4245         heavily edited to add C++ support.  Add some knowledge about
4246         <limits.h>, <stdint.h>, and <wchar.h>.
4247         * known-headers.h: Likewise.
4249 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
4251         * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
4252         (lookup_name_fuzzy): Likewise.  Convert return type from
4253         const char * to name_hint.  Add location_t param.
4254         * name-hint.h: New header.
4256 2017-11-19  Jakub Jelinek  <jakub@redhat.com>
4258         PR c/66618
4259         PR c/69960
4260         * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
4262 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
4264         * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
4265         expected publication date of C17.
4266         (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
4268 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
4270         PR c/81156
4271         * c-common.c (c_common_reswords): Add __builtin_tgmath.
4272         * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
4274 2017-11-10  Martin Sebor  <msebor@redhat.com>
4276         PR c/81117
4277         * c-common.c (catenate_strings): Use memcpy instead of strncpy.
4278         * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
4279         * c.opt (-Wstringop-truncation): New option.
4281 2017-11-06  Martin Liska  <mliska@suse.cz>
4283         PR middle-end/82404
4284         * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
4285         FE.
4286         * c.opt: Set default value of warn_return_type.
4288 2017-10-31  David Malcolm  <dmalcolm@redhat.com>
4290         * c-common.c (binary_op_error): Update for renaming of
4291         error_at_rich_loc.
4292         (c_parse_error): Likewise.
4293         * c-warn.c (warn_logical_not_parentheses): Likewise for
4294         renaming of inform_at_rich_loc.
4295         (warn_for_restrict): Likewise for renaming of
4296         warning_at_rich_loc_n.
4298 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
4300         * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
4301         * c-opts.c (set_std_c17): New function.
4302         (c_common_init_options): Use gnu17 as default C version.
4303         (c_common_handle_option): Handle -std=c17 and -std=gnu17.
4305 2017-10-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
4307         * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
4308         (c_cpp_builtins): If a machine has a fast fma _Float<N> and
4309         _Float<N>X variant, define __FP_FAST_FMA<N> and/or
4310         __FP_FAST_FMA<N>X.
4312 2017-10-23  Marek Polacek  <polacek@redhat.com>
4314         PR c/82681
4315         * c-warn.c (warnings_for_convert_and_check): Fix typos.
4317 2017-10-19  Eric Botcazou  <ebotcazou@adacore.com>
4319         * c-common.c (check_builtin_function_arguments): Also check arguments
4320         of __builtin_alloca_with_align_and_max.
4322 2017-10-17  David Malcolm  <dmalcolm@redhat.com>
4324         * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
4325         rather than NULL to format_warning_va.
4326         (check_format_types): Likewise when calling format_type_warning.
4327         Remove code to extract source_ranges and source_range * in favor
4328         of just a location_t.
4329         (format_type_warning): Convert source_range * param to a
4330         location_t.
4332 2017-10-13  Jakub Jelinek  <jakub@redhat.com>
4334         * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
4335         [LR]SHIFT_EXPR.
4337 2017-10-12  David Malcolm  <dmalcolm@redhat.com>
4339         * c-common.c (enum missing_token_insertion_kind): New enum.
4340         (get_missing_token_insertion_kind): New function.
4341         (maybe_suggest_missing_token_insertion): New function.
4342         * c-common.h (maybe_suggest_missing_token_insertion): New decl.
4344 2017-10-11  Nathan Sidwell  <nathan@acm.org>
4346         * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
4347         (c_common_handle_option): Update incpath_kind names.
4349 2017-10-11  Martin Liska  <mliska@suse.cz>
4351         PR sanitizer/82490
4352         * c-attribs.c (handle_no_sanitize_attribute): Report directly
4353         Wattributes warning.
4355 2017-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
4357         * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
4358         operating on trees as wide_ints.
4359         * c-common.c (pointer_int_sum): Likewise.
4360         * c-pretty-print.c (pp_c_integer_constant): Likewise.
4361         * c-warn.c (match_case_to_enum_1): Likewise.
4362         (c_do_switch_warnings): Likewise.
4363         (maybe_warn_shift_overflow): Likewise.
4365 2017-10-10  Jakub Jelinek  <jakub@redhat.com>
4367         PR c/82437
4368         * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
4369         instead of wide_int::from.
4371 2017-10-06  Jakub Jelinek  <jakub@redhat.com>
4373         PR c/82437
4374         * c-warn.c (warn_tautological_bitwise_comparison): Instead of
4375         using to_widest use wide_int with the larger of the two precisions.
4377 2017-10-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4379         * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
4380         functions.
4382 2017-10-02  Richard Sandiford  <richard.sandiford@linaro.org>
4384         * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
4385         when combining the original unconverted comparison operands.
4387 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
4389         * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
4390         attribute.
4392 2017-09-29  Eric Botcazou  <ebotcazou@adacore.com>
4394         * c-ada-spec.c (to_ada_name): Add index parameter.
4395         (pp_ada_tree_identifier): Likewise.
4396         (dump_ada_macros): Adjust call to to_ada_name.
4397         (struct overloaded_name_hash): New type.
4398         (struct overloaded_name_hasher): Likewise.
4399         (overloaded_names): New hash table.
4400         (compute_overloading_index): New function.
4401         (dump_ada_decl_name): Call it and pass the result to
4402         pp_ada_tree_identifier.
4403         (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
4404         (dump_ada_function_declaration): Likewise.
4405         (dump_generic_ada_node): Likewise.
4406         (print_constructor): Likewise.
4407         (print_destructor): Likewise.
4408         (dump_ada_specs): Delete overloaded_names table.
4410 2017-09-29  Eric Botcazou  <ebotcazou@adacore.com>
4412         * c-ada-spec.c (max_ada_macros): Move around.
4413         (store_ada_macro_index): Likewise.
4414         (source_file): Rename into...
4415         (macro_source_file): ...this.
4416         (count_ada_macro): Move around.
4417         (store_ada_macro): Likewise.
4418         (compare_macro): Likewise.
4419         (print_ada_macros): Merge in...
4420         (dump_ada_macros): ...this.
4421         (source_file_base): Rename into...
4422         (current_source_file): ...this.
4423         (print_comment): Move around.
4424         (dump_ada_nodes): Call dump_ada_declaration directly.
4425         (struct with): Change type of limited field to bool.
4426         (append_withs): Change type of limited_access parameter to bool.
4427         (pp_ada_tree_identifie): Likewise.
4428         (dump_ada_decl_nam): Likewise.
4429         (dump_generic_ada_node): Likewise.  Do not print the return type.
4430         (to_ada_name): Change type of space_found parameter to bool.
4431         (dump_ada_function_declaration): Return void and change type of
4432         parameters to bool.  Also print the return type for a function.
4433         (print_ada_methods): Rename into...
4434         (dump_ada_methods): ...this.
4435         (print_ada_declaration): Rename into ...
4436         (dump_ada_declaration): ...this.  Do not print the return type.
4437         (print_ada_struct_decl): Rename into...
4438         (dump_ada_struct_decl): ...this.
4440 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
4442         * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
4443         rather than DECL_INITIAL.
4444         (common_handle_aligned_attribute): Likewise.
4446 2017-09-20  Alexandre Oliva  <aoliva@redhat.com>
4448         * c.opt (gen-decls): Add RejectNegative.
4450 2017-09-15  Andrew Sutton  <andrew.n.sutton@gmail.com>
4451             Jakub Jelinek  <jakub@redhat.com>
4453         Add support for -std=c++2a.
4454         * c-common.h (cxx_dialect): Add cxx2a as a dialect.
4455         * opt.c: Add options for -std=c++2a and -std=gnu++2a.
4456         * c-opts.c (set_std_cxx2a): New.
4457         (c_common_handle_option): Set options when -std=c++2a is enabled.
4458         (c_common_post_options): Adjust comments.
4459         (set_std_cxx14, set_std_cxx17): Likewise.
4461 2017-09-15  Eric Botcazou  <ebotcazou@adacore.com>
4463         * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
4464         message for non-uniform endianness and issue a warning in C++.
4466 2017-09-15  Jakub Jelinek  <jakub@redhat.com>
4468         * c.opt (Wc++1z-compat): Change from option to undocumented alias.
4469         (Wc++17-compat): Change from undocumented alias to option.
4470         (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
4471         change C++1z to C++17 in description.
4472         (std=c++1z, std=gnu++1z): Change from option to undocumented
4473         deprecated alias.
4474         (std=c++17, std=gnu++17): Change from undocumented alias to option.
4475         Adjust description.
4476         * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
4477         * c-opts.c (set_std_cxx1z): Rename to ...
4478         (set_std_cxx17): ... this.
4479         (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
4480         and OPT_std_gnu__1z to OPT_std_gnu__17.  Adjust set_std_cxx1z
4481         caller.
4482         (c_common_post_options): Use cxx17 instead of cxx1z.  Adjust
4483         comments.
4485 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
4487         * c-attribs.c (common_handle_aligned_attribute): Don't warn
4488         function alignment if warn_if_not_aligned_p is true.
4490 2017-09-12  Nathan Sidwell  <nathan@acm.org>
4492         * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
4493         resort_sorted_fields): Move to c/c-decl.c.
4494         * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
4495         (struct sorted_fields_type): Move to c/c-lang.h.
4497 2017-09-09  Jonathan Wakely  <jwakely@redhat.com>
4499         PR c++/81852
4500         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
4502 2017-09-04  Marek Polacek  <polacek@redhat.com>
4504         PR c/81783
4505         * c-warn.c (warn_tautological_bitwise_comparison): New function.
4506         (warn_tautological_cmp): Call it.
4508 2017-09-01  Boris Kolpackov  <boris@codesynthesis.com>
4510         * c-opts.c (c_common_finish): Write dependency information even if
4511         there are errors.
4513 2017-09-01  Jakub Jelinek  <jakub@redhat.com>
4515         PR c/81887
4516         * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
4517         (omp_pragmas_simd): ... here.
4518         * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
4519         create new clauses list containing just simd clause.
4521 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
4522             Alan Hayward  <alan.hayward@arm.com>
4523             David Sherwood  <david.sherwood@arm.com>
4525         * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
4526         into scalar_mode_supported_p call.
4527         (handle_mode_attribute): Update call to scalar_mode_supported_p.
4529 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
4530             Alan Hayward  <alan.hayward@arm.com>
4531             David Sherwood  <david.sherwood@arm.com>
4533         * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
4534         for the mode iterator.
4536 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
4537             Alan Hayward  <alan.hayward@arm.com>
4538             David Sherwood  <david.sherwood@arm.com>
4540         * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
4541         * c-common.c (c_build_vec_perm_expr): Likewise.
4543 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
4544             Alan Hayward  <alan.hayward@arm.com>
4545             David Sherwood  <david.sherwood@arm.com>
4547         * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
4549 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
4550             Alan Hayward  <alan.hayward@arm.com>
4551             David Sherwood  <david.sherwood@arm.com>
4553         * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
4554         before calling targetm.addr_space.valid_pointer_mode.
4556 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
4557             Alan Hayward  <alan.hayward@arm.com>
4558             David Sherwood  <david.sherwood@arm.com>
4560         * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
4562 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
4563             Alan Hayward  <alan.hayward@arm.com>
4564             David Sherwood  <david.sherwood@arm.com>
4566         * c-common.c (c_common_fixed_point_type_for_size): Use new mode
4567         iterators.
4568         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4570 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
4571             Alan Hayward  <alan.hayward@arm.com>
4572             David Sherwood  <david.sherwood@arm.com>
4574         * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
4575         case statements.
4577 2017-08-29  Martin Liska  <mliska@suse.cz>
4579         PR other/39851
4580         * c-common.c (parse_optimize_options): Add argument to function
4581         call.
4582         * c-pragma.c (handle_pragma_diagnostic): Likewise.
4584 2017-08-24  David Malcolm  <dmalcolm@redhat.com>
4586         * c-lex.c (interpret_float): Use token location
4587         when building an EXCESS_PRECISION_EXPR.
4589 2017-08-21  David Malcolm  <dmalcolm@redhat.com>
4591         * c-common.c (check_function_arguments): Add "arglogs" param; pass
4592         it to check_function_format.
4593         * c-common.h (check_function_arguments): Add vec<location_t> *
4594         param.
4595         (check_function_format): Likewise.
4596         * c-format.c (struct format_check_context): Add field "arglocs".
4597         (check_function_format): Add param "arglocs"; pass it to
4598         check_format_info.
4599         (check_format_info): Add param "arglocs"; use it to initialize
4600         new field of format_ctx.
4601         (check_format_arg): Pass format_ctx->arglocs to new param of
4602         check_format_info_main.
4603         (class argument_parser): New field "arglocs".
4604         (argument_parser::argument_parser): Add "arglocs_" param and use
4605         it to initialize new field.
4606         (argument_parser::check_argument_type): Pass new arglocs field to
4607         check_format_types.
4608         (check_format_info_main): Add param "arglocs", and use it when
4609         constructing arg_parser.
4610         (check_format_types): Add param "arglocs"; use it if non-NULL when
4611         !EXPR_HAS_LOCATION (cur_param) to get at location information.
4613 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4615         PR c/53037
4616         * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
4617         (c_common_attribute_table): Add warn_if_not_aligned.
4618         (handle_aligned_attribute): Renamed to ...
4619         (common_handle_aligned_attribute): Remove argument, name, and add
4620         argument, warn_if_not_aligned.  Handle warn_if_not_aligned.
4621         (handle_aligned_attribute): New.
4622         * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
4624 2017-08-14  Martin Sebor  <msebor@redhat.com>
4626         PR c/81117
4627         * c-attribs.c (c_common_attribute_table): Add nonstring entry.
4628         (handle_nonstring_attribute): New function.
4630 2017-08-14  Martin Sebor  <msebor@redhat.com>
4632         PR c/81117
4633         * c-format.h (T89_G): New macro.
4634         * c-format.c (local_gcall_ptr_node): New variable.
4635         (init_dynamic_diag_info): Initialize it.
4637 2017-08-11  Martin Liska  <mliska@suse.cz>
4639         * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
4640         TARGET_SUPPORTS_ALIASES.
4642 2017-08-10  David Malcolm  <dmalcolm@redhat.com>
4644         * c-common.c (c_parse_error): Add rich_location * param, using it
4645         rather implicitly using input_location.
4646         * c-common.h (c_parse_error): Add rich_location * param.
4648 2017-08-09  Marek Polacek  <polacek@redhat.com>
4650         * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
4651         (c_common_truthvalue_conversion): Likewise.
4652         * c-omp.c (c_finish_omp_atomic): Likewise.
4653         * c-common.h (build_binary_op): Update declaration.
4655 2017-08-08  Martin Liska  <mliska@suse.cz>
4657         * c-ada-spec.c: Include header files.
4658         * c-ubsan.c: Likewise.
4659         * c-warn.c: Likewise.
4661 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
4663         PR c/69389
4664         * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
4666 2017-08-07  Eric Botcazou  <ebotcazou@adacore.com>
4668         * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
4669         (print_ada_methods): Likewise.
4670         (print_ada_declaration): Likewise.
4672 2017-08-07  Martin Liska  <mliska@suse.cz>
4674         * array-notation-common.c: Add new includes.
4675         * c-format.c( handle_format_attribute): Canonicalize a format
4676         function name.
4677         * c-lex.c (c_common_has_attribute): Canonicalize name of an
4678         attribute.
4679         * c-pretty-print.c: Add new include.
4681 2017-08-05  Eric Botcazou  <ebotcazou@adacore.com>
4683         * c-ada-spec.c (has_static_fields): Look only into variables.
4684         (print_constructor): Add TYPE parameter and use it for the name.
4685         (print_destructor): Likewise.
4686         (print_ada_declaration): Adjust to new constructor/destructor names.
4687         Adjust calls to print_constructor and print_destructor.
4688         (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
4689         Look only into variables in the final loop.
4691 2017-08-01  Eric Botcazou  <ebotcazou@adacore.com>
4693         * c-ada-spec.c (has_static_fields): Look only into fields.
4694         (dump_generic_ada_node): Small tweak.
4695         (dump_nested_types): Look only into fields.
4696         (print_ada_declaration): Look only into methods.  Small tweak.
4697         (print_ada_struct_decl): Look only into fields.  Use DECL_VIRTUAL_P.
4699 2017-08-01  Eric Botcazou  <ebotcazou@adacore.com>
4701         * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
4702         (dump_ada_function_declaration): Likewise.
4703         (dump_generic_ada_node): Likewise.
4704         (print_ada_declaration): Add support for const-qualified variables.
4706 2017-07-31  Martin Liska  <mliska@suse.cz>
4708         PR sanitize/81530
4709         * c-ubsan.c (ubsan_maybe_instrument_array_ref):
4710         Guard condition with flag_sanitize_p also with current_function_decl
4711         non-null equality.
4712         (ubsan_maybe_instrument_reference_or_call): Likewise.
4714 2017-07-30  Uros Bizjak  <ubizjak@gmail.com>
4716         * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
4718 2017-07-29  Eric Botcazou  <ebotcazou@adacore.com>
4720         * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
4721         for enumeral types.
4722         (print_ada_declaration): Add missing guard for record types.
4724 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
4726         PR c/45784
4727         * c-omp.c (c_finish_omp_for): If the condition is wrapped in
4728         rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
4729         new COMPOUND_EXPRs around the rhs of the comparison.
4731 2017-07-27  Marek Polacek  <polacek@redhat.com>
4733         PR c/81417
4734         * c-warn.c (warn_for_sign_compare): Tweak the warning message.  Print
4735         the types.
4737 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
4739         * c-attribs.c (c_common_attribute_table): Add noipa attribute.
4740         (handle_noipa_attribute): New function.
4742 2017-07-07  Torsten Duwe  <duwe@suse.de>
4744         * c-attribs.c (c_common_attribute_table): Add entry for
4745         "patchable_function_entry".
4747 2017-07-20  Nathan Sidwell  <nathan@acm.org>
4749         Remove TYPE_METHODS.
4750         * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
4751         dump_ada_template, print_ada_methods,
4752         print_ada_declaration): Member fns are on TYPE_FIELDS.
4754 2017-07-18  Nathan Sidwell  <nathan@acm.org>
4756         * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
4758 2017-07-14  David Malcolm  <dmalcolm@redhat.com>
4760         * c-common.c (try_to_locate_new_include_insertion_point): New
4761         function.
4762         (per_file_includes_t): New typedef.
4763         (added_includes_t): New typedef.
4764         (added_includes): New variable.
4765         (maybe_add_include_fixit): New function.
4766         * c-common.h (maybe_add_include_fixit): New decl.
4768 2017-07-10  Martin Sebor  <msebor@redhat.com>
4770         PR other/81345
4771         * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
4773 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
4775         * c-common.c (selftest::c_family_tests): New.
4776         * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
4777         (selftest::c_family_tests): New decl.
4779 2017-07-04  Marek Polacek  <polacek@redhat.com>
4781         PR c/81231
4782         * c-common.c (sync_resolve_size): Give error for pointers to incomplete
4783         types.
4785 2017-07-04  Marek Polacek  <polacek@redhat.com>
4787         * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
4789 2017-06-28  Martin Liska  <mliska@suse.cz>
4791         PR ipa/81128
4792         * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
4793         to a function declaration.
4795 2017-06-28  Martin Liska  <mliska@suse.cz>
4797         PR driver/79659
4798         * c.opt: Add IntegerRange to various options.
4800 2017-06-26  Marek Polacek  <polacek@redhat.com>
4802         PR c/80116
4803         * c-common.h (warn_for_multistatement_macros): Declare.
4804         * c-warn.c: Include "c-family/c-indentation.h".
4805         (warn_for_multistatement_macros): New function.
4806         * c.opt (Wmultistatement-macros): New option.
4807         * c-indentation.c (guard_tinfo_to_string): No longer static.
4808         Change the parameter type to "enum rid".  Handle RID_SWITCH.
4809         * c-indentation.h (guard_tinfo_to_string): Declare.
4811 2017-06-23  Marc Glisse  <marc.glisse@inria.fr>
4813         * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
4815 2017-06-15  Martin Sebor  <msebor@redhat.com>
4817         PR c++/80560
4818         * c.opt (-Wclass-memaccess): New option.
4820 2017-06-14  Boris Kolpackov  <boris@codesynthesis.com>
4822         * c-opts.c (c_common_finish): Handle '-' special value to -MF.
4824 2017-06-13  Marek Polacek  <polacek@redhat.com>
4826         PR objc/80949
4827         * c-warn.c (do_warn_duplicated_branches): Return if any of the
4828         branches is null.
4830 2017-06-13  Martin Liska  <mliska@suse.cz>
4832         PR sanitize/78204
4833         * c-attribs.c (add_no_sanitize_value): New function.
4834         (handle_no_sanitize_attribute): Likewise.
4835         (handle_no_sanitize_address_attribute): Use the function.
4836         (handle_no_sanitize_thread_attribute): New function.
4837         (handle_no_address_safety_analysis_attribute): Use
4838         add_no_sanitize_value.
4839         (handle_no_sanitize_undefined_attribute): Likewise.
4840         * c-common.h: Declare new functions.
4841         * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
4842         (ubsan_instrument_shift): Likewise.
4843         (ubsan_instrument_bounds): Likewise.
4844         (ubsan_maybe_instrument_array_ref): Likewise.
4845         (ubsan_maybe_instrument_reference_or_call): Likewise.
4847 2017-06-11  Jason Merrill  <jason@redhat.com>
4849         * c-ada-spec.c, c-pragma.c: Use id_equal.
4851 2017-06-04  Marek Polacek  <polacek@redhat.com>
4853         PR c/80919
4854         * c-format.c (matching_type_p): Return false if any of the types
4855         requires structural equality.
4857 2017-06-02  Martin Sebor  <msebor@redhat.com>
4859         PR c/80892
4860         * c-warn.c (conversion_warning): Use -Wconversion for integer
4861         conversion and -Wfloat-conversion for floating one.
4863 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4865         * c.opt (Wsizeof-pointer-div): New warning option.
4867 2017-06-01  Volker Reichelt  <v.reichelt@netcologne.de>
4869         * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
4870         (Wcatch-value=1): Enable by -Wall.
4872 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
4874         * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
4875         format_chars.
4876         * c.opt (fdiagnostics-show-template-tree): New option.
4877         (felide-type): New option.
4879 2017-05-25  Volker Reichelt  <v.reichelt@netcologne.de>
4881         * c.opt (Wcatch-value=): New C++ warning flag.
4883 2017-05-24  Nathan Sidwell  <nathan@acm.org>
4885         * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
4886         const casts to avoid warning.
4888 2017-05-24  Martin Sebor  <msebor@redhat.com>
4890         PR c/80731
4891         * c-common.h (unsafe_conversion_p): Add a function argument.
4892         * c-common.c (unsafe_conversion_p): Same.
4893         Add type names and values to diagnostics.
4894         (scalar_to_vector): Adjust.
4895         * c-warn.c (constant_expression_error): Add a function argument.
4896         Add type names and values to diagnostics.
4897         (conversion_warning): Add a function argument.
4898         Add type names and values to diagnostics.
4899         (warnings_for_convert_and_check): Same.
4901 2017-05-19  Jason Merrill  <jason@redhat.com>
4903         * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
4904         enumerators.
4906 2017-05-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4908         * c-format.c (locus): Move out of function scope,
4909         add GTY attribute.
4911 2017-05-19  Nathan Sidwell  <nathan@acm.org>
4913         * c-opts.c (class_dump_file, class_dump_flags): Delete.
4914         (c_common_parse_file): Remove class dump handling.
4915         (get_dump_info): Likewise.
4917 2017-05-19  Richard Biener  <rguenther@suse.de>
4919         PR c++/80593
4920         * c-warn.c (strict_aliasing_warning): Do not warn for accesses
4921         to alias-set zero memory.
4923 2017-05-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4925         * c-format.c (local_tree_type_node): Add GTY attribute.
4927 2017-05-18  Marek Polacek  <polacek@redhat.com>
4929         * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
4930         (c_common_fixed_point_type_for_size): Likewise.
4931         (c_common_type_for_mode): Likewise.
4932         (shorten_compare): Likewise.
4933         (c_promoting_integer_type_p): Use false/true instead of 0/1.
4934         * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
4936 2017-05-18  Marek Polacek  <polacek@redhat.com>
4938         * c-common.c (self_promoting_args_p): Change the return type to bool.
4939         Use false/true instead of 0/1.
4940         * c-common.h (self_promoting_args_p): Update.
4942 2017-05-17  Marek Polacek  <polacek@redhat.com>
4944         * c-common.c: Use NULL_TREE instead of 0 where appropriate.
4945         * c-warn.c: Likewise.
4947 2017-05-17  Ville Voutilainen  <ville.voutilainen@gmail.com>
4949         Implement new C++ intrinsics __is_assignable and __is_constructible.
4950         * c-common.c (__is_assignable, __is_constructible): New.
4951         * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
4953 2017-05-17  Martin Liska  <mliska@suse.cz>
4955         * c-common.h: Introduce dump_flags_t type and
4956         use it instead of int type.
4957         * c-gimplify.c (c_genericize): Likewise.
4958         * c-opts.c: Likewise.
4960 2017-05-17  Marek Polacek  <polacek@redhat.com>
4962         * c-common.c (c_save_expr): Remove.
4963         (c_common_truthvalue_conversion): Remove a call to c_save_expr.
4964         * c-common.h (c_save_expr): Remove declaration.
4966 2017-05-09  Volker Reichelt  <v.reichelt@netcologne.de>
4968         PR c/35441
4969         * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
4970         MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
4971         (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
4972         (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
4973         RDIV_EXPR.
4974         (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
4976 2017-05-09  Marek Polacek  <polacek@redhat.com>
4978         PR c/80525
4979         * c-warn.c (unwrap_c_maybe_const): New.
4980         (warn_logical_operator): Call it.
4982 2017-05-09  Nathan Sidwell  <nathan@acm.org>
4984         * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
4985         * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
4987 2017-05-08  Martin Sebor  <msebor@redhat.com>
4989         PR translation/80280
4990         * c-format.h (struct format_flag_spec): Add new member.
4991         (T89_T): New macro.
4992         * c-format.c (local_tree_type_node): New global.
4993         (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
4994         (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
4995         (strfmon_flag_specs): Likewise.
4996         (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
4997         with distinct quoting properties.
4998         (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
4999         (flag_chars_t::validate): Add argument and handle bad quoting.
5000         (check_format_info_main): Handle quoting problems.
5001         (init_dynamic_diag_info): Simplify.
5003 2017-05-08  Jason Merrill  <jason@redhat.com>
5005         * c-opts.c (c_common_post_options): Update defaults for
5006         flag_abi_version and flag_abi_compat_version.
5008 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
5010         * c-common.c (c_cpp_error): Replace report_diagnostic
5011         with diagnostic_report_diagnostic.
5013 2017-05-04  Martin Sebor  <msebor@redhat.com>
5015         PR translation/80280
5016         * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
5017         (handle_weakref_attribute): Same.
5019 2017-05-03  Nathan Sidwell  <nathan@acm.org>
5021         Canonicalize canonical type hashing
5022         * c-common.c (complete_array_type): Use type_hash_canon.
5024 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
5026         PR c++/80038
5027         * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
5028         prototype.
5029         (cilk_install_body_pedigree_operations): Likewise.
5030         * cilk.c (cilk_set_spawn_marker): Mark functions that should be
5031         detatched.
5032         (cilk_gimplify_call_params_in_spawned_fn): Remove.
5033         (cilk_install_body_pedigree_operations): Likewise.
5034         (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
5035         unwrapping.
5037 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
5039         PR c++/80534
5040         * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
5041         flag on non-aggregate element types.
5043 2017-04-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5045         * c-common.c (c_type_hasher, type_hash_table): Remove.
5046         (c_common_get_alias_set): Remove unreachable code.
5047         * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
5049 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
5051         * c.opt (Wextra-semi): New C++ warning flag.
5053 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
5055         PR middle-end/80423
5056         * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
5058 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
5060         PR middle-end/79788
5061         PR middle-end/80375
5062         * c-common.c (c_common_type_for_mode): Don't handle
5063         widest_*_literal_type_node here.
5064         c_common_signed_or_unsigned_type): Likewise.
5065         (c_common_nodes_and_builtins): Set widest_*_literal_type_node
5066         to *intTI_type_node or *intDI_type_node depending on whether
5067         TImode is supported by the target or not.
5069 2017-04-10  Martin Liska  <mliska@suse.cz>
5071         PR sanitizer/80350
5072         * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
5073         doing an UBSAN check.
5075 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
5077         * c-warn.c (do_warn_double_promotion): Fix typo in comment.
5079 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
5081         PR c++/79572
5082         * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
5083         tree *.
5084         * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise.  Handle
5085         not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
5086         REFERENCE_TYPE.
5088 2017-03-31  David Malcolm  <dmalcolm@redhat.com>
5090         PR documentation/78732
5091         * c.opt (Wendif-labels): Fix description to refer to
5092         #else rather than #elif.
5094 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
5096         PR libstdc++/80251
5097         * c-common.h (enum rid): Add RID_IS_AGGREGATE.
5098         * c-common.c (c_common_reswords): Add __is_aggregate trait.
5100 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
5102         PR middle-end/80162
5103         * c-common.c (c_common_mark_addressable_vec): Don't set
5104         TREE_ADDRESSABLE on DECL_HARD_REGISTER.
5106 2017-03-21  Martin Sebor  <msebor@redhat.com>
5108         PR c++/79548
5109         * c-common.c (set_underlying_type): Mark type used only when
5110         original del is declared unused.
5112 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
5114         PR translation/79848
5115         * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
5116         "%qs".
5118 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
5120         PR c/79921
5121         * c-indentation.c (warn_for_misleading_indentation): Remove parens
5122         from inform's message, so that xgettext can locate it.
5124 2017-03-09  Marek Polacek  <polacek@redhat.com>
5126         PR c++/79962
5127         PR c++/79984
5128         * c-attribs.c (handle_nonnull_attribute): Save the result of default
5129         conversion to the attribute list.
5131 2017-03-09  Martin Liska  <mliska@suse.cz>
5133         * c-ada-spec.c (macro_length): Increment value instead of a pointer.
5135 2017-03-03  Jason Merrill  <jason@redhat.com>
5137         * c.opt (Wnoexcept-type): New.
5139 2017-03-02  Richard Biener  <rguenther@suse.de>
5141         PR c/79756
5142         * c-common.c (c_common_mark_addressable_vec): Look through
5143         C_MAYBE_CONST_EXPR.
5145 2017-02-28  Martin Liska  <mliska@suse.cz>
5147         * c.opt: Replace space with tabular for options of <number>
5148         type.
5150 2017-02-28  Martin Liska  <mliska@suse.cz>
5152         * c.opt: Fix --help=option -Q for options which are of
5153         an enum type.
5155 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
5157         PR c++/79588
5158         * c-common.c (check_function_restrict): New function.
5159         (check_function_arguments): Add FNDECL argument.  Call
5160         check_function_restrict if -Wrestrict.
5161         * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
5162         and NARGS.  Use auto_vec for ARG_POSITIONS, simplify.
5163         * c-common.h (check_function_arguments): Add FNDECL argument.
5164         (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
5166 2017-02-24  Eric Botcazou  <ebotcazou@adacore.com>
5168         * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
5169         treatment of parameters with pointer-to-tagged type and tidy up.
5170         (print_ada_methods): Remove the special treatment of C++ static member
5171         functions.
5173 2017-02-22  Martin Liska  <mliska@suse.cz>
5175         * c.opt: Replace inequality signs with square brackets
5176         for -Wnornalized.
5178 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
5180         PR c++/79641
5181         * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
5182         preserve quals.
5184 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
5186         * c-cppbuiltin.c (builtin_define_float_constants): Define
5187         __DECIMAL_DIG__ to the value for long double.
5189 2017-02-15  Marek Polacek  <polacek@redhat.com>
5191         PR c/79515
5192         * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
5193         conversion has occured.
5195 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
5197         * c-common.c (c_common_reswords): Add "__RTL".
5198         * c-common.h (enum rid): Add RID_RTL.
5200 2017-01-20  Marek Polacek  <polacek@redhat.com>
5202         PR c/64279
5203         * c-common.h (do_warn_duplicated_branches_r): Declare.
5204         * c-gimplify.c (c_genericize): Walk the function tree calling
5205         do_warn_duplicated_branches_r.
5206         * c-warn.c (expr_from_macro_expansion_r): New.
5207         (do_warn_duplicated_branches): New.
5208         (do_warn_duplicated_branches_r): New.
5209         * c.opt (Wduplicated-branches): New option.
5211 2017-01-17  David Malcolm  <dmalcolm@redhat.com>
5213         PR c++/71497
5214         * c-indentation.c (warn_for_misleading_indentation): Use the past
5215         subjunctive in the note.
5217 2017-01-17  Aldy Hernandez  <aldyh@redhat.com>
5219         PR c/79116
5220         * array-notation-common.c (cilkplus_extract_an_triplets): Convert
5221         start type to integer_type.
5223 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
5225         PR driver/49726
5226         * c.opt (gen-decls): Add Driver flag.
5228 2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
5230         Revert:
5231         2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
5233         PR c++/71737
5234         * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
5236 2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
5238         PR c++/71737
5239         * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
5241 2017-01-12  Martin Sebor  <msebor@redhat.com>
5243         (-Wformat-overflow): ...to this.
5245 2017-01-11  Martin Sebor  <msebor@redhat.com>
5247         PR c/78768
5248         * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
5249         Also enable for LTO.
5251 2017-01-10  Jason Merrill  <jason@redhat.com>
5253         Implement P0195R2, C++17 variadic using.
5254         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
5256 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
5258         PR translation/79019
5259         PR translation/79020
5260         * c.opt (Wnormalized=): Fix typo in description.
5262 2017-01-08  Martin Sebor  <msebor@redhat.com>
5264         PR middle-end/77708
5265         * c.opt (-Wformat-truncation): New option.
5267 2017-01-06  Alexandre Oliva  <aoliva@redhat.com>
5269         * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
5270         value to unsigned short to fit in 4 hex digits without
5271         warnings.
5273 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
5275         * c.opt (fsso-struct): Add 'native' value.
5277 2017-01-05  Martin Liska  <mliska@suse.cz>
5279         PR pch/78970
5280         * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
5281         header.
5283 2017-01-04  Marek Polacek  <polacek@redhat.com>
5285         PR c++/64767
5286         * c.opt (Wpointer-compare): New option.
5288 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
5290         PR driver/78957
5291         * c.opt (fsso-struct=): Add RejectNegative.
5293 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
5295         Update copyright years.
5297 2016-12-29  Martin Liska  <mliska@suse.cz>
5299         PR c/78933
5300         * c.opt (strong-eval-order): Add RejectNegative keyword.
5302 2016-12-22  Jason Merrill  <jason@redhat.com>
5304         Implement P0522R0, matching of template template arguments.
5305         * c-cppbuiltin.c (c_cpp_builtins): Define
5306         __cpp_template_template_args.
5308 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
5310         PR bootstrap/78817
5311         * c-common.c (struct nonnull_arg_ctx): New type.
5312         (check_function_nonnull): Return bool instead of void.  Use
5313         nonnull_arg_ctx as context rather than just location_t.
5314         (check_nonnull_arg): Adjust for the new context type, set
5315         warned_p to true if a warning has been diagnosed.
5316         (check_function_arguments): Return bool instead of void.
5317         * c-common.h (check_function_arguments): Adjust prototype.
5319 2016-12-21  Jason Merrill  <jason@redhat.com>
5321         * c.opt (-fnew-ttp-matching): New flag.
5322         * c-opts.c (c_common_post_options): Default on if -std=c++1z.
5324 2016-12-14  Martin Jambor  <mjambor@suse.cz>
5326         * c-omp.c: Include omp-general.h instead of omp-low.h.
5327         (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
5328         name.
5330 2016-12-14  Martin Sebor  <msebor@redhat.com>
5332         PR c/17308
5333         * c-common.c (check_nonnull_arg): Disable when optimization
5334         is enabled.
5336 2016-12-12  Marek Polacek  <polacek@redhat.com>
5338         PR c++/78647
5339         * c-common.c (attribute_fallthrough_p): Return false for
5340         error_mark_node.
5342 2016-12-08  Martin Sebor  <msebor@redhat.com>
5344         PR c/78284
5345         * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
5347 2016-12-08  Martin Sebor  <msebor@redhat.com>
5349         PR c/78165
5350         * c-pretty-print (pp_c_integer_constant): Avoid formatting type
5351         suffix.
5353 2016-12-07  Martin Sebor  <msebor@redhat.com>
5355         PR c/53562
5356         PR middle-end/77784
5357         PR middle-end/78149
5358         PR middle-end/78138
5359         * c.opt (-Wstringop-overflow): New option.
5361 2016-12-02  Maxim Ostapenko  <m.ostapenko@samsung.com>
5363         * c-attribs.c (asan odr indicator): New attribute.
5364         (handle_asan_odr_indicator_attribute): New function.
5366 2016-11-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5368         * c-common.c (c_common_nodes_and_builtins): Remove initialization of
5369         ptrdiff_type_node;
5371 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
5373         * c-common.c (excess_precision_mode_join): New.
5374         (c_ts18661_flt_eval_method): New.
5375         (c_c11_flt_eval_method): Likewise.
5376         (c_flt_eval_method): Likewise.
5377         * c-common.h (excess_precision_mode_join): New.
5378         (c_flt_eval_method): Likewise.
5379         * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
5380         (cpp_iec_559_value): Call it.
5381         (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
5382         call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
5383         __FLT_EVAL_METHOD_TS_18661_3__.
5385 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
5387         * c-opts.c (c_common_post_options): Add logic to handle the default
5388         case for -fpermitted-flt-eval-methods.
5390 2016-11-23  Paolo Bonzini  <bonzini@gnu.org>
5392         * c.opt (Wexpansion-to-defined): New.
5394 2016-11-23  Jakub Jelinek  <jakub@redhat.com>
5396         PR target/78451
5397         * c-pragma.c (handle_pragma_target): Don't replace
5398         current_target_pragma, but chainon the new args to the current one.
5400 2016-11-22  Nathan Sidwell  <nathan@acm.org>
5402         * array-notation-common.c (cilkplus_extract_an_trplets): Fix
5403         indentation and formatting.
5405 2016-11-21  Martin Sebor  <msebor@redhat.com>
5407         * c.opt (-fprintf-return-value): Enable by default.
5409 2016-11-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5411         PR c++/71973
5412         * c.opt (-Wbuiltin-declaration-mismatch): New warning.
5413         * c-common.c (c_common_nodes_and_builtins): Initialize
5414         const_tm_ptr_type_node.
5416 2016-11-16  Marek Polacek  <polacek@redhat.com>
5418         PR c/78285
5419         * c-common.c (c_add_case_label): Turn error_at calls into inform.
5421 2016-11-14  Jakub Jelinek  <jakub@redhat.com>
5423         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
5425 2016-11-14  Prasad Ghangal  <prasad.ghangal@gmail.com>
5426             Richard Biener  <rguenther@suse.de>
5428         * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
5429         * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
5430         * c.opt (fgimple): New option.
5432 2016-11-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5434         PR c/35503
5435         * c-common.h (warn_for_restrict): Declare.
5436         * c-warn.c: Include gcc-rich-location.h.
5437         (warn_for_restrict): New function.
5438         * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
5439         (gcc_cdiag_char_table): Likewise.
5440         (gcc_cxxdiag_char_table): Likewise.
5441         * c.opt (Wrestrict): New option.
5443 2016-11-13  Eric Botcazou  <ebotcazou@adacore.com>
5445         * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
5446         for nested types only if the type is a record or union and dump SLOC.
5448 2016-11-09  Jason Merrill  <jason@redhat.com>
5450         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
5452 2016-11-09  Jakub Jelinek  <jakub@redhat.com>
5454         * c-ubsan.c (ubsan_instrument_shift): Handle split
5455         -fsanitize=shift-base and -fsanitize=shift-exponent.
5457 2016-11-07  Jason Merrill  <jason@redhat.com>
5459         * c.opt (Wc++1z-compat): New.
5460         * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
5462 2016-11-07  Martin Liska  <mliska@suse.cz>
5464         * c-warn.c (warn_for_unused_label): Save all labels used
5465         in goto or in &label.
5467 2016-11-03  Jason Merrill  <jason@redhat.com>
5469         * c-cppbuiltin.c (c_cpp_builtins): Correct
5470         __cpp_inheriting_constructors.
5472 2016-11-01  Jason Merrill  <jason@redhat.com>
5474         * c-cppbuiltin.c (c_cpp_builtins): Update
5475         __cpp_inheriting_constructors.
5477         * c.opt (-fnew-inheriting-ctors): New.
5478         * c-opts.c: Default to on for ABI 11+.
5480 2016-10-31  Jakub Jelinek  <jakub@redhat.com>
5482         PR c++/77948
5483         * c.opt (fext-numeric-literals): Add Var and Init.
5484         * c-opts.c (c_common_handle_option): Don't clear
5485         cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
5486         (c_common_post_options): Clear it here if not set
5487         explicitly.
5489 2016-10-28  Aldy Hernandez  <aldyh@redhat.com>
5491         PR debug/77773
5492         * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
5493         if NULL.
5495 2016-10-25  Jakub Jelinek  <jakub@redhat.com>
5497         * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
5498         * c-common.c (c_common_reswords): Add __builtin_launder.
5500 2016-10-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5502         * c-common.c (c_common_truthvalue_conversion): Warn for
5503         multiplications in boolean context.  Fix the quoting of '<<' and '<'
5504         in the shift warning.
5506 2016-10-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5508         * c-common.c (c_common_truthvalue_conversion): Fix the comment.
5510 2016-10-20  Jason Merrill  <jason@redhat.com>
5512         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
5514 2016-10-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5516         * c-common.c (c_common_truthvalue_conversion): Warn only for signed
5517         integer shift ops in boolean context.
5519 2016-10-18  Aldy Hernandez  <aldyh@redhat.com>
5521         * c.opt (Walloca): New.
5522         (Walloca-larger-than=): New.
5523         (Wvla-larger-than=): New.
5525 2016-10-17  Marek Polacek  <polacek@redhat.com>
5527         * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
5528         Return immediately when finding a match.
5529         (warn_tautological_cmp): Remove a boolean variable that is no longer
5530         needed.
5532 2016-10-17  Marek Polacek  <polacek@redhat.com>
5534         * c-attribs.c: New file.
5535         * c-common.c: Move attributes handling to c-attribs.c.
5536         (get_nonnull_operand): No longer static.
5537         * c-common.h: Move the declarations from c-attribs.c to its own section.
5539 2016-10-14  Jason Merrill  <jason@redhat.com>
5541         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
5542         and __cpp_deduction_guides.
5544 2016-10-13  Jason Merrill  <jason@redhat.com>
5546         * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
5548 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5550         * c-cppbuiltin.c: Include memmodel.h.
5551         * c-opts.c: Likewise.
5552         * c-pragma.c: Likewise.
5553         * c-warn.c: Likewise.
5555 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
5557         * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
5558         (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
5559         * c-opts.c (sanitize_cpp_opts): Initialize
5560         cpp_opts->cpp_warn_implicit_fallthrough.
5562 2016-10-11  Marek Polacek  <polacek@redhat.com>
5564         * c-common.c (warning_candidate_p): Change the return type to bool
5565         and return true/false instead of 1/0.
5566         (vector_mode_valid_p): Likewise.
5568 2016-10-11  Marek Polacek  <polacek@redhat.com>
5570         * c-common.c (fold_for_warn): No longer static.
5571         (bool_promoted_to_int_p): Likewise.
5572         (c_common_get_narrower): Likewise.
5573         (constant_expression_warning): Move to c-warn.c.
5574         (constant_expression_error): Likewise.
5575         (overflow_warning): Likewise.
5576         (warn_logical_operator): Likewise.
5577         (find_array_ref_with_const_idx_r): Likewise.
5578         (warn_tautological_cmp): Likewise.
5579         (expr_has_boolean_operands_p): Likewise.
5580         (warn_logical_not_parentheses): Likewise.
5581         (warn_if_unused_value): Likewise.
5582         (strict_aliasing_warning): Likewise.
5583         (sizeof_pointer_memaccess_warning): Likewise.
5584         (check_main_parameter_types): Likewise.
5585         (conversion_warning): Likewise.
5586         (warnings_for_convert_and_check): Likewise.
5587         (match_case_to_enum_1): Likewise.
5588         (match_case_to_enum): Likewise.
5589         (c_do_switch_warnings): Likewise.
5590         (warn_for_omitted_condop): Likewise.
5591         (readonly_error): Likewise.
5592         (lvalue_error): Likewise.
5593         (invalid_indirection_error): Likewise.
5594         (warn_array_subscript_with_type_char): Likewise.
5595         (warn_about_parentheses): Likewise.
5596         (warn_for_unused_label): Likewise.
5597         (warn_for_div_by_zero): Likewise.
5598         (warn_for_memset): Likewise.
5599         (warn_for_sign_compare): Likewise.
5600         (do_warn_double_promotion): Likewise.
5601         (do_warn_unused_parameter): Likewise.
5602         (record_locally_defined_typedef): Likewise.
5603         (maybe_record_typedef_use): Likewise.
5604         (maybe_warn_unused_local_typedefs): Likewise.
5605         (maybe_warn_bool_compare): Likewise.
5606         (maybe_warn_shift_overflow): Likewise.
5607         (warn_duplicated_cond_add_or_warn): Likewise.
5608         (diagnose_mismatched_attributes): Likewise.
5609         * c-common.h: Move the declarations from c-warn.c to its own section.
5610         * c-warn.c: New file.
5612 2016-10-08  Jason Merrill  <jason@redhat.com>
5614         * c-common.c (c_common_truthvalue_conversion): Don't distribute
5615         into COND_EXPR in C++.
5617 2016-10-08  Jakub Jelinek  <jakub@redhat.com>
5619         * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
5620         token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
5621         CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
5623 2016-10-07  Jakub Jelinek  <jakub@redhat.com>
5625         Implement LWG2296 helper intrinsic
5626         * c-common.h (enum rid): Add RID_ADDRESSOF.
5627         * c-common.c (c_common_reswords): Add __builtin_addressof.
5629 2016-10-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5631         PR c++/77700
5632         * c-common.c (c_common_truthvalue_conversion): Warn also for
5633         suspicious enum values in boolean context.
5635 2016-10-06  Jakub Jelinek  <jakub@redhat.com>
5637         Implement P0258R2 - helper for C++17
5638         std::has_unique_object_representations trait
5639         * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
5640         * c-common.c (c_common_reswords): Add
5641         __has_unique_object_representations.
5643 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
5645         PR sanitizer/66343
5646         * c-ubsan.c (ubsan_instrument_return): Don't call
5647         initialize_sanitizer_builtins here.
5649 2016-10-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5651         * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
5652         conditional expression in boolean context when only one arm is
5653         non-boolean.
5655 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
5657         PR sanitizer/77823
5658         * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
5659         is not integral.
5661         * c-common.c (c_common_reswords): Update comment for C++11.
5663 2016-10-04  Jason Merrill  <jason@redhat.com>
5665         * c-common.c (make_tree_vector_from_ctor): New.
5666         * c-common.h: Declare it.
5668 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
5670         * c-cppbuiltin.c (c_cpp_builtins): Don't define
5671         __LIBGCC_JCR_SECTION_NAME__.
5673 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5675         * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
5676         left shift in boolean context.
5678 2016-09-29  Jakub Jelinek  <jakub@redhat.com>
5680         Implement P0001R1 - C++17 removal of register storage class specifier
5681         * c.opt (Wregister): New warning.
5682         * c-opts.c (c_common_post_options): Enable -Wregister by
5683         default for C++17.
5685 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
5687         * c-opts.c (c_common_post_options): Remove special case for
5688         TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
5689         in C++.
5691 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
5693         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
5694         -std=c++1z.
5696         * c-ada-spec.c (print_ada_declaration): Remove break after return.
5698 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5700         * c-common.c: Include memmodel.h.
5702 2016-09-26  Marek Polacek  <polacek@redhat.com>
5704         * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
5706 2016-09-26  Marek Polacek  <polacek@redhat.com>
5708         PR c/7652
5709         * c-common.c (c_common_attribute_table): Add fallthrough attribute.
5710         (handle_fallthrough_attribute): New function.
5711         (attribute_fallthrough_p): New function.
5712         * c-common.h (attribute_fallthrough_p): Declare.
5714 2016-09-24  Marek Polacek  <polacek@redhat.com>
5716         PR c/77490
5717         * c.opt (Wbool-operation): New.
5719 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5721         * c-common.c (c_common_truthvalue_conversion): Inhibit
5722         Wint-in-bool-context warning with from_macro_definition_at.
5723         Mention the expression will always evaluate to true.
5725 2016-09-21  Martin Sebor  <msebor@redhat.com>
5727         PR bootstrap/77676
5728         * c.opt (fprintf-return-value): Temporarily initialize to zero
5729         to unblock bootstrap failures.
5731 2016-09-21  Jakub Jelinek  <jakub@redhat.com>
5733         PR c++/77651
5734         * c.opt (Waligned-new=): Add RejectNegative.
5735         (faligned-new=): Likewise.  Spelling fix - change
5736         aligned_new_threshhold to aligned_new_threshold.
5737         * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
5738         to aligned_new_threshold.
5740 2016-09-20  Martin Sebor  <msebor@redhat.com>
5742         PR middle-end/49905
5743         * c.opt: Add -Wformat-length and -fprintf-return-value.
5745 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5747         PR c++/77434
5748         * c.opt (Wint-in-bool-context): New warning.
5749         * c-common.c (c_common_truthvalue_conversion): Warn on integer
5750         constants in boolean context.
5752 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
5754         * c-common.c (max_align_t_align): Also consider alignment of
5755         float128_type_node.
5757 2016-09-15  Jason Merrill  <jason@redhat.com>
5759         * c-common.c (check_cxx_fundamental_alignment_constraints): Check
5760         DECL_EXTERNAL.
5762 2016-09-14  Jason Merrill  <jason@redhat.com>
5764         * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
5765         limit FIELD_DECL, either.
5767 2016-09-14  Marek Polacek  <polacek@redhat.com>
5769         * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
5770         * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
5771         * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
5773 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
5775         * c-common.c (warn_logical_not_parentheses): Replace
5776         rich_location::add_fixit_insert calls with add_fixit_insert_before
5777         and add_fixit_insert_after, eliminating the "next_loc" calculation.
5779 2016-09-13  Jason Merrill  <jason@redhat.com>
5780             Tom de Vries  <tom@codesourcery.com>
5782         PR c++/77427
5783         * c-common.c (set_underlying_type): Don't treat array as builtin type.
5785 2016-09-13  Jason Merrill  <jason@redhat.com>
5787         * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
5788         limit types at all.
5790 2016-09-12  Jason Merrill  <jason@redhat.com>
5792         * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
5793         bit/byte confusion, allow large alignment for types.
5795 2016-09-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5797         PR c++/77496
5798         * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
5800 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
5802         PR c/72858
5803         * c-format.c (argument_parser::check_argument_type): Add params
5804         "type_start" and "conversion_char".  Use the former to generate
5805         offset_to_type_start and pass it and conversion_char to
5806         check_format_types.
5807         (check_format_info_main): Capture the start of the type
5808         information as "type_start", and pass it an format_char
5809         to arg_parser.check_argument_type.
5810         (check_format_types): Provide an example in the leading comment.
5811         Add params "offset_to_type_start" and "conversion_char"; pass
5812         them to format_type_warning calls.
5813         (test_get_modifier_for_format_len): Likewise.
5814         (matching_type_p): New function.
5815         (get_format_for_type): Add param "conversion_char" and move
5816         implementation into...
5817         (get_format_for_type_1): ...new function, called twice.
5818         Use new function matching_type_p rather than checking for
5819         TYPE_CANONICAL equality.
5820         (get_corrected_substring): New function.
5821         (format_type_warning): Provide an example in the leading comment.
5822         Add params "offset_to_type_start" and "conversion_char".  Replace
5823         call to get_format_for_type with call to get_corrected_substring
5824         and move rejection of hints for widths/precisions there.
5825         (assert_format_for_type_streq): Add param "conversion_char".
5826         (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
5827         (test_get_format_for_type_printf): Add conversion chars to the
5828         tests, adding coverage for various combinations of integer
5829         vs double conversions, and for preserving octal and hexadecimal
5830         conversions.
5831         (test_get_format_for_type_scanf): Add conversion chars to the
5832         tests.
5834 2016-09-10  Tom de Vries  <tom@codesourcery.com>
5836         PR C/71602
5837         * c-common.c (build_va_arg): Handle more strict
5838         targetm.canonical_va_list_type.  Replace first argument type error with
5839         assert.
5841 2016-09-09  Martin Sebor  <msebor@redhat.com>
5843         PR c/77520
5844         PR c/77521
5845         * c-format.c (argument_parser::find_format_char_info): Use %qc
5846         format directive unconditionally.
5848 2016-09-09  Jason Merrill  <jason@redhat.com>
5850         Implement C++17 new of over-aligned types.
5851         * c.opt: Add -faligned-new and -Waligned-new.
5852         * c-common.c (max_align_t_align): Split out from...
5853         (cxx_fundamental_alignment_p): ...here.
5854         * c-common.h: Declare it.
5855         * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
5857 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
5859         * c-cppbuiltin.c (builtin_define_type_width): New function.
5860         (builtin_define_stdint_macros, c_cpp_builtins): Define type width
5861         macros.
5863 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
5865         * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
5866         a POINTER_TYPE.
5867         (substring_loc::get_location): Move to substring-locations.c,
5868         keeping implementation as...
5869         (c_get_substring_location): New function, from the above, reworked
5870         to use accessors rather than member lookup.
5871         * c-common.h (class substring_loc): Move to substring-locations.h,
5872         replacing with a forward decl.
5873         (c_get_substring_location): New decl.
5874         * c-format.c: Include "substring-locations.h".
5875         (format_warning_va): Move to substring-locations.c.
5876         (format_warning_at_substring): Likewise.
5878 2016-09-06  Martin Sebor  <msebor@redhat.com>
5880         PR c/77336
5881         * c-format.c (check_function_format): Avoid issuing warnings for
5882         functions unless they call format functions with non-constant
5883         format strings.
5885 2016-09-06  Richard Biener  <rguenther@suse.de>
5887         PR c/77450
5888         * c-common.c (c_common_mark_addressable_vec): Handle
5889         COMPOUND_LITERAL_EXPR.
5891 2016-09-05  Marek Polacek  <polacek@redhat.com>
5893         PR c/77423
5894         * c-common.c (bool_promoted_to_int_p): New function.
5895         (expr_has_boolean_operands_p): New function.
5896         (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
5897         (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
5899 2016-09-04  Tom de Vries  <tom@codesourcery.com>
5901         revert:
5902         2016-08-29  Tom de Vries  <tom@codesourcery.com>
5904         * c-common.c (build_va_arg): Replace first argument type error
5905         with assert.
5907 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
5909         PR c/65467
5910         * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
5911         (c_finish_omp_for): Reject _Atomic qualified iterators.
5913 2016-09-01  Martin Sebor  <msebor@redhat.com>
5915         * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
5916         size to guarantee it fits the output of the formatted function
5917         regardless of its arguments.
5919 2016-09-01  Marek Polacek  <polacek@redhat.com>
5921         PR c/7652
5922         * c-common.c (resolve_overloaded_builtin): Fix formatting.  Add
5923         FALLTHRU comments.
5925 2016-08-29  Marek Polacek  <polacek@redhat.com>
5927         PR c/77292
5928         * c-common.c (warn_logical_not_parentheses): Don't warn for
5929         a comparison or a logical operator.
5931 2016-08-29  Tom de Vries  <tom@codesourcery.com>
5933         * c-common.c (build_va_arg): Fix type comparison assert.
5935 2016-08-29  Tom de Vries  <tom@codesourcery.com>
5937         * c-common.c (build_va_arg): Replace first argument type error
5938         with assert.
5940 2016-08-29  Tom de Vries  <tom@codesourcery.com>
5942         PR c/77398
5943         * c-common.c (build_va_arg): Add first argument error.  Build va_arg
5944         with error_mark_node as va_list instead of with illegal va_list.
5946 2016-08-25  Marek Polacek  <polacek@redhat.com>
5947             David Malcolm  <dmalcolm@redhat.com>
5949         * c-common.c (warn_logical_not_parentheses): Print fixit hints.
5950         * c-common.h (warn_logical_not_parentheses): Update declaration.
5952 2016-08-22  Marek Polacek  <polacek@redhat.com>
5954         PR c++/77321
5955         * c-common.c (warn_for_memset): Check type for null.
5957 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
5959         * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
5960         _FloatNx types for suffixes for built-in functions.
5962 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
5964         PR c/32187
5965         * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
5966         (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
5967         (RID_FLOAT128X): New enum rid values.
5968         (CASE_RID_FLOATN_NX): New macro.
5969         * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
5970         keywords.
5971         (c_common_type_for_mode): Check for _FloatN and _FloatNx and
5972         corresponding complex types.
5973         (c_common_nodes_and_builtins): For non-C++, register _FloatN and
5974         _FloatNx and corresponding complex types.
5975         (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
5976         * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
5977         and _FloatNx types for the widest type for determining
5978         DECIMAL_DIG.  Define __LDBL_DECIMAL_DIG__ as well as
5979         __DECIMAL_DIG__ for long double.  Handle FMA_SUFFIX being NULL.
5980         (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
5981         and _FloatNx types.
5982         * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
5983         constants.
5984         * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
5985         _FloatNx types.
5987 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
5989         * c-opts.c (c_diagnostic_finalizer): Update for change to
5990         diagnostic_show_locus.
5992 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
5994         * c-common.c: Include "spellcheck.h".
5995         (cb_get_suggestion): New function.
5996         * c-common.h (cb_get_suggestion): New decl.
5997         * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
5998         cb_get_suggestion.
6000 2016-08-18  Marek Polacek  <polacek@redhat.com>
6002         PR c/71514
6003         * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
6004         and pointer-to-VLA.
6006 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
6008         PR c/72857
6009         * c-common.c (substring_loc::get_range): Rename to...
6010         (substring_loc::get_location): ...this, converting param from a
6011         source_range * to a location_t *.  Call
6012         get_source_location_for_substring rather than
6013         get_source_range_for_substring, and pass in m_caret_idx.
6014         * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
6015         (substring_loc::get_range): Replace with...
6016         (substring_loc::get_location): ...this.
6017         (substring_loc::set_caret_index): New method.
6018         (substring_loc): Add field m_caret_idx.
6019         * c-format.c (format_warning_va): Update for above changes.
6020         Rename local "substring_loc" to "fmt_substring_loc" to avoid
6021         clashing with type name.
6022         (format_warning_at_char): Add caret_idx param to substring_loc ctor.
6023         (check_argument_type): Likewise.
6024         (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
6025         Use a copy when emitting warnings, setting the caret index from TYPE.
6027 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
6028             Arnaud Charlet  <charlet@adacore.com>
6030         * c-ada-spec.c (dump_number): New function.
6031         (handle_escape_character): Likewise.
6032         (print_ada_macros): Add handling of constant integers and strings.
6034 2016-08-12  Marek Polacek  <polacek@redhat.com>
6036         PR c/7652
6037         * c-common.c (scalar_to_vector): Adjust fall through comment.
6038         * c-opts.c (c_common_handle_option): Likewise.
6039         * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
6040         * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
6041         fall through comment.
6042         * cilk.c (extract_free_variables): Add FALLTHRU.
6044 2016-08-10  Jason Merrill  <jason@redhat.com>
6046         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
6048 2016-08-09  Jason Merrill  <jason@redhat.com>
6050         * c-common.c (c_common_attribute_table): vector_size affects type
6051         identity.
6053 2016-08-09  Marek Polacek  <polacek@redhat.com>
6055         PR c/7652
6056         * c-ada-spec.c (dump_generic_ada_node): Add return.
6058 2016-08-09  Jason Merrill  <jason@redhat.com>
6060         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
6061         C++17 constexpr lambdas.
6063 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
6065         PR c/64955
6066         * c-common.h (selftest::c_format_c_tests): New declaration.
6067         (selftest::run_c_tests): New declaration.
6068         * c-format.c: Include "selftest.h.
6069         (format_warning_va): Add param "corrected_substring" and use
6070         it to add a replacement fix-it hint.
6071         (format_warning_at_substring): Likewise.
6072         (format_warning_at_char): Update for new param of
6073         format_warning_va.
6074         (argument_parser::check_argument_type): Pass "fki" to
6075         check_format_types.
6076         (check_format_types): Add param "fki" and pass it to
6077         format_type_warning.
6078         (deref_n_times): New function.
6079         (get_modifier_for_format_len): New function.
6080         (selftest::test_get_modifier_for_format_len): New function.
6081         (get_format_for_type): New function.
6082         (format_type_warning): Add param "fki" and use it to attempt
6083         to provide hints for argument types when calling
6084         format_warning_at_substring.
6085         (selftest::get_info): New function.
6086         (selftest::assert_format_for_type_streq): New function.
6087         (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
6088         (selftest::test_get_format_for_type_printf): New function.
6089         (selftest::test_get_format_for_type_scanf): New function.
6090         (selftest::c_format_c_tests): New function.
6092 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
6094         PR c/52952
6095         * c-format.c: Include "diagnostic.h".
6096         (location_column_from_byte_offset): Delete.
6097         (location_from_offset): Delete.
6098         (format_warning_va): New function.
6099         (format_warning_at_substring): New function.
6100         (format_warning_at_char): New function.
6101         (check_format_arg): Capture location of format_tree and pass to
6102         check_format_info_main.
6103         (argument_parser): Add fields "start_of_this_format" and
6104         "format_string_cst".
6105         (flag_chars_t::validate): Add param "format_string_cst".  Convert
6106         warning_at call using location_from_offset to call to
6107         format_warning_at_char.
6108         (argument_parser::argument_parser): Add param "format_string_cst_"
6109         and use use it to initialize field "format_string_cst".
6110         Initialize new field "start_of_this_format".
6111         (argument_parser::read_format_flags): Convert warning_at call
6112         using location_from_offset to a call to format_warning_at_char.
6113         (argument_parser::read_any_format_left_precision): Likewise.
6114         (argument_parser::read_any_format_precision): Likewise.
6115         (argument_parser::read_any_other_modifier): Likewise.
6116         (argument_parser::find_format_char_info): Likewise, in three places.
6117         (argument_parser::parse_any_scan_set): Likewise, in one place.
6118         (argument_parser::handle_conversions): Likewise, in two places.
6119         (argument_parser::check_argument_type): Add param "fmt_param_loc"
6120         and use it to make a substring_loc.  Pass the latter to
6121         check_format_types.
6122         (check_format_info_main): Add params "fmt_param_loc" and
6123         "format_string_cst".  Convert warning_at calls using
6124         location_from_offset to calls to format_warning_at_char.  Pass the
6125         new params to the arg_parser ctor.  Pass "format_string_cst" to
6126         flag_chars.validate.  Pass "fmt_param_loc" to
6127         arg_parser.check_argument_type.
6128         (check_format_types): Convert first param from a location_t
6129         to a const substring_loc & and rename to "fmt_loc".  Attempt
6130         to extract the range of the relevant parameter and pass it
6131         to format_type_warning.
6132         (format_type_warning): Convert first param from a location_t
6133         to a const substring_loc & and rename to "fmt_loc".  Add
6134         params "param_range" and "type".  Replace calls to warning_at
6135         with calls to format_warning_at_substring.
6137 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
6139         * c-format.c (class flag_chars_t): New class.
6140         (struct length_modifier): New struct.
6141         (class argument_parser): New class.
6142         (flag_chars_t::flag_chars_t): New ctor.
6143         (flag_chars_t::has_char_p): New method.
6144         (flag_chars_t::add_char): New method.
6145         (flag_chars_t::validate): New method.
6146         (flag_chars_t::get_alloc_flag): New method.
6147         (flag_chars_t::assignment_suppression_p): New method.
6148         (argument_parser::argument_parser): New ctor.
6149         (argument_parser::read_any_dollar): New method.
6150         (argument_parser::read_format_flags): New method.
6151         (argument_parser::read_any_format_width): New method.
6152         (argument_parser::read_any_format_left_precision): New method.
6153         (argument_parser::read_any_format_precision): New method.
6154         (argument_parser::handle_alloc_chars): New method.
6155         (argument_parser::read_any_length_modifier): New method.
6156         (argument_parser::read_any_other_modifier): New method.
6157         (argument_parser::find_format_char_info): New method.
6158         (argument_parser::validate_flag_pairs): New method.
6159         (argument_parser::give_y2k_warnings): New method.
6160         (argument_parser::parse_any_scan_set): New method.
6161         (argument_parser::handle_conversions): New method.
6162         (argument_parser::check_argument_type): New method.
6163         (check_format_info_main): Introduce classes argument_parser
6164         and flag_chars_t, moving the code within the loop into methods
6165         of these classes.  Make various locals "const".
6167 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
6169         * c-common.c: Include "substring-locations.h".
6170         (get_cpp_ttype_from_string_type): New function.
6171         (g_string_concat_db): New global.
6172         (substring_loc::get_range): New method.
6173         * c-common.h (g_string_concat_db): New declaration.
6174         (class substring_loc): New class.
6175         * c-lex.c (lex_string): When concatenating strings, capture the
6176         locations of all tokens using a new obstack, and record the
6177         concatenation locations within g_string_concat_db.
6178         * c-opts.c (c_common_init_options): Construct g_string_concat_db
6179         on the ggc-heap.
6181 2016-07-29  Marek Polacek  <polacek@redhat.com>
6183         PR c/71926
6184         * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
6185         parentheses warning.
6187         PR c/71574
6188         * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
6190 2016-07-28  Martin Liska  <mliska@suse.cz>
6192         PR gcov-profile/68025
6193         * c-common.c (handle_no_profile_instrument_function_attribute):
6195 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6197         * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
6198         BITS_PER_UNIT_LOG.
6200 2016-07-25  Jason Merrill  <jason@redhat.com>
6202         PR c++/65970
6203         * c.opt (fconstexpr-loop-limit): New.
6205 2016-07-22  Martin Sebor  <msebor@redhat.com>
6207         PR c++/71675
6208         * c-common.c (resolve_overloaded_builtin): Avoid converting
6209         __atomic_compare_exchange_n return type to that of what its
6210         first argument points to.
6212 2016-07-22  Uros Bizjak  <ubizjak@gmail.com>
6214         * c-common.c: Use HOST_WIDE_INT_M1U instead of
6215         ~(unsigned HOST_WIDE_INT) 0.
6217 2016-07-22  Martin Liska  <mliska@suse.cz>
6219         PR gcov-profile/69028
6220         PR gcov-profile/62047
6221         * cilk.c (create_cilk_helper_decl): Set location of a new decl
6222         to the current_function_decl.
6224 2016-07-21  Jason Merrill  <jason@redhat.com>
6226         PR c++/65168
6227         * c-common.c (c_common_truthvalue_conversion): Check
6228         c_inhibit_evaluation_warnings for warning about address of
6229         reference.
6231 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
6233         * c-common.h (lookup_name_fuzzy): Convert return type from tree to
6234         const char *.
6236 2016-07-15  Jason Merrill  <jason@redhat.com>
6238         * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
6240 2016-07-15  Jakub Jelinek  <jakub@redhat.com>
6242         PR c/71858
6243         * c-common.h (enum lookup_name_fuzzy_kind): Add
6244         FUZZY_LOOKUP_FUNCTION_NAME.
6246 2016-07-08  Jason Merrill  <jason@redhat.com>
6248         P0145: Refining Expression Order for C++.
6249         * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
6250         * c-opts.c: Adjust.
6252 2016-07-05  Markus Trippelsdorf  <markus@trippelsdorf.de>
6254         PR c++/71214
6255         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
6257 2016-06-29  Thomas Schwinge  <thomas@codesourcery.com>
6259         * c-pragma.h (enum pragma_kind): Rename
6260         PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE.  Adjust all
6261         users.
6263 2016-06-29  Richard Biener  <rguenther@suse.de>
6265         PR middle-end/71002
6266         * c-common.c (c_common_get_alias_set): Remove union type punning case.
6268 2016-06-24  Jason Merrill  <jason@redhat.com>
6270         P0145R2: Refining Expression Order for C++.
6271         * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
6272         MODIFY_EXPR.
6274 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
6276         * c-common.c (check_builtin_function_arguments): Require last
6277         argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
6278         Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
6279         if the last argument is pointer to enumerated or boolean type.
6281 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
6283         PR c/70339
6284         * c-common.h (enum lookup_name_fuzzy_kind): New enum.
6285         (lookup_name_fuzzy): New prototype.
6287 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
6289         * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
6291 2016-06-14  Jason Merrill  <jason@redhat.com>
6293         P0145R2: Refining Expression Order for C++.
6294         * c.opt (fargs-in-order): New.
6295         * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
6297 2016-06-13  Jakub Jelinek  <jakub@redhat.com>
6299         PR sanitizer/71498
6300         * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
6301         all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
6303         PR preprocessor/71183
6304         * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
6305         to cb_get_source_date_epoch.
6307 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
6309         PR c/68657
6310         * c.opt (Wpsabi): Add Warning flag.
6312 2016-06-10  Martin Sebor  <msebor@redhat.com>
6314         PR c/71392
6315         * c-common.c (handle_nonnull_attribute): Accept
6316         the nonnull attribute in type-generic builtins.
6318 2016-06-09  Martin Sebor  <msebor@redhat.com>
6320         PR c/70883
6321         * c-common.c (builtin_function_validate_nargs): Make text of error
6322         message consistent with others like it.
6324 2016-06-08  Martin Sebor  <msebor@redhat.com>
6325             Jakub Jelinek  <jakub@redhat.com>
6327         PR c++/70507
6328         PR c/68120
6329         * c-common.c (check_builtin_function_arguments): Handle
6330         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
6332 2016-06-08  Richard Biener  <rguenther@suse.de>
6334         * c-common.c (parse_optimize_options): Improve diagnostic messages.
6336 2016-06-07  Richard Biener  <rguenther@suse.de>
6338         PR c/61564
6339         * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
6340         options and warn about others.
6342 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
6344         * c-common.c (get_source_date_epoch): Rename to
6345         cb_get_source_date_epoch.
6346         * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
6347         message when the parsing fails.  Use error_at instead of fatal_error.
6348         * c-common.h (get_source_date_epoch): Rename to
6349         cb_get_source_date_epoch.
6350         * c-common.h (cb_get_source_date_epoch): Prototype.
6351         * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
6352         * c-common.h (c_omp_region_type): Remove trailing comma.
6353         * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
6354         * c-lex.c (c_lex_with_flags): Remove initialization of
6355         pfile->source_date_epoch.
6357 2016-05-30  Jakub Jelinek  <jakub@redhat.com>
6359         PR c++/71349
6360         * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
6361         C_OMP_CLAUSE_SPLIT_TARGET.  Put OMP_CLAUSE_NOWAIT to
6362         C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
6363         instead of C_OMP_CLAUSE_SPLIT_FOR.
6365 2016-05-24  Richard Biener  <rguenther@suse.de>
6367         PR middle-end/70434
6368         PR c/69504
6369         * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
6370         (convert_vector_to_array_for_subscript): ... this.
6371         * c-common.c (convert_vector_to_pointer_for_subscript): Use a
6372         VIEW_CONVERT_EXPR to an array type.  Rename to ...
6373         (convert_vector_to_array_for_subscript): ... this.
6375 2016-05-12  Marek Polacek  <polacek@redhat.com>
6377         PR c/70756
6378         * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
6379         size_in_bytes and pass LOC to it.
6381 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
6383         PR c/43651
6384         * c.opt (Wduplicate-decl-specifier): New option.
6386 2016-05-11  Marek Polacek  <polacek@redhat.com>
6388         PR c++/71024
6389         * c-common.c (diagnose_mismatched_attributes): New function.
6390         * c-common.h (diagnose_mismatched_attributes): Declare.
6392 2016-05-04  Marek Polacek  <polacek@redhat.com>
6394         * c.opt (Wdangling-else): New option.
6396 2016-05-03  Marek Polacek  <polacek@redhat.com>
6398         PR c/70859
6399         * c-common.c (builtin_function_validate_nargs): Add location
6400         parameter.  Use it.
6401         (check_builtin_function_arguments): Add location and arguments
6402         parameters.  Use them.
6403         * c-common.h (check_builtin_function_arguments): Update declaration.
6405 2016-05-03  Richard Biener  <rguenther@suse.de>
6407         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
6408         allow call args to gimplify to SSA names.
6410 2016-05-03  Marek Polacek  <polacek@redhat.com>
6412         * c-common.h (enum c_omp_region_type): Remove stray comma.
6414 2016-05-02  Cesar Philippidis  <cesar@codesourcery.com>
6416         * c-common.h (enum c_omp_region_type): Define.
6418 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
6420         * c-common.c (shorten_compare): Use wi::to_wide.
6422 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
6424         PR middle-end/70626
6425         * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
6426         * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
6427         reduction clauses in acc parallel loops.
6429 2016-04-29  Marek Polacek  <polacek@redhat.com>
6431         PR c/70852
6432         * c-common.c (warn_for_memset): Check domain before accessing it.
6434 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6436         PR/69089
6437         * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
6438         "aligned" attribute.
6440 2016-04-28  Jason Merrill  <jason@redhat.com>
6442         * c-lex.c (c_common_has_attribute): Handle nodiscard.
6444 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
6445             Matthias Klose  <doko@debian.org>
6447         * c-common.c (get_source_date_epoch): New function, gets the environment
6448         variable SOURCE_DATE_EPOCH and parses it as long long with error
6449         handling.
6450         * c-common.h (get_source_date_epoch): Prototype.
6451         * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
6453 2015-04-27  Ryan Burn  <contact@rnburn.com>
6455         PR c++/69024
6456         PR c++/68997
6457         * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
6458         (cilk_recognize_spawn): Renamed from recognize_spawn and change to
6459         external linkage.
6460         (cilk_detect_and_unwrap): Corresponding changes.
6461         (extract_free_variables): Don't extract free variables from
6462         AGGR_INIT_EXPR slot.
6463         * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
6464         (cilk_recognize_spawn): Likewise.
6466 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
6468         * c.opt (Wmemset-elt-size): New option.
6469         * c-common.c (warn_for_memset): New function.
6470         * c-common.h (warn_for_memset): Declare.
6472 2016-04-25  Jason Merrill  <jason@redhat.com>
6474         * c-common.c (handle_unused_attribute): Accept CONST_DECL.
6475         No longer static.
6476         * c-common.h: Declare it.
6477         * c-lex.c (c_common_has_attribute): Add maybe_unused.
6479 2016-04-22  Jason Merrill  <jason@redhat.com>
6481         * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
6483 2016-04-20  Ilya Verbin  <ilya.verbin@intel.com>
6485         PR c++/69363
6486         * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
6487         * c-common.h (c_finish_cilk_clauses): Remove declaration.
6489 2016-04-18  Michael Matz  <matz@suse.de>
6491         * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
6492         and SET_DECL_ALIGN.
6494 2016-04-17  Eric Botcazou  <ebotcazou@adacore.com>
6496         * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
6497         (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
6498         to incomplete types.
6499         (dump_nested_type): Remove redundant tests and tidy up.
6500         (print_ada_declaration): Also set TREE_VISITED on the declaration of
6501         a type which is the typedef of an original type.
6503 2016-04-15  Marek Polacek  <polacek@redhat.com>
6505         PR c/70651
6506         * c-common.c (build_va_arg): Change two asserts into errors and return
6507         error_mark_node.
6509 2016-04-13  Marek Polacek  <polacek@redhat.com>
6511         PR c++/70639
6512         * c-indentation.c (should_warn_for_misleading_indentation): Bail out
6513         for switch statements, too.
6515 2016-03-28  Jason Merrill  <jason@redhat.com>
6517         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
6519 2016-03-23  Marek Polacek  <polacek@redhat.com>
6521         PR c++/69884
6522         * c.opt (Wignored-attributes): New option.
6524 2016-03-22  David Malcolm  <dmalcolm@redhat.com>
6526         PR c/69993
6527         * c-indentation.c (warn_for_misleading_indentation): Rewrite the
6528         diagnostic text, reversing the order of the warning and note so
6529         that they appear in source order.
6531 2016-03-17  Marek Polacek  <polacek@redhat.com>
6533         PR c/69407
6534         * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
6535         operations.
6537 2016-03-14  Jason Merrill  <jason@redhat.com>
6539         * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
6541         * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
6543 2016-03-09  Richard Biener  <rguenther@suse.de>
6545         PR c/70143
6546         * c-common.c (strict_aliasing_warning): Add back
6547         alias_sets_conflict_p check.
6549 2016-03-08  Jason Merrill  <jason@redhat.com>
6551         * c-opts.c (set_std_cxx1z): Don't enable concepts.
6553 2016-03-04  David Malcolm  <dmalcolm@redhat.com>
6555         PR c/68187
6556         * c-indentation.c (get_visual_column): Move code to determine next
6557         tab stop to...
6558         (next_tab_stop): ...this new function.
6559         (line_contains_hash_if): Delete function.
6560         (detect_preprocessor_logic): Delete function.
6561         (get_first_nws_vis_column): New function.
6562         (detect_intervening_unindent): New function.
6563         (should_warn_for_misleading_indentation): Replace call to
6564         detect_preprocessor_logic with a call to
6565         detect_intervening_unindent.
6567 2016-03-04  David Malcolm  <dmalcolm@redhat.com>
6569         PR c/68187
6570         * c-indentation.c (should_warn_for_misleading_indentation): When
6571         suppressing warnings about cases where the guard and body are on
6572         the same column, only use the first non-whitespace column in place
6573         of the guard token column when dealing with "else" clauses.
6574         When rejecting aligned BODY and NEXT, loosen the requirement
6575         from equality with the first non-whitespace of guard to simply
6576         that they not be indented relative to it.
6578 2016-03-04  Richard Biener  <rguenther@suse.de>
6580         PR c++/70054
6581         * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
6582         instead of alias_sets_conflict_p.
6584 2016-03-01  Marek Polacek  <polacek@redhat.com>
6586         PR c++/69795
6587         * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
6588         any DECL.
6590 2016-02-22  Martin Sebor  <msebor@redhat.com>
6592         PR middle-end/69780
6593         * c-common.c (check_builtin_function_arguments): Validate and
6594         reject invalid arguments to __builtin_alloca_with_align.
6596 2016-02-20  Mark Wielaard  <mjw@redhat.com>
6598         PR c/28901
6599         * c.opt (Wunused-const-variable): Turn into Alias for...
6600         (Wunused-const-variable=): New option.
6602 2016-02-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6604         PR c++/69865
6605         * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
6606         here...
6607         (c_common_init_options): ...to here.
6608         (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
6610 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
6612         PR c++/69826
6613         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
6614         (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
6615         flag_preprocess_only.
6617 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
6619         PR c/69835
6620         * c.opt (Wnonnull-compare): Enable for -Wall.
6622 2016-02-15  Jakub Jelinek  <jakub@redhat.com>
6624         PR c++/69797
6625         * c-common.c (sync_resolve_size): Diagnose too few arguments
6626         even when params is non-NULL empty vector.
6628 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
6630         PR target/60410
6631         * c.opt (fshort-double): Remove.
6633 2016-02-05  Martin Sebor  <msebor@redhat.com>
6635         PR c++/69662
6636         * c.opt (Warning options): Update -Wplacement-new to take
6637         an optional argument.
6639 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
6641         PR preprocessor/69543
6642         PR c/69558
6643         * c-pragma.c (handle_pragma_diagnostic): Pass input_location
6644         instead of loc to control_warning_option.
6646 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
6648         * c.opt (fopenacc-dim=): New option.
6650 2016-01-27  Ryan Burn  <contact@rnburn.com>
6652         PR cilkplus/69267
6653         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
6654         gimplify_arg. Removed superfluous post_p argument.
6655         * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
6656         superfluous post_p argument.
6657         * c-gimplify.c (c_gimplify_expr): Likewise.
6659 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
6661         PR other/69006
6662         * c-opts.c (c_diagnostic_finalizer): Replace invocation of
6663         pp_newline_and_flush with pp_flush.
6665 2016-01-20  Martin Sebor  <msebor@redhat.com>
6667         PR c/69405
6668         * c-common.c (sync_resolve_size): Avoid printing diagnostic about
6669         an incompatible argument when the argument isn't a valid tree node.
6671 2016-01-18  Jason Merrill  <jason@redhat.com>
6673         PR c++/68767
6674         * c-common.c (check_function_arguments_recurse): Fold the whole
6675         COND_EXPR, not just the condition.
6677 2016-01-18  Tom de Vries  <tom@codesourcery.com>
6679         * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
6680         classify as loop clause.
6682 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
6684         PR bootstrap/68271
6685         * c-pragma.c (c_register_pragma_1): Adjust comment to note that
6686         C++ FE no longer has limit on number of pragmas.
6688 2015-01-14  Ryan Burn  <contact@rnburn.com>
6690         PR c++/69048
6691         * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
6692         to add missing cleanup point.
6694 2016-01-14  David Malcolm  <dmalcolm@redhat.com>
6696         PR c++/68819
6697         * c-indentation.c (get_visual_column): Add location_t param.
6698         Handle the column number being zero by effectively disabling the
6699         warning, with an "inform".
6700         (should_warn_for_misleading_indentation): Add location_t argument
6701         for all uses of get_visual_column.
6703 2016-01-10  Patrick Palka  <ppalka@gcc.gnu.org>
6705         PR c++/69029
6706         * c-indentation.c (should_warn_for_misleading_indentation):
6707         Don't warn about do-while statements.
6709 2016-01-07  Martin Sebor  <msebor@redhat.com>
6711         PR c/68966
6712         * c-common.c (sync_resolve_size): Reject first argument when it's
6713         a pointer to _Bool.
6715 2016-01-05  David Malcolm  <dmalcolm@redhat.com>
6717         PR c/69122
6718         * c-indentation.c (get_visual_column): Remove default argument.
6719         (should_warn_for_misleading_indentation): For the multiline case,
6720         update call to get_visual_column for next_stmt_exploc so that it
6721         captures the location of the first non-whitespace character in the
6722         relevant line.  Don't issue warnings if there is non-whitespace
6723         before the next statement.
6725 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
6727         Update copyright years.
6729 2015-12-21  David Malcolm  <dmalcolm@redhat.com>
6731         * c-common.c (binary_op_error): Convert first param from
6732         location_t to rich_location * and use it when emitting an error.
6733         * c-common.h (binary_op_error): Convert first param from
6734         location_t to rich_location *.
6736 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
6738         * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
6739         * c-lex.c (conflict_marker_get_final_tok_kind): New function.
6741 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
6743         * c-common.c (c_common_attribute_table): Handle "omp declare target
6744         link" attribute.
6746 2015-12-14  Jakub Jelinek  <jakub@redhat.com>
6748         PR c/68833
6749         * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
6751 2014-12-12  Tobias Burnus  <burnus@net-b.de>
6753         PR fortran/68815
6754         * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
6755         specifiers (%d, %i,%u and %c).
6757 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
6759         * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
6761 2015-12-08  Jakub Jelinek  <jakub@redhat.com>
6763         PR c/48088
6764         PR c/68657
6765         * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
6766         * c-pragma.c (handle_pragma_diagnostic): Adjust
6767         control_warning_option caller.
6769 2015-12-07  David Malcolm  <dmalcolm@redhat.com>
6771         * c-common.c (c_cpp_error): Update for change to
6772         rich_location::set_range.
6774 2015-12-04  Paolo Bonzini  <bonzini@gnu.org>
6776         * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
6777         shifting 1 out of the sign bit.
6779 2015-12-04  Kirill Yukhin  <kirill.yukhin@intel.com>
6781         * c-common.c (c_common_attribute_table[]): Update max arguments
6782         count for "simd" attribute.
6783         (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
6785 2015-12-03  Jakub Jelinek  <jakub@redhat.com>
6787         PR preprocessor/57580
6788         * c-ppoutput.c (print): Change printed field to bool.
6789         Move src_file last for smaller padding.
6790         (init_pp_output): Set print.printed to false instead of 0.
6791         (scan_translation_unit): Fix up formatting.  Set print.printed
6792         to true after printing something other than newline.
6793         (scan_translation_unit_trad): Set print.printed to true instead of 1.
6794         (maybe_print_line_1): Set print.printed to false instead of 0.
6795         (print_line_1): Likewise.
6796         (do_line_change): Set print.printed to true instead of 1.
6797         (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
6798         dump_macro): Set print.printed to false after printing newline.
6800 2015-12-02  Jason Merrill  <jason@redhat.com>
6802         * c-common.c (fold_for_warn): New.
6803         (warn_logical_operator, warn_tautological_cmp)
6804         (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
6806         * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
6807         (c_fully_fold_internal, decl_constant_value_for_optimization):
6808         Move to c/c-fold.c.
6809         * c-common.h: Don't declare decl_constant_value_for_optimization.
6811 2015-12-02  Joseph Myers  <joseph@codesourcery.com>
6813         PR c/68162
6814         * c-common.h (c_build_qualified_type): Add extra default
6815         arguments.
6817 2015-12-01  Julian Brown  <julian@codesourcery.com>
6818             Cesar Philippidis  <cesar@codesourcery.com>
6819             James Norris  <James_Norris@mentor.com>
6821         * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
6822         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
6823         (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
6825 2015-11-30  Eric Botcazou  <ebotcazou@adacore.com>
6827         * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
6828         (decl_sloc_common): Delete and move bulk of processing to...
6829         (decl_sloc): ...here.
6830         (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
6831         (dump_ada_double_name): Remove S parameter and compute the suffix.
6832         (dump_ada_array_type): Add PARENT parameter.  Simplify computation of
6833         element type and deal with an anonymous one.
6834         (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
6835         (dump_generic_ada_node): Tweak.  Adjust call to dump_ada_array_type
6836         and remove reference to QUAL_UNION_TYPE.
6837         (dump_nested_types): Make 2 passes on the fields and move bulk to...
6838         (dump_nested_type): ...here.  New function extracted from above.
6839         Generate a full declaration for anonymous element type of arrays.
6840         (print_ada_declaration): Really skip anonymous declarations.  Remove
6841         references to QUAL_UNION_TYPE.  Adjust call to dump_ada_array_type.
6842         Clean up processing of declarations of array types and objects.
6843         (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
6844         Remove obsolete code and tidy up.
6846 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
6848         PR c/67581
6849         * c-common.c (handle_transparent_union_attribute): Update
6850         also type variants.
6852 2015-11-27  Martin Liska  <mliska@suse.cz>
6854         PR c++/68312
6855         * array-notation-common.c (cilkplus_extract_an_triplets):
6856         Release vector of vectors.
6857         * cilk.c (gimplify_cilk_spawn): Free allocated memory.
6859 2015-11-26  Eric Botcazou  <ebotcazou@adacore.com>
6861         PR c++/68527
6862         * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
6863         (print_ada_struct_decl): Likewise.
6865 2015-11-23  Igor Zamyatin  <igor.zamyatin@intel.com>
6867         PR c++/68001
6868         * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
6869         * cilk.c (recognize_spawn): Determine location in a more precise
6870         way.
6872 2015-11-19  Jason Merrill  <jason@redhat.com>
6874         * c-common.c (shorten_compare): But look through macros from
6875         system headers.
6877 2015-11-18  Jason Merrill  <jason@redhat.com>
6879         * c-common.c (shorten_compare): Don't -Wtype-limits if the
6880         non-constant operand comes from a macro.
6882 2015-11-17  Jason Merrill  <jason@redhat.com>
6884         PR bootstrap/68346
6885         * c-common.c (warn_tautological_cmp): Fold before checking for
6886         constants.
6888 2015-11-16  Marek Polacek  <polacek@redhat.com>
6890         PR c++/68362
6891         * c-common.c (check_case_bounds): Fold low and high cases.
6893 2015-11-16  Marek Polacek  <polacek@redhat.com>
6895         * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
6896         * c-common.c (c_common_get_alias_set): Likewise.
6897         (handle_visibility_attribute): Likewise.
6899 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
6901         * c-common.c (handle_simd_attribute): New.
6902         (struct attribute_spec): Add entry for "simd".
6903         (handle_simd_attribute): New.
6905 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
6907         * c-lex.c (interpret_float): Use fold_convert.
6909 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
6911         * c-common.c (c_fully_fold_internal): Capture existing souce_range,
6912         and store it on the result.
6913         * c-opts.c (c_common_init_options): Set
6914         global_dc->colorize_source_p.
6916 2015-11-12  James Norris  <jnorris@codesourcery.com>
6917             Joseph Myers  <joseph@codesourcery.com>
6919         * c-pragma.c (oacc_pragmas): Add entry for declare directive.
6920         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
6921         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
6922         PRAGMA_OACC_CLAUSE_LINK.
6924 2015-11-11  Marek Polacek  <polacek@redhat.com>
6926         PR c/68107
6927         PR c++/68266
6928         * c-common.c (valid_array_size_p): New function.
6929         * c-common.h (valid_array_size_p): Declare.
6931 2015-11-11  Dominique d'Humieres  <dominiq@lps.ens.fr>
6933         PR bootstrap/68271
6934         * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
6936 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
6938         * array-notation-common.c: Remove unused header files.
6939         * c-ada-spec.c: Likewise.
6940         * c-cilkplus.c: Likewise.
6941         * c-common.c: Likewise.
6942         * c-cppbuiltin.c: Likewise.
6943         * c-dump.c: Likewise.
6944         * c-format.c: Likewise.
6945         * c-gimplify.c: Likewise.
6946         * c-indentation.c: Likewise.
6947         * c-lex.c: Likewise.
6948         * c-omp.c: Likewise.
6949         * c-opts.c: Likewise.
6950         * c-pch.c: Likewise.
6951         * c-ppoutput.c: Likewise.
6952         * c-pragma.c: Likewise.
6953         * c-pretty-print.c: Likewise.
6954         * c-semantics.c: Likewise.
6955         * c-ubsan.c: Likewise.
6956         * cilk.c: Likewise.
6957         * stub-objc.c: Likewise.
6959 2015-11-09  Thomas Schwinge  <thomas@codesourcery.com>
6960             Cesar Philippidis  <cesar@codesourcery.com>
6961             James Norris  <jnorris@codesourcery.com>
6962             Julian Brown  <julian@codesourcery.com>
6963             Nathan Sidwell  <nathan@codesourcery.com>
6965         * c-pragma.c (oacc_pragmas): Add "routine".
6966         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
6968 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
6970         * c-common.c (c_common_attributes): Add scalar_storage_order.
6971         (handle_scalar_storage_order_attribute): New function.
6972         * c-pragma.c (global_sso): New variable.
6973         (maybe_apply_pragma_scalar_storage_order): New function.
6974         (handle_pragma_scalar_storage_order): Likewise.
6975         (init_pragma): Register scalar_storage_order.
6976         * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
6977         * c.opt (Wscalar-storage-order): New warning.
6978         (fsso-struct=): New option.
6980 2015-11-08  Martin Sebor  <msebor@redhat.com>
6982         * c.opt (Wplacement-new): Add a period to the end of a sentence.
6984 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6986         * c-common.c: Don't undef DEF_BUILTIN.
6988 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
6990         * c-common.c (c_cpp_error): Convert parameter from location_t to
6991         rich_location *.  Eliminate the "column_override" parameter and
6992         the call to diagnostic_override_column.
6993         Update the "done_lexing" clause to set range 0
6994         on the rich_location, rather than overwriting a location_t.
6995         * c-common.h (c_cpp_error): Convert parameter from location_t to
6996         rich_location *.  Eliminate the "column_override" parameter.
6998 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
6999             Thomas Schwinge  <thomas@codesourcery.com>
7000             James Norris  <jnorris@codesourcery.com>
7002         * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
7003         AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses.  Associate REDUCTION
7004         clauses with parallel and kernels and loops.
7005         * c-pragma.h (enum pragma_omp_clause): Add entries for
7006         PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
7007         * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
7008         NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
7009         INDEPENDENT,SEQ}.
7010         (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
7012 2015-11-05  Martin Sebor  <msebor@redhat.com>
7014         PR c++/67942
7015         * c.opt (-Wplacement-new): New option.
7017 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
7019         * c-common.h (c_finish_omp_atomic): Add TEST argument.
7020         (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
7021         * c-omp.c (c_finish_omp_atomic): Add TEST argument.  Don't call
7022         save_expr or create_tmp_var* if TEST is true.
7023         (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
7024         Don't call add_stmt here.
7025         (struct c_omp_check_loop_iv_data): New type.
7026         (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
7027         c_omp_check_loop_iv_exprs): New functions.
7028         (c_omp_split_clauses): Adjust for lastprivate being allowed on
7029         distribute.
7030         (c_omp_declare_simd_clauses_to_numbers): Change
7031         OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
7032         (c_omp_declare_simd_clauses_to_decls): Similarly change those
7033         from numbers to PARM_DECLs.
7035 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
7037         * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
7038         flag_checking.
7040 2015-11-03  Bernd Schmidt  <bschmidt@redhat.com>
7042         PR c++-common/67882
7043         * c-common.h (fold_offsetof_1): Add argument.
7044         * c-common.c (fold_offsetof_1): Diagnose more invalid
7045         offsetof expressions that reference elements past the end of
7046         an array.
7048 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
7049             Chung-Lin Tang  <cltang@codesourcery.com>
7051         * c-pragma.c (oacc_pragmas): Add "atomic".
7052         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
7054 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
7056         * c-common.c (handle_target_clones_attribute): New.
7057         (c_common_attribute_table): Add handle_target_clones_attribute.
7058         (handle_always_inline_attribute): Add check on target_clones attribute.
7059         (handle_target_attribute): Ditto.
7061 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
7063         * array-notation-common.c: Reorder #include's and remove duplicates.
7064         * c-ada-spec.c: Likewise.
7065         * c-cilkplus.c: Likewise.
7066         * c-common.c: Likewise.
7067         * c-cppbuiltin.c: Likewise.
7068         * c-dump.c: Likewise.
7069         * c-format.c: Likewise.
7070         * c-gimplify.c: Likewise.
7071         * c-indentation.c: Likewise.
7072         * c-lex.c: Likewise.
7073         * c-omp.c: Likewise.
7074         * c-opts.c: Likewise.
7075         * c-pch.c: Likewise.
7076         * c-ppoutput.c: Likewise.
7077         * c-pragma.c: Likewise.
7078         * c-pretty-print.c: Likewise.
7079         * c-semantics.c: Likewise.
7080         * c-ubsan.c: Likewise.
7081         * cilk.c: Likewise.
7082         * stub-objc.c: Likewise.
7084 2015-10-28  Jason Merrill  <jason@redhat.com>
7086         * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
7088 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
7089             James Norris  <jnorris@codesourcery.com>
7090             Cesar Philippidis  <cesar@codesourcery.com>
7092         PR c/64765
7093         PR c/64880
7094         * c-common.h (c_oacc_split_loop_clauses): Declare function.
7095         * c-omp.c (c_oacc_split_loop_clauses): New function.
7097 2015-10-21  Martin Sebor  <msebor@redhat.com>
7099         PR driver/68043
7100         * c.opt: End each sentence that describes an option with a period.
7102 2015-10-20  Marek Polacek  <polacek@redhat.com>
7104         * array-notation-common.c (is_cilkplus_vector_p): Define.
7105         * c-common.h (is_cilkplus_vector_p): Declare.
7107 2015-10-20  Marek Polacek  <polacek@redhat.com>
7109         * c.opt (std=gnu++11): Do not describe as experimental.
7110         (std=gnu++14): Likewise.
7112 2015-10-19  Jason Merrill  <jason@redhat.com>
7114         * c-cppbuiltin.c (c_cpp_builtins): Define
7115         __cpp_nontype_template_args.
7117 2015-10-19  Jason Merrill  <jason@redhat.com>
7119         * c-cppbuiltin.c (c_cpp_builtins): Define
7120         __cpp_enumerator_attributes, __cpp_fold_expressions,
7121         __cpp_unicode_characters.
7123 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
7124             Aldy Hernandez  <aldyh@redhat.com>
7126         * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
7127         DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
7128         (c_define_builtins): Likewise.
7129         * c-common.h (enum c_omp_clause_split): Add
7130         C_OMP_CLAUSE_SPLIT_TASKLOOP.
7131         (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
7132         (c_finish_omp_for): Add ORIG_DECLV argument.
7133         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
7134         201511 instead of 201307.
7135         * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
7136         OMP_CRITICAL_CLAUSES to it.
7137         (c_finish_omp_ordered): Add CLAUSES argument, set
7138         OMP_ORDERED_CLAUSES to it.
7139         (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
7140         to it if OMP_FOR.  Clear DECL_INITIAL on the IVs.
7141         (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
7142         constructs and new OpenMP 4.5 clauses.  Clear
7143         OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD.  Add
7144         verification code.
7145         * c-pragma.c (omp_pragmas_simd): Add taskloop.
7146         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
7147         (enum pragma_omp_clause): Add
7148         PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
7149         and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
7151 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7153         * c-lex.c (interpret_float): Use real_equal instead of
7154         REAL_VALUES_EQUAL.
7156 2015-10-04  Jason Merrill  <jason@redhat.com>
7158         Implement N4514, C++ Extensions for Transactional Memory.
7159         * c-common.c (c_common_reswords): Add C++ TM TS keywords.
7160         (c_common_attribute_table): Add transaction_safe_dynamic.
7161         transaction_safe now affects type identity.
7162         (handle_tm_attribute): Handle transaction_safe_dynamic.
7163         * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
7164         RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
7165         (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
7166         (D_TRANSMEM): New.
7167         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
7168         * c-pretty-print.c (pp_c_attributes_display): Don't print
7169         transaction_safe in C++.
7171 2015-10-02  Marek Polacek  <polacek@redhat.com>
7173         * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
7175 2015-10-02  Marek Polacek  <polacek@redhat.com>
7177         PR c/64249
7178         * c-common.c (warn_duplicated_cond_add_or_warn): New function.
7179         * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
7180         * c.opt (Wduplicated-cond): New option.
7182 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
7184         * c.opt (std=c11): Do not describe as experimental.
7185         (std=gnu11): Likewise.
7186         (std=iso9899:2011): Likewise.
7188 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
7190         * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
7191         (DEF_FUNCTION_TYPE_VAR_11): Delete.
7193 2015-09-25  Marek Polacek  <polacek@redhat.com>
7195         * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
7196         (ubsan_instrument_shift): Likewise.
7198 2015-09-25  Marek Polacek  <polacek@redhat.com>
7200         PR sanitizer/64906
7201         * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
7203 2015-09-24  Patrick Palka  <ppalka@gcc.gnu.org>
7205         * c-indentation.c (should_warn_for_misleading_indentation):
7206         Compare next_stmt_vis_column with guard_line_first_nws instead
7207         of with guard_line_vis_column.
7209 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7211         PR c/49654
7212         PR c/49655
7213         * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
7214         options and options not valid for the current language.
7216 2015-09-22  Patrick Palka  <ppalka@gcc.gnu.org>
7218         * c-indentation.c (should_warn_for_misleading_indentation):
7219         Float out and consolidate the calls to get_visual_column that
7220         are passed guard_exploc as an argument.  Compare
7221         next_stmt_vis_column with guard_line_first_nws instead of with
7222         body_line_first_nws.
7224 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
7226         * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
7227         Wnamespaces): New C++ warnings.
7229 2015-09-22  Jason Merrill  <jason@redhat.com>
7231         * c-common.h (abi_compat_version_crosses): New.
7232         (warn_abi_version): Declare.
7233         * c-common.c: Define it.
7234         * c-opts.c (c_common_post_options): Handle it.
7235         flag_abi_compat_version defaults to 8.
7237 2015-09-21  Ville Voutilainen  <ville.voutilainen@gmail.com>
7239         Complete the implementation of N4230, Nested namespace definition.
7240         * c-cppbuiltin.c: Add __cpp_namespace_attributes and
7241         __cpp_nested_namespace_definitions.
7243 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7245         * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
7247 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7249         * c-pragma.c (handle_pragma_diagnostic): Use explicit location
7250         when warning.
7251         * c-pragma.h (pragma_lex): Add optional loc argument.
7253 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
7255         * c-format.c (check_format_arg): Adjust to use common block size in all
7256         object pools.
7258 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
7260         * c-format.c (location_from_offset): Update for change in
7261         signature of location_get_source_line.
7262         * c-indentation.c (get_visual_column): Likewise.
7263         (line_contains_hash_if): Likewise.
7265 2015-09-14  Marek Polacek  <polacek@redhat.com>
7267         * c-opts.c (c_common_post_options): Set C++ standard earlier, before
7268         setting various warnings.
7270 2015-09-14  Marek Polacek  <polacek@redhat.com>
7272         * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
7273         a negative value.
7275 2015-09-11  Mark Wielaard  <mjw@redhat.com>
7277         PR c/28901
7278         * c.opt (Wunused-variable): Option from common.opt.
7279         (Wunused-const-variable): New option.
7281 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
7283         PR c++/53184
7284         * c.opt ([Wsubobject-linkage]): Add.
7286 2015-09-03  Martin Sebor  <msebor@redhat.com>
7288         PR c/66516
7289         * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
7290         functions.
7291         * c-common.c (reject_gcc_builtin): Define.
7293 2015-09-02  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7295         PR middle-end/60586
7296         * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
7297         prototype.
7298         * c-gimplify.c (c_gimplify_expr): Added a call to the function
7299         cilk_gimplify_call_params_in_spawned_fn.
7300         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
7301         (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
7302         unwrapping.
7304 2015-08-25  Marek Polacek  <polacek@redhat.com>
7306         PR middle-end/67330
7307         * c-common.c (handle_weak_attribute): Don't check whether the
7308         visibility can be changed here.
7310 2015-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7312         * c-lex.c (c_lex_with_flags): Use explicit locations.
7314 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
7316         * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
7317         c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
7319 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7321         PR middle-end/36757
7322         * c-common.c (check_builtin_function_arguments): Add check
7323         for BUILT_IN_SIGNBIT argument.
7325 2015-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
7327         PR c++/67160
7328         * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
7329         in c++1z mode.
7331 2015-08-17  Marek Polacek  <polacek@redhat.com>
7333         * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
7334         with whitespaces before qualifier names.
7336 2015-08-12  Marek Polacek  <polacek@redhat.com>
7338         PR c++/55095
7339         * c-common.c (maybe_warn_shift_overflow): Properly handle
7340         left-shifting 1 into the sign bit.
7342 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7344         * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
7346 2015-08-06  Andrew Sutton  <andrew.n.sutton@gmail.com>
7347             Braden Obrzut  <admin@maniacsvault.net>
7348             Jason Merrill  <jason@redhat.com>
7350         Add C++ Concepts TS support.
7351         * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
7352         * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
7353         (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
7354         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
7355         * c-opts.c (set_std_cxx1z): Set flag_concepts.
7356         * c.opt (fconcepts): New.
7358 2015-08-02  Martin Sebor  <msebor@redhat.com>
7360         * c.opt (-Wframe-address): New warning option.
7362 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
7364         * c-indentation.c (should_warn_for_misleading_indentation):
7365         Improve heuristics.
7367 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
7369         * c-indentation.c (get_visual_column): Add parameter first_nws,
7370         use it.  Update comment documenting the function.
7371         (is_first_nonwhitespace_on_line): Remove.
7372         (should_warn_for_misleading_indentation): Replace usage of
7373         of is_first_nonwhitespace_on_line with get_visual_column.
7375 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
7377         * c-indentation.h (struct token_indent_info): Define.
7378         (get_token_indent_info): Define.
7379         (warn_for_misleading_information): Declare.
7380         * c-common.h (warn_for_misleading_information): Remove.
7381         * c-identation.c (warn_for_misleading_indentation):
7382         Change declaration to take three token_indent_infos.  Adjust
7383         accordingly.
7384         * c-identation.c (should_warn_for_misleading_indentation):
7385         Likewise.  Bail out early if the body is a compound statement.
7386         (guard_tinfo_to_string): Define.
7388 2015-07-30  Jason Merrill  <jason@redhat.com>
7390         * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
7391         '*' for reference decay.
7393 2015-07-30  Marek Polacek  <polacek@redhat.com>
7395         * c-common.c (warn_tautological_cmp): Bail for float types.
7397 2015-07-27  Marek Polacek  <polacek@redhat.com>
7399         PR bootstrap/67030
7400         * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
7402 2015-07-27  Marek Polacek  <polacek@redhat.com>
7404         PR c++/66555
7405         PR c/54979
7406         * c-common.c (find_array_ref_with_const_idx_r): New function.
7407         (warn_tautological_cmp): New function.
7408         * c-common.h (warn_tautological_cmp): Declare.
7409         * c.opt (Wtautological-compare): New option.
7411 2015-07-23  Marek Polacek  <polacek@redhat.com>
7413         * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
7414         (ubsan_instrument_shift): Likewise.
7416 2015-07-23  Marek Polacek  <polacek@redhat.com>
7418         PR sanitizer/66908
7419         * c-ubsan.c: Include gimplify.h.
7420         (ubsan_instrument_division): Unshare OP0 and OP1.
7421         (ubsan_instrument_shift): Likewise.
7423 2015-07-20  Marek Polacek  <polacek@redhat.com>
7424             Richard Sandiford  <richard.sandiford@arm.com>
7426         PR c++/55095
7427         * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
7428         Use EXPR_LOC_OR_LOC.
7429         (maybe_warn_shift_overflow): New function.
7430         * c-common.h (maybe_warn_shift_overflow): Declare.
7431         * c-opts.c (c_common_post_options): Set warn_shift_overflow.
7432         * c.opt (Wshift-overflow): New option.
7434 2015-07-16  Martin Liska  <mliska@suse.cz>
7436         * c-format.c (static void check_format_info_main): Use
7437         object_allocator instead of pool_allocator.
7438         (check_format_arg): Likewise.
7439         (check_format_info_main): Likewise.
7441 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
7443         * c-opts.c: Remove multiline #include comment.
7445 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
7447         * c-common.c: Fix double word typos.
7449 2015-07-10  Eric Botcazou  <ebotcazou@adacore.com>
7451         * c-ada-spec.h (cpp_operation): Revert latest change.
7452         * c-ada-spec.c (print_ada_declaration): Likewise.  Skip implicit
7453         constructors and destructors.
7455 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
7457         * c-common.h: Adjust includes for flags.h changes.
7458         * stub-objc.c: Likewise.
7460 2015-07-08  Eric Botcazou  <ebotcazou@adacore.com>
7462         * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
7463         * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
7465 2015-07-08  Jakub Jelinek  <jakub@redhat.com>
7467         * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
7468         are to be removed, return NULL rather than original clauses list.
7470 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
7472         * array-notation-common.c: Adjust includes.
7473         * c-ada-spec.c: Likewise.
7474         * c-cilkplus.c: Likewise.
7475         * c-common.h: Likewise.
7476         * c-cppbuiltin.c: Likewise.
7477         * c-dump.c: Likewise.
7478         * c-format.c: Likewise.
7479         * c-gimplify.c: Likewise.
7480         * c-indentation.c: Likewise.
7481         * c-lex.c: Likewise.
7482         * c-omp.c: Likewise.
7483         * c-opts.c: Likewise.
7484         * c-pch.c: Likewise.
7485         * c-ppoutput.c: Likewise.
7486         * c-pragma.c: Likewise.
7487         * c-pretty-print.c: Likewise.
7488         * c-semantics.c: Likewise.
7489         * c-ubsan.c: Likewise.
7490         * cilk.c: Likewise.
7491         * stub-objc.c: Likewise.
7493 2015-07-07  Eric Botcazou  <ebotcazou@adacore.com>
7495         * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
7496         * c-ada-spec.c (print_ada_declaration): Skip move constructors.
7498 2015-07-01  Jason Merrill  <jason@redhat.com>
7500         * c-common.h (D_CXX11): Rename from D_CXX0X.
7501         (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
7502         * c-common.c: Adjust.
7504         * c-opts.c (c_common_post_options): Default to C++14.
7506         * c-opts.c (c_common_post_options): Highest ABI level is now 10.
7508 2015-06-30  Edward Smith-Rowland  <3dw4rd@verizon.net>
7510         Implement N4197 - Adding u8 character literals
7511         * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
7512         CPP_CHAR.
7513         * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
7514         CPP_UTF8CHAR_USERDEF tokens.
7515         * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
7516         and CPP_UTF8CHAR tokens.
7517         (lex_charconst): Treat CPP_UTF8CHAR token.
7519 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7521         PR fortran/66605
7522         * c-common.c (do_warn_unused_parameter): Move here.
7523         * c-common.h (do_warn_unused_parameter): Declare.
7525 2015-06-29  Marek Polacek  <polacek@redhat.com>
7527         PR c/66322
7528         * c-common.c (check_case_bounds): Add bool * parameter.  Set
7529         OUTSIDE_RANGE_P.
7530         (c_add_case_label): Add bool * parameter.  Pass it down to
7531         check_case_bounds.
7532         (c_do_switch_warnings): Add bool parameters.  Implement -Wswitch-bool
7533         warning here.
7534         * c-common.h (c_add_case_label, c_do_switch_warnings): Update
7535         declarations.
7537 2015-06-27  Marek Polacek  <polacek@redhat.com>
7539         * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
7540         or VECTOR_INTEGER_TYPE_P throughout.
7541         * c-gimplify.c: Likewise.
7543 2015-06-26  Marek Polacek  <polacek@redhat.com>
7545         * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
7546         * c-common.c (c_fully_fold_internal): Likewise.
7547         (c_alignof_expr): Likewise.
7548         * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
7549         * c-ubsan.c (ubsan_instrument_bounds): Likewise.
7550         * cilk.c (create_parm_list): Likewise.
7552 2015-06-26  Marek Polacek  <polacek@redhat.com>
7554         * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
7556 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
7558         * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
7559         * c-gimplify.c: Likewise.
7560         * c-pragma.c: Likewise.
7561         * c-ubsan.c: Likewise.
7562         * cilk.c: Likewise.
7564 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7566         * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
7567         ggc_hasher.
7569 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
7571         * cilk.c: Move calls.h after tm.h in the include chain.
7573 2015-06-25  Marek Polacek  <polacek@redhat.com>
7575         * array-notation-common.c: Use VAR_P throughout.
7576         * c-ada-spec.c: Likewise.
7577         * c-common.c: Likewise.
7578         * c-format.c: Likewise.
7579         * c-gimplify.c: Likewise.
7580         * c-omp.c: Likewise.
7581         * c-pragma.c: Likewise.
7582         * c-pretty-print.c: Likewise.
7583         * cilk.c: Likewise.
7585 2015-06-25  Marek Polacek  <polacek@redhat.com>
7587         * cilk.c (extract_free_variables): Use is_global_var.
7589 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
7591         * c-common.c: Don't include target-def.h.
7593 2015-06-23  Marek Polacek  <polacek@redhat.com>
7595         * c-common.c (warn_logical_operator): Use tree_int_cst_equal
7596         when comparing INTEGER_CSTs.
7598 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
7600         * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
7601         * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
7602         (dump_ada_template): Skip partially specialized types.
7604 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
7606         * c-common.c (scalar_to_vector): Use std::swap instead of manually
7607         swapping.
7609 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
7611         * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
7612         * c-ada-spec.c: Likewise.
7613         * c-cilkplus.c: Likewise.
7614         * c-common.c: Likewise.
7615         * c-common.h: Likewise.
7616         * c-cppbuiltin.c: Likewise.
7617         * c-dump.c: Likewise.
7618         * c-format.c: Likewise.
7619         * c-gimplify.c: Likewise.
7620         * c-indentation.c: Likewise.
7621         * c-lex.c: Likewise.
7622         * c-omp.c: Likewise.
7623         * c-opts.c: Likewise.
7624         * c-pch.c: Likewise.
7625         * c-ppoutput.c: Likewise.
7626         * c-pragma.c: Likewise.
7627         * c-pretty-print.c: Likewise.
7628         * c-semantics.c: Likewise.
7629         * c-ubsan.c: Likewise.
7630         * cilk.c: Likewise.
7631         * stub-objc.c: Likewise.
7633 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
7635         PR c++/65168
7636         * c-common.c (c_common_truthvalue_conversion): Warn when
7637         converting an address of a reference to a truth value.
7639 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
7641         * array-notation-common.c : Adjust include files.
7642         * c-ada-spec.c : Likewise.
7643         * c-cilkplus.c : Likewise.
7644         * c-common.c : Likewise.
7645         * c-common.h : Likewise.
7646         * c-cppbuiltin.c : Likewise.
7647         * c-dump.c : Likewise.
7648         * c-format.c : Likewise.
7649         * c-gimplify.c : Likewise.
7650         * c-indentation.c : Likewise.
7651         * c-lex.c : Likewise.
7652         * c-omp.c : Likewise.
7653         * c-opts.c : Likewise.
7654         * c-pch.c : Likewise.
7655         * c-ppoutput.c : Likewise.
7656         * c-pragma.c : Likewise.
7657         * c-pretty-print.c : Likewise.
7658         * c-semantics.c : Likewise.
7659         * c-ubsan.c : Likewise.
7660         * cilk.c : Likewise.
7661         * stub-objc.c : Likewise.
7663 2015-06-08  Marek Polacek  <polacek@redhat.com>
7665         PR c/66415
7666         * c-format.c (location_from_offset): Return LOC if LINE is null.
7668 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
7670         * c-common.h (c_parse_final_cleanups): New prototype.
7671         * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
7673 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
7675         * c-common.c (noplt): New attribute.
7676         (handle_noplt_attribute): New handler.
7678 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
7680         * array-notation-common.c: Adjust includes for restructured coretypes.h.
7681         * c-ada-spec.c: Likewise.
7682         * c-cilkplus.c: Likewise.
7683         * c-common.c: Likewise.
7684         * c-common.h: Likewise.
7685         * c-cppbuiltin.c: Likewise.
7686         * c-dump.c: Likewise.
7687         * c-format.c: Likewise.
7688         * c-gimplify.c: Likewise.
7689         * c-indentation.c: Likewise.
7690         * c-lex.c: Likewise.
7691         * c-omp.c: Likewise.
7692         * c-opts.c: Likewise.
7693         * c-pch.c: Likewise.
7694         * c-ppoutput.c: Likewise.
7695         * c-pragma.c: Likewise.
7696         * c-pretty-print.c: Likewise.
7697         * c-semantics.c: Likewise.
7698         * c-ubsan.c: Likewise.
7699         * cilk.c: Likewise.
7700         * stub-objc.c: Likewise.
7702 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
7704         PR c/66220:
7705         * c-indentation.c (should_warn_for_misleading_indentation): Use
7706         expand_location rather than expand_location_to_spelling_point.
7707         Don't warn if the guarding statement is more indented than the
7708         next/body stmts.
7710 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
7712         * c-indentation.c (warn_for_misleading_indentation): Bail out
7713         immediately if -Wmisleading-indentation isn't enabled.
7715 2015-06-01  Martin Liska  <mliska@suse.cz>
7717         * c-format.c (check_format_arg):Use new type-based pool allocator.
7718         (check_format_info_main) Likewise.
7720 2015-05-31  Eric Botcazou  <ebotcazou@adacore.com>
7722         * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
7723         (has_nontrivial_methods): Likewise.
7725 2015-05-25  Marek Polacek  <polacek@redhat.com>
7727         * c-ubsan.c (ubsan_instrument_shift): Use type0.
7729 2015-05-22  Marek Polacek  <polacek@redhat.com>
7731         PR c/47043
7732         * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
7734 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7736         * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
7737         STACK_GROWS_DOWNWARD.
7739 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7741         * c-cppbuiltin.c (c_cpp_builtins): Check the value of
7742         STACK_GROWS_DOWNWARD rather than if it is defined.
7744 2015-05-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7746         PR c/52952
7747         * c-format.c (location_column_from_byte_offset): New.
7748         (location_from_offset): New.
7749         (struct format_wanted_type): Add offset_loc field.
7750         (check_format_info): Move handling of location for extra arguments
7751         closer to the point of warning.
7752         (check_format_info_main): Pass the result of location_from_offset
7753         to warning_at.
7754         (format_type_warning): Pass the result of location_from_offset
7755         to warning_at.
7757 2015-05-20  Marek Polacek  <polacek@redhat.com>
7759         * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
7761 2015-05-20  Marek Polacek  <polacek@redhat.com>
7763         * c-ada-spec.c (dump_sloc): Use DECL_P.
7765 2015-05-20  Marek Polacek  <polacek@redhat.com>
7767         * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
7768         * c-common.c: Likewise.
7770 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
7772         * c-common.h (fe_file_change): Strengthen param from
7773         const line_map * to const line_map_ordinary *.
7774         (pp_file_change): Likewise.
7775         * c-lex.c (fe_file_change): Likewise.
7776         (cb_define): Use linemap_check_ordinary when invoking
7777         SOURCE_LINE.
7778         (cb_undef): Likewise.
7779         * c-opts.c (c_finish_options): Use linemap_check_ordinary when
7780         invoking cb_file_change.
7781         (c_finish_options): Likewise.
7782         (push_command_line_include): Likewise.
7783         (cb_file_change): Strengthen param "new_map" from
7784         const line_map * to const line_map_ordinary *.
7785         * c-ppoutput.c (cb_define): Likewise for local "map".
7786         (pp_file_change): Likewise for param "map" and local "from".
7788 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
7790         * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
7792 2015-05-18  Tom de Vries  <tom@codesourcery.com>
7794         * c-common.c (build_va_arg_1): New function.
7795         (build_va_arg): Add address operator to va_list operand if necessary.
7797 2015-05-15  Mikhail Maltsev  <maltsevm@gmail.com>
7799         PR c/48956
7800         * c-common.c (int_safely_convertible_to_real_p): Define.
7801         (unsafe_conversion_p): Check conversions involving complex types.
7802         (conversion_warning): Add new warning message for conversions which
7803         discard imaginary component.
7804         * c-common.h: (enum conversion_safety): Add new enumerator for such
7805         conversions.
7807 2015-05-14  Marek Polacek  <polacek@redhat.com>
7809         PR c/66066
7810         PR c/66127
7811         * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
7812         (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
7813         C_MAYBE_CONST_EXPR_INT_OPERANDS set.  Add FOR_INT_CONST argument and
7814         use it.  If FOR_INT_CONST, require that all evaluated operands be
7815         INTEGER_CSTs.
7817 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
7819         * c-common.h (warn_for_misleading_indentation): New prototype.
7820         * c-indentation.c: New file.
7821         * c.opt (Wmisleading-indentation): New option.
7823 2015-05-12  Tom de Vries  <tom@codesourcery.com>
7825         PR tree-optimization/66010
7826         * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
7828 2015-05-09  Jason Merrill  <jason@redhat.com>
7830         * c-opts.c (c_common_post_options): Also clear
7831         cpp_opts->cpp_warn_cxx11_compat.
7833         * c-common.h (enum cxx_dialect): Add cxx_unset.
7834         * c-common.c (cxx_dialect): Initialize to cxx_unset.
7835         * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
7837         * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
7838         (std=gnu++0x): Mark as Undocumented.
7839         (std=gnu++1y): Add deprecated message.
7841 2015-05-08  Jason Merrill  <jason@redhat.com>
7843         * c.opt (Wc++11-compat): Make primary.  Rename var warn_cxx11_compat.
7844         * c-opts.c: Adjust.
7846         * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
7848 2015-05-08  Marek Polacek  <polacek@redhat.com>
7850         PR c/64918
7851         * c.opt (Woverride-init-side-effects): New option.
7853 2015-05-07  Marek Polacek  <polacek@redhat.com>
7855         PR c/65179
7856         * c-common.c (c_fully_fold_internal): Warn when left shifting a
7857         negative value.
7858         * c.opt (Wshift-negative-value): New option.
7859         * c-opts.c (c_common_post_options): Set warn_shift_negative_value
7860         when -Wextra and C99/C++11 mode.
7862 2015-05-07  Marek Polacek  <polacek@redhat.com>
7863             Martin Uecker  <uecker@eecs.berkeley.edu>
7865         * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
7866         flexible member array-like members if SANITIZE_BOUNDS_STRICT.
7868 2015-05-05  Jason Merrill  <jason@redhat.com>
7870         * c.opt (Wterminate): New.
7872 2015-04-30  Marek Polacek  <polacek@redhat.com>
7874         * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
7875         require that the non-constant be of a boolean type.
7877 2015-04-29  Josh Triplett  <josh@joshtriplett.org>
7879         * c-common.c (handle_section_attribute): Refactor to reduce
7880         nesting and distinguish between error cases.
7882 2015-04-29  Marek Polacek  <polacek@redhat.com>
7884         PR c/64610
7885         * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
7886         with 0/1.
7888 2015-04-29  Jakub Jelinek  <jakub@redhat.com>
7890         * c-common.h (omp_clause_mask): Unconditionally define as a class.
7891         Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
7892         HOST_BITS_PER_WIDE_INT.
7894 2015-04-28  Tom de Vries  <tom@codesourcery.com>
7896         PR tree-optimization/65887
7897         * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
7899 2015-04-28  Eric Botcazou  <ebotcazou@adacore.com>
7900             Pierre-Marie de Rodat  <derodat@adacore.com>
7902         * c-ada-spec.c (in_function): Delete.
7903         (dump_generic_ada_node): Do not change in_function and remove the
7904         redundant code dealing with it.
7905         (print_ada_declaration): Do not change in_function.  Use INDENT_INCR.
7906         (print_ada_methods): Output the static member functions in a nested
7907         package after the regular methods as well as associated renamings.
7909 2015-04-24  Marek Polacek  <polacek@redhat.com>
7911         PR c/65830
7912         * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
7913         and OPT_Wshift_count_overflow.
7915         PR c/63357
7916         * c-common.c (warn_logical_operator): Warn if the operands have the
7917         same expressions.
7919 2015-04-24  Marek Polacek  <polacek@redhat.com>
7921         PR c/61534
7922         * c-common.c (warn_logical_operator): Bail if either operand comes
7923         from a macro expansion.
7925 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7927         PR target/55143
7928         * c-common.c (c_default_pointer_mode): Add definition.
7929         * c-common.h (c_default_pointer_mode): Add declaration.
7931 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
7933         * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
7934         on record_builtin_type argument.
7936 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
7938         PR c/65120
7939         * c-common.c (warn_logical_not_parentheses): Don't warn for
7940         !x == 0 or !x != 0.
7942 2015-03-07  Marek Polacek  <polacek@redhat.com>
7944         PR sanitizer/65280
7945         * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
7946         before trying to figure out whether we have a flexible array member.
7948 2015-03-06  Eric Botcazou  <ebotcazou@adacore.com>
7949             Jonathan Wakely  <jwakely.gcc@gmail.com>
7951         * c-ada-spec.c (dump_ada_double_name): Fix pasto.
7953 2015-03-05  Eric Botcazou  <ebotcazou@adacore.com>
7955         PR ada/65319
7956         * c-ada-spec.c (print_destructor): Remove obsolete code.
7958 2015-03-01  Eric Botcazou  <ebotcazou@adacore.com>
7960         * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
7961         (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
7962         DECL_TEMPLATE_RESULT emulations.
7963         (dump_ada_template)): Add guard for TYPE_METHODS.
7965 2015-02-27  Marek Polacek  <polacek@redhat.com>
7967         PR c/65040
7968         * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
7970 2015-02-27  Kai Tietz  <ktietz@redhat.com>
7972         PR c/35330
7973         * c-pragma.c (handle_pragma_weak): Do not try to create
7974         weak/alias of declarations not being function, or variable
7975         declarations.
7977 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
7979         PR libgomp/64625
7980         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
7981         Remove macros.
7982         (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
7984 2015-02-16  Marek Polacek  <polacek@redhat.com>
7986         PR c/65066
7987         * c-format.c (check_format_types): Handle null param.
7989 2015-02-13  Marek Polacek  <polacek@redhat.com>
7991         PR c/65040
7992         * c-format.c (check_format_types): Don't warn about different
7993         signedness if the original value is in the range of WANTED_TYPE.
7995 2015-02-12  Jason Merrill  <jason@redhat.com>
7997         PR c++/64956
7998         * c-opts.c (c_common_post_options): Change flag_abi_version from 0
7999         to the current highest version.
8000         * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
8002 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
8004         PR c/64824
8005         PR c/64868
8006         * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
8007         instead of RDIV_EXPR.  Use build_binary_op instead of
8008         build2_loc.
8010 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
8012         * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
8013         to pass input_location as first argument.
8015 2015-01-23  Tom de Vries  <tom@codesourcery.com>
8017         PR libgomp/64672
8018         * c.opt (fopenacc): Mark as LTO option.
8020 2015-01-23  Tom de Vries  <tom@codesourcery.com>
8022         PR libgomp/64707
8023         * c.opt (fopenmp): Mark as LTO option.
8025 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
8027         PR c/63307
8028         * cilk.c (fill_decls_vec): Only put decls into vector v.
8029         (compare_decls): Fix up formatting.
8031 2015-01-21  Igor Zamyatin  <igor.zamyatin@intel.com>
8033         PR c/63307
8034         * cilk.c: Include vec.h.
8035         (struct cilk_decls): New structure.
8036         (wrapper_parm_cb): Split this function to...
8037         (fill_decls_vec): ...this...
8038         (create_parm_list): ...and this.
8039         (compare_decls): New function.
8040         (for_local_cb): Remove.
8041         (wrapper_local_cb): Ditto.
8042         (build_wrapper_type): For now first traverse and fill vector of
8043         declarations then sort it and then deal with sorted vector.
8044         (cilk_outline): Ditto.
8045         (declare_one_free_variable): Ditto.
8047 2015-01-21  Jason Merrill  <jason@redhat.com>
8049         PR c++/64629
8050         * c-format.c (check_format_arg): Call decl_constant_value.
8052 2015-01-19  Martin Liska  <mliska@suse.cz>
8054         * c-common.c (handle_noicf_attribute): New function.
8056 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
8057             Bernd Schmidt  <bernds@codesourcery.com>
8058             James Norris  <jnorris@codesourcery.com>
8059             Cesar Philippidis  <cesar@codesourcery.com>
8060             Ilmir Usmanov  <i.usmanov@samsung.com>
8061             Jakub Jelinek  <jakub@redhat.com>
8063         * c.opt (fopenacc): New option.
8064         * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
8065         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
8066         New macros.
8067         * c-common.h (c_finish_oacc_wait): New prototype.
8068         * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
8069         (c_finish_oacc_wait): New function.
8070         * c-pragma.c (oacc_pragmas): New variable.
8071         (c_pp_lookup_pragma, init_pragma): Handle it.
8072         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
8073         PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
8074         PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
8075         PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
8076         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
8077         PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
8078         PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
8079         PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
8080         PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
8081         PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
8082         PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
8083         PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
8084         PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
8085         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
8086         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
8087         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
8088         PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
8089         PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
8090         PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
8091         PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
8092         PRAGMA_OACC_CLAUSE_WORKER.
8094 2015-01-14  Marcos Diaz  <marcos.diaz@tallertechnologies.com>
8096         * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
8097         for the new option fstack-protector_explicit.
8098         * c-common.c (c_common_attribute_table): Add stack_protect attribute.
8099         (handle_stack_protect_attribute): New function.
8101 2015-01-13  Martin Uecker  <uecker@eecs.berkeley.edu>
8103         * c.opt: New option -Warray-bounds=.
8105 2015-01-09  Michael Collison  <michael.collison@linaro.org>
8107         * array-notation-common.c: Include hash-set.h, machmode.h,
8108         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
8109         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
8110         * c-ada-spec.c: Ditto.
8111         * c-cilkplus.c: Ditto.
8112         * c-common.c: Include input.h due to flattening of tree.h.
8113         Define macro GCC_C_COMMON_C.
8114         * c-common.h: Flatten tree.h header files into c-common.h.
8115         Remove include of tree-core.h.
8116         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
8117         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
8118         fold-const.h, wide-int.h, and inchash.h due to
8119         flattening of tree.h.
8120         * c-dump.c: Ditto.
8121         * c-format.c: Flatten tree.h header files into c-common.h.
8122         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
8123         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
8124         fold-const.h, wide-int.h, and inchash.h due to
8125         flattening of tree.h.
8126         * c-dump.c: Include hash-set.h, machmode.h,
8127         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
8128         fold-const.h, wide-int.h, and inchash.h due to
8129         flattening of tree.h.
8130         * c-format.c: Include hash-set.h, machmode.h,
8131         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
8132         fold-const.h, wide-int.h, inchash.h and real.h due to
8133         flattening of tree.h.
8134         * c-gimplify.c: Include hash-set.h, machmode.h,
8135         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
8136         fold-const.h, wide-int.h, and inchash.h due to
8137         flattening of tree.h.
8138         * cilk.c: Ditto.
8139         * c-lex.c: Ditto.
8140         * c-omp.c: Ditto.
8141         * c-opts.c: Ditto.
8142         * c-pch.c: Ditto.
8143         * c-ppoutput.c: Ditto.
8144         * c-pragma.c: Ditto.
8145         * c-pretty-print.c: Ditto.
8146         * c-semantics.c: Ditto.
8147         * c-ubsan.c: Ditto.
8148         * stub-objc.c: Ditto.
8150 2015-01-08  Jason Merrill  <jason@redhat.com>
8152         * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
8153         do_ubsan_in_current_function.
8154         (ubsan_maybe_instrument_reference_or_call): Likewise.
8155         * c-ubsan.h: Declare it.
8157 2015-01-08  Mike Stump  <mikestump@comcast.net>
8159         * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
8161 2015-01-07  Marek Polacek  <polacek@redhat.com>
8163         PR c/64440
8164         * c-common.c (c_fully_fold_internal): Warn for division and modulo
8165         if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
8167 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
8169         PR c++/31397
8170         * c.opt (Wsuggest-override): New option.
8172 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
8174         Update copyright years.
8176 2015-01-05  Marek Polacek  <polacek@redhat.com>
8178         PR c/64423
8179         * c-common.c (warn_array_subscript_with_type_char): Add location_t
8180         parameter.  Use it.
8181         * c-common.h (warn_array_subscript_with_type_char): Update
8182         declaration.
8184 2014-12-20  Edward Smith-Rowland  <3dw4rd@verizon.net>
8186         * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
8187         Control macro with flag_sized_deallocation.
8189 2014-12-20  Martin Uecker  <uecker@eecs.berkeley.edu>
8191         * c.opt (Wdiscarded-array-qualifiers): New option.
8193 2014-12-19  Jakub Jelinek  <jakub@redhat.com>
8195         PR preprocessor/63831
8196         * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
8197         and __has_cpp_attribute here.
8198         * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
8199         c_common_has_attribute.
8200         * c-common.h (c_common_has_attribute): New prototype.
8201         * c-lex.c (init_c_lex): Set cb->has_attribute to
8202         c_common_has_attribute instead of cb_has_attribute.
8203         (get_token_no_padding): New function.
8204         (cb_has_attribute): Renamed to ...
8205         (c_common_has_attribute): ... this.  No longer static.  Use
8206         get_token_no_padding, require ()s, don't build TREE_LIST
8207         unnecessarily, fix up formatting, adjust diagnostics, call
8208         init_attributes.
8210 2014-12-15  Jason Merrill  <jason@redhat.com>
8212         * c.opt (-fsized-deallocation, -Wc++14-compat): New.
8213         (-Wsized-deallocation): New.
8214         * c-opts.c (c_common_post_options): -fsized-deallocation defaults
8215         to on in C++14 and up.
8217 2014-12-11  Jason Merrill  <jason@redhat.com>
8219         * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
8221         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
8222         we aren't complaining about VLAs.
8224 2014-12-06  Marek Polacek  <polacek@redhat.com>
8226         PR tree-optimization/64183
8227         * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
8228         shift-expression if it is integer_type_node.  Use types_compatible_p.
8230 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
8232         * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
8233         last argument from create_tmp_var_raw and create_tmp_var calls.
8234         * cilk.c (gimplify_cilk_spawn): Likewise.
8235         * c-omp.c (c_finish_omp_atomic): Likewise.
8237 2014-11-28  Marek Polacek  <polacek@redhat.com>
8239         * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
8240         instead of unsigned_type_node.
8242 2014-11-28  Marek Polacek  <polacek@redhat.com>
8244         PR c/63862
8245         * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
8246         to op1_utype.
8247         * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
8248         expression to unsigned_type_node.
8250 2014-11-20  Mark Wielaard  <mjw@redhat.com>
8252         PR debug/38757
8253         * c-opts.c (set_std_c89): Set lang_hooks.name.
8254         (set_std_c99): Likewise.
8255         (set_std_c11): Likewise.
8256         (set_std_cxx98): Likewise.
8257         (set_std_cxx11): Likewise.
8258         (set_std_cxx14): Likewise.
8259         (set_std_cxx1z): Likewise.
8261 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
8263         PR target/63764
8264         * c-common.h (convert_vector_to_pointer_for_subscript): Change
8265         return type to bool.
8266         * c-common.c: Include gimple-expr.h.
8267         (convert_vector_to_pointer_for_subscript): Change return type to
8268         bool.  If *vecp is not lvalue_p and has VECTOR_TYPE, return true
8269         and copy it into a TARGET_EXPR and use that instead of *vecp
8270         directly.
8272 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
8274         Merger of git branch "gimple-classes-v2-option-3".
8275         * ChangeLog.gimple-classes: New.
8276         * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
8277         from being just a vec<gimple> to a vec<gbind *>.
8279 2014-11-18  Jakub Jelinek  <jakub@redhat.com>
8281         PR sanitizer/63813
8282         * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
8283         argument to ptype, set type to TREE_TYPE (ptype).  Don't call
8284         get_pointer_alignment for non-pointers.  Use ptype, or if it is
8285         reference type, corresponding pointer type, as type of kind
8286         argument.
8287         (ubsan_maybe_instrument_reference,
8288         ubsan_maybe_instrument_member_call): Adjust callers.
8290 2014-11-15  Marek Polacek  <polacek@redhat.com>
8292         PR middle-end/63884
8293         * array-notation-common.c (is_sec_implicit_index_fn): Return false
8294         for NULL fndecl.
8295         (extract_array_notation_exprs): Return for NULL node.
8297 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
8299         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
8300         undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
8302 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
8304         PR c/59708
8305         * c-common.c (check_builtin_function_arguments): Handle
8306         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
8308 2014-11-10  Andi Kleen  <ak@linux.intel.com>
8310         PR c/60804
8311         * c-common.h (check_no_cilk): Declare.
8312         * cilk.c (get_error_location): New function.
8313         (check_no_cilk): Dito.
8315 2014-11-10  Andi Kleen  <ak@linux.intel.com>
8317         * cilk.c (recognize_spawn): Use expression location
8318         for error message.
8320 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
8322         * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
8324 2014-11-10  Edward Smith-Rowland  <3dw4rd@verizon.net>
8326         * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
8327         (__cpp_rtti, __cpp_exceptions): New macros for C++98;
8328         (__cpp_range_based_for, __cpp_initializer_lists,
8329         __cpp_delegating_constructors, __cpp_nsdmi,
8330         __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
8331         for C++11; (__cpp_attribute_deprecated): Remove in favor of
8332         __has_cpp_attribute.
8333         * c-lex.c (cb_has_attribute): New callback CPP function;
8334         (init_c_lex): Set has_attribute callback.
8336 2014-11-04  Richard Biener  <rguenther@suse.de>
8338         * c-common.c (shorten_compare): Do not shorten mixed
8339         DFP and non-DFP compares.
8341 2014-11-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
8343         * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
8344         * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
8345         Commentary and rearrangement of tests.
8346         * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
8347         Commentary and rearrangement of tests.
8348         * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto.
8349         * g++.dg/cpp1y/feat-cxx98.C: Commentary.
8351 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
8353         * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
8354         enum from machine_mode.
8356 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
8358         * c-common.c: Adjust include files.
8359         * c-gimplify.c: Ditto.
8360         * cilk.c: Ditto.
8361         * c-pragma.c: Ditto.
8362         * c-ubsan.c: Ditto.
8364 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
8366         * c-gimplify.c: Adjust include files.
8368 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8370         PR c++/53061
8371         * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
8372         c_common_initialize_diagnostics.
8373         * c-common.h: Likewise.
8375 2014-10-24  Marek Polacek  <polacek@redhat.com>
8377         PR c/56980
8378         * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
8379         print "struct"/"union"/"enum" for typedefed names.
8381 2014-10-23  Marek Polacek  <polacek@redhat.com>
8383         * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
8384         in unsigned type.
8386 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
8387             Yury Gribov  <y.gribov@samsung.com>
8389         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
8390         ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
8391         instead of flag_sanitize_recover as bool flag.
8393 2014-10-21  Kirill Yukhin  <kirill.yukhin@intel.com>
8395         * cilk.c: Revert previous change.
8397 2014-10-20  Igor Zamyatin  <igor.zamyatin@intel.com>
8399         PR c/63307
8400         * cilk.c: Include vec.h.
8401         (struct cilk_decls): New structure.
8402         (wrapper_parm_cb): Split this function to...
8403         (fill_decls_vec): ...this...
8404         (create_parm_list): ...and this.
8405         (compare_decls): New function.
8406         (for_local_cb): Remove.
8407         (wrapper_local_cb): Ditto.
8408         (build_wrapper_type): For now first traverse and fill vector of
8409         declarations then sort it and then deal with sorted vector.
8410         (cilk_outline): Ditto.
8411         (declare_one_free_variable): Ditto.
8413 2014-10-17  Marek Polacek  <polacek@redhat.com>
8415         * c-opts.c (c_common_post_options): Set warn_implicit_int.
8416         * c.opt (Wimplicit-int): Initialize to -1.
8418 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
8420         * c-pragma.c: Adjust include files.
8421         * c-semantics.c: Likewise.
8423 2014-10-16  DJ Delorie  <dj@redhat.com>
8425         * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
8426         multiples of bytes.
8428 2014-10-14  Jason Merrill  <jason@redhat.com>
8430         PR c++/63455
8431         * c-common.h (CPP_PREPARSED_EXPR): New.
8432         (N_CP_TTYPES): Adjust.
8434 2014-10-15  Marek Polacek  <polacek@redhat.com>
8436         * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
8438 2014-10-14  DJ Delorie  <dj@redhat.com>
8440         * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
8441         types, not just __int128.
8442         * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
8443         types, not just __int128.
8444         (cpp_atomic_builtins): Round pointer sizes up.
8445         (type_suffix): Use type precision, not specific types.
8446         * c-common.c (c_common_reswords): Remove __int128 special case.
8447         (c_common_type_for_size): Check for all __intN types, not just
8448         __int128.
8449         (c_common_type_for_mode): Likewise.
8450         (c_common_signed_or_unsigned_type): Likewise.
8451         (c_build_bitfield_integer_type): Likewise.
8452         (c_common_nodes_and_builtins): Likewise.
8453         (keyword_begins_type_specifier): Likewise.
8454         * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
8455         __intN variants.
8457 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
8459         * c-common.c: Use hash_table instead of hashtab.
8461 2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>
8463         * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
8464         C++11 section.
8466 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
8468         PR c++/54427
8469         PR c++/57198
8470         PR c++/58845
8471         * c-common.c (warn_logical_operator): Punt for vectors.
8473 2014-10-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
8475         Implement SD-6: SG10 Feature Test Recommendations
8476         * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
8477         macros and the __has_header macro.
8479 2014-09-30  Jason Merrill  <jason@redhat.com>
8481         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
8482         RID_IS_TRIVIALLY_CONSTRUCTIBLE.
8483         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
8485         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
8486         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
8488         * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
8489         * c-common.c (c_common_reswords): Remove __is_convertible_to.
8491 2014-09-24  Marek Polacek  <polacek@redhat.com>
8493         PR c/61405
8494         PR c/53874
8495         * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
8497 2014-09-23  Andi Kleen  <ak@linux.intel.com>
8499         * c-common.c (handle_no_reorder_attribute): New function.
8500         (c_common_attribute_table): Add no_reorder attribute.
8502 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
8504         * c-cppbuiltin.c (c_cpp_builtins): Define
8505         __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
8506         modes.
8508 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
8510         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
8511         for supported floating-point modes.
8513 2014-09-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8515         * c.opt (Wpsabi): Use LangEnabledBy.
8516         * c-opts.c (c_common_handle_option): Do not handle here.
8518 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
8520         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
8521         macros for floating-point modes.
8523 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
8525         PR target/58757
8526         * c-cppbuiltin.c (builtin_define_float_constants): Correct
8527         __*_DENORM_MIN__ without denormals.
8529 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
8531         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
8532         ubsan_instrument_vla, ubsan_instrument_return): Adjust
8533         ubsan_create_data callers.
8534         (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
8535         index is constant or BIT_AND_EXPR with constant mask and is
8536         small enough for the bound.
8537         * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
8538         ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
8540 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8542         * c.opt: Add CppReason to various flags.
8543         (Wdate-time): Re-sort.
8544         * c-common.c: Include c-common.h earlier.
8545         (struct reason_option_codes_t): Delete.
8546         (c_option_controlling_cpp_error): Prefix global type and struct
8547         with cpp_.
8549 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8551         * c.opt (Wnormalized): New.
8552         (Wnormalized=): Use Enum and Reject Negative.
8553         * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
8555 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
8557         * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
8558         digits of floating-point modes if -fbuilding-libgcc.
8560 2014-09-05  Joseph Myers  <joseph@codesourcery.com>
8562         * c-cppbuiltin.c (c_cpp_builtins): Also define
8563         __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
8564         __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
8565         __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
8566         __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
8567         __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
8568         __LIBGCC_STACK_GROWS_DOWNWARD__,
8569         __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
8570         __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
8571         __LIBGCC_DWARF_FRAME_REGISTERS__,
8572         __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
8573         __LIBGCC_STACK_POINTER_REGNUM__ and
8574         __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
8575         (builtin_define_with_value): Handle backslash-escaping in string
8576         macro values.
8578 2014-09-05  Richard Biener  <rguenther@suse.de>
8580         PR middle-end/63148
8581         * c-format.c (check_format_arg): Properly handle
8582         effectively signed POINTER_PLUS_EXPR offset.
8584 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8586         * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
8587         Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
8588         (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
8589         and Init.
8590         * c-opts.c (c_common_handle_option): Do not handle here.
8591         (sanitize_cpp_opts): Likewise.
8592         * c-common.c (struct reason_option_codes_t): Handle
8593         CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
8595 2014-09-03  Marek Polacek  <polacek@redhat.com>
8597         * c.opt (Wlogical-not-parentheses): Enable by -Wall.
8599 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
8600             Balaji V. Iyer  <balaji.v.iyer@intel.com>
8601             Igor Zamyatin  <igor.zamyatin@intel.com>
8603         * c-cilkplus.c (cilk_for_number_of_iterations): New function.
8604         * c-common.c (c_common_reswords): Added _Cilk_for.
8605         * c-common.h (enum rid): Added RID_CILK_FOR.
8606         (cilk_for_number_of_iterations): Add declaration.
8607         * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
8608         CILK_FOR.
8609         * c-pragma.c (init_pragma): Register "grainsize" pragma.
8610         * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
8612 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8614         * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
8615         Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
8616         Wundef): Use CPP, Var and Init.
8617         * c-opts.c (c_common_handle_option): Do not handle the above flags here.
8619 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8621         * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
8622         * c-opts.c (c_common_handle_option): Do not handle here.
8624 2014-08-25  Jason Merrill  <jason@redhat.com>
8626         * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
8627         -std=c++14 and -std=gnu++14, rather than the reverse.
8628         * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
8629         OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
8630         * c-common.h (cxx_dialect): Remove cxx1y.
8632 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
8634         * c-common.h (enum cxx_dialect): Add cxx14.
8635         * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
8636         * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
8637         cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
8639 2014-08-22  Jason Merrill  <jason@redhat.com>
8641         * c.opt (std=gnu++17): Fix alias.
8643 2014-08-22  Marek Polacek  <polacek@redhat.com>
8645         PR c++/62199
8646         * c-common.c (warn_logical_not_parentheses): Don't check LHS.  Don't
8647         check for vector types.  Drop LHS argument.
8648         * c-common.h (warn_logical_not_parentheses): Adjust.
8650 2014-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8652         * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
8653         (Wmultichar): Likewise.
8654         (Wdate-time): Use C-family languages instead of Common. Use CPP
8655         and Var.
8656         * c-opts.c (c_common_handle_option): Do not handle the above
8657         options here.
8658         (sanitize_cpp_opts): Likewise.
8660 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8662         PR fortran/44054
8663         * c-opts.c: Include tree-diagnostics.h.
8664         (c_diagnostic_finalizer): New.
8665         (c_common_initialize_diagnostics): Use it.
8667 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8669         PR preprocessor/51303
8670         * c-common.c (struct reason_option_codes_t option_codes):
8671         Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
8673 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8675         PR c/60975
8676         PR c/53063
8677         * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
8678         * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
8679         (c_common_post_options): Call init_global_opts_from_cpp.
8680         (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
8682 2014-08-19  Marek Polacek  <polacek@redhat.com>
8684         PR c++/62153
8685         * c-common.c (maybe_warn_bool_compare): New function.
8686         * c-common.h (maybe_warn_bool_compare): Declare.
8687         * c.opt (Wbool-compare): New option.
8689 2014-08-19  Marek Polacek  <polacek@redhat.com>
8691         * c.opt (Wc99-c11-compat): New option.
8693 2014-08-19  Marek Polacek  <polacek@redhat.com>
8695         * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
8696         to warn_c90_c99_compat.
8697         * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
8698         to -1.
8700 2014-08-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8701             Steven Bosscher  <steven@gcc.gnu.org>
8703         PR c/52952
8704         * c-format.c: Add extra_arg_loc and format_string_loc to struct
8705         format_check_results.
8706         (check_function_format): Use true and add comment for boolean
8707         argument.
8708         (finish_dollar_format_checking): Use explicit location when warning.
8709         (check_format_info): Likewise.
8710         (check_format_arg): Set extra_arg_loc and format_string_loc.
8711         (check_format_info_main): Use explicit location when warning.
8712         (check_format_types): Pass explicit location.
8713         (format_type_warning): Likewise.
8715 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8717         PR fortran/44054
8718         * c-format.c: Handle Fortran flags.
8720 2014-08-12  Igor Zamyatin  <igor.zamyatin@intel.com>
8722         PR other/61962
8723         * array-notation-common.c (find_rank): Added handling for other
8724         types of references.
8726 2014-08-10  Marek Polacek  <polacek@redhat.com>
8728         PR c/51849
8729         * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
8730         * c.opt (Wc90-c99-compat): Add option.
8732 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
8734         * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
8736 2014-08-03  Marek Polacek  <polacek@redhat.com>
8738         * c-common.c (check_case_value): Add location_t parameter.  Use it.
8739         (c_add_case_label): Pass loc to check_case_value.
8741 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
8743         * cilk.c: Use hash_map instead of pointer_map.
8745 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
8747         * c-gimplify.c: Use hash_set instead of pointer_set.
8749 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
8751         PR middle-end/61455
8752         * array-notation-common.c (extract_array_notation_exprs): Handling
8753         of DECL_EXPR added.
8755 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
8757         * c-common.h (min_align_of_type): Removed prototype.
8758         * c-common.c (min_align_of_type): Removed.
8759         * c-ubsan.h (ubsan_maybe_instrument_reference,
8760         ubsan_maybe_instrument_member_call): New prototypes.
8761         * c-ubsan.c: Include stor-layout.h and builtins.h.
8762         (ubsan_maybe_instrument_reference_or_call,
8763         ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
8764         functions.
8766 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
8768         PR c++/60517
8769         * c.opt (-Wreturn-local-addr): Move to common.opt.
8771 2014-07-30  Jason Merrill  <jason@redhat.com>
8773         PR c++/61659
8774         PR c++/61687
8775         Revert:
8776         * c.opt (-fuse-all-virtuals): New.
8778 2014-07-30  Tom Tromey  <tromey@redhat.com>
8780         PR c/59855
8781         * c.opt (Wdesignated-init): New option.
8782         * c-common.c (c_common_attribute_table): Add "designated_init".
8783         (handle_designated_init): New function.
8785 2014-07-24  Marek Polacek  <polacek@redhat.com>
8787         PR c/57653
8788         * c-opts.c (c_finish_options): If -imacros is in effect, return.
8790 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
8792         PR preprocessor/60723 - missing system-ness marks for macro tokens
8793         * c-ppoutput.c (struct print::prev_was_system_token): New data
8794         member.
8795         (init_pp_output): Initialize it.
8796         (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
8797         (do_line_change): Return a flag saying if a line marker was
8798         emitted or not.
8799         (scan_translation_unit): Detect if the system-ness of the token we
8800         are about to emit is different from the one of the previously
8801         emitted token.  If so, emit a line marker.  Avoid emitting useless
8802         adjacent line markers.  Avoid emitting line markers for tokens
8803         originating from the expansion of built-in macros.
8804         (scan_translation_unit_directives_only): Adjust.
8806 2014-07-15  Marek Polacek  <polacek@redhat.com>
8808         * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
8809         TYPE_MAX_VALUE is NULL.
8811 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
8813         PR middle-end/61294
8814         * c.opt (Wmemset-transposed-args): New warning.
8816 2014-07-10  Jason Merrill  <jason@redhat.com>
8818         PR c++/61659
8819         PR c++/61687
8820         * c.opt (-fuse-all-virtuals): New.
8822 2014-07-09  Richard Biener  <rguenther@suse.de>
8824         PR c-family/61741
8825         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
8826         using unsigned arithmetic if overflow does not wrap instead of
8827         if overflow is undefined.
8829 2014-07-06  Marek Polacek  <polacek@redhat.com>
8831         PR c/6940
8832         * c.opt (Wsizeof-array-argument): New option.
8834 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
8836         * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
8837         comments->count <= 1, as comments->entries might be NULL.
8839 2014-07-01  Marek Polacek  <polacek@redhat.com>
8841         * c.opt (Wint-conversion): New option.
8843 2014-07-01  Marek Polacek  <polacek@redhat.com>
8845         PR c/58286
8846         * c.opt (Wincompatible-pointer-types): New option.
8848 2014-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
8850         PR c++/51400
8851         * c-common.c (handle_noreturn_attribute, handle_const_attribute):
8852         Do not discard TYPE_QUALS of type.
8854 2014-06-26  Jason Merrill  <jason@redhat.com>
8856         * c-common.h (enum cxx_dialect): Add cxx1z.
8857         * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
8858         * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
8860 2014-06-26  Teresa Johnson  <tejohnson@google.com>
8862         * c-common.h (get_dump_info): Declare.
8863         * c-gimplify.c (c_genericize): Use saved dump files.
8864         * c-opts.c (c_common_parse_file): Begin and end dumps
8865         once around parsing invocation.
8866         (get_dump_info): New function.
8868 2014-06-23  Marek Polacek  <polacek@redhat.com>
8869             Andrew MacLeod  <amacleod@redhat.com>
8871         PR c/61553
8872         * c-common.c (get_atomic_generic_size): Don't segfault if the
8873         type doesn't have a size.
8875 2014-06-20  Marek Polacek  <polacek@redhat.com>
8877         * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
8878         (ubsan_walk_array_refs_r): New function.
8879         (c_genericize): Instrument array bounds.
8880         * c-ubsan.c: Include "internal-fn.h".
8881         (ubsan_instrument_division): Mark instrumented arrays as having
8882         side effects.  Adjust ubsan_type_descriptor call.
8883         (ubsan_instrument_shift): Likewise.
8884         (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
8885         (ubsan_instrument_bounds): New function.
8886         (ubsan_array_ref_instrumented_p): New function.
8887         (ubsan_maybe_instrument_array_ref): New function.
8888         * c-ubsan.h (ubsan_instrument_bounds): Declare.
8889         (ubsan_array_ref_instrumented_p): Declare.
8890         (ubsan_maybe_instrument_array_ref): Declare.
8892 2014-06-20  Hale Wang  <hale.wang@arm.com>
8894         PR lto/61123
8895         * c.opt (fshort-enums): Add to LTO.
8896         * c.opt (fshort-wchar): Likewise.
8898 2014-06-16  Marek Polacek  <polacek@redhat.com>
8900         PR c/60439
8901         * c.opt (Wswitch-bool): Add Var.
8903 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
8905         PR middle-end/61486
8906         * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
8907         #pragma omp target teams or
8908         #pragma omp {,target }teams distribute simd.
8910 2014-06-12  Jason Merrill  <jason@redhat.com>
8912         * c.opt (Wabi=, fabi-compat-version): New.
8913         * c-opts.c (c_common_handle_option): Handle -Wabi=.
8914         (c_common_post_options): Handle flag_abi_compat_version default.
8915         Disallow -fabi-compat-version=1.
8916         * c-common.h (abi_version_crosses): New.
8918 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
8920         * c-common.c (handle_section_attribute): Update handling for
8921         section names that are no longer trees.
8923 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
8925         PR fortran/60928
8926         * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
8927         (omp_pragmas): ... back here.
8929 2014-06-05  Marek Polacek  <polacek@redhat.com>
8931         PR c/49706
8932         * c-common.c (warn_logical_not_parentheses): New function.
8933         * c-common.h (warn_logical_not_parentheses): Declare.
8934         * c.opt (Wlogical-not-parentheses): New option.
8936 2014-06-04  Marek Polacek  <polacek@redhat.com>
8938         PR c/30020
8939         * c-common.c (check_case_bounds): Add location parameter.
8940         Use it.
8941         (c_add_case_label): Pass loc to check_case_bounds.
8943 2014-06-03  Marek Polacek  <polacek@redhat.com>
8945         PR c/60439
8946         * c.opt (Wswitch-bool): New option.
8948 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
8950         * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
8951         Remove prototypes.
8952         (record_types_used_by_current_var_decl): Move prototype to where
8953         it belongs.
8955         * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
8956         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
8957         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
8959 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
8961         * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
8962         * c-common.c (c_common_nodes_and_builtins): Don't initialize
8963         void_zero_node.
8964         * c-pretty-print.c (pp_c_void_constant): New function.
8965         (c_pretty_printer::constant, c_pretty_printer::primary_expression)
8966         (c_pretty_printer::expression): Handle VOID_CST.
8967         * cilk.c (extract_free_variables): Likewise.
8968         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
8969         (ubsan_instrument_vla): Use void_node instead of void_zero_node.
8971 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
8973         * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
8974         * c-pragma.c (push_alignment): Adjust.
8975         (handle_pragma_push_options): Likewise.
8977 2014-05-09  Marek Polacek  <polacek@redhat.com>
8979         PR c/50459
8980         * c-common.c (check_user_alignment): Return -1 if alignment is error
8981         node.
8982         (handle_aligned_attribute): Don't call default_conversion on
8983         FUNCTION_DECLs.
8984         (handle_vector_size_attribute): Likewise.
8985         (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
8986         (handle_sentinel_attribute): Call default_conversion and allow even
8987         integral types as an argument.
8989 2014-05-08  Marek Polacek  <polacek@redhat.com>
8991         PR c/61053
8992         * c-common.c (min_align_of_type): New function factored out from...
8993         (c_sizeof_or_alignof_type): ...here.
8994         * c-common.h (min_align_of_type): Declare.
8996 2014-05-08  Marek Polacek  <polacek@redhat.com>
8998         PR c/61077
8999         * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
9000         parameter type of main.
9002 2014-05-07  DJ Delorie  <dj@redhat.com>
9004         * c-cppbuiltin.c (print_bits_of_hex): New.
9005         (builtin_define_type_minmax): Print values using hex so as not to
9006         require a pre-computed list of string values.
9008 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
9009             Mike Stump  <mikestump@comcast.net>
9010             Richard Sandiford  <rdsandiford@googlemail.com>
9012         * c-ada-spec.c: Include wide-int.h.
9013         (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
9014         (dump_generic_ada_node): Use wide-int interfaces.
9015         * c-common.c: Include wide-int-print.h.
9016         (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
9017         (pointer_int_sum): Use wide-int interfaces.
9018         (c_common_nodes_and_builtins): Use make_int_cst.
9019         (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
9020         (handle_alloc_size_attribute): Use wide-int interfaces.
9021         (get_nonnull_operand): Likewise.
9022         * c-format.c (get_constant): Use tree_fits_uhwi_p.
9023         * c-lex.c: Include wide-int.h.
9024         (narrowest_unsigned_type): Take a widest_int rather than two
9025         HOST_WIDE_INTs.
9026         (narrowest_signed_type): Likewise.
9027         (interpret_integer): Update accordingly.  Use wide-int interfaces.
9028         (lex_charconst): Use wide-int interfaces.
9029         * c-pretty-print.c: Include wide-int.h.
9030         (pp_c_integer_constant): Use wide-int interfaces.
9031         * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
9032         INT_CST_LT_UNSIGNED.
9034 2014-05-06  Richard Biener  <rguenther@suse.de>
9036         * c-opts.c (c_common_post_options): For -freestanding,
9037         -fno-hosted and -fno-builtin disable pattern recognition
9038         if not enabled explicitely.
9040 2014-05-02  Marek Polacek  <polacek@redhat.com>
9042         * c.opt (Wsizeof-pointer-memaccess): Describe option.
9044 2014-05-01  Marek Polacek  <polacek@redhat.com>
9046         PR c/43245
9047         * c.opt (Wdiscarded-qualifiers): Add.
9049 2014-04-30  Marek Polacek  <polacek@redhat.com>
9051         * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs.  Perform
9052         INT_MIN / -1 sanitization only for integer types.
9054 2014-04-25  Marek Polacek  <polacek@redhat.com>
9056         PR c/18079
9057         * c-common.c (handle_noinline_attribute): Warn if the attribute
9058         conflicts with always_inline attribute.
9059         (handle_always_inline_attribute): Warn if the attribute conflicts
9060         with noinline attribute.
9062 2014-04-25  Marek Polacek  <polacek@redhat.com>
9064         PR c/60156
9065         * c-common.c (check_main_parameter_types): Warn about variadic main.
9067 2014-04-24  Mike Stump  <mikestump@comcast.net>
9069         * c.opt (Wshadow-ivar): Default to on.
9071 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
9073         * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
9075 2014-04-23  Marek Polacek  <polacek@redhat.com>
9077         * c-common.c (handle_tm_wrap_attribute): Tweak error message.
9079 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
9081         PR sanitizer/60275
9082         * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
9083         if flag_sanitize_undefined_trap_on_error.
9084         (ubsan_instrument_division, ubsan_instrument_shift,
9085         ubsan_instrument_vla): Likewise.  Use __ubsan_handle_*_abort ()
9086         if !flag_sanitize_recover.
9088 2014-04-22  Marc Glisse  <marc.glisse@inria.fr>
9090         PR libstdc++/43622
9091         * c-common.c (registered_builtin_types): Make non-static.
9092         * c-common.h (registered_builtin_types): Declare.
9094 2014-04-14  Richard Biener  <rguenther@suse.de>
9095             Marc Glisse  <marc.glisse@inria.fr>
9097         PR c/60819
9098         * c-common.c (convert_vector_to_pointer_for_subscript): Properly
9099         apply may-alias the scalar pointer type when applicable.
9101 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
9103         PR middle-end/60467
9104         * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
9105         as possible argument for Cilk_spawn.
9107 2014-04-11  Tobias Burnus  <burnus@net-b.de>
9109         PR c/60194
9110         * c.opt (Wformat-signedness): Add
9111         * c-format.c(check_format_types): Use it.
9113 2014-04-11  Jason Merrill  <jason@redhat.com>
9115         PR c++/57926
9116         * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
9117         default_conversion for an array argument.
9119 2014-04-08  Marek Polacek  <polacek@redhat.com>
9121         PR sanitizer/60745
9122         * c-ubsan.c: Include asan.h.
9123         (ubsan_instrument_return): Call initialize_sanitizer_builtins.
9125 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
9127         * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
9129 2014-04-02  Marek Polacek  <polacek@redhat.com>
9131         * c-common.h (c_expand_expr): Remove declaration.
9133 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
9135         PR c++/60689
9136         * c-common.c (add_atomic_size_parameter): When creating new
9137         params vector, push the size argument first.
9139 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
9141         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
9142         ubsan_instrument_vla, ubsan_instrument_return): Adjust
9143         ubsan_create_data callers.
9145 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
9147         PR debug/60603
9148         * c-opts.c (c_finish_options): Restore cb_file_change call to
9149         <built-in>.
9151 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
9153         PR middle-end/36282
9154         * c-pragma.c (apply_pragma_weak): Only look at
9155         TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
9156         DECL_ASSEMBLER_NAME_SET_P (decl).
9157         (maybe_apply_pending_pragma_weaks): Exit early if
9158         vec_safe_is_empty (pending_weaks) rather than only when
9159         !pending_weaks.
9160         (maybe_apply_pragma_weak): Likewise.  If !DECL_ASSEMBLER_NAME_SET_P,
9161         set assembler name back to NULL afterwards.
9163 2014-03-11  Jason Merrill  <jason@redhat.com>
9165         * c.opt: Add -std=gnu++14.
9167 2014-03-11  Ian Bolton  <ian.bolton@arm.com>
9169         * c-opts.c (c_common_post_options): Don't override
9170         -ffp-contract=fast if unsafe-math-optimizations is on.
9172 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
9174         * c.opt: Enable LTO FE for fshort-double.
9176 2014-03-07  Jason Merrill  <jason@redhat.com>
9178         * c.opt: Add -std=c++14.
9180 2014-03-06  Marek Polacek  <polacek@redhat.com>
9182         PR c/60197
9183         * cilk.c (contains_cilk_spawn_stmt): New function.
9184         (contains_cilk_spawn_stmt_walker): Likewise.
9185         (recognize_spawn): Give error on invalid use of _Cilk_spawn.
9186         * c-common.h (contains_cilk_spawn_stmt): Add declaration.
9188 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
9190         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
9191         (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
9192         even when flag_preprocess_only.
9194 2014-02-26  Jason Merrill  <jason@redhat.com>
9196         PR c++/59231
9197         PR c++/11586
9198         * c-common.c (shorten_compare): Don't check
9199         c_inhibit_evaluation_warnings.
9201 2014-02-19  Jakub Jelinek  <jakub@redhat.com>
9203         PR c/37743
9204         * c-common.c (c_common_nodes_and_builtins): When initializing
9205         c_uint{16,32,64}_type_node, also set corresponding
9206         uint{16,32,64}_type_node to the same value.
9208         PR c++/60267
9209         * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
9210         for PRAGMA_IVDEP if flag_preprocess_only.
9212 2014-02-12  Jakub Jelinek  <jakub@redhat.com>
9214         PR c/60101
9215         * c-common.c (merge_tlist): If copy is true, call new_tlist,
9216         if false, add ADD itself, rather than vice versa.
9217         (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
9218         copy.  For SAVE_EXPR, only call merge_tlist once.
9220 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
9222         PR middle-end/60092
9223         * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
9224         and tree_to_uhwi.
9225         (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
9226         functions.
9227         (c_common_attribute_table): Add alloc_align and assume_aligned
9228         attributes.
9230 2014-02-06  Marek Polacek  <polacek@redhat.com>
9232         PR c/60087
9233         * c-common.c (warn_for_sign_compare): Call warning_at with location
9234         instead of warning.
9236 2014-02-05  Marek Polacek  <polacek@redhat.com>
9238         PR c/53123
9239         * c-omp.c (c_finish_omp_atomic): Remove unreachable return
9240         statement.
9242 2014-02-04  Marek Polacek  <polacek@redhat.com>
9244         PR c/60036
9245         * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
9246         SAVE_EXPR.
9248 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
9250         PR c++/53017
9251         PR c++/59211
9252         * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
9253         handle_vector_size_attribute, handle_nonnull_attribute): Call
9254         default_conversion on the attribute argument.
9255         (handle_nonnull_attribute): Increment the argument number.
9257 2014-01-31  Marek Polacek  <polacek@redhat.com>
9259         PR c/59963
9260         * c-common.c (add_atomic_size_parameter): Pass vNULL to
9261         build_function_call_vec.
9262         (resolve_overloaded_builtin): Likewise.
9263         * c-common.h (build_function_call_vec): Adjust declaration.
9265 2014-01-30  Marek Polacek  <polacek@redhat.com>
9267         PR c/59940
9268         * c-common.h (unsafe_conversion_p): Adjust declaration.
9269         (warnings_for_convert_and_check): Likewise.
9270         (convert_and_check): Likewise.
9271         * c-common.c (unsafe_conversion_p): Add location parameter.  Call
9272         expansion_point_location_if_in_system_header on it.
9273         (warnings_for_convert_and_check): Add location parameter.  Call
9274         expansion_point_location_if_in_system_header on it.  Use it.
9275         (convert_and_check): Add location parameter.  Use it.
9276         (conversion_warning): Likewise.
9277         (c_add_case_label): Adjust convert_and_check calls.
9278         (scalar_to_vector): Adjust unsafe_conversion_p calls.
9280 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
9282         * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
9283         flag_cilkplus.
9284         * c-pragma.c (init_pragma): Likewise.
9285         * c.opt: Likewise.
9287 2014-01-23  Marek Polacek  <polacek@redhat.com>
9289         PR c/59846
9290         * c-common.c (shorten_compare): Add location_t parameter.
9291         * c-common.h (shorten_binary_op): Adjust declaration.
9293 2014-01-23  Marek Polacek  <polacek@redhat.com>
9295         PR c/58346
9296         * c-common.c (pointer_to_zero_sized_aggr_p): New function.
9297         * c-common.h: Declare it.
9299 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
9301         * c-ada-spec.h (dump_ada_specs): Revert prototype change.
9302         * c-ada-spec.c (dump_ads): Likewise.
9303         (cpp_check): Likewise.
9304         (dump_ada_specs): Likewise.
9306 2014-01-15  Laurent Alfonsi  <laurent.alfonsi@st.com>
9308         PR c++/49718
9309         * c-common.c (handle_no_instrument_function_attribute): Allow
9310         no_instrument_function attribute in class member
9311         definition/declaration.
9313 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
9315         PR c/58943
9316         * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
9317         build_modify_expr with non-NOP_EXPR opcode.  Handle return from it
9318         being COMPOUND_EXPR.
9319         (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
9320         operand a SAVE_EXPR and second MODIFY_EXPR.
9322 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
9324         PR target/58115
9325         * c-pch.c (c_common_write_pch): Call
9326         prepare_target_option_nodes_for_pch.
9328 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
9330         Update copyright years
9332 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
9334         * array-notation-common.c, c-cilkplus.c: Use the standard form for
9335         the copyright notice.
9337 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
9339         * c-ada-spec.c (print_constructor): New function.
9340         (print_destructor): Retrieve the origin of the destructor.
9341         (print_ada_declaration): Revamp handling of constructors/destructors.
9343 2013-12-23  Stuart Hastings  <stuart@apple.com>
9344             Bill Maddox  <maddox@google.com>
9345             Jason Merrill  <jason@redhat.com>
9347         * c.opt: Add -fdeclone-ctor-dtor.
9348         * c-opts.c (c_common_post_options): Default to on iff -Os.
9350 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
9352         * c-common.c (c_common_attribute_table): Added "cilk simd function"
9353         attribute.
9354         * c-pragma.h (enum pragma_cilk_clause): Remove.
9355         (enum pragma_omp_clause): Added the following fields:
9356         PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
9357         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
9358         PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
9359         PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
9360         PRAGMA_CILK_CLAUSE_UNIFORM.
9363 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
9365         * cilk.c (cilk_outline): Made this function non-static.
9366         (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
9367         (create_cilk_wrapper): Added a new parameter: a function pointer.
9368         (c_install_body_w_frame_cleanup): Remove
9369         (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
9370         * c-common.h (cilk_outline): New prototype.
9371         (gimplify_cilk_spawn): Removed two parameters.
9372         (cilk_install_body_with_frame_cleanup): New prototype.
9373         * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
9374         CILK_SPAWN_STMT case.
9376 2013-12-11  Bernd Schmidt  <bernds@codesourcery.com>
9378         * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
9380         * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
9381         (int_array_type_node): Remove.
9382         * c-common.c (c_common_nodes_and_builtins): Don't build it.
9384 2013-12-05  Marek Polacek  <polacek@redhat.com>
9386         PR c/52023
9387         * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
9388         [ADJUST_FIELD_ALIGN].
9390 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
9392         PR c/52023
9393         * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
9394         and check field alignment if set.
9395         * c-common.h (c_sizeof_or_alignof_type): Update prototype.
9396         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
9398 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
9399             Marek Polacek  <polacek@redhat.com>
9401         * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
9402         sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
9404 2013-11-29   H.J. Lu  <hongjiu.lu@intel.com>
9406         PR c/59309
9407         * cilk.c (gimplify_cilk_spawn): Properly handle function without
9408         arguments.
9410 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
9412         PR c/59280
9413         * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
9414         goto invalid.  If it is error_mark_node, don't issue further
9415         diagnostics.
9417 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
9419         * c.opt (Wopenmp-simd): New.
9421 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
9423         * c-ubsan.h (ubsan_instrument_return): New prototype.
9424         * c-ubsan.c (ubsan_instrument_return): New function.
9426 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
9428         * c-common.c: Add required include files from gimple.h.
9429         * c-gimplify.c: Likewise.
9430         * cilk.c: Likewise.
9432 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
9434         * c-common.c (unsafe_conversion_p): Remove use of
9435         EXPR_LOC_OR_HERE macro.
9436         (conversion_warning): Likewise.
9437         (warnings_for_convert_and_check): Likewise.
9438         (warn_for_collisions_1): Likewise.
9439         (shorten_compare): Likewise, and remove use of in_system_header
9440         macro, using the location from the former.
9441         * c-lex.c (dump_one_header): Remove use of input_filename macro.
9442         (cb_def_pragma): Remove use of in_system_header macro.
9443         (lex_string): Likewise.
9444         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
9446 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
9447             Mike Stump  <mikestump@comcast.net>
9448             Richard Sandiford  <rdsandiford@googlemail.com>
9450         * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
9451         instead of TREE_INT_CST_LOW, in cases where there is a protecting
9452         tree_fits_shwi_p or tree_fits_uhwi_p.
9453         (dump_generic_ada_node): Likewise.
9454         * c-format.c (check_format_arg): Likewise.
9455         * c-pretty-print.c (pp_c_integer_constant): Likewise.
9457 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
9459         * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
9461 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
9463         PR c/53001
9464         * c-common.c (unsafe_conversion_p): Make this function
9465         return an enumeration with more detail.
9466         (conversion_warning): Use the new return type of
9467         unsafe_conversion_p to separately warn either about conversions
9468         that lower floating point number precision or about the other
9469         kinds of conversions.
9470         * c-common.h (enum conversion_safety): New enumeration.
9471         (unsafe_conversion_p): switching return type to
9472         conversion_safety enumeration.
9473         * c.opt: Adding new warning -Wfloat-conversion and
9474         enabling it with -Wconversion.
9476 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
9478         * c-opts.c: Include plugin.h.
9479         (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
9481 2013-11-19  Marek Polacek  <polacek@redhat.com>
9483         * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
9484         call.
9485         (ubsan_instrument_shift): Likewise.
9486         (ubsan_instrument_vla): Likewise.
9488 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
9490         * c-common.c (convert_vector_to_pointer_for_subscript): Remove
9491         cast to unsigned type.
9493 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
9495         * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
9496         tree_low_cst.
9497         (complete_array_type): Update comment to refer to tree_to_[su]hwi
9498         rather than tree_low_cst.
9500 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
9502         * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
9503         tree_to_uhwi throughout.
9505 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
9507         * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
9508         tree_low_cst (..., 0) with tree_to_shwi throughout.
9510 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
9512         * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
9513         host_integerp (..., 1) with tree_fits_uhwi_p throughout.
9515 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
9517         * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
9518         host_integerp (..., 0) with tree_fits_shwi_p throughout.
9520 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
9522         * c-cilkplus.c: New file.
9523         * c-common.c (readonly_error): Add location argument.
9524         * c-common.h (readonly_error): Same.
9525         (c_finish_cilk_clauses): Protoize.
9526         (c_check_cilk_loop): Same.
9527         c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
9528         Do not fail on error_mark_node.
9529         Abstract increment canonicalization to here...
9530         (c_omp_for_incr_canonicalize_ptr): New.
9531         c-pragma.c (init_pragma): Register "simd" pragma.
9532         c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
9533         (enum pragma_cilk_clause): New.
9535 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
9537         * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
9538         wchar_type and host_integerp checks.
9540 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
9542         * c-common.c: Likewise.
9543         * c-gimplify.c: Likewise.
9544         * cilk.c: Likewise.
9546 2013-11-14  Diego Novillo  <dnovillo@google.com>
9548         * c-common.c: Include fold-const.h.
9549         Include stor-layout.h.
9550         Include calls.h.
9551         Include stringpool.h.
9552         Include attribs.h.
9553         Include varasm.h.
9554         Include trans-mem.h.
9555         * c-cppbuiltin.c: Include stor-layout.h.
9556         Include stringpool.h.
9557         * c-format.c: Include stringpool.h.
9558         * c-lex.c: Include stringpool.h.
9559         Include stor-layout.h.
9560         * c-pragma.c: Include stringpool.h.
9561         Include attribs.h.
9562         Include varasm.h.
9563         Include gcc-symtab.h.
9564         * c-pretty-print.c: Include stor-layout.h.
9565         Include attribs.h.
9566         * cilk.c: Include stringpool.h.
9567         Include calls.h.
9569 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
9571         * c-common.h (enum rid): Add RID_AUTO_TYPE.
9572         * c-common.c (c_common_reswords): Add __auto_type.
9573         (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
9575 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
9577         * c-common.c: Include gimplify.h.
9578         * c-gimplify.c: Likewise.
9579         * cilk.c: Likewise.
9580         * c-omp.c: Include gimple-expr.h instead of gimple.h.
9581         * c-ubsan.c: Don't include gimple.h.
9583 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
9585         * c-common.c (c_common_reswords): Add _Thread_local.
9587 2013-11-09  Joseph Myers  <joseph@codesourcery.com>
9589         * c-common.c (atomic_size_supported_p): New function.
9590         (resolve_overloaded_atomic_exchange)
9591         (resolve_overloaded_atomic_compare_exchange)
9592         (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
9593         Use it instead of comparing size with a local list of sizes.
9595 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
9596             Joseph Myers  <joseph@codesourcery.com>
9598         * c-common.h (enum rid): Add RID_ATOMIC.
9599         * c-common.c (c_common_reswords): Add _Atomic.
9600         (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
9601         (keyword_is_type_qualifier): Accept RID_ATOMIC.
9602         * c-format.c (check_format_types): Check for extra _Atomic
9603         qualifiers in format argument.
9604         * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
9605         (pp_c_type_qualifier_list): Mention _Atomic in comment.
9607 2013-11-06  Tobias Burnus  <burnus@net-b.de>
9609         * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
9611 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
9613         * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
9614         standards modes.
9615         * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
9616         to mean lack of IEEE 754 support.
9618 2013-11-05  Tobias Burnus  <burnus@net-b.de>
9620         * c.opt (-Wdate-time): New option
9621         * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
9623 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
9625         * c-cppbuiltin.c (cpp_iec_559_value): Test
9626         flag_excess_precision_cmdline not flag_excess_precision.
9628 2013-11-05  Tobias Burnus  <burnus@net-b.de>
9630         * c.opt (fopenmp-simd): New option.
9631         * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
9632         (omp_pragmas): ... this new struct.
9633         (c_pp_lookup_pragma): Also walk omp_pragmas.
9634         (init_pragma): Init pragmas for -fopenmp-simd.
9636 2013-11-04  Marek Polacek  <polacek@redhat.com>
9638         PR c++/58979
9639         * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
9641 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
9643         * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
9644         New functions.
9645         (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
9647 2013-11-04  Eric Botcazou  <ebotcazou@adacore.com>
9649         * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
9650         (dump_ada_specs): Adjust prototype of second callback.
9651         * c-ada-spec.c (cpp_check): New global variable.
9652         (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
9653         (print_generic_ada_decl): Likewise.
9654         (has_static_fields): Change return type to bool and add guard.
9655         (has_nontrivial_methods): New predicate.
9656         (is_tagged_type): Change return type to bool.
9657         (separate_class_package): Call has_nontrivial_methods.
9658         (pp_ada_tree_identifier): Minor tweaks.
9659         (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
9660         (dump_ada_array_domains): Likewise.
9661         (dump_ada_array_type): Likewise.
9662         (dump_template_types): Remove cpp_check parameter and do not pass it to
9663         dump_generic_ada_node.
9664         (dump_ada_template): Likewise.
9665         (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
9666         recursively.
9667         (print_ada_methods): Change return type to integer.  Remove cpp_check
9668         parameter and do not pass it down.
9669         (dump_nested_types): Remove cpp_check parameter and do not pass it to
9670         dump_generic_ada_node.
9671         (print_ada_declaration): Likewise.  Test RECORD_OR_UNION_TYPE_P before
9672         accessing methods.
9673         (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
9674         down.  Use has_nontrivial_methods to recognize C++ classes.  Use return
9675         value of print_ada_methods.
9676         (dump_ads): Rename cpp_check parameter to check and adjust prototype.
9677         Set cpp_check to it before invoking dump_ada_nodes.
9678         (dump_ada_specs): Likewise.
9680 2013-11-03  Marek Polacek  <polacek@redhat.com>
9682         * c-ubsan.c: Don't include hash-table.h.
9683         (ubsan_instrument_vla): New function.
9684         * c-ubsan.h: Declare it.
9686 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
9688         Automated part of renaming of symtab_node_base to symtab_node.
9690         Patch autogenerated by rename_symtab.py from
9691         https://github.com/davidmalcolm/gcc-refactoring-scripts
9692         revision 58bb219cc090b2f4516a9297d868c245495ee622
9694         * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
9695         symtab_node_base to symtab_node.
9697 2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
9699         Implement C++14 digit separators.
9700         * c-lex.c (interpret_float): Remove digit separators from scratch string
9701         before building real literal.
9703 2013-10-30  Jakub Jelinek  <jakub@redhat.com>
9705         * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
9707 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
9709         * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
9710         fields.
9711         (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
9712         enabled.
9713         * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
9714         (insert_cilk_frame): New prototype.
9715         (cilk_init_builtins): Likewise.
9716         (gimplify_cilk_spawn): Likewise.
9717         (c_cilk_install_body_w_frame_cleanup): Likewise.
9718         (cilk_detect_spawn_and_unwrap): Likewise.
9719         (cilk_set_spawn_marker): Likewise.
9720         (build_cilk_sync): Likewise.
9721         (build_cilk_spawn): Likewise.
9722         * cilk.c: New file.
9724 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
9726         Patch autogenerated by refactor_symtab.py from
9727         https://github.com/davidmalcolm/gcc-refactoring-scripts
9728         revision 58bb219cc090b2f4516a9297d868c245495ee622
9730         * c-gimplify.c (c_genericize): Update for conversion of symtab types
9731         to a true class hierarchy.
9732         * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
9734 2013-10-27  Richard Sandiford  <rdsandiford@googlemail.com>
9736         * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
9738 2013-10-26  Jeff Law  <law@redhat.com>
9740         * c-common.c (c_define_builtins): Remove mudflap support.
9741         * c.opt: Ignore and warn for mudflap options.
9743 2013-10-24  Tobias Burnus  <burnus@net-b.de>
9745         PR other/33426
9746         * c-pragma.c (init_pragma) Add #pragma ivdep handling.
9747         * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
9749 2013-10-23  Jason Merrill  <jason@redhat.com>
9751         * c-format.c (gcc_cxxdiag_char_table): Add %X.
9753 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
9755         * c-common.h (omp_clause_mask::operator !=): New method.
9756         * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
9757         instead of if (mask & something) tests everywhere.
9759         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
9760         201307 instead of 201107.
9761         * c-common.c (DEF_FUNCTION_TYPE_8): Define.
9762         (c_common_attribute_table): Add "omp declare target" and
9763         "omp declare simd" attributes.
9764         (handle_omp_declare_target_attribute,
9765         handle_omp_declare_simd_attribute): New functions.
9766         * c-omp.c: Include c-pragma.h.
9767         (c_finish_omp_taskgroup): New function.
9768         (c_finish_omp_atomic): Add swapped argument, if true,
9769         build the operation first with rhs, lhs arguments and use NOP_EXPR
9770         build_modify_expr.
9771         (c_finish_omp_for): Add code argument, pass it down to make_code.
9772         (c_omp_split_clauses): New function.
9773         (c_split_parallel_clauses): Removed.
9774         (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
9775         c_omp_declare_simd_clauses_to_decls): New functions.
9776         * c-common.h (omp_clause_mask): New type.
9777         (OMP_CLAUSE_MASK_1): Define.
9778         (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
9779         omp_clause_mask::operator |=, omp_clause_mask::operator ~,
9780         omp_clause_mask::operator |, omp_clause_mask::operator &,
9781         omp_clause_mask::operator <<, omp_clause_mask::operator >>,
9782         omp_clause_mask::operator ==): New methods.
9783         (enum c_omp_clause_split): New.
9784         (c_finish_omp_taskgroup): New prototype.
9785         (c_finish_omp_atomic): Add swapped argument.
9786         (c_finish_omp_for): Add code argument.
9787         (c_omp_split_clauses): New prototype.
9788         (c_split_parallel_clauses): Removed.
9789         (c_omp_declare_simd_clauses_to_numbers,
9790         c_omp_declare_simd_clauses_to_decls): New prototypes.
9791         * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
9792         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
9793         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
9794         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
9795         PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
9796         Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
9797         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
9798         PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
9799         PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
9800         PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
9801         PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
9802         PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
9803         PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
9804         PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
9805         PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
9806         PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
9807         PRAGMA_OMP_CLAUSE_UNIFORM.
9809 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
9811         PR tree-optimization/20318
9812         * c-common.c (handle_returns_nonnull_attribute): New function.
9813         (c_common_attribute_table): Add returns_nonnull.
9815 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
9817         PR c++/19476
9818         * c.opt (fcheck-new): Move to common.opt.
9820 2013-09-25  Marek Polacek  <polacek@redhat.com>
9821             Jakub Jelinek  <jakub@redhat.com>
9823         PR sanitizer/58413
9824         * c-ubsan.c (ubsan_instrument_shift): Don't instrument
9825         an expression if we can prove it is correct.
9826         (ubsan_instrument_division): Likewise.  Remove unnecessary
9827         check.
9829 2013-09-18  Marek Polacek  <polacek@redhat.com>
9831         PR sanitizer/58411
9832         * c-common.c (handle_no_sanitize_undefined_attribute): New function.
9833         Declare it.
9834         (struct attribute_spec c_common_att): Add no_sanitize_undefined.
9836 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
9838         PR target/48094
9839         * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
9840         fobjc-gc, freplace-objc-classes): Accept for LTO.
9842 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
9844         * c-target.def: New hook
9846 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
9848         PR c++/43452
9849         * c.opt (Wdelete-incomplete): Add.
9851 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
9853         * c-common.c (same_scalar_type_ignoring_signedness): Delete.
9854         (vector_types_compatible_elements_p): New function.
9855         * c-common.h: (same_scalar_type_ignoring_signedness): Delete
9856         declaration.
9857         (vector_types_compatible_elements_p): Declare.
9859 2013-09-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9861         * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
9862         a virtual member function.
9863         (pp_simple_type_specifier): Remove.
9864         (pp_c_type_specifier): Likewise.
9865         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
9866         Rename from pp_c_type_specifier.  Adjust.
9867         (c_pretty_printer::c_pretty_printer): Do not assign to
9868         simple_type_specifier.
9870 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9872         * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
9873         member function.
9874         (c_pretty_printer::storage_class_specifier): Likewise.
9875         (c_pretty_printer::initializer): Likewise.
9876         (pp_declaration): Remove.
9877         (pp_declaration_specifiers): Likewise.
9878         (pp_abstract_declarator): Likewise.
9879         (pp_declarator): Likewise.
9880         (pp_type_id): Likewise.
9881         (pp_statement): Likewise.
9882         (pp_constant): Likewise.
9883         (pp_id_expression): Likewise.
9884         (pp_primary_expression): Likewise.
9885         (pp_unary_expression): Likewise.
9886         (pp_multiplicative_expression): Likewise.
9887         (pp_conditional_expression): Likewise.
9888         (pp_assignment_expression): Likewise.
9889         (pp_expression): Likewise.
9890         (pp_c_type_id): Likewise.
9891         (pp_c_storage_class_specifier): Likewise.
9892         * c-pretty-print.c (pp_c_type_cast): Tidy.
9893         (pp_c_pointer): Likewise.
9894         (pp_c_type_specifier): Likewise.
9895         (pp_c_parameter_type_list): Likewise.
9896         (pp_c_function_definition): Likewise.
9897         (pp_c_init_declarator): Likewise.
9898         (pp_c_initializer_list): Likewise.
9899         (pp_c_constructor_elts): Likewise.
9900         (c_pretty_printer::direct_abstract_declarator): Likewise.
9901         (c_pretty_printer::declaration_specifiers): Likewise.
9902         (c_pretty_printer::primary_expression): Likewise.
9903         (c_pretty_printer::postfix_expression): Likewise.
9904         (c_pretty_printer::type_id): Rename from pp_c_type_id.
9905         (c_pretty_printer::storage_class_specifier): Rename from
9906         pp_c_storage_class_specifier.
9907         (c_pretty_printer::initializer): Rename from pp_c_initializer.
9908         (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
9909         storage_class_specifier, initializer, offset_list, flags.
9911 2013-08-30  Marek Polacek  <polacek@redhat.com>
9913         * c-ubsan.c: New file.
9914         * c-ubsan.h: New file.
9916 2013-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9918         * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
9919         member function.
9920         (c_pretty_printer::declaration_specifiers): Likewise.
9921         (c_pretty_printer::declarator): Likewise.
9922         (c_pretty_printer::abstract_declarator): Likewise.
9923         (c_pretty_printer::direct_abstract_declarator): Likewise.
9924         (c_pretty_printer::direct_declarator): Likewise.
9925         (c_pretty_printer::function_specifier): Likewise.
9926         (pp_declaration): Adjust.
9927         (pp_declaration_specifiers): Likewise.
9928         (pp_abstract_declarator): Likewise.
9929         (pp_direct_declarator): Likewise.
9930         (pp_function_specifier): Likewise.
9931         (pp_direct_abstract_declarator): Remove as unused.
9932         (pp_c_declaration): Remove.
9933         (pp_c_declaration_specifiers): Likewise.
9934         (pp_c_declarator): Likewise.
9935         (pp_c_direct_declarator): Likewise.
9936         (pp_c_function_specifier): Likewise.
9937         (pp_c_direct_abstract_declarator): Likewise.
9938         * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
9939         from pp_c_abstract_declarator.  Adjust.
9940         (c_pretty_printer::direct_abstract_declarator): Rename from
9941         pp_c_direct_abstract_declarator.  Adjust.
9942         (c_pretty_printer::function_specifier): Rename from
9943         pp_c_function_specifier.  Adjust.
9944         (c_pretty_printer::declaration_specifiers): Rename from
9945         pp_c_declaration_specifiers.  Adjust.
9946         (c_pretty_printer::direct_declarator): Rename from
9947         pp_c_direct_declarator.  Adjust.
9948         (c_pretty_printer::declarator): Rename from pp_c_declarator.  Adjust.
9949         (c_pretty_printer::declaration): Rename from pp_c_declaration.  Adjust.
9950         (c_pretty_printer::c_pretty_printer): Do not assign to
9951         declaration, declaration_specifiers, declarator,
9952         direct_declarator, direct_abstract_declarator, function_specifier.
9954 2013-08-26  Gabriel Dos Reis  <gdre@integrable-solutions.net>
9956         * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
9957         virtual member function.
9958         (c_pretty_printer::multiplicative_expression): Likewise.
9959         (c_pretty_printer::conditional_expression): Likewise.
9960         (c_pretty_printer::assignment_expression): Likewise.
9961         (c_pretty_printer::expression): Likewise.
9962         (pp_unary_expression): Adjust.
9963         (pp_multiplicative_expression): Likewise.
9964         (pp_assignment_expression): Likewise.
9965         (pp_conditional_expression): Likewise.
9966         (pp_expression): Likewise.
9967         * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
9968         from pp_c_unary_expression.  Adjust.
9969         (c_pretty_printer::multiplicative_expression): Rename from
9970         pp_c_multiplicative_expression.  Adjust.
9971         (c_pretty_printer::conditional_expression): Rename from
9972         pp_c_conditional_expression.  Adjust.
9973         (c_pretty_printer::assignment_expression): Rename from
9974         pp_c_assignment_expression.  Adjust.
9975         (c_pretty_printer::expression): Rename from pp_c_expression.  Adjust.
9976         (c_pretty_printer::c_pretty_printer): Do not assign to
9977         unary_expression, multiplicative_expression,
9978         conditional_expression, expression.
9980 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9982         * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
9983         virtual member function.
9984         (pp_postfix_expression): Adjust.
9985         (pp_c_postfix_expression): Remove.
9986         * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
9987         from pp_c_postfix_expression.  Adjust.
9988         (c_pretty_printer::c_pretty_printer): Do not assign to
9989         postfix_expression.
9991 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9993         * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
9994         virtua member function.
9995         (pp_primary_expression): Adjust.
9996         (pp_c_primary_expression): Remove.
9997         * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
9998         from pp_c_primary_expression.  Adjust.
9999         (pp_c_initializer_list): Use pp_primary_expression.
10000         (c_pretty_printer::c_pretty_printer): Do not assign to
10001         primary_expression.
10003 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10005         * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
10006         * c-pretty-print.c (M_): Remove.
10007         (c_pretty_printer::translate_string): Define.
10008         (pp_c_type_specifier): Use it.
10009         (pp_c_primary_expression): Likewise.
10010         (pp_c_expression): Likewise.
10012 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10014         * c-pretty-print.h (c_pretty_printer::id_expression): Now a
10015         virtual function.
10016         (pp_c_id_expression): Remove.
10017         (pp_id_expression): Adjust.
10018         * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
10019         pp_c_id_expression.  Adjust.
10020         (pp_c_postfix_expression): Use pp_id_expression.
10021         (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
10023 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10025         * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
10026         member function.
10027         (pp_constant): Adjust.
10028         (pp_c_constant): Remove.
10029         * c-pretty-print.c (c_pretty_printer::constant): Rename from
10030         pp_c_constant.  Adjust.
10031         (pp_c_constant)
10032         (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
10033         (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
10035 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10037         * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
10038         (c_pretty_printer::c_pretty_printer): Declare.
10039         * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
10040         c_pretty_printer_init.  Adjust.
10041         (print_c_tree): Do not call c_pretty_printer_init.
10042         * c-ada-spec.c (dump_ads): Remove call to pp_construct.
10044 2013-08-09  Arnaud Charlet  <charlet@adacore.com>
10046         * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
10048 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
10050         PR c++/58080
10051         * c-common.c (pointer_int_sum): Add bool parameter.
10052         * c-common.h (pointer_int_sum): Adjust declaration.
10054 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10056         * c-pretty-print.c (print_c_tree): Simplify.  Use non-static local
10057         c_pretty_printer variable.
10059 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10061         * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
10062         (pp_base): Remove.
10063         (pp_c_base): Likewise.  Adjust users.
10064         * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
10065         (pp_c_whitespace): Do not call pp_base.
10066         (pp_c_left_paren): Likewise.
10067         (pp_c_right_paren): Likewise.
10068         (pp_c_left_brace): Likewise.
10069         (pp_c_right_brace): Likewise.
10070         (pp_c_left_bracket): Likewise.
10071         (pp_c_right_bracket): Likewise.
10072         (pp_c_dot): Likewise.
10073         (pp_c_ampersand): Likewise.
10074         (pp_c_star): Likewise.
10075         (pp_c_arrow): Likewise.
10076         (pp_c_semicolon): Likewise.
10077         (pp_c_complement): Likewise.
10078         (pp_c_exclamation): Likewise.
10079         (pp_c_direct_declarator): Likewise.
10080         (pp_c_ws_string): Likewise.
10081         (pp_c_identifier): Likewise.
10082         (pp_c_statement): Likewise.
10083         (print_c_tree): Likewise.
10085 2013-08-04  Ed Smith-Rowland  <3dw4rd@verizon.net>
10087         PR c++/58072
10088         * c-common.c (c_parse_error): Catch user-defined literal tokens and
10089         provide useful error strings.
10091 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10093         * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
10094         printer functions instead of pp_string or operators and punctuators.
10095         (dump_generic_ada_node): Likewise.
10096         * c-pretty-print.c (pp_c_type_specifier): Likewise.
10097         (pp_c_relational_expression): Likewise.
10098         (pp_c_logical_or_expression): Likewise.
10100 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10102         * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
10103         functions instead of pp_character.
10104         (pp_ada_tree_identifier): Likewise.
10105         (dump_ada_double_name): Likewise.
10106         (dump_ada_function_declaration): Likewise.
10107         (dump_ada_array_domains): Likewise.
10108         (dump_template_types): Likewise.
10109         (dump_generic_ada_node): Likewise.
10110         (print_ada_declaration): Likewise.
10111         (print_ada_struct_decl): Likewise.
10112         * c-pretty-print.c (pp_c_integer_constant): Likewise.
10114 2013-07-23  Tom Tromey  <tromey@redhat.com>
10116         * c-common.h (enum rid) <RID_GENERIC>: New constant.
10117         * c-common.c (c_common_reswords): Add _Generic.
10119 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
10121         * c-common.c: Fix typos.
10122         * c-common.h: Likewise.
10124 2013-07-13  Lubos Lunak  <l.lunak@suse.cz>
10126         PR c++/55203
10127         * c-common.c (c_common_attribute_table): Add warn_unused.
10128         (handle_warn_unused_attribute): New.
10130 2013-07-10  Jakub Jelinek  <jakub@redhat.com>
10132         * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
10133         for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
10135 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
10137         PR c++/57869
10138         * c.opt: Add Wconditionally-supported.
10140 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
10142         * array-notation-common.c (length_mismatch_in_expr_p): Delete
10143         unused variables l_length and l_node.
10145 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
10147         PR c/57821
10148         * c-common.c (complete_array_type): Delay folding first index
10149         like other indices.  When folding, check for index overflow.
10151 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
10153         PR c++/57509
10154         * c-common.h (c_build_vec_perm_expr): New complain argument.
10155         * c-common.c (c_build_vec_perm_expr): Likewise.
10156         Use save_expr also in C++.
10158 2013-06-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10160         * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
10161         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
10162         * c-opts.c (c_common_post_options): Likewise.
10164 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
10166         * array-notation-common.c (length_mismatch_in_expr): Changed the
10167         parameter type's from a dynamic array to a vec_tree.  Also removed
10168         the size parameters.
10169         * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
10170         the change above.
10172 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
10174         * c-common.h (struct cilkplus_an_parts): New structure.
10175         (struct cilkplus_an_loop_parts): Likewise.
10176         (cilkplus_extract_an_triplets): New prototype.
10177         (fix_sec_implicit_args): Likewise.
10178         * array-notation-common.c (cilkplus_extract_an_triplets): New function.
10179         (fix_sec_implicit_args): Likewise.
10181 2013-06-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
10183         * array-notation-common.c (find_inv_trees): Removed an unwanted
10184         typecasting.
10185         * c-common.h (struct inv_list::additional_tcodes): Changed type from
10186         enum rid to enum tree_code.
10188 2013-06-11  Jan Hubicka  <jh@suse.cz>
10190         * c-common.c (handle_alias_ifunc_attribute): Do not set
10191         DECL_EXTERNAL for weakref variables.
10192         * c-pragma.c (handle_pragma_weak): Make sure aliases
10193         are not declared as external.
10195 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
10197         * array-notation-common.c (length_mismatch_in_expr_p): Moved this
10198         function from c/c-array-notation.c.
10199         (is_cilkplus_reduce_builtin): Likewise.
10200         (find_rank): Likewise.
10201         (extract_array_notation_exprs): Likewise.
10202         (replace_array_notations): Likewise.
10203         (find_inv_trees): Likewise.
10204         (replace_inv_trees): Likewise.
10205         (contains_array_notation_expr): Likewise.
10206         (find_correct_array_notation_type): Likewise.
10207         * c-common.h (struct inv_list): Moved this struct from the file
10208         c/c-array-notation.c and added a new field called additional tcodes.
10209         (length_mismatch_in_expr_p): New prototype.
10210         (is_cilkplus_reduce_builtin): Likewise.
10211         (find_rank): Likewise.
10212         (extract_array_notation_exprs): Likewise.
10213         (replace_array_notation): Likewise.
10214         (find_inv_trees): Likewise.
10215         (replace_inv_trees): Likewise.
10216         (find_correct_array_notation_type): Likewise.
10218 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
10220         * c-common.c (c_define_builtins): When cilkplus is enabled, the
10221         function array_notation_init_builtins is called.
10222         (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
10223         * c-common.def (ARRAY_NOTATION_REF): New tree.
10224         * c-common.h (build_array_notation_expr): New function declaration.
10225         (build_array_notation_ref): Likewise.
10226         (extract_sec_implicit_index_arg): New extern declaration.
10227         (is_sec_implicit_index_fn): Likewise.
10228         (ARRAY_NOTATION_CHECK): New define.
10229         (ARRAY_NOTATION_ARRAY): Likewise.
10230         (ARRAY_NOTATION_START): Likewise.
10231         (ARRAY_NOTATION_LENGTH): Likewise.
10232         (ARRAY_NOTATION_STRIDE): Likewise.
10233         * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
10234         ARRAY_NOTATION_REF.
10235         (pp_c_expression): Likewise.
10236         * c.opt (flag_enable_cilkplus): New flag.
10237         * array-notation-common.c: New file.
10239 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
10241         PR c++/57274
10242         * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
10244 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
10246         * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
10247         vectors.
10249 2013-05-07  Han Shen  <shenhan@google.com>
10251         * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
10253 2013-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10255         * c-common.c (check_user_alignment): Emit error for negative values.
10257 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
10259         * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
10261 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
10263         * c-cppbuiltin.c (c_cpp_builtins): Do not define
10264         __GXX_EXPERIMENTAL_CXX1Y__.
10266 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
10267             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10269         * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
10270         * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
10271         to simply use OPT_Wpointer_arith.
10272         (c_sizeof_or_alignof_type): Likewise.
10274 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
10276         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
10278 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
10280         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
10281         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
10282         specifiers.
10284 2013-04-07  Steven Bosscher  <steven@gcc.gnu.org>
10286         * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
10288 2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
10290         * c-common.c (pointer_int_sum): Remove dead code.
10292 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
10294         PR middle-end/56524
10295         * c-common.c (handle_optimize_attribute): Don't call
10296         save_optabs_if_changed.
10298 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10300         PR middle-end/56461
10301         * c-pch.c (pch_init): Free target_validity at the end.
10303 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
10305         * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
10307 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
10308             Jakub Jelinek  <jakub@redhat.com>
10310         PR sanitizer/56454
10311         * c-common.c (handle_no_sanitize_address_attribute): New function.
10312         (c_common_attribute_table): Add no_sanitize_address attribute.
10313         (handle_no_address_safety_analysis_attribute): Add
10314         no_sanitize_address attribute, not no_address_safety_analysis
10315         attribute.
10317 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
10319         PR target/52555
10320         * c-common.c (handle_optimize_attribute): Call
10321         save_optabs_if_changed.
10323 2013-02-18  Jakub Jelinek  <jakub@redhat.com>
10324             Steven Bosscher  <steven@gcc.gnu.org>
10326         PR pch/54117
10327         * c-opts.c (c_common_post_options): If debug info is enabled
10328         and non-dwarf*, refuse to load PCH files and when writing PCH
10329         file warn.
10331 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
10333         PR middle-end/56167
10334         * c-common.c (handle_error_attribute): Fix condition.
10336 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
10338         PR c++/55742
10339         * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
10341 2013-01-18  Jason Merrill  <jason@redhat.com>
10343         PR target/54908
10344         * c.opt (-fextern-tls-init): New.
10345         * c-opts.c (c_common_post_options): Handle it.
10347 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
10349         PR c/48418
10350         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
10351         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
10352         and is either negative or bigger or equal to type precision
10353         of the first operand.
10355 2012-12-03  Marek Polacek  <polacek@redhat.com>
10357         PR c/55570
10358         * c-common.c (check_user_alignment): Swap order of tests,
10359         check TREE_CODE first.
10361 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
10363         PR c++/52654
10364         * c-common.h (overflow_type): New enum.
10365         (build_userdef_literal): Add overflow_type argument.
10366         (tree_userdef_literal): Add overflow_type.
10367         (USERDEF_LITERAL_OVERFLOW): New access macro.
10368         * c-common.c (build_userdef_literal): Add overflow_type
10369         argument.
10370         * c-lex.c (c_lex_with_flags): Add overflow_type to
10371         build_userdef_literal calls.
10372         (interpret_integer, interpret_float): Add overflow_type argument.
10374 2012-11-28  Richard Biener  <rguenther@suse.de>
10376         PR c/35634
10377         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
10378         here and use a type with proper overflow behavior for types that would
10379         need to be promoted for the arithmetic.
10381 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
10383         PR sanitizer/55435
10384         * c-common.c (handle_no_address_safety_analysis_attribute): New
10385         function.
10386         (c_common_attribute_table): Add no_address_safety_analysis.
10388 2012-11-16  Simon Baldwin  <simonb@google.com>
10390         * c.opt: Add f[no-]canonical-system-headers.
10391         * c-opts.c (c_common_handle_option): Handle
10392         OPT_fcanonical_system_headers.
10394 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
10396         PR c++/54413
10397         * c-opts.c (c_common_handle_option): Set new flags.
10398         * c.opt: Describe new flags.
10400 2012-11-09  Jason Merrill  <jason@redhat.com>
10402         * c.opt (Wabi-tag): New.
10404 2012-11-09  Andi Kleen  <ak@linux.intel.com>
10406         PR 55139
10407         * c-common.c (get_atomic_generic_size): Mask with
10408         MEMMODEL_MASK
10410 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10412         PR c/53063
10413         * c.opt (Wformat): Make it Alias Wformat=1.
10414         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
10415         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
10416         LangEnabledBy.
10417         (Wformat=): RejectNegative. Use LangEnabledBy.
10418         (Wnonnull): Use LangEnabledBy.
10419         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
10420         * c-format.c (set_Wformat): Delete.
10421         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
10422         (maybe_read_dollar_number): Likewise.
10423         (avoid_dollar_number): Likewise.
10424         (finish_dollar_format_checking): Likewise.
10425         (check_format_info): Likewise.
10426         (check_format_info_main): Likewise.
10427         (check_format_types): Likewise.
10428         (format_type_warning): Likewise.
10429         * c-common.c (int): Likewise.
10430         (check_function_sentinel): Likewise.
10431         * c-common.h (warn_format,set_Wformat): Do not declare here.
10433 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10435         PR c/53063
10436         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
10437         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
10438         Use LangEnabledBy.
10439         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
10440         common.opt.
10441         (Wvariadic-macros): Init(1).
10442         * c-opts.c (c_common_handle_option): Do not handle them
10443         explicitly.
10444         (c_common_post_options): Likewise.
10445         (sanitize_cpp_opts): warn_unused_macros is now
10446         cpp_warn_unused_macros.
10447         (push_command_line_include): Likewise.
10448         * c-common.c (warn_unknown_pragmas): Do not define.
10449         * c-common.h (warn_unknown_pragmas): Do not declare.
10451 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10453         PR c/51294
10454         * c-common.c (conversion_warning): Handle conditional expressions.
10456 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
10458         PR c++/54930
10459         * c.opt (Wreturn_local_addr): Define new option.
10461 2012-10-25  Jason Merrill  <jason@redhat.com>
10463         * c.opt (Wvirtual-move-assign): New.
10465         * c.opt (Winherited-variadic-ctor): New.
10467 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
10469         PR c++/54427
10470         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
10472 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
10474         * c-common.h (pch_cpp_save_state): Declare.
10475         * c-target.def (c_preinclude): New hook.
10476         * c-opts.c (done_preinclude): New.
10477         (push_command_line_include): Handle default preincluded header.
10478         (cb_file_change): Call pch_cpp_save_state when calling
10479         push_command_line_include.
10480         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
10481         (pch_cpp_save_state): New.
10482         (pch_init): Call pch_cpp_save_state conditionally, instead of
10483         calling cpp_save_state.
10485 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10487         PR c/53063
10488         PR c/40989
10489         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
10490         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
10491         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
10492         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
10493         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
10494         * c-opts.c (c_common_handle_option): Remove explicit handling from
10495         here.
10496         (c_common_post_options): Likewise.
10498 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
10500         * c-ada-spec.c (LOCATION_COL): Delete.
10501         (compare_location): New function.
10502         (compare_node): Use it.
10503         (compare_comment): Likewise.
10505 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10507         PR c/53063
10508         PR c/40989
10509         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
10510         * c-opts.c (c_common_handle_option): Do not set them here. Add
10511         comment.
10512         (c_common_post_options): Likewise.
10514 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
10516         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
10517         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
10518         Remove POINTER_TYPE handling, add large unsigned handling and use
10519         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
10521 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
10523         PR c/54381
10524         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
10525         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
10526         locs and array of 3 trees instead of just single loc and single
10527         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
10528         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
10529         For *cmp* builtins that take two sources strings report warnings
10530         about first and second source, not about destination and source.
10532 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
10534         PR c++/53055
10535         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
10537 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
10539         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
10540         declaring something coming from another file.
10542 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
10544         PR ada/54845
10545         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
10547 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
10549         PR c++/54194
10550         * c-common.c (warn_about_parentheses): Add location_t parameter;
10551         use EXPR_LOC_OR_LOC.
10552         * c-common.h: Update declaration.
10554 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
10556         PR c++/54427
10557         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
10558         more operations. Make error messages optional.
10559         * c-common.h (enum stv_conv): Moved from c-typeck.c.
10560         (scalar_to_vector): Declare.
10562 2012-10-08  Jason Merrill  <jason@redhat.com>
10564         * c-common.c (c_common_reswords): Add thread_local.
10566 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
10568         PR c++/53528 C++11 attribute support
10569         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
10570         new functions.
10571         * c-common.c (check_cxx_fundamental_alignment_constraints): New
10572         static function.
10573         (handle_aligned_attribute): In choose strictest alignment
10574         among many.  Use new check_cxx_fundamental_alignment_constraints.
10575         (handle_transparent_union_attribute): In c++11 attribute syntax,
10576         don't look through typedefs.
10578 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
10580         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
10581         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
10582         out of dumpfile.h.
10584 2012-09-25  Dehao Chen  <dehao@google.com>
10586         PR middle-end/54645
10587         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
10588         map when read in the pch.
10590 2012-09-18  Arnaud Charlet  <charlet@adacore.com>
10592         * c-ada-spec.c: Style fixes.
10594 2012-09-18  Thomas Quinot  <quinot@adacore.com>
10596         * c.opt (-fada-spec-parent): Define new command line switch.
10597         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
10598         is specified, generate binding spec as a child of the specified unit.
10600 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
10601             Manuel López-Ibáñez  <manu@gcc.gnu.org>
10603         PR c++/53210
10604         * c.opt ([Winit-self]): Enabled by -Wall in C++.
10606 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
10608         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
10609         for pointers, and add missing Convention C pragma.
10610         (print_ada_struct_decl): Add missing aliased keyword.
10611         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
10613 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
10615         * c-common.c (sizeof_pointer_memaccess_warning): New function.
10616         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
10617         * c-opts.c (c_common_handle_option): Enable it for -Wall.
10618         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
10619         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
10621 2012-08-10  Richard Guenther  <rguenther@suse.de>
10623         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
10625 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
10627         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
10628         instead of separate pp_newline and pp_flush.
10629         (print_c_tree): Likewise.
10631 2012-07-26  Richard Henderson  <rth@redhat.com>
10633         * c-common.c (handle_hot_attribute): Allow labels.
10634         (handle_cold_attribute): Likewise.
10636 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
10638         PR c++/28656
10639         * c-common.c (check_function_nonnull): Handle multiple nonnull
10640         attributes properly.
10642 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
10644         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
10645         * c-ada-spec.c: Likewise.
10646         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
10648 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
10650         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
10651         Remove code conditional on it.
10653 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
10655         * c-gimplify.c: Do not include basic-block.h.
10656         * c-common.c: Do not include linfuncs.h.
10658 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
10660         * c-common.h: Include tree.h.
10662 2012-07-02  Jason Merrill  <jason@redhat.com>
10664         PR c++/53524
10665         * c-common.c (get_priority): Call default_conversion.
10667 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
10669         * c-pch.c (c_common_write_pch): Remove unused variables.
10671 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
10673         * cppspec.c: Moved from gcc/ to here.
10675 2012-06-27  Kai Tietz  <ktietz@redhat.com>
10677         PR preprocessor/37215
10678         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
10680 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
10682         * c-common.h (c_common_print_pch_checksum): Remove.
10683         * c-pch.c: Do not include output.h.
10684         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
10685         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
10686         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
10687         (struct c_pch_header): Remove.
10688         (get_ident): Update gpch version.
10689         (pch_init): Do not print executable_checksum to asm_out_file.
10690         Do not fail if there is no asm_out_file to read back from.  Set
10691         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
10692         (c_common_write_pch): Verify that nothing was written to asm_out_file
10693         since pch_init was called.  Do not write a c_pch_header, and do not
10694         copy from asm_out_file to the PCH.
10695         (c_common_read_pch): Do not read a c_pch_header, and do not restore
10696         the content of asm_out_file from the PCH.
10697         (c_common_print_pch_checksum): Remove.
10698         * c-opts.c (c_common_init): Print out executable_checksum directly.
10700 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
10702         * c-target.def (objc_declare_unresolved_class_reference,
10703         objc_declare_class_definition): Add new hooks.
10705 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
10707         * c-lex.c: Do not include output.h.
10708         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
10709         Remove uses of ASM_OUTPUT_IDENT.
10711 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
10713         PR c++/51033
10714         * c-common.h (c_build_vec_perm_expr): Move decl here.
10715         * c-common.c (c_build_vec_perm_expr): Move definition
10716         here.
10718 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
10720         * c.opt (fconserve-space): Turn into a no-op.
10722 2012-06-04  Sterling Augustine  <saugustine@google.com>
10724         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
10725         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
10726         both the start and end of the function.
10728 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
10730         * c-common.c: Do not include output.h.
10731         * c-pragma.c: Likewise.
10733 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
10735         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
10736         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
10737         (lang_decl_name): Handle namespace decls.
10739 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
10741         * c-ada-spec.c: Do not include output.h.
10742         * c-semantics.c: Likewise.
10744 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
10746         * c-common.c: Fix typo.
10748 2012-05-29  Michael Matz  <matz@suse.de>
10750         * c-common.h (c_expand_decl): Remove prototype.
10752 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10754         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
10755         * c-opts.c (c_common_handle_option): Remove code handling
10756         warn_missing_braces.
10758 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
10760         PR c++/25137
10761         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
10762         -Wmissing_braces.
10764 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
10766         PR c++/53322
10767         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
10769 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10771         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
10772         * c-opts.c (c_common_handle_option): Do not handle explicitly
10773         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
10775 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
10777         PR preprocessor/7263
10778         * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
10779         to cpp_classify_number.  For diagnostics, use the precise location
10780         instead of the global input_location.
10782 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
10784         PR c++/11856
10785         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
10787 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
10789         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
10791 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10793         PR 53063
10794         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
10795         Wreorder): Use LangEnabledBy.
10796         * c-opts.c (c_common_handle_option): Do not enable them
10797         explicitly. Call lang-specific generated functions.
10798         (c_common_post_options): Do not set them here.
10800 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10802         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
10803         Wmissing-field-initializers,Wmissing-parameter-type,
10804         Wold-style-declaration,Woverride-init): Use EnabledBy.
10805         * c-opts.c (c_common_post_options): Do not set here explicitly.
10807 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10809         PR 53063
10810         * c-opts.c (c_common_handle_option): Use handle_generated_option
10811         to enable sub-options.
10813 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
10815         PR c++/53158
10816         * c-common.c (warnings_for_convert_and_check): Use warning_at.
10818 2012-05-10  Richard Guenther  <rguenther@suse.de>
10820         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
10821         adjust commentary about TYPE_IS_SIZETYPE types.
10823 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10825         PR c++/53261
10826         * c-common.c (warn_logical_operator): Check that argument of
10827         integer_zerop is not NULL.
10829 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10831         PR c/43772
10832         * c-common.c (warn_logical_operator): Do not warn if either side
10833         is already true or false.
10835 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10837         PR c/51712
10838         * c-common.c (expr_original_type): New.
10839         (shorten_compare): Do not warn for enumeration types.
10841 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10843         * c.opt (fpermissive): Add Var(flag_permissive).
10845 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
10847         PR c++/51033
10848         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
10849         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
10851 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
10853         Add -Wvarargs option
10854         * c.opt (Wvarargs): Define new option.
10856 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10858         * c-common.c (check_function_arguments): Replace
10859         Wmissing-format-attribute with Wsuggest-attribute=format.
10861 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10863         * c.opt (Wsuggest-attribute=format): New. Alias of
10864         Wmissing-format-attribute.
10865         * c-format.c (decode_format_type): Replace
10866         Wmissing-format-attribute with Wsuggest-attribute=format.
10867         (check_function_format): Likewise.
10869 2012-04-27  Ollie Wild  <aaw@google.com>
10871         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
10872         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
10873         * c.opt: Add Wliteral-suffix.
10875 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10877         PR c/44774
10878         * c.opt (Wpedantic): New.
10879         (pedantic): Alias Wpedantic.
10880         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
10881         (c_common_post_options): Likewise.
10882         (sanitize_cpp_opts): Likewise.
10883         * c-lex.c (interpret_float): Likewise.
10884         * c-format.c (check_format_types): Likewise.
10885         * c-common.c (pointer_int_sum): Likewise.
10886         (c_sizeof_or_alignof_type): Likewise.
10887         (c_add_case_label): Likewise.
10888         (c_do_switch_warnings): Likewise.
10889         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
10891 2012-04-15  Jason Merrill  <jason@redhat.com>
10893         PR c++/52818
10894         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
10895         (C_STD_NAME): Distinguish between C++98 and C++11.
10897 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
10899         PR target/52624
10900         * c-common.h (uint16_type_node): Rename into...
10901         (c_uint16_type_node): ...this.
10902         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
10903         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
10905 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10907         * c-common.c (warn_if_unused_value): Move definition to here.
10908         * c-common.h (warn_if_unused_value): Move declaration to here.
10910 2012-03-23  William Bader  <williambader@hotmail.com>
10912         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
10914 2012-03-20  Jason Merrill  <jason@redhat.com>
10916         * c-common.h (enum cxx_dialect): Add cxx1y.
10917         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
10918         test.
10919         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
10920         * c-opts.c (c_common_post_options): Likewise.
10921         (set_std_cxx1y): New.
10922         (c_common_handle_option): Call it.
10923         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
10925 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
10927         PR c++/14710
10928         * c.opt ([Wuseless-cast]): Add.
10930 2012-03-16  Richard Guenther  <rguenther@suse.de>
10932         * c-pretty-print.c (pp_c_initializer_list): Adjust.
10934 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10936         PR c++/44783
10937         * c.opt (ftemplate-backtrace-limit) Add.
10939 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10941         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
10942         handling.
10943         * c-pragma.c (handle_pragma_extern_prefix): Remove.
10944         (init_pragma): Don't register extern_prefix.
10946 2012-03-12  Richard Guenther  <rguenther@suse.de>
10948         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
10949         (builtin_type_for_size): Likewise.
10951 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
10953         PR c++/52215
10954         * c-common.c (sync_resolve_params): Don't decide whether to convert
10955         or not based on TYPE_SIZE comparison, convert whenever arg_type
10956         is unsigned INTEGER_TYPE.
10958 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
10960         PR c/52118
10961         * c.opt ([Wunused-local-typedefs]): Fix description.
10963 2012-01-24  Mike Stump  <mikestump@comcast.net>
10965         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
10966         exactly.
10968 2012-01-18  Richard Guenther  <rguenther@suse.de>
10970         * c-opts.c (c_common_post_options): Reset LTO flags if
10971         we are about to generate a PCH.
10973 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
10975         PR c++/51777
10976         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
10977         use pp_unsigned_wide_integer.
10979 2012-01-10  Richard Guenther  <rguenther@suse.de>
10981         PR middle-end/51806
10982         * c-opts.c (c_common_handle_option): Move -Werror handling
10983         to language independent code.
10985 2012-01-05  Richard Guenther  <rguenther@suse.de>
10987         PR middle-end/51764
10988         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
10989         from common.opt.
10991 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
10993         PR c++/51316
10994         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
10995         of array types with an unknown bound.
10997 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
10999         * c-common.c (flag_isoc99): Update comment to refer to C11.
11000         (flag_isoc1x): Change to flag_isoc11.
11001         * c-common.h (flag_isoc99): Update comment to refer to C11.
11002         (flag_isoc1x): Change to flag_isoc11.
11003         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
11004         C11.
11005         * c-opts.c (set_std_c1x): Change to set_std_c11.
11006         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
11007         Call set_std_c11.
11008         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
11009         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
11010         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
11011         standard.
11012         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
11013         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
11014         (std=gnu1x): Make alias of std=gnu11.
11016 2011-12-19  Jason Merrill  <jason@redhat.com>
11018         PR c++/51228
11019         * c-common.c (handle_transparent_union_attribute): Check the first
11020         field if the type is complete.
11022 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
11024         PR libstdc++/51365
11025         * c-common.c (RID_IS_FINAL): Add.
11026         * c-common.h (RID_IS_FINAL): Add.
11028 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
11030         * c.opt (fgnu-runtime): Provide full description.
11031         (fnext-runtime): Likewise.
11032         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
11034 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
11036         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
11037         predefines in one place.  Add LOCK_FREE predefines.
11038         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
11039         new func.
11041 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
11043         PR c/51256
11044         * c-common.c (get_atomic_generic_size): Check for various error
11045         conditions
11046         (resolve_overloaded_atomic_exchange,
11047         resolve_overloaded_atomic_compare_exchange,
11048         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
11049         error_mark_node for error conditions.
11051 2011-11-08  Richard Guenther  <rguenther@suse.de>
11053         PR middle-end/51010
11054         * c-pretty-print.c (pp_c_expression): Handle SSA_NAMEs.
11056 2011-11-07  Richard Henderson  <rth@redhat.com>
11057             Aldy Hernandez  <aldyh@redhat.com>
11058             Torvald Riegel  <triegel@redhat.com>
11060         Merged from transactional-memory.
11062         * c-common.c (handle_tm_wrap_attribute,
11063         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
11064         (struct c_common_reswords): Added __transaction* keywords.
11065         (struct c_common_attribute_table): Added transaction* and tm_regparm
11066         attributes.
11067         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
11068         masks.
11069         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
11070         find_tm_attribute): Declare.
11072 2011-11-07  Jason Merrill  <jason@redhat.com>
11074         PR c++/35688
11075         * c-common.c, c-common.h: Revert yesterday's changes.
11077 2011-11-06  Jason Merrill  <jason@redhat.com>
11079         PR c++/35688
11080         * c-common.c (decl_has_visibility_attr): Split out from...
11081         (c_determine_visibility): ...here.
11082         * c-common.h: Declare it.
11084 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
11086         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
11087         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
11088         type.
11089         (check_user_alignment): New.  Split out of
11090         handle_aligned_attribute.  Disallow integer constants with
11091         noninteger types.  Conditionally allow zero.
11092         (handle_aligned_attribute): Use check_user_alignment.
11093         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
11095 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
11096             Richard Henderson  <rth@redhat.com>
11098         Merged from cxx-mem-model.
11100         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
11101         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
11102         parameters that are the same type size.
11103         (get_atomic_generic_size): New.  Find size of generic
11104         atomic function parameters and do typechecking.
11105         (add_atomic_size_parameter): New.  Insert size into parameter list.
11106         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
11107         either __atomic_exchange_n or external library call.
11108         (resolve_overloaded_atomic_compare_exchange): Restructure
11109         __atomic_compare_exchange to either _n variant or external library call.
11110         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
11111         __atomic_load_n or an external library call.
11112         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
11113         __atomic_store_n or an external library call.
11114         (resolve_overloaded_builtin): Handle new __atomic builtins.
11116 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
11118         PR c++/50608
11119         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
11120         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
11121         <INDIRECT_REF>: Return the argument.
11122         <ARRAY_REF>: Remove special code for negative offset.
11123         Call fold_build_pointer_plus instead of size_binop.
11124         (fold_offsetof): Remove STOP_REF argument and adjust.
11125         * c-common.h (fold_offsetof_1): Declare.
11126         (fold_offsetof): Remove STOP_REF argument.
11128 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
11130         PR c++/50810
11131         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
11132         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
11133         Wnarrowing for C++0x and C++98.
11134         * c.opt ([Wnarrowing]): Update.
11136 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
11138         PR c++/44277
11139         * c.opt: Add Wzero-as-null-pointer-constant.
11141 2011-10-31  Jason Merrill  <jason@redhat.com>
11143         * c.opt (-fdeduce-init-list): Off by default.
11145         PR c++/50920
11146         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
11147         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
11148         and -Wc++11-compat.
11149         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
11151 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
11153         PR c++/30066
11154         * c.opt (fvisibility-inlines-hidden): Description change.
11156 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
11158         Implement C++11 user-defined literals.
11159         * c-common.c (build_userdef_literal): New.
11160         * c-common.def: New tree code.
11161         * c-common.h (tree_userdef_literal): New tree struct and accessors.
11162         * c-lex.c (interpret_float): Add suffix parm.
11163         (c_lex_with_flags): Build literal tokens.
11165 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
11167         PR c++/50841
11168         Revert:
11169         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
11171         PR c++/50810
11172         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
11173         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
11174         Wnarrowing for C++0x and C++98.
11175         * c.opt ([Wnarrowing]): Update.
11177 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
11179         PR c++/50810
11180         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
11181         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
11182         Wnarrowing for C++0x and C++98.
11183         * c.opt ([Wnarrowing]): Update.
11185 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
11187         PR c++/45385
11188         * c-common.c (conversion_warning): Remove code looking for
11189         artificial operands.
11191 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
11193         PR bootstrap/50760
11194         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
11195         !NO_IMPLICIT_EXTERN_C.
11197 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
11199         * c-common.c (c_common_reswords): Add __bases,
11200         __direct_bases.
11201         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
11203 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
11205         PR c++/50757
11206         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
11208 2011-10-15  Tom Tromey  <tromey@redhat.com>
11209             Dodji Seketeli  <dodji@redhat.com>
11211         * c.opt (fdebug-cpp): New option.
11212         * c-opts.c (c_common_handle_option): Handle the option.
11213         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
11214         output stream in parameter. Factorized from ...
11215         (maybe_print_line): ... this. Dump location debug information when
11216         -fdebug-cpp is in effect.
11217         (print_line_1): New static function. Takes an output stream in
11218         parameter. Factorized from ...
11219         (print_line): ... here. Dump location information when -fdebug-cpp
11220         is in effect.
11221         (scan_translation_unit): Dump location information when
11222         -fdebug-cpp is in effect.
11224 2011-10-15  Tom Tromey  <tromey@redhat.com>
11225             Dodji Seketeli  <dodji@redhat.com>
11227         * c.opt (ftrack-macro-expansion): New option. Handle it with and
11228         without argument.
11229         * c-opts.c (c_common_handle_option)<case
11230         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
11231         cases. Handle -ftrack-macro-expansion with and without argument.
11233 2011-10-15  Tom Tromey  <tromey@redhat.com>
11234             Dodji Seketeli  <dodji@redhat.com>
11236         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
11237         (print_line, cb_define, do_line_change): Adjust to avoid touching
11238         the internals of struct line_map.  Use the public API instead.
11239         * c-pch.c (c_common_read_pch): Likewise.
11240         * c-lex.c (fe_file_change): Likewise.
11242 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
11244         PR c++/17212
11245         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
11247 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
11249         PR c++/33067
11250         * c-pretty-print.c (pp_c_floating_constant): Output
11251         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
11253 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
11255         * c-common.c (def_builtin_1): Delete old interface with two
11256         parallel arrays to hold standard builtin declarations, and replace
11257         it with a function based interface that can support creating
11258         builtins on the fly in the future.  Change all uses, and poison
11259         the old names.  Make sure 0 is not a legitimate builtin index.
11260         * c-omp.c (c_finish_omp_barrier): Ditto.
11261         (c_finish_omp_taskwait): Ditto.
11262         (c_finish_omp_flush): Ditto.
11264 2011-10-11  Tristan Gingold  <gingold@adacore.com>
11266         * c.opt: (fallow-parameterless-variadic-functions): New.
11268 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
11270         PR c++/33255 - Support -Wunused-local-typedefs warning
11271         * c-common.h (struct c_language_function::local_typedefs): New
11272         field.
11273         (record_locally_defined_typedef, maybe_record_typedef_use)
11274         (maybe_warn_unused_local_typedefs): Declare new functions.
11275         * c-common.c (record_locally_defined_typedef)
11276         (maybe_record_typedef_use)
11277         (maybe_warn_unused_local_typedefs): Define new functions.
11278         * c.opt: Declare new -Wunused-local-typedefs flag.
11280 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
11282         PR middle-end/50266
11283         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
11284         computations.
11286 2011-09-05  Richard Guenther  <rguenther@suse.de>
11288         * c-common.c (complete_array_type): Use ssize_int (-1) instead
11289         of integer_minus_one_node for empty array upper bounds.
11291 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
11293         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
11294         it's the first time it's being called on this main TU.
11296 2011-08-24  Richard Guenther  <rguenther@suse.de>
11298         PR c/49396
11299         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
11301 2011-08-22  Gabriel Charette  <gchare@google.com>
11303         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
11304         defined in cpp_init_builtins and c_cpp_builtins.
11306 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
11308         * c-common.c (c_common_reswords): Add __builtin_complex.
11309         * c-common.h (RID_BUILTIN_COMPLEX): New.
11311 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
11313         * c-common.c (c_common_reswords): Add _Noreturn.
11314         (keyword_is_function_specifier): Handle RID_NORETURN.
11315         * c-common.h (RID_NORETURN): New.
11317 2011-08-10  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
11319         * c-common.c (unsafe_conversion_p): New function. Check if it is
11320         unsafe to convert an expression to the type.
11321         (conversion_warning): Adjust, use unsafe_conversion_p.
11322         * c-common.h (unsafe_conversion_p): New function declaration.
11324 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
11326         * c-common.h (c_finish_omp_atomic): Adjust prototype.
11327         (c_finish_omp_taskyield): New prototype.
11328         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
11329         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
11330         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
11331         or RHS1 have side-effects, evaluate those too in the right spot,
11332         if it is a decl and LHS is also a decl, error out if they
11333         aren't the same.
11334         (c_finish_omp_taskyield): New function.
11335         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
11336         * c-pragma.c (omp_pragmas): Add taskyield.
11337         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
11338         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
11339         PRAGMA_OMP_CLAUSE_MERGEABLE.
11341 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
11343         * c-common.h (set_underlying_type): Remove parm name from
11344         declaration.
11346 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
11348         * c-pretty-print.h: Search c-common.h in c-family.
11350 2011-07-22  Jason Merrill  <jason@redhat.com>
11352         PR c++/49793
11353         * c.opt (Wnarrowing): New.
11355         PR c++/30112
11356         * c-common.h: Declare c_linkage_bindings.
11357         * c-pragma.c (handle_pragma_redefine_extname): Use it.
11359         PR c++/49813
11360         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
11361         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
11362         as flag_isoc99 for 'restrict'.
11363         (pp_c_specifier_qualifier_list): Likewise for _Complex.
11365 2011-07-21  Ian Lance Taylor  <iant@google.com>
11367         PR middle-end/49705
11368         * c-common.c (c_disable_warnings): New static function.
11369         (c_enable_warnings): New static function.
11370         (c_fully_fold_internal): Change local unused_p to bool.  Call
11371         c_disable_warnings and c_enable_warnings rather than change
11372         c_inhibit_evaluation_warnings.
11374 2011-07-20  Jason Merrill  <jason@redhat.com>
11376         PR c++/6709 (DR 743)
11377         PR c++/42603 (DR 950)
11378         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
11379         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
11380         (CPP_DECLTYPE): New.
11381         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
11383 2011-07-19  Richard Guenther  <rguenther@suse.de>
11385         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
11386         * c-omp.c (c_finish_omp_for): Likewise.
11388 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
11390         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
11391         body on the next line.
11393 2011-07-08  Jason Merrill  <jason@redhat.com>
11395         PR c++/45437
11396         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
11398         PR c++/49673
11399         * c-common.c (c_apply_type_quals_to_decl): Don't check
11400         TYPE_NEEDS_CONSTRUCTING.
11402 2011-07-06  Richard Guenther  <rguenther@suse.de>
11404         * c-common.c (c_common_nodes_and_builtins):
11405         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
11407 2011-07-05  Richard Guenther  <rguenther@suse.de>
11409         * c-common.c (c_common_nodes_and_builtins): Build all common
11410         tree nodes first.
11412 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
11414         * c-common.h (c_tree_chain_next): New static inline function.
11416         * c-common.c (check_builtin_function_arguments): Handle
11417         BUILT_IN_ASSUME_ALIGNED.
11419 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
11421         * c-common.c: Add sync_ or SYNC__ to builtin names.
11422         * c-omp.c: Add sync_ or SYNC__ to builtin names.
11424 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
11426         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
11427         handler.
11428         (gen_pragma_handler): New union.
11429         (internal_pragma_handler): New type.
11430         (c_register_pragma_with_data)
11431         (c_register_pragma_with_expansion_and_data): New functions.
11433         * c-pragma.c (registered_pragmas, c_register_pragma_1)
11434         (c_register_pragma, c_register_pragma_with_expansion)
11435         (c_invoke_pragma_handler): Changed to work with
11436         internal_pragma_handler.
11437         (c_register_pragma_with_data)
11438         (c_register_pragma_with_expansion_and_data): New functions.
11440 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
11442         * c-common.c: Include common/common-target.h.
11443         (handle_section_attribute): Use
11444         targetm_common.have_named_sections.
11445         * c-cppbuiltin.c: Include common/common-target.h.
11446         (c_cpp_builtins): Use targetm_common.except_unwind_info.
11448 2011-06-10  Richard Guenther  <rguenther@suse.de>
11450         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
11451         to print a IDENTIFIER_NODE.
11453 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11454             Joseph Myers  <joseph@codesourcery.com>
11456         * c.opt (fbuilding-libgcc): New option.
11457         * c-cppbuiltin.c (c_cpp_builtins): Define
11458         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
11460 2011-06-07  Jason Merrill  <jason@redhat.com>
11462         * c-common.c (max_tinst_depth): Lower default to 900.
11464         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
11466 2011-06-07  Richard Guenther  <rguenther@suse.de>
11468         * c-common.c (c_common_nodes_and_builtins): Do not set
11469         size_type_node or call set_sizetype.
11471 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
11473         PR debug/49130
11474         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
11475         type when using pointer comparison to compare types.
11477 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
11479         * c.opt: Add -Wdelete-non-virtual-dtor.
11480         * c-opts.c (c_common_handle_option): Include it in -Wall.
11482 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
11484         PR bootstrap/49190
11486         Revert:
11487         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
11489         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
11490         not tree_common.
11492 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
11494         PR c++/49165
11495         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
11496         C++ don't call c_common_truthvalue_conversion on void type arms.
11498 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
11500         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
11501         (stmt_list_stack): Define.
11502         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
11503         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
11505 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
11507         * c-common.c (warning_candidate_p): Check for BLOCKs.
11509 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
11511         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
11512         not tree_common.
11514 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
11516         * c-common.c (def_fn_type): Remove extra va_end.
11518 2011-05-23  Jason Merrill  <jason@redhat.com>
11520         PR c++/48106
11521         * c-common.c (c_common_get_narrower): New.
11522         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
11524 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
11526         * c-common.h (check_function_arguments): Tweak prototype of
11527         check_function_arguments.
11528         * c-common.c (check_function_arguments): Likewise.  Adjust
11529         calls to check_function_nonnull, check_function_format, and
11530         check_function_sentinel.
11531         (check_function_sentinel): Take a FUNCTION_TYPE rather than
11532         separate attributes and typelist arguments.  Use
11533         FOREACH_FUNCTION_ARGS to iterate over argument types.
11535 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
11537         * c-common.c (c_common_reswords): Reorder.
11538         * c-common.h (rid): Likewise.
11540 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
11542         * c-common.c (def_fn_type): Don't call build_function_type, call
11543         build_function_type_array or build_varargs_function_type_array
11544         instead.
11545         (c_common_nodes_and_builtins): Likewise.
11547 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
11549         * c-common.c (c_add_case_label): Omit the loc argument to
11550         build_case_label.
11551         * c-common.h (build_case_label): Remove.
11552         * c-semantics.c (build_case_label): Remove.
11554 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
11556         * c-objc.h (objc_start_method_definition): Update prototype.
11557         * stub-objc.c (objc_start_method_definition): Add extra parameter.
11559 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
11561         * c-common.c (check_main_parameter_types): Reindent.  Don't use
11562         TYPE_ARG_TYPES directly.
11563         (handle_nonnull_attribute): Likewise.
11564         (sync_resolve_params): Likewise.
11565         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
11566         to check_format_string.
11567         (handle_format_attribute): Likewise.
11568         (check_format_string): Take a function type to examine instead of
11569         a type list.  Use a function_arg_iterator to step through argument
11570         types.
11572 2011-05-04  Richard Guenther  <rguenther@suse.de>
11574         * c-common.c (fix_string_type): Use size_int for index type bounds.
11575         (start_fname_decls): Do not pass NULL to build_int_cst.
11576         (c_init_attributes): Likewise.
11577         * c-lex.c (c_lex_with_flags): Likewise.
11579 2011-04-27  Jason Merrill  <jason@redhat.com>
11581         * c-common.c (make_tree_vector_from_list): New.
11582         * c-common.h: Declare it.
11584 2011-04-26  Richard Guenther  <rguenther@suse.de>
11586         PR preprocessor/48248
11587         * c-ppoutput.c (maybe_print_line): Always optimize newlines
11588         for output size with -P.
11590 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
11592         * c-common.c (struct c_common_resword): Add __underlying_type.
11593         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
11595 2011-04-20  Jim Meyering  <meyering@redhat.com>
11597         * c-format.c (init_dollar_format_checking): Remove useless
11598         if-before-free.
11600 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
11602         * c-objc.h (objc_get_interface_ivars): Removed.
11603         (objc_detect_field_duplicates): New.
11604         * stub-objc.c: Likewise.
11606 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
11608         * stub-objc.c (objc_declare_protocols): Renamed to
11609         objc_declare_protocol.
11610         * c-objc.h: Likewise.
11612 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
11614         * stub-objc.c (objc_declare_class): Updated argument name.
11616 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
11618         * c-common.h (c_common_init_ts): Declare.
11619         * c-common.c (c_common_init_ts): Define.
11621 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
11623         * c-objc.h (objc_build_message_expr): Updated prototype.
11624         * stub-objc.c (objc_build_message_expr): Likewise.
11626 2011-04-12  Martin Jambor  <mjambor@suse.cz>
11628         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
11629         of cgraph_node.
11631 2011-04-11  Richard Guenther  <rguenther@suse.de>
11633         * c-common.c (complete_array_type): Build a range type of
11634         proper type.
11636 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
11638         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
11639         (handle_type_generic_attribute): Likewise.
11641 2011-04-07  Jason Merrill  <jason@redhat.com>
11643         PR c++/48450
11644         * c-common.c (c_common_truthvalue_conversion): Don't ignore
11645         conversion from C++0x scoped enum.
11647 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
11649         * c-target-def.h: New file.
11650         * c-target.def: New file.
11651         * c-target.h: New file.
11652         * c-common.c (targetcm): Don't define here.
11653         * c-common.h (default_handle_c_option): Declare.
11654         * c-format.c: Include c-target.h instead of target.h.
11655         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
11656         include tm.h.
11657         (default_handle_c_option): Move from targhooks.c.
11659 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
11661         PR preprocessor/48248
11662         * c-ppoutput.c (print): Add src_file field.
11663         (init_pp_output): Initialize it.
11664         (maybe_print_line): Don't optimize by adding up to 8 newlines
11665         if map->to_file and print.src_file are different file.
11666         (print_line): Update print.src_file.
11668 2011-03-25  Kai Tietz  <ktietz@redhat.com>
11670         * c-ada-spec.c (compare_comment): Use filename_cmp
11671         instead of strcmp for filename.
11673 2011-03-25  Jeff Law  <law@redhat.com>
11675         * c-common.c (def_fn_type): Add missing va_end.
11677 2011-03-25  Jason Merrill  <jason@redhat.com>
11679         * c.opt: Add -std=c++03.
11681 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
11683         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
11685 2011-03-17  Kai Tietz  <ktietz@redhat.com>
11687         PR target/12171
11688         * c-pretty-print.c (pp_c_specifier_qualifier_list):
11689         Display allowed attributes for function pointer types.
11690         (pp_c_attributes_display): New function to display
11691         attributes having affects_type_identity flag set to true.
11692         * c-pretty-print.h (pp_c_attributes_display): New prototype.
11694         * c-common.c (c_common_attribute_table):
11695         Add new element.
11696         (c_common_format_attribute_table): Likewise.
11698 2011-03-18  Jason Merrill  <jason@redhat.com>
11700         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
11701         * c-common.h: Don't declare it here.
11702         * c-common.c: Or define it here.
11703         * c-opts.c (c_common_handle_option): Or set it here.
11705         PR c++/35315
11706         * c-common.c (handle_transparent_union_attribute): Don't
11707         make a duplicate type in C++.
11709 2011-03-15  Jason Merrill  <jason@redhat.com>
11711         * c-common.c (max_constexpr_depth): New.
11712         * c-common.h: Declare it.
11713         * c-opts.c (c_common_handle_option): Set it.
11714         * c.opt (fconstexpr-depth): New option.
11716 2011-03-11  Jason Merrill  <jason@redhat.com>
11718         * c-common.c (attribute_takes_identifier_p): Add missing const.
11720         PR c++/46803
11721         * c-common.c (attribute_takes_identifier_p): Assume that an
11722         unknown attribute takes an identifier.
11724 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
11726         PR c/47786
11727         * c-common.c (c_type_hash): Call list_length instead of iterating
11728         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
11730 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
11732         PR c/47809
11733         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
11735 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
11737         * c.opt (fobjc-abi-version=) New.
11738         (fobjc-nilcheck): New.
11740 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
11742         PR c++/46890
11743         * c-common.h (keyword_is_decl_specifier): Declare.
11744         * c-common.c (keyword_is_decl_specifier): Define.
11745         (keyword_is_function_specifier): New function.
11747 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
11749         PR c/47473
11750         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
11751         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
11752         REAL_TYPE.
11754 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
11756         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
11758 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
11760         PR pch/47430
11761         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
11762         after init_c_lex if pch_file is set.
11764 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
11766         PR c++/43601
11767         * c.opt (-fkeep-inline-dllexport): New switch.
11769 2011-01-12  Richard Guenther  <rguenther@suse.de>
11771         PR middle-end/32511
11772         * c-common.c (handle_weak_attribute): Warn instead of error
11773         on declaring an inline function weak.
11775 2011-01-05  Tom Tromey  <tromey@redhat.com>
11777         * c-common.h (lvalue_error): Update.
11778         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
11779         not error.
11781 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
11783         PR objc/47075
11784         * c-objc.h (objc_finish_message_expr): Added argument to
11785         prototype.
11787 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
11789         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
11790         Use prototype_p.
11792 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
11794         * c-objc.h (objc_maybe_warn_exceptions): New.
11795         * stub-objc.c (objc_maybe_warn_exceptions): New.
11797 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
11799         * c-common.h (readonly_error): Declare.
11800         * c-common.c (readonly_error): Define.
11802 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
11804         * c-common.h (invalid_indirection_error): Declare.
11805         * c-common.c (invalid_indirection_error): Define.
11807 2010-12-03  Richard Guenther  <rguenther@suse.de>
11809         PR c/46745
11810         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
11811         (pp_c_unary_expression): Likewise.
11812         (pp_c_expression): Likewise.
11814 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
11816         * c-common.h (objc_finish_function): New.
11817         (objc_non_volatilized_type): Removed.
11818         (objc_type_quals_match): Removed.
11819         * stub-objc.c (objc_finish_function): New.
11820         (objc_non_volatilized_type): Removed.
11821         (objc_type_quals_match): Removed.
11823 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
11825         * c-common.h (parse_optimize_options): Declare.
11826         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
11827         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
11829 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
11831         * c-opts.c (check_deps_environment_vars): Use getenv instead of
11832         GET_ENVIRONMENT.
11833         * c-pch.c (O_BINARY): Don't define here.
11834         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
11836 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
11838         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
11839         targetm.except_unwind_info.
11841 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
11843         * c-opts.c (c_common_handle_option): Pass location to
11844         set_struct_debug_option.
11846 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
11848         * c-common.c (visibility_options): Move from ../opts.c.
11849         * c-common.h (struct visibility_flags, visibility_options):
11850         Declare here.
11851         * c-opts.c (finish_options): Rename to c_finish_options.
11852         (c_common_init): Update call to finish_options.
11854 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
11856         PR objc/34033
11857         * c-lex.c (lex_string): Check that each string in an Objective-C
11858         string concat sequence starts with either one or zero '@', and
11859         that there are no spurious '@' signs at the end.
11861 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
11863         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
11864         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
11865         HANDLE_PRAGMA_VISIBILITY.
11866         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
11867         HANDLE_PRAGMA_VISIBILITY): Don't define.
11868         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
11870 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
11872         PR c++/16189
11873         PR c++/36888
11874         PR c++/45331
11875         * c-common.h (keyword_begins_type_specifier): Declare.
11876         (keyword_is_storage_class_specifier): Declare.
11877         (keyword_is_type_qualifier): Declare.
11878         * c-common.c (keyword_begins_type_specifier): New function.
11879         (keyword_is_storage_class_specifier): New function.
11880         (keyword_is_type_qualifier): Declare.
11882 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
11884         PR c/46547
11885         * c-common.c (in_late_binary_op): Define.
11886         (c_common_truthvalue_conversion): Check in_late_binary_op before
11887         calling c_save_expr.
11888         * c-common.h (in_late_binary_op): Declare.
11890 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
11892         * c-opts.c (c_common_handle_option): Update calls to
11893         set_struct_debug_option.
11895 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
11897         * c-common.h (objc_declare_protocols): Added additional argument.
11898         * stub-objc.c (objc_declare_protocol): Same change.
11900 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
11902         PR c/33193
11903         * c-common.h (build_real_imag_expr): Declare.
11904         * c-semantics.c (build_real_imag_expr): Define.
11906 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
11908         * c-opts.c (c_common_parse_file): Take no arguments.
11909         * c-common.h (c_common_parse_file): Update prototype.
11911 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
11913         PR c++/46401
11914         * c-common.c (warning_candidate_p): Don't track non-const calls
11915         or STRING_CSTs.
11917 2010-11-15  Ian Lance Taylor  <iant@google.com>
11919         * c-lex.c (init_c_lex): Set macro debug callbacks if
11920         flag_dump_go_spec is set.
11922 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
11924         * c-common.h (objc_build_incr_expr_for_property_ref): New.
11925         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
11927 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
11929         PR preprocessor/45038
11930         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
11931         dialects.
11933 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
11935         * c-common.h (c_family_lang_mask): Declare.
11936         * c-opts.c (c_family_lang_mask): Make extern.
11937         * c-pragma.c (handle_pragma_diagnostic): Use
11938         control_warning_option.
11940 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
11942         * c-common.c (parse_optimize_options): Update call to
11943         decode_options.
11944         * c-common.h (c_common_handle_option): Update prototype.
11945         * c-opts.c (c_common_handle_option): Take location_t parameter and
11946         pass it to other functions.
11948 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
11950         * c-opts.c (warning_as_error_callback): Remove.
11951         (c_common_initialize_diagnostics): Don't call
11952         register_warning_as_error_callback.
11953         (c_common_handle_option): Handle -Werror=normalized= here.
11955 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
11957         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
11958         in diagnostic.
11959         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
11960         letter.
11961         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
11962         Remove trailing '.' from diagnostics.
11963         * c.opt (Wwrite-strings_: Avoid '`' in help text.
11965 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
11967         * c-common.c (parse_optimize_options): Pass global_dc to
11968         decode_options.
11969         * c-opts.c (c_common_handle_option): Pass &global_options to
11970         set_Wstrict_aliasing.
11971         * c.opt (v): Don't mark Common or document here.
11973 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
11975         PR target/44981
11976         * c-format.c (format_type): New type gcc_objc_string_format_type.
11977         (valid_stringptr_type_p): New.
11978         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
11979         (check_format_string): Pass expected type, use
11980         valid_stringptr_type_p (), check that the format string types are
11981         consistent with the format specification.
11982         (decode_format_attr): Warn if NSString is used outside objective-c.
11983         (format_types_orig): Add NSString.
11984         (format_name): New.
11985         (format_flags): New.
11986         (check_format_arg): Handle format strings requiring an external parser.
11987         first_target_format_type: New variable.
11988         (handle_format_attribute): Set up first_target_format_type, pass the
11989         expected format arg string type to check_format_string().
11990         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
11991         * stub-objc.c (objc_string_ref_type_p): New.
11992         (objc_check_format_arg): New.
11994 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
11996         Fixed using the Objective-C 2.0 dot-syntax with class names.
11997         * c-common.h (objc_build_class_component_ref): New.
11998         * stub-objc.c (objc_build_class_component_ref): New.
12000 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
12002         * c.opt (Wproperty-assign-default): New option.
12004 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
12006         Implemented -fobjc-std=objc1 flag.
12007         * c.opt (fobjc-std=objc1): New option.
12009 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
12011         Implemented format and noreturn attributes for Objective-C methods.
12012         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
12013         attribute for Objective-C methods.
12015 2010-10-31  Jason Merrill  <jason@redhat.com>
12017         * c-common.c (conversion_warning, warn_for_collisions_1): Use
12018         EXPR_LOC_OR_HERE.
12020 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
12022         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
12023         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
12024         (objc_add_property_declaration): Removed arguments for copies and
12025         ivar.
12026         (objc_build_getter_call): Renamed to
12027         objc_maybe_build_component_ref.
12028         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
12029         (objc_is_property_ref): New.
12030         * c-common.c (c_common_reswords): Removed copies and ivar.
12031         * stub-objc.c (objc_add_property_declaration): Removed arguments
12032         for copies and ivar.
12033         (objc_build_getter_call): Renamed to
12034         objc_maybe_build_component_ref.
12035         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
12036         (objc_is_property_ref): New.
12038 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
12039             Matthew Gingell  <gingell@adacore.com>
12041         * c-ada-spec.c (separate_class_package): New function.
12042         (pp_ada_tree_identifier): Prefix references to C++ classes with the
12043         name of their enclosing package.
12044         (print_ada_declaration): Use separate_class_package.
12046 2010-10-27  Jason Merrill  <jason@redhat.com>
12048         * c-common.c (c_common_reswords): Add __is_literal_type.
12049         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
12051         * c-common.c (check_case_value): Remove special C++ code.
12053 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
12055         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
12056         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
12057         and RID_LAST_PATTR.
12058         (objc_add_property_declaration): Added additional arguments.
12059         (objc_property_attribute_kind): Removed.
12060         (objc_set_property_attr): Removed.
12061         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
12062         copy and nonatomic.
12063         * stub-objc.c (objc_add_property_declaration): Added additional
12064         arguments.
12065         (objc_set_property_attr): Removed.
12067 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
12069         * c-common.h (objc_add_property_variable): Renamed to
12070         objc_add_property_declaration.  Added location argument.
12071         * stub-objc.c (objc_add_property_variable): Same change.
12073 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
12075         * c-common.h (objc_maybe_printable_name): New.
12076         * stub-objc.c (objc_maybe_printable_name): New.
12078 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
12079             Andrew Pinski  <pinskia@gmail.com>
12081         * c-common.h (c_common_mark_addressable_vec): Declare.
12082         * c-common.c (c_common_mark_addressable_vec): New function.
12084 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
12086         * c-common.h (objc_set_method_type): Removed.
12087         (objc_add_method_declaration): Added boolean argument.
12088         (objc_start_method_definition): Same change.
12089         (objc_build_method_signature): Same change.
12090         * stub-objc.c (objc_set_method_type): Removed.
12091         (objc_add_method_declaration): Added boolean argument.
12092         (objc_start_method_definition): Same change.
12093         (objc_build_method_signature): Same change.
12095 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
12097         * c-common.h (finish_file): Removed.
12098         (objc_write_global_declarations): New.
12099         * c-opts.c (c_common_parse_file): Do not call finish_file.
12100         * stub-objc.c (objc_write_global_declarations): New.
12102 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
12104         Implemented parsing @synthesize and @dynamic for
12105         Objective-C/Objective-C++.
12106         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
12107         (objc_add_synthesize_declaration): New.
12108         (objc_add_dynamic_declaration): New.
12109         * c-common.c (c_common_reswords): Add synthesize and dynamic.
12110         * stub-objc.c (objc_add_synthesize_declaration): New.
12111         (objc_add_dynamic_declaration): New.
12113 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
12115         PR target/46041
12116         * c-cppbuiltin.c (mode_has_fma): Move function here from
12117         builtins.c.  Don't use the fma optab, instead just use the
12118         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
12119         using -save-temps.
12121 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
12123         Merge from 'apple/trunk' branch on FSF servers.
12125         2005-11-08  Fariborz Jahanian  <fjahanian@apple.com>
12127         Radar 4330422
12128         * c-common.h (objc_non_volatilized_type): New declaration
12129         * stub-objc.c (objc_non_volatilized_type): New stub.
12131 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
12133         Merge from 'apple/trunk' branch on FSF servers.
12135         2006-03-27  Fariborz Jahanian  <fjahanian@apple.com>
12137         Radar 4133425
12138         * c-common.h (objc_diagnose_private_ivar): New decl.
12139         * stub-objc.c (objc_diagnose_private_ivar): New stub.
12141 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
12143         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
12144         * c-common.h (enum rid): Add RID_AT_PACKAGE.
12145         (objc_ivar_visibility_kind): New enum.
12146         (objc_set_visibility): Adjust prototype to use visibility enum.
12147         * stub-objc.c (objc_set_visibility): Adjust stub to use
12148         visibility enum.
12150 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
12152         * c-cppbuiltin.c (builtin_define_float_constants): Emit
12153         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
12154         has the appropriate fma builtins.
12155         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
12157 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
12159         merge from FSF apple 'trunk' branch.
12160         2006 Fariborz Jahanian  <fjahanian@apple.com>
12162         Radars 4436866, 4505126, 4506903, 4517826
12163         * c-common.c (c_common_resword): Define @property and its attributes.
12164         * c-common.h: Define property attribute enum entries.
12165         (OBJC_IS_PATTR_KEYWORD): New.
12166         (objc_property_attribute_kind): New enum.
12167         Declare objc_set_property_attr (), objc_add_property_variable (),
12168         objc_build_getter_call () and objc_build_setter_call ().
12169         * stub-objc.c (objc_set_property_attr): New stub.
12170         (objc_add_property_variable): Likewise.
12171         (objc_build_getter_call): Likewise.
12172         (objc_build_setter_call) Likewise.
12174 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
12176         merge from FSF apple 'trunk' branch.
12177         2006-04-26  Fariborz Jahanian  <fjahanian@apple.com>
12179         Radar 3803157 (method attributes)
12180         * c-common.c (handle_deprecated_attribute): Recognize
12181         objc methods as valid declarations.
12182         * c-common.h: Declare objc_method_decl ().
12183         * stub-objc.c (objc_method_decl): New stub.
12185 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
12187         * c-common.c (parse_optimize_options): Call
12188         decode_cmdline_options_to_array_default_mask before
12189         decode_options.  Update arguments to decode_options.
12190         * c-common.h (c_common_init_options_struct): Declare.
12191         * c-opts.c (c_common_init_options_struct): New.  Split out from
12192         c_common_init_options.
12194 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
12196         Implemented fast enumeration for Objective-C.
12197         * c-common.h (objc_finish_foreach_loop): New.
12198         * stub-objc.c (objc_finish_foreach_loop): New.
12200 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
12202         * c-common.h (struct diagnostic_context): Don't declare here.
12203         (c_common_initialize_diagnostics): Declare using
12204         diagnostic_context typedef.
12205         * c-opts.c (c_common_handle_option): Pass global_dc to
12206         handle_generated_option.
12208 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
12210         * c-opts.c (c_common_handle_option): Pass &global_options_set to
12211         handle_generated_option.
12213 2010-10-03  Ian Lance Taylor  <iant@google.com>
12215         * c.opt (-fplan9-extensions): New option.
12217 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12219         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
12220         Remove.
12221         (c_cpp_builtins): Call functions from cppbuiltin.c instead
12222         of duplicating code.
12224 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
12226         * c-common.c: Add two new entries for @optional
12227         and @required keywords.
12229         merge from FSF 'apple/trunk' branch.
12230         2006-01-30  Fariborz Jahanian  <fjahanian@apple.com>
12232         Radar 4386773
12233         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
12234         objective-c keywords.
12235         (objc_set_method_opt): New declaration.
12236         * stub-objc.c (objc_set_method_opt): New stub.
12238 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
12240         * c-common.c (handle_optimize_attribute): Pass &global_options to
12241         cl_optimization_save and cl_optimization_restore.
12242         * c-opts.c (c_common_handle_option): Pass &global_options to
12243         handle_generated_option.
12244         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
12245         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
12246         &global_options to cl_optimization_restore.
12248 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
12250         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
12251         Objective-C/Objective-C++ keywords.
12253 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
12255         Merge from 'apple/trunk' branch on FSF servers.
12257         2005-10-04  Fariborz Jahanian  <fjahanian@apple.com>
12259         Radar 4281748
12260         * c-common.h (objc_check_global_decl): New declaration.
12261         * stub-objc.c (objc_check_global_decl): New stub.
12263 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
12265         * c.opt: Don't use VarExists.
12267 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
12269         * c-common.c (c_cpp_error): Update names of diagnostic_context
12270         members.
12271         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
12272         cl_optimization members.
12273         * c-opts.c (warning_as_error_callback, c_common_handle_option,
12274         sanitize_cpp_opts, finish_options): Update names of cpp_options
12275         members.
12277 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
12279         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
12280         (objc_is_reserved_word): Removed.
12281         * c-common.c: Updated comments.
12282         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
12283         objc_is_reserved_word.
12284         * stub-objc.c (objc_is_reserved_word): Removed.
12286 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
12288         * c-common.h (objc_add_method_declaration): Adjust prototype to
12289         include attributes.
12290         (objc_start_method_definition): Likewise.
12291         (objc_build_keyword_decl): Likewise.
12292         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
12293         (objc_start_method_definition): Likewise.
12294         (objc_build_keyword_decl): Likewise.
12296 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
12298         * c-common.h (objc_start_class_interface): Adjust prototype.
12299         (objc_start_category_interface): Likewise.
12300         (objc_start_protocol): Likewise.
12301         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
12302         (objc_start_class_interface): Likewise.
12303         (objc_start_category_interface): Likewise.
12305 2010-09-27  Ian Lance Taylor  <iant@google.com>
12307         * c-common.c (c_common_attribute_table): Add no_split_stack.
12308         (handle_no_split_stack_attribute): New static function.
12310 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
12312         Merge from 'apple/trunk' branch on FSF servers.
12314         2005-12-15  Fariborz Jahanian  <fjahanian@apple.com>
12316         Radar 4229905
12317         * c-common.h (objc_have_common_type): New declaration.
12318         * stub-objc.c (objc_have_common_type): New stub.
12320         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
12322         Radar 4154928
12323         * c-common.h (objc_common_type): New prototype.
12324         * stub-objc.c (objc_common_type): New stub.
12326 2010-09-24  Jan Hubicka  <jh@suse.cz>
12328         * c-common.c (handle_leaf_attribute): New function.
12329         (struct attribute_spec c_common_att): Add leaf.
12331 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
12333         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
12334         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
12335         -dump, -dump=, -imacros, -imacros=, -include, -include=,
12336         -include-barrier, -include-directory, -include-directory=,
12337         -include-directory-after, -include-directory-after=,
12338         -include-prefix, -include-prefix=, -include-with-prefix,
12339         -include-with-prefix=, -include-with-prefix-after,
12340         -include-with-prefix-after=, -include-with-prefix-before,
12341         -include-with-prefix-before=, -no-integrated-cpp,
12342         -no-line-commands, -no-standard-includes, -no-warnings, -output,
12343         -output=, -pedantic, -pedantic-errors, -preprocess,
12344         -print-missing-file-dependencies, -trace-includes, -traditional,
12345         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
12346         -user-dependencies, -verbose, -write-dependencies,
12347         -write-user-dependencies, no-integrated-cpp, traditional): New.
12349 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
12351         PR objc/23710
12352         * c-common.h (objc_start_method_definition): Return bool instead
12353         of void.
12354         * stub-objc.c (objc_start_method_definition): Return bool instead
12355         of void.
12357 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
12359         PR objc/25965
12360         * c-common.h (objc_get_interface_ivars): New declaration.
12361         * stub-objc.c (objc_get_interface_ivars): New stub.
12363 2010-09-15  Ian Lance Taylor  <iant@google.com>
12365         * c-common.c (parse_optimize_options): Do not capitalize warning
12366         messages.  Remove period at end of warning message.
12368 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
12370         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
12371         (handle_alias_attribute): ... here.
12372         (handle_ifunc_attribute): New.
12374 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
12376         * c-common.h (do_warn_double_promotion): Declare.
12377         * c-common.c (do_warn_double_promotion): Define.
12379 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
12381         * c.opt (Wdouble-promotion): New.
12383 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
12385         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
12386         fvtable-thunks, fxref): Mark no longer supported in help text.
12388 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
12390         * c.opt (Wimport, fall-virtual, falt-external-templates,
12391         fdefault-inline, fenum-int-equiv, fexternal-templates,
12392         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
12393         fname-mangling-version-, fnew-abi, fnonnull-objects,
12394         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
12395         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
12396         applicable.
12397         (fhandle-exceptions): Mark with Alias and Warn.
12398         * c-opts.c (c_common_handle_option): Don't handle options marked
12399         as ignored.
12401 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
12403         * c.opt (Wcomments, Werror-implicit-function-declaration,
12404         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
12405         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
12406         aliases.
12407         * c-common.c (option_codes): Use OPT_Wcomment instead of
12408         OPT_Wcomments.
12409         * c-opts.c (warning_as_error_callback, c_common_handle_option):
12410         Don't handle options marked as aliases.
12412 2010-08-25  Richard Guenther  <rguenther@suse.de>
12414         * c-common.c (c_common_get_alias_set): Remove special
12415         handling for pointers.
12417 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
12419         * c-common.c: Use FOR_EACH_VEC_ELT.
12420         * c-gimplify.c: Likewise.
12421         * c-pragma.c: Likewise.
12423 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
12425         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
12426         RejectDriver.
12427         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
12428         RejectDriver.
12429         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
12430         instead of OPT_MDX and OPT_MMDX.
12432 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
12434         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
12436 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
12438         * c.opt (MD, MMD): Change to MDX and MMDX.
12439         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
12441 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
12443         * c-opts.c (c_common_handle_option): Call handle_generated_option
12444         instead of handle_option.
12446 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
12448         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
12449         (maybe_apply_renaming_pragma): Delete unneeded declarations.
12451 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
12453         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
12454         (pending_redefine_extname): Change type to a VEC.
12455         (add_to_renaming_pragma_list): Update for new type of
12456         pending_redefine_extname.
12457         (maybe_apply_renaming_pragma): Likewise.
12459 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
12461         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
12462         visited.
12463         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
12464         decide whether a type has already been declared/seen.
12465         Do not go to the original type.
12466         (dump_nested_types): New parameter forward.
12467         Generate forward declaration if needed and mark type as visited.
12468         (print_ada_declaration): Call dump_nested_types if not already done.
12469         Mark types as visited.
12471 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
12473         * c.opt (-print-pch-checksum): Remove option.
12474         * c-opts.c (c_common_handle_option): Don't handle
12475         OPT_print_pch_checksum.
12477 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
12479         * c-common.h (c_common_handle_option): Update prototype and return
12480         value type.
12481         * c-opts.c (c_common_handle_option): Update prototype and return
12482         value type.  Update calls to handle_option and
12483         enable_warning_as_error.
12485 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
12487         PR c/45079
12488         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
12490 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
12492         * c-common.h (c_common_missing_argument): Remove.
12493         * c-opts.c (c_common_missing_argument): Remove.
12494         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
12495         idirafter, imacros, include, isysroot, isystem, iquote): Add
12496         MissingArgError.
12497         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
12499 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
12501         * c-common.h (c_common_option_lang_mask,
12502         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
12503         New.
12504         (c_common_init_options): Update prototype.
12505         * c-opts.c (c_common_option_lang_mask): New.
12506         (c_common_initialize_diagnostics): Split out of
12507         c_common_init_options.
12508         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
12509         New.
12510         (c_common_init_options): Update prototype.  Use decoded options in
12511         search for -lang-asm.
12513 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
12515         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
12516         * c-format.c: Likewise.
12518 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12520         * c-common.h: Include diagnostic-core.h. Error if already
12521         included.
12522         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
12524 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12526         * c-common.c (IN_GCC_FRONTEND): Do not undef.
12527         Do not include expr.h
12528         (vector_mode_valid_p): Move here.
12530 2010-06-21  DJ Delorie  <dj@redhat.com>
12532         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
12533         allow these pragmas anywhere.
12535 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
12537         PR bootstrap/44509
12538         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
12539         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
12540         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
12541         ggc_strdup instead of xstrdup.
12543 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
12545         * c-cppbuiltin.c: Include cpp-id-data.h.
12546         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
12547         (lazy_hex_fp_value): New function.
12548         (builtin_define_with_hex_fp_value): Provide definitions lazily.
12550 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12552         * c-gimplify.c: Do not include tree-flow.h
12554 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
12556         PR other/44034
12557         * c-common.c: Rename targetm member:
12558         targetm.enum_va_list -> targetm.enum_va_list_p
12560 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
12562         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
12564 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
12566         * c-cppbuiltin.c: Do not include except.h.
12568 2010-06-24  Andi Kleen  <ak@linux.intel.com>
12570         * c-common.c (warn_for_omitted_condop): New.
12571         * c-common.h (warn_for_omitted_condop): Add prototype.
12573 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
12575         * c.opt (lang-objc): Remove.
12576         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
12578 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
12580         * c-opts.c: Include "tm_p.h".
12582 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
12584         * c-common.c (parse_optimize_options): Update call to
12585         decode_options.
12587 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
12589         * c-common.c (record_types_used_by_current_var_decl): Adjust for
12590         new type of types_used_by_cur_var_decl.
12592 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
12594         PR bootstrap/44512
12595         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
12596         for C++ standard compliance.
12598 2010-06-16  Jason Merrill  <jason@redhat.com>
12600         * c.opt: Add -Wnoexcept.
12602 2010-06-16  Richard Guenther  <rguenther@suse.de>
12604         PR c/44555
12605         * c-common.c (c_common_truthvalue_conversion): Remove
12606         premature and wrong optimization concering ADDR_EXPRs.
12608 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
12610         * c-ada-spec.c (dump_sloc): Remove column info.
12611         (is_simple_enum): New function.
12612         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
12613         enum types when relevant.
12615 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12617         * c-common.c (conversion_warning): Warn at expression
12618         location.
12620 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
12622         * c-opts.c (c_common_handle_option): Don't handle
12623         OPT_fshow_column.
12625 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12627         * c-pragma.c (push_alignment): Use typed GC allocation.
12628         (handle_pragma_push_options): Likewise.
12630         * c-common.c (parse_optimize_options): Likewise.
12632         * c-common.h (struct sorted_fields_type): Add variable_size GTY
12633         option.
12635 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
12637         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
12638         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
12639         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
12640         flag_signed_bitfields, warn_strict_null_sentinel,
12641         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
12642         flag_gen_declaration, flag_no_gnu_keywords,
12643         flag_implement_inlines, flag_implicit_templates,
12644         flag_implicit_inline_templates, flag_optional_diags,
12645         flag_elide_constructors, flag_default_inline, flag_rtti,
12646         flag_conserve_space, flag_access_control, flag_check_new,
12647         flag_new_for_scope, flag_weak, flag_working_directory,
12648         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
12649         flag_enforce_eh_specs, flag_threadsafe_statics,
12650         flag_pretty_templates): Remove.
12651         * c-common.h (flag_preprocess_only, flag_nil_receivers,
12652         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
12653         flag_replace_objc_classes, flag_undef, flag_no_builtin,
12654         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
12655         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
12656         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
12657         flag_no_gnu_keywords, flag_implement_inlines,
12658         flag_implicit_templates, flag_implicit_inline_templates,
12659         flag_optional_diags, flag_elide_constructors, flag_default_inline,
12660         flag_rtti, flag_conserve_space, flag_access_control,
12661         flag_check_new, flag_new_for_scope, flag_weak,
12662         flag_working_directory, flag_use_cxa_atexit,
12663         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
12664         flag_threadsafe_statics, flag_pretty_templates,
12665         warn_strict_null_sentinel): Remove.
12666         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
12667         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
12668         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
12669         fimplicit-inline-templates, fimplicit-templates,
12670         flax-vector-conversions, fms-extensions, fnil-receivers,
12671         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
12672         frtti, fshort-double, fshort-enums, fshort-wchar,
12673         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
12674         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
12675         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
12676         gen-decls, undef): Use Var.
12677         (fdefault-inline, foptional-diags): Document as doing nothing.
12678         * c-opts.c (c_common_handle_option): Remove cases for options now
12679         using Var.  Mark ignored options as such.
12681 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
12683         * c-common.c: Moved to here from parent directory.
12684         * c-common.def: Likewise.
12685         * c-common.h: Likewise.
12686         * c-cppbuiltin.c: Likewise.
12687         * c-dump.c: Likewise.
12688         * c-format.c: Likewise.
12689         * c-format.h : Likewise.
12690         * c-gimplify.c: Likewise.
12691         * c-lex.c: Likewise.
12692         * c-omp.c: Likewise.
12693         * c.opt: Likewise.
12694         * c-opts.c: Likewise.
12695         * c-pch.c: Likewise.
12696         * c-ppoutput.c: Likewise.
12697         * c-pragma.c: Likewise.
12698         * c-pragma.h: Likewise.
12699         * c-pretty-print.c: Likewise.
12700         * c-pretty-print.h: Likewise.
12701         * c-semantics.c: Likewise.
12702         * stub-objc.c: Likewise.
12704         * c-common.c: Include gt-c-family-c-common.h.
12705         * c-pragma.c: Include gt-c-family-c-pragma.h.
12707 Copyright (C) 2010-2021 Free Software Foundation, Inc.
12709 Copying and distribution of this file, with or without modification,
12710 are permitted in any medium without royalty provided the copyright
12711 notice and this notice are preserved.