re PR c/91149 (GCC 9 and later incorrectly rejects OpenMP task reduction-modifier...
[official-gcc.git] / gcc / c-family / ChangeLog
blobd360759728eb0b05a6f7972b786478da006c7cf1
1 2019-07-13  Jakub Jelinek  <jakub@redhat.com>
3         PR c/91149
4         * c-omp.c (c_omp_split_clauses): Fix a pasto in
5         OMP_CLAUSE_REDUCTION_TASK handling.
7 2019-07-12  Jakub Jelinek  <jakub@redhat.com>
9         * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ORDER.
10         * c-omp.c (c_omp_split_clauses): Handle splitting of OMP_CLAUSE_ORDER.
12 2019-07-09  Martin Sebor  <msebor@redhat.com>
14         PR c++/61339
15         * c-opts.c (handle_deferred_opts): Change class-key of PODs to struct
16         and others to class.
17         * c-pretty-print.h: Same.
19 2019-07-09  Martin Sebor  <msebor@redhat.com>
21         PR c++/61339
22         * c-format.c (check_argument_type): Change class-key from class to
23         struct and vice versa to match convention and avoid -Wclass-is-pod
24         and -Wstruct-no-pod.
25         * c-pretty-print.h: Same.
27 2019-07-03  Martin Liska  <mliska@suse.cz>
29         * c-common.c (try_to_locate_new_include_insertion_point): Remove
30         dead assignemts.
32 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
34         * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_REDUCTION_INSCAN
35         clauses on OMP_FOR rather than OMP_PARALLEL when OMP_FOR is combined
36         with OMP_PARALLEL.
38 2019-07-02  qing zhao  <qing.zhao@oracle.com>
40         PR preprocessor/90581
41         * c-opts.c (c_common_handle_option): Handle -fmax-include-depth.
42         * c.opt: Add new option -fmax-include-depth.
44 2019-06-26  Jason Merrill  <jason@redhat.com>
46         PR c++/55442 - memory-hog with highly recursive constexpr.
47         * c.opt (fconstexpr-loop-limit): New.
49 2019-06-25  Jakub Jelinek  <jakub@redhat.com>
51         PR sanitizer/90954
52         * c-omp.c (c_finish_omp_atomic): Allow tree_invariant_p in addition
53         to SAVE_EXPR in first operand of a COMPOUND_EXPR.
55 2019-06-24  Jan Hubicka  <jh@suse.cz>
57         * c-common.c (braced_lists_to_strings): Check that
58         type is array or integer prior checking string flag.
60 2019-06-21  Matthew Beliveau  <mbelivea@redhat.com>
62         PR c++/90875 - added -Wswitch-outside-range option
63         * c.opt (Wswitch-outside-range): Added new option.
64         * c-warn.c (c_do_switch_warnings): Use OPT_Wswitch-outside-range.
66 2019-06-21  Marek Polacek  <polacek@redhat.com>
68         PR c++/90953 - ICE with -Wmissing-format-attribute.
69         * c-common.c (check_function_arguments_recurse): Use
70         get_attribute_name.
71         (check_missing_format_attribute): Likewise.
73 2019-06-19  Marek Polacek  <polacek@redhat.com>
75         PR c++/60364 - noreturn after first decl not diagnosed.
76         * c-attribs.c (handle_noreturn_attribute): No longer static.
77         * c-common.h (handle_noreturn_attribute, attr_noreturn_exclusions):
78         Declare.
79         * c-format.c (check_function_format): Use get_attribute_name.
81 2019-06-19  Martin Sebor  <msebor@redhat.com>
83         PR translation/90156
84         * c-format.c (function_format_info::format_type): Adjust type.
85         (function_format_info::is_raw): New member.
86         (decode_format_type): Adjust signature.  Handle "raw" diag attributes.
87         (decode_format_attr): Adjust call to decode_format_type.
88         Avoid a redundant call to convert_format_name_to_system_name.
89         Avoid abbreviating the word "arguments" in a diagnostic.
90         (format_warning_substr): New function.
91         (avoid_dollar_number): Quote dollar sign in a diagnostic.
92         (finish_dollar_format_checking): Same.
93         (check_format_info): Same.
94         (struct baltoks_t): New.
95         (c_opers, c_keywords, cxx_keywords, badwords, contrs): New arrays.
96         (maybe_diag_unbalanced_tokens, check_tokens, check_plain): New
97         functions.
98         (check_format_info_main): Call check_plain.  Use baltoks_t.  Call
99         maybe_diag_unbalanced_tokens.
100         (handle_format_attribute): Spell out the word "arguments" in
101         a diagnostic.
103 2019-06-11  Matthew Beliveau  <mbelivea@redhat.com>
105         PR c++/90449 - add -Winaccessible-base option.
106         * c.opt (Winaccessible-base): New option.
108 2019-06-10  Jakub Jelinek  <jakub@redhat.com>
110         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCAN.
111         * c-pragma.c (omp_pragmas_simd): Add #pragma omp scan.
112         * c-omp.c (c_omp_split_clauses): Diagnose inscan reductions on
113         combined/composite constructs where it is not allowed.  Copy over
114         OMP_CLAUSE_REDUCTION_INSCAN.
116 2019-06-05  Martin Sebor  <msebor@redhat.com>
118         * c-attribs.c (handle_mode_attribute): Adjust quoting and hyphenation.
119         (handle_alias_ifunc_attribute): Same.
120         (handle_copy_attribute): Same.
121         (handle_weakref_attribute): Same.
122         (handle_nonnull_attribute): Same.
123         * c-warn.c (warn_for_sign_compare): Same.
124         (warn_for_restrict): Same.
125         * c.opt: Same.
127 2019-06-05  Martin Sebor  <msebor@redhat.com>
129         * c-pragma.c (handle_pragma_weak): Adjust quoting in a diagnostic.
130         * c.opt (-Wformat-diag): Remove a spurious period.
132 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
134         PR c/90628
135         * c-common.c (check_builtin_function_arguments)
136         <case BUILTIN_*_OVERFLOW>: Diagnose pointer to const qualified integer
137         as last argument.
139 2019-05-23  Eric Botcazou  <ebotcazou@adacore.com>
141         * c-ada-spec.c (compare_node): Compare the DECL_UIDs as a last resort.
143 2019-05-22  Martin Liska  <mliska@suse.cz>
145         PR lto/90500
146         * c-attribs.c (handle_copy_attribute): Do not copy
147         target_clones attribute.
149 2019-05-21  Eric Botcazou  <ebotcazou@adacore.com>
151         * c-ada-spec.h (enum cpp_operation): Add IS_ASSIGNMENT_OPERATOR.
152         * c-ada-spec.c (print_assignment_operator): New function.
153         (dump_ada_declaration) <FUNCTION_DECL>: Call it do dump explicit copy
154         assignment operators declared as methods and filter out the others.
156 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
158         PR c/89433
159         * c-attribs.c (c_common_attribute_table): Set min_len to -1 for
160         "omp declare target".
162 2019-05-16  Martin Sebor  <msebor@redhat.com>
164         * c-attribs.c (handle_no_sanitize_attribute): Quote identifiers,
165         keywords, operators, and types in diagnostics.
166         (handle_scalar_storage_order_attribute): Same.
167         (handle_mode_attribute): Same.
168         (handle_visibility_attribute): Same.
169         (handle_assume_aligned_attribute): Same.
170         (handle_no_split_stack_attribute): Same.
171         * c-common.c (shorten_compare): Same.
172         (c_common_truthvalue_conversion): Same.
173         (cb_get_source_date_epoch): Same.
174         * c-lex.c (cb_def_pragma): Quote keywords, operators, and types
175         in diagnostics.
176         (interpret_float): Same.
177         * c-omp.c (c_finish_omp_for): Same.
178         * c-opts.c (c_common_post_options): Same.
179         * c-pch.c (c_common_pch_pragma): Same.
180         * c-pragma.c (pop_alignment): Same.
181         (handle_pragma_pack): Same.
182         (apply_pragma_weak): Same.
183         (handle_pragma_weak): Same.
184         (handle_pragma_scalar_storage_order): Same.
185         (handle_pragma_redefine_extname): Same.
186         (add_to_renaming_pragma_list): Same.
187         (maybe_apply_renaming_pragma): Same.
188         (push_visibility): Same.
189         (handle_pragma_visibility): Same.
190         (handle_pragma_optimize): Same.
191         (handle_pragma_message): Same.
192         * c-warn.c (warn_for_omitted_condop): Same.
193         (lvalue_error): Same.
195 2019-05-15  Richard Biener  <rguenther@suse.de>
197         PR c/90474
198         * c-common.c (c_common_mark_addressable_vec): Also mark
199         a COMPOUND_LITERAL_EXPR_DECL addressable similar to
200         c_mark_addressable.
202 2019-05-06  Nathan Sidwell  <nathan@acm.org>
204         * c-opts.c (handle_defered_opts): Rename struct deps to struc mkdeps.
206 2019-04-30  Nathan Sidwell  <nathan@acm.org>
208         * c-common.c (c_common_init_ts): Use MARK_TS_EXP.  Mark SIZEOF_EXPR.
210 2019-04-30  Martin Liska  <mliska@suse.cz>
212         * c-pragma.c (handle_pragma_diagnostic): Provide hints
213         for unknown options.
215 2019-04-26  Richard Sandiford  <richard.sandiford@arm.com>
217         * c-warn.c (strict_aliasing_warning): Apply COMPLETE_TYPE_P to
218         the pointer target rather than the pointer itself.
220 2019-04-19  Jakub Jelinek  <jakub@redhat.com>
222         PR c/89888
223         * c-common.h (c_add_case_label): Remove orig_type and outside_range_p
224         arguments.
225         (c_do_switch_warnings): Remove outside_range_p argument.
226         * c-common.c (check_case_bounds): Removed.
227         (c_add_case_label): Remove orig_type and outside_range_p arguments.
228         Don't call check_case_bounds.  Fold low_value as well as high_value.
229         * c-warn.c (c_do_switch_warnings): Remove outside_range_p argument.
230         Check for case labels outside of range of original type here and
231         adjust them.
233 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
235         PR translation/90041
236         * c.opt (-fhandle-exceptions): Use %< and %> around option names
237         in the Warn diagnostics.
239         PR c/89946
240         * c-attribs.c (handle_patchable_function_entry_attribute): Add
241         function comment.  Warn if arguments of the attribute are not positive
242         integer constants.
244 2019-04-09  Eric Botcazou  <ebotcazou@adacore.com>
246         * c-ada-spec.c (print_destructor): Deal with deleting destructors.
247         (dump_ada_declaration) <FUNCTION_DECL>: Likewise.
249 2019-04-07  Eric Botcazou  <ebotcazou@adacore.com>
251         * c-ada-spec.c (is_float128): New predicate extracted from...
252         (dump_ada_node) <COMPLEX_TYPE>: Use it to recognize __cfloat128.
253         <REAL_TYPE>: ...here.  Call it.
255 2019-04-05  David Malcolm  <dmalcolm@redhat.com>
257         PR c/89985
258         * c-warn.c (check_address_or_pointer_of_packed_member): Add
259         auto_diagnostic_group.  Guard inform calls by result of
260         warning_at call.
262 2019-04-05  Marek Polacek  <polacek@redhat.com>
264         PR c++/89973 - -Waddress-of-packed-member ICE with invalid conversion. 
265         * c-warn.c (check_address_or_pointer_of_packed_member): Check the type
266         of RHS.
268 2019-04-03  Jason Merrill  <jason@redhat.com>
270         PR c++/86586 - -fcompare-debug=-Wsign-compare.
271         * c-warn.c (warn_for_sign_compare): Call fold_for_warn.
273 2019-04-01  Martin Sebor  <msebor@redhat.com>
275         PR c/89685
276         * c-attribs.c (handle_copy_attribute): Handle references and
277         non-constant expressions.
279 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
281         PR c++/87481
282         * c.opt (-fconstexpr-ops-limit=): New option.
284 2019-03-21  Jakub Jelinek  <jakub@redhat.com>
286         * c-common.c (per_file_includes_t): Use false as Lazy in hash_set
287         template param.
289 2019-03-19  Martin Sebor  <msebor@redhat.com>
291         PR tree-optimization/89688
292         * c-common.c (braced_list_to_string): Make static.
293         (braced_lists_to_strings): Define new function.
294         * c-common.h (braced_list_to_string): Remove.
295         (braced_lists_to_strings): Declare.
297 2019-03-12  Martin Liska  <mliska@suse.cz>
299         * c-opts.c (c_common_handle_option): Wrap option with %< and %>.
301 2019-03-11  Martin Liska  <mliska@suse.cz>
303         * c-opts.c (c_common_post_options): Wrap apostrophes
304         in gcc internal format with %'.
306 2019-03-11  Martin Liska  <mliska@suse.cz>
308         * c-attribs.c (handle_nocf_check_attribute): Wrap an option name
309         in a string format message and fix GNU coding style.
310         * c-common.c (vector_types_convertible_p): Likewise.
311         (c_build_vec_perm_expr): Likewise.
312         * c-indentation.c (get_visual_column): Likewise.
313         * c-opts.c (c_common_handle_option): Likewise.
314         (c_common_post_options): Likewise.
315         (sanitize_cpp_opts): Likewise.
316         * c-pch.c (c_common_pch_pragma): Likewise.
317         * c-pragma.c (handle_pragma_pack): Likewise.
319 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
321         PR tree-optimization/89550
322         * c-common.c (c_common_truthvalue_conversion): Only set
323         TREE_NO_WARNING if warning_at returned true.
324         * c-warn.c (overflow_warning, warn_logical_operator): Likewise.
326 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
327             Martin Sebor  <msebor@gmail.com>
329         * c.opt (Wmissing-attributes): Clean up doc string.
331 2019-02-25  Jakub Jelinek  <jakub@redhat.com>
333         PR c/89495
334         * c-format.c (maybe_read_dollar_number): Compute nargnum in
335         HOST_WIDE_INT type to avoid overflows and change overflow_flag
336         checking.
338 2019-02-22  Richard Biener  <rguenther@suse.de>
340         * c-pch.c (no_checksum): Remove.
341         (pch_init): Remove assertion that executable_checksum is not
342         all zero.
343         (c_common_valid_pch): Likewise.
345 2019-02-18  Martin Sebor  <msebor@redhat.com>
347         PR middle-end/89294
348         * c-common.c (invalid_array_size_error): Handle cst_size_not_constant.
350 2019-02-16  David Malcolm  <dmalcolm@redhat.com>
352         PR c++/88680
353         * c-common.c (shorten_compare): Call fold_for_warn on op0 when
354         implementing -Wtype-limits.
356 2019-02-11  Martin Sebor  <msebor@redhat.com>
358         PR c++/87996
359         * c-common.c (invalid_array_size_error): New function.
360         (valid_array_size_p): Call it.  Handle size as well as type.
361         * c-common.h (valid_constant_size_p): New function.
362         (enum cst_size_error): New type.
364 2019-01-31  David Malcolm  <dmalcolm@redhat.com>
366         PR c/89122
367         * known-headers.cc (get_stdlib_header_for_name): Add
368         {FLT|DBL|LDBL}_{MAX|MIN} to "hints" array.
370 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
372         PR libstdc++/88170
373         * c-pretty-print.c (pp_c_enumeration_constant): Print always as
374         a C cast in pp_c_flag_gnu_v3 mode.
376 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
378         PR c/86125
379         * c-common.c (c_common_nodes_and_builtins): Build type variants for
380         builtin_structptr_types types even for C.
382 2019-01-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
384         * c-warn.c (check_address_or_pointer_of_packed_member): Handle the case
385         when rhs is of array type correctly.  Fix handling of nested structures.
386         Fix handling of indirect_ref together with nop_expr and/or addr_expr.
387         (check_and_warn_address_or_pointer_of_packed_member): Fix handling of
388         type casts within nested compound expressions.
390 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
392         PR middle-end/88968
393         * c-omp.c (c_finish_omp_atomic): For bitfield atomics, update type
394         variable after using BIT_FIELD_REF.
396 2019-01-18  H.J. Lu  <hongjiu.lu@intel.com>
398         PR c/51628
399         PR c/88664
400         * c-common.h (warn_for_address_or_pointer_of_packed_member):
401         Remove the boolean argument.
402         * c-warn.c (check_address_of_packed_member): Renamed to ...
403         (check_address_or_pointer_of_packed_member): This.  Also
404         warn pointer conversion.
405         (check_and_warn_address_of_packed_member): Renamed to ...
406         (check_and_warn_address_or_pointer_of_packed_member): This.
407         Also warn pointer conversion.
408         (warn_for_address_or_pointer_of_packed_member): Remove the
409         boolean argument.  Don't check pointer conversion here.
411 2019-01-15  Richard Sandiford  <richard.sandiford@arm.com>
413         PR inline-asm/52813
414         * c.opt (Wdeprecated): Move documentation and variable to common.opt.
416 2019-01-14  Jakub Jelinek  <jakub@redhat.com>
418         * c-cppbuiltin.c (c_cpp_builtin): Define __cpp_guaranteed_copy_elision
419         and __cpp_nontype_template_parameter_auto.  Add a comment that
420         __cpp_template_auto is deprecated.
422 2019-01-14  Tom Honermann  <tom@honermann.net>
424         Implement P0482R5, char8_t: A type for UTF-8 characters and strings
425         * c-common.c (c_common_reswords): Add char8_t.
426         (fix_string_type): Use char8_t for the type of u8 string literals.
427         (c_common_get_alias_set): char8_t doesn't alias.
428         (c_common_nodes_and_builtins): Define char8_t as a builtin type in
429         C++.
430         (c_stddef_cpp_builtins): Add __CHAR8_TYPE__.
431         (keyword_begins_type_specifier): Add RID_CHAR8.
432         * c-common.h (rid): Add RID_CHAR8.
433         (c_tree_index): Add CTI_CHAR8_TYPE and CTI_CHAR8_ARRAY_TYPE.
434         Define D_CXX_CHAR8_T and D_CXX_CHAR8_T_FLAGS.
435         Define char8_type_node and char8_array_type_node.
436         * c-cppbuiltin.c (cpp_atomic_builtins): Predefine
437         __GCC_ATOMIC_CHAR8_T_LOCK_FREE.
438         (c_cpp_builtins): Predefine __cpp_char8_t.
439         * c-lex.c (lex_string): Use char8_array_type_node as the type of
440         CPP_UTF8STRING.
441         (lex_charconst): Use char8_type_node as the type of CPP_UTF8CHAR.
442         * c-opts.c: If not otherwise specified, enable -fchar8_t when
443         targeting C++2a.
444         * c.opt: Add the -fchar8_t command line option.
446 2019-01-14  Martin Sebor  <msebor@redhat.com>
448         PR target/88638
449         * c-attribs.c (positional_argument): Call valid_format_string_type_p
450         and issue errors if it fails.
451         * c-common.h (valid_format_string_type_p): Declare.
452         * c-format.c (valid_stringptr_type_p): Rename...
453         (valid_format_string_type_p): ...to this and make extern.
454         (handle_format_arg_attribute): Adjust to new name.
455         (check_format_string): Same.
457 2019-01-13  H.J. Lu  <hongjiu.lu@intel.com>
459         * c-warn.c (warn_for_address_or_pointer_of_packed_member):
460         Replace "may may" with "may" in warning message.
462 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
464         PR c++/85052
465         * c-common.h (enum rid): Add RID_BUILTIN_CONVERTVECTOR.
466         (c_build_vec_convert): Declare.
467         * c-common.c (c_build_vec_convert): New function.
469 2019-01-04  Martin Sebor  <msebor@redhat.com>
471         PR c/88546
472         * c-attribs.c (handle_copy_attribute): Avoid copying attribute leaf.
473         Handle C++ empty throw specification and C11 _Noreturn.
474         (has_attribute): Also handle C11 _Noreturn.
476 2019-01-04  Martin Sebor  <msebor@redhat.com>
478         PR c/88363
479         * c-attribs.c (positional_argument): Also accept enumerated types.
481 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
483         Update copyright years.
485 2018-12-20  H.J. Lu  <hongjiu.lu@intel.com>
487         PR c/51628
488         * c-common.h (warn_for_address_or_pointer_of_packed_member): New.
489         * c-warn.c (check_alignment_of_packed_member): New function.
490         (check_address_of_packed_member): Likewise.
491         (check_and_warn_address_of_packed_member): Likewise.
492         (warn_for_address_or_pointer_of_packed_member): Likewise.
493         * c.opt: Add -Wno-address-of-packed-member.
495 2018-12-20  David Malcolm  <dmalcolm@redhat.com>
497         PR c++/87504
498         * c-warn.c (get_outermost_macro_expansion): New function.
499         (spelled_the_same_p): Use it to unwind the macro expansions, and
500         compare the outermost macro in each nested expansion, rather than
501         the innermost.
503 2018-12-19  David Malcolm  <dmalcolm@redhat.com>
505         PR c++/87504
506         * c-common.h (warn_tautological_cmp): Convert 1st param from
507         location_t to const op_location_t &.
508         * c-warn.c (find_array_ref_with_const_idx_r): Call fold_for_warn
509         when testing for INTEGER_CST.
510         (warn_tautological_bitwise_comparison): Convert 1st param from
511         location_t to const op_location_t &; use it to build a
512         binary_op_rich_location, and use this.
513         (spelled_the_same_p): New function.
514         (warn_tautological_cmp): Convert 1st param from location_t to
515         const op_location_t &.  Warn for macro expansions if
516         spelled_the_same_p.  Use binary_op_rich_location.
518 2018-12-19  David Malcolm  <dmalcolm@redhat.com>
520         PR c++/43064
521         PR c++/43486
522         * c-common.c (unsafe_conversion_p): Fold any location wrapper.
523         (verify_tree): Handle location wrappers.
524         (c_common_truthvalue_conversion): Strip any location wrapper.
525         Handle CONST_DECL.
526         (fold_offsetof): Strip any location wrapper.
527         (complete_array_type): Likewise for initial_value.
528         (convert_vector_to_array_for_subscript): Call fold_for_warn on the
529         index before checking for INTEGER_CST.
530         * c-pretty-print.c (c_pretty_printer::primary_expression): Don't
531         print parentheses around location wrappers.
532         * c-warn.c (warn_logical_operator): Call fold_for_warn on op_right
533         before checking for INTEGER_CST.
534         (warn_tautological_bitwise_comparison): Call
535         tree_strip_any_location_wrapper on lhs, rhs, and bitop's operand
536         before checking for INTEGER_CST.
537         (readonly_error): Strip any location wrapper.
538         (warn_array_subscript_with_type_char): Strip location wrappers
539         before checking for INTEGER_CST.  Use the location of the index if
540         available.
542 2018-12-06  Jason Merrill  <jason@redhat.com>
544         PR c++/88136 - -Wdeprecated-copy false positives
545         * c.opt (Wdeprecated-copy-dtor): New.
546         (Wdeprecated-copy): Move to -Wextra.
548 2018-11-29  Martin Sebor  <msebor@redhat.com>
550         PR c/88172
551         PR testsuite/88208
552         * c-attribs.c (common_handle_aligned_attribute): Silently avoid setting
553         alignments to values less than the target requires.
554         (has_attribute): For attribute aligned consider both the attribute
555         and the alignment bits.
556         * c-common.c (c_init_attributes): Optionally issue a warning for
557         zero alignment.
559 2018-11-28  Martin Sebor  <msebor@redhat.com>
561         PR c/88065
562         PR c/87297
563         * c-warn.c (sizeof_pointer_memaccess_warning): Bail if source
564         or destination is an error.
566 2018-11-28  Jakub Jelinek  <jakub@redhat.com>
568         PR c++/88215
569         * c-ubsan.c: Include langhooks.h.
570         (ubsan_instrument_division): Change gcc_assert that main variants
571         of op0 and op1 types are equal to gcc_checking_assert that the
572         main variants are compatible types.
574 2018-11-27  Eric Botcazou  <ebotcazou@adacore.com>
576         * c-ada-spec.c: Include stringpool.h.
577         (has_static_fields): Return false for incomplete types.
578         (is_tagged_type): Likewise.
579         (has_nontrivial_methods): Likewise.
580         (dump_ada_node) <INTEGER_TYPE>: Deal specifically with __int128.
581         (struct overloaded_name_hash): New structure.
582         (struct overloaded_name_hasher): Likewise.
583         (overloaded_names): New global variable.
584         (init_overloaded_names): New static function.
585         (overloaded_name_p): New predicate.
586         (dump_ada_declaration) <TYPE_DECL>: Tidy up and set TREE_VISITED
587         on the TYPE_STUB_DECL of the original type of a typedef, if any.
588         <FUNCTION_DECL>: Bail out for an unsupported overloaded name.
589         Remove always-true condition and dump forward types.
590         (dump_ada_specs): Delete overloaded_names.
592 2018-11-20  Martin Sebor  <msebor@redhat.com>
594         * c-attribs.c (type_for_vector_size): New function.
595         (type_valid_for_vector_size): Same.
596         (handle_vector_size_attribute): Move code to the functions above
597         and call them.
598         (validate_attribute, has_attribute): New functions.
599         * c-common.h (has_attribute): Declare.
600         (rid): Add RID_HAS_ATTRIBUTE_EXPRESSION.
601         * c-common.c (c_common_resword): Same.
603 2018-11-16  Jason Merrill  <jason@redhat.com>
605         * c-lex.c (c_common_has_attribute): Handle likely/unlikely.
606         * c-attribs.c (attr_cold_hot_exclusions): Make public.
608 2018-11-16  Jakub Jelinek  <jakub@redhat.com>
610         PR middle-end/87854
611         * c-common.c (fix_string_type): Reject string literals larger than
612         TYPE_MAX_VALUE (ssizetype) bytes.
614 2018-11-15  Martin Sebor  <msebor@redhat.com>
616         PR c++/87541
617         PR c++/87542
618         * c-attribs.c (positional_argument): New function.
619         (handle_alloc_size_attribute): Use it and simplify.
620         (handle_alloc_align_attribute): Same.
621         (handle_assume_aligned_attribute): Same.
622         (handle_nonnull_attribute): Same.
623         * c-common.c (check_function_arguments): Pass fntype to
624         check_function_format.
625         * c-common.h (check_function_format): Add an argument.
626         (PosArgFlags, positional_argument): Declare new type and function.
627         * c-format.c (decode_format_attr): Add arguments.
628         (check_format_string, get_constant): Same.
629         (convert_format_name_to_system_name): Adjust.
631 2018-11-15  David Malcolm  <dmalcolm@redhat.com>
633         PR other/19165
634         * c-opts.c (c_diagnostic_finalizer): Add diagnostic_t param.
636 2018-11-14  Jakub Jelinek  <jakub@redhat.com>
638         P1236R1 - Signed integers are two's complement
639         * c-warn.c (maybe_warn_shift_overflow): Don't warn for c++2a.
640         * c-ubsan.c (ubsan_instrument_shift): Make signed shifts
641         with in-range second operand well defined for -std=c++2a.
643         PR other/88007
644         * c-common.c (parse_optimize_options): Allocate option string from
645         opts_obstack rather than as GC memory.  Move the allocation after
646         warning for invalid option.
648 2018-11-13  David Malcolm  <dmalcolm@redhat.com>
650         * c-common.c (c_get_substring_location): Update for renaming of
651         get_source_location_for_substring to get_location_within_string.
652         * c-lex.c: Replace "source_location" with "location_t".
653         * c-opts.c: Likewise.
654         * c-ppoutput.c: Likewise.
656 2018-11-13  Martin Sebor  <msebor@redhat.com>
658         PR middle-end/81824
659         * c-attribs.c (handle_copy_attribute): Exclude inlining attributes.
660         (handle_tls_model_attribute): Improve diagnostics.
662 2018-11-12  Jason Merrill  <jason@redhat.com>
664         * c-cppbuiltin.c (c_cpp_builtins): Define
665         __cpp_impl_destroying_delete.
667         * c-cppbuiltin.c (c_cpp_builtins): Change __cpp_explicit_bool to
668         __cpp_conditional_explicit.
670 2018-11-09  Martin Sebor  <msebor@redhat.com>
672         PR middle-end/81824
673         * c-attribs.c (handle_copy_attribute): New function.
675 2018-11-09  Martin Sebor  <msebor@redhat.com>
677         PR c/87795
678         * c-common.c (check_user_alignment): Use MAX_OFILE_ALIGNMENT.
680 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
682         * c-common.h (c_finish_omp_taskgroup): Add CLAUSES argument.
683         (c_finish_omp_atomic): Replace bool SEQ_CST argument with
684         enum omp_memory_order MEMORY_ORDER.
685         (c_finish_omp_flush): Add MO argument.
686         (c_omp_depend_t_p, c_finish_omp_depobj): Declare.
687         (c_finish_omp_for): Add FINAL_P argument.
688         * c-omp.c: Include memmodel.h.
689         (c_finish_omp_taskgroup): Add CLAUSES argument.  Set
690         OMP_TASKGROUP_CLAUSES to it.
691         (c_finish_omp_atomic): Replace bool SEQ_CST argument with
692         enum omp_memory_order MEMORY_ORDER.  Set OMP_ATOMIC_MEMORY_ORDER
693         instead of OMP_ATOMIC_SEQ_CST.
694         (c_omp_depend_t_p, c_finish_omp_depobj): New functions.
695         (c_finish_omp_flush): Add MO argument, if not MEMMODEL_LAST, emit
696         __atomic_thread_fence call with the given value.
697         (check_omp_for_incr_expr): Formatting fixes.
698         (c_finish_omp_for): Add FINAL_P argument.  Allow NE_EXPR
699         even in OpenMP loops, diagnose if NE_EXPR and incr expression
700         is not constant expression 1 or -1.  Transform NE_EXPR loops
701         with iterators pointers to VLA into LT_EXPR or GT_EXPR loops.
702         (c_omp_check_loop_iv_r): Look for orig decl of C++ range for
703         loops too.
704         (c_omp_split_clauses): Add support for combined
705         #pragma omp parallel master and
706         #pragma omp {,parallel }master taskloop{, simd} constructs.
707         Handle OMP_CLAUSE_IN_REDUCTION.  Handle OMP_CLAUSE_REDUCTION_TASK.
708         Handle OMP_CLAUSE_NONTEMPORAL.  Handle splitting OMP_CLAUSE_IF
709         also to OMP_SIMD.  Copy OMP_CLAUSE_LASTPRIVATE_CONDITIONAL.
710         (c_omp_predetermined_sharing): Don't return
711         OMP_CLAUSE_DEFAULT_SHARED for const qualified decls.
712         * c-pragma.c (omp_pragmas): Add PRAGMA_OMP_DEPOBJ and
713         PRAGMA_OMP_REQUIRES.
714         * c-pragma.h (enum pragma_kind): Likewise.
715         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_NONTEMPORAL
716         and PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION.
718 2018-11-08  David Malcolm  <dmalcolm@redhat.com>
720         * c-format.c (gcc_dump_printf_char_table): Add entry for %f.
722 2018-11-08  David Malcolm  <dmalcolm@redhat.com>
724         * c-format.c (local_cgraph_node_ptr_node): New variable.
725         (gcc_dump_printf_char_table): Add entry for %C.
726         (get_pointer_to_named_type): New function, taken from the handling
727         code for "gimple *" from...
728         (init_dynamic_diag_info): ...here.  Add handling for
729         "cgraph_node *".
730         * c-format.h (T_CGRAPH_NODE): New.
732 2018-10-19  Jason Merrill  <jason@redhat.com>
734         * c-cppbuiltin.c (c_cpp_builtins): Add
735         __cpp_nontype_template_parameter_class.
737 2018-10-31  Nathan Sidwell  <nathan@acm.org>
739         * c-opts.c (c_finish_options): Force command line macro
740         location.  Refactor to avoid repeating main debug hook.
741         (push_command_line_include): Clarify comment.
743         * c-opts.c (c_finish_options): Adjust cpp_force_token_locations call.
745 2018-10-30  Martin Sebor  <msebor@redhat.com>
747         PR middle-end/87041
748         * c-format.c (check_format_types): Avoid diagnosing null pointer
749         arguments to printf-family of functions.
751 2018-10-30  Marek Polacek  <polacek@redhat.com>
753         Implement P0892R2, explicit(bool).
754         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_explicit_bool.
756 2018-10-29  David Malcolm  <dmalcolm@redhat.com>
758         * name-hint.h (name_hint::take_deferred): New member function.
760 2018-10-29  David Malcolm  <dmalcolm@redhat.com>
762         PR c++/56856
763         * c-common.c (check_function_sentinel): Call fold_for_warn on the
764         argument.
765         (check_function_restrict): Rename param "argarray" to
766         "unfolded_argarray", and make a copy named "argarray", calling
767         fold_for_warn on each argument.
768         (check_function_arguments): Add note about responsibility for
769         folding the arguments.
771 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
773         * c-common.c (flag_isoc2x): New variable.
774         * c-common.h (clk_c): Update comment to reference C2X.
775         (flag_isoc99, flag_isoc11): Update comments to reference future
776         standard versions in general.
777         (flag_isoc2x): Declare.
778         * c-opts.c (set_std_c2x): New function.
779         (c_common_handle_option): Handle -std=c2x and -std=gnu2x.
780         (set_std_c89, set_std_c99, set_std_c11, set_std_c17): Set
781         flag_isoc2x to 0.
782         * c.opt (Wc11-c2x-compat, std=c2x, std=gnu2x): New options.
784 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
786         * c.opt (std=c17, std=c18, std=gnu17, std=gnu18, std=iso9899:2017)
787         (std=iso9899:2018): Document C17 as published in 2018.
789 2018-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
791         PR c++/87364
792         * c-pretty-print.c (c_pretty_printer::constant): Fix typo.
794 2018-10-11  Will Wray  <wjwray@gmail.com>
796         PR c++/87364
797         * c-pretty-print.h (pp_c_type_cast): Prototype.
798         (pp_c_integer_constant): Likewise.
799         * c-pretty-print.c (pp_c_type_cast): No longer static.
800         (pp_c_integer_constant): Likewise.
801         (pp_c_enumeration_constant): Fix loop termination when finding
802         name of constant.  No longer returns a value.  Call
803         pp_c_integer_constant.
804         (c_pretty_printer::constant): Update for changes to
805         pp_c_enumeration_constant.
807 2018-10-11  Jakub Jelinek  <jakub@redhat.com>
809         * c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312
810         for no_unique_address.
812 2018-10-09  David Malcolm  <dmalcolm@redhat.com>
814         * c-common.c (c_option_controlling_cpp_error): Rename to...
815         (c_option_controlling_cpp_diagnostic): ...this, and convert
816         "reason" from int to enum.
817         (c_cpp_error): Rename to...
818         (c_cpp_diagnostic): ...this, converting level and reason to enums.
819         * c-common.h (c_cpp_error): Rename to...
820         (c_cpp_diagnostic): ...this, converting level and reason to enums.
821         * c-opts.c (c_common_init_options): Update for renaming.
823 2018-10-08  Richard Sandiford  <richard.sandiford@arm.com>
825         PR c/87286
826         * c-common.c (vector_types_compatible_elements_p): Use
827         INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE.
829 2018-10-04  Vinay Kumar  <vinay.kumar@blackfigtech.com>
831         * c-attribs.c (get_priority): Add a warning flag warn_prio_ctor_dtor
832         to generate constructor destructor priority warning.
833         * c.opt (-Wprio-ctor-dtor): New option.
835 2018-10-01  Jason Merrill  <jason@redhat.com>
837         * c-lex.c (c_common_has_attribute): Add no_unique_address.
839 2018-10-01  Eric Botcazou  <ebotcazou@adacore.com>
841         * c-ada-spec.c (get_underlying_decl): Get to the main type variant.
842         (dump_ada_node): Add const keyword.
844 2018-09-25  Martin Liska  <mliska@suse.cz>
846         * c-common.c (c_common_truthvalue_conversion):
847         Remove Pascal from documentation.
849 2018-09-21  Eric Botcazou  <ebotcazou@adacore.com>
851         * c-ada-spec.c: Include diagnostic.h.
852         (dump_ada_declaration) <RECORD_TYPE>: Issue a warning on packed layout.
854 2018-09-19  Marek Polacek  <polacek@redhat.com>
856         * c.opt (Wclass-conversion): New.
858 2018-09-17  David Malcolm  <dmalcolm@redhat.com>
860         * c-format.c (range_label_for_format_type_mismatch::get_text):
861         Update for new param.
863 2018-09-17  David Malcolm  <dmalcolm@redhat.com>
865         * c-format.c (format_warning_at_char): Update for introduction of
866         format_string_diagnostic_t.
867         (format_type_warning): Likewise.
869 2018-09-17  Martin Jambor  <mjambor@suse.cz>
871         PR c/63886
872         * c.opt (Wabsolute-value): New.
874 2018-09-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
876         * c-common.c (complete_flexible_array_elts): New helper function.
877         * c-common.h (complete_flexible_array_elts): Declare.
879 2018-09-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
881         * c-common.c (braced_list_to_string): Remove eval parameter.
882         Add some more checks.  Always create zero-terminated STRING_CST.
883         * c-common.h (braced_list_to_string): Adjust prototype.
885 2018-08-27  David Malcolm  <dmalcolm@redhat.com>
887         PR 87091
888         * c-common.c (c_cpp_error): Update for conversion of show_caret_p
889         to a tri-state.
890         (maybe_suggest_missing_token_insertion): Likewise.
891         (maybe_add_include_fixit): Add param "override_location".  If set,
892         and source-printing is enabled, then override the rich_location's
893         primary location with that of the insertion point for the fix-it
894         hint, marking it with SHOW_LINES_WITHOUT_RANGE.
895         * c-common.h (extern void maybe_add_include_fixit): Add bool
896         param.
897         * c-format.c (selftest::test_type_mismatch_range_labels): Update
898         for conversion of show_caret_p to a tri-state.
899         * c-warn.c (warn_for_restrict): Likewise.
900         * known-headers.cc
901         (suggest_missing_header::~suggest_missing_header): Update call to
902         maybe_add_include_fixit to suggest overriding the location, as it
903         is for a note.
905 2018-08-27  Martin Liska  <mliska@suse.cz>
907         * c-common.c (check_function_restrict): Use new function
908         fndecl_built_in_p and remove check for FUNCTION_DECL if
909         possible.
910         (check_builtin_function_arguments): Likewise.
911         (reject_gcc_builtin): Likewise.
912         * c-warn.c (sizeof_pointer_memaccess_warning): Likewise.
914 2018-08-26  Marek Polacek  <polacek@redhat.com>
916         PR c++/87029, Implement -Wredundant-move.
917         * c.opt (Wredundant-move): New option.
919 2018-08-21  Marek Polacek  <polacek@redhat.com>
921         PR c++/86981, Implement -Wpessimizing-move.
922         * c.opt (Wpessimizing-move): New option.
924 2018-08-20  David Malcolm  <dmalcolm@redhat.com>
926         PR other/84889
927         * c-attribs.c (common_handle_aligned_attribute): Add
928         auto_diagnostic_group instance.
929         * c-indentation.c (warn_for_misleading_indentation): Likewise.
930         * c-opts.c (c_common_post_options): Likewise.
931         * c-warn.c (warn_logical_not_parentheses): Likewise.
932         (warn_duplicated_cond_add_or_warn): Likewise.
933         (warn_for_multistatement_macros): Likewise.
935 2018-08-20  Nathan Sidwell  <nathan@acm.org>
937         * c-ada-spec.c (macro_length, dump_ada_macros): Adjust macro parm
938         access.
940 2018-08-17  Nathan Sidwell  <nathan@acm.org>
942         * c-cppbuiltin.c (struct lazy_hex_fp_value_struct): Remove macro
943         field.
944         (laxy_hex_fp_value_count): Make unsigned.
945         (lazy_hex_fp_value): Provided with macro & lazy number.  Directly
946         manipulate the macro.
947         (builtin_defin_with_hex_fp_value): Adjust callback name, use
948         cpp_define_lazily.
950 2018-08-17  David Malcolm  <dmalcolm@redhat.com>
952         * c-format.c (enum format_type): Add gcc_dump_printf_format_type.
953         (gcc_dump_printf_length_specs): New.
954         (gcc_dump_printf_flag_pairs): New.
955         (gcc_dump_printf_flag_specs): New.
956         (gcc_dump_printf_char_table): New.
957         (format_types_orig): Add entry for "gcc_dump_printf".
958         (init_dynamic_diag_info): Set up length_char_specs and
959         conversion_specs for gcc_dump_printf_format_type.
960         (handle_format_attribute): Handle gcc_dump_printf_format_type.
962 2018-08-17  Nathan Sidwell  <nathan@acm.org>
964         * c-ada-spec.c (macro_length, dump_ada_macros): Constify.
966         * c-ada-spec.c: Don't #include "cpp-id-data.h"
967         * c-cppbuiltin.c: Likewise.
969 2018-08-17  Martin Liska  <mliska@suse.cz>
971         * c.opt: Remove Warn, Init and Report for options with
972         Ignore/Deprecated flag. Warning is done automatically for
973         Deprecated flags.
975 2018-08-16  David Malcolm  <dmalcolm@redhat.com>
977         PR c++/70693
978         * c-common.c (selftest::c_family_tests): Call
979         selftest::c_indentation_c_tests.
980         * c-common.h (selftest::c_indentation_c_tests): New decl.
981         * c-indentation.c: Include "selftest.h".
982         (next_tab_stop): Add "tab_width" param, rather than accessing
983         cpp_opts.
984         (get_visual_column): Likewise.  Clarify comment.  Bulletproof
985         against reading past the end of the line.
986         (get_first_nws_vis_column): Add "tab_width" param.
987         (detect_intervening_unindent): Likewise.
988         (should_warn_for_misleading_indentation): Read tab width from
989         cpp_opts and pass around.
990         (selftest::test_next_tab_stop): New test.
991         (selftest::assert_get_visual_column_succeeds): New function.
992         (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro.
993         (selftest::assert_get_visual_column_fails): New function.
994         (ASSERT_GET_VISUAL_COLUMN_FAILS): New macro.
995         (selftest::test_get_visual_column): New test.
996         (selftest::c_indentation_c_tests): New function.
998 2018-08-16  Nathan Sidwell  <nathan@acm.org>
1000         * c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p.
1001         (store_ada_macro): Likewise.
1002         * c-ppoutput.c (cb_used_define, dump_macro): Likewise.
1003         * c-spellcheck.cc (should-suggest_as_macro_p): Likewise,
1005 2018-08-15  David Malcolm  <dmalcolm@redhat.com>
1007         * c-format.c: Include "selftest-diagnostic.h" and
1008         "gcc-rich-location.h".
1009         (format_warning_at_char): Pass NULL for new label params of
1010         format_warning_va.
1011         (class indirection_suffix): New class.
1012         (class range_label_for_format_type_mismatch): New class.
1013         (format_type_warning): Move logic for generating "*" suffix to
1014         class indirection_suffix.  Create "fmt_label" and "param_label"
1015         to show their types, and pass them to the
1016         format_warning_at_substring calls.
1017         (selftest::test_type_mismatch_range_labels): New test.
1018         (selftest::c_format_c_tests): Call it.
1020 2018-08-13  Martin Sebor  <msebor@redhat.com>
1022         PR tree-optimization/71625
1023         * c-common.c (braced_list_to_string): New function.
1024         * c-common.h (braced_list_to_string): Declare it.
1026 2018-08-08  Nathan Sidwell  <nathan@acm.org>
1028         * c-common.c (try_to_locate_new_include_inertion_point): Use
1029         linemap_included_from_linemap.
1030         * c-lex.c (fe_file_change): Use linemap_included_from.
1031         * c-ppoutput.c (pp_file_change): Likewise.
1033 2018-08-01  Martin Sebor  <msebor@redhat.com>
1035         PR tree-optimization/86650
1036         * c-family/c-format.c (gcc_tdiag_char_table): Update comment for "%G".
1037         (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same.
1038         (init_dynamic_diag_info): Update from "gcall *" to "gimple *".
1039         * c-format.h (T89_G): Update to be "gimple *" rather than
1040         "gcall *".
1041         (local_gcall_ptr_node): Rename...
1042         (local_gimple_ptr_node): ...to this.
1044 2018-07-31  David Malcolm  <dmalcolm@redhat.com>
1046         * c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing
1047         table entries for gcc_diag_char_table, and the 'Z' entry from
1048         gcc_tdiag_char_table, changing the "chain" entry for 'Z' from
1049         &gcc_tdiag_char_table[0] to &gcc_diag_char_table[0].
1050         (gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly
1051         adding missing "Z" for this table.  Remove erroneous "G" and "K"
1052         entries.
1053         (gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE.  Remove "v".
1054         (gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE.
1055         (gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE.  Remove "v".
1057 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
1059         * c-common.c (speculation_safe_resolve_call): New function.
1060         (speculation_safe_resolve_params): New function.
1061         (speculation_safe_resolve_return): New function.
1062         (resolve_overloaded_builtin): Handle __builtin_speculation_safe_value.
1063         * c-cppbuiltin.c (c_cpp_builtins): Add pre-define for
1064         __HAVE_SPECULATION_SAFE_VALUE.
1066 2018-07-20  David Malcolm  <dmalcolm@redhat.com>
1068         * c-common.c (c_cpp_error): Remove redundant "line_table"
1069         parameter from call to rich_location::set_range.
1070         (maybe_suggest_missing_token_insertion): Likewise.
1072 2018-07-20  Martin Sebor  <msebor@redhat.com>
1074         PR middle-end/82063
1075         * gcc/c-family/c.opt (-Warray-bounds): Remove redundant -Wall.
1077 2018-07-20  Martin Sebor  <msebor@redhat.com>
1079         PR middle-end/82063
1080         * c-common.h (c_common_handle_option): Change function argument
1081         to HOST_WIDE_INT.
1082         * c-opts.c (c_common_init_options): Same.
1083         (c_common_handle_option): Same.  Remove special handling of
1084         OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_.
1085         * c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change
1086         options to take a HOST_WIDE_INT argument and accept a byte-size
1087         suffix.  Initialize.
1088         (-Wvla-larger-than): Same.
1089         (-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New.
1090         (-Wno-vla-larger-than): Same.
1092 2018-07-12  Jakub Jelinek  <jakub@redhat.com>
1094         * c-attribs.c (c_common_attribute_table): Add
1095         "omp declare target implicit" attribute.
1097 2018-07-12  Richard Biener  <rguenther@suse.de>
1099         PR c/86453
1100         * c-attribs.c (handle_packed_attribute): Do not build a variant
1101         type with TYPE_PACKED, instead ignore the attribute if we may
1102         not apply to the original type.
1104 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
1106         PR c++/86443
1107         * c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv
1108         to contain TREE_LIST for both the original class iterator and the
1109         "last" helper var.
1111 2018-07-07  Eric Botcazou  <ebotcazou@adacore.com>
1113         * c-ada-spec.c (to_ada_name): Remove index parameter.
1114         (pp_ada_tree_identifier): Likewise.
1115         (dump_ada_macros): Adjust call to to_ada_name.
1116         (struct overloaded_name_hash): Delete.
1117         (struct overloaded_name_hasher): Likewise.
1118         (overloaded_names): Likewise.
1119         (compute_overloading_index): Likewise.
1120         (dump_ada_decl_name): Do not call compute_overloading_index and
1121         adjust calls to pp_ada_tree_identifier.
1122         (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
1123         (dump_ada_import): Add spc parameter and switch to aspect syntax.
1124         (dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier.
1125         (dump_ada_enum_type): Remove type and display_convention parameters.
1126         Adjust calls to pp_ada_tree_identifier.
1127         (dump_ada_node): Likewise and for dump_ada_structure.
1128         (dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type
1129         and tidy up.
1130         <RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect
1131         syntax.
1132         (print_constructor): Adjust call to pp_ada_tree_identifier.
1133         (print_destructor): Likewise.
1134         (dump_ada_declaration): Switch to aspect syntax.
1135         (dump_ada_structure): Likewise and tidy up.  Replace display_convention
1136         parameter with nested parameter.
1137         (dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005.
1138         (dump_ada_specs): Do not delete overloaded_names table.
1140 2018-07-06  Peter Bergner  <bergner@linux.ibm.com>
1142         PR target/86324
1143         * c-attribs.c (handle_mode_attribute): Call translate_mode_attribute
1144         target hook.
1146 2018-07-05  Nathan Sidwell  <nathan@acm.org>
1148         * c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not
1149         NO_IMPLICIT_EXTERN_C.
1151 2018-06-28  Martin Liska  <mliska@suse.cz>
1153         * cppspec.c: Include opt-suggestions.h.
1155 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
1156             Thomas Schwinge <thomas@codesourcery.com>
1157             Cesar Philippidis  <cesar@codesourcery.com>
1159         * c-pragma.h (enum pragma_omp_clause): Add
1160         PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove
1161         PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}.
1163 2018-06-20  Jakub Jelinek  <jakub@redhat.com>
1165         PR c++/86210
1166         * c-common.c (check_nonnull_arg): Use fold_for_warn.  Adjust obsolete
1167         comment.
1169 2018-06-18  Martin Sebor  <msebor@redhat.com>
1171         PR middle-end/85602
1172         * c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute
1173         nonstring.
1175 2018-06-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
1177         * c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR.
1179 2018-06-13  Jason Merrill  <jason@redhat.com>
1181         * c-opts.c (c_common_post_options): Warn about useless -Wabi.
1182         (c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version
1183         handling.
1185         PR c++/86094 - wrong code with defaulted move ctor.
1186         * c-opts.c (c_common_post_options): Bump the current ABI version to
1187         13.  Set warn_abi_version and flag_abi_compat_version to the current
1188         version rather than 0.  Fix defaulting flag_abi_compat_version from
1189         warn_abi_version.
1191 2018-06-12  Martin Sebor  <msebor@redhat.com>
1193         PR c/85931
1194         * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when
1195         sizeof source and destination yields the same value.
1197 2018-06-12  Martin Liska  <mliska@suse.cz>
1199         * c.opt: Make MPX-related options as Deprecated.
1201 2018-06-08  David Malcolm  <dmalcolm@redhat.com>
1203         * c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE
1204         rather than 0.
1206 2018-06-08  Martin Liska  <mliska@suse.cz>
1208         * c-attribs.c (handle_bnd_variable_size_attribute): Remove support
1209         for MPX (macros, related functions, fields in cgraph_node, ...).
1210         (handle_bnd_legacy): Likewise.
1211         (handle_bnd_instrument): Likewise.
1212         * c.opt: Likewise.
1214 2018-06-06  Jakub Jelinek  <jakub@redhat.com>
1216         PR c++/86068
1217         * c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set
1218         __cpp_transactional_memory to 201500 instead of 210500.
1220 2018-06-06  Jason Merrill  <jason@redhat.com>
1222         PR c++/85710 - ICE with -Wmemset-elt-size.
1223         * c-warn.c (warn_for_memset): Don't crash on incomplete element type.
1225 2018-06-01  Jason Merrill  <jason@redhat.com>
1227         * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to
1228         201703.
1230 2018-06-01  Eric Botcazou  <ebotcazou@adacore.com>
1232         * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward
1233         declaration for a typedef independently of whether the declaration of
1234         the subtype is generated.
1236 2018-05-31  Martin Sebor  <msebor@redhat.com>
1238         PR c/82063
1239         * c.opt (-Wno-alloc-size-larger-than): New option.
1241 2018-04-22  David Pagan  <dave.pagan@oracle.com>
1243         PR c/55976
1244         * c-opts.c (c_common_post_options): Set default for warn_return_type
1245         for C++/C++ with ObjC extensions only. For C, makes it possible to 
1246         differentiate between default (no option), -Wreturn-type, and
1247         -Wno-return-type.
1249 2018-05-29  Jason Merrill  <jason@redhat.com>
1251         * c.opt (Winit-list-lifetime): New flag.
1253 2018-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1255         * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and
1256         splay_tree_delete_pointers.
1258 2018-05-26  Jakub Jelinek  <jakub@redhat.com>
1260         PR bootstrap/85921
1261         * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary
1262         noinline variable to workaround broken kernel headers.
1264 2018-05-18  Jason Merrill  <jason@redhat.com>
1266         * c.opt (Wdeprecated-copy): New flag.
1268 2018-05-17  Martin Liska  <mliska@suse.cz>
1270         * c-warn.c (overflow_warning): Do not use
1271         space in between 'G_' and '('.
1273 2018-05-09  Jason Merrill  <jason@redhat.com>
1275         * c-common.c (valid_array_size_p): Add complain parameter.
1276         * c-common.h: ...which defaults to true.
1278 2018-05-11  Jakub Jelinek  <jakub@redhat.com>
1280         PR c/85696
1281         * c-omp.c (c_omp_predetermined_sharing): Return
1282         OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.
1284 2018-05-11  Martin Liska  <mliska@suse.cz>
1286         PR sanitizer/85556
1287         * c-attribs.c (handle_no_sanitize_attribute): Iterate all
1288         TREE_LIST values.
1290 2018-05-10  Jakub Jelinek  <jakub@redhat.com>
1292         PR c++/85662
1293         * c-common.h (fold_offsetof_1): Removed.
1294         (fold_offsetof): Add TYPE argument defaulted to size_type_node and
1295         CTX argument defaulted to ERROR_MARK.
1296         * c-common.c (fold_offsetof_1): Renamed to ...
1297         (fold_offsetof): ... this.  Remove wrapper function.  Add TYPE
1298         argument, convert the pointer constant to TYPE and use size_binop
1299         with PLUS_EXPR instead of fold_build_pointer_plus if type is not
1300         a pointer type.  Adjust recursive calls.
1302 2018-05-10  Eric Botcazou  <ebotcazou@adacore.com>
1304         PR c++/85400
1305         * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs.
1307 2018-05-07  Nathan Sidwell  <nathan@acm.org>
1309         * c.opt (ffor-scope): Remove functionality, issue warning.
1311 2018-05-03  Nathan Sidwell  <nathan@acm.org>
1313         * c.opt (ffriend-injection): Remove functionality, issue warning.
1315 2018-05-01  David Malcolm  <dmalcolm@redhat.com>
1317         PR c/84258
1318         * c-format.c (struct format_check_results): Add field
1319         "number_non_char".
1320         (check_format_info): Initialize it, and warn if encountered.
1321         (check_format_arg): Distinguish between wide char and
1322         everything else when detecting arrays of non-char.
1324 2018-04-30  David Malcolm  <dmalcolm@redhat.com>
1326         * c-format.c (get_corrected_substring): Update for
1327         location_get_source_line returning a char_span.  Use a char_span
1328         when handling the prefix of the correction.
1329         * c-indentation.c (get_visual_column): Update for
1330         location_get_source_line returning a char_span.
1331         (get_first_nws_vis_column): Likewise.
1333 2018-03-29  David Malcolm  <dmalcolm@redhat.com>
1335         PR c++/84269
1336         * known-headers.cc (get_stdlib_header_for_name): Add various names
1337         from <assert.h>, <string.h>, and <memory.h>; add more names from
1338         <stdio.h>.
1340 2018-03-27  Jakub Jelinek  <jakub@redhat.com>
1342         PR c++/85061
1343         * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that
1344         get_base_address of the second operand is a VAR_P, rather than the
1345         operand itself, and use gcc_checking_assert instead of gcc_assert.
1347 2018-03-23  Marek Polacek  <polacek@redhat.com>
1349         PR c++/85045
1350         * c-pretty-print.c (c_pretty_printer::multiplicative_expression)
1351         <case RDIV_EXPR>: Tweak condition.
1353 2018-03-20  Eric Botcazou  <ebotcazou@adacore.com>
1355         * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool.
1357 2018-03-16  Jakub Jelinek  <jakub@redhat.com>
1359         PR c/84909
1360         * c-warn.c (conversion_warning): Replace "to to" with "to" in
1361         diagnostics.
1363         PR c/84910
1364         * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
1365         diagnostics.
1367 2018-03-16  Richard Biener  <rguenther@suse.de>
1369         PR c/84873
1370         * c-gimplify.c (c_gimplify_expr): Revert previous change.  Instead
1371         unshare the possibly folded expression.
1373 2018-03-15  Richard Biener  <rguenther@suse.de>
1375         PR c/84873
1376         * c-gimplify.c (c_gimplify_expr): Do not fold expressions.
1378 2018-03-13  Martin Sebor  <msebor@redhat.com>
1380         PR tree-optimization/84725
1381         * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring
1382         with all three narrow character types, including their qualified forms.
1384 2018-03-12  Martin Sebor  <msebor@redhat.com>
1386         PR tree-optimization/83456
1387         * gcc/c-family/c-common.c (check_function_restrict): Return bool.
1388         Restore checking of bounded built-in functions.
1389         (check_function_arguments): Also return the result
1390         of warn_for_restrict.
1391         * gcc/c-family/c-common.c (check_function_restrict): Return bool.
1392         * gcc/c-family/c-warn.c (warn_for_restrict): Return bool.
1394 2018-03-02  Marek Polacek  <polacek@redhat.com>
1396         PR c++/84171
1397         * c-warn.c (warn_for_sign_compare): Bail out if any of the operands
1398         is erroneous.
1400 2018-03-02  Thomas Schwinge  <thomas@codesourcery.com>
1402         * c-attribs.c (c_common_attribute_table): Remove "cilk simd
1403         function".
1405 2018-03-01  Marek Polacek  <polacek@redhat.com>
1407         PR c++/84639
1408         * c-attribs.c (common_handle_aligned_attribute): Don't use invalid
1409         alignment in computation.
1411 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
1413         * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case.
1414         <REAL_TYPE>: Deal specifically with _Float128/__float128.
1416 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
1418         * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case.
1419         (is_char_array): Take a type instead of a declaration.
1420         (dump_ada_array_type): Likewise.
1421         (is_simple_enum): Minor tweak.
1422         (dump_ada_enum_type): New function extracted from...
1423         (dump_ada_node) <ENUMERAL_TYPE>: ...here.  Invoke it.
1424         <INTEGER_TYPE>: Remove unreachable code.
1425         <RECORD_TYPE>: Likewise.  Minor tweaks.
1426         (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes.
1427         <ENUMERAL_TYPE>: New case.
1428         <RECORD_TYPE>: Factor out common code.
1429         (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes.
1430         Minor tweaks.  Deal with enumeral types.
1431         (dump_ada_structure): Minor tweaks.
1433 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
1435         * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic
1436         address for incomplete structures.
1437         (dump_forward_type): Do not bail out for incomplete structures.
1438         (dump_ada_declaration): Do not special-case incomplete structures
1439         for subtypes.  Dump them as null records for types.
1441 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
1443         * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
1444         (is_char_array): Fix formatting.
1445         (dump_template_types): Likewise.
1446         (dump_generic_ada_node): Rename into...
1447         (dump_ada_node): ...this.
1448         <POINTER_TYPE>: Remove superfluous space.  Use generic address for
1449         incomplete structures and not for empty structures.  Do not use it
1450         when forward declarations are needed.
1451         (dump_forward_type): New function.
1452         (dump_nested_types): Remove FORWARD parameter.  Do not consider
1453         TREE_VISITED and do not generate a forward declaration.  Only dump
1454         original nested types for nested declaration.
1455         (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
1456         <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
1457         <RECORD_TYPE>: Do not consider TREE_VISITED.
1458         (dump_ada_declaration): Use booleans and fix formatting throughout.
1459         <TYPE_DECL>: Skip incomplete structures and not empty structures.
1460         Call dump_forward_type instead of dump_nested_types for a typedef.
1461         Remove superfluous check and adjust call to dump_nested_types.
1462         <POINTER_TYPE>: Call dump_forward_type and fall through.
1463         (dump_ada_struct_decl): Rename into...
1464         (dump_ada_structure): ...this.  Do not special-case empty structures.
1466 2018-02-27  Martin Sebor  <msebor@redhat.com>
1468         PR c++/83871
1469         * c.opt (-Wmissing-attributes): New option.
1471 2018-02-21  Martin Liska  <mliska@suse.cz>
1473         * c.opt (Wcatch-value=): Add IntegerRange.
1475 2018-02-15  Jason Merrill  <jason@redhat.com>
1477         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
1479 2018-02-09  Nathan Sidwell  <nathan@acm.org>
1481         PR c/84293
1482         * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
1483         arg.
1484         * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
1485         arg.  Adjust.
1487 2018-02-09  Martin Sebor  <msebor@redhat.com>
1489         PR lto/84212
1490         * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
1491         (-Walloc-size-larger-than, -Wformat-truncation=): Same.
1492         (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
1493         (-Wstrict-overflow, -Wsuggest-attribute): Same.
1494         (-Wuninitialized): Same.
1496 2018-02-09  Eric Botcazou  <ebotcazou@adacore.com>
1498         * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
1499         keyword for components.
1501 2018-02-02  Paolo Carlini  <paolo.carlini@oracle.com>
1503         * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
1505 2018-02-02  Julia Koval  <julia.koval@intel.com>
1507         * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
1509 2018-01-29  Marek Polacek  <polacek@redhat.com>
1511         PR c/83966
1512         * c-format.c (check_function_format): Check current_function_decl.
1514 2018-01-27  Jakub Jelinek  <jakub@redhat.com>
1516         * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
1517         argument.
1518         (LAZY_HEX_FP_VALUES_CNT): Define.
1519         (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
1520         values rather than just 12.
1521         (builtin_define_with_hex_fp_value): Likewise.
1523 2018-01-18  Boris Kolpackov  <boris@codesynthesis.com>
1525         PR other/70268
1526         * c.opt (-fmacro-prefix-map): New option.
1527         * c-opts.c (c_common_handle_option): Handle it.
1528         * c-lex.c (init_c_lex): Set remap_filename cpp callback.
1529         * c-ppoutput.c (init_pp_output): Likewise.
1531 2018-01-17  David Malcolm  <dmalcolm@redhat.com>
1533         PR c++/83814
1534         * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
1536 2018-01-10  Eric Botcazou  <ebotcazou@adacore.com>
1538         * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
1539         Skip 'f' and 'F' characters if it is true.
1540         (store_ada_macro): Minor tweak.
1541         (dump_ada_macros) <CPP_COMMENT>: Likewise.
1542         <CPP_WSTRING>: Likewise.
1543         <CPP_STRING>: Output '&' in the buffer if not the first string.
1544         <CPP_NUMBER>: Adjust calls to dump_number.
1546 2018-01-10  David Malcolm  <dmalcolm@redhat.com>
1548         PR c++/43486
1549         * c-common.c: Include "selftest.h".
1550         (get_atomic_generic_size): Perform the test for integral type
1551         before the range test for any integer constant, fixing indentation
1552         of braces.  Call fold_for_warn before testing for an INTEGER_CST.
1553         (reject_gcc_builtin): Strip any location wrapper from EXPR.
1554         (selftest::test_fold_for_warn): New function.
1555         (selftest::c_common_c_tests): New function.
1556         (selftest::c_family_tests): Call it, and
1557         selftest::c_pretty_print_c_tests.
1558         * c-common.h (selftest::c_pretty_print_c_tests): New decl.
1559         * c-format.c (check_format_arg): Convert VAR_P check to a
1560         fold_for_warn.
1561         * c-pretty-print.c: Include "selftest.h".
1562         (pp_c_cast_expression): Don't print casts for location wrappers.
1563         (selftest::assert_c_pretty_printer_output): New function.
1564         (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
1565         (selftest::test_location_wrappers): New function.
1566         (selftest::c_pretty_print_c_tests): New function.
1567         * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
1569 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
1570             Alan Hayward  <alan.hayward@arm.com>
1571             David Sherwood  <david.sherwood@arm.com>
1573         * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
1575 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
1576             Alan Hayward  <alan.hayward@arm.com>
1577             David Sherwood  <david.sherwood@arm.com>
1579         * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
1580         as polynomial.
1582 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
1583             Alan Hayward  <alan.hayward@arm.com>
1584             David Sherwood  <david.sherwood@arm.com>
1586         * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
1587         (convert_vector_to_array_for_subscript): Handle polynomial
1588         TYPE_VECTOR_SUBPARTS.
1589         (c_common_type_for_mode): Check valid_vector_subparts_p.
1590         * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
1591         VECTOR_CST_NELTS.
1593 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
1595         Update copyright years.
1597 2017-12-22  Mike Stump  <mikestump@comcast.net>
1598             Eric Botcazou  <ebotcazou@adacore.com>
1600         * c-pragma.c (init_pragma): Register pragma GCC unroll.
1601         * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
1603 2017-12-22  Alexandre Oliva <aoliva@redhat.com>
1605         PR debug/83527
1606         PR debug/83419
1607         * c-semantics.c (only_debug_stmts_after_p): New.
1608         (pop_stmt_list): Clear side effects in debug-only stmt list.
1609         Check for single nondebug stmt followed by debug stmts only.
1611 2017-12-21  Alexandre Oliva  <aoliva@redhat.com>
1613         PR debug/83419
1614         * c-semantics.c (pop_stmt_list): Propagate side effects from
1615         single nondebug stmt to container list.
1617 2017-12-19  Jakub Jelinek  <jakub@redhat.com>
1619         * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
1620         conditions with typical order conditions.
1622 2017-12-18  Marek Polacek  <polacek@redhat.com>
1624         * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
1625         not in effect.
1627 2017-12-17  Martin Sebor  <msebor@redhat.com>
1629         * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
1630         an error for attribute warn_if_not_aligned.
1632 2017-12-16  Martin Sebor  <msebor@redhat.com>
1634         PR tree-optimization/78918
1635         * c-common.c (check_function_restrict): Avoid checking built-ins.
1636         * c.opt (-Wrestrict): Include in -Wall.
1638 2017-12-15  Jakub Jelinek  <jakub@redhat.com>
1640         * c-attribs.c (c_common_attribute_table,
1641         c_common_format_attribute_table): Swap affects_type_identity
1642         and handler fields, adjust comments.
1644 2017-12-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1646         * c.opt (Wcast-function-type): New warning option.
1647         * c-lex.c (get_fileinfo): Avoid warning.
1648         * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
1650 2017-12-14  Qing Zhao  <qing.zhao@oracle.com>
1652         PR middle_end/79538
1653         * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
1654         Adjust the size of buf1 and buf2, add a new buf to avoid
1655         format-overflow warning.
1657 2017-12-12  Alexandre Oliva <aoliva@redhat.com>
1659         * c-semantics.c (pop_stmt_list): Move begin stmt marker into
1660         subsequent statement list.
1662 2017-12-07  Martin Sebor  <msebor@redhat.com>
1664         PR c/81544
1665         PR c/81566
1666         * c-attribs.c (attr_aligned_exclusions): New array.
1667         (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
1668         (attr_common_exclusions, attr_const_pure_exclusions): Same.
1669         (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
1670         (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
1671         (attr_warn_unused_result_exclusions): Same.
1672         (handle_hot_attribute, handle_cold_attribute): Simplify.
1673         (handle_const_attribute): Warn on function returning void.
1674         (handle_pure_attribute): Same.
1675         (handle_aligned_attribute): Diagnose conflicting attribute
1676         specifications.
1677         * c-warn.c (diagnose_mismatched_attributes): Simplify.
1679 2017-12-06  David Malcolm  <dmalcolm@redhat.com>
1681         PR c/83236
1682         * c-common.c (selftest::c_family_tests): Call
1683         selftest::c_spellcheck_cc_tests.
1684         * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
1685         * c-spellcheck.cc: Include "selftest.h".
1686         (name_reserved_for_implementation_p): New function.
1687         (should_suggest_as_macro_p): New function.
1688         (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
1689         should_suggest_as_macro_p and call it.
1690         (selftest::test_name_reserved_for_implementation_p): New function.
1691         (selftest::c_spellcheck_cc_tests): New function.
1692         * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
1694 2017-12-06  David Malcolm  <dmalcolm@redhat.com>
1696         * c-spellcheck.cc: New file, taken from macro-handling code in
1697         spellcheck-tree.c.
1698         * c-spellcheck.h: New file, taken from macro-handling code in
1699         spellcheck-tree.h.
1701 2017-12-01  Jakub Jelinek  <jakub@redhat.com>
1703         * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
1704         attribute.
1705         (handle_simd_attribute): Don't check for "cilk simd function"
1706         attribute.  Reindent, formatting changes.
1708 2017-11-30  Julia Koval  <julia.koval@intel.com>
1710         * c-common.h (inv_list): Remove.
1712 2017-11-28  Jakub Jelinek  <jakub@redhat.com>
1714         PR sanitizer/81275
1715         * c-common.c (c_switch_covers_all_cases_p_1,
1716         c_switch_covers_all_cases_p): New functions.
1717         * c-common.h (c_switch_covers_all_cases_p): Declare.
1719 2017-11-28  Julia Koval  <julia.koval@intel.com>
1720             Sebastian Peryt  <sebastian.peryt@intel.com>
1722         * array-notation-common.c: Delete.
1723         * c-cilkplus.c: Ditto.
1724         * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
1725         * c-common.def (ARRAY_NOTATION_REF): Remove.
1726         * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
1727         build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
1728         c_validate_cilk_plus_loop, cilkplus_an_parts,
1729         cilk_ignorable_spawn_rhs_op,
1730         cilk_recognize_spawn): Remove.
1731         * c-gimplify.c (CILK_SPAWN_STMT): Remove.
1732         * c-omp.c: Remove CILK_SIMD check.
1733         * c-pragma.c: Ditto.
1734         * c-pragma.h: Remove CILK related pragmas.
1735         * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
1736         ARRAY_NOTATION_REF condition.
1737         (c_pretty_printer::expression): Ditto.
1738         * c.opt (fcilkplus): Remove.
1739         * cilk.c: Delete.
1741 2017-11-21  Marc Glisse  <marc.glisse@inria.fr>
1743         * c-pretty-print.c (pp_c_additive_expression,
1744         c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
1746 2017-11-21  Jakub Jelinek  <jakub@redhat.com>
1748         * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
1750         PR c++/83059
1751         * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
1752         instead of tree_to_uhwi, formatting fix.
1754 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
1756         PR c/81404
1757         * known-headers.cc: New file, based on material from c/c-decl.c.
1758         (suggest_missing_header): Copied as-is.
1759         (get_stdlib_header_for_name): New, based on get_c_name_hint but
1760         heavily edited to add C++ support.  Add some knowledge about
1761         <limits.h>, <stdint.h>, and <wchar.h>.
1762         * known-headers.h: Likewise.
1764 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
1766         * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
1767         (lookup_name_fuzzy): Likewise.  Convert return type from
1768         const char * to name_hint.  Add location_t param.
1769         * name-hint.h: New header.
1771 2017-11-19  Jakub Jelinek  <jakub@redhat.com>
1773         PR c/66618
1774         PR c/69960
1775         * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
1777 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
1779         * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
1780         expected publication date of C17.
1781         (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
1783 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
1785         PR c/81156
1786         * c-common.c (c_common_reswords): Add __builtin_tgmath.
1787         * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
1789 2017-11-10  Martin Sebor  <msebor@redhat.com>
1791         PR c/81117
1792         * c-common.c (catenate_strings): Use memcpy instead of strncpy.
1793         * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
1794         * c.opt (-Wstringop-truncation): New option.
1796 2017-11-06  Martin Liska  <mliska@suse.cz>
1798         PR middle-end/82404
1799         * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
1800         FE.
1801         * c.opt: Set default value of warn_return_type.
1803 2017-10-31  David Malcolm  <dmalcolm@redhat.com>
1805         * c-common.c (binary_op_error): Update for renaming of
1806         error_at_rich_loc.
1807         (c_parse_error): Likewise.
1808         * c-warn.c (warn_logical_not_parentheses): Likewise for
1809         renaming of inform_at_rich_loc.
1810         (warn_for_restrict): Likewise for renaming of
1811         warning_at_rich_loc_n.
1813 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
1815         * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
1816         * c-opts.c (set_std_c17): New function.
1817         (c_common_init_options): Use gnu17 as default C version.
1818         (c_common_handle_option): Handle -std=c17 and -std=gnu17.
1820 2017-10-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
1822         * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
1823         (c_cpp_builtins): If a machine has a fast fma _Float<N> and
1824         _Float<N>X variant, define __FP_FAST_FMA<N> and/or
1825         __FP_FAST_FMA<N>X.
1827 2017-10-23  Marek Polacek  <polacek@redhat.com>
1829         PR c/82681
1830         * c-warn.c (warnings_for_convert_and_check): Fix typos.
1832 2017-10-19  Eric Botcazou  <ebotcazou@adacore.com>
1834         * c-common.c (check_builtin_function_arguments): Also check arguments
1835         of __builtin_alloca_with_align_and_max.
1837 2017-10-17  David Malcolm  <dmalcolm@redhat.com>
1839         * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
1840         rather than NULL to format_warning_va.
1841         (check_format_types): Likewise when calling format_type_warning.
1842         Remove code to extract source_ranges and source_range * in favor
1843         of just a location_t.
1844         (format_type_warning): Convert source_range * param to a
1845         location_t.
1847 2017-10-13  Jakub Jelinek  <jakub@redhat.com>
1849         * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
1850         [LR]SHIFT_EXPR.
1852 2017-10-12  David Malcolm  <dmalcolm@redhat.com>
1854         * c-common.c (enum missing_token_insertion_kind): New enum.
1855         (get_missing_token_insertion_kind): New function.
1856         (maybe_suggest_missing_token_insertion): New function.
1857         * c-common.h (maybe_suggest_missing_token_insertion): New decl.
1859 2017-10-11  Nathan Sidwell  <nathan@acm.org>
1861         * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
1862         (c_common_handle_option): Update incpath_kind names.
1864 2017-10-11  Martin Liska  <mliska@suse.cz>
1866         PR sanitizer/82490
1867         * c-attribs.c (handle_no_sanitize_attribute): Report directly
1868         Wattributes warning.
1870 2017-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
1872         * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
1873         operating on trees as wide_ints.
1874         * c-common.c (pointer_int_sum): Likewise.
1875         * c-pretty-print.c (pp_c_integer_constant): Likewise.
1876         * c-warn.c (match_case_to_enum_1): Likewise.
1877         (c_do_switch_warnings): Likewise.
1878         (maybe_warn_shift_overflow): Likewise.
1880 2017-10-10  Jakub Jelinek  <jakub@redhat.com>
1882         PR c/82437
1883         * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
1884         instead of wide_int::from.
1886 2017-10-06  Jakub Jelinek  <jakub@redhat.com>
1888         PR c/82437
1889         * c-warn.c (warn_tautological_bitwise_comparison): Instead of
1890         using to_widest use wide_int with the larger of the two precisions.
1892 2017-10-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1894         * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
1895         functions.
1897 2017-10-02  Richard Sandiford  <richard.sandiford@linaro.org>
1899         * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
1900         when combining the original unconverted comparison operands.
1902 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
1904         * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
1905         attribute.
1907 2017-09-29  Eric Botcazou  <ebotcazou@adacore.com>
1909         * c-ada-spec.c (to_ada_name): Add index parameter.
1910         (pp_ada_tree_identifier): Likewise.
1911         (dump_ada_macros): Adjust call to to_ada_name.
1912         (struct overloaded_name_hash): New type.
1913         (struct overloaded_name_hasher): Likewise.
1914         (overloaded_names): New hash table.
1915         (compute_overloading_index): New function.
1916         (dump_ada_decl_name): Call it and pass the result to
1917         pp_ada_tree_identifier.
1918         (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
1919         (dump_ada_function_declaration): Likewise.
1920         (dump_generic_ada_node): Likewise.
1921         (print_constructor): Likewise.
1922         (print_destructor): Likewise.
1923         (dump_ada_specs): Delete overloaded_names table.
1925 2017-09-29  Eric Botcazou  <ebotcazou@adacore.com>
1927         * c-ada-spec.c (max_ada_macros): Move around.
1928         (store_ada_macro_index): Likewise.
1929         (source_file): Rename into...
1930         (macro_source_file): ...this.
1931         (count_ada_macro): Move around.
1932         (store_ada_macro): Likewise.
1933         (compare_macro): Likewise.
1934         (print_ada_macros): Merge in...
1935         (dump_ada_macros): ...this.
1936         (source_file_base): Rename into...
1937         (current_source_file): ...this.
1938         (print_comment): Move around.
1939         (dump_ada_nodes): Call dump_ada_declaration directly.
1940         (struct with): Change type of limited field to bool.
1941         (append_withs): Change type of limited_access parameter to bool.
1942         (pp_ada_tree_identifie): Likewise.
1943         (dump_ada_decl_nam): Likewise.
1944         (dump_generic_ada_node): Likewise.  Do not print the return type.
1945         (to_ada_name): Change type of space_found parameter to bool.
1946         (dump_ada_function_declaration): Return void and change type of
1947         parameters to bool.  Also print the return type for a function.
1948         (print_ada_methods): Rename into...
1949         (dump_ada_methods): ...this.
1950         (print_ada_declaration): Rename into ...
1951         (dump_ada_declaration): ...this.  Do not print the return type.
1952         (print_ada_struct_decl): Rename into...
1953         (dump_ada_struct_decl): ...this.
1955 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
1957         * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
1958         rather than DECL_INITIAL.
1959         (common_handle_aligned_attribute): Likewise.
1961 2017-09-20  Alexandre Oliva <aoliva@redhat.com>
1963         * c.opt (gen-decls): Add RejectNegative.
1965 2017-09-15  Andrew Sutton  <andrew.n.sutton@gmail.com>
1966             Jakub Jelinek  <jakub@redhat.com>
1968         Add support for -std=c++2a.
1969         * c-common.h (cxx_dialect): Add cxx2a as a dialect.
1970         * opt.c: Add options for -std=c++2a and -std=gnu++2a.
1971         * c-opts.c (set_std_cxx2a): New.
1972         (c_common_handle_option): Set options when -std=c++2a is enabled.
1973         (c_common_post_options): Adjust comments.
1974         (set_std_cxx14, set_std_cxx17): Likewise.
1976 2017-09-15  Eric Botcazou  <ebotcazou@adacore.com>
1978         * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
1979         message for non-uniform endianness and issue a warning in C++.
1981 2017-09-15  Jakub Jelinek  <jakub@redhat.com>
1983         * c.opt (Wc++1z-compat): Change from option to undocumented alias.
1984         (Wc++17-compat): Change from undocumented alias to option.
1985         (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
1986         change C++1z to C++17 in description.
1987         (std=c++1z, std=gnu++1z): Change from option to undocumented
1988         deprecated alias.
1989         (std=c++17, std=gnu++17): Change from undocumented alias to option.
1990         Adjust description.
1991         * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
1992         * c-opts.c (set_std_cxx1z): Rename to ...
1993         (set_std_cxx17): ... this.
1994         (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
1995         and OPT_std_gnu__1z to OPT_std_gnu__17.  Adjust set_std_cxx1z
1996         caller.
1997         (c_common_post_options): Use cxx17 instead of cxx1z.  Adjust
1998         comments.
2000 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
2002         * c-attribs.c (common_handle_aligned_attribute): Don't warn
2003         function alignment if warn_if_not_aligned_p is true.
2005 2017-09-12  Nathan Sidwell  <nathan@acm.org>
2007         * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
2008         resort_sorted_fields): Move to c/c-decl.c.
2009         * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
2010         (struct sorted_fields_type): Move to c/c-lang.h.
2012 2017-09-09  Jonathan Wakely  <jwakely@redhat.com>
2014         PR c++/81852
2015         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
2017 2017-09-04  Marek Polacek  <polacek@redhat.com>
2019         PR c/81783
2020         * c-warn.c (warn_tautological_bitwise_comparison): New function.
2021         (warn_tautological_cmp): Call it.
2023 2017-09-01  Boris Kolpackov <boris@codesynthesis.com>
2025         * c-opts.c (c_common_finish): Write dependency information even if
2026         there are errors.
2028 2017-09-01  Jakub Jelinek  <jakub@redhat.com>
2030         PR c/81887
2031         * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
2032         (omp_pragmas_simd): ... here.
2033         * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
2034         create new clauses list containing just simd clause.
2036 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
2037             Alan Hayward  <alan.hayward@arm.com>
2038             David Sherwood  <david.sherwood@arm.com>
2040         * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
2041         into scalar_mode_supported_p call.
2042         (handle_mode_attribute): Update call to scalar_mode_supported_p.
2044 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
2045             Alan Hayward  <alan.hayward@arm.com>
2046             David Sherwood  <david.sherwood@arm.com>
2048         * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
2049         for the mode iterator.
2051 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
2052             Alan Hayward  <alan.hayward@arm.com>
2053             David Sherwood  <david.sherwood@arm.com>
2055         * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
2056         * c-common.c (c_build_vec_perm_expr): Likewise.
2058 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
2059             Alan Hayward  <alan.hayward@arm.com>
2060             David Sherwood  <david.sherwood@arm.com>
2062         * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
2064 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
2065             Alan Hayward  <alan.hayward@arm.com>
2066             David Sherwood  <david.sherwood@arm.com>
2068         * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
2069         before calling targetm.addr_space.valid_pointer_mode.
2071 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
2072             Alan Hayward  <alan.hayward@arm.com>
2073             David Sherwood  <david.sherwood@arm.com>
2075         * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
2077 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
2078             Alan Hayward  <alan.hayward@arm.com>
2079             David Sherwood  <david.sherwood@arm.com>
2081         * c-common.c (c_common_fixed_point_type_for_size): Use new mode
2082         iterators.
2083         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2085 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
2086             Alan Hayward  <alan.hayward@arm.com>
2087             David Sherwood  <david.sherwood@arm.com>
2089         * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
2090         case statements.
2092 2017-08-29  Martin Liska  <mliska@suse.cz>
2094         PR other/39851
2095         * c-common.c (parse_optimize_options): Add argument to function
2096         call.
2097         * c-pragma.c (handle_pragma_diagnostic): Likewise.
2099 2017-08-24  David Malcolm  <dmalcolm@redhat.com>
2101         * c-lex.c (interpret_float): Use token location
2102         when building an EXCESS_PRECISION_EXPR.
2104 2017-08-21  David Malcolm  <dmalcolm@redhat.com>
2106         * c-common.c (check_function_arguments): Add "arglogs" param; pass
2107         it to check_function_format.
2108         * c-common.h (check_function_arguments): Add vec<location_t> *
2109         param.
2110         (check_function_format): Likewise.
2111         * c-format.c (struct format_check_context): Add field "arglocs".
2112         (check_function_format): Add param "arglocs"; pass it to
2113         check_format_info.
2114         (check_format_info):  Add param "arglocs"; use it to initialize
2115         new field of format_ctx.
2116         (check_format_arg): Pass format_ctx->arglocs to new param of
2117         check_format_info_main.
2118         (class argument_parser): New field "arglocs".
2119         (argument_parser::argument_parser): Add "arglocs_" param and use
2120         it to initialize new field.
2121         (argument_parser::check_argument_type): Pass new arglocs field to
2122         check_format_types.
2123         (check_format_info_main): Add param "arglocs", and use it when
2124         constructing arg_parser.
2125         (check_format_types): Add param "arglocs"; use it if non-NULL when
2126         !EXPR_HAS_LOCATION (cur_param) to get at location information.
2128 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
2130         PR c/53037
2131         * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
2132         (c_common_attribute_table): Add warn_if_not_aligned.
2133         (handle_aligned_attribute): Renamed to ...
2134         (common_handle_aligned_attribute): Remove argument, name, and add
2135         argument, warn_if_not_aligned.  Handle warn_if_not_aligned.
2136         (handle_aligned_attribute): New.
2137         * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
2139 2017-08-14  Martin Sebor  <msebor@redhat.com>
2141         PR c/81117
2142         * c-attribs.c (c_common_attribute_table): Add nonstring entry.
2143         (handle_nonstring_attribute): New function.
2145 2017-08-14  Martin Sebor  <msebor@redhat.com>
2147         PR c/81117
2148         * c-format.h (T89_G): New macro.
2149         * c-format.c (local_gcall_ptr_node): New variable.
2150         (init_dynamic_diag_info): Initialize it.
2152 2017-08-11  Martin Liska  <mliska@suse.cz>
2154         * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
2155         TARGET_SUPPORTS_ALIASES.
2157 2017-08-10  David Malcolm  <dmalcolm@redhat.com>
2159         * c-common.c (c_parse_error): Add rich_location * param, using it
2160         rather implicitly using input_location.
2161         * c-common.h (c_parse_error): Add rich_location * param.
2163 2017-08-09  Marek Polacek  <polacek@redhat.com>
2165         * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
2166         (c_common_truthvalue_conversion): Likewise.
2167         * c-omp.c (c_finish_omp_atomic): Likewise.
2168         * c-common.h (build_binary_op): Update declaration.
2170 2017-08-08  Martin Liska  <mliska@suse.cz>
2172         * c-ada-spec.c: Include header files.
2173         * c-ubsan.c: Likewise.
2174         * c-warn.c: Likewise.
2176 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
2178         PR c/69389
2179         * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
2181 2017-08-07  Eric Botcazou  <ebotcazou@adacore.com>
2183         * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
2184         (print_ada_methods): Likewise.
2185         (print_ada_declaration): Likewise.
2187 2017-08-07  Martin Liska  <mliska@suse.cz>
2189         * array-notation-common.c: Add new includes.
2190         * c-format.c( handle_format_attribute): Canonicalize a format
2191         function name.
2192         * c-lex.c (c_common_has_attribute): Canonicalize name of an
2193         attribute.
2194         * c-pretty-print.c: Add new include.
2196 2017-08-05  Eric Botcazou  <ebotcazou@adacore.com>
2198         * c-ada-spec.c (has_static_fields): Look only into variables.
2199         (print_constructor): Add TYPE parameter and use it for the name.
2200         (print_destructor): Likewise.
2201         (print_ada_declaration): Adjust to new constructor/destructor names.
2202         Adjust calls to print_constructor and print_destructor.
2203         (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
2204         Look only into variables in the final loop.
2206 2017-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2208         * c-ada-spec.c (has_static_fields): Look only into fields.
2209         (dump_generic_ada_node): Small tweak.
2210         (dump_nested_types): Look only into fields.
2211         (print_ada_declaration): Look only into methods.  Small tweak.
2212         (print_ada_struct_decl): Look only into fields.  Use DECL_VIRTUAL_P.
2214 2017-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2216         * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
2217         (dump_ada_function_declaration): Likewise.
2218         (dump_generic_ada_node): Likewise.
2219         (print_ada_declaration): Add support for const-qualified variables.
2221 2017-07-31  Martin Liska  <mliska@suse.cz>
2223         PR sanitize/81530
2224         * c-ubsan.c (ubsan_maybe_instrument_array_ref):
2225         Guard condition with flag_sanitize_p also with current_function_decl
2226         non-null equality.
2227         (ubsan_maybe_instrument_reference_or_call): Likewise.
2229 2017-07-30  Uros Bizjak  <ubizjak@gmail.com>
2231         * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
2233 2017-07-29  Eric Botcazou  <ebotcazou@adacore.com>
2235         * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
2236         for enumeral types.
2237         (print_ada_declaration): Add missing guard for record types.
2239 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
2241         PR c/45784
2242         * c-omp.c (c_finish_omp_for): If the condition is wrapped in
2243         rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
2244         new COMPOUND_EXPRs around the rhs of the comparison.
2246 2017-07-27  Marek Polacek  <polacek@redhat.com>
2248         PR c/81417
2249         * c-warn.c (warn_for_sign_compare): Tweak the warning message.  Print
2250         the types.
2252 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
2254         * c-attribs.c (c_common_attribute_table): Add noipa attribute.
2255         (handle_noipa_attribute): New function.
2257 2017-07-07  Torsten Duwe  <duwe@suse.de>
2259         * c-attribs.c (c_common_attribute_table): Add entry for
2260         "patchable_function_entry".
2262 2017-07-20  Nathan Sidwell  <nathan@acm.org>
2264         Remove TYPE_METHODS.
2265         * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
2266         dump_ada_template, print_ada_methods,
2267         print_ada_declaration): Member fns are on TYPE_FIELDS.
2269 2017-07-18  Nathan Sidwell  <nathan@acm.org>
2271         * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
2273 2017-07-14  David Malcolm  <dmalcolm@redhat.com>
2275         * c-common.c (try_to_locate_new_include_insertion_point): New
2276         function.
2277         (per_file_includes_t): New typedef.
2278         (added_includes_t): New typedef.
2279         (added_includes): New variable.
2280         (maybe_add_include_fixit): New function.
2281         * c-common.h (maybe_add_include_fixit): New decl.
2283 2017-07-10  Martin Sebor  <msebor@redhat.com>
2285         PR other/81345
2286         * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
2288 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
2290         * c-common.c (selftest::c_family_tests): New.
2291         * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
2292         (selftest::c_family_tests): New decl.
2294 2017-07-04  Marek Polacek  <polacek@redhat.com>
2296         PR c/81231
2297         * c-common.c (sync_resolve_size): Give error for pointers to incomplete
2298         types.
2300 2017-07-04  Marek Polacek  <polacek@redhat.com>
2302         * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
2304 2017-06-28  Martin Liska  <mliska@suse.cz>
2306         PR ipa/81128
2307         * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
2308         to a function declaration.
2310 2017-06-28  Martin Liska  <mliska@suse.cz>
2312         PR driver/79659
2313         * c.opt: Add IntegerRange to various options.
2315 2017-06-26  Marek Polacek  <polacek@redhat.com>
2317         PR c/80116
2318         * c-common.h (warn_for_multistatement_macros): Declare.
2319         * c-warn.c: Include "c-family/c-indentation.h".
2320         (warn_for_multistatement_macros): New function.
2321         * c.opt (Wmultistatement-macros): New option.
2322         * c-indentation.c (guard_tinfo_to_string): No longer static.
2323         Change the parameter type to "enum rid".  Handle RID_SWITCH.
2324         * c-indentation.h (guard_tinfo_to_string): Declare.
2326 2017-06-23  Marc Glisse  <marc.glisse@inria.fr>
2328         * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
2330 2017-06-15  Martin Sebor  <msebor@redhat.com>
2332         PR c++/80560
2333         * c.opt (-Wclass-memaccess): New option.
2335 2017-06-14  Boris Kolpackov  <boris@codesynthesis.com>
2337         * c-opts.c (c_common_finish): Handle '-' special value to -MF.
2339 2017-06-13  Marek Polacek  <polacek@redhat.com>
2341         PR objc/80949
2342         * c-warn.c (do_warn_duplicated_branches): Return if any of the
2343         branches is null.
2345 2017-06-13  Martin Liska  <mliska@suse.cz>
2347         PR sanitize/78204
2348         * c-attribs.c (add_no_sanitize_value): New function.
2349         (handle_no_sanitize_attribute): Likewise.
2350         (handle_no_sanitize_address_attribute): Use the function.
2351         (handle_no_sanitize_thread_attribute): New function.
2352         (handle_no_address_safety_analysis_attribute): Use
2353         add_no_sanitize_value.
2354         (handle_no_sanitize_undefined_attribute): Likewise.
2355         * c-common.h: Declare new functions.
2356         * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
2357         (ubsan_instrument_shift): Likewise.
2358         (ubsan_instrument_bounds): Likewise.
2359         (ubsan_maybe_instrument_array_ref): Likewise.
2360         (ubsan_maybe_instrument_reference_or_call): Likewise.
2362 2017-06-11  Jason Merrill  <jason@redhat.com>
2364         * c-ada-spec.c, c-pragma.c: Use id_equal.
2366 2017-06-04  Marek Polacek  <polacek@redhat.com>
2368         PR c/80919
2369         * c-format.c (matching_type_p): Return false if any of the types
2370         requires structural equality.
2372 2017-06-02  Martin Sebor  <msebor@redhat.com>
2374         PR c/80892
2375         * c-warn.c (conversion_warning): Use -Wconversion for integer
2376         conversion and -Wfloat-conversion for floating one.
2378 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2380         * c.opt (Wsizeof-pointer-div): New warning option.
2382 2017-06-01  Volker Reichelt  <v.reichelt@netcologne.de>
2384         * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
2385         (Wcatch-value=1): Enable by -Wall.
2387 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
2389         * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
2390         format_chars.
2391         * c.opt (fdiagnostics-show-template-tree): New option.
2392         (felide-type): New option.
2394 2017-05-25  Volker Reichelt  <v.reichelt@netcologne.de>
2396         * c.opt (Wcatch-value=): New C++ warning flag.
2398 2017-05-24  Nathan Sidwell  <nathan@acm.org>
2400         * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
2401         const casts to avoid warning.
2403 2017-05-24  Martin Sebor  <msebor@redhat.com>
2405         PR c/80731
2406         * c-common.h (unsafe_conversion_p): Add a function argument.
2407         * c-common.c (unsafe_conversion_p): Same.
2408         Add type names and values to diagnostics.
2409         (scalar_to_vector): Adjust.
2410         * c-warn.c (constant_expression_error): Add a function argument.
2411         Add type names and values to diagnostics.
2412         (conversion_warning): Add a function argument.
2413         Add type names and values to diagnostics.
2414         (warnings_for_convert_and_check): Same.
2416 2017-05-19  Jason Merrill  <jason@redhat.com>
2418         * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
2419         enumerators.
2421 2017-05-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2423         * c-format.c (locus): Move out of function scope,
2424         add GTY attribute.
2426 2017-05-19  Nathan Sidwell  <nathan@acm.org>
2428         * c-opts.c (class_dump_file, class_dump_flags): Delete.
2429         (c_common_parse_file): Remove class dump handling.
2430         (get_dump_info): Likewise.
2432 2017-05-19  Richard Biener  <rguenther@suse.de>
2434         PR c++/80593
2435         * c-warn.c (strict_aliasing_warning): Do not warn for accesses
2436         to alias-set zero memory.
2438 2017-05-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2440         * c-format.c (local_tree_type_node): Add GTY attribute.
2442 2017-05-18  Marek Polacek  <polacek@redhat.com>
2444         * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
2445         (c_common_fixed_point_type_for_size): Likewise.
2446         (c_common_type_for_mode): Likewise.
2447         (shorten_compare): Likewise.
2448         (c_promoting_integer_type_p): Use false/true instead of 0/1.
2449         * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
2451 2017-05-18  Marek Polacek  <polacek@redhat.com>
2453         * c-common.c (self_promoting_args_p): Change the return type to bool.
2454         Use false/true instead of 0/1.
2455         * c-common.h (self_promoting_args_p): Update.
2457 2017-05-17  Marek Polacek  <polacek@redhat.com>
2459         * c-common.c: Use NULL_TREE instead of 0 where appropriate.
2460         * c-warn.c: Likewise.
2462 2017-05-17  Ville Voutilainen  <ville.voutilainen@gmail.com>
2464         Implement new C++ intrinsics __is_assignable and __is_constructible.
2465         * c-common.c (__is_assignable, __is_constructible): New.
2466         * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
2468 2017-05-17  Martin Liska  <mliska@suse.cz>
2470         * c-common.h: Introduce dump_flags_t type and
2471         use it instead of int type.
2472         * c-gimplify.c (c_genericize): Likewise.
2473         * c-opts.c: Likewise.
2475 2017-05-17  Marek Polacek  <polacek@redhat.com>
2477         * c-common.c (c_save_expr): Remove.
2478         (c_common_truthvalue_conversion): Remove a call to c_save_expr.
2479         * c-common.h (c_save_expr): Remove declaration.
2481 2017-05-09  Volker Reichelt  <v.reichelt@netcologne.de>
2483         PR c/35441
2484         * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
2485         MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
2486         (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
2487         (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
2488         RDIV_EXPR.
2489         (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
2491 2017-05-09  Marek Polacek  <polacek@redhat.com>
2493         PR c/80525
2494         * c-warn.c (unwrap_c_maybe_const): New.
2495         (warn_logical_operator): Call it.
2497 2017-05-09  Nathan Sidwell  <nathan@acm.org>
2499         * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
2500         * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
2502 2017-05-08  Martin Sebor  <msebor@redhat.com>
2504         PR translation/80280
2505         * c-format.h (struct format_flag_spec): Add new member.
2506         (T89_T): New macro.
2507         * c-format.c (local_tree_type_node): New global.
2508         (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
2509         (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
2510         (strfmon_flag_specs): Likewise.
2511         (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
2512         with distinct quoting properties.
2513         (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
2514         (flag_chars_t::validate): Add argument and handle bad quoting.
2515         (check_format_info_main): Handle quoting problems.
2516         (init_dynamic_diag_info): Simplify.
2518 2017-05-08  Jason Merrill  <jason@redhat.com>
2520         * c-opts.c (c_common_post_options): Update defaults for
2521         flag_abi_version and flag_abi_compat_version.
2523 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
2525         * c-common.c (c_cpp_error): Replace report_diagnostic
2526         with diagnostic_report_diagnostic.
2528 2017-05-04  Martin Sebor  <msebor@redhat.com>
2530         PR translation/80280
2531         * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
2532         (handle_weakref_attribute): Same.
2534 2017-05-03  Nathan Sidwell  <nathan@acm.org>
2536         Canonicalize canonical type hashing
2537         * c-common.c (complete_array_type): Use type_hash_canon.
2539 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
2541         PR c++/80038
2542         * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
2543         prototype.
2544         (cilk_install_body_pedigree_operations): Likewise.
2545         * cilk.c (cilk_set_spawn_marker): Mark functions that should be
2546         detatched.
2547         (cilk_gimplify_call_params_in_spawned_fn): Remove.
2548         (cilk_install_body_pedigree_operations): Likewise.
2549         (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
2550         unwrapping.
2552 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
2554         PR c++/80534
2555         * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
2556         flag on non-aggregate element types.
2558 2017-04-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2560         * c-common.c (c_type_hasher, type_hash_table): Remove.
2561         (c_common_get_alias_set): Remove unreachable code.
2562         * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
2564 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
2566         * c.opt (Wextra-semi): New C++ warning flag.
2568 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
2570         PR middle-end/80423
2571         * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
2573 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
2575         PR middle-end/79788
2576         PR middle-end/80375
2577         * c-common.c (c_common_type_for_mode): Don't handle
2578         widest_*_literal_type_node here.
2579         c_common_signed_or_unsigned_type): Likewise.
2580         (c_common_nodes_and_builtins): Set widest_*_literal_type_node
2581         to *intTI_type_node or *intDI_type_node depending on whether
2582         TImode is supported by the target or not.
2584 2017-04-10  Martin Liska  <mliska@suse.cz>
2586         PR sanitizer/80350
2587         * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
2588         doing an UBSAN check.
2590 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
2592         * c-warn.c (do_warn_double_promotion): Fix typo in comment.
2594 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
2596         PR c++/79572
2597         * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
2598         tree *.
2599         * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise.  Handle
2600         not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
2601         REFERENCE_TYPE.
2603 2017-03-31  David Malcolm  <dmalcolm@redhat.com>
2605         PR documentation/78732
2606         * c.opt (Wendif-labels): Fix description to refer to
2607         #else rather than #elif.
2609 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
2611         PR libstdc++/80251
2612         * c-common.h (enum rid): Add RID_IS_AGGREGATE.
2613         * c-common.c (c_common_reswords): Add __is_aggregate trait.
2615 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
2617         PR middle-end/80162
2618         * c-common.c (c_common_mark_addressable_vec): Don't set
2619         TREE_ADDRESSABLE on DECL_HARD_REGISTER.
2621 2017-03-21  Martin Sebor  <msebor@redhat.com>
2623         PR c++/79548
2624         * c-common.c (set_underlying_type): Mark type used only when
2625         original del is declared unused.
2627 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
2629         PR translation/79848
2630         * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
2631         "%qs".
2633 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
2635         PR c/79921
2636         * c-indentation.c (warn_for_misleading_indentation): Remove parens
2637         from inform's message, so that xgettext can locate it.
2639 2017-03-09  Marek Polacek  <polacek@redhat.com>
2641         PR c++/79962
2642         PR c++/79984
2643         * c-attribs.c (handle_nonnull_attribute): Save the result of default
2644         conversion to the attribute list.
2646 2017-03-09  Martin Liska  <mliska@suse.cz>
2648         * c-ada-spec.c (macro_length): Increment value instead of a pointer.
2650 2017-03-03  Jason Merrill  <jason@redhat.com>
2652         * c.opt (Wnoexcept-type): New.
2654 2017-03-02  Richard Biener  <rguenther@suse.de>
2656         PR c/79756
2657         * c-common.c (c_common_mark_addressable_vec): Look through
2658         C_MAYBE_CONST_EXPR.
2660 2017-02-28  Martin Liska  <mliska@suse.cz>
2662         * c.opt: Replace space with tabular for options of <number>
2663         type.
2665 2017-02-28  Martin Liska  <mliska@suse.cz>
2667         * c.opt: Fix --help=option -Q for options which are of
2668         an enum type.
2670 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
2672         PR c++/79588
2673         * c-common.c (check_function_restrict): New function.
2674         (check_function_arguments): Add FNDECL argument.  Call
2675         check_function_restrict if -Wrestrict.
2676         * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
2677         and NARGS.  Use auto_vec for ARG_POSITIONS, simplify.
2678         * c-common.h (check_function_arguments): Add FNDECL argument.
2679         (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
2681 2017-02-24  Eric Botcazou  <ebotcazou@adacore.com>
2683         * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
2684         treatment of parameters with pointer-to-tagged type and tidy up.
2685         (print_ada_methods): Remove the special treatment of C++ static member
2686         functions.
2688 2017-02-22  Martin Liska  <mliska@suse.cz>
2690         * c.opt: Replace inequality signs with square brackets
2691         for -Wnornalized.
2693 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
2695         PR c++/79641
2696         * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
2697         preserve quals.
2699 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
2701         * c-cppbuiltin.c (builtin_define_float_constants): Define
2702         __DECIMAL_DIG__ to the value for long double.
2704 2017-02-15  Marek Polacek  <polacek@redhat.com>
2706         PR c/79515
2707         * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
2708         conversion has occured.
2710 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
2712         * c-common.c (c_common_reswords): Add "__RTL".
2713         * c-common.h (enum rid): Add RID_RTL.
2715 2017-01-20  Marek Polacek  <polacek@redhat.com>
2717         PR c/64279
2718         * c-common.h (do_warn_duplicated_branches_r): Declare.
2719         * c-gimplify.c (c_genericize): Walk the function tree calling
2720         do_warn_duplicated_branches_r.
2721         * c-warn.c (expr_from_macro_expansion_r): New.
2722         (do_warn_duplicated_branches): New.
2723         (do_warn_duplicated_branches_r): New.
2724         * c.opt (Wduplicated-branches): New option.
2726 2017-01-17  David Malcolm  <dmalcolm@redhat.com>
2728         PR c++/71497
2729         * c-indentation.c (warn_for_misleading_indentation): Use the past
2730         subjunctive in the note.
2732 2017-01-17  Aldy Hernandez  <aldyh@redhat.com>
2734         PR c/79116
2735         * array-notation-common.c (cilkplus_extract_an_triplets): Convert
2736         start type to integer_type.
2738 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
2740         PR driver/49726
2741         * c.opt (gen-decls): Add Driver flag.
2743 2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
2745         Revert:
2746         2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
2748         PR c++/71737
2749         * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
2751 2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
2753         PR c++/71737
2754         * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
2756 2017-01-12  Martin Sebor  <msebor@redhat.com>
2758         (-Wformat-overflow): ...to this.
2760 2017-01-11  Martin Sebor  <msebor@redhat.com>
2762         PR c/78768
2763         * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
2764         Also enable for LTO.
2766 2017-01-10  Jason Merrill  <jason@redhat.com>
2768         Implement P0195R2, C++17 variadic using.
2769         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
2771 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
2773         PR translation/79019
2774         PR translation/79020
2775         * c.opt (Wnormalized=): Fix typo in description.
2777 2017-01-08  Martin Sebor  <msebor@redhat.com>
2779         PR middle-end/77708
2780         * c.opt (-Wformat-truncation): New option.
2782 2017-01-06  Alexandre Oliva <aoliva@redhat.com>
2784         * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
2785         value to unsigned short to fit in 4 hex digits without
2786         warnings.
2788 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
2790         * c.opt (fsso-struct): Add 'native' value.
2792 2017-01-05  Martin Liska  <mliska@suse.cz>
2794         PR pch/78970
2795         * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
2796         header.
2798 2017-01-04  Marek Polacek  <polacek@redhat.com>
2800         PR c++/64767
2801         * c.opt (Wpointer-compare): New option.
2803 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
2805         PR driver/78957
2806         * c.opt (fsso-struct=): Add RejectNegative.
2808 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
2810         Update copyright years.
2812 2016-12-29  Martin Liska  <mliska@suse.cz>
2814         PR c/78933
2815         * c.opt (strong-eval-order): Add RejectNegative keyword.
2817 2016-12-22  Jason Merrill  <jason@redhat.com>
2819         Implement P0522R0, matching of template template arguments.
2820         * c-cppbuiltin.c (c_cpp_builtins): Define
2821         __cpp_template_template_args.
2823 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
2825         PR bootstrap/78817
2826         * c-common.c (struct nonnull_arg_ctx): New type.
2827         (check_function_nonnull): Return bool instead of void.  Use
2828         nonnull_arg_ctx as context rather than just location_t.
2829         (check_nonnull_arg): Adjust for the new context type, set
2830         warned_p to true if a warning has been diagnosed.
2831         (check_function_arguments): Return bool instead of void.
2832         * c-common.h (check_function_arguments): Adjust prototype.
2834 2016-12-21  Jason Merrill  <jason@redhat.com>
2836         * c.opt (-fnew-ttp-matching): New flag.
2837         * c-opts.c (c_common_post_options): Default on if -std=c++1z.
2839 2016-12-14  Martin Jambor  <mjambor@suse.cz>
2841         * c-omp.c: Include omp-general.h instead of omp-low.h.
2842         (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
2843         name.
2845 2016-12-14  Martin Sebor  <msebor@redhat.com>
2847         PR c/17308
2848         * c-common.c (check_nonnull_arg): Disable when optimization
2849         is enabled.
2851 2016-12-12  Marek Polacek  <polacek@redhat.com>
2853         PR c++/78647
2854         * c-common.c (attribute_fallthrough_p): Return false for
2855         error_mark_node.
2857 2016-12-08  Martin Sebor  <msebor@redhat.com>
2859         PR c/78284
2860         * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
2862 2016-12-08  Martin Sebor  <msebor@redhat.com>
2864         PR c/78165
2865         * c-pretty-print (pp_c_integer_constant): Avoid formatting type
2866         suffix.
2868 2016-12-07  Martin Sebor  <msebor@redhat.com>
2870         PR c/53562
2871         PR middle-end/77784
2872         PR middle-end/78149
2873         PR middle-end/78138
2874         * c.opt (-Wstringop-overflow): New option.
2876 2016-12-02  Maxim Ostapenko  <m.ostapenko@samsung.com>
2878         * c-attribs.c (asan odr indicator): New attribute.
2879         (handle_asan_odr_indicator_attribute): New function.
2881 2016-11-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2883         * c-common.c (c_common_nodes_and_builtins): Remove initialization of
2884         ptrdiff_type_node;
2886 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
2888         * c-common.c (excess_precision_mode_join): New.
2889         (c_ts18661_flt_eval_method): New.
2890         (c_c11_flt_eval_method): Likewise.
2891         (c_flt_eval_method): Likewise.
2892         * c-common.h (excess_precision_mode_join): New.
2893         (c_flt_eval_method): Likewise.
2894         * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
2895         (cpp_iec_559_value): Call it.
2896         (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
2897         call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
2898         __FLT_EVAL_METHOD_TS_18661_3__.
2900 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
2902         * c-opts.c (c_common_post_options): Add logic to handle the default
2903         case for -fpermitted-flt-eval-methods.
2905 2016-11-23  Paolo Bonzini  <bonzini@gnu.org>
2907         * c.opt (Wexpansion-to-defined): New.
2909 2016-11-23  Jakub Jelinek  <jakub@redhat.com>
2911         PR target/78451
2912         * c-pragma.c (handle_pragma_target): Don't replace
2913         current_target_pragma, but chainon the new args to the current one.
2915 2016-11-22  Nathan Sidwell  <nathan@acm.org>
2917         * array-notation-common.c (cilkplus_extract_an_trplets): Fix
2918         indentation and formatting.
2920 2016-11-21  Martin Sebor  <msebor@redhat.com>
2922         * c.opt (-fprintf-return-value): Enable by default.
2924 2016-11-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2926         PR c++/71973
2927         * c.opt (-Wbuiltin-declaration-mismatch): New warning.
2928         * c-common.c (c_common_nodes_and_builtins): Initialize
2929         const_tm_ptr_type_node.
2931 2016-11-16  Marek Polacek  <polacek@redhat.com>
2933         PR c/78285
2934         * c-common.c (c_add_case_label): Turn error_at calls into inform.
2936 2016-11-14  Jakub Jelinek  <jakub@redhat.com>
2938         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
2940 2016-11-14  Prasad Ghangal  <prasad.ghangal@gmail.com>
2941             Richard Biener  <rguenther@suse.de>
2943         * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
2944         * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
2945         * c.opt (fgimple): New option.
2947 2016-11-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2949         PR c/35503
2950         * c-common.h (warn_for_restrict): Declare.
2951         * c-warn.c: Include gcc-rich-location.h.
2952         (warn_for_restrict): New function.
2953         * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
2954         (gcc_cdiag_char_table): Likewise.
2955         (gcc_cxxdiag_char_table): Likewise.
2956         * c.opt (Wrestrict): New option.
2958 2016-11-13  Eric Botcazou  <ebotcazou@adacore.com>
2960         * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
2961         for nested types only if the type is a record or union and dump SLOC.
2963 2016-11-09  Jason Merrill  <jason@redhat.com>
2965         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
2967 2016-11-09  Jakub Jelinek  <jakub@redhat.com>
2969         * c-ubsan.c (ubsan_instrument_shift): Handle split
2970         -fsanitize=shift-base and -fsanitize=shift-exponent.
2972 2016-11-07  Jason Merrill  <jason@redhat.com>
2974         * c.opt (Wc++1z-compat): New.
2975         * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
2977 2016-11-07  Martin Liska  <mliska@suse.cz>
2979         * c-warn.c (warn_for_unused_label): Save all labels used
2980         in goto or in &label.
2982 2016-11-03  Jason Merrill  <jason@redhat.com>
2984         * c-cppbuiltin.c (c_cpp_builtins): Correct
2985         __cpp_inheriting_constructors.
2987 2016-11-01  Jason Merrill  <jason@redhat.com>
2989         * c-cppbuiltin.c (c_cpp_builtins): Update
2990         __cpp_inheriting_constructors.
2992         * c.opt (-fnew-inheriting-ctors): New.
2993         * c-opts.c: Default to on for ABI 11+.
2995 2016-10-31  Jakub Jelinek  <jakub@redhat.com>
2997         PR c++/77948
2998         * c.opt (fext-numeric-literals): Add Var and Init.
2999         * c-opts.c (c_common_handle_option): Don't clear
3000         cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
3001         (c_common_post_options): Clear it here if not set
3002         explicitly.
3004 2016-10-28  Aldy Hernandez  <aldyh@redhat.com>
3006         PR debug/77773
3007         * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
3008         if NULL.
3010 2016-10-25  Jakub Jelinek  <jakub@redhat.com>
3012         * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
3013         * c-common.c (c_common_reswords): Add __builtin_launder.
3015 2016-10-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3017         * c-common.c (c_common_truthvalue_conversion): Warn for
3018         multiplications in boolean context.  Fix the quoting of '<<' and '<'
3019         in the shift warning.
3021 2016-10-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3023         * c-common.c (c_common_truthvalue_conversion): Fix the comment.
3025 2016-10-20  Jason Merrill  <jason@redhat.com>
3027         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
3029 2016-10-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3031         * c-common.c (c_common_truthvalue_conversion): Warn only for signed
3032         integer shift ops in boolean context.
3034 2016-10-18  Aldy Hernandez  <aldyh@redhat.com>
3036         * c.opt (Walloca): New.
3037         (Walloca-larger-than=): New.
3038         (Wvla-larger-than=): New.
3040 2016-10-17  Marek Polacek  <polacek@redhat.com>
3042         * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
3043         Return immediately when finding a match.
3044         (warn_tautological_cmp): Remove a boolean variable that is no longer
3045         needed.
3047 2016-10-17  Marek Polacek  <polacek@redhat.com>
3049         * c-attribs.c: New file.
3050         * c-common.c: Move attributes handling to c-attribs.c.
3051         (get_nonnull_operand): No longer static.
3052         * c-common.h: Move the declarations from c-attribs.c to its own section.
3054 2016-10-14  Jason Merrill  <jason@redhat.com>
3056         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
3057         and __cpp_deduction_guides.
3059 2016-10-13  Jason Merrill  <jason@redhat.com>
3061         * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
3063 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3065         * c-cppbuiltin.c: Include memmodel.h.
3066         * c-opts.c: Likewise.
3067         * c-pragma.c: Likewise.
3068         * c-warn.c: Likewise.
3070 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
3072         * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
3073         (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
3074         * c-opts.c (sanitize_cpp_opts): Initialize
3075         cpp_opts->cpp_warn_implicit_fallthrough.
3077 2016-10-11  Marek Polacek  <polacek@redhat.com>
3079         * c-common.c (warning_candidate_p): Change the return type to bool
3080         and return true/false instead of 1/0.
3081         (vector_mode_valid_p): Likewise.
3083 2016-10-11  Marek Polacek  <polacek@redhat.com>
3085         * c-common.c (fold_for_warn): No longer static.
3086         (bool_promoted_to_int_p): Likewise.
3087         (c_common_get_narrower): Likewise.
3088         (constant_expression_warning): Move to c-warn.c.
3089         (constant_expression_error): Likewise.
3090         (overflow_warning): Likewise.
3091         (warn_logical_operator): Likewise.
3092         (find_array_ref_with_const_idx_r): Likewise.
3093         (warn_tautological_cmp): Likewise.
3094         (expr_has_boolean_operands_p): Likewise.
3095         (warn_logical_not_parentheses): Likewise.
3096         (warn_if_unused_value): Likewise.
3097         (strict_aliasing_warning): Likewise.
3098         (sizeof_pointer_memaccess_warning): Likewise.
3099         (check_main_parameter_types): Likewise.
3100         (conversion_warning): Likewise.
3101         (warnings_for_convert_and_check): Likewise.
3102         (match_case_to_enum_1): Likewise.
3103         (match_case_to_enum): Likewise.
3104         (c_do_switch_warnings): Likewise.
3105         (warn_for_omitted_condop): Likewise.
3106         (readonly_error): Likewise.
3107         (lvalue_error): Likewise.
3108         (invalid_indirection_error): Likewise.
3109         (warn_array_subscript_with_type_char): Likewise.
3110         (warn_about_parentheses): Likewise.
3111         (warn_for_unused_label): Likewise.
3112         (warn_for_div_by_zero): Likewise.
3113         (warn_for_memset): Likewise.
3114         (warn_for_sign_compare): Likewise.
3115         (do_warn_double_promotion): Likewise.
3116         (do_warn_unused_parameter): Likewise.
3117         (record_locally_defined_typedef): Likewise.
3118         (maybe_record_typedef_use): Likewise.
3119         (maybe_warn_unused_local_typedefs): Likewise.
3120         (maybe_warn_bool_compare): Likewise.
3121         (maybe_warn_shift_overflow): Likewise.
3122         (warn_duplicated_cond_add_or_warn): Likewise.
3123         (diagnose_mismatched_attributes): Likewise.
3124         * c-common.h: Move the declarations from c-warn.c to its own section.
3125         * c-warn.c: New file.
3127 2016-10-08  Jason Merrill  <jason@redhat.com>
3129         * c-common.c (c_common_truthvalue_conversion): Don't distribute
3130         into COND_EXPR in C++.
3132 2016-10-08  Jakub Jelinek  <jakub@redhat.com>
3134         * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
3135         token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
3136         CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
3138 2016-10-07  Jakub Jelinek  <jakub@redhat.com>
3140         Implement LWG2296 helper intrinsic
3141         * c-common.h (enum rid): Add RID_ADDRESSOF.
3142         * c-common.c (c_common_reswords): Add __builtin_addressof.
3144 2016-10-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3146         PR c++/77700
3147         * c-common.c (c_common_truthvalue_conversion): Warn also for
3148         suspicious enum values in boolean context.
3150 2016-10-06  Jakub Jelinek  <jakub@redhat.com>
3152         Implement P0258R2 - helper for C++17
3153         std::has_unique_object_representations trait
3154         * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
3155         * c-common.c (c_common_reswords): Add
3156         __has_unique_object_representations.
3158 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
3160         PR sanitizer/66343
3161         * c-ubsan.c (ubsan_instrument_return): Don't call
3162         initialize_sanitizer_builtins here.
3164 2016-10-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3166         * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
3167         conditional expression in boolean context when only one arm is
3168         non-boolean.
3170 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
3172         PR sanitizer/77823
3173         * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
3174         is not integral.
3176         * c-common.c (c_common_reswords): Update comment for C++11.
3178 2016-10-04  Jason Merrill  <jason@redhat.com>
3180         * c-common.c (make_tree_vector_from_ctor): New.
3181         * c-common.h: Declare it.
3183 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
3185         * c-cppbuiltin.c (c_cpp_builtins): Don't define
3186         __LIBGCC_JCR_SECTION_NAME__.
3188 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3190         * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
3191         left shift in boolean context.
3193 2016-09-29  Jakub Jelinek  <jakub@redhat.com>
3195         Implement P0001R1 - C++17 removal of register storage class specifier
3196         * c.opt (Wregister): New warning.
3197         * c-opts.c (c_common_post_options): Enable -Wregister by
3198         default for C++17.
3200 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
3202         * c-opts.c (c_common_post_options): Remove special case for
3203         TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
3204         in C++.
3206 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
3208         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
3209         -std=c++1z.
3211         * c-ada-spec.c (print_ada_declaration): Remove break after return.
3213 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3215         * c-common.c: Include memmodel.h.
3217 2016-09-26  Marek Polacek  <polacek@redhat.com>
3219         * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
3221 2016-09-26  Marek Polacek  <polacek@redhat.com>
3223         PR c/7652
3224         * c-common.c (c_common_attribute_table): Add fallthrough attribute.
3225         (handle_fallthrough_attribute): New function.
3226         (attribute_fallthrough_p): New function.
3227         * c-common.h (attribute_fallthrough_p): Declare.
3229 2016-09-24  Marek Polacek  <polacek@redhat.com>
3231         PR c/77490
3232         * c.opt (Wbool-operation): New.
3234 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3236         * c-common.c (c_common_truthvalue_conversion): Inhibit
3237         Wint-in-bool-context warning with from_macro_definition_at.
3238         Mention the expression will always evaluate to true.
3240 2016-09-21  Martin Sebor  <msebor@redhat.com>
3242         PR bootstrap/77676
3243         * c.opt (fprintf-return-value): Temporarily initialize to zero
3244         to unblock bootstrap failures.
3246 2016-09-21  Jakub Jelinek  <jakub@redhat.com>
3248         PR c++/77651
3249         * c.opt (Waligned-new=): Add RejectNegative.
3250         (faligned-new=): Likewise.  Spelling fix - change
3251         aligned_new_threshhold to aligned_new_threshold.
3252         * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
3253         to aligned_new_threshold.
3255 2016-09-20  Martin Sebor  <msebor@redhat.com>
3257         PR middle-end/49905
3258         * c.opt: Add -Wformat-length and -fprintf-return-value.
3260 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3262         PR c++/77434
3263         * c.opt (Wint-in-bool-context): New warning.
3264         * c-common.c (c_common_truthvalue_conversion): Warn on integer
3265         constants in boolean context.
3267 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
3269         * c-common.c (max_align_t_align): Also consider alignment of
3270         float128_type_node.
3272 2016-09-15  Jason Merrill  <jason@redhat.com>
3274         * c-common.c (check_cxx_fundamental_alignment_constraints): Check
3275         DECL_EXTERNAL.
3277 2016-09-14  Jason Merrill  <jason@redhat.com>
3279         * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
3280         limit FIELD_DECL, either.
3282 2016-09-14  Marek Polacek  <polacek@redhat.com>
3284         * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
3285         * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
3286         * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
3288 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
3290         * c-common.c (warn_logical_not_parentheses): Replace
3291         rich_location::add_fixit_insert calls with add_fixit_insert_before
3292         and add_fixit_insert_after, eliminating the "next_loc" calculation.
3294 2016-09-13  Jason Merrill  <jason@redhat.com>
3295             Tom de Vries  <tom@codesourcery.com>
3297         PR c++/77427
3298         * c-common.c (set_underlying_type): Don't treat array as builtin type.
3300 2016-09-13  Jason Merrill  <jason@redhat.com>
3302         * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
3303         limit types at all.
3305 2016-09-12  Jason Merrill  <jason@redhat.com>
3307         * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
3308         bit/byte confusion, allow large alignment for types.
3310 2016-09-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3312         PR c++/77496
3313         * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
3315 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
3317         PR c/72858
3318         * c-format.c (argument_parser::check_argument_type): Add params
3319         "type_start" and "conversion_char".  Use the former to generate
3320         offset_to_type_start and pass it and conversion_char to
3321         check_format_types.
3322         (check_format_info_main): Capture the start of the type
3323         information as "type_start", and pass it an format_char
3324         to arg_parser.check_argument_type.
3325         (check_format_types): Provide an example in the leading comment.
3326         Add params "offset_to_type_start" and "conversion_char"; pass
3327         them to format_type_warning calls.
3328         (test_get_modifier_for_format_len): Likewise.
3329         (matching_type_p): New function.
3330         (get_format_for_type): Add param "conversion_char" and move
3331         implementation into...
3332         (get_format_for_type_1): ...new function, called twice.
3333         Use new function matching_type_p rather than checking for
3334         TYPE_CANONICAL equality.
3335         (get_corrected_substring): New function.
3336         (format_type_warning): Provide an example in the leading comment.
3337         Add params "offset_to_type_start" and "conversion_char".  Replace
3338         call to get_format_for_type with call to get_corrected_substring
3339         and move rejection of hints for widths/precisions there.
3340         (assert_format_for_type_streq): Add param "conversion_char".
3341         (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
3342         (test_get_format_for_type_printf): Add conversion chars to the
3343         tests, adding coverage for various combinations of integer
3344         vs double conversions, and for preserving octal and hexadecimal
3345         conversions.
3346         (test_get_format_for_type_scanf): Add conversion chars to the
3347         tests.
3349 2016-09-10  Tom de Vries  <tom@codesourcery.com>
3351         PR C/71602
3352         * c-common.c (build_va_arg): Handle more strict
3353         targetm.canonical_va_list_type.  Replace first argument type error with
3354         assert.
3356 2016-09-09  Martin Sebor  <msebor@redhat.com>
3358         PR c/77520
3359         PR c/77521
3360         * c-format.c (argument_parser::find_format_char_info): Use %qc
3361         format directive unconditionally.
3363 2016-09-09  Jason Merrill  <jason@redhat.com>
3365         Implement C++17 new of over-aligned types.
3366         * c.opt: Add -faligned-new and -Waligned-new.
3367         * c-common.c (max_align_t_align): Split out from...
3368         (cxx_fundamental_alignment_p): ...here.
3369         * c-common.h: Declare it.
3370         * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
3372 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
3374         * c-cppbuiltin.c (builtin_define_type_width): New function.
3375         (builtin_define_stdint_macros, c_cpp_builtins): Define type width
3376         macros.
3378 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
3380         * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
3381         a POINTER_TYPE.
3382         (substring_loc::get_location): Move to substring-locations.c,
3383         keeping implementation as...
3384         (c_get_substring_location): New function, from the above, reworked
3385         to use accessors rather than member lookup.
3386         * c-common.h (class substring_loc): Move to substring-locations.h,
3387         replacing with a forward decl.
3388         (c_get_substring_location): New decl.
3389         * c-format.c: Include "substring-locations.h".
3390         (format_warning_va): Move to substring-locations.c.
3391         (format_warning_at_substring): Likewise.
3393 2016-09-06 Martin Sebor  <msebor@redhat.com>
3395         PR c/77336
3396         * c-format.c (check_function_format): Avoid issuing warnings for
3397         functions unless they call format functions with non-constant
3398         format strings.
3400 2016-09-06  Richard Biener  <rguenther@suse.de>
3402         PR c/77450
3403         * c-common.c (c_common_mark_addressable_vec): Handle
3404         COMPOUND_LITERAL_EXPR.
3406 2016-09-05  Marek Polacek  <polacek@redhat.com>
3408         PR c/77423
3409         * c-common.c (bool_promoted_to_int_p): New function.
3410         (expr_has_boolean_operands_p): New function.
3411         (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
3412         (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
3414 2016-09-04  Tom de Vries  <tom@codesourcery.com>
3416         revert:
3417         2016-08-29  Tom de Vries  <tom@codesourcery.com>
3419         * c-common.c (build_va_arg): Replace first argument type error
3420         with assert.
3422 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
3424         PR c/65467
3425         * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
3426         (c_finish_omp_for): Reject _Atomic qualified iterators.
3428 2016-09-01  Martin Sebor  <msebor@redhat.com>
3430         * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
3431         size to guarantee it fits the output of the formatted function
3432         regardless of its arguments.
3434 2016-09-01  Marek Polacek  <polacek@redhat.com>
3436         PR c/7652
3437         * c-common.c (resolve_overloaded_builtin): Fix formatting.  Add
3438         FALLTHRU comments.
3440 2016-08-29  Marek Polacek  <polacek@redhat.com>
3442         PR c/77292
3443         * c-common.c (warn_logical_not_parentheses): Don't warn for
3444         a comparison or a logical operator.
3446 2016-08-29  Tom de Vries  <tom@codesourcery.com>
3448         * c-common.c (build_va_arg): Fix type comparison assert.
3450 2016-08-29  Tom de Vries  <tom@codesourcery.com>
3452         * c-common.c (build_va_arg): Replace first argument type error
3453         with assert.
3455 2016-08-29  Tom de Vries  <tom@codesourcery.com>
3457         PR c/77398
3458         * c-common.c (build_va_arg): Add first argument error.  Build va_arg
3459         with error_mark_node as va_list instead of with illegal va_list.
3461 2016-08-25  Marek Polacek  <polacek@redhat.com>
3462             David Malcolm  <dmalcolm@redhat.com>
3464         * c-common.c (warn_logical_not_parentheses): Print fixit hints.
3465         * c-common.h (warn_logical_not_parentheses): Update declaration.
3467 2016-08-22  Marek Polacek  <polacek@redhat.com>
3469         PR c++/77321
3470         * c-common.c (warn_for_memset): Check type for null.
3472 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
3474         * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
3475         _FloatNx types for suffixes for built-in functions.
3477 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
3479         PR c/32187
3480         * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
3481         (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
3482         (RID_FLOAT128X): New enum rid values.
3483         (CASE_RID_FLOATN_NX): New macro.
3484         * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
3485         keywords.
3486         (c_common_type_for_mode): Check for _FloatN and _FloatNx and
3487         corresponding complex types.
3488         (c_common_nodes_and_builtins): For non-C++, register _FloatN and
3489         _FloatNx and corresponding complex types.
3490         (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
3491         * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
3492         and _FloatNx types for the widest type for determining
3493         DECIMAL_DIG.  Define __LDBL_DECIMAL_DIG__ as well as
3494         __DECIMAL_DIG__ for long double.  Handle FMA_SUFFIX being NULL.
3495         (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
3496         and _FloatNx types.
3497         * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
3498         constants.
3499         * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
3500         _FloatNx types.
3502 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
3504         * c-opts.c (c_diagnostic_finalizer): Update for change to
3505         diagnostic_show_locus.
3507 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
3509         * c-common.c: Include "spellcheck.h".
3510         (cb_get_suggestion): New function.
3511         * c-common.h (cb_get_suggestion): New decl.
3512         * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
3513         cb_get_suggestion.
3515 2016-08-18  Marek Polacek  <polacek@redhat.com>
3517         PR c/71514
3518         * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
3519         and pointer-to-VLA.
3521 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
3523         PR c/72857
3524         * c-common.c (substring_loc::get_range): Rename to...
3525         (substring_loc::get_location): ...this, converting param from a
3526         source_range * to a location_t *.  Call
3527         get_source_location_for_substring rather than
3528         get_source_range_for_substring, and pass in m_caret_idx.
3529         * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
3530         (substring_loc::get_range): Replace with...
3531         (substring_loc::get_location): ...this.
3532         (substring_loc::set_caret_index): New method.
3533         (substring_loc): Add field m_caret_idx.
3534         * c-format.c (format_warning_va): Update for above changes.
3535         Rename local "substring_loc" to "fmt_substring_loc" to avoid
3536         clashing with type name.
3537         (format_warning_at_char): Add caret_idx param to substring_loc ctor.
3538         (check_argument_type): Likewise.
3539         (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
3540         Use a copy when emitting warnings, setting the caret index from TYPE.
3542 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
3543             Arnaud Charlet  <charlet@adacore.com>
3545         * c-ada-spec.c (dump_number): New function.
3546         (handle_escape_character): Likewise.
3547         (print_ada_macros): Add handling of constant integers and strings.
3549 2016-08-12  Marek Polacek  <polacek@redhat.com>
3551         PR c/7652
3552         * c-common.c (scalar_to_vector): Adjust fall through comment.
3553         * c-opts.c (c_common_handle_option): Likewise.
3554         * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
3555         * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
3556         fall through comment.
3557         * cilk.c (extract_free_variables): Add FALLTHRU.
3559 2016-08-10  Jason Merrill  <jason@redhat.com>
3561         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
3563 2016-08-09  Jason Merrill  <jason@redhat.com>
3565         * c-common.c (c_common_attribute_table): vector_size affects type
3566         identity.
3568 2016-08-09  Marek Polacek  <polacek@redhat.com>
3570         PR c/7652
3571         * c-ada-spec.c (dump_generic_ada_node): Add return.
3573 2016-08-09  Jason Merrill  <jason@redhat.com>
3575         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
3576         C++17 constexpr lambdas.
3578 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
3580         PR c/64955
3581         * c-common.h (selftest::c_format_c_tests): New declaration.
3582         (selftest::run_c_tests): New declaration.
3583         * c-format.c: Include "selftest.h.
3584         (format_warning_va): Add param "corrected_substring" and use
3585         it to add a replacement fix-it hint.
3586         (format_warning_at_substring): Likewise.
3587         (format_warning_at_char): Update for new param of
3588         format_warning_va.
3589         (argument_parser::check_argument_type): Pass "fki" to
3590         check_format_types.
3591         (check_format_types): Add param "fki" and pass it to
3592         format_type_warning.
3593         (deref_n_times): New function.
3594         (get_modifier_for_format_len): New function.
3595         (selftest::test_get_modifier_for_format_len): New function.
3596         (get_format_for_type): New function.
3597         (format_type_warning): Add param "fki" and use it to attempt
3598         to provide hints for argument types when calling
3599         format_warning_at_substring.
3600         (selftest::get_info): New function.
3601         (selftest::assert_format_for_type_streq): New function.
3602         (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
3603         (selftest::test_get_format_for_type_printf): New function.
3604         (selftest::test_get_format_for_type_scanf): New function.
3605         (selftest::c_format_c_tests): New function.
3607 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
3609         PR c/52952
3610         * c-format.c: Include "diagnostic.h".
3611         (location_column_from_byte_offset): Delete.
3612         (location_from_offset): Delete.
3613         (format_warning_va): New function.
3614         (format_warning_at_substring): New function.
3615         (format_warning_at_char): New function.
3616         (check_format_arg): Capture location of format_tree and pass to
3617         check_format_info_main.
3618         (argument_parser): Add fields "start_of_this_format" and
3619         "format_string_cst".
3620         (flag_chars_t::validate): Add param "format_string_cst".  Convert
3621         warning_at call using location_from_offset to call to
3622         format_warning_at_char.
3623         (argument_parser::argument_parser): Add param "format_string_cst_"
3624         and use use it to initialize field "format_string_cst".
3625         Initialize new field "start_of_this_format".
3626         (argument_parser::read_format_flags): Convert warning_at call
3627         using location_from_offset to a call to format_warning_at_char.
3628         (argument_parser::read_any_format_left_precision): Likewise.
3629         (argument_parser::read_any_format_precision): Likewise.
3630         (argument_parser::read_any_other_modifier): Likewise.
3631         (argument_parser::find_format_char_info): Likewise, in three places.
3632         (argument_parser::parse_any_scan_set): Likewise, in one place.
3633         (argument_parser::handle_conversions): Likewise, in two places.
3634         (argument_parser::check_argument_type): Add param "fmt_param_loc"
3635         and use it to make a substring_loc.  Pass the latter to
3636         check_format_types.
3637         (check_format_info_main): Add params "fmt_param_loc" and
3638         "format_string_cst".  Convert warning_at calls using
3639         location_from_offset to calls to format_warning_at_char.  Pass the
3640         new params to the arg_parser ctor.  Pass "format_string_cst" to
3641         flag_chars.validate.  Pass "fmt_param_loc" to
3642         arg_parser.check_argument_type.
3643         (check_format_types): Convert first param from a location_t
3644         to a const substring_loc & and rename to "fmt_loc".  Attempt
3645         to extract the range of the relevant parameter and pass it
3646         to format_type_warning.
3647         (format_type_warning): Convert first param from a location_t
3648         to a const substring_loc & and rename to "fmt_loc".  Add
3649         params "param_range" and "type".  Replace calls to warning_at
3650         with calls to format_warning_at_substring.
3652 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
3654         * c-format.c (class flag_chars_t): New class.
3655         (struct length_modifier): New struct.
3656         (class argument_parser): New class.
3657         (flag_chars_t::flag_chars_t): New ctor.
3658         (flag_chars_t::has_char_p): New method.
3659         (flag_chars_t::add_char): New method.
3660         (flag_chars_t::validate): New method.
3661         (flag_chars_t::get_alloc_flag): New method.
3662         (flag_chars_t::assignment_suppression_p): New method.
3663         (argument_parser::argument_parser): New ctor.
3664         (argument_parser::read_any_dollar): New method.
3665         (argument_parser::read_format_flags): New method.
3666         (argument_parser::read_any_format_width): New method.
3667         (argument_parser::read_any_format_left_precision): New method.
3668         (argument_parser::read_any_format_precision): New method.
3669         (argument_parser::handle_alloc_chars): New method.
3670         (argument_parser::read_any_length_modifier): New method.
3671         (argument_parser::read_any_other_modifier): New method.
3672         (argument_parser::find_format_char_info): New method.
3673         (argument_parser::validate_flag_pairs): New method.
3674         (argument_parser::give_y2k_warnings): New method.
3675         (argument_parser::parse_any_scan_set): New method.
3676         (argument_parser::handle_conversions): New method.
3677         (argument_parser::check_argument_type): New method.
3678         (check_format_info_main): Introduce classes argument_parser
3679         and flag_chars_t, moving the code within the loop into methods
3680         of these classes.  Make various locals "const".
3682 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
3684         * c-common.c: Include "substring-locations.h".
3685         (get_cpp_ttype_from_string_type): New function.
3686         (g_string_concat_db): New global.
3687         (substring_loc::get_range): New method.
3688         * c-common.h (g_string_concat_db): New declaration.
3689         (class substring_loc): New class.
3690         * c-lex.c (lex_string): When concatenating strings, capture the
3691         locations of all tokens using a new obstack, and record the
3692         concatenation locations within g_string_concat_db.
3693         * c-opts.c (c_common_init_options): Construct g_string_concat_db
3694         on the ggc-heap.
3696 2016-07-29  Marek Polacek  <polacek@redhat.com>
3698         PR c/71926
3699         * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
3700         parentheses warning.
3702         PR c/71574
3703         * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
3705 2016-07-28  Martin Liska  <mliska@suse.cz>
3707         PR gcov-profile/68025
3708         * c-common.c (handle_no_profile_instrument_function_attribute):
3710 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3712         * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
3713         BITS_PER_UNIT_LOG.
3715 2016-07-25  Jason Merrill  <jason@redhat.com>
3717         PR c++/65970
3718         * c.opt (fconstexpr-loop-limit): New.
3720 2016-07-22  Martin Sebor  <msebor@redhat.com>
3722         PR c++/71675
3723         * c-common.c (resolve_overloaded_builtin): Avoid converting
3724         __atomic_compare_exchange_n return type to that of what its
3725         first argument points to.
3727 2016-07-22  Uros Bizjak  <ubizjak@gmail.com>
3729         * c-common.c: Use HOST_WIDE_INT_M1U instead of
3730         ~(unsigned HOST_WIDE_INT) 0.
3732 2016-07-22  Martin Liska  <mliska@suse.cz>
3734         PR gcov-profile/69028
3735         PR gcov-profile/62047
3736         * cilk.c (create_cilk_helper_decl): Set location of a new decl
3737         to the current_function_decl.
3739 2016-07-21  Jason Merrill  <jason@redhat.com>
3741         PR c++/65168
3742         * c-common.c (c_common_truthvalue_conversion): Check
3743         c_inhibit_evaluation_warnings for warning about address of
3744         reference.
3746 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
3748         * c-common.h (lookup_name_fuzzy): Convert return type from tree to
3749         const char *.
3751 2016-07-15  Jason Merrill  <jason@redhat.com>
3753         * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
3755 2016-07-15  Jakub Jelinek  <jakub@redhat.com>
3757         PR c/71858
3758         * c-common.h (enum lookup_name_fuzzy_kind): Add
3759         FUZZY_LOOKUP_FUNCTION_NAME.
3761 2016-07-08  Jason Merrill  <jason@redhat.com>
3763         P0145: Refining Expression Order for C++.
3764         * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
3765         * c-opts.c: Adjust.
3767 2016-07-05  Markus Trippelsdorf  <markus@trippelsdorf.de>
3769         PR c++/71214
3770         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
3772 2016-06-29  Thomas Schwinge  <thomas@codesourcery.com>
3774         * c-pragma.h (enum pragma_kind): Rename
3775         PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE.  Adjust all
3776         users.
3778 2016-06-29  Richard Biener  <rguenther@suse.de>
3780         PR middle-end/71002
3781         * c-common.c (c_common_get_alias_set): Remove union type punning case.
3783 2016-06-24  Jason Merrill  <jason@redhat.com>
3785         P0145R2: Refining Expression Order for C++.
3786         * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
3787         MODIFY_EXPR.
3789 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
3791         * c-common.c (check_builtin_function_arguments): Require last
3792         argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
3793         Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
3794         if the last argument is pointer to enumerated or boolean type.
3796 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
3798         PR c/70339
3799         * c-common.h (enum lookup_name_fuzzy_kind): New enum.
3800         (lookup_name_fuzzy): New prototype.
3802 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
3804         * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
3806 2016-06-14  Jason Merrill  <jason@redhat.com>
3808         P0145R2: Refining Expression Order for C++.
3809         * c.opt (fargs-in-order): New.
3810         * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
3812 2016-06-13  Jakub Jelinek  <jakub@redhat.com>
3814         PR sanitizer/71498
3815         * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
3816         all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
3818         PR preprocessor/71183
3819         * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
3820         to cb_get_source_date_epoch.
3822 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
3824         PR c/68657
3825         * c.opt (Wpsabi): Add Warning flag.
3827 2016-06-10  Martin Sebor  <msebor@redhat.com>
3829         PR c/71392
3830         * c-common.c (handle_nonnull_attribute): Accept
3831         the nonnull attribute in type-generic builtins.
3833 2016-06-09  Martin Sebor  <msebor@redhat.com>
3835         PR c/70883
3836         * c-common.c (builtin_function_validate_nargs): Make text of error
3837         message consistent with others like it.
3839 2016-06-08  Martin Sebor  <msebor@redhat.com>
3840             Jakub Jelinek  <jakub@redhat.com>
3842         PR c++/70507
3843         PR c/68120
3844         * c-common.c (check_builtin_function_arguments): Handle
3845         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
3847 2016-06-08  Richard Biener  <rguenther@suse.de>
3849         * c-common.c (parse_optimize_options): Improve diagnostic messages.
3851 2016-06-07  Richard Biener  <rguenther@suse.de>
3853         PR c/61564
3854         * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
3855         options and warn about others.
3857 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
3859         * c-common.c (get_source_date_epoch): Rename to
3860         cb_get_source_date_epoch.
3861         * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
3862         message when the parsing fails.  Use error_at instead of fatal_error.
3863         * c-common.h (get_source_date_epoch): Rename to
3864         cb_get_source_date_epoch.
3865         * c-common.h (cb_get_source_date_epoch): Prototype.
3866         * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
3867         * c-common.h (c_omp_region_type): Remove trailing comma.
3868         * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
3869         * c-lex.c (c_lex_with_flags): Remove initialization of
3870         pfile->source_date_epoch.
3872 2016-05-30  Jakub Jelinek  <jakub@redhat.com>
3874         PR c++/71349
3875         * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
3876         C_OMP_CLAUSE_SPLIT_TARGET.  Put OMP_CLAUSE_NOWAIT to
3877         C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
3878         instead of C_OMP_CLAUSE_SPLIT_FOR.
3880 2016-05-24  Richard Biener  <rguenther@suse.de>
3882         PR middle-end/70434
3883         PR c/69504
3884         * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
3885         (convert_vector_to_array_for_subscript): ... this.
3886         * c-common.c (convert_vector_to_pointer_for_subscript): Use a
3887         VIEW_CONVERT_EXPR to an array type.  Rename to ...
3888         (convert_vector_to_array_for_subscript): ... this.
3890 2016-05-12  Marek Polacek  <polacek@redhat.com>
3892         PR c/70756
3893         * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
3894         size_in_bytes and pass LOC to it.
3896 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
3898         PR c/43651
3899         * c.opt (Wduplicate-decl-specifier): New option.
3901 2016-05-11  Marek Polacek  <polacek@redhat.com>
3903         PR c++/71024
3904         * c-common.c (diagnose_mismatched_attributes): New function.
3905         * c-common.h (diagnose_mismatched_attributes): Declare.
3907 2016-05-04  Marek Polacek  <polacek@redhat.com>
3909         * c.opt (Wdangling-else): New option.
3911 2016-05-03  Marek Polacek  <polacek@redhat.com>
3913         PR c/70859
3914         * c-common.c (builtin_function_validate_nargs): Add location
3915         parameter.  Use it.
3916         (check_builtin_function_arguments): Add location and arguments
3917         parameters.  Use them.
3918         * c-common.h (check_builtin_function_arguments): Update declaration.
3920 2016-05-03  Richard Biener  <rguenther@suse.de>
3922         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
3923         allow call args to gimplify to SSA names.
3925 2016-05-03  Marek Polacek  <polacek@redhat.com>
3927         * c-common.h (enum c_omp_region_type): Remove stray comma.
3929 2016-05-02  Cesar Philippidis  <cesar@codesourcery.com>
3931         * c-common.h (enum c_omp_region_type): Define.
3933 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
3935         * c-common.c (shorten_compare): Use wi::to_wide.
3937 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
3939         PR middle-end/70626
3940         * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
3941         * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
3942         reduction clauses in acc parallel loops.
3944 2016-04-29  Marek Polacek  <polacek@redhat.com>
3946         PR c/70852
3947         * c-common.c (warn_for_memset): Check domain before accessing it.
3949 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3951         PR/69089
3952         * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
3953         "aligned" attribute.
3955 2016-04-28  Jason Merrill  <jason@redhat.com>
3957         * c-lex.c (c_common_has_attribute): Handle nodiscard.
3959 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
3960             Matthias Klose  <doko@debian.org>
3962         * c-common.c (get_source_date_epoch): New function, gets the environment
3963         variable SOURCE_DATE_EPOCH and parses it as long long with error
3964         handling.
3965         * c-common.h (get_source_date_epoch): Prototype.
3966         * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
3968 2015-04-27  Ryan Burn  <contact@rnburn.com>
3970         PR c++/69024
3971         PR c++/68997
3972         * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
3973         (cilk_recognize_spawn): Renamed from recognize_spawn and change to
3974         external linkage.
3975         (cilk_detect_and_unwrap): Corresponding changes.
3976         (extract_free_variables): Don't extract free variables from
3977         AGGR_INIT_EXPR slot.
3978         * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
3979         (cilk_recognize_spawn): Likewise.
3981 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
3983         * c.opt (Wmemset-elt-size): New option.
3984         * c-common.c (warn_for_memset): New function.
3985         * c-common.h (warn_for_memset): Declare.
3987 2016-04-25  Jason Merrill  <jason@redhat.com>
3989         * c-common.c (handle_unused_attribute): Accept CONST_DECL.
3990         No longer static.
3991         * c-common.h: Declare it.
3992         * c-lex.c (c_common_has_attribute): Add maybe_unused.
3994 2016-04-22  Jason Merrill  <jason@redhat.com>
3996         * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
3998 2016-04-20  Ilya Verbin  <ilya.verbin@intel.com>
4000         PR c++/69363
4001         * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
4002         * c-common.h (c_finish_cilk_clauses): Remove declaration.
4004 2016-04-18  Michael Matz  <matz@suse.de>
4006         * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
4007         and SET_DECL_ALIGN.
4009 2016-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4011         * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
4012         (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
4013         to incomplete types.
4014         (dump_nested_type): Remove redundant tests and tidy up.
4015         (print_ada_declaration): Also set TREE_VISITED on the declaration of
4016         a type which is the typedef of an original type.
4018 2016-04-15  Marek Polacek  <polacek@redhat.com>
4020         PR c/70651
4021         * c-common.c (build_va_arg): Change two asserts into errors and return
4022         error_mark_node.
4024 2016-04-13  Marek Polacek  <polacek@redhat.com>
4026         PR c++/70639
4027         * c-indentation.c (should_warn_for_misleading_indentation): Bail out
4028         for switch statements, too.
4030 2016-03-28  Jason Merrill  <jason@redhat.com>
4032         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
4034 2016-03-23  Marek Polacek  <polacek@redhat.com>
4036         PR c++/69884
4037         * c.opt (Wignored-attributes): New option.
4039 2016-03-22  David Malcolm  <dmalcolm@redhat.com>
4041         PR c/69993
4042         * c-indentation.c (warn_for_misleading_indentation): Rewrite the
4043         diagnostic text, reversing the order of the warning and note so
4044         that they appear in source order.
4046 2016-03-17  Marek Polacek  <polacek@redhat.com>
4048         PR c/69407
4049         * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
4050         operations.
4052 2016-03-14  Jason Merrill  <jason@redhat.com>
4054         * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
4056         * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
4058 2016-03-09  Richard Biener  <rguenther@suse.de>
4060         PR c/70143
4061         * c-common.c (strict_aliasing_warning): Add back
4062         alias_sets_conflict_p check.
4064 2016-03-08  Jason Merrill  <jason@redhat.com>
4066         * c-opts.c (set_std_cxx1z): Don't enable concepts.
4068 2016-03-04  David Malcolm  <dmalcolm@redhat.com>
4070         PR c/68187
4071         * c-indentation.c (get_visual_column): Move code to determine next
4072         tab stop to...
4073         (next_tab_stop): ...this new function.
4074         (line_contains_hash_if): Delete function.
4075         (detect_preprocessor_logic): Delete function.
4076         (get_first_nws_vis_column): New function.
4077         (detect_intervening_unindent): New function.
4078         (should_warn_for_misleading_indentation): Replace call to
4079         detect_preprocessor_logic with a call to
4080         detect_intervening_unindent.
4082 2016-03-04  David Malcolm  <dmalcolm@redhat.com>
4084         PR c/68187
4085         * c-indentation.c (should_warn_for_misleading_indentation): When
4086         suppressing warnings about cases where the guard and body are on
4087         the same column, only use the first non-whitespace column in place
4088         of the guard token column when dealing with "else" clauses.
4089         When rejecting aligned BODY and NEXT, loosen the requirement
4090         from equality with the first non-whitespace of guard to simply
4091         that they not be indented relative to it.
4093 2016-03-04  Richard Biener  <rguenther@suse.de>
4095         PR c++/70054
4096         * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
4097         instead of alias_sets_conflict_p.
4099 2016-03-01  Marek Polacek  <polacek@redhat.com>
4101         PR c++/69795
4102         * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
4103         any DECL.
4105 2016-02-22  Martin Sebor  <msebor@redhat.com>
4107         PR middle-end/69780
4108         * c-common.c (check_builtin_function_arguments): Validate and
4109         reject invalid arguments to __builtin_alloca_with_align.
4111 2016-02-20  Mark Wielaard  <mjw@redhat.com>
4113         PR c/28901
4114         * c.opt (Wunused-const-variable): Turn into Alias for...
4115         (Wunused-const-variable=): New option.
4117 2016-02-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4119         PR c++/69865
4120         * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
4121         here...
4122         (c_common_init_options): ...to here.
4123         (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
4125 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
4127         PR c++/69826
4128         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
4129         (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
4130         flag_preprocess_only.
4132 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
4134         PR c/69835
4135         * c.opt (Wnonnull-compare): Enable for -Wall.
4137 2016-02-15  Jakub Jelinek  <jakub@redhat.com>
4139         PR c++/69797
4140         * c-common.c (sync_resolve_size): Diagnose too few arguments
4141         even when params is non-NULL empty vector.
4143 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
4145         PR target/60410
4146         * c.opt (fshort-double): Remove.
4148 2016-02-05  Martin Sebor  <msebor@redhat.com>
4150         PR c++/69662
4151         * c.opt (Warning options): Update -Wplacement-new to take
4152         an optional argument.
4154 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
4156         PR preprocessor/69543
4157         PR c/69558
4158         * c-pragma.c (handle_pragma_diagnostic): Pass input_location
4159         instead of loc to control_warning_option.
4161 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
4163         * c.opt (fopenacc-dim=): New option.
4165 2016-01-27  Ryan Burn  <contact@rnburn.com>
4167         PR cilkplus/69267
4168         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
4169         gimplify_arg. Removed superfluous post_p argument.
4170         * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
4171         superfluous post_p argument.
4172         * c-gimplify.c (c_gimplify_expr): Likewise.
4174 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
4176         PR other/69006
4177         * c-opts.c (c_diagnostic_finalizer): Replace invocation of
4178         pp_newline_and_flush with pp_flush.
4180 2016-01-20  Martin Sebor  <msebor@redhat.com>
4182         PR c/69405
4183         * c-common.c (sync_resolve_size): Avoid printing diagnostic about
4184         an incompatible argument when the argument isn't a valid tree node.
4186 2016-01-18  Jason Merrill  <jason@redhat.com>
4188         PR c++/68767
4189         * c-common.c (check_function_arguments_recurse): Fold the whole
4190         COND_EXPR, not just the condition.
4192 2016-01-18  Tom de Vries  <tom@codesourcery.com>
4194         * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
4195         classify as loop clause.
4197 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
4199         PR bootstrap/68271
4200         * c-pragma.c (c_register_pragma_1): Adjust comment to note that
4201         C++ FE no longer has limit on number of pragmas.
4203 2015-01-14  Ryan Burn  <contact@rnburn.com>
4205         PR c++/69048
4206         * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
4207         to add missing cleanup point.
4209 2016-01-14  David Malcolm  <dmalcolm@redhat.com>
4211         PR c++/68819
4212         * c-indentation.c (get_visual_column): Add location_t param.
4213         Handle the column number being zero by effectively disabling the
4214         warning, with an "inform".
4215         (should_warn_for_misleading_indentation): Add location_t argument
4216         for all uses of get_visual_column.
4218 2016-01-10  Patrick Palka  <ppalka@gcc.gnu.org>
4220         PR c++/69029
4221         * c-indentation.c (should_warn_for_misleading_indentation):
4222         Don't warn about do-while statements.
4224 2016-01-07  Martin Sebor  <msebor@redhat.com>
4226         PR c/68966
4227         * c-common.c (sync_resolve_size): Reject first argument when it's
4228         a pointer to _Bool.
4230 2016-01-05  David Malcolm  <dmalcolm@redhat.com>
4232         PR c/69122
4233         * c-indentation.c (get_visual_column): Remove default argument.
4234         (should_warn_for_misleading_indentation): For the multiline case,
4235         update call to get_visual_column for next_stmt_exploc so that it
4236         captures the location of the first non-whitespace character in the
4237         relevant line.  Don't issue warnings if there is non-whitespace
4238         before the next statement.
4240 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
4242         Update copyright years.
4244 2015-12-21  David Malcolm  <dmalcolm@redhat.com>
4246         * c-common.c (binary_op_error): Convert first param from
4247         location_t to rich_location * and use it when emitting an error.
4248         * c-common.h (binary_op_error): Convert first param from
4249         location_t to rich_location *.
4251 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
4253         * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
4254         * c-lex.c (conflict_marker_get_final_tok_kind): New function.
4256 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
4258         * c-common.c (c_common_attribute_table): Handle "omp declare target
4259         link" attribute.
4261 2015-12-14  Jakub Jelinek  <jakub@redhat.com>
4263         PR c/68833
4264         * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
4266 2014-12-12  Tobias Burnus  <burnus@net-b.de>
4268         PR fortran/68815
4269         * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
4270         specifiers (%d, %i,%u and %c).
4272 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
4274         * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
4276 2015-12-08  Jakub Jelinek  <jakub@redhat.com>
4278         PR c/48088
4279         PR c/68657
4280         * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
4281         * c-pragma.c (handle_pragma_diagnostic): Adjust
4282         control_warning_option caller.
4284 2015-12-07  David Malcolm  <dmalcolm@redhat.com>
4286         * c-common.c (c_cpp_error): Update for change to
4287         rich_location::set_range.
4289 2015-12-04  Paolo Bonzini  <bonzini@gnu.org>
4291         * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
4292         shifting 1 out of the sign bit.
4294 2015-12-04  Kirill Yukhin  <kirill.yukhin@intel.com>
4296         * c-common.c (c_common_attribute_table[]): Update max arguments
4297         count for "simd" attribute.
4298         (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
4300 2015-12-03  Jakub Jelinek  <jakub@redhat.com>
4302         PR preprocessor/57580
4303         * c-ppoutput.c (print): Change printed field to bool.
4304         Move src_file last for smaller padding.
4305         (init_pp_output): Set print.printed to false instead of 0.
4306         (scan_translation_unit): Fix up formatting.  Set print.printed
4307         to true after printing something other than newline.
4308         (scan_translation_unit_trad): Set print.printed to true instead of 1.
4309         (maybe_print_line_1): Set print.printed to false instead of 0.
4310         (print_line_1): Likewise.
4311         (do_line_change): Set print.printed to true instead of 1.
4312         (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
4313         dump_macro): Set print.printed to false after printing newline.
4315 2015-12-02  Jason Merrill  <jason@redhat.com>
4317         * c-common.c (fold_for_warn): New.
4318         (warn_logical_operator, warn_tautological_cmp)
4319         (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
4321         * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
4322         (c_fully_fold_internal, decl_constant_value_for_optimization):
4323         Move to c/c-fold.c.
4324         * c-common.h: Don't declare decl_constant_value_for_optimization.
4326 2015-12-02  Joseph Myers  <joseph@codesourcery.com>
4328         PR c/68162
4329         * c-common.h (c_build_qualified_type): Add extra default
4330         arguments.
4332 2015-12-01  Julian Brown  <julian@codesourcery.com>
4333             Cesar Philippidis  <cesar@codesourcery.com>
4334             James Norris  <James_Norris@mentor.com>
4336         * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
4337         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
4338         (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
4340 2015-11-30  Eric Botcazou  <ebotcazou@adacore.com>
4342         * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
4343         (decl_sloc_common): Delete and move bulk of processing to...
4344         (decl_sloc): ...here.
4345         (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
4346         (dump_ada_double_name): Remove S parameter and compute the suffix.
4347         (dump_ada_array_type): Add PARENT parameter.  Simplify computation of
4348         element type and deal with an anonymous one.
4349         (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
4350         (dump_generic_ada_node): Tweak.  Adjust call to dump_ada_array_type
4351         and remove reference to QUAL_UNION_TYPE.
4352         (dump_nested_types): Make 2 passes on the fields and move bulk to...
4353         (dump_nested_type): ...here.  New function extracted from above.
4354         Generate a full declaration for anonymous element type of arrays.
4355         (print_ada_declaration): Really skip anonymous declarations.  Remove
4356         references to QUAL_UNION_TYPE.  Adjust call to dump_ada_array_type.
4357         Clean up processing of declarations of array types and objects.
4358         (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
4359         Remove obsolete code and tidy up.
4361 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
4363         PR c/67581
4364         * c-common.c (handle_transparent_union_attribute): Update
4365         also type variants.
4367 2015-11-27  Martin Liska  <mliska@suse.cz>
4369         PR c++/68312
4370         * array-notation-common.c (cilkplus_extract_an_triplets):
4371         Release vector of vectors.
4372         * cilk.c (gimplify_cilk_spawn): Free allocated memory.
4374 2015-11-26  Eric Botcazou  <ebotcazou@adacore.com>
4376         PR c++/68527
4377         * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
4378         (print_ada_struct_decl): Likewise.
4380 2015-11-23  Igor Zamyatin  <igor.zamyatin@intel.com>
4382         PR c++/68001
4383         * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
4384         * cilk.c (recognize_spawn): Determine location in a more precise
4385         way.
4387 2015-11-19  Jason Merrill  <jason@redhat.com>
4389         * c-common.c (shorten_compare): But look through macros from
4390         system headers.
4392 2015-11-18  Jason Merrill  <jason@redhat.com>
4394         * c-common.c (shorten_compare): Don't -Wtype-limits if the
4395         non-constant operand comes from a macro.
4397 2015-11-17  Jason Merrill  <jason@redhat.com>
4399         PR bootstrap/68346
4400         * c-common.c (warn_tautological_cmp): Fold before checking for
4401         constants.
4403 2015-11-16  Marek Polacek  <polacek@redhat.com>
4405         PR c++/68362
4406         * c-common.c (check_case_bounds): Fold low and high cases.
4408 2015-11-16  Marek Polacek  <polacek@redhat.com>
4410         * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
4411         * c-common.c (c_common_get_alias_set): Likewise.
4412         (handle_visibility_attribute): Likewise.
4414 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
4416         * c-common.c (handle_simd_attribute): New.
4417         (struct attribute_spec): Add entry for "simd".
4418         (handle_simd_attribute): New.
4420 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
4422         * c-lex.c (interpret_float): Use fold_convert.
4424 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
4426         * c-common.c (c_fully_fold_internal): Capture existing souce_range,
4427         and store it on the result.
4428         * c-opts.c (c_common_init_options): Set
4429         global_dc->colorize_source_p.
4431 2015-11-12  James Norris  <jnorris@codesourcery.com>
4432             Joseph Myers  <joseph@codesourcery.com>
4434         * c-pragma.c (oacc_pragmas): Add entry for declare directive.
4435         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
4436         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
4437         PRAGMA_OACC_CLAUSE_LINK.
4439 2015-11-11  Marek Polacek  <polacek@redhat.com>
4441         PR c/68107
4442         PR c++/68266
4443         * c-common.c (valid_array_size_p): New function.
4444         * c-common.h (valid_array_size_p): Declare.
4446 2015-11-11  Dominique d'Humieres  <dominiq@lps.ens.fr>
4448         PR bootstrap/68271
4449         * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
4451 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
4453         * array-notation-common.c: Remove unused header files.
4454         * c-ada-spec.c: Likewise.
4455         * c-cilkplus.c: Likewise.
4456         * c-common.c: Likewise.
4457         * c-cppbuiltin.c: Likewise.
4458         * c-dump.c: Likewise.
4459         * c-format.c: Likewise.
4460         * c-gimplify.c: Likewise.
4461         * c-indentation.c: Likewise.
4462         * c-lex.c: Likewise.
4463         * c-omp.c: Likewise.
4464         * c-opts.c: Likewise.
4465         * c-pch.c: Likewise.
4466         * c-ppoutput.c: Likewise.
4467         * c-pragma.c: Likewise.
4468         * c-pretty-print.c: Likewise.
4469         * c-semantics.c: Likewise.
4470         * c-ubsan.c: Likewise.
4471         * cilk.c: Likewise.
4472         * stub-objc.c: Likewise.
4474 2015-11-09  Thomas Schwinge  <thomas@codesourcery.com>
4475             Cesar Philippidis  <cesar@codesourcery.com>
4476             James Norris  <jnorris@codesourcery.com>
4477             Julian Brown  <julian@codesourcery.com>
4478             Nathan Sidwell  <nathan@codesourcery.com>
4480         * c-pragma.c (oacc_pragmas): Add "routine".
4481         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
4483 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
4485         * c-common.c (c_common_attributes): Add scalar_storage_order.
4486         (handle_scalar_storage_order_attribute): New function.
4487         * c-pragma.c (global_sso): New variable.
4488         (maybe_apply_pragma_scalar_storage_order): New function.
4489         (handle_pragma_scalar_storage_order): Likewise.
4490         (init_pragma): Register scalar_storage_order.
4491         * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
4492         * c.opt (Wscalar-storage-order): New warning.
4493         (fsso-struct=): New option.
4495 2015-11-08  Martin Sebor  <msebor@redhat.com>
4497         * c.opt (Wplacement-new): Add a period to the end of a sentence.
4499 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
4501         * c-common.c: Don't undef DEF_BUILTIN.
4503 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
4505         * c-common.c (c_cpp_error): Convert parameter from location_t to
4506         rich_location *.  Eliminate the "column_override" parameter and
4507         the call to diagnostic_override_column.
4508         Update the "done_lexing" clause to set range 0
4509         on the rich_location, rather than overwriting a location_t.
4510         * c-common.h (c_cpp_error): Convert parameter from location_t to
4511         rich_location *.  Eliminate the "column_override" parameter.
4513 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
4514             Thomas Schwinge  <thomas@codesourcery.com>
4515             James Norris  <jnorris@codesourcery.com>
4517         * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
4518         AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses.  Associate REDUCTION
4519         clauses with parallel and kernels and loops.
4520         * c-pragma.h (enum pragma_omp_clause): Add entries for
4521         PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
4522         * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
4523         NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
4524         INDEPENDENT,SEQ}.
4525         (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
4527 2015-11-05  Martin Sebor  <msebor@redhat.com>
4529         PR c++/67942
4530         * c.opt (-Wplacement-new): New option.
4532 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
4534         * c-common.h (c_finish_omp_atomic): Add TEST argument.
4535         (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
4536         * c-omp.c (c_finish_omp_atomic): Add TEST argument.  Don't call
4537         save_expr or create_tmp_var* if TEST is true.
4538         (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
4539         Don't call add_stmt here.
4540         (struct c_omp_check_loop_iv_data): New type.
4541         (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
4542         c_omp_check_loop_iv_exprs): New functions.
4543         (c_omp_split_clauses): Adjust for lastprivate being allowed on
4544         distribute.
4545         (c_omp_declare_simd_clauses_to_numbers): Change
4546         OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
4547         (c_omp_declare_simd_clauses_to_decls): Similarly change those
4548         from numbers to PARM_DECLs.
4550 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
4552         * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
4553         flag_checking.
4555 2015-11-03  Bernd Schmidt  <bschmidt@redhat.com>
4557         PR c++-common/67882
4558         * c-common.h (fold_offsetof_1): Add argument.
4559         * c-common.c (fold_offsetof_1): Diagnose more invalid
4560         offsetof expressions that reference elements past the end of
4561         an array.
4563 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
4564             Chung-Lin Tang  <cltang@codesourcery.com>
4566         * c-pragma.c (oacc_pragmas): Add "atomic".
4567         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
4569 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
4571         * c-common.c (handle_target_clones_attribute): New.
4572         (c_common_attribute_table): Add handle_target_clones_attribute.
4573         (handle_always_inline_attribute): Add check on target_clones attribute.
4574         (handle_target_attribute): Ditto.
4576 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
4578         * array-notation-common.c: Reorder #include's and remove duplicates.
4579         * c-ada-spec.c: Likewise.
4580         * c-cilkplus.c: Likewise.
4581         * c-common.c: Likewise.
4582         * c-cppbuiltin.c: Likewise.
4583         * c-dump.c: Likewise.
4584         * c-format.c: Likewise.
4585         * c-gimplify.c: Likewise.
4586         * c-indentation.c: Likewise.
4587         * c-lex.c: Likewise.
4588         * c-omp.c: Likewise.
4589         * c-opts.c: Likewise.
4590         * c-pch.c: Likewise.
4591         * c-ppoutput.c: Likewise.
4592         * c-pragma.c: Likewise.
4593         * c-pretty-print.c: Likewise.
4594         * c-semantics.c: Likewise.
4595         * c-ubsan.c: Likewise.
4596         * cilk.c: Likewise.
4597         * stub-objc.c: Likewise.
4599 2015-10-28  Jason Merrill  <jason@redhat.com>
4601         * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
4603 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
4604             James Norris  <jnorris@codesourcery.com>
4605             Cesar Philippidis  <cesar@codesourcery.com>
4607         PR c/64765
4608         PR c/64880
4609         * c-common.h (c_oacc_split_loop_clauses): Declare function.
4610         * c-omp.c (c_oacc_split_loop_clauses): New function.
4612 2015-10-21  Martin Sebor  <msebor@redhat.com>
4614         PR driver/68043
4615         * c.opt: End each sentence that describes an option with a period.
4617 2015-10-20  Marek Polacek  <polacek@redhat.com>
4619         * array-notation-common.c (is_cilkplus_vector_p): Define.
4620         * c-common.h (is_cilkplus_vector_p): Declare.
4622 2015-10-20  Marek Polacek  <polacek@redhat.com>
4624         * c.opt (std=gnu++11): Do not describe as experimental.
4625         (std=gnu++14): Likewise.
4627 2015-10-19  Jason Merrill  <jason@redhat.com>
4629         * c-cppbuiltin.c (c_cpp_builtins): Define
4630         __cpp_nontype_template_args.
4632 2015-10-19  Jason Merrill  <jason@redhat.com>
4634         * c-cppbuiltin.c (c_cpp_builtins): Define
4635         __cpp_enumerator_attributes, __cpp_fold_expressions,
4636         __cpp_unicode_characters.
4638 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
4639             Aldy Hernandez  <aldyh@redhat.com>
4641         * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
4642         DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
4643         (c_define_builtins): Likewise.
4644         * c-common.h (enum c_omp_clause_split): Add
4645         C_OMP_CLAUSE_SPLIT_TASKLOOP.
4646         (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
4647         (c_finish_omp_for): Add ORIG_DECLV argument.
4648         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
4649         201511 instead of 201307.
4650         * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
4651         OMP_CRITICAL_CLAUSES to it.
4652         (c_finish_omp_ordered): Add CLAUSES argument, set
4653         OMP_ORDERED_CLAUSES to it.
4654         (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
4655         to it if OMP_FOR.  Clear DECL_INITIAL on the IVs.
4656         (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
4657         constructs and new OpenMP 4.5 clauses.  Clear
4658         OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD.  Add
4659         verification code.
4660         * c-pragma.c (omp_pragmas_simd): Add taskloop.
4661         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
4662         (enum pragma_omp_clause): Add
4663         PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
4664         and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
4666 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
4668         * c-lex.c (interpret_float): Use real_equal instead of
4669         REAL_VALUES_EQUAL.
4671 2015-10-04  Jason Merrill  <jason@redhat.com>
4673         Implement N4514, C++ Extensions for Transactional Memory.
4674         * c-common.c (c_common_reswords): Add C++ TM TS keywords.
4675         (c_common_attribute_table): Add transaction_safe_dynamic.
4676         transaction_safe now affects type identity.
4677         (handle_tm_attribute): Handle transaction_safe_dynamic.
4678         * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
4679         RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
4680         (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
4681         (D_TRANSMEM): New.
4682         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
4683         * c-pretty-print.c (pp_c_attributes_display): Don't print
4684         transaction_safe in C++.
4686 2015-10-02  Marek Polacek  <polacek@redhat.com>
4688         * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
4690 2015-10-02  Marek Polacek  <polacek@redhat.com>
4692         PR c/64249
4693         * c-common.c (warn_duplicated_cond_add_or_warn): New function.
4694         * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
4695         * c.opt (Wduplicated-cond): New option.
4697 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
4699         * c.opt (std=c11): Do not describe as experimental.
4700         (std=gnu11): Likewise.
4701         (std=iso9899:2011): Likewise.
4703 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
4705         * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
4706         (DEF_FUNCTION_TYPE_VAR_11): Delete.
4708 2015-09-25  Marek Polacek  <polacek@redhat.com>
4710         * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
4711         (ubsan_instrument_shift): Likewise.
4713 2015-09-25  Marek Polacek  <polacek@redhat.com>
4715         PR sanitizer/64906
4716         * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
4718 2015-09-24  Patrick Palka  <ppalka@gcc.gnu.org>
4720         * c-indentation.c (should_warn_for_misleading_indentation):
4721         Compare next_stmt_vis_column with guard_line_first_nws instead
4722         of with guard_line_vis_column.
4724 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4726         PR c/49654
4727         PR c/49655
4728         * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
4729         options and options not valid for the current language.
4731 2015-09-22  Patrick Palka  <ppalka@gcc.gnu.org>
4733         * c-indentation.c (should_warn_for_misleading_indentation):
4734         Float out and consolidate the calls to get_visual_column that
4735         are passed guard_exploc as an argument.  Compare
4736         next_stmt_vis_column with guard_line_first_nws instead of with
4737         body_line_first_nws.
4739 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
4741         * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
4742         Wnamespaces): New C++ warnings.
4744 2015-09-22  Jason Merrill  <jason@redhat.com>
4746         * c-common.h (abi_compat_version_crosses): New.
4747         (warn_abi_version): Declare.
4748         * c-common.c: Define it.
4749         * c-opts.c (c_common_post_options): Handle it.
4750         flag_abi_compat_version defaults to 8.
4752 2015-09-21  Ville Voutilainen  <ville.voutilainen@gmail.com>
4754         Complete the implementation of N4230, Nested namespace definition.
4755         * c-cppbuiltin.c: Add __cpp_namespace_attributes and
4756         __cpp_nested_namespace_definitions.
4758 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4760         * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
4762 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4764         * c-pragma.c (handle_pragma_diagnostic): Use explicit location
4765         when warning.
4766         * c-pragma.h (pragma_lex): Add optional loc argument.
4768 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
4770         * c-format.c (check_format_arg): Adjust to use common block size in all
4771         object pools.
4773 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
4775         * c-format.c (location_from_offset): Update for change in
4776         signature of location_get_source_line.
4777         * c-indentation.c (get_visual_column): Likewise.
4778         (line_contains_hash_if): Likewise.
4780 2015-09-14  Marek Polacek  <polacek@redhat.com>
4782         * c-opts.c (c_common_post_options): Set C++ standard earlier, before
4783         setting various warnings.
4785 2015-09-14  Marek Polacek  <polacek@redhat.com>
4787         * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
4788         a negative value.
4790 2015-09-11  Mark Wielaard  <mjw@redhat.com>
4792         PR c/28901
4793         * c.opt (Wunused-variable): Option from common.opt.
4794         (Wunused-const-variable): New option.
4796 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
4798         PR c++/53184
4799         * c.opt ([Wsubobject-linkage]): Add.
4801 2015-09-03  Martin Sebor  <msebor@redhat.com>
4803         PR c/66516
4804         * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
4805         functions.
4806         * c-common.c (reject_gcc_builtin): Define.
4808 2015-09-02  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4810         PR middle-end/60586
4811         * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
4812         prototype.
4813         * c-gimplify.c (c_gimplify_expr): Added a call to the function
4814         cilk_gimplify_call_params_in_spawned_fn.
4815         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
4816         (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
4817         unwrapping.
4819 2015-08-25  Marek Polacek  <polacek@redhat.com>
4821         PR middle-end/67330
4822         * c-common.c (handle_weak_attribute): Don't check whether the
4823         visibility can be changed here.
4825 2015-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4827         * c-lex.c (c_lex_with_flags): Use explicit locations.
4829 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
4831         * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
4832         c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
4834 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4836         PR middle-end/36757
4837         * c-common.c (check_builtin_function_arguments): Add check
4838         for BUILT_IN_SIGNBIT argument.
4840 2015-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
4842         PR c++/67160
4843         * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
4844         in c++1z mode.
4846 2015-08-17  Marek Polacek  <polacek@redhat.com>
4848         * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
4849         with whitespaces before qualifier names.
4851 2015-08-12  Marek Polacek  <polacek@redhat.com>
4853         PR c++/55095
4854         * c-common.c (maybe_warn_shift_overflow): Properly handle
4855         left-shifting 1 into the sign bit.
4857 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4859         * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
4861 2015-08-06  Andrew Sutton  <andrew.n.sutton@gmail.com>
4862             Braden Obrzut  <admin@maniacsvault.net>
4863             Jason Merrill  <jason@redhat.com>
4865         Add C++ Concepts TS support.
4866         * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
4867         * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
4868         (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
4869         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
4870         * c-opts.c (set_std_cxx1z): Set flag_concepts.
4871         * c.opt (fconcepts): New.
4873 2015-08-02  Martin Sebor  <msebor@redhat.com>
4875         * c.opt (-Wframe-address): New warning option.
4877 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
4879         * c-indentation.c (should_warn_for_misleading_indentation):
4880         Improve heuristics.
4882 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
4884         * c-indentation.c (get_visual_column): Add parameter first_nws,
4885         use it.  Update comment documenting the function.
4886         (is_first_nonwhitespace_on_line): Remove.
4887         (should_warn_for_misleading_indentation): Replace usage of
4888         of is_first_nonwhitespace_on_line with get_visual_column.
4890 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
4892         * c-indentation.h (struct token_indent_info): Define.
4893         (get_token_indent_info): Define.
4894         (warn_for_misleading_information): Declare.
4895         * c-common.h (warn_for_misleading_information): Remove.
4896         * c-identation.c (warn_for_misleading_indentation):
4897         Change declaration to take three token_indent_infos.  Adjust
4898         accordingly.
4899         * c-identation.c (should_warn_for_misleading_indentation):
4900         Likewise.  Bail out early if the body is a compound statement.
4901         (guard_tinfo_to_string): Define.
4903 2015-07-30  Jason Merrill  <jason@redhat.com>
4905         * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
4906         '*' for reference decay.
4908 2015-07-30  Marek Polacek  <polacek@redhat.com>
4910         * c-common.c (warn_tautological_cmp): Bail for float types.
4912 2015-07-27  Marek Polacek  <polacek@redhat.com>
4914         PR bootstrap/67030
4915         * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
4917 2015-07-27  Marek Polacek  <polacek@redhat.com>
4919         PR c++/66555
4920         PR c/54979
4921         * c-common.c (find_array_ref_with_const_idx_r): New function.
4922         (warn_tautological_cmp): New function.
4923         * c-common.h (warn_tautological_cmp): Declare.
4924         * c.opt (Wtautological-compare): New option.
4926 2015-07-23  Marek Polacek  <polacek@redhat.com>
4928         * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
4929         (ubsan_instrument_shift): Likewise.
4931 2015-07-23  Marek Polacek  <polacek@redhat.com>
4933         PR sanitizer/66908
4934         * c-ubsan.c: Include gimplify.h.
4935         (ubsan_instrument_division): Unshare OP0 and OP1.
4936         (ubsan_instrument_shift): Likewise.
4938 2015-07-20  Marek Polacek  <polacek@redhat.com>
4939             Richard Sandiford  <richard.sandiford@arm.com>
4941         PR c++/55095
4942         * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
4943         Use EXPR_LOC_OR_LOC.
4944         (maybe_warn_shift_overflow): New function.
4945         * c-common.h (maybe_warn_shift_overflow): Declare.
4946         * c-opts.c (c_common_post_options): Set warn_shift_overflow.
4947         * c.opt (Wshift-overflow): New option.
4949 2015-07-16  Martin Liska  <mliska@suse.cz>
4951         * c-format.c (static void check_format_info_main): Use
4952         object_allocator instead of pool_allocator.
4953         (check_format_arg): Likewise.
4954         (check_format_info_main): Likewise.
4956 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
4958         * c-opts.c: Remove multiline #include comment.
4960 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
4962         * c-common.c: Fix double word typos.
4964 2015-07-10  Eric Botcazou  <ebotcazou@adacore.com>
4966         * c-ada-spec.h (cpp_operation): Revert latest change.
4967         * c-ada-spec.c (print_ada_declaration): Likewise.  Skip implicit
4968         constructors and destructors.
4970 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
4972         * c-common.h: Adjust includes for flags.h changes.
4973         * stub-objc.c: Likewise.
4975 2015-07-08  Eric Botcazou  <ebotcazou@adacore.com>
4977         * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
4978         * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
4980 2015-07-08  Jakub Jelinek  <jakub@redhat.com>
4982         * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
4983         are to be removed, return NULL rather than original clauses list.
4985 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
4987         * array-notation-common.c: Adjust includes.
4988         * c-ada-spec.c: Likewise.
4989         * c-cilkplus.c: Likewise.
4990         * c-common.h: Likewise.
4991         * c-cppbuiltin.c: Likewise.
4992         * c-dump.c: Likewise.
4993         * c-format.c: Likewise.
4994         * c-gimplify.c: Likewise.
4995         * c-indentation.c: Likewise.
4996         * c-lex.c: Likewise.
4997         * c-omp.c: Likewise.
4998         * c-opts.c: Likewise.
4999         * c-pch.c: Likewise.
5000         * c-ppoutput.c: Likewise.
5001         * c-pragma.c: Likewise.
5002         * c-pretty-print.c: Likewise.
5003         * c-semantics.c: Likewise.
5004         * c-ubsan.c: Likewise.
5005         * cilk.c: Likewise.
5006         * stub-objc.c: Likewise.
5008 2015-07-07  Eric Botcazou  <ebotcazou@adacore.com>
5010         * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
5011         * c-ada-spec.c (print_ada_declaration): Skip move constructors.
5013 2015-07-01  Jason Merrill  <jason@redhat.com>
5015         * c-common.h (D_CXX11): Rename from D_CXX0X.
5016         (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
5017         * c-common.c: Adjust.
5019         * c-opts.c (c_common_post_options): Default to C++14.
5021         * c-opts.c (c_common_post_options): Highest ABI level is now 10.
5023 2015-06-30  Edward Smith-Rowland  <3dw4rd@verizon.net>
5025         Implement N4197 - Adding u8 character literals
5026         * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
5027         CPP_CHAR.
5028         * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
5029         CPP_UTF8CHAR_USERDEF tokens.
5030         * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
5031         and CPP_UTF8CHAR tokens.
5032         (lex_charconst): Treat CPP_UTF8CHAR token.
5034 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5036         PR fortran/66605
5037         * c-common.c (do_warn_unused_parameter): Move here.
5038         * c-common.h (do_warn_unused_parameter): Declare.
5040 2015-06-29  Marek Polacek  <polacek@redhat.com>
5042         PR c/66322
5043         * c-common.c (check_case_bounds): Add bool * parameter.  Set
5044         OUTSIDE_RANGE_P.
5045         (c_add_case_label): Add bool * parameter.  Pass it down to
5046         check_case_bounds.
5047         (c_do_switch_warnings): Add bool parameters.  Implement -Wswitch-bool
5048         warning here.
5049         * c-common.h (c_add_case_label, c_do_switch_warnings): Update
5050         declarations.
5052 2015-06-27  Marek Polacek  <polacek@redhat.com>
5054         * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
5055         or VECTOR_INTEGER_TYPE_P throughout.
5056         * c-gimplify.c: Likewise.
5058 2015-06-26  Marek Polacek  <polacek@redhat.com>
5060         * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
5061         * c-common.c (c_fully_fold_internal): Likewise.
5062         (c_alignof_expr): Likewise.
5063         * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
5064         * c-ubsan.c (ubsan_instrument_bounds): Likewise.
5065         * cilk.c (create_parm_list): Likewise.
5067 2015-06-26  Marek Polacek  <polacek@redhat.com>
5069         * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
5071 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
5073         * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
5074         * c-gimplify.c: Likewise.
5075         * c-pragma.c: Likewise.
5076         * c-ubsan.c: Likewise.
5077         * cilk.c: Likewise.
5079 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5081         * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
5082         ggc_hasher.
5084 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
5086         * cilk.c: Move calls.h after tm.h in the include chain.
5088 2015-06-25  Marek Polacek  <polacek@redhat.com>
5090         * array-notation-common.c: Use VAR_P throughout.
5091         * c-ada-spec.c: Likewise.
5092         * c-common.c: Likewise.
5093         * c-format.c: Likewise.
5094         * c-gimplify.c: Likewise.
5095         * c-omp.c: Likewise.
5096         * c-pragma.c: Likewise.
5097         * c-pretty-print.c: Likewise.
5098         * cilk.c: Likewise.
5100 2015-06-25  Marek Polacek  <polacek@redhat.com>
5102         * cilk.c (extract_free_variables): Use is_global_var.
5104 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
5106         * c-common.c: Don't include target-def.h.
5108 2015-06-23  Marek Polacek  <polacek@redhat.com>
5110         * c-common.c (warn_logical_operator): Use tree_int_cst_equal
5111         when comparing INTEGER_CSTs.
5113 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
5115         * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
5116         * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
5117         (dump_ada_template): Skip partially specialized types.
5119 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
5121         * c-common.c (scalar_to_vector): Use std::swap instead of manually
5122         swapping.
5124 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
5126         * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
5127         * c-ada-spec.c: Likewise.
5128         * c-cilkplus.c: Likewise.
5129         * c-common.c: Likewise.
5130         * c-common.h: Likewise.
5131         * c-cppbuiltin.c: Likewise.
5132         * c-dump.c: Likewise.
5133         * c-format.c: Likewise.
5134         * c-gimplify.c: Likewise.
5135         * c-indentation.c: Likewise.
5136         * c-lex.c: Likewise.
5137         * c-omp.c: Likewise.
5138         * c-opts.c: Likewise.
5139         * c-pch.c: Likewise.
5140         * c-ppoutput.c: Likewise.
5141         * c-pragma.c: Likewise.
5142         * c-pretty-print.c: Likewise.
5143         * c-semantics.c: Likewise.
5144         * c-ubsan.c: Likewise.
5145         * cilk.c: Likewise.
5146         * stub-objc.c: Likewise.
5148 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
5150         PR c++/65168
5151         * c-common.c (c_common_truthvalue_conversion): Warn when
5152         converting an address of a reference to a truth value.
5154 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
5156         * array-notation-common.c : Adjust include files.
5157         * c-ada-spec.c : Likewise.
5158         * c-cilkplus.c : Likewise.
5159         * c-common.c : Likewise.
5160         * c-common.h : Likewise.
5161         * c-cppbuiltin.c : Likewise.
5162         * c-dump.c : Likewise.
5163         * c-format.c : Likewise.
5164         * c-gimplify.c : Likewise.
5165         * c-indentation.c : Likewise.
5166         * c-lex.c : Likewise.
5167         * c-omp.c : Likewise.
5168         * c-opts.c : Likewise.
5169         * c-pch.c : Likewise.
5170         * c-ppoutput.c : Likewise.
5171         * c-pragma.c : Likewise.
5172         * c-pretty-print.c : Likewise.
5173         * c-semantics.c : Likewise.
5174         * c-ubsan.c : Likewise.
5175         * cilk.c : Likewise.
5176         * stub-objc.c : Likewise.
5178 2015-06-08  Marek Polacek  <polacek@redhat.com>
5180         PR c/66415
5181         * c-format.c (location_from_offset): Return LOC if LINE is null.
5183 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
5185         * c-common.h (c_parse_final_cleanups): New prototype.
5186         * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
5188 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
5190         * c-common.c (noplt): New attribute.
5191         (handle_noplt_attribute): New handler.
5193 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
5195         * array-notation-common.c: Adjust includes for restructured coretypes.h.
5196         * c-ada-spec.c: Likewise.
5197         * c-cilkplus.c: Likewise.
5198         * c-common.c: Likewise.
5199         * c-common.h: Likewise.
5200         * c-cppbuiltin.c: Likewise.
5201         * c-dump.c: Likewise.
5202         * c-format.c: Likewise.
5203         * c-gimplify.c: Likewise.
5204         * c-indentation.c: Likewise.
5205         * c-lex.c: Likewise.
5206         * c-omp.c: Likewise.
5207         * c-opts.c: Likewise.
5208         * c-pch.c: Likewise.
5209         * c-ppoutput.c: Likewise.
5210         * c-pragma.c: Likewise.
5211         * c-pretty-print.c: Likewise.
5212         * c-semantics.c: Likewise.
5213         * c-ubsan.c: Likewise.
5214         * cilk.c: Likewise.
5215         * stub-objc.c: Likewise.
5217 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
5219         PR c/66220:
5220         * c-indentation.c (should_warn_for_misleading_indentation): Use
5221         expand_location rather than expand_location_to_spelling_point.
5222         Don't warn if the guarding statement is more indented than the
5223         next/body stmts.
5225 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
5227         * c-indentation.c (warn_for_misleading_indentation): Bail out
5228         immediately if -Wmisleading-indentation isn't enabled.
5230 2015-06-01  Martin Liska  <mliska@suse.cz>
5232         * c-format.c (check_format_arg):Use new type-based pool allocator.
5233         (check_format_info_main) Likewise.
5235 2015-05-31  Eric Botcazou  <ebotcazou@adacore.com>
5237         * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
5238         (has_nontrivial_methods): Likewise.
5240 2015-05-25  Marek Polacek  <polacek@redhat.com>
5242         * c-ubsan.c (ubsan_instrument_shift): Use type0.
5244 2015-05-22  Marek Polacek  <polacek@redhat.com>
5246         PR c/47043
5247         * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
5249 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5251         * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
5252         STACK_GROWS_DOWNWARD.
5254 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5256         * c-cppbuiltin.c (c_cpp_builtins): Check the value of
5257         STACK_GROWS_DOWNWARD rather than if it is defined.
5259 2015-05-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5261         PR c/52952
5262         * c-format.c (location_column_from_byte_offset): New.
5263         (location_from_offset): New.
5264         (struct format_wanted_type): Add offset_loc field.
5265         (check_format_info): Move handling of location for extra arguments
5266         closer to the point of warning.
5267         (check_format_info_main): Pass the result of location_from_offset
5268         to warning_at.
5269         (format_type_warning): Pass the result of location_from_offset
5270         to warning_at.
5272 2015-05-20  Marek Polacek  <polacek@redhat.com>
5274         * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
5276 2015-05-20  Marek Polacek  <polacek@redhat.com>
5278         * c-ada-spec.c (dump_sloc): Use DECL_P.
5280 2015-05-20  Marek Polacek  <polacek@redhat.com>
5282         * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
5283         * c-common.c: Likewise.
5285 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
5287         * c-common.h (fe_file_change): Strengthen param from
5288         const line_map * to const line_map_ordinary *.
5289         (pp_file_change): Likewise.
5290         * c-lex.c (fe_file_change): Likewise.
5291         (cb_define): Use linemap_check_ordinary when invoking
5292         SOURCE_LINE.
5293         (cb_undef): Likewise.
5294         * c-opts.c (c_finish_options): Use linemap_check_ordinary when
5295         invoking cb_file_change.
5296         (c_finish_options): Likewise.
5297         (push_command_line_include): Likewise.
5298         (cb_file_change): Strengthen param "new_map" from
5299         const line_map * to const line_map_ordinary *.
5300         * c-ppoutput.c (cb_define): Likewise for local "map".
5301         (pp_file_change): Likewise for param "map" and local "from".
5303 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
5305         * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
5307 2015-05-18  Tom de Vries  <tom@codesourcery.com>
5309         * c-common.c (build_va_arg_1): New function.
5310         (build_va_arg): Add address operator to va_list operand if necessary.
5312 2015-05-15  Mikhail Maltsev  <maltsevm@gmail.com>
5314         PR c/48956
5315         * c-common.c (int_safely_convertible_to_real_p): Define.
5316         (unsafe_conversion_p): Check conversions involving complex types.
5317         (conversion_warning): Add new warning message for conversions which
5318         discard imaginary component.
5319         * c-common.h: (enum conversion_safety): Add new enumerator for such
5320         conversions.
5322 2015-05-14  Marek Polacek  <polacek@redhat.com>
5324         PR c/66066
5325         PR c/66127
5326         * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
5327         (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
5328         C_MAYBE_CONST_EXPR_INT_OPERANDS set.  Add FOR_INT_CONST argument and
5329         use it.  If FOR_INT_CONST, require that all evaluated operands be
5330         INTEGER_CSTs.
5332 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
5334         * c-common.h (warn_for_misleading_indentation): New prototype.
5335         * c-indentation.c: New file.
5336         * c.opt (Wmisleading-indentation): New option.
5338 2015-05-12  Tom de Vries  <tom@codesourcery.com>
5340         PR tree-optimization/66010
5341         * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
5343 2015-05-09  Jason Merrill  <jason@redhat.com>
5345         * c-opts.c (c_common_post_options): Also clear
5346         cpp_opts->cpp_warn_cxx11_compat.
5348         * c-common.h (enum cxx_dialect): Add cxx_unset.
5349         * c-common.c (cxx_dialect): Initialize to cxx_unset.
5350         * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
5352         * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
5353         (std=gnu++0x): Mark as Undocumented.
5354         (std=gnu++1y): Add deprecated message.
5356 2015-05-08  Jason Merrill  <jason@redhat.com>
5358         * c.opt (Wc++11-compat): Make primary.  Rename var warn_cxx11_compat.
5359         * c-opts.c: Adjust.
5361         * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
5363 2015-05-08  Marek Polacek  <polacek@redhat.com>
5365         PR c/64918
5366         * c.opt (Woverride-init-side-effects): New option.
5368 2015-05-07  Marek Polacek  <polacek@redhat.com>
5370         PR c/65179
5371         * c-common.c (c_fully_fold_internal): Warn when left shifting a
5372         negative value.
5373         * c.opt (Wshift-negative-value): New option.
5374         * c-opts.c (c_common_post_options): Set warn_shift_negative_value
5375         when -Wextra and C99/C++11 mode.
5377 2015-05-07  Marek Polacek  <polacek@redhat.com>
5378             Martin Uecker  <uecker@eecs.berkeley.edu>
5380         * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
5381         flexible member array-like members if SANITIZE_BOUNDS_STRICT.
5383 2015-05-05  Jason Merrill  <jason@redhat.com>
5385         * c.opt (Wterminate): New.
5387 2015-04-30  Marek Polacek  <polacek@redhat.com>
5389         * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
5390         require that the non-constant be of a boolean type.
5392 2015-04-29  Josh Triplett  <josh@joshtriplett.org>
5394         * c-common.c (handle_section_attribute): Refactor to reduce
5395         nesting and distinguish between error cases.
5397 2015-04-29  Marek Polacek  <polacek@redhat.com>
5399         PR c/64610
5400         * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
5401         with 0/1.
5403 2015-04-29  Jakub Jelinek  <jakub@redhat.com>
5405         * c-common.h (omp_clause_mask): Unconditionally define as a class.
5406         Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
5407         HOST_BITS_PER_WIDE_INT.
5409 2015-04-28  Tom de Vries  <tom@codesourcery.com>
5411         PR tree-optimization/65887
5412         * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
5414 2015-04-28  Eric Botcazou  <ebotcazou@adacore.com>
5415             Pierre-Marie de Rodat  <derodat@adacore.com>
5417         * c-ada-spec.c (in_function): Delete.
5418         (dump_generic_ada_node): Do not change in_function and remove the
5419         redundant code dealing with it.
5420         (print_ada_declaration): Do not change in_function.  Use INDENT_INCR.
5421         (print_ada_methods): Output the static member functions in a nested
5422         package after the regular methods as well as associated renamings.
5424 2015-04-24  Marek Polacek  <polacek@redhat.com>
5426         PR c/65830
5427         * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
5428         and OPT_Wshift_count_overflow.
5430         PR c/63357
5431         * c-common.c (warn_logical_operator): Warn if the operands have the
5432         same expressions.
5434 2015-04-24  Marek Polacek  <polacek@redhat.com>
5436         PR c/61534
5437         * c-common.c (warn_logical_operator): Bail if either operand comes
5438         from a macro expansion.
5440 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5442         PR target/55143
5443         * c-common.c (c_default_pointer_mode): Add definition.
5444         * c-common.h (c_default_pointer_mode): Add declaration.
5446 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
5448         * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
5449         on record_builtin_type argument.
5451 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
5453         PR c/65120
5454         * c-common.c (warn_logical_not_parentheses): Don't warn for
5455         !x == 0 or !x != 0.
5457 2015-03-07  Marek Polacek  <polacek@redhat.com>
5459         PR sanitizer/65280
5460         * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
5461         before trying to figure out whether we have a flexible array member.
5463 2015-03-06  Eric Botcazou  <ebotcazou@adacore.com>
5464             Jonathan Wakely  <jwakely.gcc@gmail.com>
5466         * c-ada-spec.c (dump_ada_double_name): Fix pasto.
5468 2015-03-05  Eric Botcazou  <ebotcazou@adacore.com>
5470         PR ada/65319
5471         * c-ada-spec.c (print_destructor): Remove obsolete code.
5473 2015-03-01  Eric Botcazou  <ebotcazou@adacore.com>
5475         * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
5476         (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
5477         DECL_TEMPLATE_RESULT emulations.
5478         (dump_ada_template)): Add guard for TYPE_METHODS.
5480 2015-02-27  Marek Polacek  <polacek@redhat.com>
5482         PR c/65040
5483         * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
5485 2015-02-27  Kai Tietz  <ktietz@redhat.com>
5487         PR c/35330
5488         * c-pragma.c (handle_pragma_weak): Do not try to create
5489         weak/alias of declarations not being function, or variable
5490         declarations.
5492 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
5494         PR libgomp/64625
5495         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
5496         Remove macros.
5497         (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
5499 2015-02-16  Marek Polacek  <polacek@redhat.com>
5501         PR c/65066
5502         * c-format.c (check_format_types): Handle null param.
5504 2015-02-13  Marek Polacek  <polacek@redhat.com>
5506         PR c/65040
5507         * c-format.c (check_format_types): Don't warn about different
5508         signedness if the original value is in the range of WANTED_TYPE.
5510 2015-02-12  Jason Merrill  <jason@redhat.com>
5512         PR c++/64956
5513         * c-opts.c (c_common_post_options): Change flag_abi_version from 0
5514         to the current highest version.
5515         * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
5517 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
5519         PR c/64824
5520         PR c/64868
5521         * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
5522         instead of RDIV_EXPR.  Use build_binary_op instead of
5523         build2_loc.
5525 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
5527         * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
5528         to pass input_location as first argument.
5530 2015-01-23  Tom de Vries  <tom@codesourcery.com>
5532         PR libgomp/64672
5533         * c.opt (fopenacc): Mark as LTO option.
5535 2015-01-23  Tom de Vries  <tom@codesourcery.com>
5537         PR libgomp/64707
5538         * c.opt (fopenmp): Mark as LTO option.
5540 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
5542         PR c/63307
5543         * cilk.c (fill_decls_vec): Only put decls into vector v.
5544         (compare_decls): Fix up formatting.
5546 2015-01-21  Igor Zamyatin  <igor.zamyatin@intel.com>
5548         PR c/63307
5549         * cilk.c: Include vec.h.
5550         (struct cilk_decls): New structure.
5551         (wrapper_parm_cb): Split this function to...
5552         (fill_decls_vec): ...this...
5553         (create_parm_list): ...and this.
5554         (compare_decls): New function.
5555         (for_local_cb): Remove.
5556         (wrapper_local_cb): Ditto.
5557         (build_wrapper_type): For now first traverse and fill vector of
5558         declarations then sort it and then deal with sorted vector.
5559         (cilk_outline): Ditto.
5560         (declare_one_free_variable): Ditto.
5562 2015-01-21  Jason Merrill  <jason@redhat.com>
5564         PR c++/64629
5565         * c-format.c (check_format_arg): Call decl_constant_value.
5567 2015-01-19  Martin Liska  <mliska@suse.cz>
5569         * c-common.c (handle_noicf_attribute): New function.
5571 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
5572             Bernd Schmidt  <bernds@codesourcery.com>
5573             James Norris  <jnorris@codesourcery.com>
5574             Cesar Philippidis  <cesar@codesourcery.com>
5575             Ilmir Usmanov  <i.usmanov@samsung.com>
5576             Jakub Jelinek  <jakub@redhat.com>
5578         * c.opt (fopenacc): New option.
5579         * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
5580         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
5581         New macros.
5582         * c-common.h (c_finish_oacc_wait): New prototype.
5583         * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
5584         (c_finish_oacc_wait): New function.
5585         * c-pragma.c (oacc_pragmas): New variable.
5586         (c_pp_lookup_pragma, init_pragma): Handle it.
5587         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
5588         PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
5589         PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
5590         PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
5591         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
5592         PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
5593         PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
5594         PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
5595         PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
5596         PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
5597         PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
5598         PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
5599         PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
5600         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
5601         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
5602         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
5603         PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
5604         PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
5605         PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
5606         PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
5607         PRAGMA_OACC_CLAUSE_WORKER.
5609 2015-01-14  Marcos Diaz  <marcos.diaz@tallertechnologies.com>
5611         * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
5612         for the new option fstack-protector_explicit.
5613         * c-common.c (c_common_attribute_table): Add stack_protect attribute.
5614         (handle_stack_protect_attribute): New function.
5616 2015-01-13  Martin Uecker  <uecker@eecs.berkeley.edu>
5618         * c.opt: New option -Warray-bounds=.
5620 2015-01-09  Michael Collison  <michael.collison@linaro.org>
5622         * array-notation-common.c: Include hash-set.h, machmode.h,
5623         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
5624         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
5625         * c-ada-spec.c: Ditto.
5626         * c-cilkplus.c: Ditto.
5627         * c-common.c: Include input.h due to flattening of tree.h.
5628         Define macro GCC_C_COMMON_C.
5629         * c-common.h: Flatten tree.h header files into c-common.h.
5630         Remove include of tree-core.h.
5631         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
5632         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
5633         fold-const.h, wide-int.h, and inchash.h due to
5634         flattening of tree.h.
5635         * c-dump.c: Ditto.
5636         * c-format.c: Flatten tree.h header files into c-common.h.
5637         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
5638         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
5639         fold-const.h, wide-int.h, and inchash.h due to
5640         flattening of tree.h.
5641         * c-dump.c: Include hash-set.h, machmode.h,
5642         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
5643         fold-const.h, wide-int.h, and inchash.h due to
5644         flattening of tree.h.
5645         * c-format.c: Include hash-set.h, machmode.h,
5646         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
5647         fold-const.h, wide-int.h, inchash.h and real.h due to
5648         flattening of tree.h.
5649         * c-gimplify.c: Include hash-set.h, machmode.h,
5650         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
5651         fold-const.h, wide-int.h, and inchash.h due to
5652         flattening of tree.h.
5653         * cilk.c: Ditto.
5654         * c-lex.c: Ditto.
5655         * c-omp.c: Ditto.
5656         * c-opts.c: Ditto.
5657         * c-pch.c: Ditto.
5658         * c-ppoutput.c: Ditto.
5659         * c-pragma.c: Ditto.
5660         * c-pretty-print.c: Ditto.
5661         * c-semantics.c: Ditto.
5662         * c-ubsan.c: Ditto.
5663         * stub-objc.c: Ditto.
5665 2015-01-08  Jason Merrill  <jason@redhat.com>
5667         * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
5668         do_ubsan_in_current_function.
5669         (ubsan_maybe_instrument_reference_or_call): Likewise.
5670         * c-ubsan.h: Declare it.
5672 2015-01-08  Mike Stump  <mikestump@comcast.net>
5674         * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
5676 2015-01-07  Marek Polacek  <polacek@redhat.com>
5678         PR c/64440
5679         * c-common.c (c_fully_fold_internal): Warn for division and modulo
5680         if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
5682 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
5684         PR c++/31397
5685         * c.opt (Wsuggest-override): New option.
5687 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
5689         Update copyright years.
5691 2015-01-05  Marek Polacek  <polacek@redhat.com>
5693         PR c/64423
5694         * c-common.c (warn_array_subscript_with_type_char): Add location_t
5695         parameter.  Use it.
5696         * c-common.h (warn_array_subscript_with_type_char): Update
5697         declaration.
5699 2014-12-20  Edward Smith-Rowland  <3dw4rd@verizon.net>
5701         * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
5702         Control macro with flag_sized_deallocation.
5704 2014-12-20  Martin Uecker  <uecker@eecs.berkeley.edu>
5706         * c.opt (Wdiscarded-array-qualifiers): New option.
5708 2014-12-19  Jakub Jelinek  <jakub@redhat.com>
5710         PR preprocessor/63831
5711         * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
5712         and __has_cpp_attribute here.
5713         * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
5714         c_common_has_attribute.
5715         * c-common.h (c_common_has_attribute): New prototype.
5716         * c-lex.c (init_c_lex): Set cb->has_attribute to
5717         c_common_has_attribute instead of cb_has_attribute.
5718         (get_token_no_padding): New function.
5719         (cb_has_attribute): Renamed to ...
5720         (c_common_has_attribute): ... this.  No longer static.  Use
5721         get_token_no_padding, require ()s, don't build TREE_LIST
5722         unnecessarily, fix up formatting, adjust diagnostics, call
5723         init_attributes.
5725 2014-12-15  Jason Merrill  <jason@redhat.com>
5727         * c.opt (-fsized-deallocation, -Wc++14-compat): New.
5728         (-Wsized-deallocation): New.
5729         * c-opts.c (c_common_post_options): -fsized-deallocation defaults
5730         to on in C++14 and up.
5732 2014-12-11  Jason Merrill  <jason@redhat.com>
5734         * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
5736         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
5737         we aren't complaining about VLAs.
5739 2014-12-06  Marek Polacek  <polacek@redhat.com>
5741         PR tree-optimization/64183
5742         * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
5743         shift-expression if it is integer_type_node.  Use types_compatible_p.
5745 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
5747         * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
5748         last argument from create_tmp_var_raw and create_tmp_var calls.
5749         * cilk.c (gimplify_cilk_spawn): Likewise.
5750         * c-omp.c (c_finish_omp_atomic): Likewise.
5752 2014-11-28  Marek Polacek  <polacek@redhat.com>
5754         * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
5755         instead of unsigned_type_node.
5757 2014-11-28  Marek Polacek  <polacek@redhat.com>
5759         PR c/63862
5760         * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
5761         to op1_utype.
5762         * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
5763         expression to unsigned_type_node.
5765 2014-11-20  Mark Wielaard  <mjw@redhat.com>
5767         PR debug/38757
5768         * c-opts.c (set_std_c89): Set lang_hooks.name.
5769         (set_std_c99): Likewise.
5770         (set_std_c11): Likewise.
5771         (set_std_cxx98): Likewise.
5772         (set_std_cxx11): Likewise.
5773         (set_std_cxx14): Likewise.
5774         (set_std_cxx1z): Likewise.
5776 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
5778         PR target/63764
5779         * c-common.h (convert_vector_to_pointer_for_subscript): Change
5780         return type to bool.
5781         * c-common.c: Include gimple-expr.h.
5782         (convert_vector_to_pointer_for_subscript): Change return type to
5783         bool.  If *vecp is not lvalue_p and has VECTOR_TYPE, return true
5784         and copy it into a TARGET_EXPR and use that instead of *vecp
5785         directly.
5787 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
5789         Merger of git branch "gimple-classes-v2-option-3".
5790         * ChangeLog.gimple-classes: New.
5791         * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
5792         from being just a vec<gimple> to a vec<gbind *>.
5794 2014-11-18  Jakub Jelinek  <jakub@redhat.com>
5796         PR sanitizer/63813
5797         * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
5798         argument to ptype, set type to TREE_TYPE (ptype).  Don't call
5799         get_pointer_alignment for non-pointers.  Use ptype, or if it is
5800         reference type, corresponding pointer type, as type of kind
5801         argument.
5802         (ubsan_maybe_instrument_reference,
5803         ubsan_maybe_instrument_member_call): Adjust callers.
5805 2014-11-15  Marek Polacek  <polacek@redhat.com>
5807         PR middle-end/63884
5808         * array-notation-common.c (is_sec_implicit_index_fn): Return false
5809         for NULL fndecl.
5810         (extract_array_notation_exprs): Return for NULL node.
5812 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
5814         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
5815         undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
5817 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
5819         PR c/59708
5820         * c-common.c (check_builtin_function_arguments): Handle
5821         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
5823 2014-11-10  Andi Kleen  <ak@linux.intel.com>
5825         PR c/60804
5826         * c-common.h (check_no_cilk): Declare.
5827         * cilk.c (get_error_location): New function.
5828         (check_no_cilk): Dito.
5830 2014-11-10  Andi Kleen  <ak@linux.intel.com>
5832         * cilk.c (recognize_spawn): Use expression location
5833         for error message.
5835 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
5837         * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
5839 2014-11-10  Edward Smith-Rowland  <3dw4rd@verizon.net>
5841         * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
5842         (__cpp_rtti, __cpp_exceptions): New macros for C++98;
5843         (__cpp_range_based_for, __cpp_initializer_lists,
5844         __cpp_delegating_constructors, __cpp_nsdmi,
5845         __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
5846         for C++11; (__cpp_attribute_deprecated): Remove in favor of
5847         __has_cpp_attribute.
5848         * c-lex.c (cb_has_attribute): New callback CPP function;
5849         (init_c_lex): Set has_attribute callback.
5851 2014-11-04  Richard Biener  <rguenther@suse.de>
5853         * c-common.c (shorten_compare): Do not shorten mixed
5854         DFP and non-DFP compares.
5856 2014-11-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
5858         * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
5859         * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
5860         Commentary and rearrangement of tests.
5861         * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
5862         Commentary and rearrangement of tests.
5863         * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
5864         * g++.dg/cpp1y/feat-cxx98.C: Commentary.
5866 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
5868         * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
5869         enum from machine_mode.
5871 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
5873         * c-common.c: Adjust include files.
5874         * c-gimplify.c: Ditto.
5875         * cilk.c: Ditto.
5876         * c-pragma.c: Ditto.
5877         * c-ubsan.c: Ditto.
5879 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
5881         * c-gimplify.c: Adjust include files.
5883 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5885         PR c++/53061
5886         * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
5887         c_common_initialize_diagnostics.
5888         * c-common.h: Likewise.
5890 2014-10-24  Marek Polacek  <polacek@redhat.com>
5892         PR c/56980
5893         * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
5894         print "struct"/"union"/"enum" for typedefed names.
5896 2014-10-23  Marek Polacek  <polacek@redhat.com>
5898         * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
5899         in unsigned type.
5901 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
5902             Yury Gribov  <y.gribov@samsung.com>
5904         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
5905         ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
5906         instead of flag_sanitize_recover as bool flag.
5908 2014-10-21  Kirill Yukhin  <kirill.yukhin@intel.com>
5910         * cilk.c: Revert previous change.
5912 2014-10-20  Igor Zamyatin  <igor.zamyatin@intel.com>
5914         PR c/63307
5915         * cilk.c: Include vec.h.
5916         (struct cilk_decls): New structure.
5917         (wrapper_parm_cb): Split this function to...
5918         (fill_decls_vec): ...this...
5919         (create_parm_list): ...and this.
5920         (compare_decls): New function.
5921         (for_local_cb): Remove.
5922         (wrapper_local_cb): Ditto.
5923         (build_wrapper_type): For now first traverse and fill vector of
5924         declarations then sort it and then deal with sorted vector.
5925         (cilk_outline): Ditto.
5926         (declare_one_free_variable): Ditto.
5928 2014-10-17  Marek Polacek  <polacek@redhat.com>
5930         * c-opts.c (c_common_post_options): Set warn_implicit_int.
5931         * c.opt (Wimplicit-int): Initialize to -1.
5933 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
5935         * c-pragma.c: Adjust include files.
5936         * c-semantics.c: Likewise.
5938 2014-10-16  DJ Delorie  <dj@redhat.com>
5940         * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
5941         multiples of bytes.
5943 2014-10-14  Jason Merrill  <jason@redhat.com>
5945         PR c++/63455
5946         * c-common.h (CPP_PREPARSED_EXPR): New.
5947         (N_CP_TTYPES): Adjust.
5949 2014-10-15  Marek Polacek  <polacek@redhat.com>
5951         * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
5953 2014-10-14  DJ Delorie  <dj@redhat.com>
5955         * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
5956         types, not just __int128.
5957         * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
5958         types, not just __int128.
5959         (cpp_atomic_builtins): Round pointer sizes up.
5960         (type_suffix): Use type precision, not specific types.
5961         * c-common.c (c_common_reswords): Remove __int128 special case.
5962         (c_common_type_for_size): Check for all __intN types, not just
5963         __int128.
5964         (c_common_type_for_mode): Likewise.
5965         (c_common_signed_or_unsigned_type): Likewise.
5966         (c_build_bitfield_integer_type): Likewise.
5967         (c_common_nodes_and_builtins): Likewise.
5968         (keyword_begins_type_specifier): Likewise.
5969         * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
5970         __intN variants.
5972 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
5974         * c-common.c: Use hash_table instead of hashtab.
5976 2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>
5978         * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
5979         C++11 section.
5981 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
5983         PR c++/54427
5984         PR c++/57198
5985         PR c++/58845
5986         * c-common.c (warn_logical_operator): Punt for vectors.
5988 2014-10-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
5990         Implement SD-6: SG10 Feature Test Recommendations
5991         * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
5992         macros and the __has_header macro.
5994 2014-09-30  Jason Merrill  <jason@redhat.com>
5996         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
5997         RID_IS_TRIVIALLY_CONSTRUCTIBLE.
5998         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
6000         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
6001         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
6003         * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
6004         * c-common.c (c_common_reswords): Remove __is_convertible_to.
6006 2014-09-24  Marek Polacek  <polacek@redhat.com>
6008         PR c/61405
6009         PR c/53874
6010         * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
6012 2014-09-23  Andi Kleen  <ak@linux.intel.com>
6014         * c-common.c (handle_no_reorder_attribute): New function.
6015         (c_common_attribute_table): Add no_reorder attribute.
6017 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
6019         * c-cppbuiltin.c (c_cpp_builtins): Define
6020         __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
6021         modes.
6023 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
6025         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
6026         for supported floating-point modes.
6028 2014-09-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6030         * c.opt (Wpsabi): Use LangEnabledBy.
6031         * c-opts.c (c_common_handle_option): Do not handle here.
6033 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
6035         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
6036         macros for floating-point modes.
6038 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
6040         PR target/58757
6041         * c-cppbuiltin.c (builtin_define_float_constants): Correct
6042         __*_DENORM_MIN__ without denormals.
6044 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
6046         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
6047         ubsan_instrument_vla, ubsan_instrument_return): Adjust
6048         ubsan_create_data callers.
6049         (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
6050         index is constant or BIT_AND_EXPR with constant mask and is
6051         small enough for the bound.
6052         * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
6053         ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
6055 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6057         * c.opt: Add CppReason to various flags.
6058         (Wdate-time): Re-sort.
6059         * c-common.c: Include c-common.h earlier.
6060         (struct reason_option_codes_t): Delete.
6061         (c_option_controlling_cpp_error): Prefix global type and struct
6062         with cpp_.
6064 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6066         * c.opt (Wnormalized): New.
6067         (Wnormalized=): Use Enum and Reject Negative.
6068         * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
6070 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
6072         * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
6073         digits of floating-point modes if -fbuilding-libgcc.
6075 2014-09-05  Joseph Myers  <joseph@codesourcery.com>
6077         * c-cppbuiltin.c (c_cpp_builtins): Also define
6078         __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
6079         __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
6080         __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
6081         __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
6082         __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
6083         __LIBGCC_STACK_GROWS_DOWNWARD__,
6084         __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
6085         __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
6086         __LIBGCC_DWARF_FRAME_REGISTERS__,
6087         __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
6088         __LIBGCC_STACK_POINTER_REGNUM__ and
6089         __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
6090         (builtin_define_with_value): Handle backslash-escaping in string
6091         macro values.
6093 2014-09-05  Richard Biener  <rguenther@suse.de>
6095         PR middle-end/63148
6096         * c-format.c (check_format_arg): Properly handle
6097         effectively signed POINTER_PLUS_EXPR offset.
6099 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6101         * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
6102         Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
6103         (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
6104         and Init.
6105         * c-opts.c (c_common_handle_option): Do not handle here.
6106         (sanitize_cpp_opts): Likewise.
6107         * c-common.c (struct reason_option_codes_t): Handle
6108         CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
6110 2014-09-03  Marek Polacek  <polacek@redhat.com>
6112         * c.opt (Wlogical-not-parentheses): Enable by -Wall.
6114 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
6115             Balaji V. Iyer  <balaji.v.iyer@intel.com>
6116             Igor Zamyatin  <igor.zamyatin@intel.com>
6118         * c-cilkplus.c (cilk_for_number_of_iterations): New function.
6119         * c-common.c (c_common_reswords): Added _Cilk_for.
6120         * c-common.h (enum rid): Added RID_CILK_FOR.
6121         (cilk_for_number_of_iterations): Add declaration.
6122         * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
6123         CILK_FOR.
6124         * c-pragma.c (init_pragma): Register "grainsize" pragma.
6125         * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
6127 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6129         * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
6130         Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
6131         Wundef): Use CPP, Var and Init.
6132         * c-opts.c (c_common_handle_option): Do not handle the above flags here.
6134 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6136         * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
6137         * c-opts.c (c_common_handle_option): Do not handle here.
6139 2014-08-25  Jason Merrill  <jason@redhat.com>
6141         * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
6142         -std=c++14 and -std=gnu++14, rather than the reverse.
6143         * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
6144         OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
6145         * c-common.h (cxx_dialect): Remove cxx1y.
6147 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
6149         * c-common.h (enum cxx_dialect): Add cxx14.
6150         * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
6151         * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
6152         cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
6154 2014-08-22  Jason Merrill  <jason@redhat.com>
6156         * c.opt (std=gnu++17): Fix alias.
6158 2014-08-22  Marek Polacek  <polacek@redhat.com>
6160         PR c++/62199
6161         * c-common.c (warn_logical_not_parentheses): Don't check LHS.  Don't
6162         check for vector types.  Drop LHS argument.
6163         * c-common.h (warn_logical_not_parentheses): Adjust.
6165 2014-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6167         * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
6168         (Wmultichar): Likewise.
6169         (Wdate-time): Use C-family languages instead of Common. Use CPP
6170         and Var.
6171         * c-opts.c (c_common_handle_option): Do not handle the above
6172         options here.
6173         (sanitize_cpp_opts): Likewise.
6175 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6177         PR fortran/44054
6178         * c-opts.c: Include tree-diagnostics.h.
6179         (c_diagnostic_finalizer): New.
6180         (c_common_initialize_diagnostics): Use it.
6182 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6184         PR preprocessor/51303
6185         * c-common.c (struct reason_option_codes_t option_codes):
6186         Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
6188 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6190         PR c/60975
6191         PR c/53063
6192         * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
6193         * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
6194         (c_common_post_options): Call init_global_opts_from_cpp.
6195         (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
6197 2014-08-19  Marek Polacek  <polacek@redhat.com>
6199         PR c++/62153
6200         * c-common.c (maybe_warn_bool_compare): New function.
6201         * c-common.h (maybe_warn_bool_compare): Declare.
6202         * c.opt (Wbool-compare): New option.
6204 2014-08-19  Marek Polacek  <polacek@redhat.com>
6206         * c.opt (Wc99-c11-compat): New option.
6208 2014-08-19  Marek Polacek  <polacek@redhat.com>
6210         * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
6211         to warn_c90_c99_compat.
6212         * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
6213         to -1.
6215 2014-08-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6216             Steven Bosscher  <steven@gcc.gnu.org>
6218         PR c/52952
6219         * c-format.c: Add extra_arg_loc and format_string_loc to struct
6220         format_check_results.
6221         (check_function_format): Use true and add comment for boolean
6222         argument.
6223         (finish_dollar_format_checking): Use explicit location when warning.
6224         (check_format_info): Likewise.
6225         (check_format_arg): Set extra_arg_loc and format_string_loc.
6226         (check_format_info_main): Use explicit location when warning.
6227         (check_format_types): Pass explicit location.
6228         (format_type_warning): Likewise.
6230 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6232         PR fortran/44054
6233         * c-format.c: Handle Fortran flags.
6235 2014-08-12  Igor Zamyatin  <igor.zamyatin@intel.com>
6237         PR other/61962
6238         * array-notation-common.c (find_rank): Added handling for other
6239         types of references.
6241 2014-08-10  Marek Polacek  <polacek@redhat.com>
6243         PR c/51849
6244         * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
6245         * c.opt (Wc90-c99-compat): Add option.
6247 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
6249         * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
6251 2014-08-03  Marek Polacek  <polacek@redhat.com>
6253         * c-common.c (check_case_value):  Add location_t parameter.  Use it.
6254         (c_add_case_label): Pass loc to check_case_value.
6256 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
6258         * cilk.c: Use hash_map instead of pointer_map.
6260 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
6262         * c-gimplify.c: Use hash_set instead of pointer_set.
6264 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
6266         PR middle-end/61455
6267         * array-notation-common.c (extract_array_notation_exprs): Handling
6268         of DECL_EXPR added.
6270 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
6272         * c-common.h (min_align_of_type): Removed prototype.
6273         * c-common.c (min_align_of_type): Removed.
6274         * c-ubsan.h (ubsan_maybe_instrument_reference,
6275         ubsan_maybe_instrument_member_call): New prototypes.
6276         * c-ubsan.c: Include stor-layout.h and builtins.h.
6277         (ubsan_maybe_instrument_reference_or_call,
6278         ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
6279         functions.
6281 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
6283         PR c++/60517
6284         * c.opt (-Wreturn-local-addr): Move to common.opt.
6286 2014-07-30  Jason Merrill  <jason@redhat.com>
6288         PR c++/61659
6289         PR c++/61687
6290         Revert:
6291         * c.opt (-fuse-all-virtuals): New.
6293 2014-07-30  Tom Tromey  <tromey@redhat.com>
6295         PR c/59855
6296         * c.opt (Wdesignated-init): New option.
6297         * c-common.c (c_common_attribute_table): Add "designated_init".
6298         (handle_designated_init): New function.
6300 2014-07-24  Marek Polacek  <polacek@redhat.com>
6302         PR c/57653
6303         * c-opts.c (c_finish_options): If -imacros is in effect, return.
6305 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
6307         PR preprocessor/60723 - missing system-ness marks for macro tokens
6308         * c-ppoutput.c (struct print::prev_was_system_token): New data
6309         member.
6310         (init_pp_output): Initialize it.
6311         (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
6312         (do_line_change): Return a flag saying if a line marker was
6313         emitted or not.
6314         (scan_translation_unit): Detect if the system-ness of the token we
6315         are about to emit is different from the one of the previously
6316         emitted token.  If so, emit a line marker.  Avoid emitting useless
6317         adjacent line markers.  Avoid emitting line markers for tokens
6318         originating from the expansion of built-in macros.
6319         (scan_translation_unit_directives_only): Adjust.
6321 2014-07-15  Marek Polacek  <polacek@redhat.com>
6323         * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
6324         TYPE_MAX_VALUE is NULL.
6326 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
6328         PR middle-end/61294
6329         * c.opt (Wmemset-transposed-args): New warning.
6331 2014-07-10  Jason Merrill  <jason@redhat.com>
6333         PR c++/61659
6334         PR c++/61687
6335         * c.opt (-fuse-all-virtuals): New.
6337 2014-07-09  Richard Biener  <rguenther@suse.de>
6339         PR c-family/61741
6340         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
6341         using unsigned arithmetic if overflow does not wrap instead of
6342         if overflow is undefined.
6344 2014-07-06  Marek Polacek  <polacek@redhat.com>
6346         PR c/6940
6347         * c.opt (Wsizeof-array-argument): New option.
6349 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
6351         * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
6352         comments->count <= 1, as comments->entries might be NULL.
6354 2014-07-01  Marek Polacek  <polacek@redhat.com>
6356         * c.opt (Wint-conversion): New option.
6358 2014-07-01  Marek Polacek  <polacek@redhat.com>
6360         PR c/58286
6361         * c.opt (Wincompatible-pointer-types): New option.
6363 2014-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
6365         PR c++/51400
6366         * c-common.c (handle_noreturn_attribute, handle_const_attribute):
6367         Do not discard TYPE_QUALS of type.
6369 2014-06-26  Jason Merrill  <jason@redhat.com>
6371         * c-common.h (enum cxx_dialect): Add cxx1z.
6372         * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
6373         * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
6375 2014-06-26  Teresa Johnson  <tejohnson@google.com>
6377         * c-common.h (get_dump_info): Declare.
6378         * c-gimplify.c (c_genericize): Use saved dump files.
6379         * c-opts.c (c_common_parse_file): Begin and end dumps
6380         once around parsing invocation.
6381         (get_dump_info): New function.
6383 2014-06-23  Marek Polacek  <polacek@redhat.com>
6384             Andrew MacLeod  <amacleod@redhat.com>
6386         PR c/61553
6387         * c-common.c (get_atomic_generic_size): Don't segfault if the
6388         type doesn't have a size.
6390 2014-06-20  Marek Polacek  <polacek@redhat.com>
6392         * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
6393         (ubsan_walk_array_refs_r): New function.
6394         (c_genericize): Instrument array bounds.
6395         * c-ubsan.c: Include "internal-fn.h".
6396         (ubsan_instrument_division): Mark instrumented arrays as having
6397         side effects.  Adjust ubsan_type_descriptor call.
6398         (ubsan_instrument_shift): Likewise.
6399         (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
6400         (ubsan_instrument_bounds): New function.
6401         (ubsan_array_ref_instrumented_p): New function.
6402         (ubsan_maybe_instrument_array_ref): New function.
6403         * c-ubsan.h (ubsan_instrument_bounds): Declare.
6404         (ubsan_array_ref_instrumented_p): Declare.
6405         (ubsan_maybe_instrument_array_ref): Declare.
6407 2014-06-20  Hale Wang  <hale.wang@arm.com>
6409         PR lto/61123
6410         * c.opt (fshort-enums): Add to LTO.
6411         * c.opt (fshort-wchar): Likewise.
6413 2014-06-16  Marek Polacek  <polacek@redhat.com>
6415         PR c/60439
6416         * c.opt (Wswitch-bool): Add Var.
6418 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
6420         PR middle-end/61486
6421         * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
6422         #pragma omp target teams or
6423         #pragma omp {,target }teams distribute simd.
6425 2014-06-12  Jason Merrill  <jason@redhat.com>
6427         * c.opt (Wabi=, fabi-compat-version): New.
6428         * c-opts.c (c_common_handle_option): Handle -Wabi=.
6429         (c_common_post_options): Handle flag_abi_compat_version default.
6430         Disallow -fabi-compat-version=1.
6431         * c-common.h (abi_version_crosses): New.
6433 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
6435         * c-common.c (handle_section_attribute): Update handling for
6436         section names that are no longer trees.
6438 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
6440         PR fortran/60928
6441         * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
6442         (omp_pragmas): ... back here.
6444 2014-06-05  Marek Polacek  <polacek@redhat.com>
6446         PR c/49706
6447         * c-common.c (warn_logical_not_parentheses): New function.
6448         * c-common.h (warn_logical_not_parentheses): Declare.
6449         * c.opt (Wlogical-not-parentheses): New option.
6451 2014-06-04  Marek Polacek  <polacek@redhat.com>
6453         PR c/30020
6454         * c-common.c (check_case_bounds): Add location parameter.
6455         Use it.
6456         (c_add_case_label): Pass loc to check_case_bounds.
6458 2014-06-03  Marek Polacek  <polacek@redhat.com>
6460         PR c/60439
6461         * c.opt (Wswitch-bool): New option.
6463 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
6465         * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
6466         Remove prototypes.
6467         (record_types_used_by_current_var_decl): Move prototype to where
6468         it belongs.
6470         * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
6471         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
6472         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
6474 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
6476         * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
6477         * c-common.c (c_common_nodes_and_builtins): Don't initialize
6478         void_zero_node.
6479         * c-pretty-print.c (pp_c_void_constant): New function.
6480         (c_pretty_printer::constant, c_pretty_printer::primary_expression)
6481         (c_pretty_printer::expression): Handle VOID_CST.
6482         * cilk.c (extract_free_variables): Likewise.
6483         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
6484         (ubsan_instrument_vla): Use void_node instead of void_zero_node.
6486 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
6488         * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
6489         * c-pragma.c (push_alignment): Adjust.
6490         (handle_pragma_push_options): Likewise.
6492 2014-05-09  Marek Polacek  <polacek@redhat.com>
6494         PR c/50459
6495         * c-common.c (check_user_alignment): Return -1 if alignment is error
6496         node.
6497         (handle_aligned_attribute): Don't call default_conversion on
6498         FUNCTION_DECLs.
6499         (handle_vector_size_attribute): Likewise.
6500         (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
6501         (handle_sentinel_attribute): Call default_conversion and allow even
6502         integral types as an argument.
6504 2014-05-08  Marek Polacek  <polacek@redhat.com>
6506         PR c/61053
6507         * c-common.c (min_align_of_type): New function factored out from...
6508         (c_sizeof_or_alignof_type): ...here.
6509         * c-common.h (min_align_of_type): Declare.
6511 2014-05-08  Marek Polacek  <polacek@redhat.com>
6513         PR c/61077
6514         * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
6515         parameter type of main.
6517 2014-05-07  DJ Delorie  <dj@redhat.com>
6519         * c-cppbuiltin.c (print_bits_of_hex): New.
6520         (builtin_define_type_minmax): Print values using hex so as not to
6521         require a pre-computed list of string values.
6523 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
6524             Mike Stump  <mikestump@comcast.net>
6525             Richard Sandiford  <rdsandiford@googlemail.com>
6527         * c-ada-spec.c: Include wide-int.h.
6528         (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
6529         (dump_generic_ada_node): Use wide-int interfaces.
6530         * c-common.c: Include wide-int-print.h.
6531         (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
6532         (pointer_int_sum): Use wide-int interfaces.
6533         (c_common_nodes_and_builtins): Use make_int_cst.
6534         (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
6535         (handle_alloc_size_attribute): Use wide-int interfaces.
6536         (get_nonnull_operand): Likewise.
6537         * c-format.c (get_constant): Use tree_fits_uhwi_p.
6538         * c-lex.c: Include wide-int.h.
6539         (narrowest_unsigned_type): Take a widest_int rather than two
6540         HOST_WIDE_INTs.
6541         (narrowest_signed_type): Likewise.
6542         (interpret_integer): Update accordingly.  Use wide-int interfaces.
6543         (lex_charconst): Use wide-int interfaces.
6544         * c-pretty-print.c: Include wide-int.h.
6545         (pp_c_integer_constant): Use wide-int interfaces.
6546         * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
6547         INT_CST_LT_UNSIGNED.
6549 2014-05-06  Richard Biener  <rguenther@suse.de>
6551         * c-opts.c (c_common_post_options): For -freestanding,
6552         -fno-hosted and -fno-builtin disable pattern recognition
6553         if not enabled explicitely.
6555 2014-05-02  Marek Polacek  <polacek@redhat.com>
6557         * c.opt (Wsizeof-pointer-memaccess): Describe option.
6559 2014-05-01  Marek Polacek  <polacek@redhat.com>
6561         PR c/43245
6562         * c.opt (Wdiscarded-qualifiers): Add.
6564 2014-04-30  Marek Polacek  <polacek@redhat.com>
6566         * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs.  Perform
6567         INT_MIN / -1 sanitization only for integer types.
6569 2014-04-25  Marek Polacek  <polacek@redhat.com>
6571         PR c/18079
6572         * c-common.c (handle_noinline_attribute): Warn if the attribute
6573         conflicts with always_inline attribute.
6574         (handle_always_inline_attribute): Warn if the attribute conflicts
6575         with noinline attribute.
6577 2014-04-25  Marek Polacek  <polacek@redhat.com>
6579         PR c/60156
6580         * c-common.c (check_main_parameter_types): Warn about variadic main.
6582 2014-04-24  Mike Stump  <mikestump@comcast.net>
6584         * c.opt (Wshadow-ivar): Default to on.
6586 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
6588         * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
6590 2014-04-23  Marek Polacek  <polacek@redhat.com>
6592         * c-common.c (handle_tm_wrap_attribute): Tweak error message.
6594 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
6596         PR sanitizer/60275
6597         * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
6598         if flag_sanitize_undefined_trap_on_error.
6599         (ubsan_instrument_division, ubsan_instrument_shift,
6600         ubsan_instrument_vla): Likewise.  Use __ubsan_handle_*_abort ()
6601         if !flag_sanitize_recover.
6603 2014-04-22  Marc Glisse  <marc.glisse@inria.fr>
6605         PR libstdc++/43622
6606         * c-common.c (registered_builtin_types): Make non-static.
6607         * c-common.h (registered_builtin_types): Declare.
6609 2014-04-14  Richard Biener  <rguenther@suse.de>
6610         Marc Glisse  <marc.glisse@inria.fr>
6612         PR c/60819
6613         * c-common.c (convert_vector_to_pointer_for_subscript): Properly
6614         apply may-alias the scalar pointer type when applicable.
6616 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
6618         PR middle-end/60467
6619         * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
6620         as possible argument for Cilk_spawn.
6622 2014-04-11  Tobias Burnus  <burnus@net-b.de>
6624         PR c/60194
6625         * c.opt (Wformat-signedness): Add
6626         * c-format.c(check_format_types): Use it.
6628 2014-04-11  Jason Merrill  <jason@redhat.com>
6630         PR c++/57926
6631         * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
6632         default_conversion for an array argument.
6634 2014-04-08  Marek Polacek  <polacek@redhat.com>
6636         PR sanitizer/60745
6637         * c-ubsan.c: Include asan.h.
6638         (ubsan_instrument_return): Call initialize_sanitizer_builtins.
6640 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
6642         * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
6644 2014-04-02  Marek Polacek  <polacek@redhat.com>
6646         * c-common.h (c_expand_expr): Remove declaration.
6648 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
6650         PR c++/60689
6651         * c-common.c (add_atomic_size_parameter): When creating new
6652         params vector, push the size argument first.
6654 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
6656         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
6657         ubsan_instrument_vla, ubsan_instrument_return): Adjust
6658         ubsan_create_data callers.
6660 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
6662         PR debug/60603
6663         * c-opts.c (c_finish_options): Restore cb_file_change call to
6664         <built-in>.
6666 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
6668         PR middle-end/36282
6669         * c-pragma.c (apply_pragma_weak): Only look at
6670         TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
6671         DECL_ASSEMBLER_NAME_SET_P (decl).
6672         (maybe_apply_pending_pragma_weaks): Exit early if
6673         vec_safe_is_empty (pending_weaks) rather than only when
6674         !pending_weaks.
6675         (maybe_apply_pragma_weak): Likewise.  If !DECL_ASSEMBLER_NAME_SET_P,
6676         set assembler name back to NULL afterwards.
6678 2014-03-11  Jason Merrill  <jason@redhat.com>
6680         * c.opt: Add -std=gnu++14.
6682 2014-03-11  Ian Bolton  <ian.bolton@arm.com>
6684         * c-opts.c (c_common_post_options): Don't override
6685         -ffp-contract=fast if unsafe-math-optimizations is on.
6687 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
6689         * c.opt: Enable LTO FE for fshort-double.
6691 2014-03-07  Jason Merrill  <jason@redhat.com>
6693         * c.opt: Add -std=c++14.
6695 2014-03-06  Marek Polacek  <polacek@redhat.com>
6697         PR c/60197
6698         * cilk.c (contains_cilk_spawn_stmt): New function.
6699         (contains_cilk_spawn_stmt_walker): Likewise.
6700         (recognize_spawn): Give error on invalid use of _Cilk_spawn.
6701         * c-common.h (contains_cilk_spawn_stmt): Add declaration.
6703 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
6705         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
6706         (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
6707         even when flag_preprocess_only.
6709 2014-02-26  Jason Merrill  <jason@redhat.com>
6711         PR c++/59231
6712         PR c++/11586
6713         * c-common.c (shorten_compare): Don't check
6714         c_inhibit_evaluation_warnings.
6716 2014-02-19  Jakub Jelinek  <jakub@redhat.com>
6718         PR c/37743
6719         * c-common.c (c_common_nodes_and_builtins): When initializing
6720         c_uint{16,32,64}_type_node, also set corresponding
6721         uint{16,32,64}_type_node to the same value.
6723         PR c++/60267
6724         * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
6725         for PRAGMA_IVDEP if flag_preprocess_only.
6727 2014-02-12  Jakub Jelinek  <jakub@redhat.com>
6729         PR c/60101
6730         * c-common.c (merge_tlist): If copy is true, call new_tlist,
6731         if false, add ADD itself, rather than vice versa.
6732         (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
6733         copy.  For SAVE_EXPR, only call merge_tlist once.
6735 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
6737         PR middle-end/60092
6738         * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
6739         and tree_to_uhwi.
6740         (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
6741         functions.
6742         (c_common_attribute_table): Add alloc_align and assume_aligned
6743         attributes.
6745 2014-02-06  Marek Polacek  <polacek@redhat.com>
6747         PR c/60087
6748         * c-common.c (warn_for_sign_compare): Call warning_at with location
6749         instead of warning.
6751 2014-02-05  Marek Polacek  <polacek@redhat.com>
6753         PR c/53123
6754         * c-omp.c (c_finish_omp_atomic): Remove unreachable return
6755         statement.
6757 2014-02-04  Marek Polacek  <polacek@redhat.com>
6759         PR c/60036
6760         * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
6761         SAVE_EXPR.
6763 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
6765         PR c++/53017
6766         PR c++/59211
6767         * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
6768         handle_vector_size_attribute, handle_nonnull_attribute): Call
6769         default_conversion on the attribute argument.
6770         (handle_nonnull_attribute): Increment the argument number.
6772 2014-01-31  Marek Polacek  <polacek@redhat.com>
6774         PR c/59963
6775         * c-common.c (add_atomic_size_parameter): Pass vNULL to
6776         build_function_call_vec.
6777         (resolve_overloaded_builtin): Likewise.
6778         * c-common.h (build_function_call_vec): Adjust declaration.
6780 2014-01-30  Marek Polacek  <polacek@redhat.com>
6782         PR c/59940
6783         * c-common.h (unsafe_conversion_p): Adjust declaration.
6784         (warnings_for_convert_and_check): Likewise.
6785         (convert_and_check): Likewise.
6786         * c-common.c (unsafe_conversion_p): Add location parameter.  Call
6787         expansion_point_location_if_in_system_header on it.
6788         (warnings_for_convert_and_check): Add location parameter.  Call
6789         expansion_point_location_if_in_system_header on it.  Use it.
6790         (convert_and_check): Add location parameter.  Use it.
6791         (conversion_warning): Likewise.
6792         (c_add_case_label): Adjust convert_and_check calls.
6793         (scalar_to_vector): Adjust unsafe_conversion_p calls.
6795 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6797         * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
6798         flag_cilkplus.
6799         * c-pragma.c (init_pragma): Likewise.
6800         * c.opt: Likewise.
6802 2014-01-23  Marek Polacek  <polacek@redhat.com>
6804         PR c/59846
6805         * c-common.c (shorten_compare): Add location_t parameter.
6806         * c-common.h (shorten_binary_op): Adjust declaration.
6808 2014-01-23  Marek Polacek  <polacek@redhat.com>
6810         PR c/58346
6811         * c-common.c (pointer_to_zero_sized_aggr_p): New function.
6812         * c-common.h: Declare it.
6814 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
6816         * c-ada-spec.h (dump_ada_specs): Revert prototype change.
6817         * c-ada-spec.c (dump_ads): Likewise.
6818         (cpp_check): Likewise.
6819         (dump_ada_specs): Likewise.
6821 2014-01-15  Laurent Alfonsi  <laurent.alfonsi@st.com>
6823         PR c++/49718
6824         * c-common.c (handle_no_instrument_function_attribute): Allow
6825         no_instrument_function attribute in class member
6826         definition/declaration.
6828 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
6830         PR c/58943
6831         * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
6832         build_modify_expr with non-NOP_EXPR opcode.  Handle return from it
6833         being COMPOUND_EXPR.
6834         (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
6835         operand a SAVE_EXPR and second MODIFY_EXPR.
6837 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
6839         PR target/58115
6840         * c-pch.c (c_common_write_pch): Call
6841         prepare_target_option_nodes_for_pch.
6843 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
6845         Update copyright years
6847 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
6849         * array-notation-common.c, c-cilkplus.c: Use the standard form for
6850         the copyright notice.
6852 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
6854         * c-ada-spec.c (print_constructor): New function.
6855         (print_destructor): Retrieve the origin of the destructor.
6856         (print_ada_declaration): Revamp handling of constructors/destructors.
6858 2013-12-23  Stuart Hastings  <stuart@apple.com>
6859             Bill Maddox  <maddox@google.com>
6860             Jason Merrill  <jason@redhat.com>
6862         * c.opt: Add -fdeclone-ctor-dtor.
6863         * c-opts.c (c_common_post_options): Default to on iff -Os.
6865 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6867         * c-common.c (c_common_attribute_table): Added "cilk simd function"
6868         attribute.
6869         * c-pragma.h (enum pragma_cilk_clause): Remove.
6870         (enum pragma_omp_clause):  Added the following fields:
6871         PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
6872         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
6873         PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
6874         PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
6875         PRAGMA_CILK_CLAUSE_UNIFORM.
6878 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6880         * cilk.c (cilk_outline): Made this function non-static.
6881         (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
6882         (create_cilk_wrapper): Added a new parameter: a function pointer.
6883         (c_install_body_w_frame_cleanup): Remove
6884         (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
6885         * c-common.h (cilk_outline): New prototype.
6886         (gimplify_cilk_spawn): Removed two parameters.
6887         (cilk_install_body_with_frame_cleanup): New prototype.
6888         * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
6889         CILK_SPAWN_STMT case.
6891 2013-12-11  Bernd Schmidt  <bernds@codesourcery.com>
6893         * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
6895         * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
6896         (int_array_type_node): Remove.
6897         * c-common.c (c_common_nodes_and_builtins): Don't build it.
6899 2013-12-05  Marek Polacek  <polacek@redhat.com>
6901         PR c/52023
6902         * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
6903         [ADJUST_FIELD_ALIGN].
6905 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
6907         PR c/52023
6908         * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
6909         and check field alignment if set.
6910         * c-common.h (c_sizeof_or_alignof_type): Update prototype.
6911         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
6913 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
6914             Marek Polacek  <polacek@redhat.com>
6916         * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
6917         sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
6919 2013-11-29   H.J. Lu  <hongjiu.lu@intel.com>
6921         PR c/59309
6922         * cilk.c (gimplify_cilk_spawn): Properly handle function without
6923         arguments.
6925 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
6927         PR c/59280
6928         * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
6929         goto invalid.  If it is error_mark_node, don't issue further
6930         diagnostics.
6932 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
6934         * c.opt (Wopenmp-simd): New.
6936 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
6938         * c-ubsan.h (ubsan_instrument_return): New prototype.
6939         * c-ubsan.c (ubsan_instrument_return): New function.
6941 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
6943         * c-common.c: Add required include files from gimple.h.
6944         * c-gimplify.c: Likewise
6945         * cilk.c: Likewise
6947 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
6949         * c-common.c (unsafe_conversion_p): Remove use of
6950         EXPR_LOC_OR_HERE macro.
6951         (conversion_warning): Likewise.
6952         (warnings_for_convert_and_check): Likewise.
6953         (warn_for_collisions_1): Likewise.
6954         (shorten_compare): Likewise, and remove use of in_system_header
6955         macro, using the location from the former.
6956         * c-lex.c (dump_one_header): Remove use of input_filename macro.
6957         (cb_def_pragma): Remove use of in_system_header macro.
6958         (lex_string): Likewise.
6959         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
6961 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
6962             Mike Stump  <mikestump@comcast.net>
6963             Richard Sandiford  <rdsandiford@googlemail.com>
6965         * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
6966         instead of TREE_INT_CST_LOW, in cases where there is a protecting
6967         tree_fits_shwi_p or tree_fits_uhwi_p.
6968         (dump_generic_ada_node): Likewise.
6969         * c-format.c (check_format_arg): Likewise.
6970         * c-pretty-print.c (pp_c_integer_constant): Likewise.
6972 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
6974         * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
6976 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
6978         PR c/53001
6979         * c-common.c (unsafe_conversion_p): Make this function
6980         return an enumeration with more detail.
6981         (conversion_warning): Use the new return type of
6982         unsafe_conversion_p to separately warn either about conversions
6983         that lower floating point number precision or about the other
6984         kinds of conversions.
6985         * c-common.h (enum conversion_safety): New enumeration.
6986         (unsafe_conversion_p): switching return type to
6987         conversion_safety enumeration.
6988         * c.opt: Adding new warning -Wfloat-conversion and
6989         enabling it with -Wconversion.
6991 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
6993         * c-opts.c: Include plugin.h.
6994         (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
6996 2013-11-19  Marek Polacek  <polacek@redhat.com>
6998         * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
6999         call.
7000         (ubsan_instrument_shift): Likewise.
7001         (ubsan_instrument_vla): Likewise.
7003 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
7005         * c-common.c (convert_vector_to_pointer_for_subscript): Remove
7006         cast to unsigned type.
7008 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
7010         * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
7011         tree_low_cst.
7012         (complete_array_type): Update comment to refer to tree_to_[su]hwi
7013         rather than tree_low_cst.
7015 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
7017         * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
7018         tree_to_uhwi throughout.
7020 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
7022         * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
7023         tree_low_cst (..., 0) with tree_to_shwi throughout.
7025 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
7027         * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
7028         host_integerp (..., 1) with tree_fits_uhwi_p throughout.
7030 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
7032         * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
7033         host_integerp (..., 0) with tree_fits_shwi_p throughout.
7035 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
7037         * c-cilkplus.c: New file.
7038         * c-common.c (readonly_error): Add location argument.
7039         * c-common.h (readonly_error): Same.
7040         (c_finish_cilk_clauses): Protoize.
7041         (c_check_cilk_loop): Same.
7042         c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
7043         Do not fail on error_mark_node.
7044         Abstract increment canonicalization to here...
7045         (c_omp_for_incr_canonicalize_ptr): New.
7046         c-pragma.c (init_pragma): Register "simd" pragma.
7047         c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
7048         (enum pragma_cilk_clause): New.
7050 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
7052         * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
7053         wchar_type and host_integerp checks.
7055 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
7057         * c-common.c: Likewise.
7058         * c-gimplify.c: Likewise.
7059         * cilk.c: Likewise.
7061 2013-11-14  Diego Novillo  <dnovillo@google.com>
7063         * c-common.c: Include fold-const.h.
7064         Include stor-layout.h.
7065         Include calls.h.
7066         Include stringpool.h.
7067         Include attribs.h.
7068         Include varasm.h.
7069         Include trans-mem.h.
7070         * c-cppbuiltin.c: Include stor-layout.h.
7071         Include stringpool.h.
7072         * c-format.c: Include stringpool.h.
7073         * c-lex.c: Include stringpool.h.
7074         Include stor-layout.h.
7075         * c-pragma.c: Include stringpool.h.
7076         Include attribs.h.
7077         Include varasm.h.
7078         Include gcc-symtab.h.
7079         * c-pretty-print.c: Include stor-layout.h.
7080         Include attribs.h.
7081         * cilk.c: Include stringpool.h.
7082         Include calls.h.
7084 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
7086         * c-common.h (enum rid): Add RID_AUTO_TYPE.
7087         * c-common.c (c_common_reswords): Add __auto_type.
7088         (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
7090 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
7092         * c-common.c: Include gimplify.h.
7093         * c-gimplify.c: Likewise.
7094         * cilk.c: Likewise.
7095         * c-omp.c: Include gimple-expr.h instead of gimple.h.
7096         * c-ubsan.c: Don't include gimple.h.
7098 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
7100         * c-common.c (c_common_reswords): Add _Thread_local.
7102 2013-11-09  Joseph Myers  <joseph@codesourcery.com>
7104         * c-common.c (atomic_size_supported_p): New function.
7105         (resolve_overloaded_atomic_exchange)
7106         (resolve_overloaded_atomic_compare_exchange)
7107         (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
7108         Use it instead of comparing size with a local list of sizes.
7110 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
7111             Joseph Myers  <joseph@codesourcery.com>
7113         * c-common.h (enum rid): Add RID_ATOMIC.
7114         * c-common.c (c_common_reswords): Add _Atomic.
7115         (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
7116         (keyword_is_type_qualifier): Accept RID_ATOMIC.
7117         * c-format.c (check_format_types): Check for extra _Atomic
7118         qualifiers in format argument.
7119         * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
7120         (pp_c_type_qualifier_list): Mention _Atomic in comment.
7122 2013-11-06  Tobias Burnus  <burnus@net-b.de>
7124         * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
7126 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
7128         * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
7129         standards modes.
7130         * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
7131         to mean lack of IEEE 754 support.
7133 2013-11-05  Tobias Burnus  <burnus@net-b.de>
7135         * c.opt (-Wdate-time): New option
7136         * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
7138 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
7140         * c-cppbuiltin.c (cpp_iec_559_value): Test
7141         flag_excess_precision_cmdline not flag_excess_precision.
7143 2013-11-05  Tobias Burnus  <burnus@net-b.de>
7145         * c.opt (fopenmp-simd): New option.
7146         * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
7147         (omp_pragmas): ... this new struct.
7148         (c_pp_lookup_pragma): Also walk omp_pragmas.
7149         (init_pragma): Init pragmas for -fopenmp-simd.
7151 2013-11-04  Marek Polacek  <polacek@redhat.com>
7153         PR c++/58979
7154         * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
7156 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
7158         * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
7159         New functions.
7160         (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
7162 2013-11-04  Eric Botcazou  <ebotcazou@adacore.com>
7164         * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
7165         (dump_ada_specs): Adjust prototype of second callback.
7166         * c-ada-spec.c (cpp_check): New global variable.
7167         (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
7168         (print_generic_ada_decl): Likewise.
7169         (has_static_fields): Change return type to bool and add guard.
7170         (has_nontrivial_methods): New predicate.
7171         (is_tagged_type): Change return type to bool.
7172         (separate_class_package): Call has_nontrivial_methods.
7173         (pp_ada_tree_identifier): Minor tweaks.
7174         (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
7175         (dump_ada_array_domains): Likewise.
7176         (dump_ada_array_type): Likewise.
7177         (dump_template_types): Remove cpp_check parameter and do not pass it to
7178         dump_generic_ada_node.
7179         (dump_ada_template): Likewise.
7180         (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
7181         recursively.
7182         (print_ada_methods): Change return type to integer.  Remove cpp_check
7183         parameter and do not pass it down.
7184         (dump_nested_types): Remove cpp_check parameter and do not pass it to
7185         dump_generic_ada_node.
7186         (print_ada_declaration): Likewise.  Test RECORD_OR_UNION_TYPE_P before
7187         accessing methods.
7188         (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
7189         down.  Use has_nontrivial_methods to recognize C++ classes.  Use return
7190         value of print_ada_methods.
7191         (dump_ads): Rename cpp_check parameter to check and adjust prototype.
7192         Set cpp_check to it before invoking dump_ada_nodes.
7193         (dump_ada_specs): Likewise.
7195 2013-11-03  Marek Polacek  <polacek@redhat.com>
7197         * c-ubsan.c: Don't include hash-table.h.
7198         (ubsan_instrument_vla): New function.
7199         * c-ubsan.h: Declare it.
7201 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
7203         Automated part of renaming of symtab_node_base to symtab_node.
7205         Patch autogenerated by rename_symtab.py from
7206         https://github.com/davidmalcolm/gcc-refactoring-scripts
7207         revision 58bb219cc090b2f4516a9297d868c245495ee622
7209         * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
7210         symtab_node_base to symtab_node.
7212 2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
7214         Implement C++14 digit separators.
7215         * c-lex.c (interpret_float): Remove digit separators from scratch string
7216         before building real literal.
7218 2013-10-30  Jakub Jelinek  <jakub@redhat.com>
7220         * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
7222 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7224         * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
7225         fields.
7226         (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
7227         enabled.
7228         * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
7229         (insert_cilk_frame): New prototype.
7230         (cilk_init_builtins): Likewise.
7231         (gimplify_cilk_spawn): Likewise.
7232         (c_cilk_install_body_w_frame_cleanup): Likewise.
7233         (cilk_detect_spawn_and_unwrap): Likewise.
7234         (cilk_set_spawn_marker): Likewise.
7235         (build_cilk_sync): Likewise.
7236         (build_cilk_spawn): Likewise.
7237         * cilk.c: New file.
7239 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7241         Patch autogenerated by refactor_symtab.py from
7242         https://github.com/davidmalcolm/gcc-refactoring-scripts
7243         revision 58bb219cc090b2f4516a9297d868c245495ee622
7245         * c-gimplify.c (c_genericize): Update for conversion of symtab types
7246         to a true class hierarchy.
7247         * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
7249 2013-10-27  Richard Sandiford  <rdsandiford@googlemail.com>
7251         * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
7253 2013-10-26  Jeff Law  <law@redhat.com>
7255         * c-common.c (c_define_builtins): Remove mudflap support.
7256         * c.opt: Ignore and warn for mudflap options.
7258 2013-10-24  Tobias Burnus  <burnus@net-b.de>
7260         PR other/33426
7261         * c-pragma.c (init_pragma) Add #pragma ivdep handling.
7262         * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
7264 2013-10-23  Jason Merrill  <jason@redhat.com>
7266         * c-format.c (gcc_cxxdiag_char_table): Add %X.
7268 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
7270         * c-common.h (omp_clause_mask::operator !=): New method.
7271         * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
7272         instead of if (mask & something) tests everywhere.
7274         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
7275         201307 instead of 201107.
7276         * c-common.c (DEF_FUNCTION_TYPE_8): Define.
7277         (c_common_attribute_table): Add "omp declare target" and
7278         "omp declare simd" attributes.
7279         (handle_omp_declare_target_attribute,
7280         handle_omp_declare_simd_attribute): New functions.
7281         * c-omp.c: Include c-pragma.h.
7282         (c_finish_omp_taskgroup): New function.
7283         (c_finish_omp_atomic): Add swapped argument, if true,
7284         build the operation first with rhs, lhs arguments and use NOP_EXPR
7285         build_modify_expr.
7286         (c_finish_omp_for): Add code argument, pass it down to make_code.
7287         (c_omp_split_clauses): New function.
7288         (c_split_parallel_clauses): Removed.
7289         (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
7290         c_omp_declare_simd_clauses_to_decls): New functions.
7291         * c-common.h (omp_clause_mask): New type.
7292         (OMP_CLAUSE_MASK_1): Define.
7293         (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
7294         omp_clause_mask::operator |=, omp_clause_mask::operator ~,
7295         omp_clause_mask::operator |, omp_clause_mask::operator &,
7296         omp_clause_mask::operator <<, omp_clause_mask::operator >>,
7297         omp_clause_mask::operator ==): New methods.
7298         (enum c_omp_clause_split): New.
7299         (c_finish_omp_taskgroup): New prototype.
7300         (c_finish_omp_atomic): Add swapped argument.
7301         (c_finish_omp_for): Add code argument.
7302         (c_omp_split_clauses): New prototype.
7303         (c_split_parallel_clauses): Removed.
7304         (c_omp_declare_simd_clauses_to_numbers,
7305         c_omp_declare_simd_clauses_to_decls): New prototypes.
7306         * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
7307         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
7308         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
7309         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
7310         PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
7311         Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
7312         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
7313         PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
7314         PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
7315         PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
7316         PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
7317         PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
7318         PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
7319         PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
7320         PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
7321         PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
7322         PRAGMA_OMP_CLAUSE_UNIFORM.
7324 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
7326         PR tree-optimization/20318
7327         * c-common.c (handle_returns_nonnull_attribute): New function.
7328         (c_common_attribute_table): Add returns_nonnull.
7330 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
7332         PR c++/19476
7333         * c.opt (fcheck-new): Move to common.opt.
7335 2013-09-25  Marek Polacek  <polacek@redhat.com>
7336             Jakub Jelinek  <jakub@redhat.com>
7338         PR sanitizer/58413
7339         * c-ubsan.c (ubsan_instrument_shift): Don't instrument
7340         an expression if we can prove it is correct.
7341         (ubsan_instrument_division): Likewise.  Remove unnecessary
7342         check.
7344 2013-09-18  Marek Polacek  <polacek@redhat.com>
7346         PR sanitizer/58411
7347         * c-common.c (handle_no_sanitize_undefined_attribute): New function.
7348         Declare it.
7349         (struct attribute_spec c_common_att): Add no_sanitize_undefined.
7351 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
7353         PR target/48094
7354         * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
7355         fobjc-gc, freplace-objc-classes): Accept for LTO.
7357 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
7359         * c-target.def: New hook
7361 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
7363         PR c++/43452
7364         * c.opt (Wdelete-incomplete): Add.
7366 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
7368         * c-common.c (same_scalar_type_ignoring_signedness): Delete.
7369         (vector_types_compatible_elements_p): New function.
7370         * c-common.h: (same_scalar_type_ignoring_signedness): Delete
7371         declaration.
7372         (vector_types_compatible_elements_p): Declare.
7374 2013-09-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7376         * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
7377         a virtual member function.
7378         (pp_simple_type_specifier): Remove.
7379         (pp_c_type_specifier): Likewise.
7380         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
7381         Rename from pp_c_type_specifier.  Adjust.
7382         (c_pretty_printer::c_pretty_printer): Do not assign to
7383         simple_type_specifier.
7385 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7387         * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
7388         member function.
7389         (c_pretty_printer::storage_class_specifier): Likewise.
7390         (c_pretty_printer::initializer): Likewise.
7391         (pp_declaration): Remove.
7392         (pp_declaration_specifiers): Likewise.
7393         (pp_abstract_declarator): Likewise.
7394         (pp_declarator): Likewise.
7395         (pp_type_id): Likewise.
7396         (pp_statement): Likewise.
7397         (pp_constant): Likewise.
7398         (pp_id_expression): Likewise.
7399         (pp_primary_expression): Likewise.
7400         (pp_unary_expression): Likewise.
7401         (pp_multiplicative_expression): Likewise.
7402         (pp_conditional_expression): Likewise.
7403         (pp_assignment_expression): Likewise.
7404         (pp_expression): Likewise.
7405         (pp_c_type_id): Likewise.
7406         (pp_c_storage_class_specifier): Likewise.
7407         * c-pretty-print.c (pp_c_type_cast): Tidy.
7408         (pp_c_pointer): Likewise.
7409         (pp_c_type_specifier): Likewise.
7410         (pp_c_parameter_type_list): Likewise.
7411         (pp_c_function_definition): Likewise.
7412         (pp_c_init_declarator): Likewise.
7413         (pp_c_initializer_list): Likewise.
7414         (pp_c_constructor_elts): Likewise.
7415         (c_pretty_printer::direct_abstract_declarator): Likewise.
7416         (c_pretty_printer::declaration_specifiers): Likewise.
7417         (c_pretty_printer::primary_expression): Likewise.
7418         (c_pretty_printer::postfix_expression): Likewise.
7419         (c_pretty_printer::type_id): Rename from pp_c_type_id.
7420         (c_pretty_printer::storage_class_specifier): Rename from
7421         pp_c_storage_class_specifier.
7422         (c_pretty_printer::initializer): Rename from pp_c_initializer.
7423         (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
7424         storage_class_specifier, initializer, offset_list, flags.
7426 2013-08-30  Marek Polacek  <polacek@redhat.com>
7428         * c-ubsan.c: New file.
7429         * c-ubsan.h: New file.
7431 2013-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7433         * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
7434         member function.
7435         (c_pretty_printer::declaration_specifiers): Likewise.
7436         (c_pretty_printer::declarator): Likewise.
7437         (c_pretty_printer::abstract_declarator): Likewise.
7438         (c_pretty_printer::direct_abstract_declarator): Likewise.
7439         (c_pretty_printer::direct_declarator): Likewise.
7440         (c_pretty_printer::function_specifier): Likewise.
7441         (pp_declaration): Adjust.
7442         (pp_declaration_specifiers): Likewise.
7443         (pp_abstract_declarator): Likewise.
7444         (pp_direct_declarator): Likewise.
7445         (pp_function_specifier): Likewise.
7446         (pp_direct_abstract_declarator): Remove as unused.
7447         (pp_c_declaration): Remove.
7448         (pp_c_declaration_specifiers): Likewise.
7449         (pp_c_declarator): Likewise.
7450         (pp_c_direct_declarator): Likewise.
7451         (pp_c_function_specifier): Likewise.
7452         (pp_c_direct_abstract_declarator): Likewise.
7453         * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
7454         from pp_c_abstract_declarator.  Adjust.
7455         (c_pretty_printer::direct_abstract_declarator):  Rename from
7456         pp_c_direct_abstract_declarator.  Adjust.
7457         (c_pretty_printer::function_specifier): Rename from
7458         pp_c_function_specifier.  Adjust.
7459         (c_pretty_printer::declaration_specifiers): Rename from
7460         pp_c_declaration_specifiers.  Adjust.
7461         (c_pretty_printer::direct_declarator): Rename from
7462         pp_c_direct_declarator.  Adjust.
7463         (c_pretty_printer::declarator): Rename from pp_c_declarator.  Adjust.
7464         (c_pretty_printer::declaration): Rename from pp_c_declaration.  Adjust.
7465         (c_pretty_printer::c_pretty_printer): Do not assign to
7466         declaration, declaration_specifiers, declarator,
7467         direct_declarator, direct_abstract_declarator, function_specifier.
7469 2013-08-26  Gabriel Dos Reis  <gdre@integrable-solutions.net>
7471         * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
7472         virtual member function.
7473         (c_pretty_printer::multiplicative_expression): Likewise.
7474         (c_pretty_printer::conditional_expression): Likewise.
7475         (c_pretty_printer::assignment_expression): Likewise.
7476         (c_pretty_printer::expression): Likewise.
7477         (pp_unary_expression): Adjust.
7478         (pp_multiplicative_expression): Likewise.
7479         (pp_assignment_expression): Likewise.
7480         (pp_conditional_expression): Likewise.
7481         (pp_expression): Likewise.
7482         * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
7483         from pp_c_unary_expression.  Adjust.
7484         (c_pretty_printer::multiplicative_expression): Rename from
7485         pp_c_multiplicative_expression.  Adjust.
7486         (c_pretty_printer::conditional_expression): Rename from
7487         pp_c_conditional_expression.  Adjust.
7488         (c_pretty_printer::assignment_expression): Rename from
7489         pp_c_assignment_expression.  Adjust.
7490         (c_pretty_printer::expression): Rename from pp_c_expression.  Adjust.
7491         (c_pretty_printer::c_pretty_printer): Do not assign to
7492         unary_expression, multiplicative_expression,
7493         conditional_expression, expression.
7495 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7497         * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
7498         virtual member function.
7499         (pp_postfix_expression): Adjust.
7500         (pp_c_postfix_expression): Remove.
7501         * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
7502         from pp_c_postfix_expression.  Adjust.
7503         (c_pretty_printer::c_pretty_printer): Do not assign to
7504         postfix_expression.
7506 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7508         * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
7509         virtua member function.
7510         (pp_primary_expression): Adjust.
7511         (pp_c_primary_expression): Remove.
7512         * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
7513         from pp_c_primary_expression.  Adjust.
7514         (pp_c_initializer_list): Use pp_primary_expression.
7515         (c_pretty_printer::c_pretty_printer): Do not assign to
7516         primary_expression.
7518 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7520         * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
7521         * c-pretty-print.c (M_): Remove.
7522         (c_pretty_printer::translate_string): Define.
7523         (pp_c_type_specifier): Use it.
7524         (pp_c_primary_expression): Likewise.
7525         (pp_c_expression): Likewise.
7527 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7529         * c-pretty-print.h (c_pretty_printer::id_expression): Now a
7530         virtual function.
7531         (pp_c_id_expression): Remove.
7532         (pp_id_expression): Adjust.
7533         * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
7534         pp_c_id_expression.  Adjust.
7535         (pp_c_postfix_expression): Use pp_id_expression.
7536         (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
7538 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7540         * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
7541         member function.
7542         (pp_constant): Adjust.
7543         (pp_c_constant): Remove.
7544         * c-pretty-print.c (c_pretty_printer::constant): Rename from
7545         pp_c_constant.  Adjust.
7546         (pp_c_constant)
7547         (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
7548         (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
7550 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7552         * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
7553         (c_pretty_printer::c_pretty_printer): Declare.
7554         * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
7555         c_pretty_printer_init.  Adjust.
7556         (print_c_tree): Do not call c_pretty_printer_init.
7557         * c-ada-spec.c (dump_ads): Remove call to pp_construct.
7559 2013-08-09  Arnaud Charlet  <charlet@adacore.com>
7561         * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
7563 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
7565         PR c++/58080
7566         * c-common.c (pointer_int_sum): Add bool parameter.
7567         * c-common.h (pointer_int_sum): Adjust declaration.
7569 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7571         * c-pretty-print.c (print_c_tree): Simplify.  Use non-static local
7572         c_pretty_printer variable.
7574 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7576         * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
7577         (pp_base): Remove.
7578         (pp_c_base): Likewise.  Adjust users.
7579         * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
7580         (pp_c_whitespace): Do not call pp_base.
7581         (pp_c_left_paren): Likewise.
7582         (pp_c_right_paren): Likewise.
7583         (pp_c_left_brace): Likewise.
7584         (pp_c_right_brace): Likewise.
7585         (pp_c_left_bracket): Likewise.
7586         (pp_c_right_bracket): Likewise.
7587         (pp_c_dot): Likewise.
7588         (pp_c_ampersand): Likewise.
7589         (pp_c_star): Likewise.
7590         (pp_c_arrow): Likewise.
7591         (pp_c_semicolon): Likewise.
7592         (pp_c_complement): Likewise.
7593         (pp_c_exclamation): Likewise.
7594         (pp_c_direct_declarator): Likewise.
7595         (pp_c_ws_string): Likewise.
7596         (pp_c_identifier): Likewise.
7597         (pp_c_statement): Likewise.
7598         (print_c_tree): Likewise.
7600 2013-08-04  Ed Smith-Rowland  <3dw4rd@verizon.net>
7602         PR c++/58072
7603         * c-common.c (c_parse_error): Catch user-defined literal tokens and
7604         provide useful error strings.
7606 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7608         * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
7609         printer functions instead of pp_string or operators and punctuators.
7610         (dump_generic_ada_node): Likewise.
7611         * c-pretty-print.c (pp_c_type_specifier): Likewise.
7612         (pp_c_relational_expression): Likewise.
7613         (pp_c_logical_or_expression): Likewise.
7615 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7617         * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
7618         functions instead of pp_character.
7619         (pp_ada_tree_identifier): Likewise.
7620         (dump_ada_double_name): Likewise.
7621         (dump_ada_function_declaration): Likewise.
7622         (dump_ada_array_domains): Likewise.
7623         (dump_template_types): Likewise.
7624         (dump_generic_ada_node): Likewise.
7625         (print_ada_declaration): Likewise.
7626         (print_ada_struct_decl): Likewise.
7627         * c-pretty-print.c (pp_c_integer_constant): Likewise.
7629 2013-07-23  Tom Tromey  <tromey@redhat.com>
7631         * c-common.h (enum rid) <RID_GENERIC>: New constant.
7632         * c-common.c (c_common_reswords): Add _Generic.
7634 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
7636         * c-common.c: Fix typos.
7637         * c-common.h: Likewise.
7639 2013-07-13  Lubos Lunak  <l.lunak@suse.cz>
7641         PR c++/55203
7642         * c-common.c (c_common_attribute_table): Add warn_unused.
7643         (handle_warn_unused_attribute): New.
7645 2013-07-10  Jakub Jelinek  <jakub@redhat.com>
7647         * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
7648         for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
7650 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
7652         PR c++/57869
7653         * c.opt: Add Wconditionally-supported.
7655 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
7657         * array-notation-common.c (length_mismatch_in_expr_p): Delete
7658         unused variables l_length and l_node.
7660 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
7662         PR c/57821
7663         * c-common.c (complete_array_type): Delay folding first index
7664         like other indices.  When folding, check for index overflow.
7666 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
7668         PR c++/57509
7669         * c-common.h (c_build_vec_perm_expr): New complain argument.
7670         * c-common.c (c_build_vec_perm_expr): Likewise.
7671         Use save_expr also in C++.
7673 2013-06-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7675         * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
7676         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
7677         * c-opts.c (c_common_post_options): Likewise.
7679 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7681         * array-notation-common.c (length_mismatch_in_expr): Changed the
7682         parameter type's from a dynamic array to a vec_tree.  Also removed
7683         the size parameters.
7684         * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
7685         the change above.
7687 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7689         * c-common.h (struct cilkplus_an_parts): New structure.
7690         (struct cilkplus_an_loop_parts): Likewise.
7691         (cilkplus_extract_an_triplets): New prototype.
7692         (fix_sec_implicit_args): Likewise.
7693         * array-notation-common.c (cilkplus_extract_an_triplets): New function.
7694         (fix_sec_implicit_args): Likewise.
7696 2013-06-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7698         * array-notation-common.c (find_inv_trees): Removed an unwanted
7699         typecasting.
7700         * c-common.h (struct inv_list::additional_tcodes): Changed type from
7701         enum rid to enum tree_code.
7703 2013-06-11  Jan Hubicka  <jh@suse.cz>
7705         * c-common.c (handle_alias_ifunc_attribute): Do not set
7706         DECL_EXTERNAL for weakref variables.
7707         * c-pragma.c (handle_pragma_weak): Make sure aliases
7708         are not declared as external.
7710 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7712         * array-notation-common.c (length_mismatch_in_expr_p): Moved this
7713         function from c/c-array-notation.c.
7714         (is_cilkplus_reduce_builtin): Likewise.
7715         (find_rank): Likewise.
7716         (extract_array_notation_exprs): Likewise.
7717         (replace_array_notations): Likewise.
7718         (find_inv_trees): Likewise.
7719         (replace_inv_trees): Likewise.
7720         (contains_array_notation_expr): Likewise.
7721         (find_correct_array_notation_type): Likewise.
7722         * c-common.h (struct inv_list): Moved this struct from the file
7723         c/c-array-notation.c and added a new field called additional tcodes.
7724         (length_mismatch_in_expr_p): New prototype.
7725         (is_cilkplus_reduce_builtin): Likewise.
7726         (find_rank): Likewise.
7727         (extract_array_notation_exprs): Likewise.
7728         (replace_array_notation): Likewise.
7729         (find_inv_trees): Likewise.
7730         (replace_inv_trees): Likewise.
7731         (find_correct_array_notation_type): Likewise.
7733 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7735         * c-common.c (c_define_builtins): When cilkplus is enabled, the
7736         function array_notation_init_builtins is called.
7737         (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
7738         * c-common.def (ARRAY_NOTATION_REF): New tree.
7739         * c-common.h (build_array_notation_expr): New function declaration.
7740         (build_array_notation_ref): Likewise.
7741         (extract_sec_implicit_index_arg): New extern declaration.
7742         (is_sec_implicit_index_fn): Likewise.
7743         (ARRAY_NOTATION_CHECK): New define.
7744         (ARRAY_NOTATION_ARRAY): Likewise.
7745         (ARRAY_NOTATION_START): Likewise.
7746         (ARRAY_NOTATION_LENGTH): Likewise.
7747         (ARRAY_NOTATION_STRIDE): Likewise.
7748         * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
7749         ARRAY_NOTATION_REF.
7750         (pp_c_expression): Likewise.
7751         * c.opt (flag_enable_cilkplus): New flag.
7752         * array-notation-common.c: New file.
7754 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
7756         PR c++/57274
7757         * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
7759 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
7761         * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
7762         vectors.
7764 2013-05-07  Han Shen  <shenhan@google.com>
7766         * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
7768 2013-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
7770         * c-common.c (check_user_alignment): Emit error for negative values.
7772 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
7774         * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
7776 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
7778         * c-cppbuiltin.c (c_cpp_builtins): Do not define
7779         __GXX_EXPERIMENTAL_CXX1Y__.
7781 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
7782             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7784         * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
7785         * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
7786         to simply use OPT_Wpointer_arith.
7787         (c_sizeof_or_alignof_type): Likewise.
7789 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
7791         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
7793 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
7795         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
7796         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
7797         specifiers.
7799 2013-04-07  Steven Bosscher  <steven@gcc.gnu.org>
7801         * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
7803 2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
7805         * c-common.c (pointer_int_sum): Remove dead code.
7807 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
7809         PR middle-end/56524
7810         * c-common.c (handle_optimize_attribute): Don't call
7811         save_optabs_if_changed.
7813 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
7815         PR middle-end/56461
7816         * c-pch.c (pch_init): Free target_validity at the end.
7818 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
7820         * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
7822 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
7823             Jakub Jelinek  <jakub@redhat.com>
7825         PR sanitizer/56454
7826         * c-common.c (handle_no_sanitize_address_attribute): New function.
7827         (c_common_attribute_table): Add no_sanitize_address attribute.
7828         (handle_no_address_safety_analysis_attribute): Add
7829         no_sanitize_address attribute, not no_address_safety_analysis
7830         attribute.
7832 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
7834         PR target/52555
7835         * c-common.c (handle_optimize_attribute): Call
7836         save_optabs_if_changed.
7838 2013-02-18  Jakub Jelinek  <jakub@redhat.com>
7839             Steven Bosscher  <steven@gcc.gnu.org>
7841         PR pch/54117
7842         * c-opts.c (c_common_post_options): If debug info is enabled
7843         and non-dwarf*, refuse to load PCH files and when writing PCH
7844         file warn.
7846 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
7848         PR middle-end/56167
7849         * c-common.c (handle_error_attribute): Fix condition.
7851 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
7853         PR c++/55742
7854         * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
7856 2013-01-18  Jason Merrill  <jason@redhat.com>
7858         PR target/54908
7859         * c.opt (-fextern-tls-init): New.
7860         * c-opts.c (c_common_post_options): Handle it.
7862 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
7864         PR c/48418
7865         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
7866         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
7867         and is either negative or bigger or equal to type precision
7868         of the first operand.
7870 2012-12-03  Marek Polacek  <polacek@redhat.com>
7872         PR c/55570
7873         * c-common.c (check_user_alignment): Swap order of tests,
7874         check TREE_CODE first.
7876 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
7878         PR c++/52654
7879         * c-common.h (overflow_type): New enum.
7880         (build_userdef_literal): Add overflow_type argument.
7881         (tree_userdef_literal): Add overflow_type.
7882         (USERDEF_LITERAL_OVERFLOW): New access macro.
7883         * c-common.c (build_userdef_literal): Add overflow_type
7884         argument.
7885         * c-lex.c (c_lex_with_flags): Add overflow_type to
7886         build_userdef_literal calls.
7887         (interpret_integer, interpret_float): Add overflow_type argument.
7889 2012-11-28  Richard Biener  <rguenther@suse.de>
7891         PR c/35634
7892         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
7893         here and use a type with proper overflow behavior for types that would
7894         need to be promoted for the arithmetic.
7896 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
7898         PR sanitizer/55435
7899         * c-common.c (handle_no_address_safety_analysis_attribute): New
7900         function.
7901         (c_common_attribute_table): Add no_address_safety_analysis.
7903 2012-11-16  Simon Baldwin  <simonb@google.com>
7905         * c.opt: Add f[no-]canonical-system-headers.
7906         * c-opts.c (c_common_handle_option): Handle
7907         OPT_fcanonical_system_headers.
7909 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
7911         PR c++/54413
7912         * c-opts.c (c_common_handle_option): Set new flags.
7913         * c.opt: Describe new flags.
7915 2012-11-09  Jason Merrill  <jason@redhat.com>
7917         * c.opt (Wabi-tag): New.
7919 2012-11-09  Andi Kleen  <ak@linux.intel.com>
7921         PR 55139
7922         * c-common.c (get_atomic_generic_size): Mask with
7923         MEMMODEL_MASK
7925 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7927         PR c/53063
7928         * c.opt (Wformat): Make it Alias Wformat=1.
7929         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
7930         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
7931         LangEnabledBy.
7932         (Wformat=): RejectNegative. Use LangEnabledBy.
7933         (Wnonnull): Use LangEnabledBy.
7934         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
7935         * c-format.c (set_Wformat): Delete.
7936         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
7937         (maybe_read_dollar_number):  Likewise.
7938         (avoid_dollar_number):  Likewise.
7939         (finish_dollar_format_checking):  Likewise.
7940         (check_format_info):  Likewise.
7941         (check_format_info_main):  Likewise.
7942         (check_format_types):  Likewise.
7943         (format_type_warning):  Likewise.
7944         * c-common.c (int):  Likewise.
7945         (check_function_sentinel):  Likewise.
7946         * c-common.h (warn_format,set_Wformat): Do not declare here.
7948 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7950         PR c/53063
7951         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
7952         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
7953         Use LangEnabledBy.
7954         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
7955         common.opt.
7956         (Wvariadic-macros): Init(1).
7957         * c-opts.c (c_common_handle_option): Do not handle them
7958         explicitly.
7959         (c_common_post_options): Likewise.
7960         (sanitize_cpp_opts): warn_unused_macros is now
7961         cpp_warn_unused_macros.
7962         (push_command_line_include): Likewise.
7963         * c-common.c (warn_unknown_pragmas): Do not define.
7964         * c-common.h (warn_unknown_pragmas): Do not declare.
7966 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7968         PR c/51294
7969         * c-common.c (conversion_warning): Handle conditional expressions.
7971 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
7973         PR c++/54930
7974         * c.opt (Wreturn_local_addr): Define new option.
7976 2012-10-25  Jason Merrill  <jason@redhat.com>
7978         * c.opt (Wvirtual-move-assign): New.
7980         * c.opt (Winherited-variadic-ctor): New.
7982 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
7984         PR c++/54427
7985         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
7987 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
7989         * c-common.h (pch_cpp_save_state): Declare.
7990         * c-target.def (c_preinclude): New hook.
7991         * c-opts.c (done_preinclude): New.
7992         (push_command_line_include): Handle default preincluded header.
7993         (cb_file_change): Call pch_cpp_save_state when calling
7994         push_command_line_include.
7995         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
7996         (pch_cpp_save_state): New.
7997         (pch_init): Call pch_cpp_save_state conditionally, instead of
7998         calling cpp_save_state.
8000 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8002         PR c/53063
8003         PR c/40989
8004         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
8005         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
8006         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
8007         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
8008         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
8009         * c-opts.c (c_common_handle_option): Remove explicit handling from
8010         here.
8011         (c_common_post_options): Likewise.
8013 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
8015         * c-ada-spec.c (LOCATION_COL): Delete.
8016         (compare_location): New function.
8017         (compare_node): Use it.
8018         (compare_comment): Likewise.
8020 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8022         PR c/53063
8023         PR c/40989
8024         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
8025         * c-opts.c (c_common_handle_option): Do not set them here. Add
8026         comment.
8027         (c_common_post_options): Likewise.
8029 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
8031         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
8032         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
8033         Remove POINTER_TYPE handling, add large unsigned handling and use
8034         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
8036 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
8038         PR c/54381
8039         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
8040         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
8041         locs and array of 3 trees instead of just single loc and single
8042         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
8043         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
8044         For *cmp* builtins that take two sources strings report warnings
8045         about first and second source, not about destination and source.
8047 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
8049         PR c++/53055
8050         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
8052 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
8054         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
8055         declaring something coming from another file.
8057 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
8059         PR ada/54845
8060         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
8062 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
8064         PR c++/54194
8065         * c-common.c (warn_about_parentheses): Add location_t parameter;
8066         use EXPR_LOC_OR_LOC.
8067         * c-common.h: Update declaration.
8069 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
8071         PR c++/54427
8072         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
8073         more operations. Make error messages optional.
8074         * c-common.h (enum stv_conv): Moved from c-typeck.c.
8075         (scalar_to_vector): Declare.
8077 2012-10-08  Jason Merrill  <jason@redhat.com>
8079         * c-common.c (c_common_reswords): Add thread_local.
8081 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
8083         PR c++/53528 C++11 attribute support
8084         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
8085         new functions.
8086         * c-common.c (check_cxx_fundamental_alignment_constraints): New
8087         static function.
8088         (handle_aligned_attribute): In choose strictest alignment
8089         among many.  Use new check_cxx_fundamental_alignment_constraints.
8090         (handle_transparent_union_attribute): In c++11 attribute syntax,
8091         don't look through typedefs.
8093 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
8095         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
8096         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
8097         out of dumpfile.h.
8099 2012-09-25  Dehao Chen  <dehao@google.com>
8101         PR middle-end/54645
8102         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
8103         map when read in the pch.
8105 2012-09-18  Arnaud Charlet  <charlet@adacore.com>
8107         * c-ada-spec.c: Style fixes.
8109 2012-09-18  Thomas Quinot  <quinot@adacore.com>
8111         * c.opt (-fada-spec-parent): Define new command line switch.
8112         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
8113         is specified, generate binding spec as a child of the specified unit.
8115 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
8116             Manuel López-Ibáñez  <manu@gcc.gnu.org>
8118         PR c++/53210
8119         * c.opt ([Winit-self]): Enabled by -Wall in C++.
8121 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
8123         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
8124         for pointers, and add missing Convention C pragma.
8125         (print_ada_struct_decl): Add missing aliased keyword.
8126         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
8128 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
8130         * c-common.c (sizeof_pointer_memaccess_warning): New function.
8131         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
8132         * c-opts.c (c_common_handle_option): Enable it for -Wall.
8133         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
8134         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
8136 2012-08-10  Richard Guenther  <rguenther@suse.de>
8138         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
8140 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
8142         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
8143         instead of separate pp_newline and pp_flush.
8144         (print_c_tree): Likewise.
8146 2012-07-26  Richard Henderson  <rth@redhat.com>
8148         * c-common.c (handle_hot_attribute): Allow labels.
8149         (handle_cold_attribute): Likewise.
8151 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
8153         PR c++/28656
8154         * c-common.c (check_function_nonnull): Handle multiple nonnull
8155         attributes properly.
8157 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
8159         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
8160         * c-ada-spec.c: Likewise.
8161         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
8163 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
8165         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
8166         Remove code conditional on it.
8168 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
8170         * c-gimplify.c: Do not include basic-block.h.
8171         * c-common.c: Do not include linfuncs.h.
8173 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
8175         * c-common.h: Include tree.h.
8177 2012-07-02  Jason Merrill  <jason@redhat.com>
8179         PR c++/53524
8180         * c-common.c (get_priority): Call default_conversion.
8182 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
8184         * c-pch.c (c_common_write_pch): Remove unused variables.
8186 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
8188         * cppspec.c: Moved from gcc/ to here.
8190 2012-06-27  Kai Tietz  <ktietz@redhat.com>
8192         PR preprocessor/37215
8193         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
8195 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
8197         * c-common.h (c_common_print_pch_checksum): Remove.
8198         * c-pch.c: Do not include output.h.
8199         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
8200         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
8201         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
8202         (struct c_pch_header): Remove.
8203         (get_ident): Update gpch version.
8204         (pch_init): Do not print executable_checksum to asm_out_file.
8205         Do not fail if there is no asm_out_file to read back from.  Set
8206         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
8207         (c_common_write_pch): Verify that nothing was written to asm_out_file
8208         since pch_init was called.  Do not write a c_pch_header, and do not
8209         copy from asm_out_file to the PCH.
8210         (c_common_read_pch): Do not read a c_pch_header, and do not restore
8211         the content of asm_out_file from the PCH.
8212         (c_common_print_pch_checksum): Remove.
8213         * c-opts.c (c_common_init): Print out executable_checksum directly.
8215 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
8217         * c-target.def (objc_declare_unresolved_class_reference,
8218         objc_declare_class_definition): Add new hooks.
8220 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
8222         * c-lex.c: Do not include output.h.
8223         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
8224         Remove uses of ASM_OUTPUT_IDENT.
8226 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
8228         PR c++/51033
8229         * c-common.h (c_build_vec_perm_expr): Move decl here.
8230         * c-common.c (c_build_vec_perm_expr): Move definition
8231         here.
8233 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
8235         * c.opt (fconserve-space): Turn into a no-op.
8237 2012-06-04  Sterling Augustine  <saugustine@google.com>
8239         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
8240         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
8241         both the start and end of the function.
8243 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
8245         * c-common.c: Do not include output.h.
8246         * c-pragma.c: Likewise.
8248 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
8250         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
8251         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
8252         (lang_decl_name): Handle namespace decls.
8254 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
8256         * c-ada-spec.c: Do not include output.h.
8257         * c-semantics.c: Likewise.
8259 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
8261         * c-common.c: Fix typo.
8263 2012-05-29  Michael Matz  <matz@suse.de>
8265         * c-common.h (c_expand_decl): Remove prototype.
8267 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8269         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
8270         * c-opts.c (c_common_handle_option): Remove code handling
8271         warn_missing_braces.
8273 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
8275         PR c++/25137
8276         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
8277         -Wmissing_braces.
8279 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
8281         PR c++/53322
8282         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
8284 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8286         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
8287         * c-opts.c (c_common_handle_option): Do not handle explicitly
8288         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
8290 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
8292         PR preprocessor/7263
8293         * c-lex.c (c_lex_with_flags):  Pass a virtual location to the call
8294         to cpp_classify_number.  For diagnostics, use the precise location
8295         instead of the global input_location.
8297 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
8299         PR c++/11856
8300         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
8302 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
8304         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
8306 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8308         PR 53063
8309         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
8310         Wreorder): Use LangEnabledBy.
8311         * c-opts.c (c_common_handle_option): Do not enable them
8312         explicitly. Call lang-specific generated functions.
8313         (c_common_post_options): Do not set them here.
8315 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8317         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
8318         Wmissing-field-initializers,Wmissing-parameter-type,
8319         Wold-style-declaration,Woverride-init): Use EnabledBy.
8320         * c-opts.c (c_common_post_options): Do not set here explicitly.
8322 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8324         PR 53063
8325         * c-opts.c (c_common_handle_option): Use handle_generated_option
8326         to enable sub-options.
8328 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
8330         PR c++/53158
8331         * c-common.c (warnings_for_convert_and_check): Use warning_at.
8333 2012-05-10  Richard Guenther  <rguenther@suse.de>
8335         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
8336         adjust commentary about TYPE_IS_SIZETYPE types.
8338 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8340         PR c++/53261
8341         * c-common.c (warn_logical_operator): Check that argument of
8342         integer_zerop is not NULL.
8344 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8346         PR c/43772
8347         * c-common.c (warn_logical_operator): Do not warn if either side
8348         is already true or false.
8350 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8352         PR c/51712
8353         * c-common.c (expr_original_type): New.
8354         (shorten_compare): Do not warn for enumeration types.
8356 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8358         * c.opt (fpermissive): Add Var(flag_permissive).
8360 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
8362         PR c++/51033
8363         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
8364         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
8366 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
8368         Add -Wvarargs option
8369         * c.opt (Wvarargs):  Define new option.
8371 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8373         * c-common.c (check_function_arguments): Replace
8374         Wmissing-format-attribute with Wsuggest-attribute=format.
8376 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8378         * c.opt (Wsuggest-attribute=format): New. Alias of
8379         Wmissing-format-attribute.
8380         * c-format.c (decode_format_type): Replace
8381         Wmissing-format-attribute with Wsuggest-attribute=format.
8382         (check_function_format): Likewise.
8384 2012-04-27  Ollie Wild  <aaw@google.com>
8386         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
8387         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
8388         * c.opt: Add Wliteral-suffix.
8390 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8392         PR c/44774
8393         * c.opt (Wpedantic): New.
8394         (pedantic): Alias Wpedantic.
8395         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
8396         (c_common_post_options): Likewise.
8397         (sanitize_cpp_opts): Likewise.
8398         * c-lex.c (interpret_float): Likewise.
8399         * c-format.c (check_format_types): Likewise.
8400         * c-common.c (pointer_int_sum): Likewise.
8401         (c_sizeof_or_alignof_type): Likewise.
8402         (c_add_case_label): Likewise.
8403         (c_do_switch_warnings): Likewise.
8404         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
8406 2012-04-15  Jason Merrill  <jason@redhat.com>
8408         PR c++/52818
8409         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
8410         (C_STD_NAME): Distinguish between C++98 and C++11.
8412 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
8414         PR target/52624
8415         * c-common.h (uint16_type_node): Rename into...
8416         (c_uint16_type_node): ...this.
8417         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
8418         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
8420 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8422         * c-common.c (warn_if_unused_value): Move definition to here.
8423         * c-common.h (warn_if_unused_value): Move declaration to here.
8425 2012-03-23  William Bader  <williambader@hotmail.com>
8427         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
8429 2012-03-20  Jason Merrill  <jason@redhat.com>
8431         * c-common.h (enum cxx_dialect): Add cxx1y.
8432         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
8433         test.
8434         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
8435         * c-opts.c (c_common_post_options): Likewise.
8436         (set_std_cxx1y): New.
8437         (c_common_handle_option): Call it.
8438         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
8440 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
8442         PR c++/14710
8443         * c.opt ([Wuseless-cast]): Add.
8445 2012-03-16  Richard Guenther  <rguenther@suse.de>
8447         * c-pretty-print.c (pp_c_initializer_list): Adjust.
8449 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8451         PR c++/44783
8452         * c.opt (ftemplate-backtrace-limit) Add.
8454 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8456         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
8457         handling.
8458         * c-pragma.c (handle_pragma_extern_prefix): Remove.
8459         (init_pragma): Don't register extern_prefix.
8461 2012-03-12  Richard Guenther  <rguenther@suse.de>
8463         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
8464         (builtin_type_for_size): Likewise.
8466 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
8468         PR c++/52215
8469         * c-common.c (sync_resolve_params): Don't decide whether to convert
8470         or not based on TYPE_SIZE comparison, convert whenever arg_type
8471         is unsigned INTEGER_TYPE.
8473 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
8475         PR c/52118
8476         * c.opt ([Wunused-local-typedefs]): Fix description.
8478 2012-01-24  Mike Stump  <mikestump@comcast.net>
8480         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
8481         exactly.
8483 2012-01-18  Richard Guenther  <rguenther@suse.de>
8485         * c-opts.c (c_common_post_options): Reset LTO flags if
8486         we are about to generate a PCH.
8488 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
8490         PR c++/51777
8491         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
8492         use pp_unsigned_wide_integer.
8494 2012-01-10  Richard Guenther  <rguenther@suse.de>
8496         PR middle-end/51806
8497         * c-opts.c (c_common_handle_option): Move -Werror handling
8498         to language independent code.
8500 2012-01-05  Richard Guenther  <rguenther@suse.de>
8502         PR middle-end/51764
8503         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
8504         from common.opt.
8506 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
8508         PR c++/51316
8509         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
8510         of array types with an unknown bound.
8512 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
8514         * c-common.c (flag_isoc99): Update comment to refer to C11.
8515         (flag_isoc1x): Change to flag_isoc11.
8516         * c-common.h (flag_isoc99): Update comment to refer to C11.
8517         (flag_isoc1x): Change to flag_isoc11.
8518         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
8519         C11.
8520         * c-opts.c (set_std_c1x): Change to set_std_c11.
8521         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
8522         Call set_std_c11.
8523         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
8524         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
8525         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
8526         standard.
8527         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
8528         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
8529         (std=gnu1x): Make alias of std=gnu11.
8531 2011-12-19  Jason Merrill  <jason@redhat.com>
8533         PR c++/51228
8534         * c-common.c (handle_transparent_union_attribute): Check the first
8535         field if the type is complete.
8537 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
8539         PR libstdc++/51365
8540         * c-common.c (RID_IS_FINAL): Add.
8541         * c-common.h (RID_IS_FINAL): Add.
8543 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
8545         * c.opt (fgnu-runtime): Provide full description.
8546         (fnext-runtime): Likewise.
8547         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
8549 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
8551         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
8552         predefines in one place.  Add LOCK_FREE predefines.
8553         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
8554         new func.
8556 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
8558         PR c/51256
8559         * c-common.c (get_atomic_generic_size): Check for various error
8560         conditions
8561         (resolve_overloaded_atomic_exchange,
8562         resolve_overloaded_atomic_compare_exchange,
8563         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
8564         error_mark_node for error conditions.
8566 2011-11-08  Richard Guenther  <rguenther@suse.de>
8568         PR middle-end/51010
8569         c-family/
8571 2011-11-07  Richard Henderson  <rth@redhat.com>
8572             Aldy Hernandez  <aldyh@redhat.com>
8573             Torvald Riegel  <triegel@redhat.com>
8575         Merged from transactional-memory.
8577         * c-common.c (handle_tm_wrap_attribute,
8578         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
8579         (struct c_common_reswords): Added __transaction* keywords.
8580         (struct c_common_attribute_table): Added transaction* and tm_regparm
8581         attributes.
8582         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
8583         masks.
8584         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
8585         find_tm_attribute): Declare.
8587 2011-11-07  Jason Merrill  <jason@redhat.com>
8589         PR c++/35688
8590         * c-common.c, c-common.h: Revert yesterday's changes.
8592 2011-11-06  Jason Merrill  <jason@redhat.com>
8594         PR c++/35688
8595         * c-common.c (decl_has_visibility_attr): Split out from...
8596         (c_determine_visibility): ...here.
8597         * c-common.h: Declare it.
8599 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
8601         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
8602         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
8603         type.
8604         (check_user_alignment): New.  Split out of
8605         handle_aligned_attribute.  Disallow integer constants with
8606         noninteger types.  Conditionally allow zero.
8607         (handle_aligned_attribute): Use check_user_alignment.
8608         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
8610 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
8611             Richard Henderson  <rth@redhat.com>
8613         Merged from cxx-mem-model.
8615         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
8616         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
8617         parameters that are the same type size.
8618         (get_atomic_generic_size): New.  Find size of generic
8619         atomic function parameters and do typechecking.
8620         (add_atomic_size_parameter): New.  Insert size into parameter list.
8621         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
8622         either __atomic_exchange_n or external library call.
8623         (resolve_overloaded_atomic_compare_exchange): Restructure
8624         __atomic_compare_exchange to either _n variant or external library call.
8625         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
8626         __atomic_load_n or an external library call.
8627         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
8628         __atomic_store_n or an external library call.
8629         (resolve_overloaded_builtin): Handle new __atomic builtins.
8631 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
8633         PR c++/50608
8634         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
8635         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
8636         <INDIRECT_REF>: Return the argument.
8637         <ARRAY_REF>: Remove special code for negative offset.
8638         Call fold_build_pointer_plus instead of size_binop.
8639         (fold_offsetof): Remove STOP_REF argument and adjust.
8640         * c-common.h (fold_offsetof_1): Declare.
8641         (fold_offsetof): Remove STOP_REF argument.
8643 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
8645         PR c++/50810
8646         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
8647         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
8648         Wnarrowing for C++0x and C++98.
8649         * c.opt ([Wnarrowing]): Update.
8651 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
8653         PR c++/44277
8654         * c.opt: Add Wzero-as-null-pointer-constant.
8656 2011-10-31  Jason Merrill  <jason@redhat.com>
8658         * c.opt (-fdeduce-init-list): Off by default.
8660         PR c++/50920
8661         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
8662         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
8663         and -Wc++11-compat.
8664         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
8666 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
8668         PR c++/30066
8669         * c.opt (fvisibility-inlines-hidden): Description change.
8671 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
8673         Implement C++11 user-defined literals.
8674         * c-common.c (build_userdef_literal): New.
8675         * c-common.def: New tree code.
8676         * c-common.h (tree_userdef_literal): New tree struct and accessors.
8677         * c-lex.c (interpret_float): Add suffix parm.
8678         (c_lex_with_flags): Build literal tokens.
8680 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
8682         PR c++/50841
8683         Revert:
8684         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
8686         PR c++/50810
8687         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
8688         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
8689         Wnarrowing for C++0x and C++98.
8690         * c.opt ([Wnarrowing]): Update.
8692 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
8694         PR c++/50810
8695         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
8696         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
8697         Wnarrowing for C++0x and C++98.
8698         * c.opt ([Wnarrowing]): Update.
8700 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
8702         PR c++/45385
8703         * c-common.c (conversion_warning): Remove code looking for
8704         artificial operands.
8706 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
8708         PR bootstrap/50760
8709         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
8710         !NO_IMPLICIT_EXTERN_C.
8712 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
8714         * c-common.c (c_common_reswords): Add __bases,
8715         __direct_bases.
8716         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
8718 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
8720         PR c++/50757
8721         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
8723 2011-10-15  Tom Tromey  <tromey@redhat.com>
8724             Dodji Seketeli  <dodji@redhat.com>
8726         * c.opt (fdebug-cpp): New option.
8727         * c-opts.c (c_common_handle_option): Handle the option.
8728         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
8729         output stream in parameter. Factorized from ...
8730         (maybe_print_line): ... this. Dump location debug information when
8731         -fdebug-cpp is in effect.
8732         (print_line_1): New static function. Takes an output stream in
8733         parameter. Factorized from ...
8734         (print_line): ... here. Dump location information when -fdebug-cpp
8735         is in effect.
8736         (scan_translation_unit): Dump location information when
8737         -fdebug-cpp is in effect.
8739 2011-10-15  Tom Tromey  <tromey@redhat.com>
8740             Dodji Seketeli  <dodji@redhat.com>
8742         * c.opt (ftrack-macro-expansion): New option. Handle it with and
8743         without argument.
8744         * c-opts.c (c_common_handle_option)<case
8745         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
8746         cases. Handle -ftrack-macro-expansion with and without argument.
8748 2011-10-15  Tom Tromey  <tromey@redhat.com>
8749             Dodji Seketeli  <dodji@redhat.com>
8751         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
8752         (print_line, cb_define, do_line_change): Adjust to avoid touching
8753         the internals of struct line_map.  Use the public API instead.
8754         * c-pch.c (c_common_read_pch): Likewise.
8755         * c-lex.c (fe_file_change): Likewise.
8757 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
8759         PR c++/17212
8760         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
8762 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
8764         PR c++/33067
8765         * c-pretty-print.c (pp_c_floating_constant): Output
8766         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
8768 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
8770         * c-common.c (def_builtin_1): Delete old interface with two
8771         parallel arrays to hold standard builtin declarations, and replace
8772         it with a function based interface that can support creating
8773         builtins on the fly in the future.  Change all uses, and poison
8774         the old names.  Make sure 0 is not a legitimate builtin index.
8775         * c-omp.c (c_finish_omp_barrier): Ditto.
8776         (c_finish_omp_taskwait): Ditto.
8777         (c_finish_omp_flush): Ditto.
8779 2011-10-11  Tristan Gingold  <gingold@adacore.com>
8781         * c.opt: (fallow-parameterless-variadic-functions): New.
8783 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
8785         PR c++/33255 - Support -Wunused-local-typedefs warning
8786         * c-common.h (struct c_language_function::local_typedefs): New
8787         field.
8788         (record_locally_defined_typedef, maybe_record_typedef_use)
8789         (maybe_warn_unused_local_typedefs): Declare new functions.
8790         * c-common.c (record_locally_defined_typedef)
8791         (maybe_record_typedef_use)
8792         (maybe_warn_unused_local_typedefs): Define new functions.
8793         * c.opt: Declare new -Wunused-local-typedefs flag.
8795 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
8797         PR middle-end/50266
8798         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
8799         computations.
8801 2011-09-05  Richard Guenther  <rguenther@suse.de>
8803         * c-common.c (complete_array_type): Use ssize_int (-1) instead
8804         of integer_minus_one_node for empty array upper bounds.
8806 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
8808         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
8809         it's the first time it's being called on this main TU.
8811 2011-08-24  Richard Guenther  <rguenther@suse.de>
8813         PR c/49396
8814         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
8816 2011-08-22  Gabriel Charette  <gchare@google.com>
8818         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
8819         defined in cpp_init_builtins and c_cpp_builtins.
8821 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
8823         * c-common.c (c_common_reswords): Add __builtin_complex.
8824         * c-common.h (RID_BUILTIN_COMPLEX): New.
8826 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
8828         * c-common.c (c_common_reswords): Add _Noreturn.
8829         (keyword_is_function_specifier): Handle RID_NORETURN.
8830         * c-common.h (RID_NORETURN): New.
8832 2011-08-10  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
8834         * c-common.c (unsafe_conversion_p): New function. Check if it is
8835         unsafe to convert an expression to the type.
8836         (conversion_warning): Adjust, use unsafe_conversion_p.
8837         * c-common.h (unsafe_conversion_p): New function declaration.
8839 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
8841         * c-common.h (c_finish_omp_atomic): Adjust prototype.
8842         (c_finish_omp_taskyield): New prototype.
8843         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
8844         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
8845         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
8846         or RHS1 have side-effects, evaluate those too in the right spot,
8847         if it is a decl and LHS is also a decl, error out if they
8848         aren't the same.
8849         (c_finish_omp_taskyield): New function.
8850         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
8851         * c-pragma.c (omp_pragmas): Add taskyield.
8852         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
8853         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
8854         PRAGMA_OMP_CLAUSE_MERGEABLE.
8856 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
8858         * c-common.h (set_underlying_type): Remove parm name from
8859         declaration.
8861 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
8863         * c-pretty-print.h: Search c-common.h in c-family.
8865 2011-07-22  Jason Merrill  <jason@redhat.com>
8867         PR c++/49793
8868         * c.opt (Wnarrowing): New.
8870         PR c++/30112
8871         * c-common.h: Declare c_linkage_bindings.
8872         * c-pragma.c (handle_pragma_redefine_extname): Use it.
8874         PR c++/49813
8875         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
8876         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
8877         as flag_isoc99 for 'restrict'.
8878         (pp_c_specifier_qualifier_list): Likewise for _Complex.
8880 2011-07-21  Ian Lance Taylor  <iant@google.com>
8882         PR middle-end/49705
8883         * c-common.c (c_disable_warnings): New static function.
8884         (c_enable_warnings): New static function.
8885         (c_fully_fold_internal): Change local unused_p to bool.  Call
8886         c_disable_warnings and c_enable_warnings rather than change
8887         c_inhibit_evaluation_warnings.
8889 2011-07-20  Jason Merrill  <jason@redhat.com>
8891         PR c++/6709 (DR 743)
8892         PR c++/42603 (DR 950)
8893         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
8894         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
8895         (CPP_DECLTYPE): New.
8896         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
8898 2011-07-19  Richard Guenther  <rguenther@suse.de>
8900         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
8901         * c-omp.c (c_finish_omp_for): Likewise.
8903 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
8905         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
8906         body on the next line.
8908 2011-07-08  Jason Merrill  <jason@redhat.com>
8910         PR c++/45437
8911         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
8913         PR c++/49673
8914         * c-common.c (c_apply_type_quals_to_decl): Don't check
8915         TYPE_NEEDS_CONSTRUCTING.
8917 2011-07-06  Richard Guenther  <rguenther@suse.de>
8919         * c-common.c (c_common_nodes_and_builtins):
8920         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
8922 2011-07-05  Richard Guenther  <rguenther@suse.de>
8924         * c-common.c (c_common_nodes_and_builtins): Build all common
8925         tree nodes first.
8927 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
8929         * c-common.h (c_tree_chain_next): New static inline function.
8931         * c-common.c (check_builtin_function_arguments): Handle
8932         BUILT_IN_ASSUME_ALIGNED.
8934 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
8936         * c-common.c: Add sync_ or SYNC__ to builtin names.
8937         * c-omp.c: Add sync_ or SYNC__ to builtin names.
8939 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
8941         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
8942         handler.
8943         (gen_pragma_handler): New union.
8944         (internal_pragma_handler): New type.
8945         (c_register_pragma_with_data)
8946         (c_register_pragma_with_expansion_and_data): New functions.
8948         * c-pragma.c (registered_pragmas, c_register_pragma_1)
8949         (c_register_pragma, c_register_pragma_with_expansion)
8950         (c_invoke_pragma_handler): Changed to work with
8951         internal_pragma_handler.
8952         (c_register_pragma_with_data)
8953         (c_register_pragma_with_expansion_and_data): New functions.
8955 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
8957         * c-common.c: Include common/common-target.h.
8958         (handle_section_attribute): Use
8959         targetm_common.have_named_sections.
8960         * c-cppbuiltin.c: Include common/common-target.h.
8961         (c_cpp_builtins): Use targetm_common.except_unwind_info.
8963 2011-06-10  Richard Guenther  <rguenther@suse.de>
8965         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
8966         to print a IDENTIFIER_NODE.
8968 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8969             Joseph Myers  <joseph@codesourcery.com>
8971         * c.opt (fbuilding-libgcc): New option.
8972         * c-cppbuiltin.c (c_cpp_builtins): Define
8973         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
8975 2011-06-07  Jason Merrill  <jason@redhat.com>
8977         * c-common.c (max_tinst_depth): Lower default to 900.
8979         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
8981 2011-06-07  Richard Guenther  <rguenther@suse.de>
8983         * c-common.c (c_common_nodes_and_builtins): Do not set
8984         size_type_node or call set_sizetype.
8986 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
8988         PR debug/49130
8989         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
8990         type when using pointer comparison to compare types.
8992 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
8994         * c.opt: Add -Wdelete-non-virtual-dtor.
8995         * c-opts.c (c_common_handle_option): Include it in -Wall.
8997 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
8999         PR bootstrap/49190
9001         Revert:
9002         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
9004         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
9005         not tree_common.
9007 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
9009         PR c++/49165
9010         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
9011         C++ don't call c_common_truthvalue_conversion on void type arms.
9013 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
9015         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
9016         (stmt_list_stack): Define.
9017         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
9018         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
9020 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
9022         * c-common.c (warning_candidate_p): Check for BLOCKs.
9024 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
9026         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
9027         not tree_common.
9029 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
9031         * c-common.c (def_fn_type): Remove extra va_end.
9033 2011-05-23  Jason Merrill  <jason@redhat.com>
9035         PR c++/48106
9036         * c-common.c (c_common_get_narrower): New.
9037         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
9039 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
9041         * c-common.h (check_function_arguments): Tweak prototype of
9042         check_function_arguments.
9043         * c-common.c (check_function_arguments): Likewise.  Adjust
9044         calls to check_function_nonnull, check_function_format, and
9045         check_function_sentinel.
9046         (check_function_sentinel): Take a FUNCTION_TYPE rather than
9047         separate attributes and typelist arguments.  Use
9048         FOREACH_FUNCTION_ARGS to iterate over argument types.
9050 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
9052         * c-common.c (c_common_reswords): Reorder.
9053         * c-common.h (rid): Likewise.
9055 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
9057         * c-common.c (def_fn_type): Don't call build_function_type, call
9058         build_function_type_array or build_varargs_function_type_array
9059         instead.
9060         (c_common_nodes_and_builtins): Likewise.
9062 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
9064         * c-common.c (c_add_case_label): Omit the loc argument to
9065         build_case_label.
9066         * c-common.h (build_case_label): Remove.
9067         * c-semantics.c (build_case_label): Remove.
9069 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
9071         * c-objc.h (objc_start_method_definition): Update prototype.
9072         * stub-objc.c (objc_start_method_definition): Add extra parameter.
9074 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
9076         * c-common.c (check_main_parameter_types): Reindent.  Don't use
9077         TYPE_ARG_TYPES directly.
9078         (handle_nonnull_attribute): Likewise.
9079         (sync_resolve_params): Likewise.
9080         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
9081         to check_format_string.
9082         (handle_format_attribute): Likewise.
9083         (check_format_string): Take a function type to examine instead of
9084         a type list.  Use a function_arg_iterator to step through argument
9085         types.
9087 2011-05-04  Richard Guenther  <rguenther@suse.de>
9089         * c-common.c (fix_string_type): Use size_int for index type bounds.
9090         (start_fname_decls): Do not pass NULL to build_int_cst.
9091         (c_init_attributes): Likewise.
9092         * c-lex.c (c_lex_with_flags): Likewise.
9094 2011-04-27  Jason Merrill  <jason@redhat.com>
9096         * c-common.c (make_tree_vector_from_list): New.
9097         * c-common.h: Declare it.
9099 2011-04-26  Richard Guenther  <rguenther@suse.de>
9101         PR preprocessor/48248
9102         * c-ppoutput.c (maybe_print_line): Always optimize newlines
9103         for output size with -P.
9105 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
9107         * c-common.c (struct c_common_resword): Add __underlying_type.
9108         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
9110 2011-04-20  Jim Meyering  <meyering@redhat.com>
9112         * c-format.c (init_dollar_format_checking): Remove useless
9113         if-before-free.
9115 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
9117         * c-objc.h (objc_get_interface_ivars): Removed.
9118         (objc_detect_field_duplicates): New.
9119         * stub-objc.c: Likewise.
9121 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
9123         * stub-objc.c (objc_declare_protocols): Renamed to
9124         objc_declare_protocol.
9125         * c-objc.h: Likewise.
9127 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
9129         * stub-objc.c (objc_declare_class): Updated argument name.
9131 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
9133         * c-common.h (c_common_init_ts): Declare.
9134         * c-common.c (c_common_init_ts): Define.
9136 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
9138         * c-objc.h (objc_build_message_expr): Updated prototype.
9139         * stub-objc.c (objc_build_message_expr): Likewise.
9141 2011-04-12  Martin Jambor  <mjambor@suse.cz>
9143         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
9144         of cgraph_node.
9146 2011-04-11  Richard Guenther  <rguenther@suse.de>
9148         * c-common.c (complete_array_type): Build a range type of
9149         proper type.
9151 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
9153         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
9154         (handle_type_generic_attribute): Likewise.
9156 2011-04-07  Jason Merrill  <jason@redhat.com>
9158         PR c++/48450
9159         * c-common.c (c_common_truthvalue_conversion): Don't ignore
9160         conversion from C++0x scoped enum.
9162 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
9164         * c-target-def.h: New file.
9165         * c-target.def: New file.
9166         * c-target.h: New file.
9167         * c-common.c (targetcm): Don't define here.
9168         * c-common.h (default_handle_c_option): Declare.
9169         * c-format.c: Include c-target.h instead of target.h.
9170         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
9171         include tm.h.
9172         (default_handle_c_option): Move from targhooks.c.
9174 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
9176         PR preprocessor/48248
9177         * c-ppoutput.c (print): Add src_file field.
9178         (init_pp_output): Initialize it.
9179         (maybe_print_line): Don't optimize by adding up to 8 newlines
9180         if map->to_file and print.src_file are different file.
9181         (print_line): Update print.src_file.
9183 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9185         * c-ada-spec.c (compare_comment): Use filename_cmp
9186         instead of strcmp for filename.
9188 2011-03-25  Jeff Law  <law@redhat.com>
9190         * c-common.c (def_fn_type): Add missing va_end.
9192 2011-03-25  Jason Merrill  <jason@redhat.com>
9194         * c.opt: Add -std=c++03.
9196 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9198         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
9200 2011-03-17  Kai Tietz  <ktietz@redhat.com>
9202         PR target/12171
9203         * c-pretty-print.c (pp_c_specifier_qualifier_list):
9204         Display allowed attributes for function pointer types.
9205         (pp_c_attributes_display): New function to display
9206         attributes having affects_type_identity flag set to true.
9207         * c-pretty-print.h (pp_c_attributes_display): New prototype.
9209         * c-common.c (c_common_attribute_table):
9210         Add new element.
9211         (c_common_format_attribute_table): Likewise.
9213 2011-03-18  Jason Merrill  <jason@redhat.com>
9215         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
9216         * c-common.h: Don't declare it here.
9217         * c-common.c: Or define it here.
9218         * c-opts.c (c_common_handle_option): Or set it here.
9220         PR c++/35315
9221         * c-common.c (handle_transparent_union_attribute): Don't
9222         make a duplicate type in C++.
9224 2011-03-15  Jason Merrill  <jason@redhat.com>
9226         * c-common.c (max_constexpr_depth): New.
9227         * c-common.h: Declare it.
9228         * c-opts.c (c_common_handle_option): Set it.
9229         * c.opt (fconstexpr-depth): New option.
9231 2011-03-11  Jason Merrill  <jason@redhat.com>
9233         * c-common.c (attribute_takes_identifier_p): Add missing const.
9235         PR c++/46803
9236         * c-common.c (attribute_takes_identifier_p): Assume that an
9237         unknown attribute takes an identifier.
9239 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
9241         PR c/47786
9242         * c-common.c (c_type_hash): Call list_length instead of iterating
9243         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
9245 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
9247         PR c/47809
9248         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
9250 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
9252         * c.opt (fobjc-abi-version=) New.
9253         (fobjc-nilcheck): New.
9255 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
9257         PR c++/46890
9258         * c-common.h (keyword_is_decl_specifier): Declare.
9259         * c-common.c (keyword_is_decl_specifier): Define.
9260         (keyword_is_function_specifier): New function.
9262 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
9264         PR c/47473
9265         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
9266         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
9267         REAL_TYPE.
9269 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
9271         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
9273 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
9275         PR pch/47430
9276         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
9277         after init_c_lex if pch_file is set.
9279 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
9281         PR c++/43601
9282         * c.opt (-fkeep-inline-dllexport): New switch.
9284 2011-01-12  Richard Guenther  <rguenther@suse.de>
9286         PR middle-end/32511
9287         * c-common.c (handle_weak_attribute): Warn instead of error
9288         on declaring an inline function weak.
9290 2011-01-05  Tom Tromey  <tromey@redhat.com>
9292         * c-common.h (lvalue_error): Update.
9293         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
9294         not error.
9296 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
9298         PR objc/47075
9299         * c-objc.h (objc_finish_message_expr): Added argument to
9300         prototype.
9302 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
9304         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
9305         Use prototype_p.
9307 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
9309         * c-objc.h (objc_maybe_warn_exceptions): New.
9310         * stub-objc.c (objc_maybe_warn_exceptions): New.
9312 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
9314         * c-common.h (readonly_error): Declare.
9315         * c-common.c (readonly_error): Define.
9317 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
9319         * c-common.h (invalid_indirection_error): Declare.
9320         * c-common.c (invalid_indirection_error): Define.
9322 2010-12-03  Richard Guenther  <rguenther@suse.de>
9324         PR c/46745
9325         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
9326         (pp_c_unary_expression): Likewise.
9327         (pp_c_expression): Likewise.
9329 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
9331         * c-common.h (objc_finish_function): New.
9332         (objc_non_volatilized_type): Removed.
9333         (objc_type_quals_match): Removed.
9334         * stub-objc.c (objc_finish_function): New.
9335         (objc_non_volatilized_type): Removed.
9336         (objc_type_quals_match): Removed.
9338 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
9340         * c-common.h (parse_optimize_options): Declare.
9341         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
9342         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
9344 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
9346         * c-opts.c (check_deps_environment_vars): Use getenv instead of
9347         GET_ENVIRONMENT.
9348         * c-pch.c (O_BINARY): Don't define here.
9349         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
9351 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
9353         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
9354         targetm.except_unwind_info.
9356 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
9358         * c-opts.c (c_common_handle_option): Pass location to
9359         set_struct_debug_option.
9361 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
9363         * c-common.c (visibility_options): Move from ../opts.c.
9364         * c-common.h (struct visibility_flags, visibility_options):
9365         Declare here.
9366         * c-opts.c (finish_options): Rename to c_finish_options.
9367         (c_common_init): Update call to finish_options.
9369 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
9371         PR objc/34033
9372         * c-lex.c (lex_string): Check that each string in an Objective-C
9373         string concat sequence starts with either one or zero '@', and
9374         that there are no spurious '@' signs at the end.
9376 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
9378         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
9379         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
9380         HANDLE_PRAGMA_VISIBILITY.
9381         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
9382         HANDLE_PRAGMA_VISIBILITY): Don't define.
9383         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
9385 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
9387         PR c++/16189
9388         PR c++/36888
9389         PR c++/45331
9390         * c-common.h (keyword_begins_type_specifier): Declare.
9391         (keyword_is_storage_class_specifier): Declare.
9392         (keyword_is_type_qualifier): Declare.
9393         * c-common.c (keyword_begins_type_specifier): New function.
9394         (keyword_is_storage_class_specifier): New function.
9395         (keyword_is_type_qualifier): Declare.
9397 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
9399         PR c/46547
9400         * c-common.c (in_late_binary_op): Define.
9401         (c_common_truthvalue_conversion): Check in_late_binary_op before
9402         calling c_save_expr.
9403         * c-common.h (in_late_binary_op): Declare.
9405 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
9407         * c-opts.c (c_common_handle_option): Update calls to
9408         set_struct_debug_option.
9410 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
9412         * c-common.h (objc_declare_protocols): Added additional argument.
9413         * stub-objc.c (objc_declare_protocol): Same change.
9415 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
9417         PR c/33193
9418         * c-common.h (build_real_imag_expr): Declare.
9419         * c-semantics.c (build_real_imag_expr): Define.
9421 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
9423         * c-opts.c (c_common_parse_file): Take no arguments.
9424         * c-common.h (c_common_parse_file): Update prototype.
9426 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
9428         PR c++/46401
9429         * c-common.c (warning_candidate_p): Don't track non-const calls
9430         or STRING_CSTs.
9432 2010-11-15  Ian Lance Taylor  <iant@google.com>
9434         * c-lex.c (init_c_lex): Set macro debug callbacks if
9435         flag_dump_go_spec is set.
9437 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
9439         * c-common.h (objc_build_incr_expr_for_property_ref): New.
9440         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
9442 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
9444         PR preprocessor/45038
9445         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
9446         dialects.
9448 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
9450         * c-common.h (c_family_lang_mask): Declare.
9451         * c-opts.c (c_family_lang_mask): Make extern.
9452         * c-pragma.c (handle_pragma_diagnostic): Use
9453         control_warning_option.
9455 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
9457         * c-common.c (parse_optimize_options): Update call to
9458         decode_options.
9459         * c-common.h (c_common_handle_option): Update prototype.
9460         * c-opts.c (c_common_handle_option): Take location_t parameter and
9461         pass it to other functions.
9463 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
9465         * c-opts.c (warning_as_error_callback): Remove.
9466         (c_common_initialize_diagnostics): Don't call
9467         register_warning_as_error_callback.
9468         (c_common_handle_option): Handle -Werror=normalized= here.
9470 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
9472         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
9473         in diagnostic.
9474         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
9475         letter.
9476         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
9477         Remove trailing '.' from diagnostics.
9478         * c.opt (Wwrite-strings_: Avoid '`' in help text.
9480 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
9482         * c-common.c (parse_optimize_options): Pass global_dc to
9483         decode_options.
9484         * c-opts.c (c_common_handle_option): Pass &global_options to
9485         set_Wstrict_aliasing.
9486         * c.opt (v): Don't mark Common or document here.
9488 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
9490         PR target/44981
9491         * c-format.c (format_type): New type gcc_objc_string_format_type.
9492         (valid_stringptr_type_p): New.
9493         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9494         (check_format_string): Pass expected type, use
9495         valid_stringptr_type_p (), check that the format string types are
9496         consistent with the format specification.
9497         (decode_format_attr): Warn if NSString is used outside objective-c.
9498         (format_types_orig): Add NSString.
9499         (format_name): New.
9500         (format_flags): New.
9501         (check_format_arg): Handle format strings requiring an external parser.
9502         first_target_format_type: New variable.
9503         (handle_format_attribute): Set up first_target_format_type, pass the
9504         expected format arg string type to check_format_string().
9505         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL):  New flag.
9506         * stub-objc.c (objc_string_ref_type_p): New.
9507         (objc_check_format_arg): New.
9509 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
9511         Fixed using the Objective-C 2.0 dot-syntax with class names.
9512         * c-common.h (objc_build_class_component_ref): New.
9513         * stub-objc.c (objc_build_class_component_ref): New.
9515 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
9517         * c.opt (Wproperty-assign-default): New option.
9519 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
9521         Implemented -fobjc-std=objc1 flag.
9522         * c.opt (fobjc-std=objc1): New option.
9524 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
9526         Implemented format and noreturn attributes for Objective-C methods.
9527         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
9528         attribute for Objective-C methods.
9530 2010-10-31  Jason Merrill  <jason@redhat.com>
9532         * c-common.c (conversion_warning, warn_for_collisions_1): Use
9533         EXPR_LOC_OR_HERE.
9535 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
9537         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
9538         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
9539         (objc_add_property_declaration): Removed arguments for copies and
9540         ivar.
9541         (objc_build_getter_call): Renamed to
9542         objc_maybe_build_component_ref.
9543         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
9544         (objc_is_property_ref): New.
9545         * c-common.c (c_common_reswords): Removed copies and ivar.
9546         * stub-objc.c (objc_add_property_declaration): Removed arguments
9547         for copies and ivar.
9548         (objc_build_getter_call): Renamed to
9549         objc_maybe_build_component_ref.
9550         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
9551         (objc_is_property_ref): New.
9553 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
9554             Matthew Gingell  <gingell@adacore.com>
9556         * c-ada-spec.c (separate_class_package): New function.
9557         (pp_ada_tree_identifier): Prefix references to C++ classes with the
9558         name of their enclosing package.
9559         (print_ada_declaration): Use separate_class_package.
9561 2010-10-27  Jason Merrill  <jason@redhat.com>
9563         * c-common.c (c_common_reswords): Add __is_literal_type.
9564         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
9566         * c-common.c (check_case_value): Remove special C++ code.
9568 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
9570         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
9571         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
9572         and RID_LAST_PATTR.
9573         (objc_add_property_declaration): Added additional arguments.
9574         (objc_property_attribute_kind): Removed.
9575         (objc_set_property_attr): Removed.
9576         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
9577         copy and nonatomic.
9578         * stub-objc.c (objc_add_property_declaration): Added additional
9579         arguments.
9580         (objc_set_property_attr): Removed.
9582 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
9584         * c-common.h (objc_add_property_variable): Renamed to
9585         objc_add_property_declaration.  Added location argument.
9586         * stub-objc.c (objc_add_property_variable): Same change.
9588 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
9590         * c-common.h (objc_maybe_printable_name): New.
9591         * stub-objc.c (objc_maybe_printable_name): New.
9593 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
9594             Andrew Pinski  <pinskia@gmail.com>
9596         * c-common.h (c_common_mark_addressable_vec): Declare.
9597         * c-common.c (c_common_mark_addressable_vec): New function.
9599 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
9601         * c-common.h (objc_set_method_type): Removed.
9602         (objc_add_method_declaration): Added boolean argument.
9603         (objc_start_method_definition): Same change.
9604         (objc_build_method_signature): Same change.
9605         * stub-objc.c (objc_set_method_type): Removed.
9606         (objc_add_method_declaration): Added boolean argument.
9607         (objc_start_method_definition): Same change.
9608         (objc_build_method_signature): Same change.
9610 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
9612         * c-common.h (finish_file): Removed.
9613         (objc_write_global_declarations): New.
9614         * c-opts.c (c_common_parse_file): Do not call finish_file.
9615         * stub-objc.c (objc_write_global_declarations): New.
9617 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
9619         Implemented parsing @synthesize and @dynamic for
9620         Objective-C/Objective-C++.
9621         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
9622         (objc_add_synthesize_declaration): New.
9623         (objc_add_dynamic_declaration): New.
9624         * c-common.c (c_common_reswords): Add synthesize and dynamic.
9625         * stub-objc.c (objc_add_synthesize_declaration): New.
9626         (objc_add_dynamic_declaration): New.
9628 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
9630         PR target/46041
9631         * c-cppbuiltin.c (mode_has_fma): Move function here from
9632         builtins.c.  Don't use the fma optab, instead just use the
9633         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
9634         using -save-temps.
9636 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
9638         Merge from 'apple/trunk' branch on FSF servers.
9640         2005-11-08  Fariborz Jahanian  <fjahanian@apple.com>
9642         Radar 4330422
9643         * c-common.h (objc_non_volatilized_type): New declaration
9644         * stub-objc.c (objc_non_volatilized_type): New stub.
9646 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
9648         Merge from 'apple/trunk' branch on FSF servers.
9650         2006-03-27 Fariborz Jahanian  <fjahanian@apple.com>
9652         Radar 4133425
9653         * c-common.h (objc_diagnose_private_ivar): New decl.
9654         * stub-objc.c (objc_diagnose_private_ivar): New stub.
9656 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
9658         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
9659         * c-common.h (enum rid): Add RID_AT_PACKAGE.
9660         (objc_ivar_visibility_kind): New enum.
9661         (objc_set_visibility): Adjust prototype to use visibility enum.
9662         * stub-objc.c (objc_set_visibility): Adjust stub to use
9663         visibility enum.
9665 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9667         * c-cppbuiltin.c (builtin_define_float_constants): Emit
9668         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
9669         has the appropriate fma builtins.
9670         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
9672 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
9674         merge from FSF apple 'trunk' branch.
9675         2006 Fariborz Jahanian  <fjahanian@apple.com>
9677         Radars 4436866, 4505126, 4506903, 4517826
9678         * c-common.c (c_common_resword): Define @property and its attributes.
9679         * c-common.h: Define property attribute enum entries.
9680         (OBJC_IS_PATTR_KEYWORD): New.
9681         (objc_property_attribute_kind): New enum.
9682         Declare objc_set_property_attr (), objc_add_property_variable (),
9683         objc_build_getter_call () and objc_build_setter_call ().
9684         * stub-objc.c (objc_set_property_attr): New stub.
9685         (objc_add_property_variable): Likewise.
9686         (objc_build_getter_call): Likewise.
9687         (objc_build_setter_call) Likewise.
9689 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
9691         merge from FSF apple 'trunk' branch.
9692         2006-04-26 Fariborz Jahanian  <fjahanian@apple.com>
9694         Radar 3803157 (method attributes)
9695         * c-common.c (handle_deprecated_attribute): Recognize
9696         objc methods as valid declarations.
9697         * c-common.h: Declare objc_method_decl ().
9698         * stub-objc.c (objc_method_decl): New stub.
9700 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
9702         * c-common.c (parse_optimize_options): Call
9703         decode_cmdline_options_to_array_default_mask before
9704         decode_options.  Update arguments to decode_options.
9705         * c-common.h (c_common_init_options_struct): Declare.
9706         * c-opts.c (c_common_init_options_struct): New.  Split out from
9707         c_common_init_options.
9709 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
9711         Implemented fast enumeration for Objective-C.
9712         * c-common.h (objc_finish_foreach_loop): New.
9713         * stub-objc.c (objc_finish_foreach_loop): New.
9715 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
9717         * c-common.h (struct diagnostic_context): Don't declare here.
9718         (c_common_initialize_diagnostics): Declare using
9719         diagnostic_context typedef.
9720         * c-opts.c (c_common_handle_option): Pass global_dc to
9721         handle_generated_option.
9723 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
9725         * c-opts.c (c_common_handle_option): Pass &global_options_set to
9726         handle_generated_option.
9728 2010-10-03  Ian Lance Taylor  <iant@google.com>
9730         * c.opt (-fplan9-extensions): New option.
9732 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9734         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
9735         Remove.
9736         (c_cpp_builtins): Call functions from cppbuiltin.c instead
9737         of duplicating code.
9739 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
9741         * c-common.c: Add two new entries for @optional
9742         and @required keywords.
9744         merge from FSF 'apple/trunk' branch.
9745         2006-01-30  Fariborz Jahanian  <fjahanian@apple.com>
9747         Radar 4386773
9748         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
9749         objective-c keywords.
9750         (objc_set_method_opt): New declaration.
9751         * stub-objc.c (objc_set_method_opt): New stub.
9753 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
9755         * c-common.c (handle_optimize_attribute): Pass &global_options to
9756         cl_optimization_save and cl_optimization_restore.
9757         * c-opts.c (c_common_handle_option): Pass &global_options to
9758         handle_generated_option.
9759         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
9760         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
9761         &global_options to cl_optimization_restore.
9763 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
9765         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
9766         Objective-C/Objective-C++ keywords.
9768 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
9770         Merge from 'apple/trunk' branch on FSF servers.
9772         2005-10-04  Fariborz Jahanian  <fjahanian@apple.com>
9774         Radar 4281748
9775         * c-common.h (objc_check_global_decl): New declaration.
9776         * stub-objc.c (objc_check_global_decl): New stub.
9778 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
9780         * c.opt: Don't use VarExists.
9782 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
9784         * c-common.c (c_cpp_error): Update names of diagnostic_context
9785         members.
9786         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
9787         cl_optimization members.
9788         * c-opts.c (warning_as_error_callback, c_common_handle_option,
9789         sanitize_cpp_opts, finish_options): Update names of cpp_options
9790         members.
9792 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
9794         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
9795         (objc_is_reserved_word): Removed.
9796         * c-common.c: Updated comments.
9797         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
9798         objc_is_reserved_word.
9799         * stub-objc.c (objc_is_reserved_word): Removed.
9801 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
9803         * c-common.h (objc_add_method_declaration): Adjust prototype to
9804         include attributes.
9805         (objc_start_method_definition): Likewise.
9806         (objc_build_keyword_decl): Likewise.
9807         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
9808         (objc_start_method_definition): Likewise.
9809         (objc_build_keyword_decl): Likewise.
9811 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
9813         * c-common.h (objc_start_class_interface): Adjust prototype.
9814         (objc_start_category_interface): Likewise.
9815         (objc_start_protocol): Likewise.
9816         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
9817         (objc_start_class_interface): Likewise.
9818         (objc_start_category_interface): Likewise.
9820 2010-09-27  Ian Lance Taylor  <iant@google.com>
9822         * c-common.c (c_common_attribute_table): Add no_split_stack.
9823         (handle_no_split_stack_attribute): New static function.
9825 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
9827         Merge from 'apple/trunk' branch on FSF servers.
9829         2005-12-15  Fariborz Jahanian  <fjahanian@apple.com>
9831         Radar 4229905
9832         * c-common.h (objc_have_common_type): New declaration.
9833         * stub-objc.c (objc_have_common_type): New stub.
9835         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
9837         Radar 4154928
9838         * c-common.h (objc_common_type): New prototype.
9839         * stub-objc.c (objc_common_type): New stub.
9841 2010-09-24  Jan Hubicka  <jh@suse.cz>
9843         * c-common.c (handle_leaf_attribute): New function.
9844         (struct attribute_spec c_common_att): Add leaf.
9846 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
9848         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
9849         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
9850         -dump, -dump=, -imacros, -imacros=, -include, -include=,
9851         -include-barrier, -include-directory, -include-directory=,
9852         -include-directory-after, -include-directory-after=,
9853         -include-prefix, -include-prefix=, -include-with-prefix,
9854         -include-with-prefix=, -include-with-prefix-after,
9855         -include-with-prefix-after=, -include-with-prefix-before,
9856         -include-with-prefix-before=, -no-integrated-cpp,
9857         -no-line-commands, -no-standard-includes, -no-warnings, -output,
9858         -output=, -pedantic, -pedantic-errors, -preprocess,
9859         -print-missing-file-dependencies, -trace-includes, -traditional,
9860         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
9861         -user-dependencies, -verbose, -write-dependencies,
9862         -write-user-dependencies, no-integrated-cpp, traditional): New.
9864 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9866         PR objc/23710
9867         * c-common.h (objc_start_method_definition): Return bool instead
9868         of void.
9869         * stub-objc.c (objc_start_method_definition): Return bool instead
9870         of void.
9872 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9874         PR objc/25965
9875         * c-common.h (objc_get_interface_ivars): New declaration.
9876         * stub-objc.c (objc_get_interface_ivars): New stub.
9878 2010-09-15  Ian Lance Taylor  <iant@google.com>
9880         * c-common.c (parse_optimize_options): Do not capitalize warning
9881         messages.  Remove period at end of warning message.
9883 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
9885         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
9886         (handle_alias_attribute): ... here.
9887         (handle_ifunc_attribute): New.
9889 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
9891         * c-common.h (do_warn_double_promotion): Declare.
9892         * c-common.c (do_warn_double_promotion): Define.
9894 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
9896         * c.opt (Wdouble-promotion): New.
9898 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
9900         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
9901         fvtable-thunks, fxref): Mark no longer supported in help text.
9903 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
9905         * c.opt (Wimport, fall-virtual, falt-external-templates,
9906         fdefault-inline, fenum-int-equiv, fexternal-templates,
9907         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
9908         fname-mangling-version-, fnew-abi, fnonnull-objects,
9909         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
9910         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
9911         applicable.
9912         (fhandle-exceptions): Mark with Alias and Warn.
9913         * c-opts.c (c_common_handle_option): Don't handle options marked
9914         as ignored.
9916 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
9918         * c.opt (Wcomments, Werror-implicit-function-declaration,
9919         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
9920         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
9921         aliases.
9922         * c-common.c (option_codes): Use OPT_Wcomment instead of
9923         OPT_Wcomments.
9924         * c-opts.c (warning_as_error_callback, c_common_handle_option):
9925         Don't handle options marked as aliases.
9927 2010-08-25  Richard Guenther  <rguenther@suse.de>
9929         * c-common.c (c_common_get_alias_set): Remove special
9930         handling for pointers.
9932 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
9934         * c-common.c: Use FOR_EACH_VEC_ELT.
9935         * c-gimplify.c: Likewise.
9936         * c-pragma.c: Likewise.
9938 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
9940         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
9941         RejectDriver.
9942         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
9943         RejectDriver.
9944         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
9945         instead of OPT_MDX and OPT_MMDX.
9947 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
9949         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
9951 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
9953         * c.opt (MD, MMD): Change to MDX and MMDX.
9954         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
9956 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
9958         * c-opts.c (c_common_handle_option): Call handle_generated_option
9959         instead of handle_option.
9961 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
9963         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
9964         (maybe_apply_renaming_pragma): Delete unneeded declarations.
9966 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
9968         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
9969         (pending_redefine_extname): Change type to a VEC.
9970         (add_to_renaming_pragma_list): Update for new type of
9971         pending_redefine_extname.
9972         (maybe_apply_renaming_pragma): Likewise.
9974 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
9976         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
9977         visited.
9978         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
9979         decide whether a type has already been declared/seen.
9980         Do not go to the original type.
9981         (dump_nested_types): New parameter forward.
9982         Generate forward declaration if needed and mark type as visited.
9983         (print_ada_declaration): Call dump_nested_types if not already done.
9984         Mark types as visited.
9986 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
9988         * c.opt (-print-pch-checksum): Remove option.
9989         * c-opts.c (c_common_handle_option): Don't handle
9990         OPT_print_pch_checksum.
9992 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
9994         * c-common.h (c_common_handle_option): Update prototype and return
9995         value type.
9996         * c-opts.c (c_common_handle_option): Update prototype and return
9997         value type.  Update calls to handle_option and
9998         enable_warning_as_error.
10000 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
10002         PR c/45079
10003         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
10005 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
10007         * c-common.h (c_common_missing_argument): Remove.
10008         * c-opts.c (c_common_missing_argument): Remove.
10009         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
10010         idirafter, imacros, include, isysroot, isystem, iquote): Add
10011         MissingArgError.
10012         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
10014 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
10016         * c-common.h (c_common_option_lang_mask,
10017         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
10018         New.
10019         (c_common_init_options): Update prototype.
10020         * c-opts.c (c_common_option_lang_mask): New.
10021         (c_common_initialize_diagnostics): Split out of
10022         c_common_init_options.
10023         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
10024         New.
10025         (c_common_init_options): Update prototype.  Use decoded options in
10026         search for -lang-asm.
10028 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
10030         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
10031         * c-format.c: Likewise.
10033 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10035         * c-common.h: Include diagnostic-core.h. Error if already
10036         included.
10037         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
10039 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10041         * c-common.c (IN_GCC_FRONTEND): Do not undef.
10042         Do not include expr.h
10043         (vector_mode_valid_p): Move here.
10045 2010-06-21  DJ Delorie  <dj@redhat.com>
10047         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
10048         allow these pragmas anywhere.
10050 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
10052         PR bootstrap/44509
10053         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
10054         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
10055         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
10056         ggc_strdup instead of xstrdup.
10058 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
10060         * c-cppbuiltin.c: Include cpp-id-data.h.
10061         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
10062         (lazy_hex_fp_value): New function.
10063         (builtin_define_with_hex_fp_value): Provide definitions lazily.
10065 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10067         * c-gimplify.c: Do not include tree-flow.h
10069 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
10071         PR other/44034
10072         * c-common.c: Rename targetm member:
10073         targetm.enum_va_list -> targetm.enum_va_list_p
10075 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
10077         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
10079 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
10081         * c-cppbuiltin.c: Do not include except.h.
10083 2010-06-24  Andi Kleen  <ak@linux.intel.com>
10085         * c-common.c (warn_for_omitted_condop): New.
10086         * c-common.h (warn_for_omitted_condop): Add prototype.
10088 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
10090         * c.opt (lang-objc): Remove.
10091         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
10093 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
10095         * c-opts.c: Include "tm_p.h".
10097 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
10099         * c-common.c (parse_optimize_options): Update call to
10100         decode_options.
10102 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
10104         * c-common.c (record_types_used_by_current_var_decl): Adjust for
10105         new type of types_used_by_cur_var_decl.
10107 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
10109         PR bootstrap/44512
10110         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
10111         for C++ standard compliance.
10113 2010-06-16  Jason Merrill  <jason@redhat.com>
10115         * c.opt: Add -Wnoexcept.
10117 2010-06-16  Richard Guenther  <rguenther@suse.de>
10119         PR c/44555
10120         * c-common.c (c_common_truthvalue_conversion): Remove
10121         premature and wrong optimization concering ADDR_EXPRs.
10123 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
10125         * c-ada-spec.c (dump_sloc): Remove column info.
10126         (is_simple_enum): New function.
10127         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
10128         enum types when relevant.
10130 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10132         * c-common.c (conversion_warning): Warn at expression
10133         location.
10135 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
10137         * c-opts.c (c_common_handle_option): Don't handle
10138         OPT_fshow_column.
10140 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10142         * c-pragma.c (push_alignment): Use typed GC allocation.
10143         (handle_pragma_push_options): Likewise.
10145         * c-common.c (parse_optimize_options): Likewise.
10147         * c-common.h (struct sorted_fields_type): Add variable_size GTY
10148         option.
10150 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
10152         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
10153         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
10154         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
10155         flag_signed_bitfields, warn_strict_null_sentinel,
10156         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
10157         flag_gen_declaration, flag_no_gnu_keywords,
10158         flag_implement_inlines, flag_implicit_templates,
10159         flag_implicit_inline_templates, flag_optional_diags,
10160         flag_elide_constructors, flag_default_inline, flag_rtti,
10161         flag_conserve_space, flag_access_control, flag_check_new,
10162         flag_new_for_scope, flag_weak, flag_working_directory,
10163         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
10164         flag_enforce_eh_specs, flag_threadsafe_statics,
10165         flag_pretty_templates): Remove.
10166         * c-common.h (flag_preprocess_only, flag_nil_receivers,
10167         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
10168         flag_replace_objc_classes, flag_undef, flag_no_builtin,
10169         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
10170         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
10171         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
10172         flag_no_gnu_keywords, flag_implement_inlines,
10173         flag_implicit_templates, flag_implicit_inline_templates,
10174         flag_optional_diags, flag_elide_constructors, flag_default_inline,
10175         flag_rtti, flag_conserve_space, flag_access_control,
10176         flag_check_new, flag_new_for_scope, flag_weak,
10177         flag_working_directory, flag_use_cxa_atexit,
10178         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
10179         flag_threadsafe_statics, flag_pretty_templates,
10180         warn_strict_null_sentinel): Remove.
10181         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
10182         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
10183         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
10184         fimplicit-inline-templates, fimplicit-templates,
10185         flax-vector-conversions, fms-extensions, fnil-receivers,
10186         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
10187         frtti, fshort-double, fshort-enums, fshort-wchar,
10188         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
10189         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
10190         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
10191         gen-decls, undef): Use Var.
10192         (fdefault-inline, foptional-diags): Document as doing nothing.
10193         * c-opts.c (c_common_handle_option): Remove cases for options now
10194         using Var.  Mark ignored options as such.
10196 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
10198         * c-common.c: Moved to here from parent directory.
10199         * c-common.def: Likewise.
10200         * c-common.h: Likewise.
10201         * c-cppbuiltin.c: Likewise.
10202         * c-dump.c: Likewise.
10203         * c-format.c: Likewise.
10204         * c-format.h : Likewise.
10205         * c-gimplify.c: Likewise.
10206         * c-lex.c: Likewise.
10207         * c-omp.c: Likewise.
10208         * c.opt: Likewise.
10209         * c-opts.c: Likewise.
10210         * c-pch.c: Likewise.
10211         * c-ppoutput.c: Likewise.
10212         * c-pragma.c: Likewise.
10213         * c-pragma.h: Likewise.
10214         * c-pretty-print.c: Likewise.
10215         * c-pretty-print.h: Likewise.
10216         * c-semantics.c: Likewise.
10217         * stub-objc.c: Likewise.
10219         * c-common.c: Include gt-c-family-c-common.h.
10220         * c-pragma.c: Include gt-c-family-c-pragma.h.
10222 Copyright (C) 2010-2019 Free Software Foundation, Inc.
10224 Copying and distribution of this file, with or without modification,
10225 are permitted in any medium without royalty provided the copyright
10226 notice and this notice are preserved.