Daily bump.
[official-gcc.git] / gcc / c-family / ChangeLog
blobcf6a309ced0f480178a1c4292d585672fec787cb
1 2021-09-27  Martin Liska  <mliska@suse.cz>
3         * c-opts.c (c_common_init_options_struct): Set also
4           x_flag_default_complex_method.
6 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
8         * c-omp.c (c_omp_split_clauses): Copy over OMP_CLAUSE_ALLOCATE_ALIGN.
10 2021-09-20  Matthias Kretz  <m.kretz@gsi.de>
12         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define or
13         undefine __RECIPROCAL_MATH__, __NO_SIGNED_ZEROS__,
14         __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__, and
15         __ROUNDING_MATH__ according to the new optimization flags.
17 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
19         * c-omp.c (c_omp_split_clauses): Split order clause also to
20         distribute construct.  Copy over OMP_CLAUSE_ORDER_UNCONSTRAINED.
22 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
24         * c-omp.c (c_finish_omp_atomic): Avoid creating
25         TARGET_EXPR if test is true, use create_tmp_var_raw instead of
26         create_tmp_var and add a zero initializer to TARGET_EXPRs that
27         had NULL initializer.  When omitting operands after v = x,
28         use type of v rather than type of x.  Fix type of vtmp
29         TARGET_EXPR.
31 2021-09-13  Jason Merrill  <jason@redhat.com>
33         * c.opt: Add -Winterference-size.
34         * c-cppbuiltin.c (cpp_atomic_builtins): Add __GCC_DESTRUCTIVE_SIZE
35         and __GCC_CONSTRUCTIVE_SIZE.
37 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
39         * c-common.h (c_finish_omp_atomic): Add r and weak arguments.
40         * c-omp.c: Include gimple-fold.h.
41         (c_finish_omp_atomic): Add r and weak arguments.  Add support for
42         OpenMP 5.1 atomics.
44 2021-09-09  qing zhao  <qing.zhao@oracle.com>
46         * c-attribs.c (handle_uninitialized_attribute): New function.
47         (c_common_attribute_table): Add "uninitialized" attribute.
49 2021-09-08  liuhongt  <hongtao.liu@intel.com>
51         * c-common.c (excess_precision_mode_join): Update below comments.
52         (c_ts18661_flt_eval_method): Set excess_precision_type to
53         EXCESS_PRECISION_TYPE_FLOAT16 when -fexcess-precision=16.
54         * c-cppbuiltin.c (cpp_atomic_builtins): Update below comments.
55         (c_cpp_flt_eval_method_iec_559): Set excess_precision_type to
56         EXCESS_PRECISION_TYPE_FLOAT16 when -fexcess-precision=16.
58 2021-09-07  Marcel Vollweiler  <marcel@codesourcery.com>
60         * c-omp.c (c_finish_omp_flush): Handle MEMMODEL_SEQ_CST.
62 2021-09-03  Eric Botcazou  <ebotcazou@adacore.com>
64         * c-ada-spec.c (dump_ads): Generate pragmas to disable style checks
65         and -gnatwu warning for the package specification.
67 2021-09-01  Iain Sandoe  <iain@sandoe.co.uk>
69         * c-attribs.c (handle_unavailable_attribute): New.
71 2021-08-30  Jason Merrill  <jason@redhat.com>
73         * c.opt: Add -Wmissing-requires.
75 2021-08-25  Lewis Hyatt  <lhyatt@gmail.com>
77         PR other/93067
78         * c-opts.c (c_common_input_charset_cb): New function.
79         (c_common_post_options): Call new function
80         diagnostic_initialize_input_context().
82 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
84         * c-format.c (gcc_gfc_length_specs): Add 'll' and 'w'.
85         (gcc_gfc_char_table): Add T9L_LL and T9L_ULL to
86         "di" and "u", respecitively; fill with BADLEN to match
87         size of 'types'.
88         (get_init_dynamic_hwi): Split off from ...
89         (init_dynamic_diag_info): ... here. Call it.
90         (init_dynamic_gfc_info): Call it.
92 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
94         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ERROR.
95         * c-pragma.c (omp_pragmas): Add error directive.
96         * c-omp.c (omp_directives): Uncomment error directive entry.
98 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
100         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_NOTHING.
101         * c-pragma.c (omp_pragmas): Add nothing directive.
102         * c-omp.c (omp_directives): Uncomment nothing directive entry.
104 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
106         PR c++/101539
107         * c-common.h (enum rid): Add RID_IS_LAYOUT_COMPATIBLE.
108         * c-common.c (c_common_reswords): Add __is_layout_compatible.
110 2021-08-17  Matt Jacobson  <mhjacobson@me.com>
112         * c-opts.c (c_common_post_options): Default to
113         flag_objc_sjlj_exceptions = 1 only when flag_objc_abi < 2.
115 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
117         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCOPE.
118         * c-pragma.c (omp_pragmas): Add scope construct.
119         * c-omp.c (omp_directives): Uncomment scope directive entry.
121 2021-08-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
123         * c-cppbuiltin.c (c_cpp_builtins): Define
124         __LIBGCC_GCOV_TYPE_SIZE if flag_building_libgcc is true.
126 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
128         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_MASKED.
129         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FILTER.
130         * c-pragma.c (omp_pragmas_simd): Add masked construct.
131         * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_MASKED
132         enumerator.
133         (c_finish_omp_masked): Declare.
134         * c-omp.c (c_finish_omp_masked): New function.
135         (c_omp_split_clauses): Handle combined masked constructs.
137 2021-07-30  Jakub Jelinek  <jakub@redhat.com>
139         PR c++/101539
140         * c-common.h (enum rid): Add RID_IS_POINTER_INTERCONVERTIBLE_BASE_OF.
141         * c-common.c (c_common_reswords): Add
142         __is_pointer_interconvertible_base_of.
144 2021-07-29  Richard Biener  <rguenther@suse.de>
146         PR c/101512
147         * c-common.c (c_common_mark_addressable_vec): Look through
148         C_MAYBE_CONST_EXPR even if not at the toplevel.
150 2021-07-27  Martin Sebor  <msebor@redhat.com>
152         PR c/101585
153         * c-warn.c (warn_parm_ptrarray_mismatch): Use OEP_DECL_NAME.
155 2021-07-23  Jakub Jelinek  <jakub@redhat.com>
157         * c-lex.c (c_common_has_attribute): Call canonicalize_attr_name also
158         on attr_id.  Return 1 for omp::directive or omp::sequence in C++11
159         and later.
161 2021-07-23  Jakub Jelinek  <jakub@redhat.com>
163         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP__START_ and
164         PRAGMA_OMP__LAST_ enumerators.
166 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
167             Joseph Myers  <joseph@codesourcery.com>
168             Cesar Philippidis  <cesar@codesourcery.com>
170         * c-pragma.h (pragma_omp_clause): Add 'PRAGMA_OACC_CLAUSE_NOHOST'.
172 2021-07-20  Martin Sebor  <msebor@redhat.com>
174         * c-common.c (c_build_shufflevector): Adjust by-value argument to
175         by-const-reference.
176         * c-common.h (c_build_shufflevector): Same.
178 2021-07-16  Andrew Pinski  <apinski@marvell.com>
180         PR c/101453
181         * c-common.c (parse_optimize_options): Use the correct
182         size for buffer.
184 2021-07-15  Martin Sebor  <msebor@redhat.com>
186         PR c/101289
187         PR c/97548
188         * c-warn.c (warn_parm_array_mismatch): Use OEP_DECL_NAME.
190 2021-07-14  Jason Merrill  <jason@redhat.com>
192         * c-opts.c (c_common_post_options): Set -fdelete-dead-exceptions.
194 2021-07-06  Martin Sebor  <msebor@redhat.com>
196         * c-format.c (gcc_tdiag_char_table): Remove support for %G and %K.
197          (gcc_cdiag_char_table): Same.
198          (gcc_cxxdiag_char_table): Same.
200 2021-07-02  Jakub Jelinek  <jakub@redhat.com>
202         * c-common.h (enum c_omp_directive_kind): New enum.
203         (struct c_omp_directive): New type.
204         (c_omp_categorize_directive): Declare.
205         * c-omp.c (omp_directives): New variable.
206         (c_omp_categorize_directive): New function.
208 2021-07-01  Eric Botcazou  <ebotcazou@adacore.com>
210         * c-ada-spec.c (packed_layout): New global variable.
211         (dump_ada_declaration): Set it upon seeing a packed record type.
212         Do not put the "aliased" keyword if it is set.
213         (dump_ada_structure): Add Pack aspect if it is set and clear it.
215 2021-07-01  Eric Botcazou  <ebotcazou@adacore.com>
217         * c-ada-spec.c (check_name): Rename into...
218         (check_type_name_conflict): ...this.  Minor tweak.
219         (dump_ada_function_declaration): Adjust to above renaming.
220         (dump_ada_array_domains): Fix oversight.
221         (dump_ada_declaration): Call check_type_name_conflict for variables.
223 2021-06-25  Martin Sebor  <msebor@redhat.com>
225         * c-common.c (c_wrap_maybe_const): Remove TREE_NO_WARNING.
226         (c_common_truthvalue_conversion): Replace direct uses of
227         TREE_NO_WARNING with warning_suppressed_p, suppress_warning, and
228         copy_no_warning.
229         (check_function_arguments_recurse): Same.
230         * c-gimplify.c (c_gimplify_expr): Same.
231         * c-warn.c (overflow_warning): Same.
232         (warn_logical_operator): Same.
233         (warn_if_unused_value): Same.
234         (do_warn_unused_parameter): Same.
236 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
238         * c-common.h (enum c_omp_region_type): Add C_ORT_TARGET and
239         C_ORT_OMP_TARGET.
240         * c-omp.c (c_omp_split_clauses): For OMP_CLAUSE_IN_REDUCTION on
241         combined target constructs also add map (always, tofrom:) clause.
243 2021-06-15  Robin Dapp  <rdapp@linux.ibm.com>
245         * c-attribs.c (common_handle_aligned_attribute): Remove short
246         circuit and dead code.
248 2021-06-14  Jonathan Wakely  <jwakely@redhat.com>
250         PR c++/101052
251         * known-headers.cc (get_stdlib_header_for_name): Add known
252         headers for EXIT_FAILURE, EXIT_SUCCESS, abort, atexit, calloc,
253         exit, and getenv.
255 2021-06-12  Jason Merrill  <jason@redhat.com>
257         * c-attribs.c (handle_unused_attribute): Handle FIELD_DECL.
259 2021-06-11  Jakub Jelinek  <jakub@redhat.com>
261         PR c++/100974
262         * c-cppbuiltin.c (c_cpp_builtins): Predefine __cpp_if_consteval for
263         -std=c++2b for P1938R3 consteval if support.
265 2021-06-09  Jason Merrill  <jason@redhat.com>
267         PR c++/100879
268         * c-warn.c (warn_for_sign_compare): Remove C++ enum mismatch
269         warning.
271 2021-06-07  Martin Liska  <mliska@suse.cz>
273         * c-target.def: Split long lines and replace them
274         with '\n\'.
276 2021-06-04  Martin Sebor  <msebor@redhat.com>
278         PR c/100783
279         * c-attribs.c (positional_argument): Bail on erroneous types.
281 2021-06-04  Martin Sebor  <msebor@redhat.com>
283         * c-warn.c (warn_parm_array_mismatch): Check TREE_PURPOSE to test
284         for element presence.
286 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
288         * c-ada-spec.c (dump_ada_macros): Minor tweaks.
289         (dump_ada_decl_name): Likewise.
290         (dump_anonymous_type_name): Remove parent parameter and adjust.
291         (dump_sloc): Minor tweak.
292         (dump_ada_array_type): Remove type parameter and adjust.
293         (dump_ada_enum_type): Remove parent parameter and adjust.
294         (dump_ada_node): Adjust calls to above functions.
295         (dumped_anonymous_types): New global variable.
296         (dump_nested_types_1): Rename into...
297         (dump_nested_types): ...this.
298         (dump_nested_type): Remove parent and dumped_types parameters.
299         <ARRAY_TYPE>: Replace dumped_types with dumped_anonymous_types.
300         Adjust calls to dump_anonymous_type_name and dump_ada_array_type.
301         (dump_ada_specs): Initialize and free dumped_anonymous_types.
303 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
305         * c-ada-spec.c (pp_ada_tree_identifier): Tidy up.
306         (dump_ada_node) <POINTER_TYPE>: Deal specially with external subtypes.
308 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
310         * c-ada-spec.c (dump_ada_enum_type): Dump a prefix for constants.
311         (htable_t): New typedef.
312         (overloaded_names): Use it.
313         (add_name): New function.
314         (init_overloaded_names): Use add_name to populate the table and add
315         special cases for sigaction and stat.
316         (overloaded_name_p): Rename into...
317         (overloading_index): ...this.  Do not initialize overloaded_names table
318         here.  Return the index or zero.
319         (dump_ada_declaration): Minor tweaks.  Do not skip overloaded functions
320         but add an overloading suffix instead.
321         (dump_ada_specs): Initialize overloaded_names tables here.
323 2021-06-01  Martin Liska  <mliska@suse.cz>
325         PR other/100759
326         * c-attribs.c (handle_optimize_attribute): Limit sanity check
327         to a situation where we are not in processing of an optimize
328         pragma.
329         * c-pragma.c (handle_pragma_pop_options): Restore target
330         options.
332 2021-05-31  Indu Bhagat  <indu.bhagat@oracle.com>
334         PR testsuite/100749
335         * c-pch.c (c_common_valid_pch): Use xstrdup for debug format set names.
337 2021-05-31  Richard Biener  <rguenther@suse.de>
339         PR c++/88601
340         * c-common.c: Include tree-vector-builder.h and
341         vec-perm-indices.h.
342         (c_common_reswords): Add __builtin_shufflevector.
343         (c_build_shufflevector): New funtion.
344         * c-common.h (enum rid): Add RID_BUILTIN_SHUFFLEVECTOR.
345         (c_build_shufflevector): Declare.
347 2021-05-28  Jakub Jelinek  <jakub@redhat.com>
349         PR middle-end/99928
350         * c-omp.c (c_omp_split_clauses): For reduction clause if combined with
351         target add a map tofrom clause with OMP_CLAUSE_MAP_IMPLICIT.
353 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
355         * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_AFFINITY.
357 2021-05-25  Martin Liska  <mliska@suse.cz>
359         PR tree-optimization/92860
360         PR target/99592
361         * c-attribs.c (handle_optimize_attribute): Save target node
362         before calling parse_optimize_options and save it in case
363         it changes.
364         * c-pragma.c (handle_pragma_target): Similarly for pragma.
365         (handle_pragma_pop_options): Likewise here.
367 2021-05-25  Martin Liska  <mliska@suse.cz>
369         * c-attribs.c (handle_no_sanitize_coverage_attribute): New.
371 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
373         PR middle-end/99928
374         * c-omp.c (c_omp_split_clauses): Copy reduction to teams when teams is
375         combined with simd and not with taskloop or for.
377 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
379         PR middle-end/99928
380         * c-omp.c (c_omp_split_clauses): Set OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT
381         on firstprivate clause copy going to target construct, and for
382         target simd set also OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET bit.
384 2021-05-20  Jonathan Wakely  <jwakely@redhat.com>
386         * c.opt (Wc++11-extensions, Wc++14-extensions)
387         (Wc++17-extensions, Wc++20-extensions, Wc++23-extensions): New
388         options.
390 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
392         * c-lex.c (init_c_lex): Use dwarf_debuginfo_p.
394 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
396         * c-opts.c (c_common_post_options): Adjust access to debug_type_names.
397         * c-pch.c (struct c_pch_validity): Use type uint32_t.
398         (pch_init): Renamed member.
399         (c_common_valid_pch): Adjust access to debug_type_names.
401 2021-05-19  Martin Sebor  <msebor@redhat.com>
403         PR c/100619
404         * c-attribs.c (build_attr_access_from_parms): Handle arbitrarily many
405         bounds.
407 2021-05-18  Richard Biener  <rguenther@suse.de>
409         PR c/100547
410         * c-attribs.c (type_valid_for_vector_size): Reject too large nunits.
411         Reword existing nunit diagnostic.
413 2021-05-17  Joern Rennecke  <joern.rennecke@embecosm.com>
415         * c-common.c (braced_list_to_string): Return CTOR unchanged
416         if host and target character sizes don't match.
418 2021-05-14  Martin Liska  <mliska@suse.cz>
420         * c.opt: Add Warning keyword for 2 options.
422 2021-05-13  Martin Liska  <mliska@suse.cz>
424         PR middle-end/100504
425         * c-attribs.c (handle_target_clones_attribute): Expect a string
426         argument to target_clone argument.
428 2021-05-11  Joseph Myers  <joseph@codesourcery.com>
430         * c-lex.c (interpret_float): Handle digit separators for C2X.
432 2021-05-10  Martin Liska  <mliska@suse.cz>
434         * c-ada-spec.c (print_destructor): Use startswith
435         function instead of strncmp.
436         (dump_ada_declaration): Likewise.
437         * c-common.c (disable_builtin_function): Likewise.
438         (def_builtin_1): Likewise.
439         * c-format.c (check_tokens): Likewise.
440         (check_plain): Likewise.
441         (convert_format_name_to_system_name): Likewise.
443 2021-04-28  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
445         * c-cppbuiltin.c (c_cpp_builtins): Add supporting macros for new
446         complex divide
448 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
449             Nathan Sidwell  <nathan@codesourcery.com>
450             Tom de Vries  <vries@codesourcery.com>
451             Julian Brown  <julian@codesourcery.com>
452             Kwok Cheung Yeung  <kcy@codesourcery.com>
454         * c.opt (Wopenacc-parallelism): New.
456 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
458         * c.opt (fopenacc-kernels=): Remove.
460 2021-04-08  Jakub Jelinek  <jakub@redhat.com>
462         * c-warn.c (do_warn_double_promotion): Fix comment typo,
463         occured -> occurred.
464         (check_alignment_of_packed_member): Fix a comment typo,
465         memeber -> member.
466         (warn_parm_ptrarray_mismatch): Fix comment typos, os -> of
467         and onless -> unless.
468         (warn_parm_array_mismatch): Fix comment typos, declaratation
469         -> declaration and woud -> would.  Fix up comment indentation.
471 2021-04-08  Martin Sebor  <msebor@redhat.com>
473         PR middle-end/99883
474         * c.opt (Wmismatched-new-delete): Correct spelling.
476 2021-04-05  Eric Botcazou  <ebotcazou@adacore.com>
478         * c-ada-spec.c (is_simple_enum): Minor tweaks.
479         (dump_ada_enum_type): Add TYPE and PARENT parameters.  For non-simple
480         enumeral types use again the type name for the enumeration constants.
481         (dump_ada_node): Adjust call to dump_ada_enum_type.
482         (dump_nested_type): Likewise.
484 2021-04-01  Jason Merrill  <jason@redhat.com>
486         PR c++/98481
487         * c-opts.c (c_common_post_options): Bump latest_abi_version.
489 2021-03-25  Jakub Jelinek  <jakub@redhat.com>
491         PR c++/99565
492         * c-warn.c (do_warn_duplicated_branches): Pass also
493         OEP_ADDRESS_OF_SAME_FIELD to operand_equal_p.
495 2021-03-20  Jakub Jelinek  <jakub@redhat.com>
497         PR debug/99230
498         * c-gimplify.c (c_genericize_control_stmt): Handle STATEMENT_LIST.
500 2021-03-05  Eric Botcazou  <ebotcazou@adacore.com>
502         * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Dump nested types
503         after entering the separate class package, if any.
505 2021-03-04  Richard Biener  <rguenther@suse.de>
507         * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator):
508         Handle ERROR_MARK.
510 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
512         PR c/99325
513         * c-ppoutput.c (print): Change src_line type from int to unsigned.
514         (token_streamer::stream) Likewise.
515         (maybe_print_line_1): Likewise.  Don't strcmp src_file if src_loc is
516         UNKNOWN_LOCATION.
518 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
520         PR c/99324
521         * c-common.c (build_va_arg): Call c_common_mark_addressable_vec
522         instead of mark_addressable.  Fix a comment typo -
523         neutrallly -> neutrally.
525 2021-02-28  Jakub Jelinek  <jakub@redhat.com>
527         PR c/99304
528         * c-attribs.c (handle_malloc_attribute): Fix a typo in inform
529         message - refernced -> referenced.  Remove superfluous space before
530         closing paren of function calls.
532 2021-02-25  Nathan Sidwell  <nathan@acm.org>
534         PR c++/99166
535         * c.opt (-flang-info-module-cmi): Renamed option.
537 2021-02-19  Nathan Sidwell  <nathan@acm.org>
539         * c.opt (flang-info-module-read, flang-info-module-read=): New.
541 2021-02-18  H.J. Lu  <hjl.tools@gmail.com>
543         PR target/99113
544         * c-attribs.c (c_common_attribute_table): Add the "retain"
545         attribute.
546         (handle_retain_attribute): New function.
548 2021-02-16  Marek Polacek  <polacek@redhat.com>
550         PR c++/99062
551         * c-attribs.c (handle_assume_aligned_attribute): Check that the
552         alignment argument is non-negative.  Tweak a warning message.
554 2021-02-12  Martin Sebor  <msebor@redhat.com>
556         PR c/99055
557         * c-warn.c (warn_parm_array_mismatch): Free strings returned from
558         print_generic_expr_to_str.
560 2021-02-10  Richard Biener  <rguenther@suse.de>
562         * c-common.c (parse_optimize_options): Free decoded_options.
564 2021-02-04  emsr  <3dw4rd@verizon.net>
566         * c-cppbuiltin.c (c_cpp_builtins): __cpp_size_t_suffix=202011L.
568 2021-02-03  Ed Smith-Rowland  <3dw4rd@verizon.net>
570         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_size_t_suffix.
571         * c-lex.c (interpret_integer): Set node type for size literal.
573 2021-01-28  Jakub Jelinek  <jakub@redhat.com>
575         * c.opt (-std=c++2a, -std=c++20, -std=gnu++2a, -std=gnu++20): Remove
576         draft from description.
577         (-std=c++2b): Fix a pasto, 2020 -> 2023.
579 2021-01-26  Paul Fee  <paul.f.fee@gmail.com>
581         * c-common.h (cxx_dialect): Add cxx23 as a dialect.
582         * c.opt: Add options for -std=c++23, std=c++2b, -std=gnu++23
583         and -std=gnu++2b
584         * c-opts.c (set_std_cxx23): New.
585         (c_common_handle_option): Set options when -std=c++23 is enabled.
586         (c_common_post_options): Adjust comments.
587         (set_std_cxx20): Likewise.
589 2021-01-25  Martin Sebor  <msebor@redhat.com>
591         PR c++/98646
592         * c-common.c (check_nonnull_arg): Adjust warning text.
594 2021-01-17  Martin Sebor  <msebor@redhat.com>
596         * c-pretty-print.c (c_pretty_printer::primary_expression): Don't
597         assume SSA_NAME_IDENTIFIER evaluates to nonzero.
599 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
601         * c-pragma.h (pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_DETACH.
602         Redefine PRAGMA_OACC_CLAUSE_DETACH.
604 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
606         PR tree-optimization/98597
607         * c-pretty-print.c: Include options.h.
608         (c_fold_indirect_ref_for_warn): New function.
609         (print_mem_ref): Use it.  If it returns something that has compatible
610         type and is TBAA compatible with zero offset, print it and return,
611         otherwise print it using offsetof syntax or array ref syntax.  Fix up
612         printing if MEM_REFs first operand is ADDR_EXPR, or when the first
613         argument has pointer to array type.  Print pointers using the standard
614         formatting.
616 2021-01-12  Martin Sebor  <msebor@redhat.com>
618         PR c/98597
619         PR c/98592
620         * c-pretty-print.c (print_mem_ref): Avoid assuming MEM_REF operand
621         has pointer type.  Remove redundant code.  Avoid calling
622         gimple_canonical_types_compatible_p.
624 2021-01-07  Martin Sebor  <msebor@redhat.com>
626         PR middle-end/98578
627         * c-pretty-print.c (print_mem_ref): Strip array from access type.
628         Avoid assuming acces type's size is constant.  Correct condition
629         guarding the printing of a parenthesis.
631 2021-01-06  Martin Sebor  <msebor@redhat.com>
633         PR c++/95768
634         * c-pretty-print.c (c_pretty_printer::primary_expression): For
635         SSA_NAMEs print VLA names and GIMPLE defining statements.
636         (print_mem_ref): New function.
637         (c_pretty_printer::unary_expression): Call it.
639 2021-01-06  Richard Biener  <rguenther@suse.de>
641         PR tree-optimization/95582
642         * c-attribs.c (c_common_attribute_table): Add entry for
643         signed_bool_precision.
644         (handle_signed_bool_precision_attribute): New.
646 2020-12-24  Iain Sandoe  <iain@sandoe.co.uk>
648         * c.opt: Add -stdlib= option and enumerations for
649         libstdc++ and libc++.
651 2020-12-16  Martin Liska  <mliska@suse.cz>
653         * c.opt: Remove usage of Report.
655 2020-12-14  Martin Sebor  <msebor@redhat.com>
657         PR middle-end/98166
658         PR c++/57111
659         PR middle-end/98160
660         * c-attribs.c (maybe_add_noinline): New function.
661         (handle_malloc_attribute): Call it.  Use ATTR_FLAG_INTERNAL.
662         Implicitly add attribute noinline to functions not declared inline
663         and warn on those.
665 2020-12-09  Tobias Burnus  <tobias@codesourcery.com>
667         * c-pragma.c (omp_pragmas): Add 'allocate'.
668         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ALLOCATE.
670 2020-12-08  Jakub Jelinek  <jakub@redhat.com>
672         PR c++/98187
673         * c-pragma.c (omp_pragmas): Remove "master".
674         (omp_pragmas_simd): Add "master".
676 2020-12-07  Marek Polacek  <polacek@redhat.com>
678         PR c++/98126
679         * c-common.c (verify_tree_lim_r): New function.
680         (verify_sequence_points): Use it.  Use nullptr instead of 0.
682 2020-12-03  Martin Sebor  <msebor@redhat.com>
684         PR c++/90629
685         PR middle-end/94527
686         * c-attribs.c (handle_dealloc_attribute): New function.
687         (handle_malloc_attribute): Handle argument forms of attribute.
688         * c.opt (-Wmismatched-dealloc): New option.
689         (-Wmismatched-new-delete): New option.
691 2020-12-03  Jakub Jelinek  <jakub@redhat.com>
693         PR libstdc++/93121
694         * c-common.h (enum rid): Add RID_BUILTIN_BIT_CAST.
695         * c-common.c (c_common_reswords): Add __builtin_bit_cast.
697 2020-12-01  JeanHeyd Meneide  <phdofthehouse@gmail.com>
699         * c-cppbuiltin.c (c_cpp_builtins): Add predefined
700         {__GNUC_EXECUTION_CHARSET_NAME} and
701         _WIDE_EXECUTION_CHARSET_NAME} macros.
703 2020-12-01  Nathan Sidwell  <nathan@acm.org>
705         * c-common.c (module, import, export): New internal tokens (with
706         trailing space).
707         * c-common.h (RID__MODULE, RID__IMPORT & RID__EXPORT): Enumerate
708         them.
709         (D_CXX_MODULES, D_CXX_MODULES_FLAGS): Enable them.
710         * c-cppbuiltin.c (c_cpp_builtins): Feature macro.
712 2020-12-01  Nathan Sidwell  <nathan@acm.org>
714         * c-opts.c (c_common_init_options): Ask for module dependencies.
715         (c_common_handle_option): Handle -Mmodules -Mno-modules.
716         * c-pch.c (c_common_valid_pch): ... does not play with C++
717         modules.
718         * c.opt (Mmodules, Mno-modules): New preprocessor dependency
719         options.
720         (fmodules-ts, fmodule-header, fmodule-implicit-inline)
721         (fmodule-only, fmodule-mapper, fmodule-lazy)
722         (fmodule-version-ignore, Winvalid-imported-macros)
723         (flang-info-include-translate, flang-info-include-translate-not):
724         New options
726 2020-11-28  Eric Botcazou  <ebotcazou@adacore.com>
728         * c-ada-spec.c (dump_nested_type) <RECORD_TYPE>: Remove obsolete code.
729         (dump_ada_structure): Also deal with convention, unchecked union and
730         bit-field for nested types.  In the latter case, print an Alignment
731         aspect along with the Pack aspect.
733 2020-11-25  Martin Sebor  <msebor@redhat.com>
735         PR bootstrap/94982
736         * c-attribs.c (handle_patchable_function_entry_attribute): Avoid
737         -Wformat-diag.
739 2020-11-24  Martin Sebor  <msebor@redhat.com>
741         * c-warn.c (warn_parm_array_mismatch): Avoid invalid redeclarations.
743 2020-11-23  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
745         * c-attribs.c (handle_special_var_sec_attribute): New.
746         (handle_noinit_attribute): Remove.
747         (attr_noinit_exclusions): Rename to...
748         (attr_section_exclusions): ...this, and add "persistent" attribute
749         exclusion.
750         (c_common_attribute_table): Add "persistent" attribute.
752 2020-11-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
754         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
755         Treat opaque types like other types.
756         (c_pretty_printer::direct_abstract_declarator): Opaque types are
757         supported types.
759 2020-11-20  Martin Sebor  <msebor@redhat.com>
761         * c-warn.c (warn_parm_array_mismatch): Bail on invalid redeclarations
762         with fewer arguments.
764 2020-11-20  Martin Sebor  <msebor@redhat.com>
766         PR middle-end/97879
767         * c-attribs.c (handle_access_attribute): Handle ATTR_FLAG_INTERNAL.
768         Error out on invalid modes.
770 2020-11-20  Jakub Jelinek  <jakub@redhat.com>
772         PR libstdc++/88101
773         * c-common.c (check_builtin_function_arguments): Handle
774         BUILT_IN_CLEAR_PADDING.
776 2020-11-18  Nathan Sidwell  <nathan@acm.org>
778         * c-lex.c (c_lex_with_flags): CPP_HEADER_NAMEs can now be seen.
780 2020-11-17  Nathan Sidwell  <nathan@acm.org>
782         * c-common.h (enum c_tree_index): Reorder to place lazy fields
783         after newly-added CTI_MODULE_HWM.
785 2020-11-17  Joseph Myers  <joseph@codesourcery.com>
787         * c-cppbuiltin.c (builtin_define_float_constants): Define
788         "*_IS_IEC_60559__" macros.
790 2020-11-17  Nathan Sidwell  <nathan@acm.org>
792         * c-lex.c: #include "langhooks.h".
793         (cb_undef): Maybe call preprocess_undef lang hook.
794         * c-opts.c (c_common_post_options): Maybe call preprocess_options
795         lang hook.
796         (push_command_line_include): Maybe call preprocess_main_file lang
797         hook.
798         (cb_file_change): Likewise.
799         * c-ppoutput.c: #include "langhooks.h.
800         (scan_translation_unit): Maybe call preprocess_token lang hook.
801         (class do_streamer): New, derive from token_streamer.
802         (directives_only_cb): Data pointer is do_streamer, call
803         preprocess_token lang hook.
804         (scan_translation_unit_directives_only): Use do_streamer.
805         (print_line_1): Move src_line recording to after string output.
806         (cb_undef): Maybe call preprocess_undef lang hook.
808 2020-11-17  Nathan Sidwell  <nathan@acm.org>
810         * c-ppoutput.c (scan_translation_unit): Use token_streamer, remove
811         code duplicating that functionality.
813 2020-11-17  Jakub Jelinek  <jakub@redhat.com>
815         PR c/90628
816         * c-common.c (check_builtin_function_arguments)
817         <case BUILT_IN_ADD_OVERFLOW>: Diagnose when last argument is pointer
818         to _Atomic.  For the TYPE_READONLY case, adjust message to be usable
819         for more builtins and argument positions.
821 2020-11-16  Iain Sandoe  <iain@sandoe.co.uk>
823         PR objc/97854
824         * stub-objc.c: Include c-common.h to declare enum rid.
826 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
828         PR c++/63287
829         * c-cppbuiltin.c: Include configargs.h.
830         (c_cpp_builtins): For C++11 and later if THREAD_MODEL_SPEC is not
831         defined, predefine __STDCPP_THREADS__ to 1 unless thread_model is
832         "single".
834 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
835             Thomas Schwinge  <thomas@codesourcery.com>
837         * c.opt (fopenacc-kernels): Add.
839 2020-11-13  Jason Merrill  <jason@redhat.com>
841         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_using_enum.
843 2020-11-13  Piotr H. Dabrowski  <phd@phd.re>
845         PR c++/91318
846         * c-cppbuiltin.c: c_cpp_builtins_optimize_pragma(): use cpp_define_unused()
848 2020-11-13  Martin Liska  <mliska@suse.cz>
850         * c-attribs.c (build_attr_access_from_parms): Format properly.
852 2020-11-13  Iain Sandoe  <iain@sandoe.co.uk>
854         PR objc/90707
855         * c-common.c (c_common_reswords): null_unspecified, nullable,
856         nonnull, null_resettable: New keywords.
857         * c-common.h (enum rid): RID_NULL_UNSPECIFIED, RID_NULLABLE,
858         RID_NONNULL, RID_NULL_RESETTABLE: New.
859         (OBJC_IS_PATTR_KEYWORD): Include nullability keywords in the
860         ranges accepted for property attributes.
861         * c-attribs.c (handle_objc_nullability_attribute): New.
862         * c-objc.h (enum objc_property_attribute_group): Add
863         OBJC_PROPATTR_GROUP_NULLABLE.
864         (enum objc_property_attribute_kind):Add
865         OBJC_PROPERTY_ATTR_NULL_UNSPECIFIED, OBJC_PROPERTY_ATTR_NULLABLE,
866         OBJC_PROPERTY_ATTR_NONNULL, OBJC_PROPERTY_ATTR_NULL_RESETTABLE.
868 2020-11-13  Iain Sandoe  <iain@sandoe.co.uk>
870         PR objc/77404
871         * c-attribs.c (handle_objc_root_class_attribute): New
872         * c-objc.h (objc_start_class_interface): Add a location
873         value for the position of the class name.
874         * c.opt: Add Wobjc-root-class.
875         * stub-objc.c (objc_start_class_interface): Add a location
876         value for the position of the class name.
878 2020-11-12  Joseph Myers  <joseph@codesourcery.com>
880         * c-lex.c (c_common_has_attribute): Take argument std_syntax.
881         Allow scope for C.  Handle standard attributes for C.  Do not
882         accept unscoped attributes if std_syntax and not handled as
883         standard attributes.
884         * c-common.h (c_common_has_attribute): Update prototype.
886 2020-11-12  Nicholas Guriev  <guriev-ns@ya.ru>
888         PR pch/86674
889         * c-pch.c (c_common_valid_pch): Use cpp_warning with CPP_W_INVALID_PCH
890         reason to fix -Werror=invalid-pch and -Wno-error=invalid-pch switches.
892 2020-11-11  Patrick Palka  <ppalka@redhat.com>
894         PR c++/88115
895         * c-opts.c (c_common_post_options): Update latest_abi_version.
897 2020-11-10  Jakub Jelinek  <jakub@redhat.com>
899         PR c/97748
900         * c-common.h (warn_if_unused_value): Add quiet argument defaulted
901         to false.
902         * c-warn.c (warn_if_unused_value): Likewise.  Pass it down
903         recursively and just return true instead of warning if it is true.
904         Handle COMPLEX_EXPR.
906 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
908         * c-common.h (c_omp_adjust_map_clauses): New declaration.
909         * c-omp.c (struct map_clause): Helper type for c_omp_adjust_map_clauses.
910         (c_omp_adjust_map_clauses): New function.
912 2020-11-09  Marek Polacek  <polacek@redhat.com>
914         DR 1914
915         * c-common.c (attribute_fallthrough_p): Tweak the warning
916         message.
918 2020-11-09  Patrick Palka  <ppalka@redhat.com>
920         * c-pragma.c (handle_pragma_diagnostic): Split the
921         unknown-option -Wpragmas diagnostic into a warning and a
922         subsequent note containing a spelling suggestion.  Avoid
923         computing the suggestion if -Wpragmas warnings are being
924         suppressed.
926 2020-11-09  Patrick Palka  <ppalka@redhat.com>
928         PR testsuite/97117
929         * c-indentation.c (get_visual_column): Remove location_t
930         parameter.  Move the column-tracking diagnostic code from here
931         to ...
932         (should_warn_for_misleading_indentation): ... here, before the
933         early exit for when the loci are not all distinct.  Don't pass a
934         location_t argument to get_visual_column.
935         (assert_get_visual_column_succeeds): Don't pass a location_t
936         argument to get_visual_column.
937         (assert_get_visual_column_fails): Likewise.
939 2020-11-08  Iain Sandoe  <iain@sandoe.co.uk>
941         * c-common.h (OBJC_IS_PATTR_KEYWORD): Add class to the list
942         of keywords accepted in @property attribute contexts.
943         * c-objc.h (enum objc_property_attribute_group): Add
944         OBJC_PROPATTR_GROUP_CLASS.
945         (enum objc_property_attribute_kind): Add
946         OBJC_PROPERTY_ATTR_CLASS.
948 2020-11-07  Iain Sandoe  <iain@sandoe.co.uk>
950         * c-common.c (c_common_reswords): Add 'atomic' property
951         attribute.
952         * c-common.h (enum rid): Add RID_PROPATOMIC for atomic
953         property attributes.
955 2020-11-07  Iain Sandoe  <iain@sandoe.co.uk>
957         * c-attribs.c (handle_nsobject_attribute): New.
958         * c.opt: Add WNSObject-attribute.
960 2020-11-06  Iain Sandoe  <iain@sandoe.co.uk>
962         * c-objc.h (enum objc_property_attribute_group): New
963         (enum objc_property_attribute_kind): New.
964         (OBJC_PROPATTR_GROUP_MASK): New.
965         (struct property_attribute_info): Small class encapsulating
966         parser output from property attributes.
967         (objc_prop_attr_kind_for_rid): New
968         (objc_add_property_declaration): Simplify interface.
969         * stub-objc.c (enum rid): Dummy type.
970         (objc_add_property_declaration): Simplify interface.
971         (objc_prop_attr_kind_for_rid): New.
973 2020-11-06  Nathan Sidwell  <nathan@acm.org>
975         * c-ada-spec.c (collect_ada_nodes): Rename
976         DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
977         (collect_ada_node): Likewise.
978         (dump_forward_type): Likewise.
979         * c-common.c (set_underlying_type): Rename
980         DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
981         (user_facing_original_type, c_common_finalize_early_debug): Likewise.
983 2020-11-06  Jakub Jelinek  <jakub@redhat.com>
985         * c-common.c (verify_sequence_points): Remove DEBUG_FUNCTION.
987 2020-11-05  Marek Polacek  <polacek@redhat.com>
989         PR c++/97675
990         * c.opt (Wexceptions): New option.
992 2020-11-05  Marek Polacek  <polacek@redhat.com>
994         PR c++/25814
995         * c.opt (Wvexing-parse): New option.
997 2020-11-04  Jakub Jelinek  <jakub@redhat.com>
999         PR c++/97670
1000         * c-omp.c (c_omp_split_clauses): Look through array reductions to find
1001         underlying decl to clear in the allocate_head bitmap.
1003 2020-11-04  Iain Sandoe  <iain@sandoe.co.uk>
1005         * c-objc.h (objc_non_constant_expr_p): New.
1006         * stub-objc.c (objc_non_constant_expr_p): New.
1008 2020-11-03  Nathan Sidwell  <nathan@acm.org>
1010         * c.opt (MQ,MT): Reword description to be make-agnostic.
1012 2020-11-02  Nathan Sidwell  <nathan@acm.org>
1014         * c-opts.c (c_common_post_options): Move var decl to its
1015         initialization point.
1017 2020-11-01  Iain Sandoe  <iain@sandoe.co.uk>
1019         * c-lex.c (c_lex_with_flags): When combining '@' with a
1020         keyword for Objective-C, combine the location ranges too.
1022 2020-10-30  Qing Zhao  <qing.zhao@oracle.com>
1023             H.J.Lu  <hjl.tools@gmail.com>
1025         * c-attribs.c (c_common_attribute_table): Add new attribute
1026         zero_call_used_regs.
1027         (handle_zero_call_used_regs_attribute): New function.
1029 2020-10-28  Marek Polacek  <polacek@redhat.com>
1031         PR c++/97573
1032         * c-opts.c (c_common_post_options): In C++20, turn on
1033         -Wdeprecated-enum-enum-conversion and
1034         -Wdeprecated-enum-float-conversion.
1035         * c.opt (Wdeprecated-enum-enum-conversion,
1036         Wdeprecated-enum-float-conversion): New options.
1037         (Wenum-conversion): Allow for C++ too.
1039 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
1041         * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALLOCATE.
1042         * c-omp.c: Include bitmap.h.
1043         (c_omp_split_clauses): Handle OMP_CLAUSE_ALLOCATE.
1045 2020-10-26  Ville Voutilainen  <ville.voutilainen@gmail.com>
1047         * c-common.c (__is_nothrow_assignable): New.
1048         (__is_nothrow_constructible): Likewise.
1049         * c-common.h (RID_IS_NOTHROW_ASSIGNABLE): New.
1050         (RID_IS_NOTHROW_CONSTRUCTIBLE): Likewise.
1052 2020-10-23  Jan Hubicka  <hubicka@ucw.cz>
1054         * c-common.c (c_common_finalize_early_debug): Update for new thunk api.
1056 2020-10-23  Marek Polacek  <polacek@redhat.com>
1058         PR c++/91741
1059         * c-common.c (verify_tree): Handle PAREN_SIZEOF_EXPR.
1060         (c_common_init_ts): Likewise.
1061         * c-common.def (PAREN_SIZEOF_EXPR): New tree code.
1062         * c-common.h (maybe_warn_sizeof_array_div): Declare.
1063         * c-warn.c (sizeof_pointer_memaccess_warning): Unwrap NOP_EXPRs.
1064         (maybe_warn_sizeof_array_div): New function.
1065         * c.opt (Wsizeof-array-div): New option.
1067 2020-10-23  Martin Sebor  <msebor@redhat.com>
1069         PR c/97463
1070         * c-warn.c (warn_parm_ptrarray_mismatch): Move null test earlier.
1072 2020-10-22  Martin Liska  <mliska@suse.cz>
1074         PR c/94722
1075         * c-attribs.c (handle_no_stack_protect_function_attribute): New.
1076         (handle_stack_protect_attribute): Add error message for a
1077         no_stack_protector function.
1079 2020-10-22  Martin Liska  <mliska@suse.cz>
1081         * c-cppbuiltin.c (c_cpp_builtins): Use the stack_protector enum.
1083 2020-10-22  Jan Hubicka  <hubicka@ucw.cz>
1085         * c-gimplify.c: Include tree-nested.h
1086         (c_genericize): Update for new nested function info.
1088 2020-10-14  Martin Sebor  <msebor@redhat.com>
1090         PR c/97413
1091         * c-attribs.c (build_attr_access_from_parms): Wrap chain of VLA
1092         bounds in an extra list.
1094 2020-10-05  Richard Biener  <rguenther@suse.de>
1095             Jakub Jelinek  <jakub@redhat.com>
1097         PR c++/97197
1098         * c-pretty-print.c: Include langhooks.h.
1099         (c_pretty_printer::postfix_expression): Handle TARGET_MEM_REF as
1100         expression.
1101         (c_pretty_printer::expression): Handle TARGET_MEM_REF as
1102         unary_expression.
1103         (c_pretty_printer::unary_expression): Handle TARGET_MEM_REF.
1105 2020-09-30  Martin Sebor  <msebor@redhat.com>
1107         PR middle-end/97189
1108         * c-attribs.c (append_access_attr): Use the function declaration
1109         location for a warning about an attribute access argument.
1111 2020-09-29  Marek Polacek  <polacek@redhat.com>
1113         PR c++/94695
1114         * c.opt (Wrange-loop-construct): New option.
1116 2020-09-23  Martin Sebor  <msebor@redhat.com>
1118         PR c/97131
1119         * c-warn.c (warn_parm_ptrarray_mismatch): Handle more invalid input.
1121 2020-09-23  Marek Polacek  <polacek@redhat.com>
1123         PR c/97125
1124         * c-gimplify.c (c_genericize): Only call do_warn_duplicated_branches_r
1125         after loops and other structured control constructs have been lowered.
1127 2020-09-22  Jakub Jelinek  <jakub@redhat.com>
1129         * c.opt (Wbuiltin-declaration-mismatch): Fix typo in variable name:
1130         warn_builtin_declaraion_mismatch -> warn_builtin_declaration_mismatch.
1132 2020-09-21  Marek Polacek  <polacek@redhat.com>
1134         * c.opt (Wctad-maybe-unsupported): New option.
1136 2020-09-19  Martin Sebor  <msebor@redhat.com>
1138         PR c/50584
1139         * c-common.h (warn_parm_array_mismatch): Declare new function.
1140         (has_attribute): Move declaration of an existing function.
1141         (build_attr_access_from_parms): Declare new function.
1142         * c-warn.c (parm_array_as_string): Define new function.
1143         (plus_one):  Define new function.
1144         (warn_parm_ptrarray_mismatch): Define new function.
1145         (warn_parm_array_mismatch):  Define new function.
1146         (vla_bound_parm_decl): New function.
1147         * c.opt (-Warray-parameter, -Wvla-parameter): New options.
1148         * c-pretty-print.c (pp_c_type_qualifier_list): Don't print array type
1149         qualifiers here...
1150         (c_pretty_printer::direct_abstract_declarator): ...but instead print
1151         them in brackets here.  Also print [static].  Strip extraneous
1152         expressions from VLA bounds.
1154 2020-09-19  Martin Sebor  <msebor@redhat.com>
1156         PR c/50584
1157         * c-attribs.c (c_common_attribute_table): Add "arg spec" attribute.
1158         (handle_argspec_attribute): New function.
1159         (get_argument, get_argument_type): New functions.
1160         (append_access_attrs): Add overload.  Handle internal attribute
1161         representation in addition to external.
1162         (handle_access_attribute): Handle internal attribute representation
1163         in addition to external.
1164         (build_attr_access_from_parms): New function.
1166 2020-09-19  Sandra Loosemore  <sandra@codesourcery.com>
1168         * c-gimplify.c (genericize_c_loop): Rewrite to match
1169         c_finish_loop in c-typeck.c.
1171 2020-09-19  Sandra Loosemore  <sandra@codesourcery.com>
1173         * c-common.c (c_block_may_fallthrough): New, split from
1174         cxx_block_may_fallthrough in the cp front end.
1175         (c_common_init_ts): Move handling of loop and switch-related
1176         statements here from the cp front end.
1177         * c-common.def (FOR_STMT, WHILE_STMT, DO_STMT): Move here from
1178         cp front end.
1179         (BREAK_STMT, CONTINUE_STMT, SWITCH_STMT): Likewise.
1180         * c-common.h (c_block_may_fallthru): Declare.
1181         (bc_state_t): Move here from cp front end.
1182         (save_bc_state, restore_bc_state): Declare.
1183         (c_genericize_control_stmt): Declare.
1184         (WHILE_COND, WHILE_BODY): Likewise.
1185         (DO_COND, DO_BODY): Likewise.
1186         (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY, FOR_SCOPE): Likewise.
1187         (SWITCH_STMT_COND, SWITCH_STMT_BODY): Likewise.
1188         (SWITCH_STMT_TYPE, SWITCH_STMT_SCOPE): Likewise.
1189         (SWITCH_STMT_ALL_CASES_P, SWITCH_STMT_NO_BREAK_P): Likewise.
1190         (LABEL_DECL_BREAK, LABEL_DECL_CONTINUE): Likewise.
1191         * c-dump.c (dump_stmt): Copy from cp front end.
1192         (c_dump_tree): Move code to handle structured loop and switch
1193         tree nodes here from cp front end.
1194         * c-gimplify.c: Adjust includes.
1195         (enum bc_t, bc_label, begin_bc_block, finish_bc_block): Move from
1196         cp front end.
1197         (save_bc_state, restore_bc_state): New functions using old code
1198         from cp front end.
1199         (get_bc_label, expr_loc_or_loc): Move from cp front end.
1200         (genericize_c_loop): Move from cp front end.
1201         (genericize_for_stmt, genericize_while_stmt): Likewise.
1202         (genericize_do_stmt, genericize_switch_stmt): Likewise.
1203         (genericize_continue_stmt, genericize_break_stmt): Likewise.
1204         (genericize_omp_for_stmt): Likewise.
1205         (c_genericize_control_stmt): New function using code split from
1206         cp front end.
1207         (c_genericize_control_r): New.
1208         (c_genericize): Call walk_tree with c_genericize_control_r.
1209         * c-pretty-print.c (c_pretty_printer::statement): Move code to handle
1210         structured loop and switch tree nodes here from cp front end.
1212 2020-09-17  Patrick Palka  <ppalka@redhat.com>
1214         PR c/80076
1215         * c-indentation.c (should_warn_for_misleading_indentation): Move
1216         declarations of local variables closer to their first use.
1217         Handle virtual token locations by resolving them to their
1218         respective macro expansion points.  If all three tokens are
1219         produced from the same macro expansion, then instead use their
1220         loci within the macro definition.
1222 2020-09-16  Martin Sebor  <msebor@redhat.com>
1224         PR c/78666
1225         PR c/96126
1226         * c-attribs.c (validate_attr_args): New function.
1227         (validate_attr_arg): Same.
1228         (handle_section_attribute): Call it.  Introduce a local variable.
1229         (handle_alloc_size_attribute):  Same.
1230         (handle_alloc_align_attribute): Same.
1232 2020-09-14  Jakub Jelinek  <jakub@redhat.com>
1234         * c-attribs.c (handle_optimize_attribute): Adjust
1235         cl_optimization_save, cl_optimization_restore and
1236         build_optimization_node callers.
1237         * c-pragma.c (handle_pragma_optimize): Adjust
1238         build_optimization_node caller.
1239         (handle_pragma_push_options): Adjust
1240         build_optimization_node and build_target_option_node callers.
1241         (handle_pragma_pop_options, handle_pragma_reset_options):
1242         Adjust cl_optimization_restore callers.
1244 2020-08-28  Martin Sebor  <msebor@redhat.com>
1246         * c.opt (Wstringop-overread): New option.
1248 2020-08-11  Jakub Jelinek  <jakub@redhat.com>
1250         PR c/96545
1251         * c-common.c (get_atomic_generic_size): Require that first argument's
1252         type points to a complete type and use tree_fits_uhwi_p instead of
1253         just INTEGER_CST TREE_CODE check for the TYPE_SIZE_UNIT.
1255 2020-07-31  Martin Sebor  <msebor@redhat.com>
1257         PR c++/96003
1258         * c-common.c (check_function_arguments_recurse): Return early when
1259         no-warning bit is set.
1261 2020-07-31  Richard Biener  <rguenther@suse.de>
1263         PR debug/96383
1264         * c-common.h (c_common_finalize_early_debug): Declare.
1265         * c-common.c: Include debug.h.
1266         (c_common_finalize_early_debug): finalize_early_debug langhook
1267         implementation generating debug for extern declarations.
1269 2020-07-27  Nathan Sidwell  <nathan@acm.org>
1271         * c-common.c (try_to_locate_new_include_insertion_point): Use
1272         strcmp, not pointer equality.
1274 2020-07-25  Martin Sebor  <msebor@redhat.com>
1276         PR c++/96310
1277         * c-common.c (check_nonnull_arg): Print note only when warning was
1278         issued.
1280 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
1282         * c-omp.c (c_finish_omp_critical): Check for no name but
1283         nonzero hint provided.
1285 2020-07-20  Jason Merrill  <jason@redhat.com>
1287         * c-cppbuiltin.c (c_cpp_builtins): Update
1288         __cpp_nontype_template_args for C++20.
1290 2020-07-20  Martin Sebor  <msebor@redhat.com>
1292         PR c/96249
1293         * c.opt: Remove stray text.
1295 2020-07-14  Lewis Hyatt  <lhyatt@gmail.com>
1297         PR other/86904
1298         * c-indentation.c (should_warn_for_misleading_indentation): Get
1299         global tabstop from the new source.
1300         * c-opts.c (c_common_handle_option): Remove handling of -ftabstop, which
1301         is now a common option.
1302         * c.opt: Likewise.
1304 2020-07-08  Eric Botcazou  <ebotcazou@adacore.com>
1306         * c.opt (Wscalar-storage-order): Add explicit variable.
1308 2020-07-07  Nathan Sidwell  <nathan@acm.org>
1310         * c-opts.c (c_common_post_options): Add 'injecting' arg to
1311         cpp_read_main_file.
1312         (c_finish_options): Add linemap_line_start calls for builtin and cmd
1313         maps.  Force token position to line_table's highest line.
1314         * c-ppoutput.c (print_line_1): Refactor, print line zero.
1315         (cb_define): Always increment source line.
1317 2020-07-06  Martin Sebor  <msebor@redhat.com>
1319         PR c++/95984
1320         * c-common.c (check_function_nonnull): Avoid checking syntesized calls
1321         to stub lambda objects with null this pointer.
1322         (check_nonnull_arg): Handle C++ nullptr.
1324 2020-07-02  Jason Merrill  <jason@redhat.com>
1325             Jakub Jelinek  <jakub@redhat.com>
1327         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_consteval.
1329 2020-06-30  Jakub Jelinek  <jakub@redhat.com>
1331         PR c++/95963
1332         * c-common.c (check_function_arguments_recurse): Don't crash on
1333         calls to internal functions.
1335 2020-06-28  Martin Sebor  <msebor@redhat.com>
1337         PR c++/86568
1338         * c-common.c (struct nonnull_arg_ctx): Add members.
1339         (check_function_nonnull): Use nonnull_arg_ctx as argument.  Handle
1340         C++ member functions specially.  Consider the this pointer implicitly
1341         nonnull.
1342         (check_nonnull_arg): Use location of argument when available.
1343         (check_function_arguments): Use nonnull_arg_ctx as argument.
1345 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
1347         PR middle-end/95903
1348         * c-common.c (pointer_int_sum): Use TYPE_OVERFLOW_UNDEFINED instead of
1349         !TYPE_UNSIGNED check to see if we can apply distributive law and handle
1350         smaller precision intop operands separately.
1352 2020-06-26  Marek Polacek  <polacek@redhat.com>
1354         * c-opts.c (c_common_init_options): Default to gnu++17.
1356 2020-06-17  Jonathan Wakely  <jwakely@redhat.com>
1358         PR c/95378
1359         * c-common.c (get_atomic_generic_size): Check cv-qualifiers in
1360         pointer arguments.
1362 2020-06-16  Jakub Jelinek  <jakub@redhat.com>
1364         * c-common.h (c_omp_check_loop_iv_exprs): Add an int argument.
1365         * c-omp.c (struct c_omp_check_loop_iv_data): Add maybe_nonrect and
1366         idx members.
1367         (c_omp_is_loop_iterator): New function.
1368         (c_omp_check_loop_iv_r): Use it.  Add support for silent scanning
1369         if outer loop iterator is present.  Perform duplicate checking through
1370         hash_set in the function rather than expecting caller to do that.
1371         Pass NULL instead of d->ppset to walk_tree_1.
1372         (c_omp_check_nonrect_loop_iv): New function.
1373         (c_omp_check_loop_iv): Use it.  Fill in new members, allow
1374         non-rectangular loop forms, diagnose multiple associated loops with
1375         the same iterator.  Pass NULL instead of &pset to walk_tree_1.
1376         (c_omp_check_loop_iv_exprs): Likewise.
1378 2020-06-10  Martin Liska  <mliska@suse.cz>
1380         PR tree-optimization/92860
1381         * c-attribs.c (handle_optimize_attribute):
1382         Save global options and compare it after parsing of function
1383         attribute.
1384         * c-pragma.c (opt_stack::saved_global_options): New field.
1385         (handle_pragma_push_options): Save global_options.
1386         (handle_pragma_pop_options): Compare them after pop.
1388 2020-06-09  Jakub Jelinek  <jakub@redhat.com>
1390         PR c/95580
1391         * c-pretty-print.c (c_pretty_printer::unary_expression): Handle the
1392         case when MEM_REF's first argument has type pointer to incomplete type.
1394 2020-06-05  Jason Merrill  <jason@redhat.com>
1396         * c-pretty-print.c (pp_c_additive_expression): Handle negative
1397         operand to POINTER_PLUS_EXPR.
1399 2020-06-04  Martin Sebor  <msebor@redhat.com>
1401         PR middle-end/10138
1402         PR middle-end/95136
1403         * c-attribs.c (append_access_attrs): Handle attr_access::none.
1404         (handle_access_attribute): Same.
1406 2020-06-03  Mark Wielaard  <mark@klomp.org>
1408         * known-headers.cc (get_cp_stdlib_header_for_string_macro_name):
1409         New function.
1410         * known-headers.h (get_cp_stdlib_header_for_string_macro_name):
1411         New function declaration.
1413 2020-06-03  Mark Wielaard  <mark@klomp.org>
1415         * known-headers.cc (get_string_macro_hint): New function.
1416         (get_stdlib_header_for_name): Use get_string_macro_hint.
1417         (get_c_stdlib_header_for_string_macro_name): New function.
1418         * known-headers.h (get_c_stdlib_header_for_string_macro_name):
1419         New function declaration.
1421 2020-06-03  Tobias Burnus  <tobias@codesourcery.com>
1423         * c-common.h (c_omp_predetermined_mapping): Declare.
1424         * c-omp.c (c_omp_predetermined_mapping): New.
1426 2020-05-22  Mark Wielaard  <mark@klomp.org>
1428         * known-headers.cc (get_stdlib_header_for_name): Add a new
1429         stdlib_hint array for stdbool and stdint.
1431 2020-05-22  Mark Wielaard  <mark@klomp.org>
1433         * known-headers.cc (get_stdlib_header_for_name): Return
1434         "<stdbool.h>" for "bool", "true" or "false" when STDLIB_C and
1435         flag_isoc99.
1437 2020-05-20  Nathan Sidwell  <nathan@acm.org>
1439         * c-common.c (try_to_locate_new_include_insertion_point): Revert change.
1441         * c-common.c (try_to_locate_new_include_insertion_point): Use
1442         strcmp to compare filenames.
1443         * c-lex.c (init_c_lex): Move declaration to initialization.
1444         * c-opts.c (handle_deferred_opts): Move cpp_get_deps call into
1445         deferred count loop.
1447 2020-05-15  Jason Merrill  <jason@redhat.com>
1449         * c-opts.c (set_std_cxx20): Set flag_coroutines.
1451 2020-05-13  Jason Merrill  <jason@redhat.com>
1453         * c.opt (std=c++20): Make c++2a the alias.
1454         (std=gnu++20): Likewise.
1455         * c-common.h (cxx_dialect): Change cxx2a to cxx20.
1456         * c-opts.c: Adjust.
1457         * c-cppbuiltin.c: Adjust.
1458         * c-ubsan.c: Adjust.
1459         * c-warn.c: Adjust.
1461 2020-05-12  Eric Botcazou  <ebotcazou@adacore.com>
1463         * c-ada-spec.c (dump_ads): Output pragma Warnings ("U"); on entry.
1465 2020-05-08  Nathan Sidwell  <nathan@acm.org>
1467         Reimplement directives only processing.
1468         * c-ppoutput.c (token_streamer): Ne.
1469         (directives_only_cb): New.  Swallow ...
1470         (print_lines_directives_only): ... this.
1471         (scan_translation_unit_directives_only): Reimplment using the
1472         published interface.
1474 2020-05-07  Marek Polacek  <polacek@redhat.com>
1476         * c-format.c (badwords): Add "nonstatic".
1478 202-05-07  Jakub Jelinek  <jakub@redhat.com>
1480         PR c/94968
1481         * c-common.c (speculation_safe_value_resolve_params): Return false if
1482         error_operand_p (val2).
1483         (resolve_overloaded_builtin) <case BUILT_IN_SPECULATION_SAFE_VALUE_N>:
1484         Remove extraneous semicolon.
1486 2020-05-06  qing zhao  <qing.zhao@oracle.com>
1488         PR c/94230
1489         * c-indentation.c (get_visual_column): Add a hint to use the new
1490         -flarge-source-files option.
1492 2020-05-05  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
1494         * c-attribs.c (handle_vector_size_attribute): Add attribute
1495         nonnull for argument args in order to silence warning of
1496         uninitialized variable usage.  Since this is local to the
1497         compilation unit and thus cannot be checked at call sides by the
1498         compiler, added an assert statement in order to verify this.
1500 2020-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1502         PR target/93492
1503         * c-attribs.c (handle_patchable_function_entry_attribute): Limit
1504         value to USHRT_MAX (65535).
1506 2020-04-29  Jakub Jelinek  <jakub@redhat.com>
1508         * c-format.c (PP_FORMAT_CHAR_TABLE): Add %{ and %}.
1510 2020-04-27  Jakub Jelinek  <jakub@redhat.com>
1512         PR c/94755
1513         * c-common.c (resolve_overloaded_builtin): Return error_mark_node for
1514         fncode == BUILT_IN_NONE before initialization of first_param.
1516 2020-04-23  Marek Polacek  <polacek@redhat.com>
1518         PR c++/94733
1519         * c-attribs.c (find_tm_attribute): Use get_attribute_name instead of
1520         TREE_PURPOSE.
1522 2020-04-14  Patrick Palka  <ppalka@redhat.com>
1524         PR c++/85278
1525         * c-pretty-print.c (pp_c_pointer) <case REFERENCE_TYPE>: Print a double
1526         ampersand if it's an rvalue reference type.
1528 2020-04-13  Martin Sebor  <msebor@redhat.com>
1530         PR c/92326
1531         * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator): Avoid
1532         printing array bound for flexible array members.
1534 2020-04-13  Iain Sandoe  <iain@sandoe.co.uk>
1536         * c-cppbuiltin.c (c_cpp_builtins): Update coroutines builtin
1537         define, per n4861.
1539 2020-04-02  Richard Biener  <rguenther@suse.de>
1541         PR c/94392
1542         * c-opts.c (c_common_post_options): Enable -ffinite-loops
1543         for -O2 and C++11 or newer.
1545 2020-03-28  Patrick Palka  <ppalka@redhat.com>
1547         * c.opt: Add -fconcepts-diagnostics-depth.
1549 2020-03-27  Martin Sebor  <msebor@redhat.com>
1551         PR c++/94346
1552         * c-attribs.c (handle_copy_attribute): Avoid passing expressions
1553         to decl_attributes.  Make handling of different kinds of entities
1554         more robust.
1556 2020-03-27  Martin Sebor  <msebor@redhat.com>
1558         PR c++/94098
1559         * c-attribs.c (handle_access_attribute): Avoid setting TYPE_ATTRIBUTES
1560         here.
1562 2020-03-23  Jakub Jelinek  <jakub@redhat.com>
1564         PR c++/91993
1565         * c-warn.c (warnings_for_convert_and_check): For expr and/or
1566         result being COMPOUND_EXPRs, skip to ultimate rhs.
1568 2020-03-20  Richard Sandiford  <richard.sandiford@arm.com>
1570         PR middle-end/94072
1571         * c-common.c (c_common_type_for_mode): Before using a registered
1572         built-in type, check that the vectorness of the type matches
1573         the vectorness of the mode.
1575 2020-03-17  Jakub Jelinek  <jakub@redhat.com>
1577         * c-common.c (resolve_overloaded_builtin): Fix up duplicated word
1578         issue in a diagnostic message.
1580 2020-03-15  Lewis Hyatt  <lhyatt@gmail.com>
1582         * c.opt: Avoid redundancy in the help text.
1584 2020-03-02  Marek Polacek  <polacek@redhat.com>
1586         PR c++/93958 - add missing -std=gnu++20.
1587         * c.opt: Add -std=gnu++20.
1589 2020-03-01  Martin Sebor  <msebor@redhat.com>
1591         PR c++/92721
1592         * c-attribs.c (append_access_attrs): Correctly handle attribute.
1593         (handle_access_attribute): Same.
1595 2020-02-25  Jakub Jelinek  <jakub@redhat.com>
1597         PR c/93858
1598         * c-pragma.c (handle_pragma_diagnostic): Add missing ? after
1599         "did you mean" hint in diagnostics.
1601 2020-02-15  Jason Merrill  <jason@redhat.com>
1603         * c.opt: Add -std=c++20.
1605 2020-02-14  Eric Botcazou  <ebotcazou@adacore.com>
1607         * c-ada-spec.c: Include bitmap.h.
1608         (dump_ada_double_name): Rename into...
1609         (dump_anonymous_type_name): ...this.  Always use the TYPE_UID.
1610         (dump_ada_array_type): Adjust to above renaming.  Robustify.
1611         (dump_nested_types_1): New function copied from...  Add dumped_types
1612         parameter and pass it down to dump_nested_type.
1613         (dump_nested_types): ...this.  Remove parent parameter.  Just call
1614         dump_nested_types_1 on an automatic bitmap.
1615         (dump_nested_type): Add dumped_types parameter.
1616         <ARRAY_TYPE>: Do not dump it if already present in dumped_types.
1617         Adjust recursive calls and adjust to above renaming.
1618         (dump_ada_declaration): Adjust call to dump_nested_types.
1619         Tidy up and adjust to above renaming.
1620         (dump_ada_specs): Initialize and release bitmap obstack.
1622 2020-02-10  Martin Sebor  <msebor@redhat.com>
1624         PR c/93640
1625         * c-attribs.c (handle_access_attribute): Correct off-by-one mistakes.
1627 2020-02-10  Jakub Jelinek  <jakub@redhat.com>
1629         PR other/93641
1630         * c-format.c (check_plain): Fix up last argument of strncasecmp.
1631         Remove useless extra test.
1633 2020-02-03  Julian Brown  <julian@codesourcery.com>
1634             Tobias Burnus  <tobias@codesourcery.com>
1636         * c-cppbuiltin.c (c_cpp_builtins): Update _OPENACC define to 201711.
1638 2020-01-29  Jason Merrill  <jason@redhat.com>
1640         PR c++/89357
1641         * c-attribs.c (check_cxx_fundamental_alignment_constraints): Remove.
1643 2020-01-23  Jason Merrill  <jason@redhat.com>
1645         * c-warn.c (conversion_warning): Change -Wsign-conversion handling.
1647 2020-01-23  Martin Sebor  <msebor@redhat.com>
1649         PR c/84919
1650         * c-common.c (check_function_arguments): Avoid overlap checking
1651         of sprintf functions.
1653 2020-01-22  Jason Merrill  <jason@redhat.com>
1655         PR testsuite/93391 - PR 40752 test fails with unsigned plain char.
1656         PR c++/40752
1657         * c-warn.c (conversion_warning): Check operands only after checking
1658         the whole expression.  Don't check second operand of + for sign.
1660 2020-01-21  Jason Merrill  <jason@redhat.com>
1661             Manuel López-Ibáñez  <manu@gcc.gnu.org>
1663         PR c++/40752 - useless -Wconversion with short +=.
1664         * c.opt (-Warith-conversion): New.
1665         * c-warn.c (conversion_warning): Recurse for operands of
1666         operators.  Only warn about the whole expression with
1667         -Warith-conversion.
1669 2020-01-21  Jason Merrill  <jason@redhat.com>
1671         * c-common.c (unsafe_conversion_p): Don't warn, return UNSAFE_SIGN.
1672         * c-warn.c (conversion_warning): Warn about UNSAFE_SIGN.
1674 2020-01-20  Nathan Sidwell  <nathan@acm.org>
1676         PR preprocessor/80005
1677         * c-cppbuiltins.c (c_cpp_builtins): Don't define __has_include{,_next}.
1679 2020-01-18  Iain Sandoe  <iain@sandoe.co.uk>
1681         * c-common.c (co_await, co_yield, co_return): New.
1682         * c-common.h (RID_CO_AWAIT, RID_CO_YIELD,
1683         RID_CO_RETURN): New enumeration values.
1684         (D_CXX_COROUTINES): Bit to identify coroutines are active.
1685         (D_CXX_COROUTINES_FLAGS): Guard for coroutine keywords.
1686         * c-cppbuiltin.c (__cpp_coroutines): New cpp define.
1687         * c.opt (fcoroutines): New command-line switch.
1689 2020-01-10  David Malcolm  <dmalcolm@redhat.com>
1691         * c-format.c (local_event_ptr_node): New.
1692         (PP_FORMAT_CHAR_TABLE): Add entry for "%@".
1693         (init_dynamic_diag_info): Initialize local_event_ptr_node.
1694         * c-format.h (T_EVENT_PTR): New define.
1696 2020-01-10  Martin Sebor  <msebor@redhat.com>
1698         PR c/93132
1699         * c-attribs.c (append_access_attrs): Validate against the translated
1700         access string rather than the human-readable representation.
1702 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
1704         Update copyright years.
1706 2019-12-20  Eric Botcazou  <ebotcazou@adacore.com>
1708         * c-ada-spec.h (decl_sloc): Delete.
1709         * c-ada-spec.c (decl_sloc): Make static.
1711 2019-12-19  Julian Brown  <julian@codesourcery.com>
1713         * c-common.h (c_omp_map_clause_name): Add prototype.
1714         * c-omp.c (c_omp_map_clause_name): New function.
1715         * c-pragma.h (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ATTACH and
1716         PRAGMA_OACC_CLAUSE_DETACH.
1718 2019-12-19  Julian Brown  <julian@codesourcery.com>
1719             Maciej W. Rozycki  <macro@codesourcery.com>
1720             Tobias Burnus  <tobias@codesourcery.com>
1721             Thomas Schwinge  <thomas@codesourcery.com>
1723         * c-pragma.h (pragma_omp_clause): Add
1724         PRAGMA_OACC_CLAUSE_NO_CREATE.
1726 2019-12-17  Martin Sebor  <msebor@redhat.com>
1728         PR c++/61339
1729         * c.opt (-Wmismatched-tags, -Wredundant-tags): New options.
1731 2019-12-11  David Malcolm  <dmalcolm@redhat.com>
1733         * c-pretty-print.c (c_pretty_printer::clone): New vfunc
1734         implementation.
1735         * c-pretty-print.h (c_pretty_printer::clone): New vfunc decl.
1737 2019-12-09  David Malcolm  <dmalcolm@redhat.com>
1739         * c-format.c (range_label_for_format_type_mismatch::get_text):
1740         Replace label_text ctor called with true with label_text::take.
1742 2019-12-09  David Malcolm  <dmalcolm@redhat.com>
1744         * c-format.c (selftest::test_type_mismatch_range_labels): Remove
1745         initial newline from expected outputs.
1746         * c-opts.c (c_diagnostic_finalizer): Add pp_newline call before
1747         call to diagnostic_show_locus.
1749 2019-12-06  Jakub Jelinek  <jakub@redhat.com>
1751         * c-cppbuiltin.c (c_cpp_builtins): Don't define __cpp_consteval for
1752         now.
1754 2019-12-05  Marek Polacek  <polacek@redhat.com>
1755             Jakub Jelinek  <jakub@redhat.com>
1757         PR c++/91353 - P1331R2: Allow trivial default init in constexpr contexts.
1758         * c-cppbuiltin.c (c_cpp_builtins): Adjust the value of __cpp_constexpr.
1760 2019-12-05  Marek Polacek  <polacek@redhat.com>
1762         PR c++/92271 - make __is_same alias for __is_same_as.
1763         * c-common.c: Add __is_same, an alias for __is_same_as.
1765 2019-12-03  Marek Polacek  <polacek@redhat.com>
1767         PR c++/91363 - P0960R3: Parenthesized initialization of aggregates.
1768         * c-cppbuiltin.c (c_cpp_builtins): Predefine
1769         __cpp_aggregate_paren_init=201902 for -std=c++2a.
1771 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
1773         * c-attribs.c (handle_symver_attribute): New function
1774         (c_common_attributes): Add symver.
1776 2019-11-30  Richard Sandiford  <richard.sandiford@arm.com>
1778         * c-common.c (pointer_int_sum): Use verify_type_context to check
1779         whether the target allows pointer arithmetic for the types involved.
1780         (c_sizeof_or_alignof_type, c_alignof_expr): Use verify_type_context
1781         to check whether the target allows sizeof and alignof operations
1782         for the types involved.
1784 2019-11-27  Jason Merrill  <jason@redhat.com>
1786         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
1788 2019-11-26  Jakub Jelinek  <jakub@redhat.com>
1790         PR c++/61414
1791         * c-attribs.c (handle_mode_attribute): Add mode attribute to
1792         ENUMERAL_TYPEs.
1794 2019-11-25  Joseph Myers  <joseph@codesourcery.com>
1796         PR c/91985
1797         * c-common.c (c_common_type_for_mode): Handle decimal
1798         floating-point types being NULL_TREE.
1799         * c-format.c (get_format_for_type_1): Handle specified types being
1800         NULL_TREE.
1801         * c-lex.c (interpret_float): Give an error for decimal
1802         floating-point constants when decimal floating-point not
1803         supported.
1805 2019-11-23  Jakub Jelinek  <jakub@redhat.com>
1807         PR middle-end/83859
1808         * c-attribs.c (append_access_attrs): Avoid buffer overflow.  Avoid
1809         memory leak.  Use XNEWVEC macro.  Use auto_diagnostic_group to
1810         group warning with inform together.
1811         (handle_access_attribute): Formatting fix.
1813 2019-11-22  Jakub Jelinek  <jakub@redhat.com>
1815         PR c/90677
1816         * c-common.h (identifier_global_tag): Declare.
1817         * c-format.c (get_pointer_to_named_type): Renamed to ...
1818         (get_named_type): ... this.  Use identifier_global_tag instead of
1819         identifier_global_value, handle the return value being a TYPE_P.
1820         (init_dynamic_diag_info): Adjust get_pointer_to_named_type callers
1821         to call get_named_type instead.  Formatting fixes.
1823         Implement P1902R1, Missing feature-test macros 2017-2019.
1824         * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_init_captures
1825         and __cpp_generic_lambdas for -std=c++2a.  Define
1826         __cpp_designated_initializers, __cpp_constexpr_in_decltype and
1827         __cpp_consteval for -std=c++2a.  Remove a FIXME comment about
1828         __cpp_concepts for -std=c++2a.
1830 2019-11-22  Martin Sebor  <msebor@redhat.com>
1832         PR middle-end/83859
1833         * c-attribs.c (handle_access_attribute): New function.
1834         (c_common_attribute_table): Add new attribute.
1835         (get_argument_type): New function.
1836         (append_access_attrs): New function.
1837         (get_nonnull_operand): Rename...
1838         (get_attribute_operand): ...to this.
1839         * c-common.c (get_nonnull_operand): Rename...
1840         (get_attribute_operand): ...to this.
1842 2019-11-21  Joseph Myers  <joseph@codesourcery.com>
1844         * c-attribs.c (handle_fallthrough_attribute): Use pedwarn instead
1845         of warning.
1847 2019-11-19  Joseph Myers  <joseph@codesourcery.com>
1849         * c-common.c (attribute_fallthrough_p): In C, use pedwarn not
1850         warning for standard attributes mixed with fallthrough attributes.
1852 2019-11-15  Joseph Myers  <joseph@codesourcery.com>
1854         * c-attribs.c (handle_fallthrough_attribute): Remove static.
1855         * c-common.h (handle_fallthrough_attribute): Declare.
1857 2019-11-15  Joseph Myers  <joseph@codesourcery.com>
1859         * c-attribs.c (handle_deprecated_attribute): Remove static.
1860         * c-common.h (handle_deprecated_attribute): Declare.
1862 2019-11-14  Joseph Myers  <joseph@codesourcery.com>
1864         * c-lex.c (lex_charconst): Make CPP_UTF8CHAR constants unsigned
1865         char for C.
1867 2019-11-14  Jakub Jelinek  <jakub@redhat.com>
1869         * c-omp.c (c_omp_check_context_selector): Add nvidia to the list of
1870         valid vendors.
1872         * c-omp.c (c_omp_check_context_selector): Handle name lists
1873         containing string literals.  Don't diagnose atomic_default_mem_order
1874         with multiple props.
1876 2019-11-13  Joseph Myers  <joseph@codesourcery.com>
1878         * c-cppbuiltin.c (builtin_define_float_constants): Also define
1879         NORM_MAX constants.  Update call to get_max_float.
1880         (LAZY_HEX_FP_VALUES_CNT): Update value to include NORM_MAX
1881         constants.
1883 2019-11-13  Eric Botcazou  <ebotcazou@adacore.com>
1885         * c-ada-spec.c (get_underlying_decl): Do not look through typedefs.
1886         (dump_forward_type): Do not generate a declaration for function types.
1887         (dump_nested_type) <ARRAY_TYPE>: Do not generate a nested declaration
1888         of the component type if it is declared in another file.
1890 2019-11-12  Martin Liska  <mliska@suse.cz>
1892         * c-opts.c (c_common_post_options):
1893         Use SET_OPTION_IF_UNSET.
1895 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
1896             Frederik Harwath  <frederik@codesourcery.com>
1898         gcc/c-family/
1899         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_SERIAL enumeration
1900         constant.
1901         * c-pragma.c (oacc_pragmas): Add "serial" entry.
1903 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
1905         * c-common.h (gnu_vector_type_p): New function.
1906         * c-common.c (c_build_vec_perm_expr): Require __builtin_shuffle
1907         vectors to satisfy gnu_vector_type_p.
1908         (c_build_vec_convert): Likewise __builtin_convertvector.
1909         (convert_vector_to_array_for_subscript): Likewise when applying
1910         implicit vector to array conversion.
1911         (scalar_to_vector): Likewise when converting vector-scalar
1912         operations to vector-vector operations.
1914 2019-11-08  Joseph Myers  <joseph@codesourcery.com>
1916         * c.opt (Wold-style-definition): Initialize to -1.
1917         * c-opts.c (c_common_post_options): Set warn_old_style_definition
1918         to flag_isoc2x if not set explicitly.
1920 2019-11-07  Joseph Myers  <joseph@codesourcery.com>
1922         * c-attribs.c (parse_tm_stmt_attr): Handle scoped attributes.
1924 2019-11-05  Jason Merrill  <jason@redhat.com>
1926         * c-opts.c (c_common_post_options): -fconcepts-ts implies
1927         -fconcepts.
1929 2019-11-04  Kamlesh Kumar  <kamleshbhalui@gmail.com>
1931         * c-opts.c (c_common_post_options): Update
1932         latest_abi_version.
1934 2019-11-02  Jakub Jelinek  <jakub@redhat.com>
1936         * c-common.h (c_omp_get_context_selector): Remove.
1937         * c-omp.c (c_omp_get_context_selector): Moved to omp-general.c
1938         and renamed to omp_get_context_selector.
1940         * c-omp.c (c_omp_mark_declare_variant): Use
1941         omp_context_selector_set_compare.
1943         PR c++/88335 - Implement P1073R3: Immediate functions
1944         * c-common.h (enum rid): Add RID_CONSTEVAL.
1945         * c-common.c (c_common_reswords): Add consteval.
1947 2019-11-01  Martin Sebor  <msebor@redhat.com>
1949         PR middle-end/91679
1950         PR middle-end/91647
1951         PR middle-end/91463
1952         PR middle-end/92312
1953         * c-pretty-print.c (direct_abstract_declarator): Print
1954         bound in zero-length arrays.
1955         * c.opt (-Wzero-length-bounds): New option.
1957 2019-10-30  Nathan Sidwell  <nathan@acm.org>
1959         * c-cppbuiltin.c (c_cpp_builtins): Add 'L' suffix to feature
1960         macros.
1962 2019-10-28  Martin Sebor  <msebor@redhat.com>
1964         PR c/66970
1965         * c-common.c (c_common_nodes_and_builtins): Call c_define_builtins
1966         even when only preprocessing.
1967         * c-common.h (names_builtin_p): Declare new function.
1968         * c-lex.c (init_c_lex): Set has_builtin.
1969         (c_common_has_builtin): Define a new function.
1970         * c-ppoutput.c (init_pp_output): Set has_builtin.
1972 2019-10-24  Jakub Jelinek  <jakub@redhat.com>
1974         * c-common.h (c_omp_context_selector_matches): Remove.
1975         * c-omp.c (c_omp_context_selector_matches): Remove.
1976         * c-attribs.c (c_common_attribute_table): Add
1977         "omp declare target {host,nohost,block}" attributes.
1979 2019-10-17  JeanHeyd Meneide  <phdofthehouse@gmail.com>
1981         * c-lex.c (c_common_has_attribute): Update nodiscard value.
1983 2019-10-14  Richard Sandiford  <richard.sandiford@arm.com>
1985         * c-common.h (user_facing_original_type_p): Declare.
1986         * c-common.c: Include c-spellcheck.h.
1987         (user_facing_original_type_p): New function.
1989 2019-10-12  Jakub Jelinek  <jakub@redhat.com>
1991         * c-common.h (c_omp_mark_declare_variant,
1992         c_omp_context_selector_matches): Declare.
1993         * c-omp.c: Include attribs.h, gimplify.h, cgraph.h, symbol-summary.h
1994         and hsa-common.h.
1995         (c_omp_get_context_selector): Support second argument NULL.
1996         (c_omp_mark_declare_variant, c_omp_context_selector_matches): New
1997         functions.
1998         * c-attribs.c (c_common_attribute_table): Remove "omp declare variant"
1999         attribute, add "omp declare variant base" and
2000         "omp declare variant variant" attributes.
2002 2019-10-11  Joseph Myers  <joseph@codesourcery.com>
2004         * c.opt (Wc11-c2x-compat): Add CPP(cpp_warn_c11_c2x_compat)
2005         CppReason(CPP_W_C11_C2X_COMPAT).
2007 2019-10-11  Joseph Myers  <joseph@codesourcery.com>
2009         * c-common.c (c_common_reswords): Do not use D_EXT for _Decimal32,
2010         _Decimal64 and _Decimal128.
2012 2019-10-10  Joseph Myers  <joseph@codesourcery.com>
2014         * c-cppbuiltin.c (c_cpp_builtins): Do not define macros for DFP
2015         types if DFP not supported.
2017 2019-10-10  Jakub Jelinek  <jakub@redhat.com>
2019         * c-common.h (c_omp_check_context_selector,
2020         c_omp_get_context_selector): Declare.
2021         * c-omp.c (c_omp_declare_simd_clauses_to_numbers): Fix spelling
2022         in diagnostic message.
2023         (c_omp_check_context_selector, c_omp_get_context_selector): New
2024         functions.
2025         * c-attribs.c (c_common_attribute_table): Add "omp declare variant"
2026         attribute.
2027         (handle_omp_declare_variant_attribute): New function.
2029 2019-10-09  Martin Sebor  <msebor@redhat.com>
2031         PR tree-optimization/90879
2032         * c.opt (-Wstring-compare): New option.
2034 2019-10-08  Andrew Sutton  <asutton@lock3software.com>
2035             Jason Merrill  <jason@redhat.com>
2037         Update the concepts implementation to conform to the C++20
2038         specification, improve compile times, and generally clean up
2039         the implementation.
2041         * c-cppbuiltin.c (c_cpp_builtins): Use new feature test values for
2042         concepts when -std=c++2a. Bump __cpp_concepts to 201907.
2043         * c.opt: Add -Wconcepts-ts.
2044         * c-opts.c (c_common_post_options): Warn when -fconcepts is used
2045         with -std=c++2a. Disable warning for -fconcepts in C++20 mode.
2046         (set_std_cxx2a): Enable concepts by default.
2048 2019-10-08  Joseph Myers  <joseph@codesourcery.com>
2050         * c-opts.c (c_common_post_options): Set
2051         -fno-fp-int-builtin-inexact for C2X.
2053 2019-10-05  Jakub Jelinek  <jakub@redhat.com>
2055         PR c++/91369 - Implement P0784R7: constexpr new
2056         * c-cppbuiltin.c (c_cpp_builtins): Predefine
2057         __cpp_constexpr_dynamic_alloc=201907 for -std=c++2a.
2059 2019-10-04  Joseph Myers  <joseph@codesourcery.com>
2061         PR c/82752
2062         * c-format.c (C_STD_VER): Handle C2x.
2063         (C_STD_NAME): Likewise.
2064         (strftime_flag_specs): Add 'O' modifier with 'p' flag.
2065         (time_char_table): Use separate entry for 'B' and 'b', with 'O'
2066         modifier allowed and 'p' flag.
2067         * c-format.h (enum format_std_version): Add STD_C2X.
2068         (struct format_char_info): Mention 'p' in comment on flags2.
2070 2019-10-01  David Malcolm  <dmalcolm@redhat.com>
2072         * c-opts.c (c_diagnostic_finalizer): Temporarily clear prefix when
2073         calling diagnostic_show_locus, rather than destroying it afterwards.
2075 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
2077         PR c++/91925
2078         * c-warn.c (check_alignment_of_packed_member): Ignore FIELD_DECLs
2079         with NULL DECL_FIELD_OFFSET.
2081 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
2083         * c-pretty-print.c (pp_c_specifier_qualifier_list): If a vector type
2084         has a type name, use it in preference to the __vector syntax.
2086 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
2088         * c-pretty-print.c (pp_c_parameter_type_list): Avoid printing
2089         two spaces between a comma and "...".
2091 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
2093         PR c++/88203
2094         * c-common.h (c_omp_predefined_variable): Declare.
2095         * c-omp.c (c_omp_predefined_variable): New function.
2096         (c_omp_predetermined_sharing): Return OMP_CLAUSE_DEFAULT_SHARED
2097         for predefined variables.
2099 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
2101         * c-common.h (build_function_call_vec): Take the original
2102         function decl as an optional final parameter.
2103         (check_builtin_function_arguments): Take the original function decl.
2104         * c-common.c (check_builtin_function_arguments): Likewise.
2105         Handle all built-in functions, not just BUILT_IN_NORMAL ones.
2106         Use targetm.check_builtin_call to check BUILT_IN_MD functions.
2108 2019-09-15  Jason Merrill  <jason@redhat.com>
2110         * c-warn.c (warn_logical_operator): Strip location wrappers.  Don't
2111         fold_for_warn in "|| mask" warning.
2113 2019-09-10  Martin Liska  <mliska@suse.cz>
2115         * c.opt: Use newly added WarnRemoved.
2117 2019-09-09  Martin Liska  <mliska@suse.cz>
2119         * c.opt: Update comment of removed
2120         options that are preserved only for backward
2121         compatibility.
2123 2019-09-06  Martin Liska  <mliska@suse.cz>
2125         PR c++/91125
2126         * c-common.c: Remove definition of flag_use_repository.
2127         * c-common.h: Likewise.
2128         * c-opts.c (c_common_handle_option):
2129         Do not handle OPT_frepo option.
2130         * c.opt: Mark the option with Deprecated.
2132 2019-09-04  Marek Polacek  <polacek@redhat.com>
2134         * c.opt (fdeduce-init-list): Ignored.
2136 2019-09-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2138         PR c/78736
2139         * c.opt (Wenum-conversion): New option.
2141 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
2143         * c-attribs.c (handle_section_attribute): Call the
2144         handle_generic_attribute target hook after performing target
2145         independent processing.
2146         (handle_noinit_attribute): Likewise.
2148 2019-09-03  Ian Lance Taylor  <iant@golang.org>
2150         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Always expand
2151         when using -fgo-dump-spec.
2153 2019-09-02  Martin Liska  <mliska@suse.cz>
2155         PR c++/91155
2156         * c-common.c (fname_as_string): Use cxx_printable_name for
2157         __PRETTY_FUNCTION__ same as was used before r265711.
2159 2019-08-28  Marek Polacek  <polacek@redhat.com>
2161         Implement P1152R4: Deprecating some uses of volatile.
2162         PR c++/91361
2163         * c-opts.c (c_common_post_options): Enable -Wvolatile by
2164         default for C++2a, unless -Wno-deprecated.
2165         * c.opt (Wvolatile): New warning.
2167 2019-08-28  Marek Polacek  <polacek@redhat.com>
2169         PR c++/91360 - Implement C++20 P1143R2: constinit.
2170         * c-common.c (c_common_reswords): Add constinit and __constinit.
2171         (keyword_is_decl_specifier): Handle RID_CONSTINIT.
2172         * c-common.h (enum rid): Add RID_CONSTINIT, RID_FIRST_CXX20, and
2173         RID_LAST_CXX20.
2174         (D_CXX20): Define.
2175         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_constinit.
2176         * c-format.c (cxx_keywords): Add "constinit".
2177         * c.opt (Wc++2a-compat, Wc++20-compat): New options.
2179 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
2181         PR c++/91415
2182         * c-common.c (verify_tree): For LSHIFT_EXPR, RSHIFT_EXPR,
2183         COMPONENT_REF and ARRAY_REF in cxx_dialect >= cxx17 mode handle it
2184         like COMPOUND_EXPR rather than normal expression.
2186 2019-08-23  Iain Sandoe  <iain@sandoe.co.uk>
2188         PR pch/61250
2189         * c-lex.c (c_lex_with_flags):  Don't call
2190         c_common_no_more_pch () from here.
2192 2019-08-23  Jakub Jelinek  <jakub@redhat.com>
2194         PR middle-end/91283
2195         * c-common.c (c_ts18661_flt_eval_method): Use flag_excess_precision
2196         instead of flag_excess_precision_cmdline.
2197         * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): Likewise.
2198         * c-opts.c (c_common_post_options): Likewise.
2200 2019-08-22  Martin Sebor  <msebor@redhat.com>
2202         PR middle-end/91490
2203         * c-common.c (braced_list_to_string): Add argument and overload.
2204         Handle flexible length arrays and unions.
2206 2019-08-21  Eric Botcazou  <ebotcazou@adacore.com>
2208         * c-ada-spec.c (dump_ada_function_declaration): Be prepared for broken
2209         function declarations where arguments are missing.  Rename variables.
2211 2019-08-15  Richard Biener  <rguenther@suse.de>
2213         * c-common.c (c_stddef_cpp_builtins): When the GIMPLE FE is
2214         enabled, define __SIZETYPE__.
2216 2019-08-14  Christophe Lyon  <christophe.lyon@linaro.org>
2218         * c-attribs.c (c_common_attribute_table): Add "noinit" entry. Add
2219         exclusion with "section" attribute.
2220         (attr_noinit_exclusions): New table.
2221         (handle_noinit_attribute): New function.
2223 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
2225         PR middle-end/91421
2226         * c-common.c (resolve_overloaded_builtin): Use
2227         copy_decl_built_in_function.
2229 2019-08-13  Martin Sebor  <msebor@redhat.com>
2231         PR c/80619
2232         * c-format.c (printf_length_specs): Set FMT_LEN_w for "w".
2233         (asm_fprintf_length_spec): Same.
2234         * c-format.h (format_lengths): Add FMT_LEN_w.
2236 2019-08-10  Jakub Jelinek  <jakub@redhat.com>
2238         * c-pragma.h (enum pragma_omp_clause): Add
2239         PRAGMA_OMP_CLAUSE_DEVICE_TYPE.
2241 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
2243         * c-pragma.h (enum pragma_omp_clause): Add
2244         PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR.  Set PRAGMA_OACC_CLAUSE_USE_DEVICE
2245         equal to PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR instead of being a separate
2246         enumeration value.
2248 2019-08-05  Marek Polacek  <polacek@redhat.com>
2250         PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
2251         * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by
2252         default for C++2a, unless -Wno-deprecated.
2253         * c.opt (Wcomma-subscript): New warning.
2255 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
2257         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_LOOP.
2258         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_BIND.
2259         * c-pragma.c (omp_pragmas_simd): Add PRAGMA_OMP_LOOP entry.
2260         * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_LOOP.
2261         * c-omp.c (c_omp_split_clauses): Add support for 4 new combined
2262         constructs with the loop construct.
2264 2019-07-13  Jakub Jelinek  <jakub@redhat.com>
2266         PR c/91149
2267         * c-omp.c (c_omp_split_clauses): Fix a pasto in
2268         OMP_CLAUSE_REDUCTION_TASK handling.
2270 2019-07-12  Jakub Jelinek  <jakub@redhat.com>
2272         * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ORDER.
2273         * c-omp.c (c_omp_split_clauses): Handle splitting of OMP_CLAUSE_ORDER.
2275 2019-07-09  Martin Sebor  <msebor@redhat.com>
2277         PR c++/61339
2278         * c-opts.c (handle_deferred_opts): Change class-key of PODs to struct
2279         and others to class.
2280         * c-pretty-print.h: Same.
2282 2019-07-09  Martin Sebor  <msebor@redhat.com>
2284         PR c++/61339
2285         * c-format.c (check_argument_type): Change class-key from class to
2286         struct and vice versa to match convention and avoid -Wclass-is-pod
2287         and -Wstruct-no-pod.
2288         * c-pretty-print.h: Same.
2290 2019-07-03  Martin Liska  <mliska@suse.cz>
2292         * c-common.c (try_to_locate_new_include_insertion_point): Remove
2293         dead assignemts.
2295 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
2297         * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_REDUCTION_INSCAN
2298         clauses on OMP_FOR rather than OMP_PARALLEL when OMP_FOR is combined
2299         with OMP_PARALLEL.
2301 2019-07-02  qing zhao  <qing.zhao@oracle.com>
2303         PR preprocessor/90581
2304         * c-opts.c (c_common_handle_option): Handle -fmax-include-depth.
2305         * c.opt: Add new option -fmax-include-depth.
2307 2019-06-26  Jason Merrill  <jason@redhat.com>
2309         PR c++/55442 - memory-hog with highly recursive constexpr.
2310         * c.opt (fconstexpr-loop-limit): New.
2312 2019-06-25  Jakub Jelinek  <jakub@redhat.com>
2314         PR sanitizer/90954
2315         * c-omp.c (c_finish_omp_atomic): Allow tree_invariant_p in addition
2316         to SAVE_EXPR in first operand of a COMPOUND_EXPR.
2318 2019-06-25  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
2320         * c-common.c (c_common_nodes_and_builtins): Define
2321         alternate "__intN__" name for "__intN" types.
2323 2019-06-24  Jan Hubicka  <jh@suse.cz>
2325         * c-common.c (braced_lists_to_strings): Check that
2326         type is array or integer prior checking string flag.
2328 2019-06-21  Matthew Beliveau  <mbelivea@redhat.com>
2330         PR c++/90875 - added -Wswitch-outside-range option
2331         * c.opt (Wswitch-outside-range): Added new option.
2332         * c-warn.c (c_do_switch_warnings): Use OPT_Wswitch-outside-range.
2334 2019-06-21  Marek Polacek  <polacek@redhat.com>
2336         PR c++/90953 - ICE with -Wmissing-format-attribute.
2337         * c-common.c (check_function_arguments_recurse): Use
2338         get_attribute_name.
2339         (check_missing_format_attribute): Likewise.
2341 2019-06-19  Marek Polacek  <polacek@redhat.com>
2343         PR c++/60364 - noreturn after first decl not diagnosed.
2344         * c-attribs.c (handle_noreturn_attribute): No longer static.
2345         * c-common.h (handle_noreturn_attribute, attr_noreturn_exclusions):
2346         Declare.
2347         * c-format.c (check_function_format): Use get_attribute_name.
2349 2019-06-19  Martin Sebor  <msebor@redhat.com>
2351         PR translation/90156
2352         * c-format.c (function_format_info::format_type): Adjust type.
2353         (function_format_info::is_raw): New member.
2354         (decode_format_type): Adjust signature.  Handle "raw" diag attributes.
2355         (decode_format_attr): Adjust call to decode_format_type.
2356         Avoid a redundant call to convert_format_name_to_system_name.
2357         Avoid abbreviating the word "arguments" in a diagnostic.
2358         (format_warning_substr): New function.
2359         (avoid_dollar_number): Quote dollar sign in a diagnostic.
2360         (finish_dollar_format_checking): Same.
2361         (check_format_info): Same.
2362         (struct baltoks_t): New.
2363         (c_opers, c_keywords, cxx_keywords, badwords, contrs): New arrays.
2364         (maybe_diag_unbalanced_tokens, check_tokens, check_plain): New
2365         functions.
2366         (check_format_info_main): Call check_plain.  Use baltoks_t.  Call
2367         maybe_diag_unbalanced_tokens.
2368         (handle_format_attribute): Spell out the word "arguments" in
2369         a diagnostic.
2371 2019-06-11  Matthew Beliveau  <mbelivea@redhat.com>
2373         PR c++/90449 - add -Winaccessible-base option.
2374         * c.opt (Winaccessible-base): New option.
2376 2019-06-10  Jakub Jelinek  <jakub@redhat.com>
2378         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCAN.
2379         * c-pragma.c (omp_pragmas_simd): Add #pragma omp scan.
2380         * c-omp.c (c_omp_split_clauses): Diagnose inscan reductions on
2381         combined/composite constructs where it is not allowed.  Copy over
2382         OMP_CLAUSE_REDUCTION_INSCAN.
2384 2019-06-05  Martin Sebor  <msebor@redhat.com>
2386         * c-attribs.c (handle_mode_attribute): Adjust quoting and hyphenation.
2387         (handle_alias_ifunc_attribute): Same.
2388         (handle_copy_attribute): Same.
2389         (handle_weakref_attribute): Same.
2390         (handle_nonnull_attribute): Same.
2391         * c-warn.c (warn_for_sign_compare): Same.
2392         (warn_for_restrict): Same.
2393         * c.opt: Same.
2395 2019-06-05  Martin Sebor  <msebor@redhat.com>
2397         * c-pragma.c (handle_pragma_weak): Adjust quoting in a diagnostic.
2398         * c.opt (-Wformat-diag): Remove a spurious period.
2400 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
2402         PR c/90628
2403         * c-common.c (check_builtin_function_arguments)
2404         <case BUILTIN_*_OVERFLOW>: Diagnose pointer to const qualified integer
2405         as last argument.
2407 2019-05-23  Eric Botcazou  <ebotcazou@adacore.com>
2409         * c-ada-spec.c (compare_node): Compare the DECL_UIDs as a last resort.
2411 2019-05-22  Martin Liska  <mliska@suse.cz>
2413         PR lto/90500
2414         * c-attribs.c (handle_copy_attribute): Do not copy
2415         target_clones attribute.
2417 2019-05-21  Eric Botcazou  <ebotcazou@adacore.com>
2419         * c-ada-spec.h (enum cpp_operation): Add IS_ASSIGNMENT_OPERATOR.
2420         * c-ada-spec.c (print_assignment_operator): New function.
2421         (dump_ada_declaration) <FUNCTION_DECL>: Call it do dump explicit copy
2422         assignment operators declared as methods and filter out the others.
2424 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
2426         PR c/89433
2427         * c-attribs.c (c_common_attribute_table): Set min_len to -1 for
2428         "omp declare target".
2430 2019-05-16  Martin Sebor  <msebor@redhat.com>
2432         * c-attribs.c (handle_no_sanitize_attribute): Quote identifiers,
2433         keywords, operators, and types in diagnostics.
2434         (handle_scalar_storage_order_attribute): Same.
2435         (handle_mode_attribute): Same.
2436         (handle_visibility_attribute): Same.
2437         (handle_assume_aligned_attribute): Same.
2438         (handle_no_split_stack_attribute): Same.
2439         * c-common.c (shorten_compare): Same.
2440         (c_common_truthvalue_conversion): Same.
2441         (cb_get_source_date_epoch): Same.
2442         * c-lex.c (cb_def_pragma): Quote keywords, operators, and types
2443         in diagnostics.
2444         (interpret_float): Same.
2445         * c-omp.c (c_finish_omp_for): Same.
2446         * c-opts.c (c_common_post_options): Same.
2447         * c-pch.c (c_common_pch_pragma): Same.
2448         * c-pragma.c (pop_alignment): Same.
2449         (handle_pragma_pack): Same.
2450         (apply_pragma_weak): Same.
2451         (handle_pragma_weak): Same.
2452         (handle_pragma_scalar_storage_order): Same.
2453         (handle_pragma_redefine_extname): Same.
2454         (add_to_renaming_pragma_list): Same.
2455         (maybe_apply_renaming_pragma): Same.
2456         (push_visibility): Same.
2457         (handle_pragma_visibility): Same.
2458         (handle_pragma_optimize): Same.
2459         (handle_pragma_message): Same.
2460         * c-warn.c (warn_for_omitted_condop): Same.
2461         (lvalue_error): Same.
2463 2019-05-15  Richard Biener  <rguenther@suse.de>
2465         PR c/90474
2466         * c-common.c (c_common_mark_addressable_vec): Also mark
2467         a COMPOUND_LITERAL_EXPR_DECL addressable similar to
2468         c_mark_addressable.
2470 2019-05-06  Nathan Sidwell  <nathan@acm.org>
2472         * c-opts.c (handle_defered_opts): Rename struct deps to struc mkdeps.
2474 2019-04-30  Nathan Sidwell  <nathan@acm.org>
2476         * c-common.c (c_common_init_ts): Use MARK_TS_EXP.  Mark SIZEOF_EXPR.
2478 2019-04-30  Martin Liska  <mliska@suse.cz>
2480         * c-pragma.c (handle_pragma_diagnostic): Provide hints
2481         for unknown options.
2483 2019-04-26  Richard Sandiford  <richard.sandiford@arm.com>
2485         * c-warn.c (strict_aliasing_warning): Apply COMPLETE_TYPE_P to
2486         the pointer target rather than the pointer itself.
2488 2019-04-19  Jakub Jelinek  <jakub@redhat.com>
2490         PR c/89888
2491         * c-common.h (c_add_case_label): Remove orig_type and outside_range_p
2492         arguments.
2493         (c_do_switch_warnings): Remove outside_range_p argument.
2494         * c-common.c (check_case_bounds): Removed.
2495         (c_add_case_label): Remove orig_type and outside_range_p arguments.
2496         Don't call check_case_bounds.  Fold low_value as well as high_value.
2497         * c-warn.c (c_do_switch_warnings): Remove outside_range_p argument.
2498         Check for case labels outside of range of original type here and
2499         adjust them.
2501 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
2503         PR translation/90041
2504         * c.opt (-fhandle-exceptions): Use %< and %> around option names
2505         in the Warn diagnostics.
2507         PR c/89946
2508         * c-attribs.c (handle_patchable_function_entry_attribute): Add
2509         function comment.  Warn if arguments of the attribute are not positive
2510         integer constants.
2512 2019-04-09  Eric Botcazou  <ebotcazou@adacore.com>
2514         * c-ada-spec.c (print_destructor): Deal with deleting destructors.
2515         (dump_ada_declaration) <FUNCTION_DECL>: Likewise.
2517 2019-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2519         * c-ada-spec.c (is_float128): New predicate extracted from...
2520         (dump_ada_node) <COMPLEX_TYPE>: Use it to recognize __cfloat128.
2521         <REAL_TYPE>: ...here.  Call it.
2523 2019-04-05  David Malcolm  <dmalcolm@redhat.com>
2525         PR c/89985
2526         * c-warn.c (check_address_or_pointer_of_packed_member): Add
2527         auto_diagnostic_group.  Guard inform calls by result of
2528         warning_at call.
2530 2019-04-05  Marek Polacek  <polacek@redhat.com>
2532         PR c++/89973 - -Waddress-of-packed-member ICE with invalid conversion.
2533         * c-warn.c (check_address_or_pointer_of_packed_member): Check the type
2534         of RHS.
2536 2019-04-03  Jason Merrill  <jason@redhat.com>
2538         PR c++/86586 - -fcompare-debug=-Wsign-compare.
2539         * c-warn.c (warn_for_sign_compare): Call fold_for_warn.
2541 2019-04-01  Martin Sebor  <msebor@redhat.com>
2543         PR c/89685
2544         * c-attribs.c (handle_copy_attribute): Handle references and
2545         non-constant expressions.
2547 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
2549         PR c++/87481
2550         * c.opt (-fconstexpr-ops-limit=): New option.
2552 2019-03-21  Jakub Jelinek  <jakub@redhat.com>
2554         * c-common.c (per_file_includes_t): Use false as Lazy in hash_set
2555         template param.
2557 2019-03-19  Martin Sebor  <msebor@redhat.com>
2559         PR tree-optimization/89688
2560         * c-common.c (braced_list_to_string): Make static.
2561         (braced_lists_to_strings): Define new function.
2562         * c-common.h (braced_list_to_string): Remove.
2563         (braced_lists_to_strings): Declare.
2565 2019-03-12  Martin Liska  <mliska@suse.cz>
2567         * c-opts.c (c_common_handle_option): Wrap option with %< and %>.
2569 2019-03-11  Martin Liska  <mliska@suse.cz>
2571         * c-opts.c (c_common_post_options): Wrap apostrophes
2572         in gcc internal format with %'.
2574 2019-03-11  Martin Liska  <mliska@suse.cz>
2576         * c-attribs.c (handle_nocf_check_attribute): Wrap an option name
2577         in a string format message and fix GNU coding style.
2578         * c-common.c (vector_types_convertible_p): Likewise.
2579         (c_build_vec_perm_expr): Likewise.
2580         * c-indentation.c (get_visual_column): Likewise.
2581         * c-opts.c (c_common_handle_option): Likewise.
2582         (c_common_post_options): Likewise.
2583         (sanitize_cpp_opts): Likewise.
2584         * c-pch.c (c_common_pch_pragma): Likewise.
2585         * c-pragma.c (handle_pragma_pack): Likewise.
2587 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
2589         PR tree-optimization/89550
2590         * c-common.c (c_common_truthvalue_conversion): Only set
2591         TREE_NO_WARNING if warning_at returned true.
2592         * c-warn.c (overflow_warning, warn_logical_operator): Likewise.
2594 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
2595             Martin Sebor  <msebor@gmail.com>
2597         * c.opt (Wmissing-attributes): Clean up doc string.
2599 2019-02-25  Jakub Jelinek  <jakub@redhat.com>
2601         PR c/89495
2602         * c-format.c (maybe_read_dollar_number): Compute nargnum in
2603         HOST_WIDE_INT type to avoid overflows and change overflow_flag
2604         checking.
2606 2019-02-22  Richard Biener  <rguenther@suse.de>
2608         * c-pch.c (no_checksum): Remove.
2609         (pch_init): Remove assertion that executable_checksum is not
2610         all zero.
2611         (c_common_valid_pch): Likewise.
2613 2019-02-18  Martin Sebor  <msebor@redhat.com>
2615         PR middle-end/89294
2616         * c-common.c (invalid_array_size_error): Handle cst_size_not_constant.
2618 2019-02-16  David Malcolm  <dmalcolm@redhat.com>
2620         PR c++/88680
2621         * c-common.c (shorten_compare): Call fold_for_warn on op0 when
2622         implementing -Wtype-limits.
2624 2019-02-11  Martin Sebor  <msebor@redhat.com>
2626         PR c++/87996
2627         * c-common.c (invalid_array_size_error): New function.
2628         (valid_array_size_p): Call it.  Handle size as well as type.
2629         * c-common.h (valid_constant_size_p): New function.
2630         (enum cst_size_error): New type.
2632 2019-01-31  David Malcolm  <dmalcolm@redhat.com>
2634         PR c/89122
2635         * known-headers.cc (get_stdlib_header_for_name): Add
2636         {FLT|DBL|LDBL}_{MAX|MIN} to "hints" array.
2638 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
2640         PR libstdc++/88170
2641         * c-pretty-print.c (pp_c_enumeration_constant): Print always as
2642         a C cast in pp_c_flag_gnu_v3 mode.
2644 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
2646         PR c/86125
2647         * c-common.c (c_common_nodes_and_builtins): Build type variants for
2648         builtin_structptr_types types even for C.
2650 2019-01-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2652         * c-warn.c (check_address_or_pointer_of_packed_member): Handle the case
2653         when rhs is of array type correctly.  Fix handling of nested structures.
2654         Fix handling of indirect_ref together with nop_expr and/or addr_expr.
2655         (check_and_warn_address_or_pointer_of_packed_member): Fix handling of
2656         type casts within nested compound expressions.
2658 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
2660         PR middle-end/88968
2661         * c-omp.c (c_finish_omp_atomic): For bitfield atomics, update type
2662         variable after using BIT_FIELD_REF.
2664 2019-01-18  H.J. Lu  <hongjiu.lu@intel.com>
2666         PR c/51628
2667         PR c/88664
2668         * c-common.h (warn_for_address_or_pointer_of_packed_member):
2669         Remove the boolean argument.
2670         * c-warn.c (check_address_of_packed_member): Renamed to ...
2671         (check_address_or_pointer_of_packed_member): This.  Also
2672         warn pointer conversion.
2673         (check_and_warn_address_of_packed_member): Renamed to ...
2674         (check_and_warn_address_or_pointer_of_packed_member): This.
2675         Also warn pointer conversion.
2676         (warn_for_address_or_pointer_of_packed_member): Remove the
2677         boolean argument.  Don't check pointer conversion here.
2679 2019-01-15  Richard Sandiford  <richard.sandiford@arm.com>
2681         PR inline-asm/52813
2682         * c.opt (Wdeprecated): Move documentation and variable to common.opt.
2684 2019-01-14  Jakub Jelinek  <jakub@redhat.com>
2686         * c-cppbuiltin.c (c_cpp_builtin): Define __cpp_guaranteed_copy_elision
2687         and __cpp_nontype_template_parameter_auto.  Add a comment that
2688         __cpp_template_auto is deprecated.
2690 2019-01-14  Tom Honermann  <tom@honermann.net>
2692         Implement P0482R5, char8_t: A type for UTF-8 characters and strings
2693         * c-common.c (c_common_reswords): Add char8_t.
2694         (fix_string_type): Use char8_t for the type of u8 string literals.
2695         (c_common_get_alias_set): char8_t doesn't alias.
2696         (c_common_nodes_and_builtins): Define char8_t as a builtin type in
2697         C++.
2698         (c_stddef_cpp_builtins): Add __CHAR8_TYPE__.
2699         (keyword_begins_type_specifier): Add RID_CHAR8.
2700         * c-common.h (rid): Add RID_CHAR8.
2701         (c_tree_index): Add CTI_CHAR8_TYPE and CTI_CHAR8_ARRAY_TYPE.
2702         Define D_CXX_CHAR8_T and D_CXX_CHAR8_T_FLAGS.
2703         Define char8_type_node and char8_array_type_node.
2704         * c-cppbuiltin.c (cpp_atomic_builtins): Predefine
2705         __GCC_ATOMIC_CHAR8_T_LOCK_FREE.
2706         (c_cpp_builtins): Predefine __cpp_char8_t.
2707         * c-lex.c (lex_string): Use char8_array_type_node as the type of
2708         CPP_UTF8STRING.
2709         (lex_charconst): Use char8_type_node as the type of CPP_UTF8CHAR.
2710         * c-opts.c: If not otherwise specified, enable -fchar8_t when
2711         targeting C++2a.
2712         * c.opt: Add the -fchar8_t command line option.
2714 2019-01-14  Martin Sebor  <msebor@redhat.com>
2716         PR target/88638
2717         * c-attribs.c (positional_argument): Call valid_format_string_type_p
2718         and issue errors if it fails.
2719         * c-common.h (valid_format_string_type_p): Declare.
2720         * c-format.c (valid_stringptr_type_p): Rename...
2721         (valid_format_string_type_p): ...to this and make extern.
2722         (handle_format_arg_attribute): Adjust to new name.
2723         (check_format_string): Same.
2725 2019-01-13  H.J. Lu  <hongjiu.lu@intel.com>
2727         * c-warn.c (warn_for_address_or_pointer_of_packed_member):
2728         Replace "may may" with "may" in warning message.
2730 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
2732         PR c++/85052
2733         * c-common.h (enum rid): Add RID_BUILTIN_CONVERTVECTOR.
2734         (c_build_vec_convert): Declare.
2735         * c-common.c (c_build_vec_convert): New function.
2737 2019-01-04  Martin Sebor  <msebor@redhat.com>
2739         PR c/88546
2740         * c-attribs.c (handle_copy_attribute): Avoid copying attribute leaf.
2741         Handle C++ empty throw specification and C11 _Noreturn.
2742         (has_attribute): Also handle C11 _Noreturn.
2744 2019-01-04  Martin Sebor  <msebor@redhat.com>
2746         PR c/88363
2747         * c-attribs.c (positional_argument): Also accept enumerated types.
2749 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
2751         Update copyright years.
2753 2018-12-20  H.J. Lu  <hongjiu.lu@intel.com>
2755         PR c/51628
2756         * c-common.h (warn_for_address_or_pointer_of_packed_member): New.
2757         * c-warn.c (check_alignment_of_packed_member): New function.
2758         (check_address_of_packed_member): Likewise.
2759         (check_and_warn_address_of_packed_member): Likewise.
2760         (warn_for_address_or_pointer_of_packed_member): Likewise.
2761         * c.opt: Add -Wno-address-of-packed-member.
2763 2018-12-20  David Malcolm  <dmalcolm@redhat.com>
2765         PR c++/87504
2766         * c-warn.c (get_outermost_macro_expansion): New function.
2767         (spelled_the_same_p): Use it to unwind the macro expansions, and
2768         compare the outermost macro in each nested expansion, rather than
2769         the innermost.
2771 2018-12-19  David Malcolm  <dmalcolm@redhat.com>
2773         PR c++/87504
2774         * c-common.h (warn_tautological_cmp): Convert 1st param from
2775         location_t to const op_location_t &.
2776         * c-warn.c (find_array_ref_with_const_idx_r): Call fold_for_warn
2777         when testing for INTEGER_CST.
2778         (warn_tautological_bitwise_comparison): Convert 1st param from
2779         location_t to const op_location_t &; use it to build a
2780         binary_op_rich_location, and use this.
2781         (spelled_the_same_p): New function.
2782         (warn_tautological_cmp): Convert 1st param from location_t to
2783         const op_location_t &.  Warn for macro expansions if
2784         spelled_the_same_p.  Use binary_op_rich_location.
2786 2018-12-19  David Malcolm  <dmalcolm@redhat.com>
2788         PR c++/43064
2789         PR c++/43486
2790         * c-common.c (unsafe_conversion_p): Fold any location wrapper.
2791         (verify_tree): Handle location wrappers.
2792         (c_common_truthvalue_conversion): Strip any location wrapper.
2793         Handle CONST_DECL.
2794         (fold_offsetof): Strip any location wrapper.
2795         (complete_array_type): Likewise for initial_value.
2796         (convert_vector_to_array_for_subscript): Call fold_for_warn on the
2797         index before checking for INTEGER_CST.
2798         * c-pretty-print.c (c_pretty_printer::primary_expression): Don't
2799         print parentheses around location wrappers.
2800         * c-warn.c (warn_logical_operator): Call fold_for_warn on op_right
2801         before checking for INTEGER_CST.
2802         (warn_tautological_bitwise_comparison): Call
2803         tree_strip_any_location_wrapper on lhs, rhs, and bitop's operand
2804         before checking for INTEGER_CST.
2805         (readonly_error): Strip any location wrapper.
2806         (warn_array_subscript_with_type_char): Strip location wrappers
2807         before checking for INTEGER_CST.  Use the location of the index if
2808         available.
2810 2018-12-06  Jason Merrill  <jason@redhat.com>
2812         PR c++/88136 - -Wdeprecated-copy false positives
2813         * c.opt (Wdeprecated-copy-dtor): New.
2814         (Wdeprecated-copy): Move to -Wextra.
2816 2018-11-29  Martin Sebor  <msebor@redhat.com>
2818         PR c/88172
2819         PR testsuite/88208
2820         * c-attribs.c (common_handle_aligned_attribute): Silently avoid setting
2821         alignments to values less than the target requires.
2822         (has_attribute): For attribute aligned consider both the attribute
2823         and the alignment bits.
2824         * c-common.c (c_init_attributes): Optionally issue a warning for
2825         zero alignment.
2827 2018-11-28  Martin Sebor  <msebor@redhat.com>
2829         PR c/88065
2830         PR c/87297
2831         * c-warn.c (sizeof_pointer_memaccess_warning): Bail if source
2832         or destination is an error.
2834 2018-11-28  Jakub Jelinek  <jakub@redhat.com>
2836         PR c++/88215
2837         * c-ubsan.c: Include langhooks.h.
2838         (ubsan_instrument_division): Change gcc_assert that main variants
2839         of op0 and op1 types are equal to gcc_checking_assert that the
2840         main variants are compatible types.
2842 2018-11-27  Eric Botcazou  <ebotcazou@adacore.com>
2844         * c-ada-spec.c: Include stringpool.h.
2845         (has_static_fields): Return false for incomplete types.
2846         (is_tagged_type): Likewise.
2847         (has_nontrivial_methods): Likewise.
2848         (dump_ada_node) <INTEGER_TYPE>: Deal specifically with __int128.
2849         (struct overloaded_name_hash): New structure.
2850         (struct overloaded_name_hasher): Likewise.
2851         (overloaded_names): New global variable.
2852         (init_overloaded_names): New static function.
2853         (overloaded_name_p): New predicate.
2854         (dump_ada_declaration) <TYPE_DECL>: Tidy up and set TREE_VISITED
2855         on the TYPE_STUB_DECL of the original type of a typedef, if any.
2856         <FUNCTION_DECL>: Bail out for an unsupported overloaded name.
2857         Remove always-true condition and dump forward types.
2858         (dump_ada_specs): Delete overloaded_names.
2860 2018-11-20  Martin Sebor  <msebor@redhat.com>
2862         * c-attribs.c (type_for_vector_size): New function.
2863         (type_valid_for_vector_size): Same.
2864         (handle_vector_size_attribute): Move code to the functions above
2865         and call them.
2866         (validate_attribute, has_attribute): New functions.
2867         * c-common.h (has_attribute): Declare.
2868         (rid): Add RID_HAS_ATTRIBUTE_EXPRESSION.
2869         * c-common.c (c_common_resword): Same.
2871 2018-11-16  Jason Merrill  <jason@redhat.com>
2873         * c-lex.c (c_common_has_attribute): Handle likely/unlikely.
2874         * c-attribs.c (attr_cold_hot_exclusions): Make public.
2876 2018-11-16  Jakub Jelinek  <jakub@redhat.com>
2878         PR middle-end/87854
2879         * c-common.c (fix_string_type): Reject string literals larger than
2880         TYPE_MAX_VALUE (ssizetype) bytes.
2882 2018-11-15  Martin Sebor  <msebor@redhat.com>
2884         PR c++/87541
2885         PR c++/87542
2886         * c-attribs.c (positional_argument): New function.
2887         (handle_alloc_size_attribute): Use it and simplify.
2888         (handle_alloc_align_attribute): Same.
2889         (handle_assume_aligned_attribute): Same.
2890         (handle_nonnull_attribute): Same.
2891         * c-common.c (check_function_arguments): Pass fntype to
2892         check_function_format.
2893         * c-common.h (check_function_format): Add an argument.
2894         (PosArgFlags, positional_argument): Declare new type and function.
2895         * c-format.c (decode_format_attr): Add arguments.
2896         (check_format_string, get_constant): Same.
2897         (convert_format_name_to_system_name): Adjust.
2899 2018-11-15  David Malcolm  <dmalcolm@redhat.com>
2901         PR other/19165
2902         * c-opts.c (c_diagnostic_finalizer): Add diagnostic_t param.
2904 2018-11-14  Jakub Jelinek  <jakub@redhat.com>
2906         P1236R1 - Signed integers are two's complement
2907         * c-warn.c (maybe_warn_shift_overflow): Don't warn for c++2a.
2908         * c-ubsan.c (ubsan_instrument_shift): Make signed shifts
2909         with in-range second operand well defined for -std=c++2a.
2911         PR other/88007
2912         * c-common.c (parse_optimize_options): Allocate option string from
2913         opts_obstack rather than as GC memory.  Move the allocation after
2914         warning for invalid option.
2916 2018-11-13  David Malcolm  <dmalcolm@redhat.com>
2918         * c-common.c (c_get_substring_location): Update for renaming of
2919         get_source_location_for_substring to get_location_within_string.
2920         * c-lex.c: Replace "source_location" with "location_t".
2921         * c-opts.c: Likewise.
2922         * c-ppoutput.c: Likewise.
2924 2018-11-13  Martin Sebor  <msebor@redhat.com>
2926         PR middle-end/81824
2927         * c-attribs.c (handle_copy_attribute): Exclude inlining attributes.
2928         (handle_tls_model_attribute): Improve diagnostics.
2930 2018-11-12  Jason Merrill  <jason@redhat.com>
2932         * c-cppbuiltin.c (c_cpp_builtins): Define
2933         __cpp_impl_destroying_delete.
2935         * c-cppbuiltin.c (c_cpp_builtins): Change __cpp_explicit_bool to
2936         __cpp_conditional_explicit.
2938 2018-11-09  Martin Sebor  <msebor@redhat.com>
2940         PR middle-end/81824
2941         * c-attribs.c (handle_copy_attribute): New function.
2943 2018-11-09  Martin Sebor  <msebor@redhat.com>
2945         PR c/87795
2946         * c-common.c (check_user_alignment): Use MAX_OFILE_ALIGNMENT.
2948 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
2950         * c-common.h (c_finish_omp_taskgroup): Add CLAUSES argument.
2951         (c_finish_omp_atomic): Replace bool SEQ_CST argument with
2952         enum omp_memory_order MEMORY_ORDER.
2953         (c_finish_omp_flush): Add MO argument.
2954         (c_omp_depend_t_p, c_finish_omp_depobj): Declare.
2955         (c_finish_omp_for): Add FINAL_P argument.
2956         * c-omp.c: Include memmodel.h.
2957         (c_finish_omp_taskgroup): Add CLAUSES argument.  Set
2958         OMP_TASKGROUP_CLAUSES to it.
2959         (c_finish_omp_atomic): Replace bool SEQ_CST argument with
2960         enum omp_memory_order MEMORY_ORDER.  Set OMP_ATOMIC_MEMORY_ORDER
2961         instead of OMP_ATOMIC_SEQ_CST.
2962         (c_omp_depend_t_p, c_finish_omp_depobj): New functions.
2963         (c_finish_omp_flush): Add MO argument, if not MEMMODEL_LAST, emit
2964         __atomic_thread_fence call with the given value.
2965         (check_omp_for_incr_expr): Formatting fixes.
2966         (c_finish_omp_for): Add FINAL_P argument.  Allow NE_EXPR
2967         even in OpenMP loops, diagnose if NE_EXPR and incr expression
2968         is not constant expression 1 or -1.  Transform NE_EXPR loops
2969         with iterators pointers to VLA into LT_EXPR or GT_EXPR loops.
2970         (c_omp_check_loop_iv_r): Look for orig decl of C++ range for
2971         loops too.
2972         (c_omp_split_clauses): Add support for combined
2973         #pragma omp parallel master and
2974         #pragma omp {,parallel }master taskloop{, simd} constructs.
2975         Handle OMP_CLAUSE_IN_REDUCTION.  Handle OMP_CLAUSE_REDUCTION_TASK.
2976         Handle OMP_CLAUSE_NONTEMPORAL.  Handle splitting OMP_CLAUSE_IF
2977         also to OMP_SIMD.  Copy OMP_CLAUSE_LASTPRIVATE_CONDITIONAL.
2978         (c_omp_predetermined_sharing): Don't return
2979         OMP_CLAUSE_DEFAULT_SHARED for const qualified decls.
2980         * c-pragma.c (omp_pragmas): Add PRAGMA_OMP_DEPOBJ and
2981         PRAGMA_OMP_REQUIRES.
2982         * c-pragma.h (enum pragma_kind): Likewise.
2983         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_NONTEMPORAL
2984         and PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION.
2986 2018-11-08  David Malcolm  <dmalcolm@redhat.com>
2988         * c-format.c (gcc_dump_printf_char_table): Add entry for %f.
2990 2018-11-08  David Malcolm  <dmalcolm@redhat.com>
2992         * c-format.c (local_cgraph_node_ptr_node): New variable.
2993         (gcc_dump_printf_char_table): Add entry for %C.
2994         (get_pointer_to_named_type): New function, taken from the handling
2995         code for "gimple *" from...
2996         (init_dynamic_diag_info): ...here.  Add handling for
2997         "cgraph_node *".
2998         * c-format.h (T_CGRAPH_NODE): New.
3000 2018-10-19  Jason Merrill  <jason@redhat.com>
3002         * c-cppbuiltin.c (c_cpp_builtins): Add
3003         __cpp_nontype_template_parameter_class.
3005 2018-10-31  Nathan Sidwell  <nathan@acm.org>
3007         * c-opts.c (c_finish_options): Force command line macro
3008         location.  Refactor to avoid repeating main debug hook.
3009         (push_command_line_include): Clarify comment.
3011         * c-opts.c (c_finish_options): Adjust cpp_force_token_locations call.
3013 2018-10-30  Martin Sebor  <msebor@redhat.com>
3015         PR middle-end/87041
3016         * c-format.c (check_format_types): Avoid diagnosing null pointer
3017         arguments to printf-family of functions.
3019 2018-10-30  Marek Polacek  <polacek@redhat.com>
3021         Implement P0892R2, explicit(bool).
3022         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_explicit_bool.
3024 2018-10-29  David Malcolm  <dmalcolm@redhat.com>
3026         * name-hint.h (name_hint::take_deferred): New member function.
3028 2018-10-29  David Malcolm  <dmalcolm@redhat.com>
3030         PR c++/56856
3031         * c-common.c (check_function_sentinel): Call fold_for_warn on the
3032         argument.
3033         (check_function_restrict): Rename param "argarray" to
3034         "unfolded_argarray", and make a copy named "argarray", calling
3035         fold_for_warn on each argument.
3036         (check_function_arguments): Add note about responsibility for
3037         folding the arguments.
3039 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
3041         * c-common.c (flag_isoc2x): New variable.
3042         * c-common.h (clk_c): Update comment to reference C2X.
3043         (flag_isoc99, flag_isoc11): Update comments to reference future
3044         standard versions in general.
3045         (flag_isoc2x): Declare.
3046         * c-opts.c (set_std_c2x): New function.
3047         (c_common_handle_option): Handle -std=c2x and -std=gnu2x.
3048         (set_std_c89, set_std_c99, set_std_c11, set_std_c17): Set
3049         flag_isoc2x to 0.
3050         * c.opt (Wc11-c2x-compat, std=c2x, std=gnu2x): New options.
3052 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
3054         * c.opt (std=c17, std=c18, std=gnu17, std=gnu18, std=iso9899:2017)
3055         (std=iso9899:2018): Document C17 as published in 2018.
3057 2018-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
3059         PR c++/87364
3060         * c-pretty-print.c (c_pretty_printer::constant): Fix typo.
3062 2018-10-11  Will Wray  <wjwray@gmail.com>
3064         PR c++/87364
3065         * c-pretty-print.h (pp_c_type_cast): Prototype.
3066         (pp_c_integer_constant): Likewise.
3067         * c-pretty-print.c (pp_c_type_cast): No longer static.
3068         (pp_c_integer_constant): Likewise.
3069         (pp_c_enumeration_constant): Fix loop termination when finding
3070         name of constant.  No longer returns a value.  Call
3071         pp_c_integer_constant.
3072         (c_pretty_printer::constant): Update for changes to
3073         pp_c_enumeration_constant.
3075 2018-10-11  Jakub Jelinek  <jakub@redhat.com>
3077         * c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312
3078         for no_unique_address.
3080 2018-10-09  David Malcolm  <dmalcolm@redhat.com>
3082         * c-common.c (c_option_controlling_cpp_error): Rename to...
3083         (c_option_controlling_cpp_diagnostic): ...this, and convert
3084         "reason" from int to enum.
3085         (c_cpp_error): Rename to...
3086         (c_cpp_diagnostic): ...this, converting level and reason to enums.
3087         * c-common.h (c_cpp_error): Rename to...
3088         (c_cpp_diagnostic): ...this, converting level and reason to enums.
3089         * c-opts.c (c_common_init_options): Update for renaming.
3091 2018-10-08  Richard Sandiford  <richard.sandiford@arm.com>
3093         PR c/87286
3094         * c-common.c (vector_types_compatible_elements_p): Use
3095         INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE.
3097 2018-10-04  Vinay Kumar  <vinay.kumar@blackfigtech.com>
3099         * c-attribs.c (get_priority): Add a warning flag warn_prio_ctor_dtor
3100         to generate constructor destructor priority warning.
3101         * c.opt (-Wprio-ctor-dtor): New option.
3103 2018-10-01  Jason Merrill  <jason@redhat.com>
3105         * c-lex.c (c_common_has_attribute): Add no_unique_address.
3107 2018-10-01  Eric Botcazou  <ebotcazou@adacore.com>
3109         * c-ada-spec.c (get_underlying_decl): Get to the main type variant.
3110         (dump_ada_node): Add const keyword.
3112 2018-09-25  Martin Liska  <mliska@suse.cz>
3114         * c-common.c (c_common_truthvalue_conversion):
3115         Remove Pascal from documentation.
3117 2018-09-21  Eric Botcazou  <ebotcazou@adacore.com>
3119         * c-ada-spec.c: Include diagnostic.h.
3120         (dump_ada_declaration) <RECORD_TYPE>: Issue a warning on packed layout.
3122 2018-09-19  Marek Polacek  <polacek@redhat.com>
3124         * c.opt (Wclass-conversion): New.
3126 2018-09-17  David Malcolm  <dmalcolm@redhat.com>
3128         * c-format.c (range_label_for_format_type_mismatch::get_text):
3129         Update for new param.
3131 2018-09-17  David Malcolm  <dmalcolm@redhat.com>
3133         * c-format.c (format_warning_at_char): Update for introduction of
3134         format_string_diagnostic_t.
3135         (format_type_warning): Likewise.
3137 2018-09-17  Martin Jambor  <mjambor@suse.cz>
3139         PR c/63886
3140         * c.opt (Wabsolute-value): New.
3142 2018-09-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3144         * c-common.c (complete_flexible_array_elts): New helper function.
3145         * c-common.h (complete_flexible_array_elts): Declare.
3147 2018-09-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3149         * c-common.c (braced_list_to_string): Remove eval parameter.
3150         Add some more checks.  Always create zero-terminated STRING_CST.
3151         * c-common.h (braced_list_to_string): Adjust prototype.
3153 2018-08-27  David Malcolm  <dmalcolm@redhat.com>
3155         PR 87091
3156         * c-common.c (c_cpp_error): Update for conversion of show_caret_p
3157         to a tri-state.
3158         (maybe_suggest_missing_token_insertion): Likewise.
3159         (maybe_add_include_fixit): Add param "override_location".  If set,
3160         and source-printing is enabled, then override the rich_location's
3161         primary location with that of the insertion point for the fix-it
3162         hint, marking it with SHOW_LINES_WITHOUT_RANGE.
3163         * c-common.h (extern void maybe_add_include_fixit): Add bool
3164         param.
3165         * c-format.c (selftest::test_type_mismatch_range_labels): Update
3166         for conversion of show_caret_p to a tri-state.
3167         * c-warn.c (warn_for_restrict): Likewise.
3168         * known-headers.cc
3169         (suggest_missing_header::~suggest_missing_header): Update call to
3170         maybe_add_include_fixit to suggest overriding the location, as it
3171         is for a note.
3173 2018-08-27  Martin Liska  <mliska@suse.cz>
3175         * c-common.c (check_function_restrict): Use new function
3176         fndecl_built_in_p and remove check for FUNCTION_DECL if
3177         possible.
3178         (check_builtin_function_arguments): Likewise.
3179         (reject_gcc_builtin): Likewise.
3180         * c-warn.c (sizeof_pointer_memaccess_warning): Likewise.
3182 2018-08-26  Marek Polacek  <polacek@redhat.com>
3184         PR c++/87029, Implement -Wredundant-move.
3185         * c.opt (Wredundant-move): New option.
3187 2018-08-21  Marek Polacek  <polacek@redhat.com>
3189         PR c++/86981, Implement -Wpessimizing-move.
3190         * c.opt (Wpessimizing-move): New option.
3192 2018-08-20  David Malcolm  <dmalcolm@redhat.com>
3194         PR other/84889
3195         * c-attribs.c (common_handle_aligned_attribute): Add
3196         auto_diagnostic_group instance.
3197         * c-indentation.c (warn_for_misleading_indentation): Likewise.
3198         * c-opts.c (c_common_post_options): Likewise.
3199         * c-warn.c (warn_logical_not_parentheses): Likewise.
3200         (warn_duplicated_cond_add_or_warn): Likewise.
3201         (warn_for_multistatement_macros): Likewise.
3203 2018-08-20  Nathan Sidwell  <nathan@acm.org>
3205         * c-ada-spec.c (macro_length, dump_ada_macros): Adjust macro parm
3206         access.
3208 2018-08-17  Nathan Sidwell  <nathan@acm.org>
3210         * c-cppbuiltin.c (struct lazy_hex_fp_value_struct): Remove macro
3211         field.
3212         (laxy_hex_fp_value_count): Make unsigned.
3213         (lazy_hex_fp_value): Provided with macro & lazy number.  Directly
3214         manipulate the macro.
3215         (builtin_defin_with_hex_fp_value): Adjust callback name, use
3216         cpp_define_lazily.
3218 2018-08-17  David Malcolm  <dmalcolm@redhat.com>
3220         * c-format.c (enum format_type): Add gcc_dump_printf_format_type.
3221         (gcc_dump_printf_length_specs): New.
3222         (gcc_dump_printf_flag_pairs): New.
3223         (gcc_dump_printf_flag_specs): New.
3224         (gcc_dump_printf_char_table): New.
3225         (format_types_orig): Add entry for "gcc_dump_printf".
3226         (init_dynamic_diag_info): Set up length_char_specs and
3227         conversion_specs for gcc_dump_printf_format_type.
3228         (handle_format_attribute): Handle gcc_dump_printf_format_type.
3230 2018-08-17  Nathan Sidwell  <nathan@acm.org>
3232         * c-ada-spec.c (macro_length, dump_ada_macros): Constify.
3234         * c-ada-spec.c: Don't #include "cpp-id-data.h"
3235         * c-cppbuiltin.c: Likewise.
3237 2018-08-17  Martin Liska  <mliska@suse.cz>
3239         * c.opt: Remove Warn, Init and Report for options with
3240         Ignore/Deprecated flag. Warning is done automatically for
3241         Deprecated flags.
3243 2018-08-16  David Malcolm  <dmalcolm@redhat.com>
3245         PR c++/70693
3246         * c-common.c (selftest::c_family_tests): Call
3247         selftest::c_indentation_c_tests.
3248         * c-common.h (selftest::c_indentation_c_tests): New decl.
3249         * c-indentation.c: Include "selftest.h".
3250         (next_tab_stop): Add "tab_width" param, rather than accessing
3251         cpp_opts.
3252         (get_visual_column): Likewise.  Clarify comment.  Bulletproof
3253         against reading past the end of the line.
3254         (get_first_nws_vis_column): Add "tab_width" param.
3255         (detect_intervening_unindent): Likewise.
3256         (should_warn_for_misleading_indentation): Read tab width from
3257         cpp_opts and pass around.
3258         (selftest::test_next_tab_stop): New test.
3259         (selftest::assert_get_visual_column_succeeds): New function.
3260         (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro.
3261         (selftest::assert_get_visual_column_fails): New function.
3262         (ASSERT_GET_VISUAL_COLUMN_FAILS): New macro.
3263         (selftest::test_get_visual_column): New test.
3264         (selftest::c_indentation_c_tests): New function.
3266 2018-08-16  Nathan Sidwell  <nathan@acm.org>
3268         * c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p.
3269         (store_ada_macro): Likewise.
3270         * c-ppoutput.c (cb_used_define, dump_macro): Likewise.
3271         * c-spellcheck.cc (should-suggest_as_macro_p): Likewise,
3273 2018-08-15  David Malcolm  <dmalcolm@redhat.com>
3275         * c-format.c: Include "selftest-diagnostic.h" and
3276         "gcc-rich-location.h".
3277         (format_warning_at_char): Pass NULL for new label params of
3278         format_warning_va.
3279         (class indirection_suffix): New class.
3280         (class range_label_for_format_type_mismatch): New class.
3281         (format_type_warning): Move logic for generating "*" suffix to
3282         class indirection_suffix.  Create "fmt_label" and "param_label"
3283         to show their types, and pass them to the
3284         format_warning_at_substring calls.
3285         (selftest::test_type_mismatch_range_labels): New test.
3286         (selftest::c_format_c_tests): Call it.
3288 2018-08-13  Martin Sebor  <msebor@redhat.com>
3290         PR tree-optimization/71625
3291         * c-common.c (braced_list_to_string): New function.
3292         * c-common.h (braced_list_to_string): Declare it.
3294 2018-08-08  Nathan Sidwell  <nathan@acm.org>
3296         * c-common.c (try_to_locate_new_include_inertion_point): Use
3297         linemap_included_from_linemap.
3298         * c-lex.c (fe_file_change): Use linemap_included_from.
3299         * c-ppoutput.c (pp_file_change): Likewise.
3301 2018-08-01  Martin Sebor  <msebor@redhat.com>
3303         PR tree-optimization/86650
3304         * c-format.c (gcc_tdiag_char_table): Update comment for "%G".
3305         (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same.
3306         (init_dynamic_diag_info): Update from "gcall *" to "gimple *".
3307         * c-format.h (T89_G): Update to be "gimple *" rather than
3308         "gcall *".
3309         (local_gcall_ptr_node): Rename...
3310         (local_gimple_ptr_node): ...to this.
3312 2018-07-31  David Malcolm  <dmalcolm@redhat.com>
3314         * c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing
3315         table entries for gcc_diag_char_table, and the 'Z' entry from
3316         gcc_tdiag_char_table, changing the "chain" entry for 'Z' from
3317         &gcc_tdiag_char_table[0] to &gcc_diag_char_table[0].
3318         (gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly
3319         adding missing "Z" for this table.  Remove erroneous "G" and "K"
3320         entries.
3321         (gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE.  Remove "v".
3322         (gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE.
3323         (gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE.  Remove "v".
3325 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
3327         * c-common.c (speculation_safe_resolve_call): New function.
3328         (speculation_safe_resolve_params): New function.
3329         (speculation_safe_resolve_return): New function.
3330         (resolve_overloaded_builtin): Handle __builtin_speculation_safe_value.
3331         * c-cppbuiltin.c (c_cpp_builtins): Add pre-define for
3332         __HAVE_SPECULATION_SAFE_VALUE.
3334 2018-07-20  David Malcolm  <dmalcolm@redhat.com>
3336         * c-common.c (c_cpp_error): Remove redundant "line_table"
3337         parameter from call to rich_location::set_range.
3338         (maybe_suggest_missing_token_insertion): Likewise.
3340 2018-07-20  Martin Sebor  <msebor@redhat.com>
3342         PR middle-end/82063
3343         * c.opt (-Warray-bounds): Remove redundant -Wall.
3345 2018-07-20  Martin Sebor  <msebor@redhat.com>
3347         PR middle-end/82063
3348         * c-common.h (c_common_handle_option): Change function argument
3349         to HOST_WIDE_INT.
3350         * c-opts.c (c_common_init_options): Same.
3351         (c_common_handle_option): Same.  Remove special handling of
3352         OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_.
3353         * c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change
3354         options to take a HOST_WIDE_INT argument and accept a byte-size
3355         suffix.  Initialize.
3356         (-Wvla-larger-than): Same.
3357         (-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New.
3358         (-Wno-vla-larger-than): Same.
3360 2018-07-12  Jakub Jelinek  <jakub@redhat.com>
3362         * c-attribs.c (c_common_attribute_table): Add
3363         "omp declare target implicit" attribute.
3365 2018-07-12  Richard Biener  <rguenther@suse.de>
3367         PR c/86453
3368         * c-attribs.c (handle_packed_attribute): Do not build a variant
3369         type with TYPE_PACKED, instead ignore the attribute if we may
3370         not apply to the original type.
3372 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
3374         PR c++/86443
3375         * c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv
3376         to contain TREE_LIST for both the original class iterator and the
3377         "last" helper var.
3379 2018-07-07  Eric Botcazou  <ebotcazou@adacore.com>
3381         * c-ada-spec.c (to_ada_name): Remove index parameter.
3382         (pp_ada_tree_identifier): Likewise.
3383         (dump_ada_macros): Adjust call to to_ada_name.
3384         (struct overloaded_name_hash): Delete.
3385         (struct overloaded_name_hasher): Likewise.
3386         (overloaded_names): Likewise.
3387         (compute_overloading_index): Likewise.
3388         (dump_ada_decl_name): Do not call compute_overloading_index and
3389         adjust calls to pp_ada_tree_identifier.
3390         (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
3391         (dump_ada_import): Add spc parameter and switch to aspect syntax.
3392         (dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier.
3393         (dump_ada_enum_type): Remove type and display_convention parameters.
3394         Adjust calls to pp_ada_tree_identifier.
3395         (dump_ada_node): Likewise and for dump_ada_structure.
3396         (dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type
3397         and tidy up.
3398         <RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect
3399         syntax.
3400         (print_constructor): Adjust call to pp_ada_tree_identifier.
3401         (print_destructor): Likewise.
3402         (dump_ada_declaration): Switch to aspect syntax.
3403         (dump_ada_structure): Likewise and tidy up.  Replace display_convention
3404         parameter with nested parameter.
3405         (dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005.
3406         (dump_ada_specs): Do not delete overloaded_names table.
3408 2018-07-06  Peter Bergner  <bergner@linux.ibm.com>
3410         PR target/86324
3411         * c-attribs.c (handle_mode_attribute): Call translate_mode_attribute
3412         target hook.
3414 2018-07-05  Nathan Sidwell  <nathan@acm.org>
3416         * c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not
3417         NO_IMPLICIT_EXTERN_C.
3419 2018-06-28  Martin Liska  <mliska@suse.cz>
3421         * cppspec.c: Include opt-suggestions.h.
3423 2018-06-20  Chung-Lin Tang  <cltang@codesourcery.com>
3424             Thomas Schwinge  <thomas@codesourcery.com>
3425             Cesar Philippidis  <cesar@codesourcery.com>
3427         * c-pragma.h (enum pragma_omp_clause): Add
3428         PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove
3429         PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}.
3431 2018-06-20  Jakub Jelinek  <jakub@redhat.com>
3433         PR c++/86210
3434         * c-common.c (check_nonnull_arg): Use fold_for_warn.  Adjust obsolete
3435         comment.
3437 2018-06-18  Martin Sebor  <msebor@redhat.com>
3439         PR middle-end/85602
3440         * c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute
3441         nonstring.
3443 2018-06-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
3445         * c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR.
3447 2018-06-13  Jason Merrill  <jason@redhat.com>
3449         * c-opts.c (c_common_post_options): Warn about useless -Wabi.
3450         (c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version
3451         handling.
3453         PR c++/86094 - wrong code with defaulted move ctor.
3454         * c-opts.c (c_common_post_options): Bump the current ABI version to
3455         13.  Set warn_abi_version and flag_abi_compat_version to the current
3456         version rather than 0.  Fix defaulting flag_abi_compat_version from
3457         warn_abi_version.
3459 2018-06-12  Martin Sebor  <msebor@redhat.com>
3461         PR c/85931
3462         * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when
3463         sizeof source and destination yields the same value.
3465 2018-06-12  Martin Liska  <mliska@suse.cz>
3467         * c.opt: Make MPX-related options as Deprecated.
3469 2018-06-08  David Malcolm  <dmalcolm@redhat.com>
3471         * c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE
3472         rather than 0.
3474 2018-06-08  Martin Liska  <mliska@suse.cz>
3476         * c-attribs.c (handle_bnd_variable_size_attribute): Remove support
3477         for MPX (macros, related functions, fields in cgraph_node, ...).
3478         (handle_bnd_legacy): Likewise.
3479         (handle_bnd_instrument): Likewise.
3480         * c.opt: Likewise.
3482 2018-06-06  Jakub Jelinek  <jakub@redhat.com>
3484         PR c++/86068
3485         * c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set
3486         __cpp_transactional_memory to 201500 instead of 210500.
3488 2018-06-06  Jason Merrill  <jason@redhat.com>
3490         PR c++/85710 - ICE with -Wmemset-elt-size.
3491         * c-warn.c (warn_for_memset): Don't crash on incomplete element type.
3493 2018-06-01  Jason Merrill  <jason@redhat.com>
3495         * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to
3496         201703.
3498 2018-06-01  Eric Botcazou  <ebotcazou@adacore.com>
3500         * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward
3501         declaration for a typedef independently of whether the declaration of
3502         the subtype is generated.
3504 2018-05-31  Martin Sebor  <msebor@redhat.com>
3506         PR c/82063
3507         * c.opt (-Wno-alloc-size-larger-than): New option.
3509 2018-04-22  David Pagan  <dave.pagan@oracle.com>
3511         PR c/55976
3512         * c-opts.c (c_common_post_options): Set default for warn_return_type
3513         for C++/C++ with ObjC extensions only. For C, makes it possible to
3514         differentiate between default (no option), -Wreturn-type, and
3515         -Wno-return-type.
3517 2018-05-29  Jason Merrill  <jason@redhat.com>
3519         * c.opt (Winit-list-lifetime): New flag.
3521 2018-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3523         * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and
3524         splay_tree_delete_pointers.
3526 2018-05-26  Jakub Jelinek  <jakub@redhat.com>
3528         PR bootstrap/85921
3529         * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary
3530         noinline variable to workaround broken kernel headers.
3532 2018-05-18  Jason Merrill  <jason@redhat.com>
3534         * c.opt (Wdeprecated-copy): New flag.
3536 2018-05-17  Martin Liska  <mliska@suse.cz>
3538         * c-warn.c (overflow_warning): Do not use
3539         space in between 'G_' and '('.
3541 2018-05-09  Jason Merrill  <jason@redhat.com>
3543         * c-common.c (valid_array_size_p): Add complain parameter.
3544         * c-common.h: ...which defaults to true.
3546 2018-05-11  Jakub Jelinek  <jakub@redhat.com>
3548         PR c/85696
3549         * c-omp.c (c_omp_predetermined_sharing): Return
3550         OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.
3552 2018-05-11  Martin Liska  <mliska@suse.cz>
3554         PR sanitizer/85556
3555         * c-attribs.c (handle_no_sanitize_attribute): Iterate all
3556         TREE_LIST values.
3558 2018-05-10  Jakub Jelinek  <jakub@redhat.com>
3560         PR c++/85662
3561         * c-common.h (fold_offsetof_1): Removed.
3562         (fold_offsetof): Add TYPE argument defaulted to size_type_node and
3563         CTX argument defaulted to ERROR_MARK.
3564         * c-common.c (fold_offsetof_1): Renamed to ...
3565         (fold_offsetof): ... this.  Remove wrapper function.  Add TYPE
3566         argument, convert the pointer constant to TYPE and use size_binop
3567         with PLUS_EXPR instead of fold_build_pointer_plus if type is not
3568         a pointer type.  Adjust recursive calls.
3570 2018-05-10  Eric Botcazou  <ebotcazou@adacore.com>
3572         PR c++/85400
3573         * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs.
3575 2018-05-07  Nathan Sidwell  <nathan@acm.org>
3577         * c.opt (ffor-scope): Remove functionality, issue warning.
3579 2018-05-03  Nathan Sidwell  <nathan@acm.org>
3581         * c.opt (ffriend-injection): Remove functionality, issue warning.
3583 2018-05-01  David Malcolm  <dmalcolm@redhat.com>
3585         PR c/84258
3586         * c-format.c (struct format_check_results): Add field
3587         "number_non_char".
3588         (check_format_info): Initialize it, and warn if encountered.
3589         (check_format_arg): Distinguish between wide char and
3590         everything else when detecting arrays of non-char.
3592 2018-04-30  David Malcolm  <dmalcolm@redhat.com>
3594         * c-format.c (get_corrected_substring): Update for
3595         location_get_source_line returning a char_span.  Use a char_span
3596         when handling the prefix of the correction.
3597         * c-indentation.c (get_visual_column): Update for
3598         location_get_source_line returning a char_span.
3599         (get_first_nws_vis_column): Likewise.
3601 2018-03-29  David Malcolm  <dmalcolm@redhat.com>
3603         PR c++/84269
3604         * known-headers.cc (get_stdlib_header_for_name): Add various names
3605         from <assert.h>, <string.h>, and <memory.h>; add more names from
3606         <stdio.h>.
3608 2018-03-27  Jakub Jelinek  <jakub@redhat.com>
3610         PR c++/85061
3611         * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that
3612         get_base_address of the second operand is a VAR_P, rather than the
3613         operand itself, and use gcc_checking_assert instead of gcc_assert.
3615 2018-03-23  Marek Polacek  <polacek@redhat.com>
3617         PR c++/85045
3618         * c-pretty-print.c (c_pretty_printer::multiplicative_expression)
3619         <case RDIV_EXPR>: Tweak condition.
3621 2018-03-20  Eric Botcazou  <ebotcazou@adacore.com>
3623         * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool.
3625 2018-03-16  Jakub Jelinek  <jakub@redhat.com>
3627         PR c/84909
3628         * c-warn.c (conversion_warning): Replace "to to" with "to" in
3629         diagnostics.
3631         PR c/84910
3632         * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
3633         diagnostics.
3635 2018-03-16  Richard Biener  <rguenther@suse.de>
3637         PR c/84873
3638         * c-gimplify.c (c_gimplify_expr): Revert previous change.  Instead
3639         unshare the possibly folded expression.
3641 2018-03-15  Richard Biener  <rguenther@suse.de>
3643         PR c/84873
3644         * c-gimplify.c (c_gimplify_expr): Do not fold expressions.
3646 2018-03-13  Martin Sebor  <msebor@redhat.com>
3648         PR tree-optimization/84725
3649         * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring
3650         with all three narrow character types, including their qualified forms.
3652 2018-03-12  Martin Sebor  <msebor@redhat.com>
3654         PR tree-optimization/83456
3655         * c-common.c (check_function_restrict): Return bool.
3656         Restore checking of bounded built-in functions.
3657         (check_function_arguments): Also return the result
3658         of warn_for_restrict.
3659         * c-common.c (check_function_restrict): Return bool.
3660         * c-warn.c (warn_for_restrict): Return bool.
3662 2018-03-02  Marek Polacek  <polacek@redhat.com>
3664         PR c++/84171
3665         * c-warn.c (warn_for_sign_compare): Bail out if any of the operands
3666         is erroneous.
3668 2018-03-02  Thomas Schwinge  <thomas@codesourcery.com>
3670         * c-attribs.c (c_common_attribute_table): Remove "cilk simd
3671         function".
3673 2018-03-01  Marek Polacek  <polacek@redhat.com>
3675         PR c++/84639
3676         * c-attribs.c (common_handle_aligned_attribute): Don't use invalid
3677         alignment in computation.
3679 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
3681         * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case.
3682         <REAL_TYPE>: Deal specifically with _Float128/__float128.
3684 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
3686         * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case.
3687         (is_char_array): Take a type instead of a declaration.
3688         (dump_ada_array_type): Likewise.
3689         (is_simple_enum): Minor tweak.
3690         (dump_ada_enum_type): New function extracted from...
3691         (dump_ada_node) <ENUMERAL_TYPE>: ...here.  Invoke it.
3692         <INTEGER_TYPE>: Remove unreachable code.
3693         <RECORD_TYPE>: Likewise.  Minor tweaks.
3694         (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes.
3695         <ENUMERAL_TYPE>: New case.
3696         <RECORD_TYPE>: Factor out common code.
3697         (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes.
3698         Minor tweaks.  Deal with enumeral types.
3699         (dump_ada_structure): Minor tweaks.
3701 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
3703         * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic
3704         address for incomplete structures.
3705         (dump_forward_type): Do not bail out for incomplete structures.
3706         (dump_ada_declaration): Do not special-case incomplete structures
3707         for subtypes.  Dump them as null records for types.
3709 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
3711         * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
3712         (is_char_array): Fix formatting.
3713         (dump_template_types): Likewise.
3714         (dump_generic_ada_node): Rename into...
3715         (dump_ada_node): ...this.
3716         <POINTER_TYPE>: Remove superfluous space.  Use generic address for
3717         incomplete structures and not for empty structures.  Do not use it
3718         when forward declarations are needed.
3719         (dump_forward_type): New function.
3720         (dump_nested_types): Remove FORWARD parameter.  Do not consider
3721         TREE_VISITED and do not generate a forward declaration.  Only dump
3722         original nested types for nested declaration.
3723         (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
3724         <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
3725         <RECORD_TYPE>: Do not consider TREE_VISITED.
3726         (dump_ada_declaration): Use booleans and fix formatting throughout.
3727         <TYPE_DECL>: Skip incomplete structures and not empty structures.
3728         Call dump_forward_type instead of dump_nested_types for a typedef.
3729         Remove superfluous check and adjust call to dump_nested_types.
3730         <POINTER_TYPE>: Call dump_forward_type and fall through.
3731         (dump_ada_struct_decl): Rename into...
3732         (dump_ada_structure): ...this.  Do not special-case empty structures.
3734 2018-02-27  Martin Sebor  <msebor@redhat.com>
3736         PR c++/83871
3737         * c.opt (-Wmissing-attributes): New option.
3739 2018-02-21  Martin Liska  <mliska@suse.cz>
3741         * c.opt (Wcatch-value=): Add IntegerRange.
3743 2018-02-15  Jason Merrill  <jason@redhat.com>
3745         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
3747 2018-02-09  Nathan Sidwell  <nathan@acm.org>
3749         PR c/84293
3750         * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
3751         arg.
3752         * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
3753         arg.  Adjust.
3755 2018-02-09  Martin Sebor  <msebor@redhat.com>
3757         PR lto/84212
3758         * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
3759         (-Walloc-size-larger-than, -Wformat-truncation=): Same.
3760         (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
3761         (-Wstrict-overflow, -Wsuggest-attribute): Same.
3762         (-Wuninitialized): Same.
3764 2018-02-09  Eric Botcazou  <ebotcazou@adacore.com>
3766         * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
3767         keyword for components.
3769 2018-02-02  Paolo Carlini  <paolo.carlini@oracle.com>
3771         * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
3773 2018-02-02  Julia Koval  <julia.koval@intel.com>
3775         * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
3777 2018-01-29  Marek Polacek  <polacek@redhat.com>
3779         PR c/83966
3780         * c-format.c (check_function_format): Check current_function_decl.
3782 2018-01-27  Jakub Jelinek  <jakub@redhat.com>
3784         * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
3785         argument.
3786         (LAZY_HEX_FP_VALUES_CNT): Define.
3787         (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
3788         values rather than just 12.
3789         (builtin_define_with_hex_fp_value): Likewise.
3791 2018-01-18  Boris Kolpackov  <boris@codesynthesis.com>
3793         PR other/70268
3794         * c.opt (-fmacro-prefix-map): New option.
3795         * c-opts.c (c_common_handle_option): Handle it.
3796         * c-lex.c (init_c_lex): Set remap_filename cpp callback.
3797         * c-ppoutput.c (init_pp_output): Likewise.
3799 2018-01-17  David Malcolm  <dmalcolm@redhat.com>
3801         PR c++/83814
3802         * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
3804 2018-01-10  Eric Botcazou  <ebotcazou@adacore.com>
3806         * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
3807         Skip 'f' and 'F' characters if it is true.
3808         (store_ada_macro): Minor tweak.
3809         (dump_ada_macros) <CPP_COMMENT>: Likewise.
3810         <CPP_WSTRING>: Likewise.
3811         <CPP_STRING>: Output '&' in the buffer if not the first string.
3812         <CPP_NUMBER>: Adjust calls to dump_number.
3814 2018-01-10  David Malcolm  <dmalcolm@redhat.com>
3816         PR c++/43486
3817         * c-common.c: Include "selftest.h".
3818         (get_atomic_generic_size): Perform the test for integral type
3819         before the range test for any integer constant, fixing indentation
3820         of braces.  Call fold_for_warn before testing for an INTEGER_CST.
3821         (reject_gcc_builtin): Strip any location wrapper from EXPR.
3822         (selftest::test_fold_for_warn): New function.
3823         (selftest::c_common_c_tests): New function.
3824         (selftest::c_family_tests): Call it, and
3825         selftest::c_pretty_print_c_tests.
3826         * c-common.h (selftest::c_pretty_print_c_tests): New decl.
3827         * c-format.c (check_format_arg): Convert VAR_P check to a
3828         fold_for_warn.
3829         * c-pretty-print.c: Include "selftest.h".
3830         (pp_c_cast_expression): Don't print casts for location wrappers.
3831         (selftest::assert_c_pretty_printer_output): New function.
3832         (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
3833         (selftest::test_location_wrappers): New function.
3834         (selftest::c_pretty_print_c_tests): New function.
3835         * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
3837 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
3838             Alan Hayward  <alan.hayward@arm.com>
3839             David Sherwood  <david.sherwood@arm.com>
3841         * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
3843 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
3844             Alan Hayward  <alan.hayward@arm.com>
3845             David Sherwood  <david.sherwood@arm.com>
3847         * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
3848         as polynomial.
3850 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
3851             Alan Hayward  <alan.hayward@arm.com>
3852             David Sherwood  <david.sherwood@arm.com>
3854         * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
3855         (convert_vector_to_array_for_subscript): Handle polynomial
3856         TYPE_VECTOR_SUBPARTS.
3857         (c_common_type_for_mode): Check valid_vector_subparts_p.
3858         * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
3859         VECTOR_CST_NELTS.
3861 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
3863         Update copyright years.
3865 2017-12-22  Mike Stump  <mikestump@comcast.net>
3866             Eric Botcazou  <ebotcazou@adacore.com>
3868         * c-pragma.c (init_pragma): Register pragma GCC unroll.
3869         * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
3871 2017-12-22  Alexandre Oliva  <aoliva@redhat.com>
3873         PR debug/83527
3874         PR debug/83419
3875         * c-semantics.c (only_debug_stmts_after_p): New.
3876         (pop_stmt_list): Clear side effects in debug-only stmt list.
3877         Check for single nondebug stmt followed by debug stmts only.
3879 2017-12-21  Alexandre Oliva  <aoliva@redhat.com>
3881         PR debug/83419
3882         * c-semantics.c (pop_stmt_list): Propagate side effects from
3883         single nondebug stmt to container list.
3885 2017-12-19  Jakub Jelinek  <jakub@redhat.com>
3887         * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
3888         conditions with typical order conditions.
3890 2017-12-18  Marek Polacek  <polacek@redhat.com>
3892         * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
3893         not in effect.
3895 2017-12-17  Martin Sebor  <msebor@redhat.com>
3897         * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
3898         an error for attribute warn_if_not_aligned.
3900 2017-12-16  Martin Sebor  <msebor@redhat.com>
3902         PR tree-optimization/78918
3903         * c-common.c (check_function_restrict): Avoid checking built-ins.
3904         * c.opt (-Wrestrict): Include in -Wall.
3906 2017-12-15  Jakub Jelinek  <jakub@redhat.com>
3908         * c-attribs.c (c_common_attribute_table,
3909         c_common_format_attribute_table): Swap affects_type_identity
3910         and handler fields, adjust comments.
3912 2017-12-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3914         * c.opt (Wcast-function-type): New warning option.
3915         * c-lex.c (get_fileinfo): Avoid warning.
3916         * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
3918 2017-12-14  Qing Zhao  <qing.zhao@oracle.com>
3920         PR middle_end/79538
3921         * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
3922         Adjust the size of buf1 and buf2, add a new buf to avoid
3923         format-overflow warning.
3925 2017-12-12  Alexandre Oliva  <aoliva@redhat.com>
3927         * c-semantics.c (pop_stmt_list): Move begin stmt marker into
3928         subsequent statement list.
3930 2017-12-07  Martin Sebor  <msebor@redhat.com>
3932         PR c/81544
3933         PR c/81566
3934         * c-attribs.c (attr_aligned_exclusions): New array.
3935         (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
3936         (attr_common_exclusions, attr_const_pure_exclusions): Same.
3937         (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
3938         (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
3939         (attr_warn_unused_result_exclusions): Same.
3940         (handle_hot_attribute, handle_cold_attribute): Simplify.
3941         (handle_const_attribute): Warn on function returning void.
3942         (handle_pure_attribute): Same.
3943         (handle_aligned_attribute): Diagnose conflicting attribute
3944         specifications.
3945         * c-warn.c (diagnose_mismatched_attributes): Simplify.
3947 2017-12-06  David Malcolm  <dmalcolm@redhat.com>
3949         PR c/83236
3950         * c-common.c (selftest::c_family_tests): Call
3951         selftest::c_spellcheck_cc_tests.
3952         * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
3953         * c-spellcheck.cc: Include "selftest.h".
3954         (name_reserved_for_implementation_p): New function.
3955         (should_suggest_as_macro_p): New function.
3956         (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
3957         should_suggest_as_macro_p and call it.
3958         (selftest::test_name_reserved_for_implementation_p): New function.
3959         (selftest::c_spellcheck_cc_tests): New function.
3960         * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
3962 2017-12-06  David Malcolm  <dmalcolm@redhat.com>
3964         * c-spellcheck.cc: New file, taken from macro-handling code in
3965         spellcheck-tree.c.
3966         * c-spellcheck.h: New file, taken from macro-handling code in
3967         spellcheck-tree.h.
3969 2017-12-01  Jakub Jelinek  <jakub@redhat.com>
3971         * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
3972         attribute.
3973         (handle_simd_attribute): Don't check for "cilk simd function"
3974         attribute.  Reindent, formatting changes.
3976 2017-11-30  Julia Koval  <julia.koval@intel.com>
3978         * c-common.h (inv_list): Remove.
3980 2017-11-28  Jakub Jelinek  <jakub@redhat.com>
3982         PR sanitizer/81275
3983         * c-common.c (c_switch_covers_all_cases_p_1,
3984         c_switch_covers_all_cases_p): New functions.
3985         * c-common.h (c_switch_covers_all_cases_p): Declare.
3987 2017-11-28  Julia Koval  <julia.koval@intel.com>
3988             Sebastian Peryt  <sebastian.peryt@intel.com>
3990         * array-notation-common.c: Delete.
3991         * c-cilkplus.c: Ditto.
3992         * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
3993         * c-common.def (ARRAY_NOTATION_REF): Remove.
3994         * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
3995         build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
3996         c_validate_cilk_plus_loop, cilkplus_an_parts,
3997         cilk_ignorable_spawn_rhs_op,
3998         cilk_recognize_spawn): Remove.
3999         * c-gimplify.c (CILK_SPAWN_STMT): Remove.
4000         * c-omp.c: Remove CILK_SIMD check.
4001         * c-pragma.c: Ditto.
4002         * c-pragma.h: Remove CILK related pragmas.
4003         * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
4004         ARRAY_NOTATION_REF condition.
4005         (c_pretty_printer::expression): Ditto.
4006         * c.opt (fcilkplus): Remove.
4007         * cilk.c: Delete.
4009 2017-11-21  Marc Glisse  <marc.glisse@inria.fr>
4011         * c-pretty-print.c (pp_c_additive_expression,
4012         c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
4014 2017-11-21  Jakub Jelinek  <jakub@redhat.com>
4016         * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
4018         PR c++/83059
4019         * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
4020         instead of tree_to_uhwi, formatting fix.
4022 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
4024         PR c/81404
4025         * known-headers.cc: New file, based on material from c/c-decl.c.
4026         (suggest_missing_header): Copied as-is.
4027         (get_stdlib_header_for_name): New, based on get_c_name_hint but
4028         heavily edited to add C++ support.  Add some knowledge about
4029         <limits.h>, <stdint.h>, and <wchar.h>.
4030         * known-headers.h: Likewise.
4032 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
4034         * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
4035         (lookup_name_fuzzy): Likewise.  Convert return type from
4036         const char * to name_hint.  Add location_t param.
4037         * name-hint.h: New header.
4039 2017-11-19  Jakub Jelinek  <jakub@redhat.com>
4041         PR c/66618
4042         PR c/69960
4043         * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
4045 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
4047         * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
4048         expected publication date of C17.
4049         (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
4051 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
4053         PR c/81156
4054         * c-common.c (c_common_reswords): Add __builtin_tgmath.
4055         * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
4057 2017-11-10  Martin Sebor  <msebor@redhat.com>
4059         PR c/81117
4060         * c-common.c (catenate_strings): Use memcpy instead of strncpy.
4061         * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
4062         * c.opt (-Wstringop-truncation): New option.
4064 2017-11-06  Martin Liska  <mliska@suse.cz>
4066         PR middle-end/82404
4067         * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
4068         FE.
4069         * c.opt: Set default value of warn_return_type.
4071 2017-10-31  David Malcolm  <dmalcolm@redhat.com>
4073         * c-common.c (binary_op_error): Update for renaming of
4074         error_at_rich_loc.
4075         (c_parse_error): Likewise.
4076         * c-warn.c (warn_logical_not_parentheses): Likewise for
4077         renaming of inform_at_rich_loc.
4078         (warn_for_restrict): Likewise for renaming of
4079         warning_at_rich_loc_n.
4081 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
4083         * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
4084         * c-opts.c (set_std_c17): New function.
4085         (c_common_init_options): Use gnu17 as default C version.
4086         (c_common_handle_option): Handle -std=c17 and -std=gnu17.
4088 2017-10-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
4090         * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
4091         (c_cpp_builtins): If a machine has a fast fma _Float<N> and
4092         _Float<N>X variant, define __FP_FAST_FMA<N> and/or
4093         __FP_FAST_FMA<N>X.
4095 2017-10-23  Marek Polacek  <polacek@redhat.com>
4097         PR c/82681
4098         * c-warn.c (warnings_for_convert_and_check): Fix typos.
4100 2017-10-19  Eric Botcazou  <ebotcazou@adacore.com>
4102         * c-common.c (check_builtin_function_arguments): Also check arguments
4103         of __builtin_alloca_with_align_and_max.
4105 2017-10-17  David Malcolm  <dmalcolm@redhat.com>
4107         * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
4108         rather than NULL to format_warning_va.
4109         (check_format_types): Likewise when calling format_type_warning.
4110         Remove code to extract source_ranges and source_range * in favor
4111         of just a location_t.
4112         (format_type_warning): Convert source_range * param to a
4113         location_t.
4115 2017-10-13  Jakub Jelinek  <jakub@redhat.com>
4117         * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
4118         [LR]SHIFT_EXPR.
4120 2017-10-12  David Malcolm  <dmalcolm@redhat.com>
4122         * c-common.c (enum missing_token_insertion_kind): New enum.
4123         (get_missing_token_insertion_kind): New function.
4124         (maybe_suggest_missing_token_insertion): New function.
4125         * c-common.h (maybe_suggest_missing_token_insertion): New decl.
4127 2017-10-11  Nathan Sidwell  <nathan@acm.org>
4129         * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
4130         (c_common_handle_option): Update incpath_kind names.
4132 2017-10-11  Martin Liska  <mliska@suse.cz>
4134         PR sanitizer/82490
4135         * c-attribs.c (handle_no_sanitize_attribute): Report directly
4136         Wattributes warning.
4138 2017-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
4140         * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
4141         operating on trees as wide_ints.
4142         * c-common.c (pointer_int_sum): Likewise.
4143         * c-pretty-print.c (pp_c_integer_constant): Likewise.
4144         * c-warn.c (match_case_to_enum_1): Likewise.
4145         (c_do_switch_warnings): Likewise.
4146         (maybe_warn_shift_overflow): Likewise.
4148 2017-10-10  Jakub Jelinek  <jakub@redhat.com>
4150         PR c/82437
4151         * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
4152         instead of wide_int::from.
4154 2017-10-06  Jakub Jelinek  <jakub@redhat.com>
4156         PR c/82437
4157         * c-warn.c (warn_tautological_bitwise_comparison): Instead of
4158         using to_widest use wide_int with the larger of the two precisions.
4160 2017-10-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4162         * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
4163         functions.
4165 2017-10-02  Richard Sandiford  <richard.sandiford@linaro.org>
4167         * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
4168         when combining the original unconverted comparison operands.
4170 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
4172         * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
4173         attribute.
4175 2017-09-29  Eric Botcazou  <ebotcazou@adacore.com>
4177         * c-ada-spec.c (to_ada_name): Add index parameter.
4178         (pp_ada_tree_identifier): Likewise.
4179         (dump_ada_macros): Adjust call to to_ada_name.
4180         (struct overloaded_name_hash): New type.
4181         (struct overloaded_name_hasher): Likewise.
4182         (overloaded_names): New hash table.
4183         (compute_overloading_index): New function.
4184         (dump_ada_decl_name): Call it and pass the result to
4185         pp_ada_tree_identifier.
4186         (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
4187         (dump_ada_function_declaration): Likewise.
4188         (dump_generic_ada_node): Likewise.
4189         (print_constructor): Likewise.
4190         (print_destructor): Likewise.
4191         (dump_ada_specs): Delete overloaded_names table.
4193 2017-09-29  Eric Botcazou  <ebotcazou@adacore.com>
4195         * c-ada-spec.c (max_ada_macros): Move around.
4196         (store_ada_macro_index): Likewise.
4197         (source_file): Rename into...
4198         (macro_source_file): ...this.
4199         (count_ada_macro): Move around.
4200         (store_ada_macro): Likewise.
4201         (compare_macro): Likewise.
4202         (print_ada_macros): Merge in...
4203         (dump_ada_macros): ...this.
4204         (source_file_base): Rename into...
4205         (current_source_file): ...this.
4206         (print_comment): Move around.
4207         (dump_ada_nodes): Call dump_ada_declaration directly.
4208         (struct with): Change type of limited field to bool.
4209         (append_withs): Change type of limited_access parameter to bool.
4210         (pp_ada_tree_identifie): Likewise.
4211         (dump_ada_decl_nam): Likewise.
4212         (dump_generic_ada_node): Likewise.  Do not print the return type.
4213         (to_ada_name): Change type of space_found parameter to bool.
4214         (dump_ada_function_declaration): Return void and change type of
4215         parameters to bool.  Also print the return type for a function.
4216         (print_ada_methods): Rename into...
4217         (dump_ada_methods): ...this.
4218         (print_ada_declaration): Rename into ...
4219         (dump_ada_declaration): ...this.  Do not print the return type.
4220         (print_ada_struct_decl): Rename into...
4221         (dump_ada_struct_decl): ...this.
4223 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
4225         * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
4226         rather than DECL_INITIAL.
4227         (common_handle_aligned_attribute): Likewise.
4229 2017-09-20  Alexandre Oliva  <aoliva@redhat.com>
4231         * c.opt (gen-decls): Add RejectNegative.
4233 2017-09-15  Andrew Sutton  <andrew.n.sutton@gmail.com>
4234             Jakub Jelinek  <jakub@redhat.com>
4236         Add support for -std=c++2a.
4237         * c-common.h (cxx_dialect): Add cxx2a as a dialect.
4238         * opt.c: Add options for -std=c++2a and -std=gnu++2a.
4239         * c-opts.c (set_std_cxx2a): New.
4240         (c_common_handle_option): Set options when -std=c++2a is enabled.
4241         (c_common_post_options): Adjust comments.
4242         (set_std_cxx14, set_std_cxx17): Likewise.
4244 2017-09-15  Eric Botcazou  <ebotcazou@adacore.com>
4246         * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
4247         message for non-uniform endianness and issue a warning in C++.
4249 2017-09-15  Jakub Jelinek  <jakub@redhat.com>
4251         * c.opt (Wc++1z-compat): Change from option to undocumented alias.
4252         (Wc++17-compat): Change from undocumented alias to option.
4253         (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
4254         change C++1z to C++17 in description.
4255         (std=c++1z, std=gnu++1z): Change from option to undocumented
4256         deprecated alias.
4257         (std=c++17, std=gnu++17): Change from undocumented alias to option.
4258         Adjust description.
4259         * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
4260         * c-opts.c (set_std_cxx1z): Rename to ...
4261         (set_std_cxx17): ... this.
4262         (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
4263         and OPT_std_gnu__1z to OPT_std_gnu__17.  Adjust set_std_cxx1z
4264         caller.
4265         (c_common_post_options): Use cxx17 instead of cxx1z.  Adjust
4266         comments.
4268 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
4270         * c-attribs.c (common_handle_aligned_attribute): Don't warn
4271         function alignment if warn_if_not_aligned_p is true.
4273 2017-09-12  Nathan Sidwell  <nathan@acm.org>
4275         * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
4276         resort_sorted_fields): Move to c/c-decl.c.
4277         * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
4278         (struct sorted_fields_type): Move to c/c-lang.h.
4280 2017-09-09  Jonathan Wakely  <jwakely@redhat.com>
4282         PR c++/81852
4283         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
4285 2017-09-04  Marek Polacek  <polacek@redhat.com>
4287         PR c/81783
4288         * c-warn.c (warn_tautological_bitwise_comparison): New function.
4289         (warn_tautological_cmp): Call it.
4291 2017-09-01  Boris Kolpackov  <boris@codesynthesis.com>
4293         * c-opts.c (c_common_finish): Write dependency information even if
4294         there are errors.
4296 2017-09-01  Jakub Jelinek  <jakub@redhat.com>
4298         PR c/81887
4299         * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
4300         (omp_pragmas_simd): ... here.
4301         * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
4302         create new clauses list containing just simd clause.
4304 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
4305             Alan Hayward  <alan.hayward@arm.com>
4306             David Sherwood  <david.sherwood@arm.com>
4308         * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
4309         into scalar_mode_supported_p call.
4310         (handle_mode_attribute): Update call to scalar_mode_supported_p.
4312 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
4313             Alan Hayward  <alan.hayward@arm.com>
4314             David Sherwood  <david.sherwood@arm.com>
4316         * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
4317         for the mode iterator.
4319 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
4320             Alan Hayward  <alan.hayward@arm.com>
4321             David Sherwood  <david.sherwood@arm.com>
4323         * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
4324         * c-common.c (c_build_vec_perm_expr): Likewise.
4326 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
4327             Alan Hayward  <alan.hayward@arm.com>
4328             David Sherwood  <david.sherwood@arm.com>
4330         * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
4332 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
4333             Alan Hayward  <alan.hayward@arm.com>
4334             David Sherwood  <david.sherwood@arm.com>
4336         * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
4337         before calling targetm.addr_space.valid_pointer_mode.
4339 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
4340             Alan Hayward  <alan.hayward@arm.com>
4341             David Sherwood  <david.sherwood@arm.com>
4343         * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
4345 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
4346             Alan Hayward  <alan.hayward@arm.com>
4347             David Sherwood  <david.sherwood@arm.com>
4349         * c-common.c (c_common_fixed_point_type_for_size): Use new mode
4350         iterators.
4351         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4353 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
4354             Alan Hayward  <alan.hayward@arm.com>
4355             David Sherwood  <david.sherwood@arm.com>
4357         * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
4358         case statements.
4360 2017-08-29  Martin Liska  <mliska@suse.cz>
4362         PR other/39851
4363         * c-common.c (parse_optimize_options): Add argument to function
4364         call.
4365         * c-pragma.c (handle_pragma_diagnostic): Likewise.
4367 2017-08-24  David Malcolm  <dmalcolm@redhat.com>
4369         * c-lex.c (interpret_float): Use token location
4370         when building an EXCESS_PRECISION_EXPR.
4372 2017-08-21  David Malcolm  <dmalcolm@redhat.com>
4374         * c-common.c (check_function_arguments): Add "arglogs" param; pass
4375         it to check_function_format.
4376         * c-common.h (check_function_arguments): Add vec<location_t> *
4377         param.
4378         (check_function_format): Likewise.
4379         * c-format.c (struct format_check_context): Add field "arglocs".
4380         (check_function_format): Add param "arglocs"; pass it to
4381         check_format_info.
4382         (check_format_info): Add param "arglocs"; use it to initialize
4383         new field of format_ctx.
4384         (check_format_arg): Pass format_ctx->arglocs to new param of
4385         check_format_info_main.
4386         (class argument_parser): New field "arglocs".
4387         (argument_parser::argument_parser): Add "arglocs_" param and use
4388         it to initialize new field.
4389         (argument_parser::check_argument_type): Pass new arglocs field to
4390         check_format_types.
4391         (check_format_info_main): Add param "arglocs", and use it when
4392         constructing arg_parser.
4393         (check_format_types): Add param "arglocs"; use it if non-NULL when
4394         !EXPR_HAS_LOCATION (cur_param) to get at location information.
4396 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4398         PR c/53037
4399         * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
4400         (c_common_attribute_table): Add warn_if_not_aligned.
4401         (handle_aligned_attribute): Renamed to ...
4402         (common_handle_aligned_attribute): Remove argument, name, and add
4403         argument, warn_if_not_aligned.  Handle warn_if_not_aligned.
4404         (handle_aligned_attribute): New.
4405         * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
4407 2017-08-14  Martin Sebor  <msebor@redhat.com>
4409         PR c/81117
4410         * c-attribs.c (c_common_attribute_table): Add nonstring entry.
4411         (handle_nonstring_attribute): New function.
4413 2017-08-14  Martin Sebor  <msebor@redhat.com>
4415         PR c/81117
4416         * c-format.h (T89_G): New macro.
4417         * c-format.c (local_gcall_ptr_node): New variable.
4418         (init_dynamic_diag_info): Initialize it.
4420 2017-08-11  Martin Liska  <mliska@suse.cz>
4422         * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
4423         TARGET_SUPPORTS_ALIASES.
4425 2017-08-10  David Malcolm  <dmalcolm@redhat.com>
4427         * c-common.c (c_parse_error): Add rich_location * param, using it
4428         rather implicitly using input_location.
4429         * c-common.h (c_parse_error): Add rich_location * param.
4431 2017-08-09  Marek Polacek  <polacek@redhat.com>
4433         * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
4434         (c_common_truthvalue_conversion): Likewise.
4435         * c-omp.c (c_finish_omp_atomic): Likewise.
4436         * c-common.h (build_binary_op): Update declaration.
4438 2017-08-08  Martin Liska  <mliska@suse.cz>
4440         * c-ada-spec.c: Include header files.
4441         * c-ubsan.c: Likewise.
4442         * c-warn.c: Likewise.
4444 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
4446         PR c/69389
4447         * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
4449 2017-08-07  Eric Botcazou  <ebotcazou@adacore.com>
4451         * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
4452         (print_ada_methods): Likewise.
4453         (print_ada_declaration): Likewise.
4455 2017-08-07  Martin Liska  <mliska@suse.cz>
4457         * array-notation-common.c: Add new includes.
4458         * c-format.c( handle_format_attribute): Canonicalize a format
4459         function name.
4460         * c-lex.c (c_common_has_attribute): Canonicalize name of an
4461         attribute.
4462         * c-pretty-print.c: Add new include.
4464 2017-08-05  Eric Botcazou  <ebotcazou@adacore.com>
4466         * c-ada-spec.c (has_static_fields): Look only into variables.
4467         (print_constructor): Add TYPE parameter and use it for the name.
4468         (print_destructor): Likewise.
4469         (print_ada_declaration): Adjust to new constructor/destructor names.
4470         Adjust calls to print_constructor and print_destructor.
4471         (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
4472         Look only into variables in the final loop.
4474 2017-08-01  Eric Botcazou  <ebotcazou@adacore.com>
4476         * c-ada-spec.c (has_static_fields): Look only into fields.
4477         (dump_generic_ada_node): Small tweak.
4478         (dump_nested_types): Look only into fields.
4479         (print_ada_declaration): Look only into methods.  Small tweak.
4480         (print_ada_struct_decl): Look only into fields.  Use DECL_VIRTUAL_P.
4482 2017-08-01  Eric Botcazou  <ebotcazou@adacore.com>
4484         * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
4485         (dump_ada_function_declaration): Likewise.
4486         (dump_generic_ada_node): Likewise.
4487         (print_ada_declaration): Add support for const-qualified variables.
4489 2017-07-31  Martin Liska  <mliska@suse.cz>
4491         PR sanitize/81530
4492         * c-ubsan.c (ubsan_maybe_instrument_array_ref):
4493         Guard condition with flag_sanitize_p also with current_function_decl
4494         non-null equality.
4495         (ubsan_maybe_instrument_reference_or_call): Likewise.
4497 2017-07-30  Uros Bizjak  <ubizjak@gmail.com>
4499         * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
4501 2017-07-29  Eric Botcazou  <ebotcazou@adacore.com>
4503         * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
4504         for enumeral types.
4505         (print_ada_declaration): Add missing guard for record types.
4507 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
4509         PR c/45784
4510         * c-omp.c (c_finish_omp_for): If the condition is wrapped in
4511         rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
4512         new COMPOUND_EXPRs around the rhs of the comparison.
4514 2017-07-27  Marek Polacek  <polacek@redhat.com>
4516         PR c/81417
4517         * c-warn.c (warn_for_sign_compare): Tweak the warning message.  Print
4518         the types.
4520 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
4522         * c-attribs.c (c_common_attribute_table): Add noipa attribute.
4523         (handle_noipa_attribute): New function.
4525 2017-07-07  Torsten Duwe  <duwe@suse.de>
4527         * c-attribs.c (c_common_attribute_table): Add entry for
4528         "patchable_function_entry".
4530 2017-07-20  Nathan Sidwell  <nathan@acm.org>
4532         Remove TYPE_METHODS.
4533         * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
4534         dump_ada_template, print_ada_methods,
4535         print_ada_declaration): Member fns are on TYPE_FIELDS.
4537 2017-07-18  Nathan Sidwell  <nathan@acm.org>
4539         * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
4541 2017-07-14  David Malcolm  <dmalcolm@redhat.com>
4543         * c-common.c (try_to_locate_new_include_insertion_point): New
4544         function.
4545         (per_file_includes_t): New typedef.
4546         (added_includes_t): New typedef.
4547         (added_includes): New variable.
4548         (maybe_add_include_fixit): New function.
4549         * c-common.h (maybe_add_include_fixit): New decl.
4551 2017-07-10  Martin Sebor  <msebor@redhat.com>
4553         PR other/81345
4554         * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
4556 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
4558         * c-common.c (selftest::c_family_tests): New.
4559         * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
4560         (selftest::c_family_tests): New decl.
4562 2017-07-04  Marek Polacek  <polacek@redhat.com>
4564         PR c/81231
4565         * c-common.c (sync_resolve_size): Give error for pointers to incomplete
4566         types.
4568 2017-07-04  Marek Polacek  <polacek@redhat.com>
4570         * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
4572 2017-06-28  Martin Liska  <mliska@suse.cz>
4574         PR ipa/81128
4575         * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
4576         to a function declaration.
4578 2017-06-28  Martin Liska  <mliska@suse.cz>
4580         PR driver/79659
4581         * c.opt: Add IntegerRange to various options.
4583 2017-06-26  Marek Polacek  <polacek@redhat.com>
4585         PR c/80116
4586         * c-common.h (warn_for_multistatement_macros): Declare.
4587         * c-warn.c: Include "c-family/c-indentation.h".
4588         (warn_for_multistatement_macros): New function.
4589         * c.opt (Wmultistatement-macros): New option.
4590         * c-indentation.c (guard_tinfo_to_string): No longer static.
4591         Change the parameter type to "enum rid".  Handle RID_SWITCH.
4592         * c-indentation.h (guard_tinfo_to_string): Declare.
4594 2017-06-23  Marc Glisse  <marc.glisse@inria.fr>
4596         * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
4598 2017-06-15  Martin Sebor  <msebor@redhat.com>
4600         PR c++/80560
4601         * c.opt (-Wclass-memaccess): New option.
4603 2017-06-14  Boris Kolpackov  <boris@codesynthesis.com>
4605         * c-opts.c (c_common_finish): Handle '-' special value to -MF.
4607 2017-06-13  Marek Polacek  <polacek@redhat.com>
4609         PR objc/80949
4610         * c-warn.c (do_warn_duplicated_branches): Return if any of the
4611         branches is null.
4613 2017-06-13  Martin Liska  <mliska@suse.cz>
4615         PR sanitize/78204
4616         * c-attribs.c (add_no_sanitize_value): New function.
4617         (handle_no_sanitize_attribute): Likewise.
4618         (handle_no_sanitize_address_attribute): Use the function.
4619         (handle_no_sanitize_thread_attribute): New function.
4620         (handle_no_address_safety_analysis_attribute): Use
4621         add_no_sanitize_value.
4622         (handle_no_sanitize_undefined_attribute): Likewise.
4623         * c-common.h: Declare new functions.
4624         * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
4625         (ubsan_instrument_shift): Likewise.
4626         (ubsan_instrument_bounds): Likewise.
4627         (ubsan_maybe_instrument_array_ref): Likewise.
4628         (ubsan_maybe_instrument_reference_or_call): Likewise.
4630 2017-06-11  Jason Merrill  <jason@redhat.com>
4632         * c-ada-spec.c, c-pragma.c: Use id_equal.
4634 2017-06-04  Marek Polacek  <polacek@redhat.com>
4636         PR c/80919
4637         * c-format.c (matching_type_p): Return false if any of the types
4638         requires structural equality.
4640 2017-06-02  Martin Sebor  <msebor@redhat.com>
4642         PR c/80892
4643         * c-warn.c (conversion_warning): Use -Wconversion for integer
4644         conversion and -Wfloat-conversion for floating one.
4646 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4648         * c.opt (Wsizeof-pointer-div): New warning option.
4650 2017-06-01  Volker Reichelt  <v.reichelt@netcologne.de>
4652         * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
4653         (Wcatch-value=1): Enable by -Wall.
4655 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
4657         * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
4658         format_chars.
4659         * c.opt (fdiagnostics-show-template-tree): New option.
4660         (felide-type): New option.
4662 2017-05-25  Volker Reichelt  <v.reichelt@netcologne.de>
4664         * c.opt (Wcatch-value=): New C++ warning flag.
4666 2017-05-24  Nathan Sidwell  <nathan@acm.org>
4668         * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
4669         const casts to avoid warning.
4671 2017-05-24  Martin Sebor  <msebor@redhat.com>
4673         PR c/80731
4674         * c-common.h (unsafe_conversion_p): Add a function argument.
4675         * c-common.c (unsafe_conversion_p): Same.
4676         Add type names and values to diagnostics.
4677         (scalar_to_vector): Adjust.
4678         * c-warn.c (constant_expression_error): Add a function argument.
4679         Add type names and values to diagnostics.
4680         (conversion_warning): Add a function argument.
4681         Add type names and values to diagnostics.
4682         (warnings_for_convert_and_check): Same.
4684 2017-05-19  Jason Merrill  <jason@redhat.com>
4686         * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
4687         enumerators.
4689 2017-05-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4691         * c-format.c (locus): Move out of function scope,
4692         add GTY attribute.
4694 2017-05-19  Nathan Sidwell  <nathan@acm.org>
4696         * c-opts.c (class_dump_file, class_dump_flags): Delete.
4697         (c_common_parse_file): Remove class dump handling.
4698         (get_dump_info): Likewise.
4700 2017-05-19  Richard Biener  <rguenther@suse.de>
4702         PR c++/80593
4703         * c-warn.c (strict_aliasing_warning): Do not warn for accesses
4704         to alias-set zero memory.
4706 2017-05-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4708         * c-format.c (local_tree_type_node): Add GTY attribute.
4710 2017-05-18  Marek Polacek  <polacek@redhat.com>
4712         * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
4713         (c_common_fixed_point_type_for_size): Likewise.
4714         (c_common_type_for_mode): Likewise.
4715         (shorten_compare): Likewise.
4716         (c_promoting_integer_type_p): Use false/true instead of 0/1.
4717         * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
4719 2017-05-18  Marek Polacek  <polacek@redhat.com>
4721         * c-common.c (self_promoting_args_p): Change the return type to bool.
4722         Use false/true instead of 0/1.
4723         * c-common.h (self_promoting_args_p): Update.
4725 2017-05-17  Marek Polacek  <polacek@redhat.com>
4727         * c-common.c: Use NULL_TREE instead of 0 where appropriate.
4728         * c-warn.c: Likewise.
4730 2017-05-17  Ville Voutilainen  <ville.voutilainen@gmail.com>
4732         Implement new C++ intrinsics __is_assignable and __is_constructible.
4733         * c-common.c (__is_assignable, __is_constructible): New.
4734         * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
4736 2017-05-17  Martin Liska  <mliska@suse.cz>
4738         * c-common.h: Introduce dump_flags_t type and
4739         use it instead of int type.
4740         * c-gimplify.c (c_genericize): Likewise.
4741         * c-opts.c: Likewise.
4743 2017-05-17  Marek Polacek  <polacek@redhat.com>
4745         * c-common.c (c_save_expr): Remove.
4746         (c_common_truthvalue_conversion): Remove a call to c_save_expr.
4747         * c-common.h (c_save_expr): Remove declaration.
4749 2017-05-09  Volker Reichelt  <v.reichelt@netcologne.de>
4751         PR c/35441
4752         * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
4753         MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
4754         (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
4755         (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
4756         RDIV_EXPR.
4757         (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
4759 2017-05-09  Marek Polacek  <polacek@redhat.com>
4761         PR c/80525
4762         * c-warn.c (unwrap_c_maybe_const): New.
4763         (warn_logical_operator): Call it.
4765 2017-05-09  Nathan Sidwell  <nathan@acm.org>
4767         * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
4768         * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
4770 2017-05-08  Martin Sebor  <msebor@redhat.com>
4772         PR translation/80280
4773         * c-format.h (struct format_flag_spec): Add new member.
4774         (T89_T): New macro.
4775         * c-format.c (local_tree_type_node): New global.
4776         (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
4777         (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
4778         (strfmon_flag_specs): Likewise.
4779         (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
4780         with distinct quoting properties.
4781         (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
4782         (flag_chars_t::validate): Add argument and handle bad quoting.
4783         (check_format_info_main): Handle quoting problems.
4784         (init_dynamic_diag_info): Simplify.
4786 2017-05-08  Jason Merrill  <jason@redhat.com>
4788         * c-opts.c (c_common_post_options): Update defaults for
4789         flag_abi_version and flag_abi_compat_version.
4791 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
4793         * c-common.c (c_cpp_error): Replace report_diagnostic
4794         with diagnostic_report_diagnostic.
4796 2017-05-04  Martin Sebor  <msebor@redhat.com>
4798         PR translation/80280
4799         * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
4800         (handle_weakref_attribute): Same.
4802 2017-05-03  Nathan Sidwell  <nathan@acm.org>
4804         Canonicalize canonical type hashing
4805         * c-common.c (complete_array_type): Use type_hash_canon.
4807 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
4809         PR c++/80038
4810         * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
4811         prototype.
4812         (cilk_install_body_pedigree_operations): Likewise.
4813         * cilk.c (cilk_set_spawn_marker): Mark functions that should be
4814         detatched.
4815         (cilk_gimplify_call_params_in_spawned_fn): Remove.
4816         (cilk_install_body_pedigree_operations): Likewise.
4817         (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
4818         unwrapping.
4820 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
4822         PR c++/80534
4823         * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
4824         flag on non-aggregate element types.
4826 2017-04-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4828         * c-common.c (c_type_hasher, type_hash_table): Remove.
4829         (c_common_get_alias_set): Remove unreachable code.
4830         * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
4832 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
4834         * c.opt (Wextra-semi): New C++ warning flag.
4836 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
4838         PR middle-end/80423
4839         * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
4841 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
4843         PR middle-end/79788
4844         PR middle-end/80375
4845         * c-common.c (c_common_type_for_mode): Don't handle
4846         widest_*_literal_type_node here.
4847         c_common_signed_or_unsigned_type): Likewise.
4848         (c_common_nodes_and_builtins): Set widest_*_literal_type_node
4849         to *intTI_type_node or *intDI_type_node depending on whether
4850         TImode is supported by the target or not.
4852 2017-04-10  Martin Liska  <mliska@suse.cz>
4854         PR sanitizer/80350
4855         * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
4856         doing an UBSAN check.
4858 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
4860         * c-warn.c (do_warn_double_promotion): Fix typo in comment.
4862 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
4864         PR c++/79572
4865         * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
4866         tree *.
4867         * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise.  Handle
4868         not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
4869         REFERENCE_TYPE.
4871 2017-03-31  David Malcolm  <dmalcolm@redhat.com>
4873         PR documentation/78732
4874         * c.opt (Wendif-labels): Fix description to refer to
4875         #else rather than #elif.
4877 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
4879         PR libstdc++/80251
4880         * c-common.h (enum rid): Add RID_IS_AGGREGATE.
4881         * c-common.c (c_common_reswords): Add __is_aggregate trait.
4883 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
4885         PR middle-end/80162
4886         * c-common.c (c_common_mark_addressable_vec): Don't set
4887         TREE_ADDRESSABLE on DECL_HARD_REGISTER.
4889 2017-03-21  Martin Sebor  <msebor@redhat.com>
4891         PR c++/79548
4892         * c-common.c (set_underlying_type): Mark type used only when
4893         original del is declared unused.
4895 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
4897         PR translation/79848
4898         * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
4899         "%qs".
4901 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
4903         PR c/79921
4904         * c-indentation.c (warn_for_misleading_indentation): Remove parens
4905         from inform's message, so that xgettext can locate it.
4907 2017-03-09  Marek Polacek  <polacek@redhat.com>
4909         PR c++/79962
4910         PR c++/79984
4911         * c-attribs.c (handle_nonnull_attribute): Save the result of default
4912         conversion to the attribute list.
4914 2017-03-09  Martin Liska  <mliska@suse.cz>
4916         * c-ada-spec.c (macro_length): Increment value instead of a pointer.
4918 2017-03-03  Jason Merrill  <jason@redhat.com>
4920         * c.opt (Wnoexcept-type): New.
4922 2017-03-02  Richard Biener  <rguenther@suse.de>
4924         PR c/79756
4925         * c-common.c (c_common_mark_addressable_vec): Look through
4926         C_MAYBE_CONST_EXPR.
4928 2017-02-28  Martin Liska  <mliska@suse.cz>
4930         * c.opt: Replace space with tabular for options of <number>
4931         type.
4933 2017-02-28  Martin Liska  <mliska@suse.cz>
4935         * c.opt: Fix --help=option -Q for options which are of
4936         an enum type.
4938 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
4940         PR c++/79588
4941         * c-common.c (check_function_restrict): New function.
4942         (check_function_arguments): Add FNDECL argument.  Call
4943         check_function_restrict if -Wrestrict.
4944         * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
4945         and NARGS.  Use auto_vec for ARG_POSITIONS, simplify.
4946         * c-common.h (check_function_arguments): Add FNDECL argument.
4947         (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
4949 2017-02-24  Eric Botcazou  <ebotcazou@adacore.com>
4951         * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
4952         treatment of parameters with pointer-to-tagged type and tidy up.
4953         (print_ada_methods): Remove the special treatment of C++ static member
4954         functions.
4956 2017-02-22  Martin Liska  <mliska@suse.cz>
4958         * c.opt: Replace inequality signs with square brackets
4959         for -Wnornalized.
4961 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
4963         PR c++/79641
4964         * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
4965         preserve quals.
4967 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
4969         * c-cppbuiltin.c (builtin_define_float_constants): Define
4970         __DECIMAL_DIG__ to the value for long double.
4972 2017-02-15  Marek Polacek  <polacek@redhat.com>
4974         PR c/79515
4975         * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
4976         conversion has occured.
4978 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
4980         * c-common.c (c_common_reswords): Add "__RTL".
4981         * c-common.h (enum rid): Add RID_RTL.
4983 2017-01-20  Marek Polacek  <polacek@redhat.com>
4985         PR c/64279
4986         * c-common.h (do_warn_duplicated_branches_r): Declare.
4987         * c-gimplify.c (c_genericize): Walk the function tree calling
4988         do_warn_duplicated_branches_r.
4989         * c-warn.c (expr_from_macro_expansion_r): New.
4990         (do_warn_duplicated_branches): New.
4991         (do_warn_duplicated_branches_r): New.
4992         * c.opt (Wduplicated-branches): New option.
4994 2017-01-17  David Malcolm  <dmalcolm@redhat.com>
4996         PR c++/71497
4997         * c-indentation.c (warn_for_misleading_indentation): Use the past
4998         subjunctive in the note.
5000 2017-01-17  Aldy Hernandez  <aldyh@redhat.com>
5002         PR c/79116
5003         * array-notation-common.c (cilkplus_extract_an_triplets): Convert
5004         start type to integer_type.
5006 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
5008         PR driver/49726
5009         * c.opt (gen-decls): Add Driver flag.
5011 2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
5013         Revert:
5014         2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
5016         PR c++/71737
5017         * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
5019 2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
5021         PR c++/71737
5022         * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
5024 2017-01-12  Martin Sebor  <msebor@redhat.com>
5026         (-Wformat-overflow): ...to this.
5028 2017-01-11  Martin Sebor  <msebor@redhat.com>
5030         PR c/78768
5031         * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
5032         Also enable for LTO.
5034 2017-01-10  Jason Merrill  <jason@redhat.com>
5036         Implement P0195R2, C++17 variadic using.
5037         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
5039 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
5041         PR translation/79019
5042         PR translation/79020
5043         * c.opt (Wnormalized=): Fix typo in description.
5045 2017-01-08  Martin Sebor  <msebor@redhat.com>
5047         PR middle-end/77708
5048         * c.opt (-Wformat-truncation): New option.
5050 2017-01-06  Alexandre Oliva  <aoliva@redhat.com>
5052         * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
5053         value to unsigned short to fit in 4 hex digits without
5054         warnings.
5056 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
5058         * c.opt (fsso-struct): Add 'native' value.
5060 2017-01-05  Martin Liska  <mliska@suse.cz>
5062         PR pch/78970
5063         * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
5064         header.
5066 2017-01-04  Marek Polacek  <polacek@redhat.com>
5068         PR c++/64767
5069         * c.opt (Wpointer-compare): New option.
5071 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
5073         PR driver/78957
5074         * c.opt (fsso-struct=): Add RejectNegative.
5076 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
5078         Update copyright years.
5080 2016-12-29  Martin Liska  <mliska@suse.cz>
5082         PR c/78933
5083         * c.opt (strong-eval-order): Add RejectNegative keyword.
5085 2016-12-22  Jason Merrill  <jason@redhat.com>
5087         Implement P0522R0, matching of template template arguments.
5088         * c-cppbuiltin.c (c_cpp_builtins): Define
5089         __cpp_template_template_args.
5091 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
5093         PR bootstrap/78817
5094         * c-common.c (struct nonnull_arg_ctx): New type.
5095         (check_function_nonnull): Return bool instead of void.  Use
5096         nonnull_arg_ctx as context rather than just location_t.
5097         (check_nonnull_arg): Adjust for the new context type, set
5098         warned_p to true if a warning has been diagnosed.
5099         (check_function_arguments): Return bool instead of void.
5100         * c-common.h (check_function_arguments): Adjust prototype.
5102 2016-12-21  Jason Merrill  <jason@redhat.com>
5104         * c.opt (-fnew-ttp-matching): New flag.
5105         * c-opts.c (c_common_post_options): Default on if -std=c++1z.
5107 2016-12-14  Martin Jambor  <mjambor@suse.cz>
5109         * c-omp.c: Include omp-general.h instead of omp-low.h.
5110         (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
5111         name.
5113 2016-12-14  Martin Sebor  <msebor@redhat.com>
5115         PR c/17308
5116         * c-common.c (check_nonnull_arg): Disable when optimization
5117         is enabled.
5119 2016-12-12  Marek Polacek  <polacek@redhat.com>
5121         PR c++/78647
5122         * c-common.c (attribute_fallthrough_p): Return false for
5123         error_mark_node.
5125 2016-12-08  Martin Sebor  <msebor@redhat.com>
5127         PR c/78284
5128         * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
5130 2016-12-08  Martin Sebor  <msebor@redhat.com>
5132         PR c/78165
5133         * c-pretty-print (pp_c_integer_constant): Avoid formatting type
5134         suffix.
5136 2016-12-07  Martin Sebor  <msebor@redhat.com>
5138         PR c/53562
5139         PR middle-end/77784
5140         PR middle-end/78149
5141         PR middle-end/78138
5142         * c.opt (-Wstringop-overflow): New option.
5144 2016-12-02  Maxim Ostapenko  <m.ostapenko@samsung.com>
5146         * c-attribs.c (asan odr indicator): New attribute.
5147         (handle_asan_odr_indicator_attribute): New function.
5149 2016-11-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5151         * c-common.c (c_common_nodes_and_builtins): Remove initialization of
5152         ptrdiff_type_node;
5154 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
5156         * c-common.c (excess_precision_mode_join): New.
5157         (c_ts18661_flt_eval_method): New.
5158         (c_c11_flt_eval_method): Likewise.
5159         (c_flt_eval_method): Likewise.
5160         * c-common.h (excess_precision_mode_join): New.
5161         (c_flt_eval_method): Likewise.
5162         * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
5163         (cpp_iec_559_value): Call it.
5164         (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
5165         call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
5166         __FLT_EVAL_METHOD_TS_18661_3__.
5168 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
5170         * c-opts.c (c_common_post_options): Add logic to handle the default
5171         case for -fpermitted-flt-eval-methods.
5173 2016-11-23  Paolo Bonzini  <bonzini@gnu.org>
5175         * c.opt (Wexpansion-to-defined): New.
5177 2016-11-23  Jakub Jelinek  <jakub@redhat.com>
5179         PR target/78451
5180         * c-pragma.c (handle_pragma_target): Don't replace
5181         current_target_pragma, but chainon the new args to the current one.
5183 2016-11-22  Nathan Sidwell  <nathan@acm.org>
5185         * array-notation-common.c (cilkplus_extract_an_trplets): Fix
5186         indentation and formatting.
5188 2016-11-21  Martin Sebor  <msebor@redhat.com>
5190         * c.opt (-fprintf-return-value): Enable by default.
5192 2016-11-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5194         PR c++/71973
5195         * c.opt (-Wbuiltin-declaration-mismatch): New warning.
5196         * c-common.c (c_common_nodes_and_builtins): Initialize
5197         const_tm_ptr_type_node.
5199 2016-11-16  Marek Polacek  <polacek@redhat.com>
5201         PR c/78285
5202         * c-common.c (c_add_case_label): Turn error_at calls into inform.
5204 2016-11-14  Jakub Jelinek  <jakub@redhat.com>
5206         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
5208 2016-11-14  Prasad Ghangal  <prasad.ghangal@gmail.com>
5209             Richard Biener  <rguenther@suse.de>
5211         * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
5212         * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
5213         * c.opt (fgimple): New option.
5215 2016-11-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5217         PR c/35503
5218         * c-common.h (warn_for_restrict): Declare.
5219         * c-warn.c: Include gcc-rich-location.h.
5220         (warn_for_restrict): New function.
5221         * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
5222         (gcc_cdiag_char_table): Likewise.
5223         (gcc_cxxdiag_char_table): Likewise.
5224         * c.opt (Wrestrict): New option.
5226 2016-11-13  Eric Botcazou  <ebotcazou@adacore.com>
5228         * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
5229         for nested types only if the type is a record or union and dump SLOC.
5231 2016-11-09  Jason Merrill  <jason@redhat.com>
5233         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
5235 2016-11-09  Jakub Jelinek  <jakub@redhat.com>
5237         * c-ubsan.c (ubsan_instrument_shift): Handle split
5238         -fsanitize=shift-base and -fsanitize=shift-exponent.
5240 2016-11-07  Jason Merrill  <jason@redhat.com>
5242         * c.opt (Wc++1z-compat): New.
5243         * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
5245 2016-11-07  Martin Liska  <mliska@suse.cz>
5247         * c-warn.c (warn_for_unused_label): Save all labels used
5248         in goto or in &label.
5250 2016-11-03  Jason Merrill  <jason@redhat.com>
5252         * c-cppbuiltin.c (c_cpp_builtins): Correct
5253         __cpp_inheriting_constructors.
5255 2016-11-01  Jason Merrill  <jason@redhat.com>
5257         * c-cppbuiltin.c (c_cpp_builtins): Update
5258         __cpp_inheriting_constructors.
5260         * c.opt (-fnew-inheriting-ctors): New.
5261         * c-opts.c: Default to on for ABI 11+.
5263 2016-10-31  Jakub Jelinek  <jakub@redhat.com>
5265         PR c++/77948
5266         * c.opt (fext-numeric-literals): Add Var and Init.
5267         * c-opts.c (c_common_handle_option): Don't clear
5268         cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
5269         (c_common_post_options): Clear it here if not set
5270         explicitly.
5272 2016-10-28  Aldy Hernandez  <aldyh@redhat.com>
5274         PR debug/77773
5275         * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
5276         if NULL.
5278 2016-10-25  Jakub Jelinek  <jakub@redhat.com>
5280         * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
5281         * c-common.c (c_common_reswords): Add __builtin_launder.
5283 2016-10-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5285         * c-common.c (c_common_truthvalue_conversion): Warn for
5286         multiplications in boolean context.  Fix the quoting of '<<' and '<'
5287         in the shift warning.
5289 2016-10-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5291         * c-common.c (c_common_truthvalue_conversion): Fix the comment.
5293 2016-10-20  Jason Merrill  <jason@redhat.com>
5295         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
5297 2016-10-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5299         * c-common.c (c_common_truthvalue_conversion): Warn only for signed
5300         integer shift ops in boolean context.
5302 2016-10-18  Aldy Hernandez  <aldyh@redhat.com>
5304         * c.opt (Walloca): New.
5305         (Walloca-larger-than=): New.
5306         (Wvla-larger-than=): New.
5308 2016-10-17  Marek Polacek  <polacek@redhat.com>
5310         * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
5311         Return immediately when finding a match.
5312         (warn_tautological_cmp): Remove a boolean variable that is no longer
5313         needed.
5315 2016-10-17  Marek Polacek  <polacek@redhat.com>
5317         * c-attribs.c: New file.
5318         * c-common.c: Move attributes handling to c-attribs.c.
5319         (get_nonnull_operand): No longer static.
5320         * c-common.h: Move the declarations from c-attribs.c to its own section.
5322 2016-10-14  Jason Merrill  <jason@redhat.com>
5324         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
5325         and __cpp_deduction_guides.
5327 2016-10-13  Jason Merrill  <jason@redhat.com>
5329         * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
5331 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5333         * c-cppbuiltin.c: Include memmodel.h.
5334         * c-opts.c: Likewise.
5335         * c-pragma.c: Likewise.
5336         * c-warn.c: Likewise.
5338 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
5340         * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
5341         (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
5342         * c-opts.c (sanitize_cpp_opts): Initialize
5343         cpp_opts->cpp_warn_implicit_fallthrough.
5345 2016-10-11  Marek Polacek  <polacek@redhat.com>
5347         * c-common.c (warning_candidate_p): Change the return type to bool
5348         and return true/false instead of 1/0.
5349         (vector_mode_valid_p): Likewise.
5351 2016-10-11  Marek Polacek  <polacek@redhat.com>
5353         * c-common.c (fold_for_warn): No longer static.
5354         (bool_promoted_to_int_p): Likewise.
5355         (c_common_get_narrower): Likewise.
5356         (constant_expression_warning): Move to c-warn.c.
5357         (constant_expression_error): Likewise.
5358         (overflow_warning): Likewise.
5359         (warn_logical_operator): Likewise.
5360         (find_array_ref_with_const_idx_r): Likewise.
5361         (warn_tautological_cmp): Likewise.
5362         (expr_has_boolean_operands_p): Likewise.
5363         (warn_logical_not_parentheses): Likewise.
5364         (warn_if_unused_value): Likewise.
5365         (strict_aliasing_warning): Likewise.
5366         (sizeof_pointer_memaccess_warning): Likewise.
5367         (check_main_parameter_types): Likewise.
5368         (conversion_warning): Likewise.
5369         (warnings_for_convert_and_check): Likewise.
5370         (match_case_to_enum_1): Likewise.
5371         (match_case_to_enum): Likewise.
5372         (c_do_switch_warnings): Likewise.
5373         (warn_for_omitted_condop): Likewise.
5374         (readonly_error): Likewise.
5375         (lvalue_error): Likewise.
5376         (invalid_indirection_error): Likewise.
5377         (warn_array_subscript_with_type_char): Likewise.
5378         (warn_about_parentheses): Likewise.
5379         (warn_for_unused_label): Likewise.
5380         (warn_for_div_by_zero): Likewise.
5381         (warn_for_memset): Likewise.
5382         (warn_for_sign_compare): Likewise.
5383         (do_warn_double_promotion): Likewise.
5384         (do_warn_unused_parameter): Likewise.
5385         (record_locally_defined_typedef): Likewise.
5386         (maybe_record_typedef_use): Likewise.
5387         (maybe_warn_unused_local_typedefs): Likewise.
5388         (maybe_warn_bool_compare): Likewise.
5389         (maybe_warn_shift_overflow): Likewise.
5390         (warn_duplicated_cond_add_or_warn): Likewise.
5391         (diagnose_mismatched_attributes): Likewise.
5392         * c-common.h: Move the declarations from c-warn.c to its own section.
5393         * c-warn.c: New file.
5395 2016-10-08  Jason Merrill  <jason@redhat.com>
5397         * c-common.c (c_common_truthvalue_conversion): Don't distribute
5398         into COND_EXPR in C++.
5400 2016-10-08  Jakub Jelinek  <jakub@redhat.com>
5402         * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
5403         token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
5404         CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
5406 2016-10-07  Jakub Jelinek  <jakub@redhat.com>
5408         Implement LWG2296 helper intrinsic
5409         * c-common.h (enum rid): Add RID_ADDRESSOF.
5410         * c-common.c (c_common_reswords): Add __builtin_addressof.
5412 2016-10-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5414         PR c++/77700
5415         * c-common.c (c_common_truthvalue_conversion): Warn also for
5416         suspicious enum values in boolean context.
5418 2016-10-06  Jakub Jelinek  <jakub@redhat.com>
5420         Implement P0258R2 - helper for C++17
5421         std::has_unique_object_representations trait
5422         * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
5423         * c-common.c (c_common_reswords): Add
5424         __has_unique_object_representations.
5426 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
5428         PR sanitizer/66343
5429         * c-ubsan.c (ubsan_instrument_return): Don't call
5430         initialize_sanitizer_builtins here.
5432 2016-10-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5434         * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
5435         conditional expression in boolean context when only one arm is
5436         non-boolean.
5438 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
5440         PR sanitizer/77823
5441         * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
5442         is not integral.
5444         * c-common.c (c_common_reswords): Update comment for C++11.
5446 2016-10-04  Jason Merrill  <jason@redhat.com>
5448         * c-common.c (make_tree_vector_from_ctor): New.
5449         * c-common.h: Declare it.
5451 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
5453         * c-cppbuiltin.c (c_cpp_builtins): Don't define
5454         __LIBGCC_JCR_SECTION_NAME__.
5456 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5458         * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
5459         left shift in boolean context.
5461 2016-09-29  Jakub Jelinek  <jakub@redhat.com>
5463         Implement P0001R1 - C++17 removal of register storage class specifier
5464         * c.opt (Wregister): New warning.
5465         * c-opts.c (c_common_post_options): Enable -Wregister by
5466         default for C++17.
5468 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
5470         * c-opts.c (c_common_post_options): Remove special case for
5471         TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
5472         in C++.
5474 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
5476         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
5477         -std=c++1z.
5479         * c-ada-spec.c (print_ada_declaration): Remove break after return.
5481 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5483         * c-common.c: Include memmodel.h.
5485 2016-09-26  Marek Polacek  <polacek@redhat.com>
5487         * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
5489 2016-09-26  Marek Polacek  <polacek@redhat.com>
5491         PR c/7652
5492         * c-common.c (c_common_attribute_table): Add fallthrough attribute.
5493         (handle_fallthrough_attribute): New function.
5494         (attribute_fallthrough_p): New function.
5495         * c-common.h (attribute_fallthrough_p): Declare.
5497 2016-09-24  Marek Polacek  <polacek@redhat.com>
5499         PR c/77490
5500         * c.opt (Wbool-operation): New.
5502 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5504         * c-common.c (c_common_truthvalue_conversion): Inhibit
5505         Wint-in-bool-context warning with from_macro_definition_at.
5506         Mention the expression will always evaluate to true.
5508 2016-09-21  Martin Sebor  <msebor@redhat.com>
5510         PR bootstrap/77676
5511         * c.opt (fprintf-return-value): Temporarily initialize to zero
5512         to unblock bootstrap failures.
5514 2016-09-21  Jakub Jelinek  <jakub@redhat.com>
5516         PR c++/77651
5517         * c.opt (Waligned-new=): Add RejectNegative.
5518         (faligned-new=): Likewise.  Spelling fix - change
5519         aligned_new_threshhold to aligned_new_threshold.
5520         * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
5521         to aligned_new_threshold.
5523 2016-09-20  Martin Sebor  <msebor@redhat.com>
5525         PR middle-end/49905
5526         * c.opt: Add -Wformat-length and -fprintf-return-value.
5528 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5530         PR c++/77434
5531         * c.opt (Wint-in-bool-context): New warning.
5532         * c-common.c (c_common_truthvalue_conversion): Warn on integer
5533         constants in boolean context.
5535 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
5537         * c-common.c (max_align_t_align): Also consider alignment of
5538         float128_type_node.
5540 2016-09-15  Jason Merrill  <jason@redhat.com>
5542         * c-common.c (check_cxx_fundamental_alignment_constraints): Check
5543         DECL_EXTERNAL.
5545 2016-09-14  Jason Merrill  <jason@redhat.com>
5547         * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
5548         limit FIELD_DECL, either.
5550 2016-09-14  Marek Polacek  <polacek@redhat.com>
5552         * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
5553         * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
5554         * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
5556 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
5558         * c-common.c (warn_logical_not_parentheses): Replace
5559         rich_location::add_fixit_insert calls with add_fixit_insert_before
5560         and add_fixit_insert_after, eliminating the "next_loc" calculation.
5562 2016-09-13  Jason Merrill  <jason@redhat.com>
5563             Tom de Vries  <tom@codesourcery.com>
5565         PR c++/77427
5566         * c-common.c (set_underlying_type): Don't treat array as builtin type.
5568 2016-09-13  Jason Merrill  <jason@redhat.com>
5570         * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
5571         limit types at all.
5573 2016-09-12  Jason Merrill  <jason@redhat.com>
5575         * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
5576         bit/byte confusion, allow large alignment for types.
5578 2016-09-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5580         PR c++/77496
5581         * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
5583 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
5585         PR c/72858
5586         * c-format.c (argument_parser::check_argument_type): Add params
5587         "type_start" and "conversion_char".  Use the former to generate
5588         offset_to_type_start and pass it and conversion_char to
5589         check_format_types.
5590         (check_format_info_main): Capture the start of the type
5591         information as "type_start", and pass it an format_char
5592         to arg_parser.check_argument_type.
5593         (check_format_types): Provide an example in the leading comment.
5594         Add params "offset_to_type_start" and "conversion_char"; pass
5595         them to format_type_warning calls.
5596         (test_get_modifier_for_format_len): Likewise.
5597         (matching_type_p): New function.
5598         (get_format_for_type): Add param "conversion_char" and move
5599         implementation into...
5600         (get_format_for_type_1): ...new function, called twice.
5601         Use new function matching_type_p rather than checking for
5602         TYPE_CANONICAL equality.
5603         (get_corrected_substring): New function.
5604         (format_type_warning): Provide an example in the leading comment.
5605         Add params "offset_to_type_start" and "conversion_char".  Replace
5606         call to get_format_for_type with call to get_corrected_substring
5607         and move rejection of hints for widths/precisions there.
5608         (assert_format_for_type_streq): Add param "conversion_char".
5609         (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
5610         (test_get_format_for_type_printf): Add conversion chars to the
5611         tests, adding coverage for various combinations of integer
5612         vs double conversions, and for preserving octal and hexadecimal
5613         conversions.
5614         (test_get_format_for_type_scanf): Add conversion chars to the
5615         tests.
5617 2016-09-10  Tom de Vries  <tom@codesourcery.com>
5619         PR C/71602
5620         * c-common.c (build_va_arg): Handle more strict
5621         targetm.canonical_va_list_type.  Replace first argument type error with
5622         assert.
5624 2016-09-09  Martin Sebor  <msebor@redhat.com>
5626         PR c/77520
5627         PR c/77521
5628         * c-format.c (argument_parser::find_format_char_info): Use %qc
5629         format directive unconditionally.
5631 2016-09-09  Jason Merrill  <jason@redhat.com>
5633         Implement C++17 new of over-aligned types.
5634         * c.opt: Add -faligned-new and -Waligned-new.
5635         * c-common.c (max_align_t_align): Split out from...
5636         (cxx_fundamental_alignment_p): ...here.
5637         * c-common.h: Declare it.
5638         * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
5640 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
5642         * c-cppbuiltin.c (builtin_define_type_width): New function.
5643         (builtin_define_stdint_macros, c_cpp_builtins): Define type width
5644         macros.
5646 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
5648         * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
5649         a POINTER_TYPE.
5650         (substring_loc::get_location): Move to substring-locations.c,
5651         keeping implementation as...
5652         (c_get_substring_location): New function, from the above, reworked
5653         to use accessors rather than member lookup.
5654         * c-common.h (class substring_loc): Move to substring-locations.h,
5655         replacing with a forward decl.
5656         (c_get_substring_location): New decl.
5657         * c-format.c: Include "substring-locations.h".
5658         (format_warning_va): Move to substring-locations.c.
5659         (format_warning_at_substring): Likewise.
5661 2016-09-06  Martin Sebor  <msebor@redhat.com>
5663         PR c/77336
5664         * c-format.c (check_function_format): Avoid issuing warnings for
5665         functions unless they call format functions with non-constant
5666         format strings.
5668 2016-09-06  Richard Biener  <rguenther@suse.de>
5670         PR c/77450
5671         * c-common.c (c_common_mark_addressable_vec): Handle
5672         COMPOUND_LITERAL_EXPR.
5674 2016-09-05  Marek Polacek  <polacek@redhat.com>
5676         PR c/77423
5677         * c-common.c (bool_promoted_to_int_p): New function.
5678         (expr_has_boolean_operands_p): New function.
5679         (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
5680         (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
5682 2016-09-04  Tom de Vries  <tom@codesourcery.com>
5684         revert:
5685         2016-08-29  Tom de Vries  <tom@codesourcery.com>
5687         * c-common.c (build_va_arg): Replace first argument type error
5688         with assert.
5690 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
5692         PR c/65467
5693         * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
5694         (c_finish_omp_for): Reject _Atomic qualified iterators.
5696 2016-09-01  Martin Sebor  <msebor@redhat.com>
5698         * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
5699         size to guarantee it fits the output of the formatted function
5700         regardless of its arguments.
5702 2016-09-01  Marek Polacek  <polacek@redhat.com>
5704         PR c/7652
5705         * c-common.c (resolve_overloaded_builtin): Fix formatting.  Add
5706         FALLTHRU comments.
5708 2016-08-29  Marek Polacek  <polacek@redhat.com>
5710         PR c/77292
5711         * c-common.c (warn_logical_not_parentheses): Don't warn for
5712         a comparison or a logical operator.
5714 2016-08-29  Tom de Vries  <tom@codesourcery.com>
5716         * c-common.c (build_va_arg): Fix type comparison assert.
5718 2016-08-29  Tom de Vries  <tom@codesourcery.com>
5720         * c-common.c (build_va_arg): Replace first argument type error
5721         with assert.
5723 2016-08-29  Tom de Vries  <tom@codesourcery.com>
5725         PR c/77398
5726         * c-common.c (build_va_arg): Add first argument error.  Build va_arg
5727         with error_mark_node as va_list instead of with illegal va_list.
5729 2016-08-25  Marek Polacek  <polacek@redhat.com>
5730             David Malcolm  <dmalcolm@redhat.com>
5732         * c-common.c (warn_logical_not_parentheses): Print fixit hints.
5733         * c-common.h (warn_logical_not_parentheses): Update declaration.
5735 2016-08-22  Marek Polacek  <polacek@redhat.com>
5737         PR c++/77321
5738         * c-common.c (warn_for_memset): Check type for null.
5740 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
5742         * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
5743         _FloatNx types for suffixes for built-in functions.
5745 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
5747         PR c/32187
5748         * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
5749         (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
5750         (RID_FLOAT128X): New enum rid values.
5751         (CASE_RID_FLOATN_NX): New macro.
5752         * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
5753         keywords.
5754         (c_common_type_for_mode): Check for _FloatN and _FloatNx and
5755         corresponding complex types.
5756         (c_common_nodes_and_builtins): For non-C++, register _FloatN and
5757         _FloatNx and corresponding complex types.
5758         (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
5759         * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
5760         and _FloatNx types for the widest type for determining
5761         DECIMAL_DIG.  Define __LDBL_DECIMAL_DIG__ as well as
5762         __DECIMAL_DIG__ for long double.  Handle FMA_SUFFIX being NULL.
5763         (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
5764         and _FloatNx types.
5765         * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
5766         constants.
5767         * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
5768         _FloatNx types.
5770 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
5772         * c-opts.c (c_diagnostic_finalizer): Update for change to
5773         diagnostic_show_locus.
5775 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
5777         * c-common.c: Include "spellcheck.h".
5778         (cb_get_suggestion): New function.
5779         * c-common.h (cb_get_suggestion): New decl.
5780         * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
5781         cb_get_suggestion.
5783 2016-08-18  Marek Polacek  <polacek@redhat.com>
5785         PR c/71514
5786         * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
5787         and pointer-to-VLA.
5789 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
5791         PR c/72857
5792         * c-common.c (substring_loc::get_range): Rename to...
5793         (substring_loc::get_location): ...this, converting param from a
5794         source_range * to a location_t *.  Call
5795         get_source_location_for_substring rather than
5796         get_source_range_for_substring, and pass in m_caret_idx.
5797         * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
5798         (substring_loc::get_range): Replace with...
5799         (substring_loc::get_location): ...this.
5800         (substring_loc::set_caret_index): New method.
5801         (substring_loc): Add field m_caret_idx.
5802         * c-format.c (format_warning_va): Update for above changes.
5803         Rename local "substring_loc" to "fmt_substring_loc" to avoid
5804         clashing with type name.
5805         (format_warning_at_char): Add caret_idx param to substring_loc ctor.
5806         (check_argument_type): Likewise.
5807         (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
5808         Use a copy when emitting warnings, setting the caret index from TYPE.
5810 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
5811             Arnaud Charlet  <charlet@adacore.com>
5813         * c-ada-spec.c (dump_number): New function.
5814         (handle_escape_character): Likewise.
5815         (print_ada_macros): Add handling of constant integers and strings.
5817 2016-08-12  Marek Polacek  <polacek@redhat.com>
5819         PR c/7652
5820         * c-common.c (scalar_to_vector): Adjust fall through comment.
5821         * c-opts.c (c_common_handle_option): Likewise.
5822         * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
5823         * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
5824         fall through comment.
5825         * cilk.c (extract_free_variables): Add FALLTHRU.
5827 2016-08-10  Jason Merrill  <jason@redhat.com>
5829         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
5831 2016-08-09  Jason Merrill  <jason@redhat.com>
5833         * c-common.c (c_common_attribute_table): vector_size affects type
5834         identity.
5836 2016-08-09  Marek Polacek  <polacek@redhat.com>
5838         PR c/7652
5839         * c-ada-spec.c (dump_generic_ada_node): Add return.
5841 2016-08-09  Jason Merrill  <jason@redhat.com>
5843         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
5844         C++17 constexpr lambdas.
5846 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
5848         PR c/64955
5849         * c-common.h (selftest::c_format_c_tests): New declaration.
5850         (selftest::run_c_tests): New declaration.
5851         * c-format.c: Include "selftest.h.
5852         (format_warning_va): Add param "corrected_substring" and use
5853         it to add a replacement fix-it hint.
5854         (format_warning_at_substring): Likewise.
5855         (format_warning_at_char): Update for new param of
5856         format_warning_va.
5857         (argument_parser::check_argument_type): Pass "fki" to
5858         check_format_types.
5859         (check_format_types): Add param "fki" and pass it to
5860         format_type_warning.
5861         (deref_n_times): New function.
5862         (get_modifier_for_format_len): New function.
5863         (selftest::test_get_modifier_for_format_len): New function.
5864         (get_format_for_type): New function.
5865         (format_type_warning): Add param "fki" and use it to attempt
5866         to provide hints for argument types when calling
5867         format_warning_at_substring.
5868         (selftest::get_info): New function.
5869         (selftest::assert_format_for_type_streq): New function.
5870         (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
5871         (selftest::test_get_format_for_type_printf): New function.
5872         (selftest::test_get_format_for_type_scanf): New function.
5873         (selftest::c_format_c_tests): New function.
5875 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
5877         PR c/52952
5878         * c-format.c: Include "diagnostic.h".
5879         (location_column_from_byte_offset): Delete.
5880         (location_from_offset): Delete.
5881         (format_warning_va): New function.
5882         (format_warning_at_substring): New function.
5883         (format_warning_at_char): New function.
5884         (check_format_arg): Capture location of format_tree and pass to
5885         check_format_info_main.
5886         (argument_parser): Add fields "start_of_this_format" and
5887         "format_string_cst".
5888         (flag_chars_t::validate): Add param "format_string_cst".  Convert
5889         warning_at call using location_from_offset to call to
5890         format_warning_at_char.
5891         (argument_parser::argument_parser): Add param "format_string_cst_"
5892         and use use it to initialize field "format_string_cst".
5893         Initialize new field "start_of_this_format".
5894         (argument_parser::read_format_flags): Convert warning_at call
5895         using location_from_offset to a call to format_warning_at_char.
5896         (argument_parser::read_any_format_left_precision): Likewise.
5897         (argument_parser::read_any_format_precision): Likewise.
5898         (argument_parser::read_any_other_modifier): Likewise.
5899         (argument_parser::find_format_char_info): Likewise, in three places.
5900         (argument_parser::parse_any_scan_set): Likewise, in one place.
5901         (argument_parser::handle_conversions): Likewise, in two places.
5902         (argument_parser::check_argument_type): Add param "fmt_param_loc"
5903         and use it to make a substring_loc.  Pass the latter to
5904         check_format_types.
5905         (check_format_info_main): Add params "fmt_param_loc" and
5906         "format_string_cst".  Convert warning_at calls using
5907         location_from_offset to calls to format_warning_at_char.  Pass the
5908         new params to the arg_parser ctor.  Pass "format_string_cst" to
5909         flag_chars.validate.  Pass "fmt_param_loc" to
5910         arg_parser.check_argument_type.
5911         (check_format_types): Convert first param from a location_t
5912         to a const substring_loc & and rename to "fmt_loc".  Attempt
5913         to extract the range of the relevant parameter and pass it
5914         to format_type_warning.
5915         (format_type_warning): Convert first param from a location_t
5916         to a const substring_loc & and rename to "fmt_loc".  Add
5917         params "param_range" and "type".  Replace calls to warning_at
5918         with calls to format_warning_at_substring.
5920 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
5922         * c-format.c (class flag_chars_t): New class.
5923         (struct length_modifier): New struct.
5924         (class argument_parser): New class.
5925         (flag_chars_t::flag_chars_t): New ctor.
5926         (flag_chars_t::has_char_p): New method.
5927         (flag_chars_t::add_char): New method.
5928         (flag_chars_t::validate): New method.
5929         (flag_chars_t::get_alloc_flag): New method.
5930         (flag_chars_t::assignment_suppression_p): New method.
5931         (argument_parser::argument_parser): New ctor.
5932         (argument_parser::read_any_dollar): New method.
5933         (argument_parser::read_format_flags): New method.
5934         (argument_parser::read_any_format_width): New method.
5935         (argument_parser::read_any_format_left_precision): New method.
5936         (argument_parser::read_any_format_precision): New method.
5937         (argument_parser::handle_alloc_chars): New method.
5938         (argument_parser::read_any_length_modifier): New method.
5939         (argument_parser::read_any_other_modifier): New method.
5940         (argument_parser::find_format_char_info): New method.
5941         (argument_parser::validate_flag_pairs): New method.
5942         (argument_parser::give_y2k_warnings): New method.
5943         (argument_parser::parse_any_scan_set): New method.
5944         (argument_parser::handle_conversions): New method.
5945         (argument_parser::check_argument_type): New method.
5946         (check_format_info_main): Introduce classes argument_parser
5947         and flag_chars_t, moving the code within the loop into methods
5948         of these classes.  Make various locals "const".
5950 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
5952         * c-common.c: Include "substring-locations.h".
5953         (get_cpp_ttype_from_string_type): New function.
5954         (g_string_concat_db): New global.
5955         (substring_loc::get_range): New method.
5956         * c-common.h (g_string_concat_db): New declaration.
5957         (class substring_loc): New class.
5958         * c-lex.c (lex_string): When concatenating strings, capture the
5959         locations of all tokens using a new obstack, and record the
5960         concatenation locations within g_string_concat_db.
5961         * c-opts.c (c_common_init_options): Construct g_string_concat_db
5962         on the ggc-heap.
5964 2016-07-29  Marek Polacek  <polacek@redhat.com>
5966         PR c/71926
5967         * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
5968         parentheses warning.
5970         PR c/71574
5971         * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
5973 2016-07-28  Martin Liska  <mliska@suse.cz>
5975         PR gcov-profile/68025
5976         * c-common.c (handle_no_profile_instrument_function_attribute):
5978 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5980         * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
5981         BITS_PER_UNIT_LOG.
5983 2016-07-25  Jason Merrill  <jason@redhat.com>
5985         PR c++/65970
5986         * c.opt (fconstexpr-loop-limit): New.
5988 2016-07-22  Martin Sebor  <msebor@redhat.com>
5990         PR c++/71675
5991         * c-common.c (resolve_overloaded_builtin): Avoid converting
5992         __atomic_compare_exchange_n return type to that of what its
5993         first argument points to.
5995 2016-07-22  Uros Bizjak  <ubizjak@gmail.com>
5997         * c-common.c: Use HOST_WIDE_INT_M1U instead of
5998         ~(unsigned HOST_WIDE_INT) 0.
6000 2016-07-22  Martin Liska  <mliska@suse.cz>
6002         PR gcov-profile/69028
6003         PR gcov-profile/62047
6004         * cilk.c (create_cilk_helper_decl): Set location of a new decl
6005         to the current_function_decl.
6007 2016-07-21  Jason Merrill  <jason@redhat.com>
6009         PR c++/65168
6010         * c-common.c (c_common_truthvalue_conversion): Check
6011         c_inhibit_evaluation_warnings for warning about address of
6012         reference.
6014 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
6016         * c-common.h (lookup_name_fuzzy): Convert return type from tree to
6017         const char *.
6019 2016-07-15  Jason Merrill  <jason@redhat.com>
6021         * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
6023 2016-07-15  Jakub Jelinek  <jakub@redhat.com>
6025         PR c/71858
6026         * c-common.h (enum lookup_name_fuzzy_kind): Add
6027         FUZZY_LOOKUP_FUNCTION_NAME.
6029 2016-07-08  Jason Merrill  <jason@redhat.com>
6031         P0145: Refining Expression Order for C++.
6032         * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
6033         * c-opts.c: Adjust.
6035 2016-07-05  Markus Trippelsdorf  <markus@trippelsdorf.de>
6037         PR c++/71214
6038         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
6040 2016-06-29  Thomas Schwinge  <thomas@codesourcery.com>
6042         * c-pragma.h (enum pragma_kind): Rename
6043         PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE.  Adjust all
6044         users.
6046 2016-06-29  Richard Biener  <rguenther@suse.de>
6048         PR middle-end/71002
6049         * c-common.c (c_common_get_alias_set): Remove union type punning case.
6051 2016-06-24  Jason Merrill  <jason@redhat.com>
6053         P0145R2: Refining Expression Order for C++.
6054         * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
6055         MODIFY_EXPR.
6057 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
6059         * c-common.c (check_builtin_function_arguments): Require last
6060         argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
6061         Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
6062         if the last argument is pointer to enumerated or boolean type.
6064 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
6066         PR c/70339
6067         * c-common.h (enum lookup_name_fuzzy_kind): New enum.
6068         (lookup_name_fuzzy): New prototype.
6070 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
6072         * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
6074 2016-06-14  Jason Merrill  <jason@redhat.com>
6076         P0145R2: Refining Expression Order for C++.
6077         * c.opt (fargs-in-order): New.
6078         * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
6080 2016-06-13  Jakub Jelinek  <jakub@redhat.com>
6082         PR sanitizer/71498
6083         * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
6084         all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
6086         PR preprocessor/71183
6087         * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
6088         to cb_get_source_date_epoch.
6090 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
6092         PR c/68657
6093         * c.opt (Wpsabi): Add Warning flag.
6095 2016-06-10  Martin Sebor  <msebor@redhat.com>
6097         PR c/71392
6098         * c-common.c (handle_nonnull_attribute): Accept
6099         the nonnull attribute in type-generic builtins.
6101 2016-06-09  Martin Sebor  <msebor@redhat.com>
6103         PR c/70883
6104         * c-common.c (builtin_function_validate_nargs): Make text of error
6105         message consistent with others like it.
6107 2016-06-08  Martin Sebor  <msebor@redhat.com>
6108             Jakub Jelinek  <jakub@redhat.com>
6110         PR c++/70507
6111         PR c/68120
6112         * c-common.c (check_builtin_function_arguments): Handle
6113         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
6115 2016-06-08  Richard Biener  <rguenther@suse.de>
6117         * c-common.c (parse_optimize_options): Improve diagnostic messages.
6119 2016-06-07  Richard Biener  <rguenther@suse.de>
6121         PR c/61564
6122         * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
6123         options and warn about others.
6125 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
6127         * c-common.c (get_source_date_epoch): Rename to
6128         cb_get_source_date_epoch.
6129         * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
6130         message when the parsing fails.  Use error_at instead of fatal_error.
6131         * c-common.h (get_source_date_epoch): Rename to
6132         cb_get_source_date_epoch.
6133         * c-common.h (cb_get_source_date_epoch): Prototype.
6134         * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
6135         * c-common.h (c_omp_region_type): Remove trailing comma.
6136         * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
6137         * c-lex.c (c_lex_with_flags): Remove initialization of
6138         pfile->source_date_epoch.
6140 2016-05-30  Jakub Jelinek  <jakub@redhat.com>
6142         PR c++/71349
6143         * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
6144         C_OMP_CLAUSE_SPLIT_TARGET.  Put OMP_CLAUSE_NOWAIT to
6145         C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
6146         instead of C_OMP_CLAUSE_SPLIT_FOR.
6148 2016-05-24  Richard Biener  <rguenther@suse.de>
6150         PR middle-end/70434
6151         PR c/69504
6152         * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
6153         (convert_vector_to_array_for_subscript): ... this.
6154         * c-common.c (convert_vector_to_pointer_for_subscript): Use a
6155         VIEW_CONVERT_EXPR to an array type.  Rename to ...
6156         (convert_vector_to_array_for_subscript): ... this.
6158 2016-05-12  Marek Polacek  <polacek@redhat.com>
6160         PR c/70756
6161         * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
6162         size_in_bytes and pass LOC to it.
6164 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
6166         PR c/43651
6167         * c.opt (Wduplicate-decl-specifier): New option.
6169 2016-05-11  Marek Polacek  <polacek@redhat.com>
6171         PR c++/71024
6172         * c-common.c (diagnose_mismatched_attributes): New function.
6173         * c-common.h (diagnose_mismatched_attributes): Declare.
6175 2016-05-04  Marek Polacek  <polacek@redhat.com>
6177         * c.opt (Wdangling-else): New option.
6179 2016-05-03  Marek Polacek  <polacek@redhat.com>
6181         PR c/70859
6182         * c-common.c (builtin_function_validate_nargs): Add location
6183         parameter.  Use it.
6184         (check_builtin_function_arguments): Add location and arguments
6185         parameters.  Use them.
6186         * c-common.h (check_builtin_function_arguments): Update declaration.
6188 2016-05-03  Richard Biener  <rguenther@suse.de>
6190         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
6191         allow call args to gimplify to SSA names.
6193 2016-05-03  Marek Polacek  <polacek@redhat.com>
6195         * c-common.h (enum c_omp_region_type): Remove stray comma.
6197 2016-05-02  Cesar Philippidis  <cesar@codesourcery.com>
6199         * c-common.h (enum c_omp_region_type): Define.
6201 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
6203         * c-common.c (shorten_compare): Use wi::to_wide.
6205 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
6207         PR middle-end/70626
6208         * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
6209         * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
6210         reduction clauses in acc parallel loops.
6212 2016-04-29  Marek Polacek  <polacek@redhat.com>
6214         PR c/70852
6215         * c-common.c (warn_for_memset): Check domain before accessing it.
6217 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6219         PR/69089
6220         * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
6221         "aligned" attribute.
6223 2016-04-28  Jason Merrill  <jason@redhat.com>
6225         * c-lex.c (c_common_has_attribute): Handle nodiscard.
6227 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
6228             Matthias Klose  <doko@debian.org>
6230         * c-common.c (get_source_date_epoch): New function, gets the environment
6231         variable SOURCE_DATE_EPOCH and parses it as long long with error
6232         handling.
6233         * c-common.h (get_source_date_epoch): Prototype.
6234         * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
6236 2015-04-27  Ryan Burn  <contact@rnburn.com>
6238         PR c++/69024
6239         PR c++/68997
6240         * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
6241         (cilk_recognize_spawn): Renamed from recognize_spawn and change to
6242         external linkage.
6243         (cilk_detect_and_unwrap): Corresponding changes.
6244         (extract_free_variables): Don't extract free variables from
6245         AGGR_INIT_EXPR slot.
6246         * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
6247         (cilk_recognize_spawn): Likewise.
6249 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
6251         * c.opt (Wmemset-elt-size): New option.
6252         * c-common.c (warn_for_memset): New function.
6253         * c-common.h (warn_for_memset): Declare.
6255 2016-04-25  Jason Merrill  <jason@redhat.com>
6257         * c-common.c (handle_unused_attribute): Accept CONST_DECL.
6258         No longer static.
6259         * c-common.h: Declare it.
6260         * c-lex.c (c_common_has_attribute): Add maybe_unused.
6262 2016-04-22  Jason Merrill  <jason@redhat.com>
6264         * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
6266 2016-04-20  Ilya Verbin  <ilya.verbin@intel.com>
6268         PR c++/69363
6269         * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
6270         * c-common.h (c_finish_cilk_clauses): Remove declaration.
6272 2016-04-18  Michael Matz  <matz@suse.de>
6274         * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
6275         and SET_DECL_ALIGN.
6277 2016-04-17  Eric Botcazou  <ebotcazou@adacore.com>
6279         * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
6280         (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
6281         to incomplete types.
6282         (dump_nested_type): Remove redundant tests and tidy up.
6283         (print_ada_declaration): Also set TREE_VISITED on the declaration of
6284         a type which is the typedef of an original type.
6286 2016-04-15  Marek Polacek  <polacek@redhat.com>
6288         PR c/70651
6289         * c-common.c (build_va_arg): Change two asserts into errors and return
6290         error_mark_node.
6292 2016-04-13  Marek Polacek  <polacek@redhat.com>
6294         PR c++/70639
6295         * c-indentation.c (should_warn_for_misleading_indentation): Bail out
6296         for switch statements, too.
6298 2016-03-28  Jason Merrill  <jason@redhat.com>
6300         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
6302 2016-03-23  Marek Polacek  <polacek@redhat.com>
6304         PR c++/69884
6305         * c.opt (Wignored-attributes): New option.
6307 2016-03-22  David Malcolm  <dmalcolm@redhat.com>
6309         PR c/69993
6310         * c-indentation.c (warn_for_misleading_indentation): Rewrite the
6311         diagnostic text, reversing the order of the warning and note so
6312         that they appear in source order.
6314 2016-03-17  Marek Polacek  <polacek@redhat.com>
6316         PR c/69407
6317         * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
6318         operations.
6320 2016-03-14  Jason Merrill  <jason@redhat.com>
6322         * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
6324         * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
6326 2016-03-09  Richard Biener  <rguenther@suse.de>
6328         PR c/70143
6329         * c-common.c (strict_aliasing_warning): Add back
6330         alias_sets_conflict_p check.
6332 2016-03-08  Jason Merrill  <jason@redhat.com>
6334         * c-opts.c (set_std_cxx1z): Don't enable concepts.
6336 2016-03-04  David Malcolm  <dmalcolm@redhat.com>
6338         PR c/68187
6339         * c-indentation.c (get_visual_column): Move code to determine next
6340         tab stop to...
6341         (next_tab_stop): ...this new function.
6342         (line_contains_hash_if): Delete function.
6343         (detect_preprocessor_logic): Delete function.
6344         (get_first_nws_vis_column): New function.
6345         (detect_intervening_unindent): New function.
6346         (should_warn_for_misleading_indentation): Replace call to
6347         detect_preprocessor_logic with a call to
6348         detect_intervening_unindent.
6350 2016-03-04  David Malcolm  <dmalcolm@redhat.com>
6352         PR c/68187
6353         * c-indentation.c (should_warn_for_misleading_indentation): When
6354         suppressing warnings about cases where the guard and body are on
6355         the same column, only use the first non-whitespace column in place
6356         of the guard token column when dealing with "else" clauses.
6357         When rejecting aligned BODY and NEXT, loosen the requirement
6358         from equality with the first non-whitespace of guard to simply
6359         that they not be indented relative to it.
6361 2016-03-04  Richard Biener  <rguenther@suse.de>
6363         PR c++/70054
6364         * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
6365         instead of alias_sets_conflict_p.
6367 2016-03-01  Marek Polacek  <polacek@redhat.com>
6369         PR c++/69795
6370         * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
6371         any DECL.
6373 2016-02-22  Martin Sebor  <msebor@redhat.com>
6375         PR middle-end/69780
6376         * c-common.c (check_builtin_function_arguments): Validate and
6377         reject invalid arguments to __builtin_alloca_with_align.
6379 2016-02-20  Mark Wielaard  <mjw@redhat.com>
6381         PR c/28901
6382         * c.opt (Wunused-const-variable): Turn into Alias for...
6383         (Wunused-const-variable=): New option.
6385 2016-02-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6387         PR c++/69865
6388         * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
6389         here...
6390         (c_common_init_options): ...to here.
6391         (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
6393 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
6395         PR c++/69826
6396         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
6397         (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
6398         flag_preprocess_only.
6400 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
6402         PR c/69835
6403         * c.opt (Wnonnull-compare): Enable for -Wall.
6405 2016-02-15  Jakub Jelinek  <jakub@redhat.com>
6407         PR c++/69797
6408         * c-common.c (sync_resolve_size): Diagnose too few arguments
6409         even when params is non-NULL empty vector.
6411 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
6413         PR target/60410
6414         * c.opt (fshort-double): Remove.
6416 2016-02-05  Martin Sebor  <msebor@redhat.com>
6418         PR c++/69662
6419         * c.opt (Warning options): Update -Wplacement-new to take
6420         an optional argument.
6422 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
6424         PR preprocessor/69543
6425         PR c/69558
6426         * c-pragma.c (handle_pragma_diagnostic): Pass input_location
6427         instead of loc to control_warning_option.
6429 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
6431         * c.opt (fopenacc-dim=): New option.
6433 2016-01-27  Ryan Burn  <contact@rnburn.com>
6435         PR cilkplus/69267
6436         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
6437         gimplify_arg. Removed superfluous post_p argument.
6438         * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
6439         superfluous post_p argument.
6440         * c-gimplify.c (c_gimplify_expr): Likewise.
6442 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
6444         PR other/69006
6445         * c-opts.c (c_diagnostic_finalizer): Replace invocation of
6446         pp_newline_and_flush with pp_flush.
6448 2016-01-20  Martin Sebor  <msebor@redhat.com>
6450         PR c/69405
6451         * c-common.c (sync_resolve_size): Avoid printing diagnostic about
6452         an incompatible argument when the argument isn't a valid tree node.
6454 2016-01-18  Jason Merrill  <jason@redhat.com>
6456         PR c++/68767
6457         * c-common.c (check_function_arguments_recurse): Fold the whole
6458         COND_EXPR, not just the condition.
6460 2016-01-18  Tom de Vries  <tom@codesourcery.com>
6462         * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
6463         classify as loop clause.
6465 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
6467         PR bootstrap/68271
6468         * c-pragma.c (c_register_pragma_1): Adjust comment to note that
6469         C++ FE no longer has limit on number of pragmas.
6471 2015-01-14  Ryan Burn  <contact@rnburn.com>
6473         PR c++/69048
6474         * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
6475         to add missing cleanup point.
6477 2016-01-14  David Malcolm  <dmalcolm@redhat.com>
6479         PR c++/68819
6480         * c-indentation.c (get_visual_column): Add location_t param.
6481         Handle the column number being zero by effectively disabling the
6482         warning, with an "inform".
6483         (should_warn_for_misleading_indentation): Add location_t argument
6484         for all uses of get_visual_column.
6486 2016-01-10  Patrick Palka  <ppalka@gcc.gnu.org>
6488         PR c++/69029
6489         * c-indentation.c (should_warn_for_misleading_indentation):
6490         Don't warn about do-while statements.
6492 2016-01-07  Martin Sebor  <msebor@redhat.com>
6494         PR c/68966
6495         * c-common.c (sync_resolve_size): Reject first argument when it's
6496         a pointer to _Bool.
6498 2016-01-05  David Malcolm  <dmalcolm@redhat.com>
6500         PR c/69122
6501         * c-indentation.c (get_visual_column): Remove default argument.
6502         (should_warn_for_misleading_indentation): For the multiline case,
6503         update call to get_visual_column for next_stmt_exploc so that it
6504         captures the location of the first non-whitespace character in the
6505         relevant line.  Don't issue warnings if there is non-whitespace
6506         before the next statement.
6508 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
6510         Update copyright years.
6512 2015-12-21  David Malcolm  <dmalcolm@redhat.com>
6514         * c-common.c (binary_op_error): Convert first param from
6515         location_t to rich_location * and use it when emitting an error.
6516         * c-common.h (binary_op_error): Convert first param from
6517         location_t to rich_location *.
6519 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
6521         * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
6522         * c-lex.c (conflict_marker_get_final_tok_kind): New function.
6524 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
6526         * c-common.c (c_common_attribute_table): Handle "omp declare target
6527         link" attribute.
6529 2015-12-14  Jakub Jelinek  <jakub@redhat.com>
6531         PR c/68833
6532         * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
6534 2014-12-12  Tobias Burnus  <burnus@net-b.de>
6536         PR fortran/68815
6537         * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
6538         specifiers (%d, %i,%u and %c).
6540 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
6542         * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
6544 2015-12-08  Jakub Jelinek  <jakub@redhat.com>
6546         PR c/48088
6547         PR c/68657
6548         * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
6549         * c-pragma.c (handle_pragma_diagnostic): Adjust
6550         control_warning_option caller.
6552 2015-12-07  David Malcolm  <dmalcolm@redhat.com>
6554         * c-common.c (c_cpp_error): Update for change to
6555         rich_location::set_range.
6557 2015-12-04  Paolo Bonzini  <bonzini@gnu.org>
6559         * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
6560         shifting 1 out of the sign bit.
6562 2015-12-04  Kirill Yukhin  <kirill.yukhin@intel.com>
6564         * c-common.c (c_common_attribute_table[]): Update max arguments
6565         count for "simd" attribute.
6566         (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
6568 2015-12-03  Jakub Jelinek  <jakub@redhat.com>
6570         PR preprocessor/57580
6571         * c-ppoutput.c (print): Change printed field to bool.
6572         Move src_file last for smaller padding.
6573         (init_pp_output): Set print.printed to false instead of 0.
6574         (scan_translation_unit): Fix up formatting.  Set print.printed
6575         to true after printing something other than newline.
6576         (scan_translation_unit_trad): Set print.printed to true instead of 1.
6577         (maybe_print_line_1): Set print.printed to false instead of 0.
6578         (print_line_1): Likewise.
6579         (do_line_change): Set print.printed to true instead of 1.
6580         (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
6581         dump_macro): Set print.printed to false after printing newline.
6583 2015-12-02  Jason Merrill  <jason@redhat.com>
6585         * c-common.c (fold_for_warn): New.
6586         (warn_logical_operator, warn_tautological_cmp)
6587         (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
6589         * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
6590         (c_fully_fold_internal, decl_constant_value_for_optimization):
6591         Move to c/c-fold.c.
6592         * c-common.h: Don't declare decl_constant_value_for_optimization.
6594 2015-12-02  Joseph Myers  <joseph@codesourcery.com>
6596         PR c/68162
6597         * c-common.h (c_build_qualified_type): Add extra default
6598         arguments.
6600 2015-12-01  Julian Brown  <julian@codesourcery.com>
6601             Cesar Philippidis  <cesar@codesourcery.com>
6602             James Norris  <James_Norris@mentor.com>
6604         * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
6605         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
6606         (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
6608 2015-11-30  Eric Botcazou  <ebotcazou@adacore.com>
6610         * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
6611         (decl_sloc_common): Delete and move bulk of processing to...
6612         (decl_sloc): ...here.
6613         (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
6614         (dump_ada_double_name): Remove S parameter and compute the suffix.
6615         (dump_ada_array_type): Add PARENT parameter.  Simplify computation of
6616         element type and deal with an anonymous one.
6617         (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
6618         (dump_generic_ada_node): Tweak.  Adjust call to dump_ada_array_type
6619         and remove reference to QUAL_UNION_TYPE.
6620         (dump_nested_types): Make 2 passes on the fields and move bulk to...
6621         (dump_nested_type): ...here.  New function extracted from above.
6622         Generate a full declaration for anonymous element type of arrays.
6623         (print_ada_declaration): Really skip anonymous declarations.  Remove
6624         references to QUAL_UNION_TYPE.  Adjust call to dump_ada_array_type.
6625         Clean up processing of declarations of array types and objects.
6626         (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
6627         Remove obsolete code and tidy up.
6629 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
6631         PR c/67581
6632         * c-common.c (handle_transparent_union_attribute): Update
6633         also type variants.
6635 2015-11-27  Martin Liska  <mliska@suse.cz>
6637         PR c++/68312
6638         * array-notation-common.c (cilkplus_extract_an_triplets):
6639         Release vector of vectors.
6640         * cilk.c (gimplify_cilk_spawn): Free allocated memory.
6642 2015-11-26  Eric Botcazou  <ebotcazou@adacore.com>
6644         PR c++/68527
6645         * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
6646         (print_ada_struct_decl): Likewise.
6648 2015-11-23  Igor Zamyatin  <igor.zamyatin@intel.com>
6650         PR c++/68001
6651         * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
6652         * cilk.c (recognize_spawn): Determine location in a more precise
6653         way.
6655 2015-11-19  Jason Merrill  <jason@redhat.com>
6657         * c-common.c (shorten_compare): But look through macros from
6658         system headers.
6660 2015-11-18  Jason Merrill  <jason@redhat.com>
6662         * c-common.c (shorten_compare): Don't -Wtype-limits if the
6663         non-constant operand comes from a macro.
6665 2015-11-17  Jason Merrill  <jason@redhat.com>
6667         PR bootstrap/68346
6668         * c-common.c (warn_tautological_cmp): Fold before checking for
6669         constants.
6671 2015-11-16  Marek Polacek  <polacek@redhat.com>
6673         PR c++/68362
6674         * c-common.c (check_case_bounds): Fold low and high cases.
6676 2015-11-16  Marek Polacek  <polacek@redhat.com>
6678         * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
6679         * c-common.c (c_common_get_alias_set): Likewise.
6680         (handle_visibility_attribute): Likewise.
6682 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
6684         * c-common.c (handle_simd_attribute): New.
6685         (struct attribute_spec): Add entry for "simd".
6686         (handle_simd_attribute): New.
6688 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
6690         * c-lex.c (interpret_float): Use fold_convert.
6692 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
6694         * c-common.c (c_fully_fold_internal): Capture existing souce_range,
6695         and store it on the result.
6696         * c-opts.c (c_common_init_options): Set
6697         global_dc->colorize_source_p.
6699 2015-11-12  James Norris  <jnorris@codesourcery.com>
6700             Joseph Myers  <joseph@codesourcery.com>
6702         * c-pragma.c (oacc_pragmas): Add entry for declare directive.
6703         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
6704         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
6705         PRAGMA_OACC_CLAUSE_LINK.
6707 2015-11-11  Marek Polacek  <polacek@redhat.com>
6709         PR c/68107
6710         PR c++/68266
6711         * c-common.c (valid_array_size_p): New function.
6712         * c-common.h (valid_array_size_p): Declare.
6714 2015-11-11  Dominique d'Humieres  <dominiq@lps.ens.fr>
6716         PR bootstrap/68271
6717         * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
6719 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
6721         * array-notation-common.c: Remove unused header files.
6722         * c-ada-spec.c: Likewise.
6723         * c-cilkplus.c: Likewise.
6724         * c-common.c: Likewise.
6725         * c-cppbuiltin.c: Likewise.
6726         * c-dump.c: Likewise.
6727         * c-format.c: Likewise.
6728         * c-gimplify.c: Likewise.
6729         * c-indentation.c: Likewise.
6730         * c-lex.c: Likewise.
6731         * c-omp.c: Likewise.
6732         * c-opts.c: Likewise.
6733         * c-pch.c: Likewise.
6734         * c-ppoutput.c: Likewise.
6735         * c-pragma.c: Likewise.
6736         * c-pretty-print.c: Likewise.
6737         * c-semantics.c: Likewise.
6738         * c-ubsan.c: Likewise.
6739         * cilk.c: Likewise.
6740         * stub-objc.c: Likewise.
6742 2015-11-09  Thomas Schwinge  <thomas@codesourcery.com>
6743             Cesar Philippidis  <cesar@codesourcery.com>
6744             James Norris  <jnorris@codesourcery.com>
6745             Julian Brown  <julian@codesourcery.com>
6746             Nathan Sidwell  <nathan@codesourcery.com>
6748         * c-pragma.c (oacc_pragmas): Add "routine".
6749         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
6751 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
6753         * c-common.c (c_common_attributes): Add scalar_storage_order.
6754         (handle_scalar_storage_order_attribute): New function.
6755         * c-pragma.c (global_sso): New variable.
6756         (maybe_apply_pragma_scalar_storage_order): New function.
6757         (handle_pragma_scalar_storage_order): Likewise.
6758         (init_pragma): Register scalar_storage_order.
6759         * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
6760         * c.opt (Wscalar-storage-order): New warning.
6761         (fsso-struct=): New option.
6763 2015-11-08  Martin Sebor  <msebor@redhat.com>
6765         * c.opt (Wplacement-new): Add a period to the end of a sentence.
6767 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6769         * c-common.c: Don't undef DEF_BUILTIN.
6771 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
6773         * c-common.c (c_cpp_error): Convert parameter from location_t to
6774         rich_location *.  Eliminate the "column_override" parameter and
6775         the call to diagnostic_override_column.
6776         Update the "done_lexing" clause to set range 0
6777         on the rich_location, rather than overwriting a location_t.
6778         * c-common.h (c_cpp_error): Convert parameter from location_t to
6779         rich_location *.  Eliminate the "column_override" parameter.
6781 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
6782             Thomas Schwinge  <thomas@codesourcery.com>
6783             James Norris  <jnorris@codesourcery.com>
6785         * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
6786         AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses.  Associate REDUCTION
6787         clauses with parallel and kernels and loops.
6788         * c-pragma.h (enum pragma_omp_clause): Add entries for
6789         PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
6790         * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
6791         NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
6792         INDEPENDENT,SEQ}.
6793         (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
6795 2015-11-05  Martin Sebor  <msebor@redhat.com>
6797         PR c++/67942
6798         * c.opt (-Wplacement-new): New option.
6800 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
6802         * c-common.h (c_finish_omp_atomic): Add TEST argument.
6803         (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
6804         * c-omp.c (c_finish_omp_atomic): Add TEST argument.  Don't call
6805         save_expr or create_tmp_var* if TEST is true.
6806         (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
6807         Don't call add_stmt here.
6808         (struct c_omp_check_loop_iv_data): New type.
6809         (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
6810         c_omp_check_loop_iv_exprs): New functions.
6811         (c_omp_split_clauses): Adjust for lastprivate being allowed on
6812         distribute.
6813         (c_omp_declare_simd_clauses_to_numbers): Change
6814         OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
6815         (c_omp_declare_simd_clauses_to_decls): Similarly change those
6816         from numbers to PARM_DECLs.
6818 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
6820         * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
6821         flag_checking.
6823 2015-11-03  Bernd Schmidt  <bschmidt@redhat.com>
6825         PR c++-common/67882
6826         * c-common.h (fold_offsetof_1): Add argument.
6827         * c-common.c (fold_offsetof_1): Diagnose more invalid
6828         offsetof expressions that reference elements past the end of
6829         an array.
6831 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
6832             Chung-Lin Tang  <cltang@codesourcery.com>
6834         * c-pragma.c (oacc_pragmas): Add "atomic".
6835         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
6837 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
6839         * c-common.c (handle_target_clones_attribute): New.
6840         (c_common_attribute_table): Add handle_target_clones_attribute.
6841         (handle_always_inline_attribute): Add check on target_clones attribute.
6842         (handle_target_attribute): Ditto.
6844 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
6846         * array-notation-common.c: Reorder #include's and remove duplicates.
6847         * c-ada-spec.c: Likewise.
6848         * c-cilkplus.c: Likewise.
6849         * c-common.c: Likewise.
6850         * c-cppbuiltin.c: Likewise.
6851         * c-dump.c: Likewise.
6852         * c-format.c: Likewise.
6853         * c-gimplify.c: Likewise.
6854         * c-indentation.c: Likewise.
6855         * c-lex.c: Likewise.
6856         * c-omp.c: Likewise.
6857         * c-opts.c: Likewise.
6858         * c-pch.c: Likewise.
6859         * c-ppoutput.c: Likewise.
6860         * c-pragma.c: Likewise.
6861         * c-pretty-print.c: Likewise.
6862         * c-semantics.c: Likewise.
6863         * c-ubsan.c: Likewise.
6864         * cilk.c: Likewise.
6865         * stub-objc.c: Likewise.
6867 2015-10-28  Jason Merrill  <jason@redhat.com>
6869         * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
6871 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
6872             James Norris  <jnorris@codesourcery.com>
6873             Cesar Philippidis  <cesar@codesourcery.com>
6875         PR c/64765
6876         PR c/64880
6877         * c-common.h (c_oacc_split_loop_clauses): Declare function.
6878         * c-omp.c (c_oacc_split_loop_clauses): New function.
6880 2015-10-21  Martin Sebor  <msebor@redhat.com>
6882         PR driver/68043
6883         * c.opt: End each sentence that describes an option with a period.
6885 2015-10-20  Marek Polacek  <polacek@redhat.com>
6887         * array-notation-common.c (is_cilkplus_vector_p): Define.
6888         * c-common.h (is_cilkplus_vector_p): Declare.
6890 2015-10-20  Marek Polacek  <polacek@redhat.com>
6892         * c.opt (std=gnu++11): Do not describe as experimental.
6893         (std=gnu++14): Likewise.
6895 2015-10-19  Jason Merrill  <jason@redhat.com>
6897         * c-cppbuiltin.c (c_cpp_builtins): Define
6898         __cpp_nontype_template_args.
6900 2015-10-19  Jason Merrill  <jason@redhat.com>
6902         * c-cppbuiltin.c (c_cpp_builtins): Define
6903         __cpp_enumerator_attributes, __cpp_fold_expressions,
6904         __cpp_unicode_characters.
6906 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
6907             Aldy Hernandez  <aldyh@redhat.com>
6909         * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
6910         DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
6911         (c_define_builtins): Likewise.
6912         * c-common.h (enum c_omp_clause_split): Add
6913         C_OMP_CLAUSE_SPLIT_TASKLOOP.
6914         (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
6915         (c_finish_omp_for): Add ORIG_DECLV argument.
6916         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
6917         201511 instead of 201307.
6918         * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
6919         OMP_CRITICAL_CLAUSES to it.
6920         (c_finish_omp_ordered): Add CLAUSES argument, set
6921         OMP_ORDERED_CLAUSES to it.
6922         (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
6923         to it if OMP_FOR.  Clear DECL_INITIAL on the IVs.
6924         (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
6925         constructs and new OpenMP 4.5 clauses.  Clear
6926         OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD.  Add
6927         verification code.
6928         * c-pragma.c (omp_pragmas_simd): Add taskloop.
6929         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
6930         (enum pragma_omp_clause): Add
6931         PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
6932         and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
6934 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
6936         * c-lex.c (interpret_float): Use real_equal instead of
6937         REAL_VALUES_EQUAL.
6939 2015-10-04  Jason Merrill  <jason@redhat.com>
6941         Implement N4514, C++ Extensions for Transactional Memory.
6942         * c-common.c (c_common_reswords): Add C++ TM TS keywords.
6943         (c_common_attribute_table): Add transaction_safe_dynamic.
6944         transaction_safe now affects type identity.
6945         (handle_tm_attribute): Handle transaction_safe_dynamic.
6946         * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
6947         RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
6948         (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
6949         (D_TRANSMEM): New.
6950         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
6951         * c-pretty-print.c (pp_c_attributes_display): Don't print
6952         transaction_safe in C++.
6954 2015-10-02  Marek Polacek  <polacek@redhat.com>
6956         * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
6958 2015-10-02  Marek Polacek  <polacek@redhat.com>
6960         PR c/64249
6961         * c-common.c (warn_duplicated_cond_add_or_warn): New function.
6962         * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
6963         * c.opt (Wduplicated-cond): New option.
6965 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
6967         * c.opt (std=c11): Do not describe as experimental.
6968         (std=gnu11): Likewise.
6969         (std=iso9899:2011): Likewise.
6971 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
6973         * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
6974         (DEF_FUNCTION_TYPE_VAR_11): Delete.
6976 2015-09-25  Marek Polacek  <polacek@redhat.com>
6978         * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
6979         (ubsan_instrument_shift): Likewise.
6981 2015-09-25  Marek Polacek  <polacek@redhat.com>
6983         PR sanitizer/64906
6984         * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
6986 2015-09-24  Patrick Palka  <ppalka@gcc.gnu.org>
6988         * c-indentation.c (should_warn_for_misleading_indentation):
6989         Compare next_stmt_vis_column with guard_line_first_nws instead
6990         of with guard_line_vis_column.
6992 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6994         PR c/49654
6995         PR c/49655
6996         * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
6997         options and options not valid for the current language.
6999 2015-09-22  Patrick Palka  <ppalka@gcc.gnu.org>
7001         * c-indentation.c (should_warn_for_misleading_indentation):
7002         Float out and consolidate the calls to get_visual_column that
7003         are passed guard_exploc as an argument.  Compare
7004         next_stmt_vis_column with guard_line_first_nws instead of with
7005         body_line_first_nws.
7007 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
7009         * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
7010         Wnamespaces): New C++ warnings.
7012 2015-09-22  Jason Merrill  <jason@redhat.com>
7014         * c-common.h (abi_compat_version_crosses): New.
7015         (warn_abi_version): Declare.
7016         * c-common.c: Define it.
7017         * c-opts.c (c_common_post_options): Handle it.
7018         flag_abi_compat_version defaults to 8.
7020 2015-09-21  Ville Voutilainen  <ville.voutilainen@gmail.com>
7022         Complete the implementation of N4230, Nested namespace definition.
7023         * c-cppbuiltin.c: Add __cpp_namespace_attributes and
7024         __cpp_nested_namespace_definitions.
7026 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7028         * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
7030 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7032         * c-pragma.c (handle_pragma_diagnostic): Use explicit location
7033         when warning.
7034         * c-pragma.h (pragma_lex): Add optional loc argument.
7036 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
7038         * c-format.c (check_format_arg): Adjust to use common block size in all
7039         object pools.
7041 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
7043         * c-format.c (location_from_offset): Update for change in
7044         signature of location_get_source_line.
7045         * c-indentation.c (get_visual_column): Likewise.
7046         (line_contains_hash_if): Likewise.
7048 2015-09-14  Marek Polacek  <polacek@redhat.com>
7050         * c-opts.c (c_common_post_options): Set C++ standard earlier, before
7051         setting various warnings.
7053 2015-09-14  Marek Polacek  <polacek@redhat.com>
7055         * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
7056         a negative value.
7058 2015-09-11  Mark Wielaard  <mjw@redhat.com>
7060         PR c/28901
7061         * c.opt (Wunused-variable): Option from common.opt.
7062         (Wunused-const-variable): New option.
7064 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
7066         PR c++/53184
7067         * c.opt ([Wsubobject-linkage]): Add.
7069 2015-09-03  Martin Sebor  <msebor@redhat.com>
7071         PR c/66516
7072         * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
7073         functions.
7074         * c-common.c (reject_gcc_builtin): Define.
7076 2015-09-02  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7078         PR middle-end/60586
7079         * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
7080         prototype.
7081         * c-gimplify.c (c_gimplify_expr): Added a call to the function
7082         cilk_gimplify_call_params_in_spawned_fn.
7083         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
7084         (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
7085         unwrapping.
7087 2015-08-25  Marek Polacek  <polacek@redhat.com>
7089         PR middle-end/67330
7090         * c-common.c (handle_weak_attribute): Don't check whether the
7091         visibility can be changed here.
7093 2015-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7095         * c-lex.c (c_lex_with_flags): Use explicit locations.
7097 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
7099         * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
7100         c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
7102 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7104         PR middle-end/36757
7105         * c-common.c (check_builtin_function_arguments): Add check
7106         for BUILT_IN_SIGNBIT argument.
7108 2015-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
7110         PR c++/67160
7111         * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
7112         in c++1z mode.
7114 2015-08-17  Marek Polacek  <polacek@redhat.com>
7116         * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
7117         with whitespaces before qualifier names.
7119 2015-08-12  Marek Polacek  <polacek@redhat.com>
7121         PR c++/55095
7122         * c-common.c (maybe_warn_shift_overflow): Properly handle
7123         left-shifting 1 into the sign bit.
7125 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7127         * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
7129 2015-08-06  Andrew Sutton  <andrew.n.sutton@gmail.com>
7130             Braden Obrzut  <admin@maniacsvault.net>
7131             Jason Merrill  <jason@redhat.com>
7133         Add C++ Concepts TS support.
7134         * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
7135         * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
7136         (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
7137         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
7138         * c-opts.c (set_std_cxx1z): Set flag_concepts.
7139         * c.opt (fconcepts): New.
7141 2015-08-02  Martin Sebor  <msebor@redhat.com>
7143         * c.opt (-Wframe-address): New warning option.
7145 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
7147         * c-indentation.c (should_warn_for_misleading_indentation):
7148         Improve heuristics.
7150 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
7152         * c-indentation.c (get_visual_column): Add parameter first_nws,
7153         use it.  Update comment documenting the function.
7154         (is_first_nonwhitespace_on_line): Remove.
7155         (should_warn_for_misleading_indentation): Replace usage of
7156         of is_first_nonwhitespace_on_line with get_visual_column.
7158 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
7160         * c-indentation.h (struct token_indent_info): Define.
7161         (get_token_indent_info): Define.
7162         (warn_for_misleading_information): Declare.
7163         * c-common.h (warn_for_misleading_information): Remove.
7164         * c-identation.c (warn_for_misleading_indentation):
7165         Change declaration to take three token_indent_infos.  Adjust
7166         accordingly.
7167         * c-identation.c (should_warn_for_misleading_indentation):
7168         Likewise.  Bail out early if the body is a compound statement.
7169         (guard_tinfo_to_string): Define.
7171 2015-07-30  Jason Merrill  <jason@redhat.com>
7173         * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
7174         '*' for reference decay.
7176 2015-07-30  Marek Polacek  <polacek@redhat.com>
7178         * c-common.c (warn_tautological_cmp): Bail for float types.
7180 2015-07-27  Marek Polacek  <polacek@redhat.com>
7182         PR bootstrap/67030
7183         * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
7185 2015-07-27  Marek Polacek  <polacek@redhat.com>
7187         PR c++/66555
7188         PR c/54979
7189         * c-common.c (find_array_ref_with_const_idx_r): New function.
7190         (warn_tautological_cmp): New function.
7191         * c-common.h (warn_tautological_cmp): Declare.
7192         * c.opt (Wtautological-compare): New option.
7194 2015-07-23  Marek Polacek  <polacek@redhat.com>
7196         * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
7197         (ubsan_instrument_shift): Likewise.
7199 2015-07-23  Marek Polacek  <polacek@redhat.com>
7201         PR sanitizer/66908
7202         * c-ubsan.c: Include gimplify.h.
7203         (ubsan_instrument_division): Unshare OP0 and OP1.
7204         (ubsan_instrument_shift): Likewise.
7206 2015-07-20  Marek Polacek  <polacek@redhat.com>
7207             Richard Sandiford  <richard.sandiford@arm.com>
7209         PR c++/55095
7210         * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
7211         Use EXPR_LOC_OR_LOC.
7212         (maybe_warn_shift_overflow): New function.
7213         * c-common.h (maybe_warn_shift_overflow): Declare.
7214         * c-opts.c (c_common_post_options): Set warn_shift_overflow.
7215         * c.opt (Wshift-overflow): New option.
7217 2015-07-16  Martin Liska  <mliska@suse.cz>
7219         * c-format.c (static void check_format_info_main): Use
7220         object_allocator instead of pool_allocator.
7221         (check_format_arg): Likewise.
7222         (check_format_info_main): Likewise.
7224 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
7226         * c-opts.c: Remove multiline #include comment.
7228 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
7230         * c-common.c: Fix double word typos.
7232 2015-07-10  Eric Botcazou  <ebotcazou@adacore.com>
7234         * c-ada-spec.h (cpp_operation): Revert latest change.
7235         * c-ada-spec.c (print_ada_declaration): Likewise.  Skip implicit
7236         constructors and destructors.
7238 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
7240         * c-common.h: Adjust includes for flags.h changes.
7241         * stub-objc.c: Likewise.
7243 2015-07-08  Eric Botcazou  <ebotcazou@adacore.com>
7245         * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
7246         * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
7248 2015-07-08  Jakub Jelinek  <jakub@redhat.com>
7250         * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
7251         are to be removed, return NULL rather than original clauses list.
7253 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
7255         * array-notation-common.c: Adjust includes.
7256         * c-ada-spec.c: Likewise.
7257         * c-cilkplus.c: Likewise.
7258         * c-common.h: Likewise.
7259         * c-cppbuiltin.c: Likewise.
7260         * c-dump.c: Likewise.
7261         * c-format.c: Likewise.
7262         * c-gimplify.c: Likewise.
7263         * c-indentation.c: Likewise.
7264         * c-lex.c: Likewise.
7265         * c-omp.c: Likewise.
7266         * c-opts.c: Likewise.
7267         * c-pch.c: Likewise.
7268         * c-ppoutput.c: Likewise.
7269         * c-pragma.c: Likewise.
7270         * c-pretty-print.c: Likewise.
7271         * c-semantics.c: Likewise.
7272         * c-ubsan.c: Likewise.
7273         * cilk.c: Likewise.
7274         * stub-objc.c: Likewise.
7276 2015-07-07  Eric Botcazou  <ebotcazou@adacore.com>
7278         * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
7279         * c-ada-spec.c (print_ada_declaration): Skip move constructors.
7281 2015-07-01  Jason Merrill  <jason@redhat.com>
7283         * c-common.h (D_CXX11): Rename from D_CXX0X.
7284         (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
7285         * c-common.c: Adjust.
7287         * c-opts.c (c_common_post_options): Default to C++14.
7289         * c-opts.c (c_common_post_options): Highest ABI level is now 10.
7291 2015-06-30  Edward Smith-Rowland  <3dw4rd@verizon.net>
7293         Implement N4197 - Adding u8 character literals
7294         * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
7295         CPP_CHAR.
7296         * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
7297         CPP_UTF8CHAR_USERDEF tokens.
7298         * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
7299         and CPP_UTF8CHAR tokens.
7300         (lex_charconst): Treat CPP_UTF8CHAR token.
7302 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7304         PR fortran/66605
7305         * c-common.c (do_warn_unused_parameter): Move here.
7306         * c-common.h (do_warn_unused_parameter): Declare.
7308 2015-06-29  Marek Polacek  <polacek@redhat.com>
7310         PR c/66322
7311         * c-common.c (check_case_bounds): Add bool * parameter.  Set
7312         OUTSIDE_RANGE_P.
7313         (c_add_case_label): Add bool * parameter.  Pass it down to
7314         check_case_bounds.
7315         (c_do_switch_warnings): Add bool parameters.  Implement -Wswitch-bool
7316         warning here.
7317         * c-common.h (c_add_case_label, c_do_switch_warnings): Update
7318         declarations.
7320 2015-06-27  Marek Polacek  <polacek@redhat.com>
7322         * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
7323         or VECTOR_INTEGER_TYPE_P throughout.
7324         * c-gimplify.c: Likewise.
7326 2015-06-26  Marek Polacek  <polacek@redhat.com>
7328         * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
7329         * c-common.c (c_fully_fold_internal): Likewise.
7330         (c_alignof_expr): Likewise.
7331         * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
7332         * c-ubsan.c (ubsan_instrument_bounds): Likewise.
7333         * cilk.c (create_parm_list): Likewise.
7335 2015-06-26  Marek Polacek  <polacek@redhat.com>
7337         * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
7339 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
7341         * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
7342         * c-gimplify.c: Likewise.
7343         * c-pragma.c: Likewise.
7344         * c-ubsan.c: Likewise.
7345         * cilk.c: Likewise.
7347 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7349         * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
7350         ggc_hasher.
7352 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
7354         * cilk.c: Move calls.h after tm.h in the include chain.
7356 2015-06-25  Marek Polacek  <polacek@redhat.com>
7358         * array-notation-common.c: Use VAR_P throughout.
7359         * c-ada-spec.c: Likewise.
7360         * c-common.c: Likewise.
7361         * c-format.c: Likewise.
7362         * c-gimplify.c: Likewise.
7363         * c-omp.c: Likewise.
7364         * c-pragma.c: Likewise.
7365         * c-pretty-print.c: Likewise.
7366         * cilk.c: Likewise.
7368 2015-06-25  Marek Polacek  <polacek@redhat.com>
7370         * cilk.c (extract_free_variables): Use is_global_var.
7372 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
7374         * c-common.c: Don't include target-def.h.
7376 2015-06-23  Marek Polacek  <polacek@redhat.com>
7378         * c-common.c (warn_logical_operator): Use tree_int_cst_equal
7379         when comparing INTEGER_CSTs.
7381 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
7383         * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
7384         * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
7385         (dump_ada_template): Skip partially specialized types.
7387 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
7389         * c-common.c (scalar_to_vector): Use std::swap instead of manually
7390         swapping.
7392 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
7394         * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
7395         * c-ada-spec.c: Likewise.
7396         * c-cilkplus.c: Likewise.
7397         * c-common.c: Likewise.
7398         * c-common.h: Likewise.
7399         * c-cppbuiltin.c: Likewise.
7400         * c-dump.c: Likewise.
7401         * c-format.c: Likewise.
7402         * c-gimplify.c: Likewise.
7403         * c-indentation.c: Likewise.
7404         * c-lex.c: Likewise.
7405         * c-omp.c: Likewise.
7406         * c-opts.c: Likewise.
7407         * c-pch.c: Likewise.
7408         * c-ppoutput.c: Likewise.
7409         * c-pragma.c: Likewise.
7410         * c-pretty-print.c: Likewise.
7411         * c-semantics.c: Likewise.
7412         * c-ubsan.c: Likewise.
7413         * cilk.c: Likewise.
7414         * stub-objc.c: Likewise.
7416 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
7418         PR c++/65168
7419         * c-common.c (c_common_truthvalue_conversion): Warn when
7420         converting an address of a reference to a truth value.
7422 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
7424         * array-notation-common.c : Adjust include files.
7425         * c-ada-spec.c : Likewise.
7426         * c-cilkplus.c : Likewise.
7427         * c-common.c : Likewise.
7428         * c-common.h : Likewise.
7429         * c-cppbuiltin.c : Likewise.
7430         * c-dump.c : Likewise.
7431         * c-format.c : Likewise.
7432         * c-gimplify.c : Likewise.
7433         * c-indentation.c : Likewise.
7434         * c-lex.c : Likewise.
7435         * c-omp.c : Likewise.
7436         * c-opts.c : Likewise.
7437         * c-pch.c : Likewise.
7438         * c-ppoutput.c : Likewise.
7439         * c-pragma.c : Likewise.
7440         * c-pretty-print.c : Likewise.
7441         * c-semantics.c : Likewise.
7442         * c-ubsan.c : Likewise.
7443         * cilk.c : Likewise.
7444         * stub-objc.c : Likewise.
7446 2015-06-08  Marek Polacek  <polacek@redhat.com>
7448         PR c/66415
7449         * c-format.c (location_from_offset): Return LOC if LINE is null.
7451 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
7453         * c-common.h (c_parse_final_cleanups): New prototype.
7454         * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
7456 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
7458         * c-common.c (noplt): New attribute.
7459         (handle_noplt_attribute): New handler.
7461 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
7463         * array-notation-common.c: Adjust includes for restructured coretypes.h.
7464         * c-ada-spec.c: Likewise.
7465         * c-cilkplus.c: Likewise.
7466         * c-common.c: Likewise.
7467         * c-common.h: Likewise.
7468         * c-cppbuiltin.c: Likewise.
7469         * c-dump.c: Likewise.
7470         * c-format.c: Likewise.
7471         * c-gimplify.c: Likewise.
7472         * c-indentation.c: Likewise.
7473         * c-lex.c: Likewise.
7474         * c-omp.c: Likewise.
7475         * c-opts.c: Likewise.
7476         * c-pch.c: Likewise.
7477         * c-ppoutput.c: Likewise.
7478         * c-pragma.c: Likewise.
7479         * c-pretty-print.c: Likewise.
7480         * c-semantics.c: Likewise.
7481         * c-ubsan.c: Likewise.
7482         * cilk.c: Likewise.
7483         * stub-objc.c: Likewise.
7485 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
7487         PR c/66220:
7488         * c-indentation.c (should_warn_for_misleading_indentation): Use
7489         expand_location rather than expand_location_to_spelling_point.
7490         Don't warn if the guarding statement is more indented than the
7491         next/body stmts.
7493 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
7495         * c-indentation.c (warn_for_misleading_indentation): Bail out
7496         immediately if -Wmisleading-indentation isn't enabled.
7498 2015-06-01  Martin Liska  <mliska@suse.cz>
7500         * c-format.c (check_format_arg):Use new type-based pool allocator.
7501         (check_format_info_main) Likewise.
7503 2015-05-31  Eric Botcazou  <ebotcazou@adacore.com>
7505         * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
7506         (has_nontrivial_methods): Likewise.
7508 2015-05-25  Marek Polacek  <polacek@redhat.com>
7510         * c-ubsan.c (ubsan_instrument_shift): Use type0.
7512 2015-05-22  Marek Polacek  <polacek@redhat.com>
7514         PR c/47043
7515         * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
7517 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7519         * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
7520         STACK_GROWS_DOWNWARD.
7522 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7524         * c-cppbuiltin.c (c_cpp_builtins): Check the value of
7525         STACK_GROWS_DOWNWARD rather than if it is defined.
7527 2015-05-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7529         PR c/52952
7530         * c-format.c (location_column_from_byte_offset): New.
7531         (location_from_offset): New.
7532         (struct format_wanted_type): Add offset_loc field.
7533         (check_format_info): Move handling of location for extra arguments
7534         closer to the point of warning.
7535         (check_format_info_main): Pass the result of location_from_offset
7536         to warning_at.
7537         (format_type_warning): Pass the result of location_from_offset
7538         to warning_at.
7540 2015-05-20  Marek Polacek  <polacek@redhat.com>
7542         * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
7544 2015-05-20  Marek Polacek  <polacek@redhat.com>
7546         * c-ada-spec.c (dump_sloc): Use DECL_P.
7548 2015-05-20  Marek Polacek  <polacek@redhat.com>
7550         * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
7551         * c-common.c: Likewise.
7553 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
7555         * c-common.h (fe_file_change): Strengthen param from
7556         const line_map * to const line_map_ordinary *.
7557         (pp_file_change): Likewise.
7558         * c-lex.c (fe_file_change): Likewise.
7559         (cb_define): Use linemap_check_ordinary when invoking
7560         SOURCE_LINE.
7561         (cb_undef): Likewise.
7562         * c-opts.c (c_finish_options): Use linemap_check_ordinary when
7563         invoking cb_file_change.
7564         (c_finish_options): Likewise.
7565         (push_command_line_include): Likewise.
7566         (cb_file_change): Strengthen param "new_map" from
7567         const line_map * to const line_map_ordinary *.
7568         * c-ppoutput.c (cb_define): Likewise for local "map".
7569         (pp_file_change): Likewise for param "map" and local "from".
7571 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
7573         * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
7575 2015-05-18  Tom de Vries  <tom@codesourcery.com>
7577         * c-common.c (build_va_arg_1): New function.
7578         (build_va_arg): Add address operator to va_list operand if necessary.
7580 2015-05-15  Mikhail Maltsev  <maltsevm@gmail.com>
7582         PR c/48956
7583         * c-common.c (int_safely_convertible_to_real_p): Define.
7584         (unsafe_conversion_p): Check conversions involving complex types.
7585         (conversion_warning): Add new warning message for conversions which
7586         discard imaginary component.
7587         * c-common.h: (enum conversion_safety): Add new enumerator for such
7588         conversions.
7590 2015-05-14  Marek Polacek  <polacek@redhat.com>
7592         PR c/66066
7593         PR c/66127
7594         * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
7595         (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
7596         C_MAYBE_CONST_EXPR_INT_OPERANDS set.  Add FOR_INT_CONST argument and
7597         use it.  If FOR_INT_CONST, require that all evaluated operands be
7598         INTEGER_CSTs.
7600 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
7602         * c-common.h (warn_for_misleading_indentation): New prototype.
7603         * c-indentation.c: New file.
7604         * c.opt (Wmisleading-indentation): New option.
7606 2015-05-12  Tom de Vries  <tom@codesourcery.com>
7608         PR tree-optimization/66010
7609         * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
7611 2015-05-09  Jason Merrill  <jason@redhat.com>
7613         * c-opts.c (c_common_post_options): Also clear
7614         cpp_opts->cpp_warn_cxx11_compat.
7616         * c-common.h (enum cxx_dialect): Add cxx_unset.
7617         * c-common.c (cxx_dialect): Initialize to cxx_unset.
7618         * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
7620         * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
7621         (std=gnu++0x): Mark as Undocumented.
7622         (std=gnu++1y): Add deprecated message.
7624 2015-05-08  Jason Merrill  <jason@redhat.com>
7626         * c.opt (Wc++11-compat): Make primary.  Rename var warn_cxx11_compat.
7627         * c-opts.c: Adjust.
7629         * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
7631 2015-05-08  Marek Polacek  <polacek@redhat.com>
7633         PR c/64918
7634         * c.opt (Woverride-init-side-effects): New option.
7636 2015-05-07  Marek Polacek  <polacek@redhat.com>
7638         PR c/65179
7639         * c-common.c (c_fully_fold_internal): Warn when left shifting a
7640         negative value.
7641         * c.opt (Wshift-negative-value): New option.
7642         * c-opts.c (c_common_post_options): Set warn_shift_negative_value
7643         when -Wextra and C99/C++11 mode.
7645 2015-05-07  Marek Polacek  <polacek@redhat.com>
7646             Martin Uecker  <uecker@eecs.berkeley.edu>
7648         * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
7649         flexible member array-like members if SANITIZE_BOUNDS_STRICT.
7651 2015-05-05  Jason Merrill  <jason@redhat.com>
7653         * c.opt (Wterminate): New.
7655 2015-04-30  Marek Polacek  <polacek@redhat.com>
7657         * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
7658         require that the non-constant be of a boolean type.
7660 2015-04-29  Josh Triplett  <josh@joshtriplett.org>
7662         * c-common.c (handle_section_attribute): Refactor to reduce
7663         nesting and distinguish between error cases.
7665 2015-04-29  Marek Polacek  <polacek@redhat.com>
7667         PR c/64610
7668         * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
7669         with 0/1.
7671 2015-04-29  Jakub Jelinek  <jakub@redhat.com>
7673         * c-common.h (omp_clause_mask): Unconditionally define as a class.
7674         Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
7675         HOST_BITS_PER_WIDE_INT.
7677 2015-04-28  Tom de Vries  <tom@codesourcery.com>
7679         PR tree-optimization/65887
7680         * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
7682 2015-04-28  Eric Botcazou  <ebotcazou@adacore.com>
7683             Pierre-Marie de Rodat  <derodat@adacore.com>
7685         * c-ada-spec.c (in_function): Delete.
7686         (dump_generic_ada_node): Do not change in_function and remove the
7687         redundant code dealing with it.
7688         (print_ada_declaration): Do not change in_function.  Use INDENT_INCR.
7689         (print_ada_methods): Output the static member functions in a nested
7690         package after the regular methods as well as associated renamings.
7692 2015-04-24  Marek Polacek  <polacek@redhat.com>
7694         PR c/65830
7695         * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
7696         and OPT_Wshift_count_overflow.
7698         PR c/63357
7699         * c-common.c (warn_logical_operator): Warn if the operands have the
7700         same expressions.
7702 2015-04-24  Marek Polacek  <polacek@redhat.com>
7704         PR c/61534
7705         * c-common.c (warn_logical_operator): Bail if either operand comes
7706         from a macro expansion.
7708 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7710         PR target/55143
7711         * c-common.c (c_default_pointer_mode): Add definition.
7712         * c-common.h (c_default_pointer_mode): Add declaration.
7714 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
7716         * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
7717         on record_builtin_type argument.
7719 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
7721         PR c/65120
7722         * c-common.c (warn_logical_not_parentheses): Don't warn for
7723         !x == 0 or !x != 0.
7725 2015-03-07  Marek Polacek  <polacek@redhat.com>
7727         PR sanitizer/65280
7728         * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
7729         before trying to figure out whether we have a flexible array member.
7731 2015-03-06  Eric Botcazou  <ebotcazou@adacore.com>
7732             Jonathan Wakely  <jwakely.gcc@gmail.com>
7734         * c-ada-spec.c (dump_ada_double_name): Fix pasto.
7736 2015-03-05  Eric Botcazou  <ebotcazou@adacore.com>
7738         PR ada/65319
7739         * c-ada-spec.c (print_destructor): Remove obsolete code.
7741 2015-03-01  Eric Botcazou  <ebotcazou@adacore.com>
7743         * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
7744         (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
7745         DECL_TEMPLATE_RESULT emulations.
7746         (dump_ada_template)): Add guard for TYPE_METHODS.
7748 2015-02-27  Marek Polacek  <polacek@redhat.com>
7750         PR c/65040
7751         * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
7753 2015-02-27  Kai Tietz  <ktietz@redhat.com>
7755         PR c/35330
7756         * c-pragma.c (handle_pragma_weak): Do not try to create
7757         weak/alias of declarations not being function, or variable
7758         declarations.
7760 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
7762         PR libgomp/64625
7763         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
7764         Remove macros.
7765         (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
7767 2015-02-16  Marek Polacek  <polacek@redhat.com>
7769         PR c/65066
7770         * c-format.c (check_format_types): Handle null param.
7772 2015-02-13  Marek Polacek  <polacek@redhat.com>
7774         PR c/65040
7775         * c-format.c (check_format_types): Don't warn about different
7776         signedness if the original value is in the range of WANTED_TYPE.
7778 2015-02-12  Jason Merrill  <jason@redhat.com>
7780         PR c++/64956
7781         * c-opts.c (c_common_post_options): Change flag_abi_version from 0
7782         to the current highest version.
7783         * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
7785 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
7787         PR c/64824
7788         PR c/64868
7789         * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
7790         instead of RDIV_EXPR.  Use build_binary_op instead of
7791         build2_loc.
7793 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
7795         * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
7796         to pass input_location as first argument.
7798 2015-01-23  Tom de Vries  <tom@codesourcery.com>
7800         PR libgomp/64672
7801         * c.opt (fopenacc): Mark as LTO option.
7803 2015-01-23  Tom de Vries  <tom@codesourcery.com>
7805         PR libgomp/64707
7806         * c.opt (fopenmp): Mark as LTO option.
7808 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
7810         PR c/63307
7811         * cilk.c (fill_decls_vec): Only put decls into vector v.
7812         (compare_decls): Fix up formatting.
7814 2015-01-21  Igor Zamyatin  <igor.zamyatin@intel.com>
7816         PR c/63307
7817         * cilk.c: Include vec.h.
7818         (struct cilk_decls): New structure.
7819         (wrapper_parm_cb): Split this function to...
7820         (fill_decls_vec): ...this...
7821         (create_parm_list): ...and this.
7822         (compare_decls): New function.
7823         (for_local_cb): Remove.
7824         (wrapper_local_cb): Ditto.
7825         (build_wrapper_type): For now first traverse and fill vector of
7826         declarations then sort it and then deal with sorted vector.
7827         (cilk_outline): Ditto.
7828         (declare_one_free_variable): Ditto.
7830 2015-01-21  Jason Merrill  <jason@redhat.com>
7832         PR c++/64629
7833         * c-format.c (check_format_arg): Call decl_constant_value.
7835 2015-01-19  Martin Liska  <mliska@suse.cz>
7837         * c-common.c (handle_noicf_attribute): New function.
7839 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
7840             Bernd Schmidt  <bernds@codesourcery.com>
7841             James Norris  <jnorris@codesourcery.com>
7842             Cesar Philippidis  <cesar@codesourcery.com>
7843             Ilmir Usmanov  <i.usmanov@samsung.com>
7844             Jakub Jelinek  <jakub@redhat.com>
7846         * c.opt (fopenacc): New option.
7847         * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
7848         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
7849         New macros.
7850         * c-common.h (c_finish_oacc_wait): New prototype.
7851         * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
7852         (c_finish_oacc_wait): New function.
7853         * c-pragma.c (oacc_pragmas): New variable.
7854         (c_pp_lookup_pragma, init_pragma): Handle it.
7855         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
7856         PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
7857         PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
7858         PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
7859         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
7860         PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
7861         PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
7862         PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
7863         PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
7864         PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
7865         PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
7866         PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
7867         PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
7868         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
7869         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
7870         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
7871         PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
7872         PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
7873         PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
7874         PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
7875         PRAGMA_OACC_CLAUSE_WORKER.
7877 2015-01-14  Marcos Diaz  <marcos.diaz@tallertechnologies.com>
7879         * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
7880         for the new option fstack-protector_explicit.
7881         * c-common.c (c_common_attribute_table): Add stack_protect attribute.
7882         (handle_stack_protect_attribute): New function.
7884 2015-01-13  Martin Uecker  <uecker@eecs.berkeley.edu>
7886         * c.opt: New option -Warray-bounds=.
7888 2015-01-09  Michael Collison  <michael.collison@linaro.org>
7890         * array-notation-common.c: Include hash-set.h, machmode.h,
7891         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
7892         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
7893         * c-ada-spec.c: Ditto.
7894         * c-cilkplus.c: Ditto.
7895         * c-common.c: Include input.h due to flattening of tree.h.
7896         Define macro GCC_C_COMMON_C.
7897         * c-common.h: Flatten tree.h header files into c-common.h.
7898         Remove include of tree-core.h.
7899         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
7900         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
7901         fold-const.h, wide-int.h, and inchash.h due to
7902         flattening of tree.h.
7903         * c-dump.c: Ditto.
7904         * c-format.c: Flatten tree.h header files into c-common.h.
7905         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
7906         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
7907         fold-const.h, wide-int.h, and inchash.h due to
7908         flattening of tree.h.
7909         * c-dump.c: Include hash-set.h, machmode.h,
7910         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
7911         fold-const.h, wide-int.h, and inchash.h due to
7912         flattening of tree.h.
7913         * c-format.c: Include hash-set.h, machmode.h,
7914         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
7915         fold-const.h, wide-int.h, inchash.h and real.h due to
7916         flattening of tree.h.
7917         * c-gimplify.c: Include hash-set.h, machmode.h,
7918         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
7919         fold-const.h, wide-int.h, and inchash.h due to
7920         flattening of tree.h.
7921         * cilk.c: Ditto.
7922         * c-lex.c: Ditto.
7923         * c-omp.c: Ditto.
7924         * c-opts.c: Ditto.
7925         * c-pch.c: Ditto.
7926         * c-ppoutput.c: Ditto.
7927         * c-pragma.c: Ditto.
7928         * c-pretty-print.c: Ditto.
7929         * c-semantics.c: Ditto.
7930         * c-ubsan.c: Ditto.
7931         * stub-objc.c: Ditto.
7933 2015-01-08  Jason Merrill  <jason@redhat.com>
7935         * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
7936         do_ubsan_in_current_function.
7937         (ubsan_maybe_instrument_reference_or_call): Likewise.
7938         * c-ubsan.h: Declare it.
7940 2015-01-08  Mike Stump  <mikestump@comcast.net>
7942         * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
7944 2015-01-07  Marek Polacek  <polacek@redhat.com>
7946         PR c/64440
7947         * c-common.c (c_fully_fold_internal): Warn for division and modulo
7948         if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
7950 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
7952         PR c++/31397
7953         * c.opt (Wsuggest-override): New option.
7955 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
7957         Update copyright years.
7959 2015-01-05  Marek Polacek  <polacek@redhat.com>
7961         PR c/64423
7962         * c-common.c (warn_array_subscript_with_type_char): Add location_t
7963         parameter.  Use it.
7964         * c-common.h (warn_array_subscript_with_type_char): Update
7965         declaration.
7967 2014-12-20  Edward Smith-Rowland  <3dw4rd@verizon.net>
7969         * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
7970         Control macro with flag_sized_deallocation.
7972 2014-12-20  Martin Uecker  <uecker@eecs.berkeley.edu>
7974         * c.opt (Wdiscarded-array-qualifiers): New option.
7976 2014-12-19  Jakub Jelinek  <jakub@redhat.com>
7978         PR preprocessor/63831
7979         * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
7980         and __has_cpp_attribute here.
7981         * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
7982         c_common_has_attribute.
7983         * c-common.h (c_common_has_attribute): New prototype.
7984         * c-lex.c (init_c_lex): Set cb->has_attribute to
7985         c_common_has_attribute instead of cb_has_attribute.
7986         (get_token_no_padding): New function.
7987         (cb_has_attribute): Renamed to ...
7988         (c_common_has_attribute): ... this.  No longer static.  Use
7989         get_token_no_padding, require ()s, don't build TREE_LIST
7990         unnecessarily, fix up formatting, adjust diagnostics, call
7991         init_attributes.
7993 2014-12-15  Jason Merrill  <jason@redhat.com>
7995         * c.opt (-fsized-deallocation, -Wc++14-compat): New.
7996         (-Wsized-deallocation): New.
7997         * c-opts.c (c_common_post_options): -fsized-deallocation defaults
7998         to on in C++14 and up.
8000 2014-12-11  Jason Merrill  <jason@redhat.com>
8002         * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
8004         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
8005         we aren't complaining about VLAs.
8007 2014-12-06  Marek Polacek  <polacek@redhat.com>
8009         PR tree-optimization/64183
8010         * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
8011         shift-expression if it is integer_type_node.  Use types_compatible_p.
8013 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
8015         * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
8016         last argument from create_tmp_var_raw and create_tmp_var calls.
8017         * cilk.c (gimplify_cilk_spawn): Likewise.
8018         * c-omp.c (c_finish_omp_atomic): Likewise.
8020 2014-11-28  Marek Polacek  <polacek@redhat.com>
8022         * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
8023         instead of unsigned_type_node.
8025 2014-11-28  Marek Polacek  <polacek@redhat.com>
8027         PR c/63862
8028         * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
8029         to op1_utype.
8030         * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
8031         expression to unsigned_type_node.
8033 2014-11-20  Mark Wielaard  <mjw@redhat.com>
8035         PR debug/38757
8036         * c-opts.c (set_std_c89): Set lang_hooks.name.
8037         (set_std_c99): Likewise.
8038         (set_std_c11): Likewise.
8039         (set_std_cxx98): Likewise.
8040         (set_std_cxx11): Likewise.
8041         (set_std_cxx14): Likewise.
8042         (set_std_cxx1z): Likewise.
8044 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
8046         PR target/63764
8047         * c-common.h (convert_vector_to_pointer_for_subscript): Change
8048         return type to bool.
8049         * c-common.c: Include gimple-expr.h.
8050         (convert_vector_to_pointer_for_subscript): Change return type to
8051         bool.  If *vecp is not lvalue_p and has VECTOR_TYPE, return true
8052         and copy it into a TARGET_EXPR and use that instead of *vecp
8053         directly.
8055 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
8057         Merger of git branch "gimple-classes-v2-option-3".
8058         * ChangeLog.gimple-classes: New.
8059         * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
8060         from being just a vec<gimple> to a vec<gbind *>.
8062 2014-11-18  Jakub Jelinek  <jakub@redhat.com>
8064         PR sanitizer/63813
8065         * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
8066         argument to ptype, set type to TREE_TYPE (ptype).  Don't call
8067         get_pointer_alignment for non-pointers.  Use ptype, or if it is
8068         reference type, corresponding pointer type, as type of kind
8069         argument.
8070         (ubsan_maybe_instrument_reference,
8071         ubsan_maybe_instrument_member_call): Adjust callers.
8073 2014-11-15  Marek Polacek  <polacek@redhat.com>
8075         PR middle-end/63884
8076         * array-notation-common.c (is_sec_implicit_index_fn): Return false
8077         for NULL fndecl.
8078         (extract_array_notation_exprs): Return for NULL node.
8080 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
8082         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
8083         undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
8085 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
8087         PR c/59708
8088         * c-common.c (check_builtin_function_arguments): Handle
8089         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
8091 2014-11-10  Andi Kleen  <ak@linux.intel.com>
8093         PR c/60804
8094         * c-common.h (check_no_cilk): Declare.
8095         * cilk.c (get_error_location): New function.
8096         (check_no_cilk): Dito.
8098 2014-11-10  Andi Kleen  <ak@linux.intel.com>
8100         * cilk.c (recognize_spawn): Use expression location
8101         for error message.
8103 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
8105         * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
8107 2014-11-10  Edward Smith-Rowland  <3dw4rd@verizon.net>
8109         * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
8110         (__cpp_rtti, __cpp_exceptions): New macros for C++98;
8111         (__cpp_range_based_for, __cpp_initializer_lists,
8112         __cpp_delegating_constructors, __cpp_nsdmi,
8113         __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
8114         for C++11; (__cpp_attribute_deprecated): Remove in favor of
8115         __has_cpp_attribute.
8116         * c-lex.c (cb_has_attribute): New callback CPP function;
8117         (init_c_lex): Set has_attribute callback.
8119 2014-11-04  Richard Biener  <rguenther@suse.de>
8121         * c-common.c (shorten_compare): Do not shorten mixed
8122         DFP and non-DFP compares.
8124 2014-11-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
8126         * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
8127         * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
8128         Commentary and rearrangement of tests.
8129         * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
8130         Commentary and rearrangement of tests.
8131         * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto.
8132         * g++.dg/cpp1y/feat-cxx98.C: Commentary.
8134 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
8136         * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
8137         enum from machine_mode.
8139 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
8141         * c-common.c: Adjust include files.
8142         * c-gimplify.c: Ditto.
8143         * cilk.c: Ditto.
8144         * c-pragma.c: Ditto.
8145         * c-ubsan.c: Ditto.
8147 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
8149         * c-gimplify.c: Adjust include files.
8151 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8153         PR c++/53061
8154         * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
8155         c_common_initialize_diagnostics.
8156         * c-common.h: Likewise.
8158 2014-10-24  Marek Polacek  <polacek@redhat.com>
8160         PR c/56980
8161         * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
8162         print "struct"/"union"/"enum" for typedefed names.
8164 2014-10-23  Marek Polacek  <polacek@redhat.com>
8166         * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
8167         in unsigned type.
8169 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
8170             Yury Gribov  <y.gribov@samsung.com>
8172         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
8173         ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
8174         instead of flag_sanitize_recover as bool flag.
8176 2014-10-21  Kirill Yukhin  <kirill.yukhin@intel.com>
8178         * cilk.c: Revert previous change.
8180 2014-10-20  Igor Zamyatin  <igor.zamyatin@intel.com>
8182         PR c/63307
8183         * cilk.c: Include vec.h.
8184         (struct cilk_decls): New structure.
8185         (wrapper_parm_cb): Split this function to...
8186         (fill_decls_vec): ...this...
8187         (create_parm_list): ...and this.
8188         (compare_decls): New function.
8189         (for_local_cb): Remove.
8190         (wrapper_local_cb): Ditto.
8191         (build_wrapper_type): For now first traverse and fill vector of
8192         declarations then sort it and then deal with sorted vector.
8193         (cilk_outline): Ditto.
8194         (declare_one_free_variable): Ditto.
8196 2014-10-17  Marek Polacek  <polacek@redhat.com>
8198         * c-opts.c (c_common_post_options): Set warn_implicit_int.
8199         * c.opt (Wimplicit-int): Initialize to -1.
8201 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
8203         * c-pragma.c: Adjust include files.
8204         * c-semantics.c: Likewise.
8206 2014-10-16  DJ Delorie  <dj@redhat.com>
8208         * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
8209         multiples of bytes.
8211 2014-10-14  Jason Merrill  <jason@redhat.com>
8213         PR c++/63455
8214         * c-common.h (CPP_PREPARSED_EXPR): New.
8215         (N_CP_TTYPES): Adjust.
8217 2014-10-15  Marek Polacek  <polacek@redhat.com>
8219         * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
8221 2014-10-14  DJ Delorie  <dj@redhat.com>
8223         * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
8224         types, not just __int128.
8225         * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
8226         types, not just __int128.
8227         (cpp_atomic_builtins): Round pointer sizes up.
8228         (type_suffix): Use type precision, not specific types.
8229         * c-common.c (c_common_reswords): Remove __int128 special case.
8230         (c_common_type_for_size): Check for all __intN types, not just
8231         __int128.
8232         (c_common_type_for_mode): Likewise.
8233         (c_common_signed_or_unsigned_type): Likewise.
8234         (c_build_bitfield_integer_type): Likewise.
8235         (c_common_nodes_and_builtins): Likewise.
8236         (keyword_begins_type_specifier): Likewise.
8237         * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
8238         __intN variants.
8240 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
8242         * c-common.c: Use hash_table instead of hashtab.
8244 2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>
8246         * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
8247         C++11 section.
8249 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
8251         PR c++/54427
8252         PR c++/57198
8253         PR c++/58845
8254         * c-common.c (warn_logical_operator): Punt for vectors.
8256 2014-10-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
8258         Implement SD-6: SG10 Feature Test Recommendations
8259         * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
8260         macros and the __has_header macro.
8262 2014-09-30  Jason Merrill  <jason@redhat.com>
8264         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
8265         RID_IS_TRIVIALLY_CONSTRUCTIBLE.
8266         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
8268         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
8269         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
8271         * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
8272         * c-common.c (c_common_reswords): Remove __is_convertible_to.
8274 2014-09-24  Marek Polacek  <polacek@redhat.com>
8276         PR c/61405
8277         PR c/53874
8278         * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
8280 2014-09-23  Andi Kleen  <ak@linux.intel.com>
8282         * c-common.c (handle_no_reorder_attribute): New function.
8283         (c_common_attribute_table): Add no_reorder attribute.
8285 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
8287         * c-cppbuiltin.c (c_cpp_builtins): Define
8288         __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
8289         modes.
8291 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
8293         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
8294         for supported floating-point modes.
8296 2014-09-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8298         * c.opt (Wpsabi): Use LangEnabledBy.
8299         * c-opts.c (c_common_handle_option): Do not handle here.
8301 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
8303         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
8304         macros for floating-point modes.
8306 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
8308         PR target/58757
8309         * c-cppbuiltin.c (builtin_define_float_constants): Correct
8310         __*_DENORM_MIN__ without denormals.
8312 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
8314         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
8315         ubsan_instrument_vla, ubsan_instrument_return): Adjust
8316         ubsan_create_data callers.
8317         (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
8318         index is constant or BIT_AND_EXPR with constant mask and is
8319         small enough for the bound.
8320         * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
8321         ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
8323 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8325         * c.opt: Add CppReason to various flags.
8326         (Wdate-time): Re-sort.
8327         * c-common.c: Include c-common.h earlier.
8328         (struct reason_option_codes_t): Delete.
8329         (c_option_controlling_cpp_error): Prefix global type and struct
8330         with cpp_.
8332 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8334         * c.opt (Wnormalized): New.
8335         (Wnormalized=): Use Enum and Reject Negative.
8336         * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
8338 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
8340         * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
8341         digits of floating-point modes if -fbuilding-libgcc.
8343 2014-09-05  Joseph Myers  <joseph@codesourcery.com>
8345         * c-cppbuiltin.c (c_cpp_builtins): Also define
8346         __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
8347         __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
8348         __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
8349         __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
8350         __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
8351         __LIBGCC_STACK_GROWS_DOWNWARD__,
8352         __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
8353         __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
8354         __LIBGCC_DWARF_FRAME_REGISTERS__,
8355         __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
8356         __LIBGCC_STACK_POINTER_REGNUM__ and
8357         __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
8358         (builtin_define_with_value): Handle backslash-escaping in string
8359         macro values.
8361 2014-09-05  Richard Biener  <rguenther@suse.de>
8363         PR middle-end/63148
8364         * c-format.c (check_format_arg): Properly handle
8365         effectively signed POINTER_PLUS_EXPR offset.
8367 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8369         * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
8370         Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
8371         (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
8372         and Init.
8373         * c-opts.c (c_common_handle_option): Do not handle here.
8374         (sanitize_cpp_opts): Likewise.
8375         * c-common.c (struct reason_option_codes_t): Handle
8376         CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
8378 2014-09-03  Marek Polacek  <polacek@redhat.com>
8380         * c.opt (Wlogical-not-parentheses): Enable by -Wall.
8382 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
8383             Balaji V. Iyer  <balaji.v.iyer@intel.com>
8384             Igor Zamyatin  <igor.zamyatin@intel.com>
8386         * c-cilkplus.c (cilk_for_number_of_iterations): New function.
8387         * c-common.c (c_common_reswords): Added _Cilk_for.
8388         * c-common.h (enum rid): Added RID_CILK_FOR.
8389         (cilk_for_number_of_iterations): Add declaration.
8390         * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
8391         CILK_FOR.
8392         * c-pragma.c (init_pragma): Register "grainsize" pragma.
8393         * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
8395 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8397         * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
8398         Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
8399         Wundef): Use CPP, Var and Init.
8400         * c-opts.c (c_common_handle_option): Do not handle the above flags here.
8402 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8404         * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
8405         * c-opts.c (c_common_handle_option): Do not handle here.
8407 2014-08-25  Jason Merrill  <jason@redhat.com>
8409         * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
8410         -std=c++14 and -std=gnu++14, rather than the reverse.
8411         * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
8412         OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
8413         * c-common.h (cxx_dialect): Remove cxx1y.
8415 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
8417         * c-common.h (enum cxx_dialect): Add cxx14.
8418         * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
8419         * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
8420         cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
8422 2014-08-22  Jason Merrill  <jason@redhat.com>
8424         * c.opt (std=gnu++17): Fix alias.
8426 2014-08-22  Marek Polacek  <polacek@redhat.com>
8428         PR c++/62199
8429         * c-common.c (warn_logical_not_parentheses): Don't check LHS.  Don't
8430         check for vector types.  Drop LHS argument.
8431         * c-common.h (warn_logical_not_parentheses): Adjust.
8433 2014-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8435         * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
8436         (Wmultichar): Likewise.
8437         (Wdate-time): Use C-family languages instead of Common. Use CPP
8438         and Var.
8439         * c-opts.c (c_common_handle_option): Do not handle the above
8440         options here.
8441         (sanitize_cpp_opts): Likewise.
8443 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8445         PR fortran/44054
8446         * c-opts.c: Include tree-diagnostics.h.
8447         (c_diagnostic_finalizer): New.
8448         (c_common_initialize_diagnostics): Use it.
8450 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8452         PR preprocessor/51303
8453         * c-common.c (struct reason_option_codes_t option_codes):
8454         Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
8456 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8458         PR c/60975
8459         PR c/53063
8460         * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
8461         * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
8462         (c_common_post_options): Call init_global_opts_from_cpp.
8463         (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
8465 2014-08-19  Marek Polacek  <polacek@redhat.com>
8467         PR c++/62153
8468         * c-common.c (maybe_warn_bool_compare): New function.
8469         * c-common.h (maybe_warn_bool_compare): Declare.
8470         * c.opt (Wbool-compare): New option.
8472 2014-08-19  Marek Polacek  <polacek@redhat.com>
8474         * c.opt (Wc99-c11-compat): New option.
8476 2014-08-19  Marek Polacek  <polacek@redhat.com>
8478         * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
8479         to warn_c90_c99_compat.
8480         * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
8481         to -1.
8483 2014-08-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8484             Steven Bosscher  <steven@gcc.gnu.org>
8486         PR c/52952
8487         * c-format.c: Add extra_arg_loc and format_string_loc to struct
8488         format_check_results.
8489         (check_function_format): Use true and add comment for boolean
8490         argument.
8491         (finish_dollar_format_checking): Use explicit location when warning.
8492         (check_format_info): Likewise.
8493         (check_format_arg): Set extra_arg_loc and format_string_loc.
8494         (check_format_info_main): Use explicit location when warning.
8495         (check_format_types): Pass explicit location.
8496         (format_type_warning): Likewise.
8498 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8500         PR fortran/44054
8501         * c-format.c: Handle Fortran flags.
8503 2014-08-12  Igor Zamyatin  <igor.zamyatin@intel.com>
8505         PR other/61962
8506         * array-notation-common.c (find_rank): Added handling for other
8507         types of references.
8509 2014-08-10  Marek Polacek  <polacek@redhat.com>
8511         PR c/51849
8512         * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
8513         * c.opt (Wc90-c99-compat): Add option.
8515 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
8517         * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
8519 2014-08-03  Marek Polacek  <polacek@redhat.com>
8521         * c-common.c (check_case_value): Add location_t parameter.  Use it.
8522         (c_add_case_label): Pass loc to check_case_value.
8524 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
8526         * cilk.c: Use hash_map instead of pointer_map.
8528 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
8530         * c-gimplify.c: Use hash_set instead of pointer_set.
8532 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
8534         PR middle-end/61455
8535         * array-notation-common.c (extract_array_notation_exprs): Handling
8536         of DECL_EXPR added.
8538 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
8540         * c-common.h (min_align_of_type): Removed prototype.
8541         * c-common.c (min_align_of_type): Removed.
8542         * c-ubsan.h (ubsan_maybe_instrument_reference,
8543         ubsan_maybe_instrument_member_call): New prototypes.
8544         * c-ubsan.c: Include stor-layout.h and builtins.h.
8545         (ubsan_maybe_instrument_reference_or_call,
8546         ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
8547         functions.
8549 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
8551         PR c++/60517
8552         * c.opt (-Wreturn-local-addr): Move to common.opt.
8554 2014-07-30  Jason Merrill  <jason@redhat.com>
8556         PR c++/61659
8557         PR c++/61687
8558         Revert:
8559         * c.opt (-fuse-all-virtuals): New.
8561 2014-07-30  Tom Tromey  <tromey@redhat.com>
8563         PR c/59855
8564         * c.opt (Wdesignated-init): New option.
8565         * c-common.c (c_common_attribute_table): Add "designated_init".
8566         (handle_designated_init): New function.
8568 2014-07-24  Marek Polacek  <polacek@redhat.com>
8570         PR c/57653
8571         * c-opts.c (c_finish_options): If -imacros is in effect, return.
8573 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
8575         PR preprocessor/60723 - missing system-ness marks for macro tokens
8576         * c-ppoutput.c (struct print::prev_was_system_token): New data
8577         member.
8578         (init_pp_output): Initialize it.
8579         (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
8580         (do_line_change): Return a flag saying if a line marker was
8581         emitted or not.
8582         (scan_translation_unit): Detect if the system-ness of the token we
8583         are about to emit is different from the one of the previously
8584         emitted token.  If so, emit a line marker.  Avoid emitting useless
8585         adjacent line markers.  Avoid emitting line markers for tokens
8586         originating from the expansion of built-in macros.
8587         (scan_translation_unit_directives_only): Adjust.
8589 2014-07-15  Marek Polacek  <polacek@redhat.com>
8591         * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
8592         TYPE_MAX_VALUE is NULL.
8594 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
8596         PR middle-end/61294
8597         * c.opt (Wmemset-transposed-args): New warning.
8599 2014-07-10  Jason Merrill  <jason@redhat.com>
8601         PR c++/61659
8602         PR c++/61687
8603         * c.opt (-fuse-all-virtuals): New.
8605 2014-07-09  Richard Biener  <rguenther@suse.de>
8607         PR c-family/61741
8608         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
8609         using unsigned arithmetic if overflow does not wrap instead of
8610         if overflow is undefined.
8612 2014-07-06  Marek Polacek  <polacek@redhat.com>
8614         PR c/6940
8615         * c.opt (Wsizeof-array-argument): New option.
8617 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
8619         * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
8620         comments->count <= 1, as comments->entries might be NULL.
8622 2014-07-01  Marek Polacek  <polacek@redhat.com>
8624         * c.opt (Wint-conversion): New option.
8626 2014-07-01  Marek Polacek  <polacek@redhat.com>
8628         PR c/58286
8629         * c.opt (Wincompatible-pointer-types): New option.
8631 2014-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
8633         PR c++/51400
8634         * c-common.c (handle_noreturn_attribute, handle_const_attribute):
8635         Do not discard TYPE_QUALS of type.
8637 2014-06-26  Jason Merrill  <jason@redhat.com>
8639         * c-common.h (enum cxx_dialect): Add cxx1z.
8640         * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
8641         * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
8643 2014-06-26  Teresa Johnson  <tejohnson@google.com>
8645         * c-common.h (get_dump_info): Declare.
8646         * c-gimplify.c (c_genericize): Use saved dump files.
8647         * c-opts.c (c_common_parse_file): Begin and end dumps
8648         once around parsing invocation.
8649         (get_dump_info): New function.
8651 2014-06-23  Marek Polacek  <polacek@redhat.com>
8652             Andrew MacLeod  <amacleod@redhat.com>
8654         PR c/61553
8655         * c-common.c (get_atomic_generic_size): Don't segfault if the
8656         type doesn't have a size.
8658 2014-06-20  Marek Polacek  <polacek@redhat.com>
8660         * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
8661         (ubsan_walk_array_refs_r): New function.
8662         (c_genericize): Instrument array bounds.
8663         * c-ubsan.c: Include "internal-fn.h".
8664         (ubsan_instrument_division): Mark instrumented arrays as having
8665         side effects.  Adjust ubsan_type_descriptor call.
8666         (ubsan_instrument_shift): Likewise.
8667         (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
8668         (ubsan_instrument_bounds): New function.
8669         (ubsan_array_ref_instrumented_p): New function.
8670         (ubsan_maybe_instrument_array_ref): New function.
8671         * c-ubsan.h (ubsan_instrument_bounds): Declare.
8672         (ubsan_array_ref_instrumented_p): Declare.
8673         (ubsan_maybe_instrument_array_ref): Declare.
8675 2014-06-20  Hale Wang  <hale.wang@arm.com>
8677         PR lto/61123
8678         * c.opt (fshort-enums): Add to LTO.
8679         * c.opt (fshort-wchar): Likewise.
8681 2014-06-16  Marek Polacek  <polacek@redhat.com>
8683         PR c/60439
8684         * c.opt (Wswitch-bool): Add Var.
8686 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
8688         PR middle-end/61486
8689         * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
8690         #pragma omp target teams or
8691         #pragma omp {,target }teams distribute simd.
8693 2014-06-12  Jason Merrill  <jason@redhat.com>
8695         * c.opt (Wabi=, fabi-compat-version): New.
8696         * c-opts.c (c_common_handle_option): Handle -Wabi=.
8697         (c_common_post_options): Handle flag_abi_compat_version default.
8698         Disallow -fabi-compat-version=1.
8699         * c-common.h (abi_version_crosses): New.
8701 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
8703         * c-common.c (handle_section_attribute): Update handling for
8704         section names that are no longer trees.
8706 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
8708         PR fortran/60928
8709         * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
8710         (omp_pragmas): ... back here.
8712 2014-06-05  Marek Polacek  <polacek@redhat.com>
8714         PR c/49706
8715         * c-common.c (warn_logical_not_parentheses): New function.
8716         * c-common.h (warn_logical_not_parentheses): Declare.
8717         * c.opt (Wlogical-not-parentheses): New option.
8719 2014-06-04  Marek Polacek  <polacek@redhat.com>
8721         PR c/30020
8722         * c-common.c (check_case_bounds): Add location parameter.
8723         Use it.
8724         (c_add_case_label): Pass loc to check_case_bounds.
8726 2014-06-03  Marek Polacek  <polacek@redhat.com>
8728         PR c/60439
8729         * c.opt (Wswitch-bool): New option.
8731 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
8733         * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
8734         Remove prototypes.
8735         (record_types_used_by_current_var_decl): Move prototype to where
8736         it belongs.
8738         * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
8739         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
8740         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
8742 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
8744         * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
8745         * c-common.c (c_common_nodes_and_builtins): Don't initialize
8746         void_zero_node.
8747         * c-pretty-print.c (pp_c_void_constant): New function.
8748         (c_pretty_printer::constant, c_pretty_printer::primary_expression)
8749         (c_pretty_printer::expression): Handle VOID_CST.
8750         * cilk.c (extract_free_variables): Likewise.
8751         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
8752         (ubsan_instrument_vla): Use void_node instead of void_zero_node.
8754 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
8756         * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
8757         * c-pragma.c (push_alignment): Adjust.
8758         (handle_pragma_push_options): Likewise.
8760 2014-05-09  Marek Polacek  <polacek@redhat.com>
8762         PR c/50459
8763         * c-common.c (check_user_alignment): Return -1 if alignment is error
8764         node.
8765         (handle_aligned_attribute): Don't call default_conversion on
8766         FUNCTION_DECLs.
8767         (handle_vector_size_attribute): Likewise.
8768         (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
8769         (handle_sentinel_attribute): Call default_conversion and allow even
8770         integral types as an argument.
8772 2014-05-08  Marek Polacek  <polacek@redhat.com>
8774         PR c/61053
8775         * c-common.c (min_align_of_type): New function factored out from...
8776         (c_sizeof_or_alignof_type): ...here.
8777         * c-common.h (min_align_of_type): Declare.
8779 2014-05-08  Marek Polacek  <polacek@redhat.com>
8781         PR c/61077
8782         * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
8783         parameter type of main.
8785 2014-05-07  DJ Delorie  <dj@redhat.com>
8787         * c-cppbuiltin.c (print_bits_of_hex): New.
8788         (builtin_define_type_minmax): Print values using hex so as not to
8789         require a pre-computed list of string values.
8791 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
8792             Mike Stump  <mikestump@comcast.net>
8793             Richard Sandiford  <rdsandiford@googlemail.com>
8795         * c-ada-spec.c: Include wide-int.h.
8796         (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
8797         (dump_generic_ada_node): Use wide-int interfaces.
8798         * c-common.c: Include wide-int-print.h.
8799         (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
8800         (pointer_int_sum): Use wide-int interfaces.
8801         (c_common_nodes_and_builtins): Use make_int_cst.
8802         (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
8803         (handle_alloc_size_attribute): Use wide-int interfaces.
8804         (get_nonnull_operand): Likewise.
8805         * c-format.c (get_constant): Use tree_fits_uhwi_p.
8806         * c-lex.c: Include wide-int.h.
8807         (narrowest_unsigned_type): Take a widest_int rather than two
8808         HOST_WIDE_INTs.
8809         (narrowest_signed_type): Likewise.
8810         (interpret_integer): Update accordingly.  Use wide-int interfaces.
8811         (lex_charconst): Use wide-int interfaces.
8812         * c-pretty-print.c: Include wide-int.h.
8813         (pp_c_integer_constant): Use wide-int interfaces.
8814         * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
8815         INT_CST_LT_UNSIGNED.
8817 2014-05-06  Richard Biener  <rguenther@suse.de>
8819         * c-opts.c (c_common_post_options): For -freestanding,
8820         -fno-hosted and -fno-builtin disable pattern recognition
8821         if not enabled explicitely.
8823 2014-05-02  Marek Polacek  <polacek@redhat.com>
8825         * c.opt (Wsizeof-pointer-memaccess): Describe option.
8827 2014-05-01  Marek Polacek  <polacek@redhat.com>
8829         PR c/43245
8830         * c.opt (Wdiscarded-qualifiers): Add.
8832 2014-04-30  Marek Polacek  <polacek@redhat.com>
8834         * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs.  Perform
8835         INT_MIN / -1 sanitization only for integer types.
8837 2014-04-25  Marek Polacek  <polacek@redhat.com>
8839         PR c/18079
8840         * c-common.c (handle_noinline_attribute): Warn if the attribute
8841         conflicts with always_inline attribute.
8842         (handle_always_inline_attribute): Warn if the attribute conflicts
8843         with noinline attribute.
8845 2014-04-25  Marek Polacek  <polacek@redhat.com>
8847         PR c/60156
8848         * c-common.c (check_main_parameter_types): Warn about variadic main.
8850 2014-04-24  Mike Stump  <mikestump@comcast.net>
8852         * c.opt (Wshadow-ivar): Default to on.
8854 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
8856         * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
8858 2014-04-23  Marek Polacek  <polacek@redhat.com>
8860         * c-common.c (handle_tm_wrap_attribute): Tweak error message.
8862 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
8864         PR sanitizer/60275
8865         * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
8866         if flag_sanitize_undefined_trap_on_error.
8867         (ubsan_instrument_division, ubsan_instrument_shift,
8868         ubsan_instrument_vla): Likewise.  Use __ubsan_handle_*_abort ()
8869         if !flag_sanitize_recover.
8871 2014-04-22  Marc Glisse  <marc.glisse@inria.fr>
8873         PR libstdc++/43622
8874         * c-common.c (registered_builtin_types): Make non-static.
8875         * c-common.h (registered_builtin_types): Declare.
8877 2014-04-14  Richard Biener  <rguenther@suse.de>
8878             Marc Glisse  <marc.glisse@inria.fr>
8880         PR c/60819
8881         * c-common.c (convert_vector_to_pointer_for_subscript): Properly
8882         apply may-alias the scalar pointer type when applicable.
8884 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
8886         PR middle-end/60467
8887         * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
8888         as possible argument for Cilk_spawn.
8890 2014-04-11  Tobias Burnus  <burnus@net-b.de>
8892         PR c/60194
8893         * c.opt (Wformat-signedness): Add
8894         * c-format.c(check_format_types): Use it.
8896 2014-04-11  Jason Merrill  <jason@redhat.com>
8898         PR c++/57926
8899         * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
8900         default_conversion for an array argument.
8902 2014-04-08  Marek Polacek  <polacek@redhat.com>
8904         PR sanitizer/60745
8905         * c-ubsan.c: Include asan.h.
8906         (ubsan_instrument_return): Call initialize_sanitizer_builtins.
8908 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
8910         * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
8912 2014-04-02  Marek Polacek  <polacek@redhat.com>
8914         * c-common.h (c_expand_expr): Remove declaration.
8916 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
8918         PR c++/60689
8919         * c-common.c (add_atomic_size_parameter): When creating new
8920         params vector, push the size argument first.
8922 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
8924         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
8925         ubsan_instrument_vla, ubsan_instrument_return): Adjust
8926         ubsan_create_data callers.
8928 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
8930         PR debug/60603
8931         * c-opts.c (c_finish_options): Restore cb_file_change call to
8932         <built-in>.
8934 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
8936         PR middle-end/36282
8937         * c-pragma.c (apply_pragma_weak): Only look at
8938         TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
8939         DECL_ASSEMBLER_NAME_SET_P (decl).
8940         (maybe_apply_pending_pragma_weaks): Exit early if
8941         vec_safe_is_empty (pending_weaks) rather than only when
8942         !pending_weaks.
8943         (maybe_apply_pragma_weak): Likewise.  If !DECL_ASSEMBLER_NAME_SET_P,
8944         set assembler name back to NULL afterwards.
8946 2014-03-11  Jason Merrill  <jason@redhat.com>
8948         * c.opt: Add -std=gnu++14.
8950 2014-03-11  Ian Bolton  <ian.bolton@arm.com>
8952         * c-opts.c (c_common_post_options): Don't override
8953         -ffp-contract=fast if unsafe-math-optimizations is on.
8955 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
8957         * c.opt: Enable LTO FE for fshort-double.
8959 2014-03-07  Jason Merrill  <jason@redhat.com>
8961         * c.opt: Add -std=c++14.
8963 2014-03-06  Marek Polacek  <polacek@redhat.com>
8965         PR c/60197
8966         * cilk.c (contains_cilk_spawn_stmt): New function.
8967         (contains_cilk_spawn_stmt_walker): Likewise.
8968         (recognize_spawn): Give error on invalid use of _Cilk_spawn.
8969         * c-common.h (contains_cilk_spawn_stmt): Add declaration.
8971 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
8973         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
8974         (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
8975         even when flag_preprocess_only.
8977 2014-02-26  Jason Merrill  <jason@redhat.com>
8979         PR c++/59231
8980         PR c++/11586
8981         * c-common.c (shorten_compare): Don't check
8982         c_inhibit_evaluation_warnings.
8984 2014-02-19  Jakub Jelinek  <jakub@redhat.com>
8986         PR c/37743
8987         * c-common.c (c_common_nodes_and_builtins): When initializing
8988         c_uint{16,32,64}_type_node, also set corresponding
8989         uint{16,32,64}_type_node to the same value.
8991         PR c++/60267
8992         * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
8993         for PRAGMA_IVDEP if flag_preprocess_only.
8995 2014-02-12  Jakub Jelinek  <jakub@redhat.com>
8997         PR c/60101
8998         * c-common.c (merge_tlist): If copy is true, call new_tlist,
8999         if false, add ADD itself, rather than vice versa.
9000         (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
9001         copy.  For SAVE_EXPR, only call merge_tlist once.
9003 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
9005         PR middle-end/60092
9006         * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
9007         and tree_to_uhwi.
9008         (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
9009         functions.
9010         (c_common_attribute_table): Add alloc_align and assume_aligned
9011         attributes.
9013 2014-02-06  Marek Polacek  <polacek@redhat.com>
9015         PR c/60087
9016         * c-common.c (warn_for_sign_compare): Call warning_at with location
9017         instead of warning.
9019 2014-02-05  Marek Polacek  <polacek@redhat.com>
9021         PR c/53123
9022         * c-omp.c (c_finish_omp_atomic): Remove unreachable return
9023         statement.
9025 2014-02-04  Marek Polacek  <polacek@redhat.com>
9027         PR c/60036
9028         * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
9029         SAVE_EXPR.
9031 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
9033         PR c++/53017
9034         PR c++/59211
9035         * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
9036         handle_vector_size_attribute, handle_nonnull_attribute): Call
9037         default_conversion on the attribute argument.
9038         (handle_nonnull_attribute): Increment the argument number.
9040 2014-01-31  Marek Polacek  <polacek@redhat.com>
9042         PR c/59963
9043         * c-common.c (add_atomic_size_parameter): Pass vNULL to
9044         build_function_call_vec.
9045         (resolve_overloaded_builtin): Likewise.
9046         * c-common.h (build_function_call_vec): Adjust declaration.
9048 2014-01-30  Marek Polacek  <polacek@redhat.com>
9050         PR c/59940
9051         * c-common.h (unsafe_conversion_p): Adjust declaration.
9052         (warnings_for_convert_and_check): Likewise.
9053         (convert_and_check): Likewise.
9054         * c-common.c (unsafe_conversion_p): Add location parameter.  Call
9055         expansion_point_location_if_in_system_header on it.
9056         (warnings_for_convert_and_check): Add location parameter.  Call
9057         expansion_point_location_if_in_system_header on it.  Use it.
9058         (convert_and_check): Add location parameter.  Use it.
9059         (conversion_warning): Likewise.
9060         (c_add_case_label): Adjust convert_and_check calls.
9061         (scalar_to_vector): Adjust unsafe_conversion_p calls.
9063 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
9065         * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
9066         flag_cilkplus.
9067         * c-pragma.c (init_pragma): Likewise.
9068         * c.opt: Likewise.
9070 2014-01-23  Marek Polacek  <polacek@redhat.com>
9072         PR c/59846
9073         * c-common.c (shorten_compare): Add location_t parameter.
9074         * c-common.h (shorten_binary_op): Adjust declaration.
9076 2014-01-23  Marek Polacek  <polacek@redhat.com>
9078         PR c/58346
9079         * c-common.c (pointer_to_zero_sized_aggr_p): New function.
9080         * c-common.h: Declare it.
9082 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
9084         * c-ada-spec.h (dump_ada_specs): Revert prototype change.
9085         * c-ada-spec.c (dump_ads): Likewise.
9086         (cpp_check): Likewise.
9087         (dump_ada_specs): Likewise.
9089 2014-01-15  Laurent Alfonsi  <laurent.alfonsi@st.com>
9091         PR c++/49718
9092         * c-common.c (handle_no_instrument_function_attribute): Allow
9093         no_instrument_function attribute in class member
9094         definition/declaration.
9096 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
9098         PR c/58943
9099         * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
9100         build_modify_expr with non-NOP_EXPR opcode.  Handle return from it
9101         being COMPOUND_EXPR.
9102         (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
9103         operand a SAVE_EXPR and second MODIFY_EXPR.
9105 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
9107         PR target/58115
9108         * c-pch.c (c_common_write_pch): Call
9109         prepare_target_option_nodes_for_pch.
9111 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
9113         Update copyright years
9115 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
9117         * array-notation-common.c, c-cilkplus.c: Use the standard form for
9118         the copyright notice.
9120 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
9122         * c-ada-spec.c (print_constructor): New function.
9123         (print_destructor): Retrieve the origin of the destructor.
9124         (print_ada_declaration): Revamp handling of constructors/destructors.
9126 2013-12-23  Stuart Hastings  <stuart@apple.com>
9127             Bill Maddox  <maddox@google.com>
9128             Jason Merrill  <jason@redhat.com>
9130         * c.opt: Add -fdeclone-ctor-dtor.
9131         * c-opts.c (c_common_post_options): Default to on iff -Os.
9133 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
9135         * c-common.c (c_common_attribute_table): Added "cilk simd function"
9136         attribute.
9137         * c-pragma.h (enum pragma_cilk_clause): Remove.
9138         (enum pragma_omp_clause): Added the following fields:
9139         PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
9140         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
9141         PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
9142         PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
9143         PRAGMA_CILK_CLAUSE_UNIFORM.
9146 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
9148         * cilk.c (cilk_outline): Made this function non-static.
9149         (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
9150         (create_cilk_wrapper): Added a new parameter: a function pointer.
9151         (c_install_body_w_frame_cleanup): Remove
9152         (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
9153         * c-common.h (cilk_outline): New prototype.
9154         (gimplify_cilk_spawn): Removed two parameters.
9155         (cilk_install_body_with_frame_cleanup): New prototype.
9156         * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
9157         CILK_SPAWN_STMT case.
9159 2013-12-11  Bernd Schmidt  <bernds@codesourcery.com>
9161         * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
9163         * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
9164         (int_array_type_node): Remove.
9165         * c-common.c (c_common_nodes_and_builtins): Don't build it.
9167 2013-12-05  Marek Polacek  <polacek@redhat.com>
9169         PR c/52023
9170         * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
9171         [ADJUST_FIELD_ALIGN].
9173 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
9175         PR c/52023
9176         * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
9177         and check field alignment if set.
9178         * c-common.h (c_sizeof_or_alignof_type): Update prototype.
9179         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
9181 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
9182             Marek Polacek  <polacek@redhat.com>
9184         * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
9185         sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
9187 2013-11-29   H.J. Lu  <hongjiu.lu@intel.com>
9189         PR c/59309
9190         * cilk.c (gimplify_cilk_spawn): Properly handle function without
9191         arguments.
9193 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
9195         PR c/59280
9196         * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
9197         goto invalid.  If it is error_mark_node, don't issue further
9198         diagnostics.
9200 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
9202         * c.opt (Wopenmp-simd): New.
9204 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
9206         * c-ubsan.h (ubsan_instrument_return): New prototype.
9207         * c-ubsan.c (ubsan_instrument_return): New function.
9209 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
9211         * c-common.c: Add required include files from gimple.h.
9212         * c-gimplify.c: Likewise.
9213         * cilk.c: Likewise.
9215 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
9217         * c-common.c (unsafe_conversion_p): Remove use of
9218         EXPR_LOC_OR_HERE macro.
9219         (conversion_warning): Likewise.
9220         (warnings_for_convert_and_check): Likewise.
9221         (warn_for_collisions_1): Likewise.
9222         (shorten_compare): Likewise, and remove use of in_system_header
9223         macro, using the location from the former.
9224         * c-lex.c (dump_one_header): Remove use of input_filename macro.
9225         (cb_def_pragma): Remove use of in_system_header macro.
9226         (lex_string): Likewise.
9227         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
9229 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
9230             Mike Stump  <mikestump@comcast.net>
9231             Richard Sandiford  <rdsandiford@googlemail.com>
9233         * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
9234         instead of TREE_INT_CST_LOW, in cases where there is a protecting
9235         tree_fits_shwi_p or tree_fits_uhwi_p.
9236         (dump_generic_ada_node): Likewise.
9237         * c-format.c (check_format_arg): Likewise.
9238         * c-pretty-print.c (pp_c_integer_constant): Likewise.
9240 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
9242         * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
9244 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
9246         PR c/53001
9247         * c-common.c (unsafe_conversion_p): Make this function
9248         return an enumeration with more detail.
9249         (conversion_warning): Use the new return type of
9250         unsafe_conversion_p to separately warn either about conversions
9251         that lower floating point number precision or about the other
9252         kinds of conversions.
9253         * c-common.h (enum conversion_safety): New enumeration.
9254         (unsafe_conversion_p): switching return type to
9255         conversion_safety enumeration.
9256         * c.opt: Adding new warning -Wfloat-conversion and
9257         enabling it with -Wconversion.
9259 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
9261         * c-opts.c: Include plugin.h.
9262         (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
9264 2013-11-19  Marek Polacek  <polacek@redhat.com>
9266         * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
9267         call.
9268         (ubsan_instrument_shift): Likewise.
9269         (ubsan_instrument_vla): Likewise.
9271 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
9273         * c-common.c (convert_vector_to_pointer_for_subscript): Remove
9274         cast to unsigned type.
9276 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
9278         * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
9279         tree_low_cst.
9280         (complete_array_type): Update comment to refer to tree_to_[su]hwi
9281         rather than tree_low_cst.
9283 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
9285         * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
9286         tree_to_uhwi throughout.
9288 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
9290         * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
9291         tree_low_cst (..., 0) with tree_to_shwi throughout.
9293 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
9295         * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
9296         host_integerp (..., 1) with tree_fits_uhwi_p throughout.
9298 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
9300         * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
9301         host_integerp (..., 0) with tree_fits_shwi_p throughout.
9303 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
9305         * c-cilkplus.c: New file.
9306         * c-common.c (readonly_error): Add location argument.
9307         * c-common.h (readonly_error): Same.
9308         (c_finish_cilk_clauses): Protoize.
9309         (c_check_cilk_loop): Same.
9310         c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
9311         Do not fail on error_mark_node.
9312         Abstract increment canonicalization to here...
9313         (c_omp_for_incr_canonicalize_ptr): New.
9314         c-pragma.c (init_pragma): Register "simd" pragma.
9315         c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
9316         (enum pragma_cilk_clause): New.
9318 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
9320         * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
9321         wchar_type and host_integerp checks.
9323 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
9325         * c-common.c: Likewise.
9326         * c-gimplify.c: Likewise.
9327         * cilk.c: Likewise.
9329 2013-11-14  Diego Novillo  <dnovillo@google.com>
9331         * c-common.c: Include fold-const.h.
9332         Include stor-layout.h.
9333         Include calls.h.
9334         Include stringpool.h.
9335         Include attribs.h.
9336         Include varasm.h.
9337         Include trans-mem.h.
9338         * c-cppbuiltin.c: Include stor-layout.h.
9339         Include stringpool.h.
9340         * c-format.c: Include stringpool.h.
9341         * c-lex.c: Include stringpool.h.
9342         Include stor-layout.h.
9343         * c-pragma.c: Include stringpool.h.
9344         Include attribs.h.
9345         Include varasm.h.
9346         Include gcc-symtab.h.
9347         * c-pretty-print.c: Include stor-layout.h.
9348         Include attribs.h.
9349         * cilk.c: Include stringpool.h.
9350         Include calls.h.
9352 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
9354         * c-common.h (enum rid): Add RID_AUTO_TYPE.
9355         * c-common.c (c_common_reswords): Add __auto_type.
9356         (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
9358 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
9360         * c-common.c: Include gimplify.h.
9361         * c-gimplify.c: Likewise.
9362         * cilk.c: Likewise.
9363         * c-omp.c: Include gimple-expr.h instead of gimple.h.
9364         * c-ubsan.c: Don't include gimple.h.
9366 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
9368         * c-common.c (c_common_reswords): Add _Thread_local.
9370 2013-11-09  Joseph Myers  <joseph@codesourcery.com>
9372         * c-common.c (atomic_size_supported_p): New function.
9373         (resolve_overloaded_atomic_exchange)
9374         (resolve_overloaded_atomic_compare_exchange)
9375         (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
9376         Use it instead of comparing size with a local list of sizes.
9378 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
9379             Joseph Myers  <joseph@codesourcery.com>
9381         * c-common.h (enum rid): Add RID_ATOMIC.
9382         * c-common.c (c_common_reswords): Add _Atomic.
9383         (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
9384         (keyword_is_type_qualifier): Accept RID_ATOMIC.
9385         * c-format.c (check_format_types): Check for extra _Atomic
9386         qualifiers in format argument.
9387         * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
9388         (pp_c_type_qualifier_list): Mention _Atomic in comment.
9390 2013-11-06  Tobias Burnus  <burnus@net-b.de>
9392         * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
9394 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
9396         * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
9397         standards modes.
9398         * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
9399         to mean lack of IEEE 754 support.
9401 2013-11-05  Tobias Burnus  <burnus@net-b.de>
9403         * c.opt (-Wdate-time): New option
9404         * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
9406 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
9408         * c-cppbuiltin.c (cpp_iec_559_value): Test
9409         flag_excess_precision_cmdline not flag_excess_precision.
9411 2013-11-05  Tobias Burnus  <burnus@net-b.de>
9413         * c.opt (fopenmp-simd): New option.
9414         * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
9415         (omp_pragmas): ... this new struct.
9416         (c_pp_lookup_pragma): Also walk omp_pragmas.
9417         (init_pragma): Init pragmas for -fopenmp-simd.
9419 2013-11-04  Marek Polacek  <polacek@redhat.com>
9421         PR c++/58979
9422         * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
9424 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
9426         * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
9427         New functions.
9428         (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
9430 2013-11-04  Eric Botcazou  <ebotcazou@adacore.com>
9432         * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
9433         (dump_ada_specs): Adjust prototype of second callback.
9434         * c-ada-spec.c (cpp_check): New global variable.
9435         (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
9436         (print_generic_ada_decl): Likewise.
9437         (has_static_fields): Change return type to bool and add guard.
9438         (has_nontrivial_methods): New predicate.
9439         (is_tagged_type): Change return type to bool.
9440         (separate_class_package): Call has_nontrivial_methods.
9441         (pp_ada_tree_identifier): Minor tweaks.
9442         (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
9443         (dump_ada_array_domains): Likewise.
9444         (dump_ada_array_type): Likewise.
9445         (dump_template_types): Remove cpp_check parameter and do not pass it to
9446         dump_generic_ada_node.
9447         (dump_ada_template): Likewise.
9448         (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
9449         recursively.
9450         (print_ada_methods): Change return type to integer.  Remove cpp_check
9451         parameter and do not pass it down.
9452         (dump_nested_types): Remove cpp_check parameter and do not pass it to
9453         dump_generic_ada_node.
9454         (print_ada_declaration): Likewise.  Test RECORD_OR_UNION_TYPE_P before
9455         accessing methods.
9456         (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
9457         down.  Use has_nontrivial_methods to recognize C++ classes.  Use return
9458         value of print_ada_methods.
9459         (dump_ads): Rename cpp_check parameter to check and adjust prototype.
9460         Set cpp_check to it before invoking dump_ada_nodes.
9461         (dump_ada_specs): Likewise.
9463 2013-11-03  Marek Polacek  <polacek@redhat.com>
9465         * c-ubsan.c: Don't include hash-table.h.
9466         (ubsan_instrument_vla): New function.
9467         * c-ubsan.h: Declare it.
9469 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
9471         Automated part of renaming of symtab_node_base to symtab_node.
9473         Patch autogenerated by rename_symtab.py from
9474         https://github.com/davidmalcolm/gcc-refactoring-scripts
9475         revision 58bb219cc090b2f4516a9297d868c245495ee622
9477         * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
9478         symtab_node_base to symtab_node.
9480 2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
9482         Implement C++14 digit separators.
9483         * c-lex.c (interpret_float): Remove digit separators from scratch string
9484         before building real literal.
9486 2013-10-30  Jakub Jelinek  <jakub@redhat.com>
9488         * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
9490 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
9492         * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
9493         fields.
9494         (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
9495         enabled.
9496         * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
9497         (insert_cilk_frame): New prototype.
9498         (cilk_init_builtins): Likewise.
9499         (gimplify_cilk_spawn): Likewise.
9500         (c_cilk_install_body_w_frame_cleanup): Likewise.
9501         (cilk_detect_spawn_and_unwrap): Likewise.
9502         (cilk_set_spawn_marker): Likewise.
9503         (build_cilk_sync): Likewise.
9504         (build_cilk_spawn): Likewise.
9505         * cilk.c: New file.
9507 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
9509         Patch autogenerated by refactor_symtab.py from
9510         https://github.com/davidmalcolm/gcc-refactoring-scripts
9511         revision 58bb219cc090b2f4516a9297d868c245495ee622
9513         * c-gimplify.c (c_genericize): Update for conversion of symtab types
9514         to a true class hierarchy.
9515         * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
9517 2013-10-27  Richard Sandiford  <rdsandiford@googlemail.com>
9519         * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
9521 2013-10-26  Jeff Law  <law@redhat.com>
9523         * c-common.c (c_define_builtins): Remove mudflap support.
9524         * c.opt: Ignore and warn for mudflap options.
9526 2013-10-24  Tobias Burnus  <burnus@net-b.de>
9528         PR other/33426
9529         * c-pragma.c (init_pragma) Add #pragma ivdep handling.
9530         * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
9532 2013-10-23  Jason Merrill  <jason@redhat.com>
9534         * c-format.c (gcc_cxxdiag_char_table): Add %X.
9536 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
9538         * c-common.h (omp_clause_mask::operator !=): New method.
9539         * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
9540         instead of if (mask & something) tests everywhere.
9542         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
9543         201307 instead of 201107.
9544         * c-common.c (DEF_FUNCTION_TYPE_8): Define.
9545         (c_common_attribute_table): Add "omp declare target" and
9546         "omp declare simd" attributes.
9547         (handle_omp_declare_target_attribute,
9548         handle_omp_declare_simd_attribute): New functions.
9549         * c-omp.c: Include c-pragma.h.
9550         (c_finish_omp_taskgroup): New function.
9551         (c_finish_omp_atomic): Add swapped argument, if true,
9552         build the operation first with rhs, lhs arguments and use NOP_EXPR
9553         build_modify_expr.
9554         (c_finish_omp_for): Add code argument, pass it down to make_code.
9555         (c_omp_split_clauses): New function.
9556         (c_split_parallel_clauses): Removed.
9557         (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
9558         c_omp_declare_simd_clauses_to_decls): New functions.
9559         * c-common.h (omp_clause_mask): New type.
9560         (OMP_CLAUSE_MASK_1): Define.
9561         (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
9562         omp_clause_mask::operator |=, omp_clause_mask::operator ~,
9563         omp_clause_mask::operator |, omp_clause_mask::operator &,
9564         omp_clause_mask::operator <<, omp_clause_mask::operator >>,
9565         omp_clause_mask::operator ==): New methods.
9566         (enum c_omp_clause_split): New.
9567         (c_finish_omp_taskgroup): New prototype.
9568         (c_finish_omp_atomic): Add swapped argument.
9569         (c_finish_omp_for): Add code argument.
9570         (c_omp_split_clauses): New prototype.
9571         (c_split_parallel_clauses): Removed.
9572         (c_omp_declare_simd_clauses_to_numbers,
9573         c_omp_declare_simd_clauses_to_decls): New prototypes.
9574         * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
9575         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
9576         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
9577         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
9578         PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
9579         Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
9580         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
9581         PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
9582         PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
9583         PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
9584         PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
9585         PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
9586         PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
9587         PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
9588         PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
9589         PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
9590         PRAGMA_OMP_CLAUSE_UNIFORM.
9592 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
9594         PR tree-optimization/20318
9595         * c-common.c (handle_returns_nonnull_attribute): New function.
9596         (c_common_attribute_table): Add returns_nonnull.
9598 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
9600         PR c++/19476
9601         * c.opt (fcheck-new): Move to common.opt.
9603 2013-09-25  Marek Polacek  <polacek@redhat.com>
9604             Jakub Jelinek  <jakub@redhat.com>
9606         PR sanitizer/58413
9607         * c-ubsan.c (ubsan_instrument_shift): Don't instrument
9608         an expression if we can prove it is correct.
9609         (ubsan_instrument_division): Likewise.  Remove unnecessary
9610         check.
9612 2013-09-18  Marek Polacek  <polacek@redhat.com>
9614         PR sanitizer/58411
9615         * c-common.c (handle_no_sanitize_undefined_attribute): New function.
9616         Declare it.
9617         (struct attribute_spec c_common_att): Add no_sanitize_undefined.
9619 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
9621         PR target/48094
9622         * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
9623         fobjc-gc, freplace-objc-classes): Accept for LTO.
9625 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
9627         * c-target.def: New hook
9629 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
9631         PR c++/43452
9632         * c.opt (Wdelete-incomplete): Add.
9634 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
9636         * c-common.c (same_scalar_type_ignoring_signedness): Delete.
9637         (vector_types_compatible_elements_p): New function.
9638         * c-common.h: (same_scalar_type_ignoring_signedness): Delete
9639         declaration.
9640         (vector_types_compatible_elements_p): Declare.
9642 2013-09-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9644         * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
9645         a virtual member function.
9646         (pp_simple_type_specifier): Remove.
9647         (pp_c_type_specifier): Likewise.
9648         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
9649         Rename from pp_c_type_specifier.  Adjust.
9650         (c_pretty_printer::c_pretty_printer): Do not assign to
9651         simple_type_specifier.
9653 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9655         * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
9656         member function.
9657         (c_pretty_printer::storage_class_specifier): Likewise.
9658         (c_pretty_printer::initializer): Likewise.
9659         (pp_declaration): Remove.
9660         (pp_declaration_specifiers): Likewise.
9661         (pp_abstract_declarator): Likewise.
9662         (pp_declarator): Likewise.
9663         (pp_type_id): Likewise.
9664         (pp_statement): Likewise.
9665         (pp_constant): Likewise.
9666         (pp_id_expression): Likewise.
9667         (pp_primary_expression): Likewise.
9668         (pp_unary_expression): Likewise.
9669         (pp_multiplicative_expression): Likewise.
9670         (pp_conditional_expression): Likewise.
9671         (pp_assignment_expression): Likewise.
9672         (pp_expression): Likewise.
9673         (pp_c_type_id): Likewise.
9674         (pp_c_storage_class_specifier): Likewise.
9675         * c-pretty-print.c (pp_c_type_cast): Tidy.
9676         (pp_c_pointer): Likewise.
9677         (pp_c_type_specifier): Likewise.
9678         (pp_c_parameter_type_list): Likewise.
9679         (pp_c_function_definition): Likewise.
9680         (pp_c_init_declarator): Likewise.
9681         (pp_c_initializer_list): Likewise.
9682         (pp_c_constructor_elts): Likewise.
9683         (c_pretty_printer::direct_abstract_declarator): Likewise.
9684         (c_pretty_printer::declaration_specifiers): Likewise.
9685         (c_pretty_printer::primary_expression): Likewise.
9686         (c_pretty_printer::postfix_expression): Likewise.
9687         (c_pretty_printer::type_id): Rename from pp_c_type_id.
9688         (c_pretty_printer::storage_class_specifier): Rename from
9689         pp_c_storage_class_specifier.
9690         (c_pretty_printer::initializer): Rename from pp_c_initializer.
9691         (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
9692         storage_class_specifier, initializer, offset_list, flags.
9694 2013-08-30  Marek Polacek  <polacek@redhat.com>
9696         * c-ubsan.c: New file.
9697         * c-ubsan.h: New file.
9699 2013-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9701         * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
9702         member function.
9703         (c_pretty_printer::declaration_specifiers): Likewise.
9704         (c_pretty_printer::declarator): Likewise.
9705         (c_pretty_printer::abstract_declarator): Likewise.
9706         (c_pretty_printer::direct_abstract_declarator): Likewise.
9707         (c_pretty_printer::direct_declarator): Likewise.
9708         (c_pretty_printer::function_specifier): Likewise.
9709         (pp_declaration): Adjust.
9710         (pp_declaration_specifiers): Likewise.
9711         (pp_abstract_declarator): Likewise.
9712         (pp_direct_declarator): Likewise.
9713         (pp_function_specifier): Likewise.
9714         (pp_direct_abstract_declarator): Remove as unused.
9715         (pp_c_declaration): Remove.
9716         (pp_c_declaration_specifiers): Likewise.
9717         (pp_c_declarator): Likewise.
9718         (pp_c_direct_declarator): Likewise.
9719         (pp_c_function_specifier): Likewise.
9720         (pp_c_direct_abstract_declarator): Likewise.
9721         * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
9722         from pp_c_abstract_declarator.  Adjust.
9723         (c_pretty_printer::direct_abstract_declarator): Rename from
9724         pp_c_direct_abstract_declarator.  Adjust.
9725         (c_pretty_printer::function_specifier): Rename from
9726         pp_c_function_specifier.  Adjust.
9727         (c_pretty_printer::declaration_specifiers): Rename from
9728         pp_c_declaration_specifiers.  Adjust.
9729         (c_pretty_printer::direct_declarator): Rename from
9730         pp_c_direct_declarator.  Adjust.
9731         (c_pretty_printer::declarator): Rename from pp_c_declarator.  Adjust.
9732         (c_pretty_printer::declaration): Rename from pp_c_declaration.  Adjust.
9733         (c_pretty_printer::c_pretty_printer): Do not assign to
9734         declaration, declaration_specifiers, declarator,
9735         direct_declarator, direct_abstract_declarator, function_specifier.
9737 2013-08-26  Gabriel Dos Reis  <gdre@integrable-solutions.net>
9739         * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
9740         virtual member function.
9741         (c_pretty_printer::multiplicative_expression): Likewise.
9742         (c_pretty_printer::conditional_expression): Likewise.
9743         (c_pretty_printer::assignment_expression): Likewise.
9744         (c_pretty_printer::expression): Likewise.
9745         (pp_unary_expression): Adjust.
9746         (pp_multiplicative_expression): Likewise.
9747         (pp_assignment_expression): Likewise.
9748         (pp_conditional_expression): Likewise.
9749         (pp_expression): Likewise.
9750         * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
9751         from pp_c_unary_expression.  Adjust.
9752         (c_pretty_printer::multiplicative_expression): Rename from
9753         pp_c_multiplicative_expression.  Adjust.
9754         (c_pretty_printer::conditional_expression): Rename from
9755         pp_c_conditional_expression.  Adjust.
9756         (c_pretty_printer::assignment_expression): Rename from
9757         pp_c_assignment_expression.  Adjust.
9758         (c_pretty_printer::expression): Rename from pp_c_expression.  Adjust.
9759         (c_pretty_printer::c_pretty_printer): Do not assign to
9760         unary_expression, multiplicative_expression,
9761         conditional_expression, expression.
9763 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9765         * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
9766         virtual member function.
9767         (pp_postfix_expression): Adjust.
9768         (pp_c_postfix_expression): Remove.
9769         * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
9770         from pp_c_postfix_expression.  Adjust.
9771         (c_pretty_printer::c_pretty_printer): Do not assign to
9772         postfix_expression.
9774 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9776         * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
9777         virtua member function.
9778         (pp_primary_expression): Adjust.
9779         (pp_c_primary_expression): Remove.
9780         * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
9781         from pp_c_primary_expression.  Adjust.
9782         (pp_c_initializer_list): Use pp_primary_expression.
9783         (c_pretty_printer::c_pretty_printer): Do not assign to
9784         primary_expression.
9786 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9788         * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
9789         * c-pretty-print.c (M_): Remove.
9790         (c_pretty_printer::translate_string): Define.
9791         (pp_c_type_specifier): Use it.
9792         (pp_c_primary_expression): Likewise.
9793         (pp_c_expression): Likewise.
9795 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9797         * c-pretty-print.h (c_pretty_printer::id_expression): Now a
9798         virtual function.
9799         (pp_c_id_expression): Remove.
9800         (pp_id_expression): Adjust.
9801         * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
9802         pp_c_id_expression.  Adjust.
9803         (pp_c_postfix_expression): Use pp_id_expression.
9804         (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
9806 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9808         * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
9809         member function.
9810         (pp_constant): Adjust.
9811         (pp_c_constant): Remove.
9812         * c-pretty-print.c (c_pretty_printer::constant): Rename from
9813         pp_c_constant.  Adjust.
9814         (pp_c_constant)
9815         (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
9816         (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
9818 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9820         * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
9821         (c_pretty_printer::c_pretty_printer): Declare.
9822         * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
9823         c_pretty_printer_init.  Adjust.
9824         (print_c_tree): Do not call c_pretty_printer_init.
9825         * c-ada-spec.c (dump_ads): Remove call to pp_construct.
9827 2013-08-09  Arnaud Charlet  <charlet@adacore.com>
9829         * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
9831 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
9833         PR c++/58080
9834         * c-common.c (pointer_int_sum): Add bool parameter.
9835         * c-common.h (pointer_int_sum): Adjust declaration.
9837 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9839         * c-pretty-print.c (print_c_tree): Simplify.  Use non-static local
9840         c_pretty_printer variable.
9842 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9844         * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
9845         (pp_base): Remove.
9846         (pp_c_base): Likewise.  Adjust users.
9847         * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
9848         (pp_c_whitespace): Do not call pp_base.
9849         (pp_c_left_paren): Likewise.
9850         (pp_c_right_paren): Likewise.
9851         (pp_c_left_brace): Likewise.
9852         (pp_c_right_brace): Likewise.
9853         (pp_c_left_bracket): Likewise.
9854         (pp_c_right_bracket): Likewise.
9855         (pp_c_dot): Likewise.
9856         (pp_c_ampersand): Likewise.
9857         (pp_c_star): Likewise.
9858         (pp_c_arrow): Likewise.
9859         (pp_c_semicolon): Likewise.
9860         (pp_c_complement): Likewise.
9861         (pp_c_exclamation): Likewise.
9862         (pp_c_direct_declarator): Likewise.
9863         (pp_c_ws_string): Likewise.
9864         (pp_c_identifier): Likewise.
9865         (pp_c_statement): Likewise.
9866         (print_c_tree): Likewise.
9868 2013-08-04  Ed Smith-Rowland  <3dw4rd@verizon.net>
9870         PR c++/58072
9871         * c-common.c (c_parse_error): Catch user-defined literal tokens and
9872         provide useful error strings.
9874 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9876         * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
9877         printer functions instead of pp_string or operators and punctuators.
9878         (dump_generic_ada_node): Likewise.
9879         * c-pretty-print.c (pp_c_type_specifier): Likewise.
9880         (pp_c_relational_expression): Likewise.
9881         (pp_c_logical_or_expression): Likewise.
9883 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9885         * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
9886         functions instead of pp_character.
9887         (pp_ada_tree_identifier): Likewise.
9888         (dump_ada_double_name): Likewise.
9889         (dump_ada_function_declaration): Likewise.
9890         (dump_ada_array_domains): Likewise.
9891         (dump_template_types): Likewise.
9892         (dump_generic_ada_node): Likewise.
9893         (print_ada_declaration): Likewise.
9894         (print_ada_struct_decl): Likewise.
9895         * c-pretty-print.c (pp_c_integer_constant): Likewise.
9897 2013-07-23  Tom Tromey  <tromey@redhat.com>
9899         * c-common.h (enum rid) <RID_GENERIC>: New constant.
9900         * c-common.c (c_common_reswords): Add _Generic.
9902 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
9904         * c-common.c: Fix typos.
9905         * c-common.h: Likewise.
9907 2013-07-13  Lubos Lunak  <l.lunak@suse.cz>
9909         PR c++/55203
9910         * c-common.c (c_common_attribute_table): Add warn_unused.
9911         (handle_warn_unused_attribute): New.
9913 2013-07-10  Jakub Jelinek  <jakub@redhat.com>
9915         * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
9916         for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
9918 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
9920         PR c++/57869
9921         * c.opt: Add Wconditionally-supported.
9923 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
9925         * array-notation-common.c (length_mismatch_in_expr_p): Delete
9926         unused variables l_length and l_node.
9928 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
9930         PR c/57821
9931         * c-common.c (complete_array_type): Delay folding first index
9932         like other indices.  When folding, check for index overflow.
9934 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
9936         PR c++/57509
9937         * c-common.h (c_build_vec_perm_expr): New complain argument.
9938         * c-common.c (c_build_vec_perm_expr): Likewise.
9939         Use save_expr also in C++.
9941 2013-06-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9943         * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
9944         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
9945         * c-opts.c (c_common_post_options): Likewise.
9947 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
9949         * array-notation-common.c (length_mismatch_in_expr): Changed the
9950         parameter type's from a dynamic array to a vec_tree.  Also removed
9951         the size parameters.
9952         * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
9953         the change above.
9955 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
9957         * c-common.h (struct cilkplus_an_parts): New structure.
9958         (struct cilkplus_an_loop_parts): Likewise.
9959         (cilkplus_extract_an_triplets): New prototype.
9960         (fix_sec_implicit_args): Likewise.
9961         * array-notation-common.c (cilkplus_extract_an_triplets): New function.
9962         (fix_sec_implicit_args): Likewise.
9964 2013-06-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
9966         * array-notation-common.c (find_inv_trees): Removed an unwanted
9967         typecasting.
9968         * c-common.h (struct inv_list::additional_tcodes): Changed type from
9969         enum rid to enum tree_code.
9971 2013-06-11  Jan Hubicka  <jh@suse.cz>
9973         * c-common.c (handle_alias_ifunc_attribute): Do not set
9974         DECL_EXTERNAL for weakref variables.
9975         * c-pragma.c (handle_pragma_weak): Make sure aliases
9976         are not declared as external.
9978 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
9980         * array-notation-common.c (length_mismatch_in_expr_p): Moved this
9981         function from c/c-array-notation.c.
9982         (is_cilkplus_reduce_builtin): Likewise.
9983         (find_rank): Likewise.
9984         (extract_array_notation_exprs): Likewise.
9985         (replace_array_notations): Likewise.
9986         (find_inv_trees): Likewise.
9987         (replace_inv_trees): Likewise.
9988         (contains_array_notation_expr): Likewise.
9989         (find_correct_array_notation_type): Likewise.
9990         * c-common.h (struct inv_list): Moved this struct from the file
9991         c/c-array-notation.c and added a new field called additional tcodes.
9992         (length_mismatch_in_expr_p): New prototype.
9993         (is_cilkplus_reduce_builtin): Likewise.
9994         (find_rank): Likewise.
9995         (extract_array_notation_exprs): Likewise.
9996         (replace_array_notation): Likewise.
9997         (find_inv_trees): Likewise.
9998         (replace_inv_trees): Likewise.
9999         (find_correct_array_notation_type): Likewise.
10001 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
10003         * c-common.c (c_define_builtins): When cilkplus is enabled, the
10004         function array_notation_init_builtins is called.
10005         (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
10006         * c-common.def (ARRAY_NOTATION_REF): New tree.
10007         * c-common.h (build_array_notation_expr): New function declaration.
10008         (build_array_notation_ref): Likewise.
10009         (extract_sec_implicit_index_arg): New extern declaration.
10010         (is_sec_implicit_index_fn): Likewise.
10011         (ARRAY_NOTATION_CHECK): New define.
10012         (ARRAY_NOTATION_ARRAY): Likewise.
10013         (ARRAY_NOTATION_START): Likewise.
10014         (ARRAY_NOTATION_LENGTH): Likewise.
10015         (ARRAY_NOTATION_STRIDE): Likewise.
10016         * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
10017         ARRAY_NOTATION_REF.
10018         (pp_c_expression): Likewise.
10019         * c.opt (flag_enable_cilkplus): New flag.
10020         * array-notation-common.c: New file.
10022 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
10024         PR c++/57274
10025         * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
10027 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
10029         * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
10030         vectors.
10032 2013-05-07  Han Shen  <shenhan@google.com>
10034         * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
10036 2013-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10038         * c-common.c (check_user_alignment): Emit error for negative values.
10040 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
10042         * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
10044 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
10046         * c-cppbuiltin.c (c_cpp_builtins): Do not define
10047         __GXX_EXPERIMENTAL_CXX1Y__.
10049 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
10050             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10052         * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
10053         * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
10054         to simply use OPT_Wpointer_arith.
10055         (c_sizeof_or_alignof_type): Likewise.
10057 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
10059         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
10061 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
10063         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
10064         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
10065         specifiers.
10067 2013-04-07  Steven Bosscher  <steven@gcc.gnu.org>
10069         * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
10071 2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
10073         * c-common.c (pointer_int_sum): Remove dead code.
10075 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
10077         PR middle-end/56524
10078         * c-common.c (handle_optimize_attribute): Don't call
10079         save_optabs_if_changed.
10081 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10083         PR middle-end/56461
10084         * c-pch.c (pch_init): Free target_validity at the end.
10086 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
10088         * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
10090 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
10091             Jakub Jelinek  <jakub@redhat.com>
10093         PR sanitizer/56454
10094         * c-common.c (handle_no_sanitize_address_attribute): New function.
10095         (c_common_attribute_table): Add no_sanitize_address attribute.
10096         (handle_no_address_safety_analysis_attribute): Add
10097         no_sanitize_address attribute, not no_address_safety_analysis
10098         attribute.
10100 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
10102         PR target/52555
10103         * c-common.c (handle_optimize_attribute): Call
10104         save_optabs_if_changed.
10106 2013-02-18  Jakub Jelinek  <jakub@redhat.com>
10107             Steven Bosscher  <steven@gcc.gnu.org>
10109         PR pch/54117
10110         * c-opts.c (c_common_post_options): If debug info is enabled
10111         and non-dwarf*, refuse to load PCH files and when writing PCH
10112         file warn.
10114 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
10116         PR middle-end/56167
10117         * c-common.c (handle_error_attribute): Fix condition.
10119 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
10121         PR c++/55742
10122         * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
10124 2013-01-18  Jason Merrill  <jason@redhat.com>
10126         PR target/54908
10127         * c.opt (-fextern-tls-init): New.
10128         * c-opts.c (c_common_post_options): Handle it.
10130 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
10132         PR c/48418
10133         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
10134         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
10135         and is either negative or bigger or equal to type precision
10136         of the first operand.
10138 2012-12-03  Marek Polacek  <polacek@redhat.com>
10140         PR c/55570
10141         * c-common.c (check_user_alignment): Swap order of tests,
10142         check TREE_CODE first.
10144 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
10146         PR c++/52654
10147         * c-common.h (overflow_type): New enum.
10148         (build_userdef_literal): Add overflow_type argument.
10149         (tree_userdef_literal): Add overflow_type.
10150         (USERDEF_LITERAL_OVERFLOW): New access macro.
10151         * c-common.c (build_userdef_literal): Add overflow_type
10152         argument.
10153         * c-lex.c (c_lex_with_flags): Add overflow_type to
10154         build_userdef_literal calls.
10155         (interpret_integer, interpret_float): Add overflow_type argument.
10157 2012-11-28  Richard Biener  <rguenther@suse.de>
10159         PR c/35634
10160         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
10161         here and use a type with proper overflow behavior for types that would
10162         need to be promoted for the arithmetic.
10164 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
10166         PR sanitizer/55435
10167         * c-common.c (handle_no_address_safety_analysis_attribute): New
10168         function.
10169         (c_common_attribute_table): Add no_address_safety_analysis.
10171 2012-11-16  Simon Baldwin  <simonb@google.com>
10173         * c.opt: Add f[no-]canonical-system-headers.
10174         * c-opts.c (c_common_handle_option): Handle
10175         OPT_fcanonical_system_headers.
10177 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
10179         PR c++/54413
10180         * c-opts.c (c_common_handle_option): Set new flags.
10181         * c.opt: Describe new flags.
10183 2012-11-09  Jason Merrill  <jason@redhat.com>
10185         * c.opt (Wabi-tag): New.
10187 2012-11-09  Andi Kleen  <ak@linux.intel.com>
10189         PR 55139
10190         * c-common.c (get_atomic_generic_size): Mask with
10191         MEMMODEL_MASK
10193 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10195         PR c/53063
10196         * c.opt (Wformat): Make it Alias Wformat=1.
10197         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
10198         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
10199         LangEnabledBy.
10200         (Wformat=): RejectNegative. Use LangEnabledBy.
10201         (Wnonnull): Use LangEnabledBy.
10202         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
10203         * c-format.c (set_Wformat): Delete.
10204         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
10205         (maybe_read_dollar_number): Likewise.
10206         (avoid_dollar_number): Likewise.
10207         (finish_dollar_format_checking): Likewise.
10208         (check_format_info): Likewise.
10209         (check_format_info_main): Likewise.
10210         (check_format_types): Likewise.
10211         (format_type_warning): Likewise.
10212         * c-common.c (int): Likewise.
10213         (check_function_sentinel): Likewise.
10214         * c-common.h (warn_format,set_Wformat): Do not declare here.
10216 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10218         PR c/53063
10219         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
10220         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
10221         Use LangEnabledBy.
10222         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
10223         common.opt.
10224         (Wvariadic-macros): Init(1).
10225         * c-opts.c (c_common_handle_option): Do not handle them
10226         explicitly.
10227         (c_common_post_options): Likewise.
10228         (sanitize_cpp_opts): warn_unused_macros is now
10229         cpp_warn_unused_macros.
10230         (push_command_line_include): Likewise.
10231         * c-common.c (warn_unknown_pragmas): Do not define.
10232         * c-common.h (warn_unknown_pragmas): Do not declare.
10234 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10236         PR c/51294
10237         * c-common.c (conversion_warning): Handle conditional expressions.
10239 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
10241         PR c++/54930
10242         * c.opt (Wreturn_local_addr): Define new option.
10244 2012-10-25  Jason Merrill  <jason@redhat.com>
10246         * c.opt (Wvirtual-move-assign): New.
10248         * c.opt (Winherited-variadic-ctor): New.
10250 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
10252         PR c++/54427
10253         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
10255 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
10257         * c-common.h (pch_cpp_save_state): Declare.
10258         * c-target.def (c_preinclude): New hook.
10259         * c-opts.c (done_preinclude): New.
10260         (push_command_line_include): Handle default preincluded header.
10261         (cb_file_change): Call pch_cpp_save_state when calling
10262         push_command_line_include.
10263         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
10264         (pch_cpp_save_state): New.
10265         (pch_init): Call pch_cpp_save_state conditionally, instead of
10266         calling cpp_save_state.
10268 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10270         PR c/53063
10271         PR c/40989
10272         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
10273         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
10274         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
10275         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
10276         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
10277         * c-opts.c (c_common_handle_option): Remove explicit handling from
10278         here.
10279         (c_common_post_options): Likewise.
10281 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
10283         * c-ada-spec.c (LOCATION_COL): Delete.
10284         (compare_location): New function.
10285         (compare_node): Use it.
10286         (compare_comment): Likewise.
10288 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10290         PR c/53063
10291         PR c/40989
10292         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
10293         * c-opts.c (c_common_handle_option): Do not set them here. Add
10294         comment.
10295         (c_common_post_options): Likewise.
10297 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
10299         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
10300         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
10301         Remove POINTER_TYPE handling, add large unsigned handling and use
10302         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
10304 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
10306         PR c/54381
10307         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
10308         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
10309         locs and array of 3 trees instead of just single loc and single
10310         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
10311         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
10312         For *cmp* builtins that take two sources strings report warnings
10313         about first and second source, not about destination and source.
10315 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
10317         PR c++/53055
10318         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
10320 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
10322         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
10323         declaring something coming from another file.
10325 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
10327         PR ada/54845
10328         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
10330 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
10332         PR c++/54194
10333         * c-common.c (warn_about_parentheses): Add location_t parameter;
10334         use EXPR_LOC_OR_LOC.
10335         * c-common.h: Update declaration.
10337 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
10339         PR c++/54427
10340         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
10341         more operations. Make error messages optional.
10342         * c-common.h (enum stv_conv): Moved from c-typeck.c.
10343         (scalar_to_vector): Declare.
10345 2012-10-08  Jason Merrill  <jason@redhat.com>
10347         * c-common.c (c_common_reswords): Add thread_local.
10349 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
10351         PR c++/53528 C++11 attribute support
10352         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
10353         new functions.
10354         * c-common.c (check_cxx_fundamental_alignment_constraints): New
10355         static function.
10356         (handle_aligned_attribute): In choose strictest alignment
10357         among many.  Use new check_cxx_fundamental_alignment_constraints.
10358         (handle_transparent_union_attribute): In c++11 attribute syntax,
10359         don't look through typedefs.
10361 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
10363         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
10364         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
10365         out of dumpfile.h.
10367 2012-09-25  Dehao Chen  <dehao@google.com>
10369         PR middle-end/54645
10370         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
10371         map when read in the pch.
10373 2012-09-18  Arnaud Charlet  <charlet@adacore.com>
10375         * c-ada-spec.c: Style fixes.
10377 2012-09-18  Thomas Quinot  <quinot@adacore.com>
10379         * c.opt (-fada-spec-parent): Define new command line switch.
10380         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
10381         is specified, generate binding spec as a child of the specified unit.
10383 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
10384             Manuel López-Ibáñez  <manu@gcc.gnu.org>
10386         PR c++/53210
10387         * c.opt ([Winit-self]): Enabled by -Wall in C++.
10389 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
10391         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
10392         for pointers, and add missing Convention C pragma.
10393         (print_ada_struct_decl): Add missing aliased keyword.
10394         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
10396 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
10398         * c-common.c (sizeof_pointer_memaccess_warning): New function.
10399         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
10400         * c-opts.c (c_common_handle_option): Enable it for -Wall.
10401         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
10402         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
10404 2012-08-10  Richard Guenther  <rguenther@suse.de>
10406         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
10408 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
10410         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
10411         instead of separate pp_newline and pp_flush.
10412         (print_c_tree): Likewise.
10414 2012-07-26  Richard Henderson  <rth@redhat.com>
10416         * c-common.c (handle_hot_attribute): Allow labels.
10417         (handle_cold_attribute): Likewise.
10419 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
10421         PR c++/28656
10422         * c-common.c (check_function_nonnull): Handle multiple nonnull
10423         attributes properly.
10425 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
10427         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
10428         * c-ada-spec.c: Likewise.
10429         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
10431 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
10433         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
10434         Remove code conditional on it.
10436 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
10438         * c-gimplify.c: Do not include basic-block.h.
10439         * c-common.c: Do not include linfuncs.h.
10441 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
10443         * c-common.h: Include tree.h.
10445 2012-07-02  Jason Merrill  <jason@redhat.com>
10447         PR c++/53524
10448         * c-common.c (get_priority): Call default_conversion.
10450 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
10452         * c-pch.c (c_common_write_pch): Remove unused variables.
10454 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
10456         * cppspec.c: Moved from gcc/ to here.
10458 2012-06-27  Kai Tietz  <ktietz@redhat.com>
10460         PR preprocessor/37215
10461         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
10463 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
10465         * c-common.h (c_common_print_pch_checksum): Remove.
10466         * c-pch.c: Do not include output.h.
10467         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
10468         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
10469         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
10470         (struct c_pch_header): Remove.
10471         (get_ident): Update gpch version.
10472         (pch_init): Do not print executable_checksum to asm_out_file.
10473         Do not fail if there is no asm_out_file to read back from.  Set
10474         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
10475         (c_common_write_pch): Verify that nothing was written to asm_out_file
10476         since pch_init was called.  Do not write a c_pch_header, and do not
10477         copy from asm_out_file to the PCH.
10478         (c_common_read_pch): Do not read a c_pch_header, and do not restore
10479         the content of asm_out_file from the PCH.
10480         (c_common_print_pch_checksum): Remove.
10481         * c-opts.c (c_common_init): Print out executable_checksum directly.
10483 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
10485         * c-target.def (objc_declare_unresolved_class_reference,
10486         objc_declare_class_definition): Add new hooks.
10488 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
10490         * c-lex.c: Do not include output.h.
10491         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
10492         Remove uses of ASM_OUTPUT_IDENT.
10494 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
10496         PR c++/51033
10497         * c-common.h (c_build_vec_perm_expr): Move decl here.
10498         * c-common.c (c_build_vec_perm_expr): Move definition
10499         here.
10501 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
10503         * c.opt (fconserve-space): Turn into a no-op.
10505 2012-06-04  Sterling Augustine  <saugustine@google.com>
10507         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
10508         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
10509         both the start and end of the function.
10511 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
10513         * c-common.c: Do not include output.h.
10514         * c-pragma.c: Likewise.
10516 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
10518         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
10519         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
10520         (lang_decl_name): Handle namespace decls.
10522 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
10524         * c-ada-spec.c: Do not include output.h.
10525         * c-semantics.c: Likewise.
10527 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
10529         * c-common.c: Fix typo.
10531 2012-05-29  Michael Matz  <matz@suse.de>
10533         * c-common.h (c_expand_decl): Remove prototype.
10535 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10537         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
10538         * c-opts.c (c_common_handle_option): Remove code handling
10539         warn_missing_braces.
10541 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
10543         PR c++/25137
10544         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
10545         -Wmissing_braces.
10547 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
10549         PR c++/53322
10550         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
10552 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10554         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
10555         * c-opts.c (c_common_handle_option): Do not handle explicitly
10556         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
10558 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
10560         PR preprocessor/7263
10561         * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
10562         to cpp_classify_number.  For diagnostics, use the precise location
10563         instead of the global input_location.
10565 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
10567         PR c++/11856
10568         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
10570 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
10572         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
10574 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10576         PR 53063
10577         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
10578         Wreorder): Use LangEnabledBy.
10579         * c-opts.c (c_common_handle_option): Do not enable them
10580         explicitly. Call lang-specific generated functions.
10581         (c_common_post_options): Do not set them here.
10583 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10585         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
10586         Wmissing-field-initializers,Wmissing-parameter-type,
10587         Wold-style-declaration,Woverride-init): Use EnabledBy.
10588         * c-opts.c (c_common_post_options): Do not set here explicitly.
10590 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10592         PR 53063
10593         * c-opts.c (c_common_handle_option): Use handle_generated_option
10594         to enable sub-options.
10596 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
10598         PR c++/53158
10599         * c-common.c (warnings_for_convert_and_check): Use warning_at.
10601 2012-05-10  Richard Guenther  <rguenther@suse.de>
10603         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
10604         adjust commentary about TYPE_IS_SIZETYPE types.
10606 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10608         PR c++/53261
10609         * c-common.c (warn_logical_operator): Check that argument of
10610         integer_zerop is not NULL.
10612 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10614         PR c/43772
10615         * c-common.c (warn_logical_operator): Do not warn if either side
10616         is already true or false.
10618 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10620         PR c/51712
10621         * c-common.c (expr_original_type): New.
10622         (shorten_compare): Do not warn for enumeration types.
10624 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10626         * c.opt (fpermissive): Add Var(flag_permissive).
10628 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
10630         PR c++/51033
10631         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
10632         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
10634 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
10636         Add -Wvarargs option
10637         * c.opt (Wvarargs): Define new option.
10639 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10641         * c-common.c (check_function_arguments): Replace
10642         Wmissing-format-attribute with Wsuggest-attribute=format.
10644 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10646         * c.opt (Wsuggest-attribute=format): New. Alias of
10647         Wmissing-format-attribute.
10648         * c-format.c (decode_format_type): Replace
10649         Wmissing-format-attribute with Wsuggest-attribute=format.
10650         (check_function_format): Likewise.
10652 2012-04-27  Ollie Wild  <aaw@google.com>
10654         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
10655         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
10656         * c.opt: Add Wliteral-suffix.
10658 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10660         PR c/44774
10661         * c.opt (Wpedantic): New.
10662         (pedantic): Alias Wpedantic.
10663         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
10664         (c_common_post_options): Likewise.
10665         (sanitize_cpp_opts): Likewise.
10666         * c-lex.c (interpret_float): Likewise.
10667         * c-format.c (check_format_types): Likewise.
10668         * c-common.c (pointer_int_sum): Likewise.
10669         (c_sizeof_or_alignof_type): Likewise.
10670         (c_add_case_label): Likewise.
10671         (c_do_switch_warnings): Likewise.
10672         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
10674 2012-04-15  Jason Merrill  <jason@redhat.com>
10676         PR c++/52818
10677         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
10678         (C_STD_NAME): Distinguish between C++98 and C++11.
10680 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
10682         PR target/52624
10683         * c-common.h (uint16_type_node): Rename into...
10684         (c_uint16_type_node): ...this.
10685         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
10686         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
10688 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10690         * c-common.c (warn_if_unused_value): Move definition to here.
10691         * c-common.h (warn_if_unused_value): Move declaration to here.
10693 2012-03-23  William Bader  <williambader@hotmail.com>
10695         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
10697 2012-03-20  Jason Merrill  <jason@redhat.com>
10699         * c-common.h (enum cxx_dialect): Add cxx1y.
10700         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
10701         test.
10702         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
10703         * c-opts.c (c_common_post_options): Likewise.
10704         (set_std_cxx1y): New.
10705         (c_common_handle_option): Call it.
10706         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
10708 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
10710         PR c++/14710
10711         * c.opt ([Wuseless-cast]): Add.
10713 2012-03-16  Richard Guenther  <rguenther@suse.de>
10715         * c-pretty-print.c (pp_c_initializer_list): Adjust.
10717 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10719         PR c++/44783
10720         * c.opt (ftemplate-backtrace-limit) Add.
10722 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10724         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
10725         handling.
10726         * c-pragma.c (handle_pragma_extern_prefix): Remove.
10727         (init_pragma): Don't register extern_prefix.
10729 2012-03-12  Richard Guenther  <rguenther@suse.de>
10731         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
10732         (builtin_type_for_size): Likewise.
10734 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
10736         PR c++/52215
10737         * c-common.c (sync_resolve_params): Don't decide whether to convert
10738         or not based on TYPE_SIZE comparison, convert whenever arg_type
10739         is unsigned INTEGER_TYPE.
10741 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
10743         PR c/52118
10744         * c.opt ([Wunused-local-typedefs]): Fix description.
10746 2012-01-24  Mike Stump  <mikestump@comcast.net>
10748         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
10749         exactly.
10751 2012-01-18  Richard Guenther  <rguenther@suse.de>
10753         * c-opts.c (c_common_post_options): Reset LTO flags if
10754         we are about to generate a PCH.
10756 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
10758         PR c++/51777
10759         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
10760         use pp_unsigned_wide_integer.
10762 2012-01-10  Richard Guenther  <rguenther@suse.de>
10764         PR middle-end/51806
10765         * c-opts.c (c_common_handle_option): Move -Werror handling
10766         to language independent code.
10768 2012-01-05  Richard Guenther  <rguenther@suse.de>
10770         PR middle-end/51764
10771         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
10772         from common.opt.
10774 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
10776         PR c++/51316
10777         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
10778         of array types with an unknown bound.
10780 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
10782         * c-common.c (flag_isoc99): Update comment to refer to C11.
10783         (flag_isoc1x): Change to flag_isoc11.
10784         * c-common.h (flag_isoc99): Update comment to refer to C11.
10785         (flag_isoc1x): Change to flag_isoc11.
10786         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
10787         C11.
10788         * c-opts.c (set_std_c1x): Change to set_std_c11.
10789         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
10790         Call set_std_c11.
10791         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
10792         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
10793         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
10794         standard.
10795         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
10796         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
10797         (std=gnu1x): Make alias of std=gnu11.
10799 2011-12-19  Jason Merrill  <jason@redhat.com>
10801         PR c++/51228
10802         * c-common.c (handle_transparent_union_attribute): Check the first
10803         field if the type is complete.
10805 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
10807         PR libstdc++/51365
10808         * c-common.c (RID_IS_FINAL): Add.
10809         * c-common.h (RID_IS_FINAL): Add.
10811 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
10813         * c.opt (fgnu-runtime): Provide full description.
10814         (fnext-runtime): Likewise.
10815         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
10817 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
10819         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
10820         predefines in one place.  Add LOCK_FREE predefines.
10821         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
10822         new func.
10824 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
10826         PR c/51256
10827         * c-common.c (get_atomic_generic_size): Check for various error
10828         conditions
10829         (resolve_overloaded_atomic_exchange,
10830         resolve_overloaded_atomic_compare_exchange,
10831         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
10832         error_mark_node for error conditions.
10834 2011-11-08  Richard Guenther  <rguenther@suse.de>
10836         PR middle-end/51010
10837         * c-pretty-print.c (pp_c_expression): Handle SSA_NAMEs.
10839 2011-11-07  Richard Henderson  <rth@redhat.com>
10840             Aldy Hernandez  <aldyh@redhat.com>
10841             Torvald Riegel  <triegel@redhat.com>
10843         Merged from transactional-memory.
10845         * c-common.c (handle_tm_wrap_attribute,
10846         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
10847         (struct c_common_reswords): Added __transaction* keywords.
10848         (struct c_common_attribute_table): Added transaction* and tm_regparm
10849         attributes.
10850         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
10851         masks.
10852         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
10853         find_tm_attribute): Declare.
10855 2011-11-07  Jason Merrill  <jason@redhat.com>
10857         PR c++/35688
10858         * c-common.c, c-common.h: Revert yesterday's changes.
10860 2011-11-06  Jason Merrill  <jason@redhat.com>
10862         PR c++/35688
10863         * c-common.c (decl_has_visibility_attr): Split out from...
10864         (c_determine_visibility): ...here.
10865         * c-common.h: Declare it.
10867 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
10869         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
10870         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
10871         type.
10872         (check_user_alignment): New.  Split out of
10873         handle_aligned_attribute.  Disallow integer constants with
10874         noninteger types.  Conditionally allow zero.
10875         (handle_aligned_attribute): Use check_user_alignment.
10876         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
10878 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
10879             Richard Henderson  <rth@redhat.com>
10881         Merged from cxx-mem-model.
10883         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
10884         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
10885         parameters that are the same type size.
10886         (get_atomic_generic_size): New.  Find size of generic
10887         atomic function parameters and do typechecking.
10888         (add_atomic_size_parameter): New.  Insert size into parameter list.
10889         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
10890         either __atomic_exchange_n or external library call.
10891         (resolve_overloaded_atomic_compare_exchange): Restructure
10892         __atomic_compare_exchange to either _n variant or external library call.
10893         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
10894         __atomic_load_n or an external library call.
10895         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
10896         __atomic_store_n or an external library call.
10897         (resolve_overloaded_builtin): Handle new __atomic builtins.
10899 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
10901         PR c++/50608
10902         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
10903         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
10904         <INDIRECT_REF>: Return the argument.
10905         <ARRAY_REF>: Remove special code for negative offset.
10906         Call fold_build_pointer_plus instead of size_binop.
10907         (fold_offsetof): Remove STOP_REF argument and adjust.
10908         * c-common.h (fold_offsetof_1): Declare.
10909         (fold_offsetof): Remove STOP_REF argument.
10911 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
10913         PR c++/50810
10914         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
10915         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
10916         Wnarrowing for C++0x and C++98.
10917         * c.opt ([Wnarrowing]): Update.
10919 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
10921         PR c++/44277
10922         * c.opt: Add Wzero-as-null-pointer-constant.
10924 2011-10-31  Jason Merrill  <jason@redhat.com>
10926         * c.opt (-fdeduce-init-list): Off by default.
10928         PR c++/50920
10929         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
10930         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
10931         and -Wc++11-compat.
10932         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
10934 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
10936         PR c++/30066
10937         * c.opt (fvisibility-inlines-hidden): Description change.
10939 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
10941         Implement C++11 user-defined literals.
10942         * c-common.c (build_userdef_literal): New.
10943         * c-common.def: New tree code.
10944         * c-common.h (tree_userdef_literal): New tree struct and accessors.
10945         * c-lex.c (interpret_float): Add suffix parm.
10946         (c_lex_with_flags): Build literal tokens.
10948 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
10950         PR c++/50841
10951         Revert:
10952         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
10954         PR c++/50810
10955         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
10956         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
10957         Wnarrowing for C++0x and C++98.
10958         * c.opt ([Wnarrowing]): Update.
10960 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
10962         PR c++/50810
10963         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
10964         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
10965         Wnarrowing for C++0x and C++98.
10966         * c.opt ([Wnarrowing]): Update.
10968 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
10970         PR c++/45385
10971         * c-common.c (conversion_warning): Remove code looking for
10972         artificial operands.
10974 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
10976         PR bootstrap/50760
10977         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
10978         !NO_IMPLICIT_EXTERN_C.
10980 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
10982         * c-common.c (c_common_reswords): Add __bases,
10983         __direct_bases.
10984         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
10986 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
10988         PR c++/50757
10989         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
10991 2011-10-15  Tom Tromey  <tromey@redhat.com>
10992             Dodji Seketeli  <dodji@redhat.com>
10994         * c.opt (fdebug-cpp): New option.
10995         * c-opts.c (c_common_handle_option): Handle the option.
10996         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
10997         output stream in parameter. Factorized from ...
10998         (maybe_print_line): ... this. Dump location debug information when
10999         -fdebug-cpp is in effect.
11000         (print_line_1): New static function. Takes an output stream in
11001         parameter. Factorized from ...
11002         (print_line): ... here. Dump location information when -fdebug-cpp
11003         is in effect.
11004         (scan_translation_unit): Dump location information when
11005         -fdebug-cpp is in effect.
11007 2011-10-15  Tom Tromey  <tromey@redhat.com>
11008             Dodji Seketeli  <dodji@redhat.com>
11010         * c.opt (ftrack-macro-expansion): New option. Handle it with and
11011         without argument.
11012         * c-opts.c (c_common_handle_option)<case
11013         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
11014         cases. Handle -ftrack-macro-expansion with and without argument.
11016 2011-10-15  Tom Tromey  <tromey@redhat.com>
11017             Dodji Seketeli  <dodji@redhat.com>
11019         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
11020         (print_line, cb_define, do_line_change): Adjust to avoid touching
11021         the internals of struct line_map.  Use the public API instead.
11022         * c-pch.c (c_common_read_pch): Likewise.
11023         * c-lex.c (fe_file_change): Likewise.
11025 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
11027         PR c++/17212
11028         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
11030 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
11032         PR c++/33067
11033         * c-pretty-print.c (pp_c_floating_constant): Output
11034         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
11036 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
11038         * c-common.c (def_builtin_1): Delete old interface with two
11039         parallel arrays to hold standard builtin declarations, and replace
11040         it with a function based interface that can support creating
11041         builtins on the fly in the future.  Change all uses, and poison
11042         the old names.  Make sure 0 is not a legitimate builtin index.
11043         * c-omp.c (c_finish_omp_barrier): Ditto.
11044         (c_finish_omp_taskwait): Ditto.
11045         (c_finish_omp_flush): Ditto.
11047 2011-10-11  Tristan Gingold  <gingold@adacore.com>
11049         * c.opt: (fallow-parameterless-variadic-functions): New.
11051 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
11053         PR c++/33255 - Support -Wunused-local-typedefs warning
11054         * c-common.h (struct c_language_function::local_typedefs): New
11055         field.
11056         (record_locally_defined_typedef, maybe_record_typedef_use)
11057         (maybe_warn_unused_local_typedefs): Declare new functions.
11058         * c-common.c (record_locally_defined_typedef)
11059         (maybe_record_typedef_use)
11060         (maybe_warn_unused_local_typedefs): Define new functions.
11061         * c.opt: Declare new -Wunused-local-typedefs flag.
11063 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
11065         PR middle-end/50266
11066         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
11067         computations.
11069 2011-09-05  Richard Guenther  <rguenther@suse.de>
11071         * c-common.c (complete_array_type): Use ssize_int (-1) instead
11072         of integer_minus_one_node for empty array upper bounds.
11074 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
11076         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
11077         it's the first time it's being called on this main TU.
11079 2011-08-24  Richard Guenther  <rguenther@suse.de>
11081         PR c/49396
11082         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
11084 2011-08-22  Gabriel Charette  <gchare@google.com>
11086         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
11087         defined in cpp_init_builtins and c_cpp_builtins.
11089 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
11091         * c-common.c (c_common_reswords): Add __builtin_complex.
11092         * c-common.h (RID_BUILTIN_COMPLEX): New.
11094 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
11096         * c-common.c (c_common_reswords): Add _Noreturn.
11097         (keyword_is_function_specifier): Handle RID_NORETURN.
11098         * c-common.h (RID_NORETURN): New.
11100 2011-08-10  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
11102         * c-common.c (unsafe_conversion_p): New function. Check if it is
11103         unsafe to convert an expression to the type.
11104         (conversion_warning): Adjust, use unsafe_conversion_p.
11105         * c-common.h (unsafe_conversion_p): New function declaration.
11107 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
11109         * c-common.h (c_finish_omp_atomic): Adjust prototype.
11110         (c_finish_omp_taskyield): New prototype.
11111         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
11112         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
11113         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
11114         or RHS1 have side-effects, evaluate those too in the right spot,
11115         if it is a decl and LHS is also a decl, error out if they
11116         aren't the same.
11117         (c_finish_omp_taskyield): New function.
11118         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
11119         * c-pragma.c (omp_pragmas): Add taskyield.
11120         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
11121         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
11122         PRAGMA_OMP_CLAUSE_MERGEABLE.
11124 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
11126         * c-common.h (set_underlying_type): Remove parm name from
11127         declaration.
11129 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
11131         * c-pretty-print.h: Search c-common.h in c-family.
11133 2011-07-22  Jason Merrill  <jason@redhat.com>
11135         PR c++/49793
11136         * c.opt (Wnarrowing): New.
11138         PR c++/30112
11139         * c-common.h: Declare c_linkage_bindings.
11140         * c-pragma.c (handle_pragma_redefine_extname): Use it.
11142         PR c++/49813
11143         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
11144         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
11145         as flag_isoc99 for 'restrict'.
11146         (pp_c_specifier_qualifier_list): Likewise for _Complex.
11148 2011-07-21  Ian Lance Taylor  <iant@google.com>
11150         PR middle-end/49705
11151         * c-common.c (c_disable_warnings): New static function.
11152         (c_enable_warnings): New static function.
11153         (c_fully_fold_internal): Change local unused_p to bool.  Call
11154         c_disable_warnings and c_enable_warnings rather than change
11155         c_inhibit_evaluation_warnings.
11157 2011-07-20  Jason Merrill  <jason@redhat.com>
11159         PR c++/6709 (DR 743)
11160         PR c++/42603 (DR 950)
11161         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
11162         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
11163         (CPP_DECLTYPE): New.
11164         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
11166 2011-07-19  Richard Guenther  <rguenther@suse.de>
11168         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
11169         * c-omp.c (c_finish_omp_for): Likewise.
11171 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
11173         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
11174         body on the next line.
11176 2011-07-08  Jason Merrill  <jason@redhat.com>
11178         PR c++/45437
11179         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
11181         PR c++/49673
11182         * c-common.c (c_apply_type_quals_to_decl): Don't check
11183         TYPE_NEEDS_CONSTRUCTING.
11185 2011-07-06  Richard Guenther  <rguenther@suse.de>
11187         * c-common.c (c_common_nodes_and_builtins):
11188         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
11190 2011-07-05  Richard Guenther  <rguenther@suse.de>
11192         * c-common.c (c_common_nodes_and_builtins): Build all common
11193         tree nodes first.
11195 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
11197         * c-common.h (c_tree_chain_next): New static inline function.
11199         * c-common.c (check_builtin_function_arguments): Handle
11200         BUILT_IN_ASSUME_ALIGNED.
11202 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
11204         * c-common.c: Add sync_ or SYNC__ to builtin names.
11205         * c-omp.c: Add sync_ or SYNC__ to builtin names.
11207 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
11209         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
11210         handler.
11211         (gen_pragma_handler): New union.
11212         (internal_pragma_handler): New type.
11213         (c_register_pragma_with_data)
11214         (c_register_pragma_with_expansion_and_data): New functions.
11216         * c-pragma.c (registered_pragmas, c_register_pragma_1)
11217         (c_register_pragma, c_register_pragma_with_expansion)
11218         (c_invoke_pragma_handler): Changed to work with
11219         internal_pragma_handler.
11220         (c_register_pragma_with_data)
11221         (c_register_pragma_with_expansion_and_data): New functions.
11223 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
11225         * c-common.c: Include common/common-target.h.
11226         (handle_section_attribute): Use
11227         targetm_common.have_named_sections.
11228         * c-cppbuiltin.c: Include common/common-target.h.
11229         (c_cpp_builtins): Use targetm_common.except_unwind_info.
11231 2011-06-10  Richard Guenther  <rguenther@suse.de>
11233         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
11234         to print a IDENTIFIER_NODE.
11236 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11237             Joseph Myers  <joseph@codesourcery.com>
11239         * c.opt (fbuilding-libgcc): New option.
11240         * c-cppbuiltin.c (c_cpp_builtins): Define
11241         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
11243 2011-06-07  Jason Merrill  <jason@redhat.com>
11245         * c-common.c (max_tinst_depth): Lower default to 900.
11247         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
11249 2011-06-07  Richard Guenther  <rguenther@suse.de>
11251         * c-common.c (c_common_nodes_and_builtins): Do not set
11252         size_type_node or call set_sizetype.
11254 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
11256         PR debug/49130
11257         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
11258         type when using pointer comparison to compare types.
11260 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
11262         * c.opt: Add -Wdelete-non-virtual-dtor.
11263         * c-opts.c (c_common_handle_option): Include it in -Wall.
11265 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
11267         PR bootstrap/49190
11269         Revert:
11270         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
11272         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
11273         not tree_common.
11275 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
11277         PR c++/49165
11278         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
11279         C++ don't call c_common_truthvalue_conversion on void type arms.
11281 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
11283         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
11284         (stmt_list_stack): Define.
11285         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
11286         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
11288 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
11290         * c-common.c (warning_candidate_p): Check for BLOCKs.
11292 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
11294         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
11295         not tree_common.
11297 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
11299         * c-common.c (def_fn_type): Remove extra va_end.
11301 2011-05-23  Jason Merrill  <jason@redhat.com>
11303         PR c++/48106
11304         * c-common.c (c_common_get_narrower): New.
11305         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
11307 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
11309         * c-common.h (check_function_arguments): Tweak prototype of
11310         check_function_arguments.
11311         * c-common.c (check_function_arguments): Likewise.  Adjust
11312         calls to check_function_nonnull, check_function_format, and
11313         check_function_sentinel.
11314         (check_function_sentinel): Take a FUNCTION_TYPE rather than
11315         separate attributes and typelist arguments.  Use
11316         FOREACH_FUNCTION_ARGS to iterate over argument types.
11318 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
11320         * c-common.c (c_common_reswords): Reorder.
11321         * c-common.h (rid): Likewise.
11323 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
11325         * c-common.c (def_fn_type): Don't call build_function_type, call
11326         build_function_type_array or build_varargs_function_type_array
11327         instead.
11328         (c_common_nodes_and_builtins): Likewise.
11330 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
11332         * c-common.c (c_add_case_label): Omit the loc argument to
11333         build_case_label.
11334         * c-common.h (build_case_label): Remove.
11335         * c-semantics.c (build_case_label): Remove.
11337 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
11339         * c-objc.h (objc_start_method_definition): Update prototype.
11340         * stub-objc.c (objc_start_method_definition): Add extra parameter.
11342 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
11344         * c-common.c (check_main_parameter_types): Reindent.  Don't use
11345         TYPE_ARG_TYPES directly.
11346         (handle_nonnull_attribute): Likewise.
11347         (sync_resolve_params): Likewise.
11348         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
11349         to check_format_string.
11350         (handle_format_attribute): Likewise.
11351         (check_format_string): Take a function type to examine instead of
11352         a type list.  Use a function_arg_iterator to step through argument
11353         types.
11355 2011-05-04  Richard Guenther  <rguenther@suse.de>
11357         * c-common.c (fix_string_type): Use size_int for index type bounds.
11358         (start_fname_decls): Do not pass NULL to build_int_cst.
11359         (c_init_attributes): Likewise.
11360         * c-lex.c (c_lex_with_flags): Likewise.
11362 2011-04-27  Jason Merrill  <jason@redhat.com>
11364         * c-common.c (make_tree_vector_from_list): New.
11365         * c-common.h: Declare it.
11367 2011-04-26  Richard Guenther  <rguenther@suse.de>
11369         PR preprocessor/48248
11370         * c-ppoutput.c (maybe_print_line): Always optimize newlines
11371         for output size with -P.
11373 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
11375         * c-common.c (struct c_common_resword): Add __underlying_type.
11376         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
11378 2011-04-20  Jim Meyering  <meyering@redhat.com>
11380         * c-format.c (init_dollar_format_checking): Remove useless
11381         if-before-free.
11383 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
11385         * c-objc.h (objc_get_interface_ivars): Removed.
11386         (objc_detect_field_duplicates): New.
11387         * stub-objc.c: Likewise.
11389 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
11391         * stub-objc.c (objc_declare_protocols): Renamed to
11392         objc_declare_protocol.
11393         * c-objc.h: Likewise.
11395 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
11397         * stub-objc.c (objc_declare_class): Updated argument name.
11399 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
11401         * c-common.h (c_common_init_ts): Declare.
11402         * c-common.c (c_common_init_ts): Define.
11404 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
11406         * c-objc.h (objc_build_message_expr): Updated prototype.
11407         * stub-objc.c (objc_build_message_expr): Likewise.
11409 2011-04-12  Martin Jambor  <mjambor@suse.cz>
11411         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
11412         of cgraph_node.
11414 2011-04-11  Richard Guenther  <rguenther@suse.de>
11416         * c-common.c (complete_array_type): Build a range type of
11417         proper type.
11419 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
11421         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
11422         (handle_type_generic_attribute): Likewise.
11424 2011-04-07  Jason Merrill  <jason@redhat.com>
11426         PR c++/48450
11427         * c-common.c (c_common_truthvalue_conversion): Don't ignore
11428         conversion from C++0x scoped enum.
11430 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
11432         * c-target-def.h: New file.
11433         * c-target.def: New file.
11434         * c-target.h: New file.
11435         * c-common.c (targetcm): Don't define here.
11436         * c-common.h (default_handle_c_option): Declare.
11437         * c-format.c: Include c-target.h instead of target.h.
11438         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
11439         include tm.h.
11440         (default_handle_c_option): Move from targhooks.c.
11442 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
11444         PR preprocessor/48248
11445         * c-ppoutput.c (print): Add src_file field.
11446         (init_pp_output): Initialize it.
11447         (maybe_print_line): Don't optimize by adding up to 8 newlines
11448         if map->to_file and print.src_file are different file.
11449         (print_line): Update print.src_file.
11451 2011-03-25  Kai Tietz  <ktietz@redhat.com>
11453         * c-ada-spec.c (compare_comment): Use filename_cmp
11454         instead of strcmp for filename.
11456 2011-03-25  Jeff Law  <law@redhat.com>
11458         * c-common.c (def_fn_type): Add missing va_end.
11460 2011-03-25  Jason Merrill  <jason@redhat.com>
11462         * c.opt: Add -std=c++03.
11464 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
11466         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
11468 2011-03-17  Kai Tietz  <ktietz@redhat.com>
11470         PR target/12171
11471         * c-pretty-print.c (pp_c_specifier_qualifier_list):
11472         Display allowed attributes for function pointer types.
11473         (pp_c_attributes_display): New function to display
11474         attributes having affects_type_identity flag set to true.
11475         * c-pretty-print.h (pp_c_attributes_display): New prototype.
11477         * c-common.c (c_common_attribute_table):
11478         Add new element.
11479         (c_common_format_attribute_table): Likewise.
11481 2011-03-18  Jason Merrill  <jason@redhat.com>
11483         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
11484         * c-common.h: Don't declare it here.
11485         * c-common.c: Or define it here.
11486         * c-opts.c (c_common_handle_option): Or set it here.
11488         PR c++/35315
11489         * c-common.c (handle_transparent_union_attribute): Don't
11490         make a duplicate type in C++.
11492 2011-03-15  Jason Merrill  <jason@redhat.com>
11494         * c-common.c (max_constexpr_depth): New.
11495         * c-common.h: Declare it.
11496         * c-opts.c (c_common_handle_option): Set it.
11497         * c.opt (fconstexpr-depth): New option.
11499 2011-03-11  Jason Merrill  <jason@redhat.com>
11501         * c-common.c (attribute_takes_identifier_p): Add missing const.
11503         PR c++/46803
11504         * c-common.c (attribute_takes_identifier_p): Assume that an
11505         unknown attribute takes an identifier.
11507 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
11509         PR c/47786
11510         * c-common.c (c_type_hash): Call list_length instead of iterating
11511         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
11513 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
11515         PR c/47809
11516         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
11518 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
11520         * c.opt (fobjc-abi-version=) New.
11521         (fobjc-nilcheck): New.
11523 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
11525         PR c++/46890
11526         * c-common.h (keyword_is_decl_specifier): Declare.
11527         * c-common.c (keyword_is_decl_specifier): Define.
11528         (keyword_is_function_specifier): New function.
11530 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
11532         PR c/47473
11533         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
11534         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
11535         REAL_TYPE.
11537 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
11539         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
11541 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
11543         PR pch/47430
11544         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
11545         after init_c_lex if pch_file is set.
11547 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
11549         PR c++/43601
11550         * c.opt (-fkeep-inline-dllexport): New switch.
11552 2011-01-12  Richard Guenther  <rguenther@suse.de>
11554         PR middle-end/32511
11555         * c-common.c (handle_weak_attribute): Warn instead of error
11556         on declaring an inline function weak.
11558 2011-01-05  Tom Tromey  <tromey@redhat.com>
11560         * c-common.h (lvalue_error): Update.
11561         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
11562         not error.
11564 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
11566         PR objc/47075
11567         * c-objc.h (objc_finish_message_expr): Added argument to
11568         prototype.
11570 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
11572         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
11573         Use prototype_p.
11575 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
11577         * c-objc.h (objc_maybe_warn_exceptions): New.
11578         * stub-objc.c (objc_maybe_warn_exceptions): New.
11580 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
11582         * c-common.h (readonly_error): Declare.
11583         * c-common.c (readonly_error): Define.
11585 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
11587         * c-common.h (invalid_indirection_error): Declare.
11588         * c-common.c (invalid_indirection_error): Define.
11590 2010-12-03  Richard Guenther  <rguenther@suse.de>
11592         PR c/46745
11593         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
11594         (pp_c_unary_expression): Likewise.
11595         (pp_c_expression): Likewise.
11597 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
11599         * c-common.h (objc_finish_function): New.
11600         (objc_non_volatilized_type): Removed.
11601         (objc_type_quals_match): Removed.
11602         * stub-objc.c (objc_finish_function): New.
11603         (objc_non_volatilized_type): Removed.
11604         (objc_type_quals_match): Removed.
11606 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
11608         * c-common.h (parse_optimize_options): Declare.
11609         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
11610         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
11612 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
11614         * c-opts.c (check_deps_environment_vars): Use getenv instead of
11615         GET_ENVIRONMENT.
11616         * c-pch.c (O_BINARY): Don't define here.
11617         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
11619 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
11621         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
11622         targetm.except_unwind_info.
11624 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
11626         * c-opts.c (c_common_handle_option): Pass location to
11627         set_struct_debug_option.
11629 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
11631         * c-common.c (visibility_options): Move from ../opts.c.
11632         * c-common.h (struct visibility_flags, visibility_options):
11633         Declare here.
11634         * c-opts.c (finish_options): Rename to c_finish_options.
11635         (c_common_init): Update call to finish_options.
11637 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
11639         PR objc/34033
11640         * c-lex.c (lex_string): Check that each string in an Objective-C
11641         string concat sequence starts with either one or zero '@', and
11642         that there are no spurious '@' signs at the end.
11644 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
11646         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
11647         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
11648         HANDLE_PRAGMA_VISIBILITY.
11649         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
11650         HANDLE_PRAGMA_VISIBILITY): Don't define.
11651         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
11653 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
11655         PR c++/16189
11656         PR c++/36888
11657         PR c++/45331
11658         * c-common.h (keyword_begins_type_specifier): Declare.
11659         (keyword_is_storage_class_specifier): Declare.
11660         (keyword_is_type_qualifier): Declare.
11661         * c-common.c (keyword_begins_type_specifier): New function.
11662         (keyword_is_storage_class_specifier): New function.
11663         (keyword_is_type_qualifier): Declare.
11665 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
11667         PR c/46547
11668         * c-common.c (in_late_binary_op): Define.
11669         (c_common_truthvalue_conversion): Check in_late_binary_op before
11670         calling c_save_expr.
11671         * c-common.h (in_late_binary_op): Declare.
11673 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
11675         * c-opts.c (c_common_handle_option): Update calls to
11676         set_struct_debug_option.
11678 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
11680         * c-common.h (objc_declare_protocols): Added additional argument.
11681         * stub-objc.c (objc_declare_protocol): Same change.
11683 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
11685         PR c/33193
11686         * c-common.h (build_real_imag_expr): Declare.
11687         * c-semantics.c (build_real_imag_expr): Define.
11689 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
11691         * c-opts.c (c_common_parse_file): Take no arguments.
11692         * c-common.h (c_common_parse_file): Update prototype.
11694 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
11696         PR c++/46401
11697         * c-common.c (warning_candidate_p): Don't track non-const calls
11698         or STRING_CSTs.
11700 2010-11-15  Ian Lance Taylor  <iant@google.com>
11702         * c-lex.c (init_c_lex): Set macro debug callbacks if
11703         flag_dump_go_spec is set.
11705 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
11707         * c-common.h (objc_build_incr_expr_for_property_ref): New.
11708         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
11710 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
11712         PR preprocessor/45038
11713         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
11714         dialects.
11716 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
11718         * c-common.h (c_family_lang_mask): Declare.
11719         * c-opts.c (c_family_lang_mask): Make extern.
11720         * c-pragma.c (handle_pragma_diagnostic): Use
11721         control_warning_option.
11723 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
11725         * c-common.c (parse_optimize_options): Update call to
11726         decode_options.
11727         * c-common.h (c_common_handle_option): Update prototype.
11728         * c-opts.c (c_common_handle_option): Take location_t parameter and
11729         pass it to other functions.
11731 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
11733         * c-opts.c (warning_as_error_callback): Remove.
11734         (c_common_initialize_diagnostics): Don't call
11735         register_warning_as_error_callback.
11736         (c_common_handle_option): Handle -Werror=normalized= here.
11738 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
11740         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
11741         in diagnostic.
11742         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
11743         letter.
11744         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
11745         Remove trailing '.' from diagnostics.
11746         * c.opt (Wwrite-strings_: Avoid '`' in help text.
11748 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
11750         * c-common.c (parse_optimize_options): Pass global_dc to
11751         decode_options.
11752         * c-opts.c (c_common_handle_option): Pass &global_options to
11753         set_Wstrict_aliasing.
11754         * c.opt (v): Don't mark Common or document here.
11756 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
11758         PR target/44981
11759         * c-format.c (format_type): New type gcc_objc_string_format_type.
11760         (valid_stringptr_type_p): New.
11761         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
11762         (check_format_string): Pass expected type, use
11763         valid_stringptr_type_p (), check that the format string types are
11764         consistent with the format specification.
11765         (decode_format_attr): Warn if NSString is used outside objective-c.
11766         (format_types_orig): Add NSString.
11767         (format_name): New.
11768         (format_flags): New.
11769         (check_format_arg): Handle format strings requiring an external parser.
11770         first_target_format_type: New variable.
11771         (handle_format_attribute): Set up first_target_format_type, pass the
11772         expected format arg string type to check_format_string().
11773         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
11774         * stub-objc.c (objc_string_ref_type_p): New.
11775         (objc_check_format_arg): New.
11777 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
11779         Fixed using the Objective-C 2.0 dot-syntax with class names.
11780         * c-common.h (objc_build_class_component_ref): New.
11781         * stub-objc.c (objc_build_class_component_ref): New.
11783 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
11785         * c.opt (Wproperty-assign-default): New option.
11787 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
11789         Implemented -fobjc-std=objc1 flag.
11790         * c.opt (fobjc-std=objc1): New option.
11792 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
11794         Implemented format and noreturn attributes for Objective-C methods.
11795         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
11796         attribute for Objective-C methods.
11798 2010-10-31  Jason Merrill  <jason@redhat.com>
11800         * c-common.c (conversion_warning, warn_for_collisions_1): Use
11801         EXPR_LOC_OR_HERE.
11803 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
11805         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
11806         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
11807         (objc_add_property_declaration): Removed arguments for copies and
11808         ivar.
11809         (objc_build_getter_call): Renamed to
11810         objc_maybe_build_component_ref.
11811         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
11812         (objc_is_property_ref): New.
11813         * c-common.c (c_common_reswords): Removed copies and ivar.
11814         * stub-objc.c (objc_add_property_declaration): Removed arguments
11815         for copies and ivar.
11816         (objc_build_getter_call): Renamed to
11817         objc_maybe_build_component_ref.
11818         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
11819         (objc_is_property_ref): New.
11821 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
11822             Matthew Gingell  <gingell@adacore.com>
11824         * c-ada-spec.c (separate_class_package): New function.
11825         (pp_ada_tree_identifier): Prefix references to C++ classes with the
11826         name of their enclosing package.
11827         (print_ada_declaration): Use separate_class_package.
11829 2010-10-27  Jason Merrill  <jason@redhat.com>
11831         * c-common.c (c_common_reswords): Add __is_literal_type.
11832         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
11834         * c-common.c (check_case_value): Remove special C++ code.
11836 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
11838         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
11839         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
11840         and RID_LAST_PATTR.
11841         (objc_add_property_declaration): Added additional arguments.
11842         (objc_property_attribute_kind): Removed.
11843         (objc_set_property_attr): Removed.
11844         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
11845         copy and nonatomic.
11846         * stub-objc.c (objc_add_property_declaration): Added additional
11847         arguments.
11848         (objc_set_property_attr): Removed.
11850 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
11852         * c-common.h (objc_add_property_variable): Renamed to
11853         objc_add_property_declaration.  Added location argument.
11854         * stub-objc.c (objc_add_property_variable): Same change.
11856 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
11858         * c-common.h (objc_maybe_printable_name): New.
11859         * stub-objc.c (objc_maybe_printable_name): New.
11861 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
11862             Andrew Pinski  <pinskia@gmail.com>
11864         * c-common.h (c_common_mark_addressable_vec): Declare.
11865         * c-common.c (c_common_mark_addressable_vec): New function.
11867 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
11869         * c-common.h (objc_set_method_type): Removed.
11870         (objc_add_method_declaration): Added boolean argument.
11871         (objc_start_method_definition): Same change.
11872         (objc_build_method_signature): Same change.
11873         * stub-objc.c (objc_set_method_type): Removed.
11874         (objc_add_method_declaration): Added boolean argument.
11875         (objc_start_method_definition): Same change.
11876         (objc_build_method_signature): Same change.
11878 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
11880         * c-common.h (finish_file): Removed.
11881         (objc_write_global_declarations): New.
11882         * c-opts.c (c_common_parse_file): Do not call finish_file.
11883         * stub-objc.c (objc_write_global_declarations): New.
11885 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
11887         Implemented parsing @synthesize and @dynamic for
11888         Objective-C/Objective-C++.
11889         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
11890         (objc_add_synthesize_declaration): New.
11891         (objc_add_dynamic_declaration): New.
11892         * c-common.c (c_common_reswords): Add synthesize and dynamic.
11893         * stub-objc.c (objc_add_synthesize_declaration): New.
11894         (objc_add_dynamic_declaration): New.
11896 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
11898         PR target/46041
11899         * c-cppbuiltin.c (mode_has_fma): Move function here from
11900         builtins.c.  Don't use the fma optab, instead just use the
11901         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
11902         using -save-temps.
11904 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
11906         Merge from 'apple/trunk' branch on FSF servers.
11908         2005-11-08  Fariborz Jahanian  <fjahanian@apple.com>
11910         Radar 4330422
11911         * c-common.h (objc_non_volatilized_type): New declaration
11912         * stub-objc.c (objc_non_volatilized_type): New stub.
11914 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
11916         Merge from 'apple/trunk' branch on FSF servers.
11918         2006-03-27  Fariborz Jahanian  <fjahanian@apple.com>
11920         Radar 4133425
11921         * c-common.h (objc_diagnose_private_ivar): New decl.
11922         * stub-objc.c (objc_diagnose_private_ivar): New stub.
11924 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
11926         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
11927         * c-common.h (enum rid): Add RID_AT_PACKAGE.
11928         (objc_ivar_visibility_kind): New enum.
11929         (objc_set_visibility): Adjust prototype to use visibility enum.
11930         * stub-objc.c (objc_set_visibility): Adjust stub to use
11931         visibility enum.
11933 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11935         * c-cppbuiltin.c (builtin_define_float_constants): Emit
11936         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
11937         has the appropriate fma builtins.
11938         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
11940 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
11942         merge from FSF apple 'trunk' branch.
11943         2006 Fariborz Jahanian  <fjahanian@apple.com>
11945         Radars 4436866, 4505126, 4506903, 4517826
11946         * c-common.c (c_common_resword): Define @property and its attributes.
11947         * c-common.h: Define property attribute enum entries.
11948         (OBJC_IS_PATTR_KEYWORD): New.
11949         (objc_property_attribute_kind): New enum.
11950         Declare objc_set_property_attr (), objc_add_property_variable (),
11951         objc_build_getter_call () and objc_build_setter_call ().
11952         * stub-objc.c (objc_set_property_attr): New stub.
11953         (objc_add_property_variable): Likewise.
11954         (objc_build_getter_call): Likewise.
11955         (objc_build_setter_call) Likewise.
11957 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
11959         merge from FSF apple 'trunk' branch.
11960         2006-04-26  Fariborz Jahanian  <fjahanian@apple.com>
11962         Radar 3803157 (method attributes)
11963         * c-common.c (handle_deprecated_attribute): Recognize
11964         objc methods as valid declarations.
11965         * c-common.h: Declare objc_method_decl ().
11966         * stub-objc.c (objc_method_decl): New stub.
11968 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
11970         * c-common.c (parse_optimize_options): Call
11971         decode_cmdline_options_to_array_default_mask before
11972         decode_options.  Update arguments to decode_options.
11973         * c-common.h (c_common_init_options_struct): Declare.
11974         * c-opts.c (c_common_init_options_struct): New.  Split out from
11975         c_common_init_options.
11977 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
11979         Implemented fast enumeration for Objective-C.
11980         * c-common.h (objc_finish_foreach_loop): New.
11981         * stub-objc.c (objc_finish_foreach_loop): New.
11983 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
11985         * c-common.h (struct diagnostic_context): Don't declare here.
11986         (c_common_initialize_diagnostics): Declare using
11987         diagnostic_context typedef.
11988         * c-opts.c (c_common_handle_option): Pass global_dc to
11989         handle_generated_option.
11991 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
11993         * c-opts.c (c_common_handle_option): Pass &global_options_set to
11994         handle_generated_option.
11996 2010-10-03  Ian Lance Taylor  <iant@google.com>
11998         * c.opt (-fplan9-extensions): New option.
12000 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12002         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
12003         Remove.
12004         (c_cpp_builtins): Call functions from cppbuiltin.c instead
12005         of duplicating code.
12007 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
12009         * c-common.c: Add two new entries for @optional
12010         and @required keywords.
12012         merge from FSF 'apple/trunk' branch.
12013         2006-01-30  Fariborz Jahanian  <fjahanian@apple.com>
12015         Radar 4386773
12016         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
12017         objective-c keywords.
12018         (objc_set_method_opt): New declaration.
12019         * stub-objc.c (objc_set_method_opt): New stub.
12021 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
12023         * c-common.c (handle_optimize_attribute): Pass &global_options to
12024         cl_optimization_save and cl_optimization_restore.
12025         * c-opts.c (c_common_handle_option): Pass &global_options to
12026         handle_generated_option.
12027         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
12028         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
12029         &global_options to cl_optimization_restore.
12031 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
12033         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
12034         Objective-C/Objective-C++ keywords.
12036 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
12038         Merge from 'apple/trunk' branch on FSF servers.
12040         2005-10-04  Fariborz Jahanian  <fjahanian@apple.com>
12042         Radar 4281748
12043         * c-common.h (objc_check_global_decl): New declaration.
12044         * stub-objc.c (objc_check_global_decl): New stub.
12046 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
12048         * c.opt: Don't use VarExists.
12050 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
12052         * c-common.c (c_cpp_error): Update names of diagnostic_context
12053         members.
12054         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
12055         cl_optimization members.
12056         * c-opts.c (warning_as_error_callback, c_common_handle_option,
12057         sanitize_cpp_opts, finish_options): Update names of cpp_options
12058         members.
12060 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
12062         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
12063         (objc_is_reserved_word): Removed.
12064         * c-common.c: Updated comments.
12065         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
12066         objc_is_reserved_word.
12067         * stub-objc.c (objc_is_reserved_word): Removed.
12069 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
12071         * c-common.h (objc_add_method_declaration): Adjust prototype to
12072         include attributes.
12073         (objc_start_method_definition): Likewise.
12074         (objc_build_keyword_decl): Likewise.
12075         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
12076         (objc_start_method_definition): Likewise.
12077         (objc_build_keyword_decl): Likewise.
12079 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
12081         * c-common.h (objc_start_class_interface): Adjust prototype.
12082         (objc_start_category_interface): Likewise.
12083         (objc_start_protocol): Likewise.
12084         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
12085         (objc_start_class_interface): Likewise.
12086         (objc_start_category_interface): Likewise.
12088 2010-09-27  Ian Lance Taylor  <iant@google.com>
12090         * c-common.c (c_common_attribute_table): Add no_split_stack.
12091         (handle_no_split_stack_attribute): New static function.
12093 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
12095         Merge from 'apple/trunk' branch on FSF servers.
12097         2005-12-15  Fariborz Jahanian  <fjahanian@apple.com>
12099         Radar 4229905
12100         * c-common.h (objc_have_common_type): New declaration.
12101         * stub-objc.c (objc_have_common_type): New stub.
12103         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
12105         Radar 4154928
12106         * c-common.h (objc_common_type): New prototype.
12107         * stub-objc.c (objc_common_type): New stub.
12109 2010-09-24  Jan Hubicka  <jh@suse.cz>
12111         * c-common.c (handle_leaf_attribute): New function.
12112         (struct attribute_spec c_common_att): Add leaf.
12114 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
12116         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
12117         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
12118         -dump, -dump=, -imacros, -imacros=, -include, -include=,
12119         -include-barrier, -include-directory, -include-directory=,
12120         -include-directory-after, -include-directory-after=,
12121         -include-prefix, -include-prefix=, -include-with-prefix,
12122         -include-with-prefix=, -include-with-prefix-after,
12123         -include-with-prefix-after=, -include-with-prefix-before,
12124         -include-with-prefix-before=, -no-integrated-cpp,
12125         -no-line-commands, -no-standard-includes, -no-warnings, -output,
12126         -output=, -pedantic, -pedantic-errors, -preprocess,
12127         -print-missing-file-dependencies, -trace-includes, -traditional,
12128         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
12129         -user-dependencies, -verbose, -write-dependencies,
12130         -write-user-dependencies, no-integrated-cpp, traditional): New.
12132 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
12134         PR objc/23710
12135         * c-common.h (objc_start_method_definition): Return bool instead
12136         of void.
12137         * stub-objc.c (objc_start_method_definition): Return bool instead
12138         of void.
12140 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
12142         PR objc/25965
12143         * c-common.h (objc_get_interface_ivars): New declaration.
12144         * stub-objc.c (objc_get_interface_ivars): New stub.
12146 2010-09-15  Ian Lance Taylor  <iant@google.com>
12148         * c-common.c (parse_optimize_options): Do not capitalize warning
12149         messages.  Remove period at end of warning message.
12151 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
12153         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
12154         (handle_alias_attribute): ... here.
12155         (handle_ifunc_attribute): New.
12157 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
12159         * c-common.h (do_warn_double_promotion): Declare.
12160         * c-common.c (do_warn_double_promotion): Define.
12162 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
12164         * c.opt (Wdouble-promotion): New.
12166 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
12168         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
12169         fvtable-thunks, fxref): Mark no longer supported in help text.
12171 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
12173         * c.opt (Wimport, fall-virtual, falt-external-templates,
12174         fdefault-inline, fenum-int-equiv, fexternal-templates,
12175         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
12176         fname-mangling-version-, fnew-abi, fnonnull-objects,
12177         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
12178         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
12179         applicable.
12180         (fhandle-exceptions): Mark with Alias and Warn.
12181         * c-opts.c (c_common_handle_option): Don't handle options marked
12182         as ignored.
12184 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
12186         * c.opt (Wcomments, Werror-implicit-function-declaration,
12187         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
12188         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
12189         aliases.
12190         * c-common.c (option_codes): Use OPT_Wcomment instead of
12191         OPT_Wcomments.
12192         * c-opts.c (warning_as_error_callback, c_common_handle_option):
12193         Don't handle options marked as aliases.
12195 2010-08-25  Richard Guenther  <rguenther@suse.de>
12197         * c-common.c (c_common_get_alias_set): Remove special
12198         handling for pointers.
12200 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
12202         * c-common.c: Use FOR_EACH_VEC_ELT.
12203         * c-gimplify.c: Likewise.
12204         * c-pragma.c: Likewise.
12206 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
12208         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
12209         RejectDriver.
12210         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
12211         RejectDriver.
12212         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
12213         instead of OPT_MDX and OPT_MMDX.
12215 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
12217         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
12219 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
12221         * c.opt (MD, MMD): Change to MDX and MMDX.
12222         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
12224 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
12226         * c-opts.c (c_common_handle_option): Call handle_generated_option
12227         instead of handle_option.
12229 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
12231         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
12232         (maybe_apply_renaming_pragma): Delete unneeded declarations.
12234 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
12236         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
12237         (pending_redefine_extname): Change type to a VEC.
12238         (add_to_renaming_pragma_list): Update for new type of
12239         pending_redefine_extname.
12240         (maybe_apply_renaming_pragma): Likewise.
12242 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
12244         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
12245         visited.
12246         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
12247         decide whether a type has already been declared/seen.
12248         Do not go to the original type.
12249         (dump_nested_types): New parameter forward.
12250         Generate forward declaration if needed and mark type as visited.
12251         (print_ada_declaration): Call dump_nested_types if not already done.
12252         Mark types as visited.
12254 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
12256         * c.opt (-print-pch-checksum): Remove option.
12257         * c-opts.c (c_common_handle_option): Don't handle
12258         OPT_print_pch_checksum.
12260 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
12262         * c-common.h (c_common_handle_option): Update prototype and return
12263         value type.
12264         * c-opts.c (c_common_handle_option): Update prototype and return
12265         value type.  Update calls to handle_option and
12266         enable_warning_as_error.
12268 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
12270         PR c/45079
12271         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
12273 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
12275         * c-common.h (c_common_missing_argument): Remove.
12276         * c-opts.c (c_common_missing_argument): Remove.
12277         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
12278         idirafter, imacros, include, isysroot, isystem, iquote): Add
12279         MissingArgError.
12280         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
12282 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
12284         * c-common.h (c_common_option_lang_mask,
12285         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
12286         New.
12287         (c_common_init_options): Update prototype.
12288         * c-opts.c (c_common_option_lang_mask): New.
12289         (c_common_initialize_diagnostics): Split out of
12290         c_common_init_options.
12291         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
12292         New.
12293         (c_common_init_options): Update prototype.  Use decoded options in
12294         search for -lang-asm.
12296 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
12298         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
12299         * c-format.c: Likewise.
12301 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12303         * c-common.h: Include diagnostic-core.h. Error if already
12304         included.
12305         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
12307 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12309         * c-common.c (IN_GCC_FRONTEND): Do not undef.
12310         Do not include expr.h
12311         (vector_mode_valid_p): Move here.
12313 2010-06-21  DJ Delorie  <dj@redhat.com>
12315         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
12316         allow these pragmas anywhere.
12318 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
12320         PR bootstrap/44509
12321         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
12322         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
12323         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
12324         ggc_strdup instead of xstrdup.
12326 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
12328         * c-cppbuiltin.c: Include cpp-id-data.h.
12329         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
12330         (lazy_hex_fp_value): New function.
12331         (builtin_define_with_hex_fp_value): Provide definitions lazily.
12333 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12335         * c-gimplify.c: Do not include tree-flow.h
12337 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
12339         PR other/44034
12340         * c-common.c: Rename targetm member:
12341         targetm.enum_va_list -> targetm.enum_va_list_p
12343 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
12345         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
12347 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
12349         * c-cppbuiltin.c: Do not include except.h.
12351 2010-06-24  Andi Kleen  <ak@linux.intel.com>
12353         * c-common.c (warn_for_omitted_condop): New.
12354         * c-common.h (warn_for_omitted_condop): Add prototype.
12356 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
12358         * c.opt (lang-objc): Remove.
12359         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
12361 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
12363         * c-opts.c: Include "tm_p.h".
12365 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
12367         * c-common.c (parse_optimize_options): Update call to
12368         decode_options.
12370 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
12372         * c-common.c (record_types_used_by_current_var_decl): Adjust for
12373         new type of types_used_by_cur_var_decl.
12375 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
12377         PR bootstrap/44512
12378         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
12379         for C++ standard compliance.
12381 2010-06-16  Jason Merrill  <jason@redhat.com>
12383         * c.opt: Add -Wnoexcept.
12385 2010-06-16  Richard Guenther  <rguenther@suse.de>
12387         PR c/44555
12388         * c-common.c (c_common_truthvalue_conversion): Remove
12389         premature and wrong optimization concering ADDR_EXPRs.
12391 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
12393         * c-ada-spec.c (dump_sloc): Remove column info.
12394         (is_simple_enum): New function.
12395         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
12396         enum types when relevant.
12398 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12400         * c-common.c (conversion_warning): Warn at expression
12401         location.
12403 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
12405         * c-opts.c (c_common_handle_option): Don't handle
12406         OPT_fshow_column.
12408 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12410         * c-pragma.c (push_alignment): Use typed GC allocation.
12411         (handle_pragma_push_options): Likewise.
12413         * c-common.c (parse_optimize_options): Likewise.
12415         * c-common.h (struct sorted_fields_type): Add variable_size GTY
12416         option.
12418 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
12420         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
12421         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
12422         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
12423         flag_signed_bitfields, warn_strict_null_sentinel,
12424         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
12425         flag_gen_declaration, flag_no_gnu_keywords,
12426         flag_implement_inlines, flag_implicit_templates,
12427         flag_implicit_inline_templates, flag_optional_diags,
12428         flag_elide_constructors, flag_default_inline, flag_rtti,
12429         flag_conserve_space, flag_access_control, flag_check_new,
12430         flag_new_for_scope, flag_weak, flag_working_directory,
12431         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
12432         flag_enforce_eh_specs, flag_threadsafe_statics,
12433         flag_pretty_templates): Remove.
12434         * c-common.h (flag_preprocess_only, flag_nil_receivers,
12435         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
12436         flag_replace_objc_classes, flag_undef, flag_no_builtin,
12437         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
12438         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
12439         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
12440         flag_no_gnu_keywords, flag_implement_inlines,
12441         flag_implicit_templates, flag_implicit_inline_templates,
12442         flag_optional_diags, flag_elide_constructors, flag_default_inline,
12443         flag_rtti, flag_conserve_space, flag_access_control,
12444         flag_check_new, flag_new_for_scope, flag_weak,
12445         flag_working_directory, flag_use_cxa_atexit,
12446         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
12447         flag_threadsafe_statics, flag_pretty_templates,
12448         warn_strict_null_sentinel): Remove.
12449         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
12450         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
12451         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
12452         fimplicit-inline-templates, fimplicit-templates,
12453         flax-vector-conversions, fms-extensions, fnil-receivers,
12454         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
12455         frtti, fshort-double, fshort-enums, fshort-wchar,
12456         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
12457         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
12458         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
12459         gen-decls, undef): Use Var.
12460         (fdefault-inline, foptional-diags): Document as doing nothing.
12461         * c-opts.c (c_common_handle_option): Remove cases for options now
12462         using Var.  Mark ignored options as such.
12464 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
12466         * c-common.c: Moved to here from parent directory.
12467         * c-common.def: Likewise.
12468         * c-common.h: Likewise.
12469         * c-cppbuiltin.c: Likewise.
12470         * c-dump.c: Likewise.
12471         * c-format.c: Likewise.
12472         * c-format.h : Likewise.
12473         * c-gimplify.c: Likewise.
12474         * c-lex.c: Likewise.
12475         * c-omp.c: Likewise.
12476         * c.opt: Likewise.
12477         * c-opts.c: Likewise.
12478         * c-pch.c: Likewise.
12479         * c-ppoutput.c: Likewise.
12480         * c-pragma.c: Likewise.
12481         * c-pragma.h: Likewise.
12482         * c-pretty-print.c: Likewise.
12483         * c-pretty-print.h: Likewise.
12484         * c-semantics.c: Likewise.
12485         * stub-objc.c: Likewise.
12487         * c-common.c: Include gt-c-family-c-common.h.
12488         * c-pragma.c: Include gt-c-family-c-pragma.h.
12490 Copyright (C) 2010-2021 Free Software Foundation, Inc.
12492 Copying and distribution of this file, with or without modification,
12493 are permitted in any medium without royalty provided the copyright
12494 notice and this notice are preserved.