[simplify-rtx] Simplify vec_merge of vec_duplicates into vec_concat
[official-gcc.git] / gcc / c-family / ChangeLog
blob373db2d1994253aefe9741e1d362e9a78767486b
1 2017-11-06  Martin Liska  <mliska@suse.cz>
3         PR middle-end/82404
4         * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
5         FE.
6         * c.opt: Set default value of warn_return_type.
8 2017-10-31  David Malcolm  <dmalcolm@redhat.com>
10         * c-common.c (binary_op_error): Update for renaming of
11         error_at_rich_loc.
12         (c_parse_error): Likewise.
13         * c-warn.c (warn_logical_not_parentheses): Likewise for
14         renaming of inform_at_rich_loc.
15         (warn_for_restrict): Likewise for renaming of
16         warning_at_rich_loc_n.
18 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
20         * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
21         * c-opts.c (set_std_c17): New function.
22         (c_common_init_options): Use gnu17 as default C version.
23         (c_common_handle_option): Handle -std=c17 and -std=gnu17.
25 2017-10-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
27         * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
28         (c_cpp_builtins): If a machine has a fast fma _Float<N> and
29         _Float<N>X variant, define __FP_FAST_FMA<N> and/or
30         __FP_FAST_FMA<N>X.
32 2017-10-23  Marek Polacek  <polacek@redhat.com>
34         PR c/82681
35         * c-warn.c (warnings_for_convert_and_check): Fix typos.
37 2017-10-19  Eric Botcazou  <ebotcazou@adacore.com>
39         * c-common.c (check_builtin_function_arguments): Also check arguments
40         of __builtin_alloca_with_align_and_max.
42 2017-10-17  David Malcolm  <dmalcolm@redhat.com>
44         * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
45         rather than NULL to format_warning_va.
46         (check_format_types): Likewise when calling format_type_warning.
47         Remove code to extract source_ranges and source_range * in favor
48         of just a location_t.
49         (format_type_warning): Convert source_range * param to a
50         location_t.
52 2017-10-13  Jakub Jelinek  <jakub@redhat.com>
54         * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
55         [LR]SHIFT_EXPR.
57 2017-10-12  David Malcolm  <dmalcolm@redhat.com>
59         * c-common.c (enum missing_token_insertion_kind): New enum.
60         (get_missing_token_insertion_kind): New function.
61         (maybe_suggest_missing_token_insertion): New function.
62         * c-common.h (maybe_suggest_missing_token_insertion): New decl.
64 2017-10-11  Nathan Sidwell  <nathan@acm.org>
66         * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
67         (c_common_handle_option): Update incpath_kind names.
69 2017-10-11  Martin Liska  <mliska@suse.cz>
71         PR sanitizer/82490
72         * c-attribs.c (handle_no_sanitize_attribute): Report directly
73         Wattributes warning.
75 2017-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
77         * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
78         operating on trees as wide_ints.
79         * c-common.c (pointer_int_sum): Likewise.
80         * c-pretty-print.c (pp_c_integer_constant): Likewise.
81         * c-warn.c (match_case_to_enum_1): Likewise.
82         (c_do_switch_warnings): Likewise.
83         (maybe_warn_shift_overflow): Likewise.
85 2017-10-10  Jakub Jelinek  <jakub@redhat.com>
87         PR c/82437
88         * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
89         instead of wide_int::from.
91 2017-10-06  Jakub Jelinek  <jakub@redhat.com>
93         PR c/82437
94         * c-warn.c (warn_tautological_bitwise_comparison): Instead of
95         using to_widest use wide_int with the larger of the two precisions.
97 2017-10-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
99         * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
100         functions.
102 2017-10-02  Richard Sandiford  <richard.sandiford@linaro.org>
104         * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
105         when combining the original unconverted comparison operands.
107 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
109         * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
110         attribute.
112 2017-09-29  Eric Botcazou  <ebotcazou@adacore.com>
114         * c-ada-spec.c (to_ada_name): Add index parameter.
115         (pp_ada_tree_identifier): Likewise.
116         (dump_ada_macros): Adjust call to to_ada_name.
117         (struct overloaded_name_hash): New type.
118         (struct overloaded_name_hasher): Likewise.
119         (overloaded_names): New hash table.
120         (compute_overloading_index): New function.
121         (dump_ada_decl_name): Call it and pass the result to
122         pp_ada_tree_identifier.
123         (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
124         (dump_ada_function_declaration): Likewise.
125         (dump_generic_ada_node): Likewise.
126         (print_constructor): Likewise.
127         (print_destructor): Likewise.
128         (dump_ada_specs): Delete overloaded_names table.
130 2017-09-29  Eric Botcazou  <ebotcazou@adacore.com>
132         * c-ada-spec.c (max_ada_macros): Move around.
133         (store_ada_macro_index): Likewise.
134         (source_file): Rename into...
135         (macro_source_file): ...this.
136         (count_ada_macro): Move around.
137         (store_ada_macro): Likewise.
138         (compare_macro): Likewise.
139         (print_ada_macros): Merge in...
140         (dump_ada_macros): ...this.
141         (source_file_base): Rename into...
142         (current_source_file): ...this.
143         (print_comment): Move around.
144         (dump_ada_nodes): Call dump_ada_declaration directly.
145         (struct with): Change type of limited field to bool.
146         (append_withs): Change type of limited_access parameter to bool.
147         (pp_ada_tree_identifie): Likewise.
148         (dump_ada_decl_nam): Likewise.
149         (dump_generic_ada_node): Likewise.  Do not print the return type.
150         (to_ada_name): Change type of space_found parameter to bool.
151         (dump_ada_function_declaration): Return void and change type of
152         parameters to bool.  Also print the return type for a function.
153         (print_ada_methods): Rename into...
154         (dump_ada_methods): ...this.
155         (print_ada_declaration): Rename into ...
156         (dump_ada_declaration): ...this.  Do not print the return type.
157         (print_ada_struct_decl): Rename into...
158         (dump_ada_struct_decl): ...this.
160 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
162         * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
163         rather than DECL_INITIAL.
164         (common_handle_aligned_attribute): Likewise.
166 2017-09-20  Alexandre Oliva <aoliva@redhat.com>
168         * c.opt (gen-decls): Add RejectNegative.
170 2017-09-15  Andrew Sutton  <andrew.n.sutton@gmail.com>
171             Jakub Jelinek  <jakub@redhat.com>
173         Add support for -std=c++2a.
174         * c-common.h (cxx_dialect): Add cxx2a as a dialect.
175         * opt.c: Add options for -std=c++2a and -std=gnu++2a.
176         * c-opts.c (set_std_cxx2a): New.
177         (c_common_handle_option): Set options when -std=c++2a is enabled.
178         (c_common_post_options): Adjust comments.
179         (set_std_cxx14, set_std_cxx17): Likewise.
181 2017-09-15  Eric Botcazou  <ebotcazou@adacore.com>
183         * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
184         message for non-uniform endianness and issue a warning in C++.
186 2017-09-15  Jakub Jelinek  <jakub@redhat.com>
188         * c.opt (Wc++1z-compat): Change from option to undocumented alias.
189         (Wc++17-compat): Change from undocumented alias to option.
190         (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
191         change C++1z to C++17 in description.
192         (std=c++1z, std=gnu++1z): Change from option to undocumented
193         deprecated alias.
194         (std=c++17, std=gnu++17): Change from undocumented alias to option.
195         Adjust description.
196         * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
197         * c-opts.c (set_std_cxx1z): Rename to ...
198         (set_std_cxx17): ... this.
199         (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
200         and OPT_std_gnu__1z to OPT_std_gnu__17.  Adjust set_std_cxx1z
201         caller.  
202         (c_common_post_options): Use cxx17 instead of cxx1z.  Adjust
203         comments.
205 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
207         * c-attribs.c (common_handle_aligned_attribute): Don't warn
208         function alignment if warn_if_not_aligned_p is true.
210 2017-09-12  Nathan Sidwell  <nathan@acm.org>
212         * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
213         resort_sorted_fields): Move to c/c-decl.c.
214         * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
215         (struct sorted_fields_type): Move to c/c-lang.h.
217 2017-09-09  Jonathan Wakely  <jwakely@redhat.com>
219         PR c++/81852
220         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
222 2017-09-04  Marek Polacek  <polacek@redhat.com>
224         PR c/81783
225         * c-warn.c (warn_tautological_bitwise_comparison): New function.
226         (warn_tautological_cmp): Call it.
228 2017-09-01  Boris Kolpackov <boris@codesynthesis.com>
230         * c-opts.c (c_common_finish): Write dependency information even if
231         there are errors.
233 2017-09-01  Jakub Jelinek  <jakub@redhat.com>
235         PR c/81887
236         * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
237         (omp_pragmas_simd): ... here.
238         * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
239         create new clauses list containing just simd clause.
241 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
242             Alan Hayward  <alan.hayward@arm.com>
243             David Sherwood  <david.sherwood@arm.com>
245         * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
246         into scalar_mode_supported_p call.
247         (handle_mode_attribute): Update call to scalar_mode_supported_p.
249 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
250             Alan Hayward  <alan.hayward@arm.com>
251             David Sherwood  <david.sherwood@arm.com>
253         * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
254         for the mode iterator.
256 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
257             Alan Hayward  <alan.hayward@arm.com>
258             David Sherwood  <david.sherwood@arm.com>
260         * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
261         * c-common.c (c_build_vec_perm_expr): Likewise.
263 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
264             Alan Hayward  <alan.hayward@arm.com>
265             David Sherwood  <david.sherwood@arm.com>
267         * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
269 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
270             Alan Hayward  <alan.hayward@arm.com>
271             David Sherwood  <david.sherwood@arm.com>
273         * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
274         before calling targetm.addr_space.valid_pointer_mode.
276 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
277             Alan Hayward  <alan.hayward@arm.com>
278             David Sherwood  <david.sherwood@arm.com>
280         * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
282 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
283             Alan Hayward  <alan.hayward@arm.com>
284             David Sherwood  <david.sherwood@arm.com>
286         * c-common.c (c_common_fixed_point_type_for_size): Use new mode
287         iterators.
288         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
290 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
291             Alan Hayward  <alan.hayward@arm.com>
292             David Sherwood  <david.sherwood@arm.com>
294         * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
295         case statements.
297 2017-08-29  Martin Liska  <mliska@suse.cz>
299         PR other/39851
300         * c-common.c (parse_optimize_options): Add argument to function
301         call.
302         * c-pragma.c (handle_pragma_diagnostic): Likewise.
304 2017-08-24  David Malcolm  <dmalcolm@redhat.com>
306         * c-lex.c (interpret_float): Use token location
307         when building an EXCESS_PRECISION_EXPR.
309 2017-08-21  David Malcolm  <dmalcolm@redhat.com>
311         * c-common.c (check_function_arguments): Add "arglogs" param; pass
312         it to check_function_format.
313         * c-common.h (check_function_arguments): Add vec<location_t> *
314         param.
315         (check_function_format): Likewise.
316         * c-format.c (struct format_check_context): Add field "arglocs".
317         (check_function_format): Add param "arglocs"; pass it to
318         check_format_info.
319         (check_format_info):  Add param "arglocs"; use it to initialize
320         new field of format_ctx.
321         (check_format_arg): Pass format_ctx->arglocs to new param of
322         check_format_info_main.
323         (class argument_parser): New field "arglocs".
324         (argument_parser::argument_parser): Add "arglocs_" param and use
325         it to initialize new field.
326         (argument_parser::check_argument_type): Pass new arglocs field to
327         check_format_types.
328         (check_format_info_main): Add param "arglocs", and use it when
329         constructing arg_parser.
330         (check_format_types): Add param "arglocs"; use it if non-NULL when
331         !EXPR_HAS_LOCATION (cur_param) to get at location information.
333 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
335         PR c/53037
336         * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
337         (c_common_attribute_table): Add warn_if_not_aligned.
338         (handle_aligned_attribute): Renamed to ...
339         (common_handle_aligned_attribute): Remove argument, name, and add
340         argument, warn_if_not_aligned.  Handle warn_if_not_aligned.
341         (handle_aligned_attribute): New.
342         * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
344 2017-08-14  Martin Sebor  <msebor@redhat.com>
346         PR c/81117
347         * c-attribs.c (c_common_attribute_table): Add nonstring entry.
348         (handle_nonstring_attribute): New function.
350 2017-08-14  Martin Sebor  <msebor@redhat.com>
352         PR c/81117
353         * c-format.h (T89_G): New macro.
354         * c-format.c (local_gcall_ptr_node): New variable.
355         (init_dynamic_diag_info): Initialize it.
357 2017-08-11  Martin Liska  <mliska@suse.cz>
359         * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
360         TARGET_SUPPORTS_ALIASES.
362 2017-08-10  David Malcolm  <dmalcolm@redhat.com>
364         * c-common.c (c_parse_error): Add rich_location * param, using it
365         rather implicitly using input_location.
366         * c-common.h (c_parse_error): Add rich_location * param.
368 2017-08-09  Marek Polacek  <polacek@redhat.com>
370         * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
371         (c_common_truthvalue_conversion): Likewise.
372         * c-omp.c (c_finish_omp_atomic): Likewise.
373         * c-common.h (build_binary_op): Update declaration.
375 2017-08-08  Martin Liska  <mliska@suse.cz>
377         * c-ada-spec.c: Include header files.
378         * c-ubsan.c: Likewise.
379         * c-warn.c: Likewise.
381 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
383         PR c/69389
384         * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
386 2017-08-07  Eric Botcazou  <ebotcazou@adacore.com>
388         * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
389         (print_ada_methods): Likewise.
390         (print_ada_declaration): Likewise.
392 2017-08-07  Martin Liska  <mliska@suse.cz>
394         * array-notation-common.c: Add new includes.
395         * c-format.c( handle_format_attribute): Canonicalize a format
396         function name.
397         * c-lex.c (c_common_has_attribute): Canonicalize name of an
398         attribute.
399         * c-pretty-print.c: Add new include.
401 2017-08-05  Eric Botcazou  <ebotcazou@adacore.com>
403         * c-ada-spec.c (has_static_fields): Look only into variables.
404         (print_constructor): Add TYPE parameter and use it for the name.
405         (print_destructor): Likewise.
406         (print_ada_declaration): Adjust to new constructor/destructor names.
407         Adjust calls to print_constructor and print_destructor.
408         (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
409         Look only into variables in the final loop.
411 2017-08-01  Eric Botcazou  <ebotcazou@adacore.com>
413         * c-ada-spec.c (has_static_fields): Look only into fields.
414         (dump_generic_ada_node): Small tweak.
415         (dump_nested_types): Look only into fields.
416         (print_ada_declaration): Look only into methods.  Small tweak.
417         (print_ada_struct_decl): Look only into fields.  Use DECL_VIRTUAL_P.
419 2017-08-01  Eric Botcazou  <ebotcazou@adacore.com>
421         * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
422         (dump_ada_function_declaration): Likewise.
423         (dump_generic_ada_node): Likewise.
424         (print_ada_declaration): Add support for const-qualified variables.
426 2017-07-31  Martin Liska  <mliska@suse.cz>
428         PR sanitize/81530
429         * c-ubsan.c (ubsan_maybe_instrument_array_ref):
430         Guard condition with flag_sanitize_p also with current_function_decl
431         non-null equality.
432         (ubsan_maybe_instrument_reference_or_call): Likewise.
434 2017-07-30  Uros Bizjak  <ubizjak@gmail.com>
436         * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
438 2017-07-29  Eric Botcazou  <ebotcazou@adacore.com>
440         * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
441         for enumeral types.
442         (print_ada_declaration): Add missing guard for record types.
444 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
446         PR c/45784
447         * c-omp.c (c_finish_omp_for): If the condition is wrapped in
448         rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
449         new COMPOUND_EXPRs around the rhs of the comparison.
451 2017-07-27  Marek Polacek  <polacek@redhat.com>
453         PR c/81417
454         * c-warn.c (warn_for_sign_compare): Tweak the warning message.  Print
455         the types.
457 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
459         * c-attribs.c (c_common_attribute_table): Add noipa attribute.
460         (handle_noipa_attribute): New function.
462 2017-07-07  Torsten Duwe  <duwe@suse.de>
464         * c-attribs.c (c_common_attribute_table): Add entry for
465         "patchable_function_entry".
467 2017-07-20  Nathan Sidwell  <nathan@acm.org>
469         Remove TYPE_METHODS.
470         * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
471         dump_ada_template, print_ada_methods,
472         print_ada_declaration): Member fns are on TYPE_FIELDS.
474 2017-07-18  Nathan Sidwell  <nathan@acm.org>
476         * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
478 2017-07-14  David Malcolm  <dmalcolm@redhat.com>
480         * c-common.c (try_to_locate_new_include_insertion_point): New
481         function.
482         (per_file_includes_t): New typedef.
483         (added_includes_t): New typedef.
484         (added_includes): New variable.
485         (maybe_add_include_fixit): New function.
486         * c-common.h (maybe_add_include_fixit): New decl.
488 2017-07-10  Martin Sebor  <msebor@redhat.com>
490         PR other/81345
491         * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
493 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
495         * c-common.c (selftest::c_family_tests): New.
496         * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
497         (selftest::c_family_tests): New decl.
499 2017-07-04  Marek Polacek  <polacek@redhat.com>
501         PR c/81231
502         * c-common.c (sync_resolve_size): Give error for pointers to incomplete
503         types.
505 2017-07-04  Marek Polacek  <polacek@redhat.com>
507         * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
509 2017-06-28  Martin Liska  <mliska@suse.cz>
511         PR ipa/81128
512         * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
513         to a function declaration.
515 2017-06-28  Martin Liska  <mliska@suse.cz>
517         PR driver/79659
518         * c.opt: Add IntegerRange to various options.
520 2017-06-26  Marek Polacek  <polacek@redhat.com>
522         PR c/80116
523         * c-common.h (warn_for_multistatement_macros): Declare.
524         * c-warn.c: Include "c-family/c-indentation.h".
525         (warn_for_multistatement_macros): New function.
526         * c.opt (Wmultistatement-macros): New option.
527         * c-indentation.c (guard_tinfo_to_string): No longer static.
528         Change the parameter type to "enum rid".  Handle RID_SWITCH.
529         * c-indentation.h (guard_tinfo_to_string): Declare.
531 2017-06-23  Marc Glisse  <marc.glisse@inria.fr>
533         * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
535 2017-06-15  Martin Sebor  <msebor@redhat.com>
537         PR c++/80560
538         * c.opt (-Wclass-memaccess): New option.
540 2017-06-14  Boris Kolpackov  <boris@codesynthesis.com>
542         * c-opts.c (c_common_finish): Handle '-' special value to -MF.
544 2017-06-13  Marek Polacek  <polacek@redhat.com>
546         PR objc/80949
547         * c-warn.c (do_warn_duplicated_branches): Return if any of the
548         branches is null.
550 2017-06-13  Martin Liska  <mliska@suse.cz>
552         PR sanitize/78204
553         * c-attribs.c (add_no_sanitize_value): New function.
554         (handle_no_sanitize_attribute): Likewise.
555         (handle_no_sanitize_address_attribute): Use the function.
556         (handle_no_sanitize_thread_attribute): New function.
557         (handle_no_address_safety_analysis_attribute): Use
558         add_no_sanitize_value.
559         (handle_no_sanitize_undefined_attribute): Likewise.
560         * c-common.h: Declare new functions.
561         * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
562         (ubsan_instrument_shift): Likewise.
563         (ubsan_instrument_bounds): Likewise.
564         (ubsan_maybe_instrument_array_ref): Likewise.
565         (ubsan_maybe_instrument_reference_or_call): Likewise.
567 2017-06-11  Jason Merrill  <jason@redhat.com>
569         * c-ada-spec.c, c-pragma.c: Use id_equal.
571 2017-06-04  Marek Polacek  <polacek@redhat.com>
573         PR c/80919
574         * c-format.c (matching_type_p): Return false if any of the types
575         requires structural equality.
577 2017-06-02  Martin Sebor  <msebor@redhat.com>
579         PR c/80892
580         * c-warn.c (conversion_warning): Use -Wconversion for integer
581         conversion and -Wfloat-conversion for floating one.
583 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
585         * c.opt (Wsizeof-pointer-div): New warning option.
587 2017-06-01  Volker Reichelt  <v.reichelt@netcologne.de>
589         * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
590         (Wcatch-value=1): Enable by -Wall.
592 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
594         * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
595         format_chars.
596         * c.opt (fdiagnostics-show-template-tree): New option.
597         (felide-type): New option.
599 2017-05-25  Volker Reichelt  <v.reichelt@netcologne.de>
601         * c.opt (Wcatch-value=): New C++ warning flag.
603 2017-05-24  Nathan Sidwell  <nathan@acm.org>
605         * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
606         const casts to avoid warning.
608 2017-05-24  Martin Sebor  <msebor@redhat.com>
610         PR c/80731
611         * c-common.h (unsafe_conversion_p): Add a function argument.
612         * c-common.c (unsafe_conversion_p): Same.
613         Add type names and values to diagnostics.
614         (scalar_to_vector): Adjust.
615         * c-warn.c (constant_expression_error): Add a function argument.
616         Add type names and values to diagnostics.
617         (conversion_warning): Add a function argument.
618         Add type names and values to diagnostics.
619         (warnings_for_convert_and_check): Same.
621 2017-05-19  Jason Merrill  <jason@redhat.com>
623         * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
624         enumerators.
626 2017-05-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
628         * c-format.c (locus): Move out of function scope,
629         add GTY attribute.
631 2017-05-19  Nathan Sidwell  <nathan@acm.org>
633         * c-opts.c (class_dump_file, class_dump_flags): Delete.
634         (c_common_parse_file): Remove class dump handling.
635         (get_dump_info): Likewise.
637 2017-05-19  Richard Biener  <rguenther@suse.de>
639         PR c++/80593
640         * c-warn.c (strict_aliasing_warning): Do not warn for accesses
641         to alias-set zero memory.
643 2017-05-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
645         * c-format.c (local_tree_type_node): Add GTY attribute.
647 2017-05-18  Marek Polacek  <polacek@redhat.com>
649         * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
650         (c_common_fixed_point_type_for_size): Likewise.
651         (c_common_type_for_mode): Likewise.
652         (shorten_compare): Likewise.
653         (c_promoting_integer_type_p): Use false/true instead of 0/1.
654         * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
656 2017-05-18  Marek Polacek  <polacek@redhat.com>
658         * c-common.c (self_promoting_args_p): Change the return type to bool.
659         Use false/true instead of 0/1.
660         * c-common.h (self_promoting_args_p): Update.
662 2017-05-17  Marek Polacek  <polacek@redhat.com>
664         * c-common.c: Use NULL_TREE instead of 0 where appropriate.
665         * c-warn.c: Likewise.
667 2017-05-17  Ville Voutilainen  <ville.voutilainen@gmail.com>
669         Implement new C++ intrinsics __is_assignable and __is_constructible.
670         * c-common.c (__is_assignable, __is_constructible): New.
671         * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
673 2017-05-17  Martin Liska  <mliska@suse.cz>
675         * c-common.h: Introduce dump_flags_t type and
676         use it instead of int type.
677         * c-gimplify.c (c_genericize): Likewise.
678         * c-opts.c: Likewise.
680 2017-05-17  Marek Polacek  <polacek@redhat.com>
682         * c-common.c (c_save_expr): Remove.
683         (c_common_truthvalue_conversion): Remove a call to c_save_expr.
684         * c-common.h (c_save_expr): Remove declaration.
686 2017-05-09  Volker Reichelt  <v.reichelt@netcologne.de>
688         PR c/35441
689         * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
690         MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
691         (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
692         (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
693         RDIV_EXPR.
694         (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
696 2017-05-09  Marek Polacek  <polacek@redhat.com>
698         PR c/80525
699         * c-warn.c (unwrap_c_maybe_const): New.
700         (warn_logical_operator): Call it.
702 2017-05-09  Nathan Sidwell  <nathan@acm.org>
704         * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
705         * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
707 2017-05-08  Martin Sebor  <msebor@redhat.com>
709         PR translation/80280
710         * c-format.h (struct format_flag_spec): Add new member.
711         (T89_T): New macro.
712         * c-format.c (local_tree_type_node): New global.
713         (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
714         (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
715         (strfmon_flag_specs): Likewise.
716         (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
717         with distinct quoting properties.
718         (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
719         (flag_chars_t::validate): Add argument and handle bad quoting.
720         (check_format_info_main): Handle quoting problems.
721         (init_dynamic_diag_info): Simplify.
723 2017-05-08  Jason Merrill  <jason@redhat.com>
725         * c-opts.c (c_common_post_options): Update defaults for
726         flag_abi_version and flag_abi_compat_version.
728 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
730         * c-common.c (c_cpp_error): Replace report_diagnostic
731         with diagnostic_report_diagnostic.
733 2017-05-04  Martin Sebor  <msebor@redhat.com>
735         PR translation/80280
736         * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
737         (handle_weakref_attribute): Same.
739 2017-05-03  Nathan Sidwell  <nathan@acm.org>
741         Canonicalize canonical type hashing
742         * c-common.c (complete_array_type): Use type_hash_canon.
744 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
746         PR c++/80038
747         * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
748         prototype.
749         (cilk_install_body_pedigree_operations): Likewise.
750         * cilk.c (cilk_set_spawn_marker): Mark functions that should be
751         detatched.
752         (cilk_gimplify_call_params_in_spawned_fn): Remove.
753         (cilk_install_body_pedigree_operations): Likewise.
754         (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
755         unwrapping.
757 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
759         PR c++/80534
760         * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
761         flag on non-aggregate element types.
763 2017-04-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
765         * c-common.c (c_type_hasher, type_hash_table): Remove.
766         (c_common_get_alias_set): Remove unreachable code.
767         * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
769 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
771         * c.opt (Wextra-semi): New C++ warning flag.
773 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
775         PR middle-end/80423
776         * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
778 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
780         PR middle-end/79788
781         PR middle-end/80375
782         * c-common.c (c_common_type_for_mode): Don't handle
783         widest_*_literal_type_node here.
784         c_common_signed_or_unsigned_type): Likewise.
785         (c_common_nodes_and_builtins): Set widest_*_literal_type_node
786         to *intTI_type_node or *intDI_type_node depending on whether
787         TImode is supported by the target or not.
789 2017-04-10  Martin Liska  <mliska@suse.cz>
791         PR sanitizer/80350
792         * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
793         doing an UBSAN check.
795 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
797         * c-warn.c (do_warn_double_promotion): Fix typo in comment.
799 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
801         PR c++/79572
802         * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
803         tree *.
804         * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise.  Handle
805         not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
806         REFERENCE_TYPE.
808 2017-03-31  David Malcolm  <dmalcolm@redhat.com>
810         PR documentation/78732
811         * c.opt (Wendif-labels): Fix description to refer to
812         #else rather than #elif.
814 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
816         PR libstdc++/80251
817         * c-common.h (enum rid): Add RID_IS_AGGREGATE.
818         * c-common.c (c_common_reswords): Add __is_aggregate trait.
820 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
822         PR middle-end/80162
823         * c-common.c (c_common_mark_addressable_vec): Don't set
824         TREE_ADDRESSABLE on DECL_HARD_REGISTER.
826 2017-03-21  Martin Sebor  <msebor@redhat.com>
828         PR c++/79548
829         * c-common.c (set_underlying_type): Mark type used only when
830         original del is declared unused.
832 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
834         PR translation/79848
835         * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
836         "%qs".
838 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
840         PR c/79921
841         * c-indentation.c (warn_for_misleading_indentation): Remove parens
842         from inform's message, so that xgettext can locate it.
844 2017-03-09  Marek Polacek  <polacek@redhat.com>
846         PR c++/79962
847         PR c++/79984
848         * c-attribs.c (handle_nonnull_attribute): Save the result of default
849         conversion to the attribute list.
851 2017-03-09  Martin Liska  <mliska@suse.cz>
853         * c-ada-spec.c (macro_length): Increment value instead of a pointer.
855 2017-03-03  Jason Merrill  <jason@redhat.com>
857         * c.opt (Wnoexcept-type): New.
859 2017-03-02  Richard Biener  <rguenther@suse.de>
861         PR c/79756
862         * c-common.c (c_common_mark_addressable_vec): Look through
863         C_MAYBE_CONST_EXPR.
865 2017-02-28  Martin Liska  <mliska@suse.cz>
867         * c.opt: Replace space with tabular for options of <number>
868         type.
870 2017-02-28  Martin Liska  <mliska@suse.cz>
872         * c.opt: Fix --help=option -Q for options which are of
873         an enum type.
875 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
877         PR c++/79588
878         * c-common.c (check_function_restrict): New function.
879         (check_function_arguments): Add FNDECL argument.  Call
880         check_function_restrict if -Wrestrict.
881         * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
882         and NARGS.  Use auto_vec for ARG_POSITIONS, simplify.
883         * c-common.h (check_function_arguments): Add FNDECL argument.
884         (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
886 2017-02-24  Eric Botcazou  <ebotcazou@adacore.com>
888         * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
889         treatment of parameters with pointer-to-tagged type and tidy up.
890         (print_ada_methods): Remove the special treatment of C++ static member
891         functions.
893 2017-02-22  Martin Liska  <mliska@suse.cz>
895         * c.opt: Replace inequality signs with square brackets
896         for -Wnornalized.
898 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
900         PR c++/79641
901         * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
902         preserve quals.
904 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
906         * c-cppbuiltin.c (builtin_define_float_constants): Define
907         __DECIMAL_DIG__ to the value for long double.
909 2017-02-15  Marek Polacek  <polacek@redhat.com>
911         PR c/79515
912         * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
913         conversion has occured.
915 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
917         * c-common.c (c_common_reswords): Add "__RTL".
918         * c-common.h (enum rid): Add RID_RTL.
920 2017-01-20  Marek Polacek  <polacek@redhat.com>
922         PR c/64279
923         * c-common.h (do_warn_duplicated_branches_r): Declare.
924         * c-gimplify.c (c_genericize): Walk the function tree calling
925         do_warn_duplicated_branches_r.
926         * c-warn.c (expr_from_macro_expansion_r): New.
927         (do_warn_duplicated_branches): New.
928         (do_warn_duplicated_branches_r): New.
929         * c.opt (Wduplicated-branches): New option.
931 2017-01-17  David Malcolm  <dmalcolm@redhat.com>
933         PR c++/71497
934         * c-indentation.c (warn_for_misleading_indentation): Use the past
935         subjunctive in the note.
937 2017-01-17  Aldy Hernandez  <aldyh@redhat.com>
939         PR c/79116
940         * array-notation-common.c (cilkplus_extract_an_triplets): Convert
941         start type to integer_type.
943 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
945         PR driver/49726
946         * c.opt (gen-decls): Add Driver flag.
948 2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
950         Revert:
951         2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
953         PR c++/71737
954         * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
956 2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
958         PR c++/71737
959         * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
961 2017-01-12  Martin Sebor  <msebor@redhat.com>
963         (-Wformat-overflow): ...to this.
965 2017-01-11  Martin Sebor  <msebor@redhat.com>
967         PR c/78768
968         * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
969         Also enable for LTO.
971 2017-01-10  Jason Merrill  <jason@redhat.com>
973         Implement P0195R2, C++17 variadic using.
974         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
976 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
978         PR translation/79019
979         PR translation/79020
980         * c.opt (Wnormalized=): Fix typo in description.
982 2017-01-08  Martin Sebor  <msebor@redhat.com>
984         PR middle-end/77708
985         * c.opt (-Wformat-truncation): New option.
987 2017-01-06  Alexandre Oliva <aoliva@redhat.com>
989         * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
990         value to unsigned short to fit in 4 hex digits without
991         warnings.
993 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
995         * c.opt (fsso-struct): Add 'native' value.
997 2017-01-05  Martin Liska  <mliska@suse.cz>
999         PR pch/78970
1000         * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
1001         header.
1003 2017-01-04  Marek Polacek  <polacek@redhat.com>
1005         PR c++/64767
1006         * c.opt (Wpointer-compare): New option.
1008 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
1010         PR driver/78957
1011         * c.opt (fsso-struct=): Add RejectNegative.
1013 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
1015         Update copyright years.
1017 2016-12-29  Martin Liska  <mliska@suse.cz>
1019         PR c/78933
1020         * c.opt (strong-eval-order): Add RejectNegative keyword.
1022 2016-12-22  Jason Merrill  <jason@redhat.com>
1024         Implement P0522R0, matching of template template arguments.
1025         * c-cppbuiltin.c (c_cpp_builtins): Define
1026         __cpp_template_template_args.
1028 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
1030         PR bootstrap/78817
1031         * c-common.c (struct nonnull_arg_ctx): New type.
1032         (check_function_nonnull): Return bool instead of void.  Use
1033         nonnull_arg_ctx as context rather than just location_t.
1034         (check_nonnull_arg): Adjust for the new context type, set
1035         warned_p to true if a warning has been diagnosed.
1036         (check_function_arguments): Return bool instead of void.
1037         * c-common.h (check_function_arguments): Adjust prototype.
1039 2016-12-21  Jason Merrill  <jason@redhat.com>
1041         * c.opt (-fnew-ttp-matching): New flag.
1042         * c-opts.c (c_common_post_options): Default on if -std=c++1z.
1044 2016-12-14  Martin Jambor  <mjambor@suse.cz>
1046         * c-omp.c: Include omp-general.h instead of omp-low.h.
1047         (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
1048         name.
1050 2016-12-14  Martin Sebor  <msebor@redhat.com>
1052         PR c/17308
1053         * c-common.c (check_nonnull_arg): Disable when optimization
1054         is enabled.
1056 2016-12-12  Marek Polacek  <polacek@redhat.com>
1058         PR c++/78647
1059         * c-common.c (attribute_fallthrough_p): Return false for
1060         error_mark_node.
1062 2016-12-08  Martin Sebor  <msebor@redhat.com>
1064         PR c/78284
1065         * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
1067 2016-12-08  Martin Sebor  <msebor@redhat.com>
1069         PR c/78165
1070         * c-pretty-print (pp_c_integer_constant): Avoid formatting type
1071         suffix.
1073 2016-12-07  Martin Sebor  <msebor@redhat.com>
1075         PR c/53562
1076         PR middle-end/77784
1077         PR middle-end/78149
1078         PR middle-end/78138
1079         * c.opt (-Wstringop-overflow): New option.
1081 2016-12-02  Maxim Ostapenko  <m.ostapenko@samsung.com>
1083         * c-attribs.c (asan odr indicator): New attribute.
1084         (handle_asan_odr_indicator_attribute): New function.
1086 2016-11-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1088         * c-common.c (c_common_nodes_and_builtins): Remove initialization of
1089         ptrdiff_type_node;
1091 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
1093         * c-common.c (excess_precision_mode_join): New.
1094         (c_ts18661_flt_eval_method): New.
1095         (c_c11_flt_eval_method): Likewise.
1096         (c_flt_eval_method): Likewise.
1097         * c-common.h (excess_precision_mode_join): New.
1098         (c_flt_eval_method): Likewise.
1099         * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
1100         (cpp_iec_559_value): Call it.
1101         (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
1102         call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
1103         __FLT_EVAL_METHOD_TS_18661_3__.
1105 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
1107         * c-opts.c (c_common_post_options): Add logic to handle the default
1108         case for -fpermitted-flt-eval-methods.
1110 2016-11-23  Paolo Bonzini  <bonzini@gnu.org>
1112         * c.opt (Wexpansion-to-defined): New.
1114 2016-11-23  Jakub Jelinek  <jakub@redhat.com>
1116         PR target/78451
1117         * c-pragma.c (handle_pragma_target): Don't replace
1118         current_target_pragma, but chainon the new args to the current one.
1120 2016-11-22  Nathan Sidwell  <nathan@acm.org>
1122         * array-notation-common.c (cilkplus_extract_an_trplets): Fix
1123         indentation and formatting.
1125 2016-11-21  Martin Sebor  <msebor@redhat.com>
1127         * c.opt (-fprintf-return-value): Enable by default.
1129 2016-11-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1131         PR c++/71973
1132         * c.opt (-Wbuiltin-declaration-mismatch): New warning.
1133         * c-common.c (c_common_nodes_and_builtins): Initialize
1134         const_tm_ptr_type_node.
1136 2016-11-16  Marek Polacek  <polacek@redhat.com>
1138         PR c/78285
1139         * c-common.c (c_add_case_label): Turn error_at calls into inform.
1141 2016-11-14  Jakub Jelinek  <jakub@redhat.com>
1143         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
1145 2016-11-14  Prasad Ghangal  <prasad.ghangal@gmail.com>
1146             Richard Biener  <rguenther@suse.de>
1148         * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
1149         * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
1150         * c.opt (fgimple): New option.
1152 2016-11-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1154         PR c/35503
1155         * c-common.h (warn_for_restrict): Declare.
1156         * c-warn.c: Include gcc-rich-location.h.
1157         (warn_for_restrict): New function.
1158         * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
1159         (gcc_cdiag_char_table): Likewise.
1160         (gcc_cxxdiag_char_table): Likewise.
1161         * c.opt (Wrestrict): New option.
1163 2016-11-13  Eric Botcazou  <ebotcazou@adacore.com>
1165         * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
1166         for nested types only if the type is a record or union and dump SLOC.
1168 2016-11-09  Jason Merrill  <jason@redhat.com>
1170         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
1172 2016-11-09  Jakub Jelinek  <jakub@redhat.com>
1174         * c-ubsan.c (ubsan_instrument_shift): Handle split
1175         -fsanitize=shift-base and -fsanitize=shift-exponent.
1177 2016-11-07  Jason Merrill  <jason@redhat.com>
1179         * c.opt (Wc++1z-compat): New.
1180         * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
1182 2016-11-07  Martin Liska  <mliska@suse.cz>
1184         * c-warn.c (warn_for_unused_label): Save all labels used
1185         in goto or in &label.
1187 2016-11-03  Jason Merrill  <jason@redhat.com>
1189         * c-cppbuiltin.c (c_cpp_builtins): Correct
1190         __cpp_inheriting_constructors.
1192 2016-11-01  Jason Merrill  <jason@redhat.com>
1194         * c-cppbuiltin.c (c_cpp_builtins): Update
1195         __cpp_inheriting_constructors.
1197         * c.opt (-fnew-inheriting-ctors): New.
1198         * c-opts.c: Default to on for ABI 11+.
1200 2016-10-31  Jakub Jelinek  <jakub@redhat.com>
1202         PR c++/77948
1203         * c.opt (fext-numeric-literals): Add Var and Init.
1204         * c-opts.c (c_common_handle_option): Don't clear
1205         cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
1206         (c_common_post_options): Clear it here if not set
1207         explicitly.
1209 2016-10-28  Aldy Hernandez  <aldyh@redhat.com>
1211         PR debug/77773
1212         * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
1213         if NULL.
1215 2016-10-25  Jakub Jelinek  <jakub@redhat.com>
1217         * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
1218         * c-common.c (c_common_reswords): Add __builtin_launder.
1220 2016-10-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1222         * c-common.c (c_common_truthvalue_conversion): Warn for
1223         multiplications in boolean context.  Fix the quoting of '<<' and '<'
1224         in the shift warning.
1226 2016-10-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1228         * c-common.c (c_common_truthvalue_conversion): Fix the comment.
1230 2016-10-20  Jason Merrill  <jason@redhat.com>
1232         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
1234 2016-10-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1236         * c-common.c (c_common_truthvalue_conversion): Warn only for signed
1237         integer shift ops in boolean context.
1239 2016-10-18  Aldy Hernandez  <aldyh@redhat.com>
1241         * c.opt (Walloca): New.
1242         (Walloca-larger-than=): New.
1243         (Wvla-larger-than=): New.
1245 2016-10-17  Marek Polacek  <polacek@redhat.com>
1247         * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
1248         Return immediately when finding a match.
1249         (warn_tautological_cmp): Remove a boolean variable that is no longer
1250         needed.
1252 2016-10-17  Marek Polacek  <polacek@redhat.com>
1254         * c-attribs.c: New file.
1255         * c-common.c: Move attributes handling to c-attribs.c.
1256         (get_nonnull_operand): No longer static.
1257         * c-common.h: Move the declarations from c-attribs.c to its own section.
1259 2016-10-14  Jason Merrill  <jason@redhat.com>
1261         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
1262         and __cpp_deduction_guides.
1264 2016-10-13  Jason Merrill  <jason@redhat.com>
1266         * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
1268 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1270         * c-cppbuiltin.c: Include memmodel.h.
1271         * c-opts.c: Likewise.
1272         * c-pragma.c: Likewise.
1273         * c-warn.c: Likewise.
1275 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
1277         * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
1278         (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
1279         * c-opts.c (sanitize_cpp_opts): Initialize
1280         cpp_opts->cpp_warn_implicit_fallthrough.
1282 2016-10-11  Marek Polacek  <polacek@redhat.com>
1284         * c-common.c (warning_candidate_p): Change the return type to bool
1285         and return true/false instead of 1/0.
1286         (vector_mode_valid_p): Likewise.
1288 2016-10-11  Marek Polacek  <polacek@redhat.com>
1290         * c-common.c (fold_for_warn): No longer static.
1291         (bool_promoted_to_int_p): Likewise.
1292         (c_common_get_narrower): Likewise.
1293         (constant_expression_warning): Move to c-warn.c.
1294         (constant_expression_error): Likewise.
1295         (overflow_warning): Likewise.
1296         (warn_logical_operator): Likewise.
1297         (find_array_ref_with_const_idx_r): Likewise.
1298         (warn_tautological_cmp): Likewise.
1299         (expr_has_boolean_operands_p): Likewise.
1300         (warn_logical_not_parentheses): Likewise.
1301         (warn_if_unused_value): Likewise.
1302         (strict_aliasing_warning): Likewise.
1303         (sizeof_pointer_memaccess_warning): Likewise.
1304         (check_main_parameter_types): Likewise.
1305         (conversion_warning): Likewise.
1306         (warnings_for_convert_and_check): Likewise.
1307         (match_case_to_enum_1): Likewise.
1308         (match_case_to_enum): Likewise.
1309         (c_do_switch_warnings): Likewise.
1310         (warn_for_omitted_condop): Likewise.
1311         (readonly_error): Likewise.
1312         (lvalue_error): Likewise.
1313         (invalid_indirection_error): Likewise.
1314         (warn_array_subscript_with_type_char): Likewise.
1315         (warn_about_parentheses): Likewise.
1316         (warn_for_unused_label): Likewise.
1317         (warn_for_div_by_zero): Likewise.
1318         (warn_for_memset): Likewise.
1319         (warn_for_sign_compare): Likewise.
1320         (do_warn_double_promotion): Likewise.
1321         (do_warn_unused_parameter): Likewise.
1322         (record_locally_defined_typedef): Likewise.
1323         (maybe_record_typedef_use): Likewise.
1324         (maybe_warn_unused_local_typedefs): Likewise.
1325         (maybe_warn_bool_compare): Likewise.
1326         (maybe_warn_shift_overflow): Likewise.
1327         (warn_duplicated_cond_add_or_warn): Likewise.
1328         (diagnose_mismatched_attributes): Likewise.
1329         * c-common.h: Move the declarations from c-warn.c to its own section.
1330         * c-warn.c: New file.
1332 2016-10-08  Jason Merrill  <jason@redhat.com>
1334         * c-common.c (c_common_truthvalue_conversion): Don't distribute
1335         into COND_EXPR in C++.
1337 2016-10-08  Jakub Jelinek  <jakub@redhat.com>
1339         * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
1340         token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
1341         CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
1343 2016-10-07  Jakub Jelinek  <jakub@redhat.com>
1345         Implement LWG2296 helper intrinsic
1346         * c-common.h (enum rid): Add RID_ADDRESSOF.
1347         * c-common.c (c_common_reswords): Add __builtin_addressof.
1349 2016-10-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1351         PR c++/77700
1352         * c-common.c (c_common_truthvalue_conversion): Warn also for
1353         suspicious enum values in boolean context.
1355 2016-10-06  Jakub Jelinek  <jakub@redhat.com>
1357         Implement P0258R2 - helper for C++17
1358         std::has_unique_object_representations trait
1359         * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
1360         * c-common.c (c_common_reswords): Add
1361         __has_unique_object_representations.
1363 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
1365         PR sanitizer/66343
1366         * c-ubsan.c (ubsan_instrument_return): Don't call
1367         initialize_sanitizer_builtins here.
1369 2016-10-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1371         * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
1372         conditional expression in boolean context when only one arm is
1373         non-boolean.
1375 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
1377         PR sanitizer/77823
1378         * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
1379         is not integral.
1381         * c-common.c (c_common_reswords): Update comment for C++11.
1383 2016-10-04  Jason Merrill  <jason@redhat.com>
1385         * c-common.c (make_tree_vector_from_ctor): New.
1386         * c-common.h: Declare it.
1388 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
1390         * c-cppbuiltin.c (c_cpp_builtins): Don't define
1391         __LIBGCC_JCR_SECTION_NAME__.
1393 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1395         * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
1396         left shift in boolean context.
1398 2016-09-29  Jakub Jelinek  <jakub@redhat.com>
1400         Implement P0001R1 - C++17 removal of register storage class specifier
1401         * c.opt (Wregister): New warning.
1402         * c-opts.c (c_common_post_options): Enable -Wregister by
1403         default for C++17.
1405 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
1407         * c-opts.c (c_common_post_options): Remove special case for
1408         TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
1409         in C++.
1411 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
1413         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
1414         -std=c++1z.
1416         * c-ada-spec.c (print_ada_declaration): Remove break after return.
1418 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1420         * c-common.c: Include memmodel.h.
1422 2016-09-26  Marek Polacek  <polacek@redhat.com>
1424         * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
1426 2016-09-26  Marek Polacek  <polacek@redhat.com>
1428         PR c/7652
1429         * c-common.c (c_common_attribute_table): Add fallthrough attribute.
1430         (handle_fallthrough_attribute): New function.
1431         (attribute_fallthrough_p): New function.
1432         * c-common.h (attribute_fallthrough_p): Declare.
1434 2016-09-24  Marek Polacek  <polacek@redhat.com>
1436         PR c/77490
1437         * c.opt (Wbool-operation): New.
1439 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1441         * c-common.c (c_common_truthvalue_conversion): Inhibit
1442         Wint-in-bool-context warning with from_macro_definition_at.
1443         Mention the expression will always evaluate to true.
1445 2016-09-21  Martin Sebor  <msebor@redhat.com>
1447         PR bootstrap/77676
1448         * c.opt (fprintf-return-value): Temporarily initialize to zero
1449         to unblock bootstrap failures.
1451 2016-09-21  Jakub Jelinek  <jakub@redhat.com>
1453         PR c++/77651
1454         * c.opt (Waligned-new=): Add RejectNegative.
1455         (faligned-new=): Likewise.  Spelling fix - change
1456         aligned_new_threshhold to aligned_new_threshold.
1457         * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
1458         to aligned_new_threshold.
1460 2016-09-20  Martin Sebor  <msebor@redhat.com>
1462         PR middle-end/49905
1463         * c.opt: Add -Wformat-length and -fprintf-return-value.
1465 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1467         PR c++/77434
1468         * c.opt (Wint-in-bool-context): New warning.
1469         * c-common.c (c_common_truthvalue_conversion): Warn on integer
1470         constants in boolean context.
1472 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
1474         * c-common.c (max_align_t_align): Also consider alignment of
1475         float128_type_node.
1477 2016-09-15  Jason Merrill  <jason@redhat.com>
1479         * c-common.c (check_cxx_fundamental_alignment_constraints): Check
1480         DECL_EXTERNAL.
1482 2016-09-14  Jason Merrill  <jason@redhat.com>
1484         * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
1485         limit FIELD_DECL, either.
1487 2016-09-14  Marek Polacek  <polacek@redhat.com>
1489         * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
1490         * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
1491         * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
1493 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
1495         * c-common.c (warn_logical_not_parentheses): Replace
1496         rich_location::add_fixit_insert calls with add_fixit_insert_before
1497         and add_fixit_insert_after, eliminating the "next_loc" calculation.
1499 2016-09-13  Jason Merrill  <jason@redhat.com>
1500             Tom de Vries  <tom@codesourcery.com>
1502         PR c++/77427
1503         * c-common.c (set_underlying_type): Don't treat array as builtin type.
1505 2016-09-13  Jason Merrill  <jason@redhat.com>
1507         * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
1508         limit types at all.
1510 2016-09-12  Jason Merrill  <jason@redhat.com>
1512         * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
1513         bit/byte confusion, allow large alignment for types.
1515 2016-09-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1517         PR c++/77496
1518         * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
1520 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
1522         PR c/72858
1523         * c-format.c (argument_parser::check_argument_type): Add params
1524         "type_start" and "conversion_char".  Use the former to generate
1525         offset_to_type_start and pass it and conversion_char to
1526         check_format_types.
1527         (check_format_info_main): Capture the start of the type
1528         information as "type_start", and pass it an format_char
1529         to arg_parser.check_argument_type.
1530         (check_format_types): Provide an example in the leading comment.
1531         Add params "offset_to_type_start" and "conversion_char"; pass
1532         them to format_type_warning calls.
1533         (test_get_modifier_for_format_len): Likewise.
1534         (matching_type_p): New function.
1535         (get_format_for_type): Add param "conversion_char" and move
1536         implementation into...
1537         (get_format_for_type_1): ...new function, called twice.
1538         Use new function matching_type_p rather than checking for
1539         TYPE_CANONICAL equality.
1540         (get_corrected_substring): New function.
1541         (format_type_warning): Provide an example in the leading comment.
1542         Add params "offset_to_type_start" and "conversion_char".  Replace
1543         call to get_format_for_type with call to get_corrected_substring
1544         and move rejection of hints for widths/precisions there.
1545         (assert_format_for_type_streq): Add param "conversion_char".
1546         (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
1547         (test_get_format_for_type_printf): Add conversion chars to the
1548         tests, adding coverage for various combinations of integer
1549         vs double conversions, and for preserving octal and hexadecimal
1550         conversions.
1551         (test_get_format_for_type_scanf): Add conversion chars to the
1552         tests.
1554 2016-09-10  Tom de Vries  <tom@codesourcery.com>
1556         PR C/71602
1557         * c-common.c (build_va_arg): Handle more strict
1558         targetm.canonical_va_list_type.  Replace first argument type error with
1559         assert.
1561 2016-09-09  Martin Sebor  <msebor@redhat.com>
1563         PR c/77520
1564         PR c/77521
1565         * c-format.c (argument_parser::find_format_char_info): Use %qc
1566         format directive unconditionally.
1568 2016-09-09  Jason Merrill  <jason@redhat.com>
1570         Implement C++17 new of over-aligned types.
1571         * c.opt: Add -faligned-new and -Waligned-new.
1572         * c-common.c (max_align_t_align): Split out from...
1573         (cxx_fundamental_alignment_p): ...here.
1574         * c-common.h: Declare it.
1575         * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
1577 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
1579         * c-cppbuiltin.c (builtin_define_type_width): New function.
1580         (builtin_define_stdint_macros, c_cpp_builtins): Define type width
1581         macros.
1583 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
1585         * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
1586         a POINTER_TYPE.
1587         (substring_loc::get_location): Move to substring-locations.c,
1588         keeping implementation as...
1589         (c_get_substring_location): New function, from the above, reworked
1590         to use accessors rather than member lookup.
1591         * c-common.h (class substring_loc): Move to substring-locations.h,
1592         replacing with a forward decl.
1593         (c_get_substring_location): New decl.
1594         * c-format.c: Include "substring-locations.h".
1595         (format_warning_va): Move to substring-locations.c.
1596         (format_warning_at_substring): Likewise.
1598 2016-09-06 Martin Sebor  <msebor@redhat.com>
1600         PR c/77336
1601         * c-format.c (check_function_format): Avoid issuing warnings for
1602         functions unless they call format functions with non-constant
1603         format strings.
1605 2016-09-06  Richard Biener  <rguenther@suse.de>
1607         PR c/77450
1608         * c-common.c (c_common_mark_addressable_vec): Handle
1609         COMPOUND_LITERAL_EXPR.
1611 2016-09-05  Marek Polacek  <polacek@redhat.com>
1613         PR c/77423
1614         * c-common.c (bool_promoted_to_int_p): New function.
1615         (expr_has_boolean_operands_p): New function.
1616         (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
1617         (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
1619 2016-09-04  Tom de Vries  <tom@codesourcery.com>
1621         revert:
1622         2016-08-29  Tom de Vries  <tom@codesourcery.com>
1624         * c-common.c (build_va_arg): Replace first argument type error
1625         with assert.
1627 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
1629         PR c/65467
1630         * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
1631         (c_finish_omp_for): Reject _Atomic qualified iterators.
1633 2016-09-01  Martin Sebor  <msebor@redhat.com>
1635         * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
1636         size to guarantee it fits the output of the formatted function
1637         regardless of its arguments.
1639 2016-09-01  Marek Polacek  <polacek@redhat.com>
1641         PR c/7652
1642         * c-common.c (resolve_overloaded_builtin): Fix formatting.  Add
1643         FALLTHRU comments.
1645 2016-08-29  Marek Polacek  <polacek@redhat.com>
1647         PR c/77292
1648         * c-common.c (warn_logical_not_parentheses): Don't warn for
1649         a comparison or a logical operator.
1651 2016-08-29  Tom de Vries  <tom@codesourcery.com>
1653         * c-common.c (build_va_arg): Fix type comparison assert.
1655 2016-08-29  Tom de Vries  <tom@codesourcery.com>
1657         * c-common.c (build_va_arg): Replace first argument type error
1658         with assert.
1660 2016-08-29  Tom de Vries  <tom@codesourcery.com>
1662         PR c/77398
1663         * c-common.c (build_va_arg): Add first argument error.  Build va_arg
1664         with error_mark_node as va_list instead of with illegal va_list.
1666 2016-08-25  Marek Polacek  <polacek@redhat.com>
1667             David Malcolm  <dmalcolm@redhat.com>
1669         * c-common.c (warn_logical_not_parentheses): Print fixit hints.
1670         * c-common.h (warn_logical_not_parentheses): Update declaration.
1672 2016-08-22  Marek Polacek  <polacek@redhat.com>
1674         PR c++/77321
1675         * c-common.c (warn_for_memset): Check type for null.
1677 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
1679         * c-family/c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
1680         _FloatNx types for suffixes for built-in functions.
1682 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
1684         PR c/32187
1685         * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
1686         (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
1687         (RID_FLOAT128X): New enum rid values.
1688         (CASE_RID_FLOATN_NX): New macro.
1689         * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
1690         keywords.
1691         (c_common_type_for_mode): Check for _FloatN and _FloatNx and
1692         corresponding complex types.
1693         (c_common_nodes_and_builtins): For non-C++, register _FloatN and
1694         _FloatNx and corresponding complex types.
1695         (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
1696         * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
1697         and _FloatNx types for the widest type for determining
1698         DECIMAL_DIG.  Define __LDBL_DECIMAL_DIG__ as well as
1699         __DECIMAL_DIG__ for long double.  Handle FMA_SUFFIX being NULL.
1700         (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
1701         and _FloatNx types.
1702         * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
1703         constants.
1704         * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
1705         _FloatNx types.
1707 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
1709         * c-opts.c (c_diagnostic_finalizer): Update for change to
1710         diagnostic_show_locus.
1712 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
1714         * c-common.c: Include "spellcheck.h".
1715         (cb_get_suggestion): New function.
1716         * c-common.h (cb_get_suggestion): New decl.
1717         * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
1718         cb_get_suggestion.
1720 2016-08-18  Marek Polacek  <polacek@redhat.com>
1722         PR c/71514
1723         * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
1724         and pointer-to-VLA.
1726 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
1728         PR c/72857
1729         * c-common.c (substring_loc::get_range): Rename to...
1730         (substring_loc::get_location): ...this, converting param from a
1731         source_range * to a location_t *.  Call
1732         get_source_location_for_substring rather than
1733         get_source_range_for_substring, and pass in m_caret_idx.
1734         * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
1735         (substring_loc::get_range): Replace with...
1736         (substring_loc::get_location): ...this.
1737         (substring_loc::set_caret_index): New method.
1738         (substring_loc): Add field m_caret_idx.
1739         * c-format.c (format_warning_va): Update for above changes.
1740         Rename local "substring_loc" to "fmt_substring_loc" to avoid
1741         clashing with type name.
1742         (format_warning_at_char): Add caret_idx param to substring_loc ctor.
1743         (check_argument_type): Likewise.
1744         (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
1745         Use a copy when emitting warnings, setting the caret index from TYPE.
1747 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
1748             Arnaud Charlet  <charlet@adacore.com>
1750         * c-ada-spec.c (dump_number): New function.
1751         (handle_escape_character): Likewise.
1752         (print_ada_macros): Add handling of constant integers and strings.
1754 2016-08-12  Marek Polacek  <polacek@redhat.com>
1756         PR c/7652
1757         * c-common.c (scalar_to_vector): Adjust fall through comment.
1758         * c-opts.c (c_common_handle_option): Likewise.
1759         * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
1760         * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
1761         fall through comment.
1762         * cilk.c (extract_free_variables): Add FALLTHRU.
1764 2016-08-10  Jason Merrill  <jason@redhat.com>
1766         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
1768 2016-08-09  Jason Merrill  <jason@redhat.com>
1770         * c-common.c (c_common_attribute_table): vector_size affects type
1771         identity.
1773 2016-08-09  Marek Polacek  <polacek@redhat.com>
1775         PR c/7652
1776         * c-ada-spec.c (dump_generic_ada_node): Add return.
1778 2016-08-09  Jason Merrill  <jason@redhat.com>
1780         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
1781         C++17 constexpr lambdas.
1783 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
1785         PR c/64955
1786         * c-common.h (selftest::c_format_c_tests): New declaration.
1787         (selftest::run_c_tests): New declaration.
1788         * c-format.c: Include "selftest.h.
1789         (format_warning_va): Add param "corrected_substring" and use
1790         it to add a replacement fix-it hint.
1791         (format_warning_at_substring): Likewise.
1792         (format_warning_at_char): Update for new param of
1793         format_warning_va.
1794         (argument_parser::check_argument_type): Pass "fki" to
1795         check_format_types.
1796         (check_format_types): Add param "fki" and pass it to
1797         format_type_warning.
1798         (deref_n_times): New function.
1799         (get_modifier_for_format_len): New function.
1800         (selftest::test_get_modifier_for_format_len): New function.
1801         (get_format_for_type): New function.
1802         (format_type_warning): Add param "fki" and use it to attempt
1803         to provide hints for argument types when calling
1804         format_warning_at_substring.
1805         (selftest::get_info): New function.
1806         (selftest::assert_format_for_type_streq): New function.
1807         (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
1808         (selftest::test_get_format_for_type_printf): New function.
1809         (selftest::test_get_format_for_type_scanf): New function.
1810         (selftest::c_format_c_tests): New function.
1812 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
1814         PR c/52952
1815         * c-format.c: Include "diagnostic.h".
1816         (location_column_from_byte_offset): Delete.
1817         (location_from_offset): Delete.
1818         (format_warning_va): New function.
1819         (format_warning_at_substring): New function.
1820         (format_warning_at_char): New function.
1821         (check_format_arg): Capture location of format_tree and pass to
1822         check_format_info_main.
1823         (argument_parser): Add fields "start_of_this_format" and
1824         "format_string_cst".
1825         (flag_chars_t::validate): Add param "format_string_cst".  Convert
1826         warning_at call using location_from_offset to call to
1827         format_warning_at_char.
1828         (argument_parser::argument_parser): Add param "format_string_cst_"
1829         and use use it to initialize field "format_string_cst".
1830         Initialize new field "start_of_this_format".
1831         (argument_parser::read_format_flags): Convert warning_at call
1832         using location_from_offset to a call to format_warning_at_char.
1833         (argument_parser::read_any_format_left_precision): Likewise.
1834         (argument_parser::read_any_format_precision): Likewise.
1835         (argument_parser::read_any_other_modifier): Likewise.
1836         (argument_parser::find_format_char_info): Likewise, in three places.
1837         (argument_parser::parse_any_scan_set): Likewise, in one place.
1838         (argument_parser::handle_conversions): Likewise, in two places.
1839         (argument_parser::check_argument_type): Add param "fmt_param_loc"
1840         and use it to make a substring_loc.  Pass the latter to
1841         check_format_types.
1842         (check_format_info_main): Add params "fmt_param_loc" and
1843         "format_string_cst".  Convert warning_at calls using
1844         location_from_offset to calls to format_warning_at_char.  Pass the
1845         new params to the arg_parser ctor.  Pass "format_string_cst" to
1846         flag_chars.validate.  Pass "fmt_param_loc" to
1847         arg_parser.check_argument_type.
1848         (check_format_types): Convert first param from a location_t
1849         to a const substring_loc & and rename to "fmt_loc".  Attempt
1850         to extract the range of the relevant parameter and pass it
1851         to format_type_warning.
1852         (format_type_warning): Convert first param from a location_t
1853         to a const substring_loc & and rename to "fmt_loc".  Add
1854         params "param_range" and "type".  Replace calls to warning_at
1855         with calls to format_warning_at_substring.
1857 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
1859         * c-format.c (class flag_chars_t): New class.
1860         (struct length_modifier): New struct.
1861         (class argument_parser): New class.
1862         (flag_chars_t::flag_chars_t): New ctor.
1863         (flag_chars_t::has_char_p): New method.
1864         (flag_chars_t::add_char): New method.
1865         (flag_chars_t::validate): New method.
1866         (flag_chars_t::get_alloc_flag): New method.
1867         (flag_chars_t::assignment_suppression_p): New method.
1868         (argument_parser::argument_parser): New ctor.
1869         (argument_parser::read_any_dollar): New method.
1870         (argument_parser::read_format_flags): New method.
1871         (argument_parser::read_any_format_width): New method.
1872         (argument_parser::read_any_format_left_precision): New method.
1873         (argument_parser::read_any_format_precision): New method.
1874         (argument_parser::handle_alloc_chars): New method.
1875         (argument_parser::read_any_length_modifier): New method.
1876         (argument_parser::read_any_other_modifier): New method.
1877         (argument_parser::find_format_char_info): New method.
1878         (argument_parser::validate_flag_pairs): New method.
1879         (argument_parser::give_y2k_warnings): New method.
1880         (argument_parser::parse_any_scan_set): New method.
1881         (argument_parser::handle_conversions): New method.
1882         (argument_parser::check_argument_type): New method.
1883         (check_format_info_main): Introduce classes argument_parser
1884         and flag_chars_t, moving the code within the loop into methods
1885         of these classes.  Make various locals "const".
1887 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
1889         * c-common.c: Include "substring-locations.h".
1890         (get_cpp_ttype_from_string_type): New function.
1891         (g_string_concat_db): New global.
1892         (substring_loc::get_range): New method.
1893         * c-common.h (g_string_concat_db): New declaration.
1894         (class substring_loc): New class.
1895         * c-lex.c (lex_string): When concatenating strings, capture the
1896         locations of all tokens using a new obstack, and record the
1897         concatenation locations within g_string_concat_db.
1898         * c-opts.c (c_common_init_options): Construct g_string_concat_db
1899         on the ggc-heap.
1901 2016-07-29  Marek Polacek  <polacek@redhat.com>
1903         PR c/71926
1904         * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
1905         parentheses warning.
1907         PR c/71574
1908         * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
1910 2016-07-28  Martin Liska  <mliska@suse.cz>
1912         PR gcov-profile/68025
1913         * c-common.c (handle_no_profile_instrument_function_attribute):
1915 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1917         * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
1918         BITS_PER_UNIT_LOG.
1920 2016-07-25  Jason Merrill  <jason@redhat.com>
1922         PR c++/65970
1923         * c.opt (fconstexpr-loop-limit): New.
1925 2016-07-22  Martin Sebor  <msebor@redhat.com>
1927         PR c++/71675
1928         * c-common.c (resolve_overloaded_builtin): Avoid converting
1929         __atomic_compare_exchange_n return type to that of what its
1930         first argument points to.
1932 2016-07-22  Uros Bizjak  <ubizjak@gmail.com>
1934         * c-common.c: Use HOST_WIDE_INT_M1U instead of
1935         ~(unsigned HOST_WIDE_INT) 0.
1937 2016-07-22  Martin Liska  <mliska@suse.cz>
1939         PR gcov-profile/69028
1940         PR gcov-profile/62047
1941         * cilk.c (create_cilk_helper_decl): Set location of a new decl
1942         to the current_function_decl.
1944 2016-07-21  Jason Merrill  <jason@redhat.com>
1946         PR c++/65168
1947         * c-common.c (c_common_truthvalue_conversion): Check
1948         c_inhibit_evaluation_warnings for warning about address of
1949         reference.
1951 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
1953         * c-common.h (lookup_name_fuzzy): Convert return type from tree to
1954         const char *.
1956 2016-07-15  Jason Merrill  <jason@redhat.com>
1958         * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
1960 2016-07-15  Jakub Jelinek  <jakub@redhat.com>
1962         PR c/71858
1963         * c-common.h (enum lookup_name_fuzzy_kind): Add
1964         FUZZY_LOOKUP_FUNCTION_NAME.
1966 2016-07-08  Jason Merrill  <jason@redhat.com>
1968         P0145: Refining Expression Order for C++.
1969         * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
1970         * c-opts.c: Adjust.
1972 2016-07-05  Markus Trippelsdorf  <markus@trippelsdorf.de>
1974         PR c++/71214
1975         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
1977 2016-06-29  Thomas Schwinge  <thomas@codesourcery.com>
1979         * c-pragma.h (enum pragma_kind): Rename
1980         PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE.  Adjust all
1981         users.
1983 2016-06-29  Richard Biener  <rguenther@suse.de>
1985         PR middle-end/71002
1986         * c-common.c (c_common_get_alias_set): Remove union type punning case.
1988 2016-06-24  Jason Merrill  <jason@redhat.com>
1990         P0145R2: Refining Expression Order for C++.
1991         * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
1992         MODIFY_EXPR.
1994 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
1996         * c-common.c (check_builtin_function_arguments): Require last
1997         argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
1998         Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
1999         if the last argument is pointer to enumerated or boolean type.
2001 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
2003         PR c/70339
2004         * c-common.h (enum lookup_name_fuzzy_kind): New enum.
2005         (lookup_name_fuzzy): New prototype.
2007 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
2009         * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
2011 2016-06-14  Jason Merrill  <jason@redhat.com>
2013         P0145R2: Refining Expression Order for C++.
2014         * c.opt (fargs-in-order): New.
2015         * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
2017 2016-06-13  Jakub Jelinek  <jakub@redhat.com>
2019         PR sanitizer/71498
2020         * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
2021         all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
2023         PR preprocessor/71183
2024         * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
2025         to cb_get_source_date_epoch.
2027 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
2029         PR c/68657
2030         * c.opt (Wpsabi): Add Warning flag.
2032 2016-06-10  Martin Sebor  <msebor@redhat.com>
2034         PR c/71392
2035         * gcc/c-family/c-common.c (handle_nonnull_attribute): Accept
2036         the nonnull attribute in type-generic builtins.
2038 2016-06-09  Martin Sebor  <msebor@redhat.com>
2040         PR c/70883
2041         * c-common.c (builtin_function_validate_nargs): Make text of error
2042         message consistent with others like it.
2044 2016-06-08  Martin Sebor  <msebor@redhat.com>
2045             Jakub Jelinek  <jakub@redhat.com>
2047         PR c++/70507
2048         PR c/68120
2049         * c-common.c (check_builtin_function_arguments): Handle
2050         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
2052 2016-06-08  Richard Biener  <rguenther@suse.de>
2054         * c-common.c (parse_optimize_options): Improve diagnostic messages.
2056 2016-06-07  Richard Biener  <rguenther@suse.de>
2058         PR c/61564
2059         * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
2060         options and warn about others.
2062 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
2064         * c-common.c (get_source_date_epoch): Rename to
2065         cb_get_source_date_epoch.
2066         * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
2067         message when the parsing fails.  Use error_at instead of fatal_error.
2068         * c-common.h (get_source_date_epoch): Rename to
2069         cb_get_source_date_epoch.
2070         * c-common.h (cb_get_source_date_epoch): Prototype.
2071         * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
2072         * c-common.h (c_omp_region_type): Remove trailing comma.
2073         * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
2074         * c-lex.c (c_lex_with_flags): Remove initialization of
2075         pfile->source_date_epoch.
2077 2016-05-30  Jakub Jelinek  <jakub@redhat.com>
2079         PR c++/71349
2080         * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
2081         C_OMP_CLAUSE_SPLIT_TARGET.  Put OMP_CLAUSE_NOWAIT to
2082         C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
2083         instead of C_OMP_CLAUSE_SPLIT_FOR.
2085 2016-05-24  Richard Biener  <rguenther@suse.de>
2087         PR middle-end/70434
2088         PR c/69504
2089         * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
2090         (convert_vector_to_array_for_subscript): ... this.
2091         * c-common.c (convert_vector_to_pointer_for_subscript): Use a
2092         VIEW_CONVERT_EXPR to an array type.  Rename to ...
2093         (convert_vector_to_array_for_subscript): ... this.
2095 2016-05-12  Marek Polacek  <polacek@redhat.com>
2097         PR c/70756
2098         * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
2099         size_in_bytes and pass LOC to it.
2101 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
2103         PR c/43651
2104         * c.opt (Wduplicate-decl-specifier): New option.
2106 2016-05-11  Marek Polacek  <polacek@redhat.com>
2108         PR c++/71024
2109         * c-common.c (diagnose_mismatched_attributes): New function.
2110         * c-common.h (diagnose_mismatched_attributes): Declare.
2112 2016-05-04  Marek Polacek  <polacek@redhat.com>
2114         * c.opt (Wdangling-else): New option.
2116 2016-05-03  Marek Polacek  <polacek@redhat.com>
2118         PR c/70859
2119         * c-common.c (builtin_function_validate_nargs): Add location
2120         parameter.  Use it.
2121         (check_builtin_function_arguments): Add location and arguments
2122         parameters.  Use them.
2123         * c-common.h (check_builtin_function_arguments): Update declaration.
2125 2016-05-03  Richard Biener  <rguenther@suse.de>
2127         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
2128         allow call args to gimplify to SSA names.
2130 2016-05-03  Marek Polacek  <polacek@redhat.com>
2132         * c-common.h (enum c_omp_region_type): Remove stray comma.
2134 2016-05-02  Cesar Philippidis  <cesar@codesourcery.com>
2136         * c-common.h (enum c_omp_region_type): Define.
2138 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
2140         * c-common.c (shorten_compare): Use wi::to_wide.
2142 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
2144         PR middle-end/70626
2145         * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
2146         * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
2147         reduction clauses in acc parallel loops.
2149 2016-04-29  Marek Polacek  <polacek@redhat.com>
2151         PR c/70852
2152         * c-common.c (warn_for_memset): Check domain before accessing it.
2154 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2156         PR/69089
2157         * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
2158         "aligned" attribute.
2160 2016-04-28  Jason Merrill  <jason@redhat.com>
2162         * c-lex.c (c_common_has_attribute): Handle nodiscard.
2164 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
2165             Matthias Klose  <doko@debian.org>
2167         * c-common.c (get_source_date_epoch): New function, gets the environment
2168         variable SOURCE_DATE_EPOCH and parses it as long long with error 
2169         handling.
2170         * c-common.h (get_source_date_epoch): Prototype.
2171         * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
2173 2015-04-27  Ryan Burn  <contact@rnburn.com>
2175         PR c++/69024
2176         PR c++/68997
2177         * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
2178         (cilk_recognize_spawn): Renamed from recognize_spawn and change to
2179         external linkage.
2180         (cilk_detect_and_unwrap): Corresponding changes.
2181         (extract_free_variables): Don't extract free variables from
2182         AGGR_INIT_EXPR slot.
2183         * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
2184         (cilk_recognize_spawn): Likewise.
2186 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
2188         * c.opt (Wmemset-elt-size): New option.
2189         * c-common.c (warn_for_memset): New function.
2190         * c-common.h (warn_for_memset): Declare.
2192 2016-04-25  Jason Merrill  <jason@redhat.com>
2194         * c-common.c (handle_unused_attribute): Accept CONST_DECL.
2195         No longer static.
2196         * c-common.h: Declare it.
2197         * c-lex.c (c_common_has_attribute): Add maybe_unused.
2199 2016-04-22  Jason Merrill  <jason@redhat.com>
2201         * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
2203 2016-04-20  Ilya Verbin  <ilya.verbin@intel.com>
2205         PR c++/69363
2206         * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
2207         * c-common.h (c_finish_cilk_clauses): Remove declaration.
2209 2016-04-18  Michael Matz  <matz@suse.de>
2211         * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
2212         and SET_DECL_ALIGN.
2214 2016-04-17  Eric Botcazou  <ebotcazou@adacore.com>
2216         * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
2217         (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
2218         to incomplete types.
2219         (dump_nested_type): Remove redundant tests and tidy up.
2220         (print_ada_declaration): Also set TREE_VISITED on the declaration of
2221         a type which is the typedef of an original type.
2223 2016-04-15  Marek Polacek  <polacek@redhat.com>
2225         PR c/70651
2226         * c-common.c (build_va_arg): Change two asserts into errors and return
2227         error_mark_node.
2229 2016-04-13  Marek Polacek  <polacek@redhat.com>
2231         PR c++/70639
2232         * c-indentation.c (should_warn_for_misleading_indentation): Bail out
2233         for switch statements, too.
2235 2016-03-28  Jason Merrill  <jason@redhat.com>
2237         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
2239 2016-03-23  Marek Polacek  <polacek@redhat.com>
2241         PR c++/69884
2242         * c.opt (Wignored-attributes): New option.
2244 2016-03-22  David Malcolm  <dmalcolm@redhat.com>
2246         PR c/69993
2247         * c-indentation.c (warn_for_misleading_indentation): Rewrite the
2248         diagnostic text, reversing the order of the warning and note so
2249         that they appear in source order.
2251 2016-03-17  Marek Polacek  <polacek@redhat.com>
2253         PR c/69407
2254         * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
2255         operations.
2257 2016-03-14  Jason Merrill  <jason@redhat.com>
2259         * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
2261         * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
2263 2016-03-09  Richard Biener  <rguenther@suse.de>
2265         PR c/70143
2266         * c-common.c (strict_aliasing_warning): Add back
2267         alias_sets_conflict_p check.
2269 2016-03-08  Jason Merrill  <jason@redhat.com>
2271         * c-opts.c (set_std_cxx1z): Don't enable concepts.
2273 2016-03-04  David Malcolm  <dmalcolm@redhat.com>
2275         PR c/68187
2276         * c-indentation.c (get_visual_column): Move code to determine next
2277         tab stop to...
2278         (next_tab_stop): ...this new function.
2279         (line_contains_hash_if): Delete function.
2280         (detect_preprocessor_logic): Delete function.
2281         (get_first_nws_vis_column): New function.
2282         (detect_intervening_unindent): New function.
2283         (should_warn_for_misleading_indentation): Replace call to
2284         detect_preprocessor_logic with a call to
2285         detect_intervening_unindent.
2287 2016-03-04  David Malcolm  <dmalcolm@redhat.com>
2289         PR c/68187
2290         * c-indentation.c (should_warn_for_misleading_indentation): When
2291         suppressing warnings about cases where the guard and body are on
2292         the same column, only use the first non-whitespace column in place
2293         of the guard token column when dealing with "else" clauses.
2294         When rejecting aligned BODY and NEXT, loosen the requirement
2295         from equality with the first non-whitespace of guard to simply
2296         that they not be indented relative to it.
2298 2016-03-04  Richard Biener  <rguenther@suse.de>
2300         PR c++/70054
2301         * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
2302         instead of alias_sets_conflict_p.
2304 2016-03-01  Marek Polacek  <polacek@redhat.com>
2306         PR c++/69795
2307         * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
2308         any DECL.
2310 2016-02-22  Martin Sebor  <msebor@redhat.com>
2312         PR middle-end/69780
2313         * c-common.c (check_builtin_function_arguments): Validate and
2314         reject invalid arguments to __builtin_alloca_with_align.
2316 2016-02-20  Mark Wielaard  <mjw@redhat.com>
2318         PR c/28901
2319         * c.opt (Wunused-const-variable): Turn into Alias for...
2320         (Wunused-const-variable=): New option.
2322 2016-02-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2324         PR c++/69865
2325         * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
2326         here...
2327         (c_common_init_options): ...to here.
2328         (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
2330 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
2332         PR c++/69826
2333         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
2334         (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
2335         flag_preprocess_only.
2337 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
2339         PR c/69835
2340         * c.opt (Wnonnull-compare): Enable for -Wall.
2342 2016-02-15  Jakub Jelinek  <jakub@redhat.com>
2344         PR c++/69797
2345         * c-common.c (sync_resolve_size): Diagnose too few arguments
2346         even when params is non-NULL empty vector.
2348 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
2350         PR target/60410
2351         * c.opt (fshort-double): Remove.
2353 2016-02-05  Martin Sebor  <msebor@redhat.com>
2355         PR c++/69662
2356         * c.opt (Warning options): Update -Wplacement-new to take
2357         an optional argument.
2359 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
2361         PR preprocessor/69543
2362         PR c/69558
2363         * c-pragma.c (handle_pragma_diagnostic): Pass input_location
2364         instead of loc to control_warning_option.
2366 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
2368         * c.opt (fopenacc-dim=): New option.
2370 2016-01-27  Ryan Burn  <contact@rnburn.com>
2372         PR cilkplus/69267
2373         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
2374         gimplify_arg. Removed superfluous post_p argument.
2375         * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
2376         superfluous post_p argument.
2377         * c-gimplify.c (c_gimplify_expr): Likewise.
2379 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
2381         PR other/69006
2382         * c-opts.c (c_diagnostic_finalizer): Replace invocation of
2383         pp_newline_and_flush with pp_flush.
2385 2016-01-20  Martin Sebor  <msebor@redhat.com>
2387         PR c/69405
2388         * c-common.c (sync_resolve_size): Avoid printing diagnostic about
2389         an incompatible argument when the argument isn't a valid tree node.
2391 2016-01-18  Jason Merrill  <jason@redhat.com>
2393         PR c++/68767
2394         * c-common.c (check_function_arguments_recurse): Fold the whole
2395         COND_EXPR, not just the condition.
2397 2016-01-18  Tom de Vries  <tom@codesourcery.com>
2399         * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
2400         classify as loop clause.
2402 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
2404         PR bootstrap/68271
2405         * c-pragma.c (c_register_pragma_1): Adjust comment to note that
2406         C++ FE no longer has limit on number of pragmas.
2408 2015-01-14  Ryan Burn  <contact@rnburn.com>
2410         PR c++/69048
2411         * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
2412         to add missing cleanup point.
2414 2016-01-14  David Malcolm  <dmalcolm@redhat.com>
2416         PR c++/68819
2417         * c-indentation.c (get_visual_column): Add location_t param.
2418         Handle the column number being zero by effectively disabling the
2419         warning, with an "inform".
2420         (should_warn_for_misleading_indentation): Add location_t argument
2421         for all uses of get_visual_column.
2423 2016-01-10  Patrick Palka  <ppalka@gcc.gnu.org>
2425         PR c++/69029
2426         * c-indentation.c (should_warn_for_misleading_indentation):
2427         Don't warn about do-while statements.
2429 2016-01-07  Martin Sebor  <msebor@redhat.com>
2431         PR c/68966
2432         * c-common.c (sync_resolve_size): Reject first argument when it's
2433         a pointer to _Bool.
2435 2016-01-05  David Malcolm  <dmalcolm@redhat.com>
2437         PR c/69122
2438         * c-indentation.c (get_visual_column): Remove default argument.
2439         (should_warn_for_misleading_indentation): For the multiline case,
2440         update call to get_visual_column for next_stmt_exploc so that it
2441         captures the location of the first non-whitespace character in the
2442         relevant line.  Don't issue warnings if there is non-whitespace
2443         before the next statement.
2445 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
2447         Update copyright years.
2449 2015-12-21  David Malcolm  <dmalcolm@redhat.com>
2451         * c-common.c (binary_op_error): Convert first param from
2452         location_t to rich_location * and use it when emitting an error.
2453         * c-common.h (binary_op_error): Convert first param from
2454         location_t to rich_location *.
2456 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
2458         * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
2459         * c-lex.c (conflict_marker_get_final_tok_kind): New function.
2461 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
2463         * c-common.c (c_common_attribute_table): Handle "omp declare target
2464         link" attribute.
2466 2015-12-14  Jakub Jelinek  <jakub@redhat.com>
2468         PR c/68833
2469         * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
2471 2014-12-12  Tobias Burnus  <burnus@net-b.de>
2473         PR fortran/68815
2474         * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
2475         specifiers (%d, %i,%u and %c).
2477 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
2479         * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
2481 2015-12-08  Jakub Jelinek  <jakub@redhat.com>
2483         PR c/48088
2484         PR c/68657
2485         * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
2486         * c-pragma.c (handle_pragma_diagnostic): Adjust
2487         control_warning_option caller.
2489 2015-12-07  David Malcolm  <dmalcolm@redhat.com>
2491         * c-common.c (c_cpp_error): Update for change to
2492         rich_location::set_range.
2494 2015-12-04  Paolo Bonzini  <bonzini@gnu.org>
2496         * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
2497         shifting 1 out of the sign bit.
2499 2015-12-04  Kirill Yukhin  <kirill.yukhin@intel.com>
2501         * c-common.c (c_common_attribute_table[]): Update max arguments
2502         count for "simd" attribute.
2503         (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
2505 2015-12-03  Jakub Jelinek  <jakub@redhat.com>
2507         PR preprocessor/57580
2508         * c-ppoutput.c (print): Change printed field to bool.
2509         Move src_file last for smaller padding.
2510         (init_pp_output): Set print.printed to false instead of 0.
2511         (scan_translation_unit): Fix up formatting.  Set print.printed
2512         to true after printing something other than newline.
2513         (scan_translation_unit_trad): Set print.printed to true instead of 1.
2514         (maybe_print_line_1): Set print.printed to false instead of 0.
2515         (print_line_1): Likewise.
2516         (do_line_change): Set print.printed to true instead of 1.
2517         (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
2518         dump_macro): Set print.printed to false after printing newline.
2520 2015-12-02  Jason Merrill  <jason@redhat.com>
2522         * c-common.c (fold_for_warn): New.
2523         (warn_logical_operator, warn_tautological_cmp)
2524         (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
2526         * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
2527         (c_fully_fold_internal, decl_constant_value_for_optimization):
2528         Move to c/c-fold.c.
2529         * c-common.h: Don't declare decl_constant_value_for_optimization.
2531 2015-12-02  Joseph Myers  <joseph@codesourcery.com>
2533         PR c/68162
2534         * c-common.h (c_build_qualified_type): Add extra default
2535         arguments.
2537 2015-12-01  Julian Brown  <julian@codesourcery.com>
2538             Cesar Philippidis  <cesar@codesourcery.com>
2539             James Norris  <James_Norris@mentor.com>
2541         * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
2542         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
2543         (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
2545 2015-11-30  Eric Botcazou  <ebotcazou@adacore.com>
2547         * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
2548         (decl_sloc_common): Delete and move bulk of processing to...
2549         (decl_sloc): ...here.
2550         (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
2551         (dump_ada_double_name): Remove S parameter and compute the suffix.
2552         (dump_ada_array_type): Add PARENT parameter.  Simplify computation of
2553         element type and deal with an anonymous one.
2554         (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
2555         (dump_generic_ada_node): Tweak.  Adjust call to dump_ada_array_type
2556         and remove reference to QUAL_UNION_TYPE.
2557         (dump_nested_types): Make 2 passes on the fields and move bulk to...
2558         (dump_nested_type): ...here.  New function extracted from above.
2559         Generate a full declaration for anonymous element type of arrays.
2560         (print_ada_declaration): Really skip anonymous declarations.  Remove
2561         references to QUAL_UNION_TYPE.  Adjust call to dump_ada_array_type.
2562         Clean up processing of declarations of array types and objects.
2563         (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
2564         Remove obsolete code and tidy up.
2566 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
2568         PR c/67581
2569         * c-common.c (handle_transparent_union_attribute): Update
2570         also type variants.
2572 2015-11-27  Martin Liska  <mliska@suse.cz>
2574         PR c++/68312
2575         * array-notation-common.c (cilkplus_extract_an_triplets):
2576         Release vector of vectors.
2577         * cilk.c (gimplify_cilk_spawn): Free allocated memory.
2579 2015-11-26  Eric Botcazou  <ebotcazou@adacore.com>
2581         PR c++/68527
2582         * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
2583         (print_ada_struct_decl): Likewise.
2585 2015-11-23  Igor Zamyatin  <igor.zamyatin@intel.com>
2587         PR c++/68001
2588         * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
2589         * cilk.c (recognize_spawn): Determine location in a more precise
2590         way.
2592 2015-11-19  Jason Merrill  <jason@redhat.com>
2594         * c-common.c (shorten_compare): But look through macros from
2595         system headers.
2597 2015-11-18  Jason Merrill  <jason@redhat.com>
2599         * c-common.c (shorten_compare): Don't -Wtype-limits if the
2600         non-constant operand comes from a macro.
2602 2015-11-17  Jason Merrill  <jason@redhat.com>
2604         PR bootstrap/68346
2605         * c-common.c (warn_tautological_cmp): Fold before checking for
2606         constants.
2608 2015-11-16  Marek Polacek  <polacek@redhat.com>
2610         PR c++/68362
2611         * c-common.c (check_case_bounds): Fold low and high cases.
2613 2015-11-16  Marek Polacek  <polacek@redhat.com>
2615         * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
2616         * c-common.c (c_common_get_alias_set): Likewise.
2617         (handle_visibility_attribute): Likewise.
2619 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
2621         * c-common.c (handle_simd_attribute): New.
2622         (struct attribute_spec): Add entry for "simd".
2623         (handle_simd_attribute): New.
2625 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
2627         * c-lex.c (interpret_float): Use fold_convert.
2629 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
2631         * c-common.c (c_fully_fold_internal): Capture existing souce_range,
2632         and store it on the result.
2633         * c-opts.c (c_common_init_options): Set
2634         global_dc->colorize_source_p.
2636 2015-11-12  James Norris  <jnorris@codesourcery.com>
2637             Joseph Myers  <joseph@codesourcery.com>
2639         * c-pragma.c (oacc_pragmas): Add entry for declare directive. 
2640         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
2641         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
2642         PRAGMA_OACC_CLAUSE_LINK.
2644 2015-11-11  Marek Polacek  <polacek@redhat.com>
2646         PR c/68107
2647         PR c++/68266
2648         * c-common.c (valid_array_size_p): New function.
2649         * c-common.h (valid_array_size_p): Declare.
2651 2015-11-11  Dominique d'Humieres  <dominiq@lps.ens.fr>
2653         PR bootstrap/68271
2654         * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
2656 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
2658         * array-notation-common.c: Remove unused header files.
2659         * c-ada-spec.c: Likewise.
2660         * c-cilkplus.c: Likewise.
2661         * c-common.c: Likewise.
2662         * c-cppbuiltin.c: Likewise.
2663         * c-dump.c: Likewise.
2664         * c-format.c: Likewise.
2665         * c-gimplify.c: Likewise.
2666         * c-indentation.c: Likewise.
2667         * c-lex.c: Likewise.
2668         * c-omp.c: Likewise.
2669         * c-opts.c: Likewise.
2670         * c-pch.c: Likewise.
2671         * c-ppoutput.c: Likewise.
2672         * c-pragma.c: Likewise.
2673         * c-pretty-print.c: Likewise.
2674         * c-semantics.c: Likewise.
2675         * c-ubsan.c: Likewise.
2676         * cilk.c: Likewise.
2677         * stub-objc.c: Likewise.
2679 2015-11-09  Thomas Schwinge  <thomas@codesourcery.com>
2680             Cesar Philippidis  <cesar@codesourcery.com>
2681             James Norris  <jnorris@codesourcery.com>
2682             Julian Brown  <julian@codesourcery.com>
2683             Nathan Sidwell  <nathan@codesourcery.com>
2685         * c-pragma.c (oacc_pragmas): Add "routine".
2686         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
2688 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
2690         * c-common.c (c_common_attributes): Add scalar_storage_order.
2691         (handle_scalar_storage_order_attribute): New function.
2692         * c-pragma.c (global_sso): New variable.
2693         (maybe_apply_pragma_scalar_storage_order): New function.
2694         (handle_pragma_scalar_storage_order): Likewise.
2695         (init_pragma): Register scalar_storage_order.
2696         * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
2697         * c.opt (Wscalar-storage-order): New warning.
2698         (fsso-struct=): New option.
2700 2015-11-08  Martin Sebor  <msebor@redhat.com>
2702         * c.opt (Wplacement-new): Add a period to the end of a sentence.
2704 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
2706         * c-common.c: Don't undef DEF_BUILTIN.
2708 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
2710         * c-common.c (c_cpp_error): Convert parameter from location_t to
2711         rich_location *.  Eliminate the "column_override" parameter and
2712         the call to diagnostic_override_column.
2713         Update the "done_lexing" clause to set range 0
2714         on the rich_location, rather than overwriting a location_t.
2715         * c-common.h (c_cpp_error): Convert parameter from location_t to
2716         rich_location *.  Eliminate the "column_override" parameter.
2718 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
2719             Thomas Schwinge  <thomas@codesourcery.com>
2720             James Norris  <jnorris@codesourcery.com>
2722         * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
2723         AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses.  Associate REDUCTION
2724         clauses with parallel and kernels and loops.
2725         * c-pragma.h (enum pragma_omp_clause): Add entries for
2726         PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
2727         * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
2728         NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
2729         INDEPENDENT,SEQ}.
2730         (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
2732 2015-11-05  Martin Sebor  <msebor@redhat.com>
2734         PR c++/67942
2735         * c.opt (-Wplacement-new): New option.
2737 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
2739         * c-common.h (c_finish_omp_atomic): Add TEST argument.
2740         (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
2741         * c-omp.c (c_finish_omp_atomic): Add TEST argument.  Don't call
2742         save_expr or create_tmp_var* if TEST is true.
2743         (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
2744         Don't call add_stmt here.
2745         (struct c_omp_check_loop_iv_data): New type.
2746         (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
2747         c_omp_check_loop_iv_exprs): New functions.
2748         (c_omp_split_clauses): Adjust for lastprivate being allowed on
2749         distribute.
2750         (c_omp_declare_simd_clauses_to_numbers): Change
2751         OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
2752         (c_omp_declare_simd_clauses_to_decls): Similarly change those
2753         from numbers to PARM_DECLs.
2755 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
2757         * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
2758         flag_checking.
2760 2015-11-03  Bernd Schmidt  <bschmidt@redhat.com>
2762         PR c++-common/67882
2763         * c-common.h (fold_offsetof_1): Add argument.
2764         * c-common.c (fold_offsetof_1): Diagnose more invalid
2765         offsetof expressions that reference elements past the end of
2766         an array.
2768 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
2769             Chung-Lin Tang  <cltang@codesourcery.com>
2771         * c-pragma.c (oacc_pragmas): Add "atomic".
2772         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
2774 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
2776         * c-common.c (handle_target_clones_attribute): New.
2777         (c_common_attribute_table): Add handle_target_clones_attribute.
2778         (handle_always_inline_attribute): Add check on target_clones attribute.
2779         (handle_target_attribute): Ditto.
2781 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
2783         * array-notation-common.c: Reorder #include's and remove duplicates.
2784         * c-ada-spec.c: Likewise.
2785         * c-cilkplus.c: Likewise.
2786         * c-common.c: Likewise.
2787         * c-cppbuiltin.c: Likewise.
2788         * c-dump.c: Likewise.
2789         * c-format.c: Likewise.
2790         * c-gimplify.c: Likewise.
2791         * c-indentation.c: Likewise.
2792         * c-lex.c: Likewise.
2793         * c-omp.c: Likewise.
2794         * c-opts.c: Likewise.
2795         * c-pch.c: Likewise.
2796         * c-ppoutput.c: Likewise.
2797         * c-pragma.c: Likewise.
2798         * c-pretty-print.c: Likewise.
2799         * c-semantics.c: Likewise.
2800         * c-ubsan.c: Likewise.
2801         * cilk.c: Likewise.
2802         * stub-objc.c: Likewise.
2804 2015-10-28  Jason Merrill  <jason@redhat.com>
2806         * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
2808 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
2809             James Norris  <jnorris@codesourcery.com>
2810             Cesar Philippidis  <cesar@codesourcery.com>
2812         PR c/64765
2813         PR c/64880
2814         * c-common.h (c_oacc_split_loop_clauses): Declare function.
2815         * c-omp.c (c_oacc_split_loop_clauses): New function.
2817 2015-10-21  Martin Sebor  <msebor@redhat.com>
2819         PR driver/68043
2820         * c.opt: End each sentence that describes an option with a period.
2822 2015-10-20  Marek Polacek  <polacek@redhat.com>
2824         * array-notation-common.c (is_cilkplus_vector_p): Define.
2825         * c-common.h (is_cilkplus_vector_p): Declare.
2827 2015-10-20  Marek Polacek  <polacek@redhat.com>
2829         * c.opt (std=gnu++11): Do not describe as experimental.
2830         (std=gnu++14): Likewise.
2832 2015-10-19  Jason Merrill  <jason@redhat.com>
2834         * c-cppbuiltin.c (c_cpp_builtins): Define
2835         __cpp_nontype_template_args.
2837 2015-10-19  Jason Merrill  <jason@redhat.com>
2839         * c-cppbuiltin.c (c_cpp_builtins): Define
2840         __cpp_enumerator_attributes, __cpp_fold_expressions,
2841         __cpp_unicode_characters.
2843 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
2844             Aldy Hernandez  <aldyh@redhat.com>
2846         * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
2847         DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
2848         (c_define_builtins): Likewise.
2849         * c-common.h (enum c_omp_clause_split): Add
2850         C_OMP_CLAUSE_SPLIT_TASKLOOP.
2851         (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
2852         (c_finish_omp_for): Add ORIG_DECLV argument.
2853         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
2854         201511 instead of 201307.
2855         * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
2856         OMP_CRITICAL_CLAUSES to it.
2857         (c_finish_omp_ordered): Add CLAUSES argument, set
2858         OMP_ORDERED_CLAUSES to it.
2859         (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
2860         to it if OMP_FOR.  Clear DECL_INITIAL on the IVs.
2861         (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
2862         constructs and new OpenMP 4.5 clauses.  Clear
2863         OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD.  Add
2864         verification code.
2865         * c-pragma.c (omp_pragmas_simd): Add taskloop.
2866         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
2867         (enum pragma_omp_clause): Add
2868         PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
2869         and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
2871 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2873         * c-lex.c (interpret_float): Use real_equal instead of
2874         REAL_VALUES_EQUAL.
2876 2015-10-04  Jason Merrill  <jason@redhat.com>
2878         Implement N4514, C++ Extensions for Transactional Memory.
2879         * c-common.c (c_common_reswords): Add C++ TM TS keywords.
2880         (c_common_attribute_table): Add transaction_safe_dynamic.
2881         transaction_safe now affects type identity.
2882         (handle_tm_attribute): Handle transaction_safe_dynamic.
2883         * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
2884         RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
2885         (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
2886         (D_TRANSMEM): New.
2887         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
2888         * c-pretty-print.c (pp_c_attributes_display): Don't print
2889         transaction_safe in C++.
2891 2015-10-02  Marek Polacek  <polacek@redhat.com>
2893         * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
2895 2015-10-02  Marek Polacek  <polacek@redhat.com>
2897         PR c/64249
2898         * c-common.c (warn_duplicated_cond_add_or_warn): New function.
2899         * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
2900         * c.opt (Wduplicated-cond): New option.
2902 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
2904         * c.opt (std=c11): Do not describe as experimental.
2905         (std=gnu11): Likewise.
2906         (std=iso9899:2011): Likewise.
2908 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
2910         * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
2911         (DEF_FUNCTION_TYPE_VAR_11): Delete.
2913 2015-09-25  Marek Polacek  <polacek@redhat.com>
2915         * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
2916         (ubsan_instrument_shift): Likewise.
2918 2015-09-25  Marek Polacek  <polacek@redhat.com>
2920         PR sanitizer/64906
2921         * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
2923 2015-09-24  Patrick Palka  <ppalka@gcc.gnu.org>
2925         * c-indentation.c (should_warn_for_misleading_indentation):
2926         Compare next_stmt_vis_column with guard_line_first_nws instead
2927         of with guard_line_vis_column.
2929 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2931         PR c/49654
2932         PR c/49655
2933         * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
2934         options and options not valid for the current language.
2936 2015-09-22  Patrick Palka  <ppalka@gcc.gnu.org>
2938         * c-indentation.c (should_warn_for_misleading_indentation):
2939         Float out and consolidate the calls to get_visual_column that
2940         are passed guard_exploc as an argument.  Compare
2941         next_stmt_vis_column with guard_line_first_nws instead of with
2942         body_line_first_nws.
2944 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
2946         * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
2947         Wnamespaces): New C++ warnings.
2949 2015-09-22  Jason Merrill  <jason@redhat.com>
2951         * c-common.h (abi_compat_version_crosses): New.
2952         (warn_abi_version): Declare.
2953         * c-common.c: Define it.
2954         * c-opts.c (c_common_post_options): Handle it.
2955         flag_abi_compat_version defaults to 8.
2957 2015-09-21  Ville Voutilainen  <ville.voutilainen@gmail.com>
2959         Complete the implementation of N4230, Nested namespace definition.
2960         * c-cppbuiltin.c: Add __cpp_namespace_attributes and
2961         __cpp_nested_namespace_definitions.
2963 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2965         * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
2967 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2969         * c-pragma.c (handle_pragma_diagnostic): Use explicit location
2970         when warning.
2971         * c-pragma.h (pragma_lex): Add optional loc argument.
2973 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
2975         * c-format.c (check_format_arg): Adjust to use common block size in all
2976         object pools.
2978 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
2980         * c-format.c (location_from_offset): Update for change in
2981         signature of location_get_source_line.
2982         * c-indentation.c (get_visual_column): Likewise.
2983         (line_contains_hash_if): Likewise.
2985 2015-09-14  Marek Polacek  <polacek@redhat.com>
2987         * c-opts.c (c_common_post_options): Set C++ standard earlier, before
2988         setting various warnings.
2990 2015-09-14  Marek Polacek  <polacek@redhat.com>
2992         * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
2993         a negative value.
2995 2015-09-11  Mark Wielaard  <mjw@redhat.com>
2997         PR c/28901
2998         * c.opt (Wunused-variable): Option from common.opt.
2999         (Wunused-const-variable): New option.
3001 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
3003         PR c++/53184
3004         * c.opt ([Wsubobject-linkage]): Add.
3006 2015-09-03  Martin Sebor  <msebor@redhat.com>
3008         PR c/66516
3009         * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
3010         functions.
3011         * c-common.c (reject_gcc_builtin): Define.
3013 2015-09-02  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3015         PR middle-end/60586
3016         * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
3017         prototype.
3018         * c-gimplify.c (c_gimplify_expr): Added a call to the function
3019         cilk_gimplify_call_params_in_spawned_fn.
3020         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
3021         (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
3022         unwrapping.
3024 2015-08-25  Marek Polacek  <polacek@redhat.com>
3026         PR middle-end/67330
3027         * c-common.c (handle_weak_attribute): Don't check whether the
3028         visibility can be changed here.
3030 2015-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3032         * c-lex.c (c_lex_with_flags): Use explicit locations.
3034 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
3036         * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
3037         c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
3039 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3041         PR middle-end/36757
3042         * c-common.c (check_builtin_function_arguments): Add check
3043         for BUILT_IN_SIGNBIT argument.
3045 2015-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
3047         PR c++/67160
3048         * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
3049         in c++1z mode.
3051 2015-08-17  Marek Polacek  <polacek@redhat.com>
3053         * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
3054         with whitespaces before qualifier names.
3056 2015-08-12  Marek Polacek  <polacek@redhat.com>
3058         PR c++/55095
3059         * c-common.c (maybe_warn_shift_overflow): Properly handle
3060         left-shifting 1 into the sign bit.
3062 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3064         * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
3066 2015-08-06  Andrew Sutton  <andrew.n.sutton@gmail.com>
3067             Braden Obrzut  <admin@maniacsvault.net>
3068             Jason Merrill  <jason@redhat.com>
3070         Add C++ Concepts TS support.
3071         * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
3072         * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
3073         (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
3074         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
3075         * c-opts.c (set_std_cxx1z): Set flag_concepts.
3076         * c.opt (fconcepts): New.
3078 2015-08-02  Martin Sebor  <msebor@redhat.com>
3080         * c.opt (-Wframe-address): New warning option.
3082 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
3084         * c-indentation.c (should_warn_for_misleading_indentation):
3085         Improve heuristics.
3087 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
3089         * c-indentation.c (get_visual_column): Add parameter first_nws,
3090         use it.  Update comment documenting the function.
3091         (is_first_nonwhitespace_on_line): Remove.
3092         (should_warn_for_misleading_indentation): Replace usage of
3093         of is_first_nonwhitespace_on_line with get_visual_column.
3095 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
3097         * c-indentation.h (struct token_indent_info): Define.
3098         (get_token_indent_info): Define.
3099         (warn_for_misleading_information): Declare.
3100         * c-common.h (warn_for_misleading_information): Remove.
3101         * c-identation.c (warn_for_misleading_indentation):
3102         Change declaration to take three token_indent_infos.  Adjust
3103         accordingly.
3104         * c-identation.c (should_warn_for_misleading_indentation):
3105         Likewise.  Bail out early if the body is a compound statement.
3106         (guard_tinfo_to_string): Define.
3108 2015-07-30  Jason Merrill  <jason@redhat.com>
3110         * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
3111         '*' for reference decay.
3113 2015-07-30  Marek Polacek  <polacek@redhat.com>
3115         * c-common.c (warn_tautological_cmp): Bail for float types.
3117 2015-07-27  Marek Polacek  <polacek@redhat.com>
3119         PR bootstrap/67030
3120         * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
3122 2015-07-27  Marek Polacek  <polacek@redhat.com>
3124         PR c++/66555
3125         PR c/54979
3126         * c-common.c (find_array_ref_with_const_idx_r): New function.
3127         (warn_tautological_cmp): New function.
3128         * c-common.h (warn_tautological_cmp): Declare.
3129         * c.opt (Wtautological-compare): New option.
3131 2015-07-23  Marek Polacek  <polacek@redhat.com>
3133         * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
3134         (ubsan_instrument_shift): Likewise.
3136 2015-07-23  Marek Polacek  <polacek@redhat.com>
3138         PR sanitizer/66908
3139         * c-ubsan.c: Include gimplify.h.
3140         (ubsan_instrument_division): Unshare OP0 and OP1.
3141         (ubsan_instrument_shift): Likewise.
3143 2015-07-20  Marek Polacek  <polacek@redhat.com>
3144             Richard Sandiford  <richard.sandiford@arm.com>
3146         PR c++/55095
3147         * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
3148         Use EXPR_LOC_OR_LOC.
3149         (maybe_warn_shift_overflow): New function.
3150         * c-common.h (maybe_warn_shift_overflow): Declare.
3151         * c-opts.c (c_common_post_options): Set warn_shift_overflow.
3152         * c.opt (Wshift-overflow): New option.
3154 2015-07-16  Martin Liska  <mliska@suse.cz>
3156         * c-format.c (static void check_format_info_main): Use
3157         object_allocator instead of pool_allocator.
3158         (check_format_arg): Likewise.
3159         (check_format_info_main): Likewise.
3161 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
3163         * c-opts.c: Remove multiline #include comment.
3165 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
3167         * c-common.c: Fix double word typos.
3169 2015-07-10  Eric Botcazou  <ebotcazou@adacore.com>
3171         * c-ada-spec.h (cpp_operation): Revert latest change.
3172         * c-ada-spec.c (print_ada_declaration): Likewise.  Skip implicit
3173         constructors and destructors.
3175 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
3177         * c-common.h: Adjust includes for flags.h changes.
3178         * stub-objc.c: Likewise.
3180 2015-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3182         * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
3183         * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
3185 2015-07-08  Jakub Jelinek  <jakub@redhat.com>
3187         * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
3188         are to be removed, return NULL rather than original clauses list.
3190 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
3192         * array-notation-common.c: Adjust includes.
3193         * c-ada-spec.c: Likewise.
3194         * c-cilkplus.c: Likewise.
3195         * c-common.h: Likewise.
3196         * c-cppbuiltin.c: Likewise.
3197         * c-dump.c: Likewise.
3198         * c-format.c: Likewise.
3199         * c-gimplify.c: Likewise.
3200         * c-indentation.c: Likewise.
3201         * c-lex.c: Likewise.
3202         * c-omp.c: Likewise.
3203         * c-opts.c: Likewise.
3204         * c-pch.c: Likewise.
3205         * c-ppoutput.c: Likewise.
3206         * c-pragma.c: Likewise.
3207         * c-pretty-print.c: Likewise.
3208         * c-semantics.c: Likewise.
3209         * c-ubsan.c: Likewise.
3210         * cilk.c: Likewise.
3211         * stub-objc.c: Likewise.
3213 2015-07-07  Eric Botcazou  <ebotcazou@adacore.com>
3215         * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
3216         * c-ada-spec.c (print_ada_declaration): Skip move constructors.
3218 2015-07-01  Jason Merrill  <jason@redhat.com>
3220         * c-common.h (D_CXX11): Rename from D_CXX0X.
3221         (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
3222         * c-common.c: Adjust.
3224         * c-opts.c (c_common_post_options): Default to C++14.
3226         * c-opts.c (c_common_post_options): Highest ABI level is now 10.
3228 2015-06-30  Edward Smith-Rowland  <3dw4rd@verizon.net>
3230         Implement N4197 - Adding u8 character literals
3231         * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
3232         CPP_CHAR.
3233         * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
3234         CPP_UTF8CHAR_USERDEF tokens.
3235         * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
3236         and CPP_UTF8CHAR tokens.
3237         (lex_charconst): Treat CPP_UTF8CHAR token.
3239 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3241         PR fortran/66605
3242         * c-common.c (do_warn_unused_parameter): Move here.
3243         * c-common.h (do_warn_unused_parameter): Declare.
3245 2015-06-29  Marek Polacek  <polacek@redhat.com>
3247         PR c/66322
3248         * c-common.c (check_case_bounds): Add bool * parameter.  Set
3249         OUTSIDE_RANGE_P.
3250         (c_add_case_label): Add bool * parameter.  Pass it down to
3251         check_case_bounds.
3252         (c_do_switch_warnings): Add bool parameters.  Implement -Wswitch-bool
3253         warning here.
3254         * c-common.h (c_add_case_label, c_do_switch_warnings): Update
3255         declarations.
3257 2015-06-27  Marek Polacek  <polacek@redhat.com>
3259         * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
3260         or VECTOR_INTEGER_TYPE_P throughout.
3261         * c-gimplify.c: Likewise.
3263 2015-06-26  Marek Polacek  <polacek@redhat.com>
3265         * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
3266         * c-common.c (c_fully_fold_internal): Likewise.
3267         (c_alignof_expr): Likewise.
3268         * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
3269         * c-ubsan.c (ubsan_instrument_bounds): Likewise.
3270         * cilk.c (create_parm_list): Likewise.
3272 2015-06-26  Marek Polacek  <polacek@redhat.com>
3274         * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
3276 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
3278         * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
3279         * c-gimplify.c: Likewise.
3280         * c-pragma.c: Likewise.
3281         * c-ubsan.c: Likewise.
3282         * cilk.c: Likewise.
3284 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3286         * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
3287         ggc_hasher.
3289 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
3291         * cilk.c: Move calls.h after tm.h in the include chain.
3293 2015-06-25  Marek Polacek  <polacek@redhat.com>
3295         * array-notation-common.c: Use VAR_P throughout.
3296         * c-ada-spec.c: Likewise.
3297         * c-common.c: Likewise.
3298         * c-format.c: Likewise.
3299         * c-gimplify.c: Likewise.
3300         * c-omp.c: Likewise.
3301         * c-pragma.c: Likewise.
3302         * c-pretty-print.c: Likewise.
3303         * cilk.c: Likewise.
3305 2015-06-25  Marek Polacek  <polacek@redhat.com>
3307         * cilk.c (extract_free_variables): Use is_global_var.
3309 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
3311         * c-common.c: Don't include target-def.h.
3313 2015-06-23  Marek Polacek  <polacek@redhat.com>
3315         * c-common.c (warn_logical_operator): Use tree_int_cst_equal
3316         when comparing INTEGER_CSTs.
3318 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
3320         * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
3321         * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
3322         (dump_ada_template): Skip partially specialized types.
3324 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
3326         * c-common.c (scalar_to_vector): Use std::swap instead of manually
3327         swapping.
3329 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
3331         * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
3332         * c-ada-spec.c: Likewise.
3333         * c-cilkplus.c: Likewise.
3334         * c-common.c: Likewise.
3335         * c-common.h: Likewise.
3336         * c-cppbuiltin.c: Likewise.
3337         * c-dump.c: Likewise.
3338         * c-format.c: Likewise.
3339         * c-gimplify.c: Likewise.
3340         * c-indentation.c: Likewise.
3341         * c-lex.c: Likewise.
3342         * c-omp.c: Likewise.
3343         * c-opts.c: Likewise.
3344         * c-pch.c: Likewise.
3345         * c-ppoutput.c: Likewise.
3346         * c-pragma.c: Likewise.
3347         * c-pretty-print.c: Likewise.
3348         * c-semantics.c: Likewise.
3349         * c-ubsan.c: Likewise.
3350         * cilk.c: Likewise.
3351         * stub-objc.c: Likewise.
3353 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
3355         PR c++/65168
3356         * c-common.c (c_common_truthvalue_conversion): Warn when
3357         converting an address of a reference to a truth value.
3359 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
3361         * array-notation-common.c : Adjust include files.
3362         * c-ada-spec.c : Likewise.
3363         * c-cilkplus.c : Likewise.
3364         * c-common.c : Likewise.
3365         * c-common.h : Likewise.
3366         * c-cppbuiltin.c : Likewise.
3367         * c-dump.c : Likewise.
3368         * c-format.c : Likewise.
3369         * c-gimplify.c : Likewise.
3370         * c-indentation.c : Likewise.
3371         * c-lex.c : Likewise.
3372         * c-omp.c : Likewise.
3373         * c-opts.c : Likewise.
3374         * c-pch.c : Likewise.
3375         * c-ppoutput.c : Likewise.
3376         * c-pragma.c : Likewise.
3377         * c-pretty-print.c : Likewise.
3378         * c-semantics.c : Likewise.
3379         * c-ubsan.c : Likewise.
3380         * cilk.c : Likewise.
3381         * stub-objc.c : Likewise.
3383 2015-06-08  Marek Polacek  <polacek@redhat.com>
3385         PR c/66415
3386         * c-format.c (location_from_offset): Return LOC if LINE is null.
3388 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
3390         * c-common.h (c_parse_final_cleanups): New prototype.
3391         * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
3393 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
3395         * c-common.c (noplt): New attribute.
3396         (handle_noplt_attribute): New handler.
3398 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
3400         * array-notation-common.c: Adjust includes for restructured coretypes.h.
3401         * c-ada-spec.c: Likewise.
3402         * c-cilkplus.c: Likewise.
3403         * c-common.c: Likewise.
3404         * c-common.h: Likewise.
3405         * c-cppbuiltin.c: Likewise.
3406         * c-dump.c: Likewise.
3407         * c-format.c: Likewise.
3408         * c-gimplify.c: Likewise.
3409         * c-indentation.c: Likewise.
3410         * c-lex.c: Likewise.
3411         * c-omp.c: Likewise.
3412         * c-opts.c: Likewise.
3413         * c-pch.c: Likewise.
3414         * c-ppoutput.c: Likewise.
3415         * c-pragma.c: Likewise.
3416         * c-pretty-print.c: Likewise.
3417         * c-semantics.c: Likewise.
3418         * c-ubsan.c: Likewise.
3419         * cilk.c: Likewise.
3420         * stub-objc.c: Likewise.
3422 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
3424         PR c/66220:
3425         * c-indentation.c (should_warn_for_misleading_indentation): Use
3426         expand_location rather than expand_location_to_spelling_point.
3427         Don't warn if the guarding statement is more indented than the
3428         next/body stmts.
3430 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
3432         * c-indentation.c (warn_for_misleading_indentation): Bail out
3433         immediately if -Wmisleading-indentation isn't enabled.
3435 2015-06-01  Martin Liska  <mliska@suse.cz>
3437         * c-format.c (check_format_arg):Use new type-based pool allocator.
3438         (check_format_info_main) Likewise.
3440 2015-05-31  Eric Botcazou  <ebotcazou@adacore.com>
3442         * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
3443         (has_nontrivial_methods): Likewise.
3445 2015-05-25  Marek Polacek  <polacek@redhat.com>
3447         * c-ubsan.c (ubsan_instrument_shift): Use type0.
3449 2015-05-22  Marek Polacek  <polacek@redhat.com>
3451         PR c/47043
3452         * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
3454 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3456         * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
3457         STACK_GROWS_DOWNWARD.
3459 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3461         * c-cppbuiltin.c (c_cpp_builtins): Check the value of
3462         STACK_GROWS_DOWNWARD rather than if it is defined.
3464 2015-05-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3466         PR c/52952
3467         * c-format.c (location_column_from_byte_offset): New.
3468         (location_from_offset): New.
3469         (struct format_wanted_type): Add offset_loc field.
3470         (check_format_info): Move handling of location for extra arguments
3471         closer to the point of warning.
3472         (check_format_info_main): Pass the result of location_from_offset
3473         to warning_at.
3474         (format_type_warning): Pass the result of location_from_offset
3475         to warning_at.
3477 2015-05-20  Marek Polacek  <polacek@redhat.com>
3479         * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
3481 2015-05-20  Marek Polacek  <polacek@redhat.com>
3483         * c-ada-spec.c (dump_sloc): Use DECL_P.
3485 2015-05-20  Marek Polacek  <polacek@redhat.com>
3487         * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
3488         * c-common.c: Likewise.
3490 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
3492         * c-common.h (fe_file_change): Strengthen param from
3493         const line_map * to const line_map_ordinary *.
3494         (pp_file_change): Likewise.
3495         * c-lex.c (fe_file_change): Likewise.
3496         (cb_define): Use linemap_check_ordinary when invoking
3497         SOURCE_LINE.
3498         (cb_undef): Likewise.
3499         * c-opts.c (c_finish_options): Use linemap_check_ordinary when
3500         invoking cb_file_change.
3501         (c_finish_options): Likewise.
3502         (push_command_line_include): Likewise.
3503         (cb_file_change): Strengthen param "new_map" from
3504         const line_map * to const line_map_ordinary *.
3505         * c-ppoutput.c (cb_define): Likewise for local "map".
3506         (pp_file_change): Likewise for param "map" and local "from".
3508 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
3510         * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
3512 2015-05-18  Tom de Vries  <tom@codesourcery.com>
3514         * c-common.c (build_va_arg_1): New function.
3515         (build_va_arg): Add address operator to va_list operand if necessary.
3517 2015-05-15  Mikhail Maltsev  <maltsevm@gmail.com>
3519         PR c/48956
3520         * c-common.c (int_safely_convertible_to_real_p): Define.
3521         (unsafe_conversion_p): Check conversions involving complex types.
3522         (conversion_warning): Add new warning message for conversions which
3523         discard imaginary component.
3524         * c-common.h: (enum conversion_safety): Add new enumerator for such
3525         conversions.
3527 2015-05-14  Marek Polacek  <polacek@redhat.com>
3529         PR c/66066
3530         PR c/66127
3531         * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
3532         (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
3533         C_MAYBE_CONST_EXPR_INT_OPERANDS set.  Add FOR_INT_CONST argument and
3534         use it.  If FOR_INT_CONST, require that all evaluated operands be
3535         INTEGER_CSTs.
3537 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
3539         * c-common.h (warn_for_misleading_indentation): New prototype.
3540         * c-indentation.c: New file.
3541         * c.opt (Wmisleading-indentation): New option.
3543 2015-05-12  Tom de Vries  <tom@codesourcery.com>
3545         PR tree-optimization/66010
3546         * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
3548 2015-05-09  Jason Merrill  <jason@redhat.com>
3550         * c-opts.c (c_common_post_options): Also clear
3551         cpp_opts->cpp_warn_cxx11_compat.
3553         * c-common.h (enum cxx_dialect): Add cxx_unset.
3554         * c-common.c (cxx_dialect): Initialize to cxx_unset.
3555         * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
3557         * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
3558         (std=gnu++0x): Mark as Undocumented.
3559         (std=gnu++1y): Add deprecated message.
3561 2015-05-08  Jason Merrill  <jason@redhat.com>
3563         * c.opt (Wc++11-compat): Make primary.  Rename var warn_cxx11_compat.
3564         * c-opts.c: Adjust.
3566         * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
3568 2015-05-08  Marek Polacek  <polacek@redhat.com>
3570         PR c/64918
3571         * c.opt (Woverride-init-side-effects): New option.
3573 2015-05-07  Marek Polacek  <polacek@redhat.com>
3575         PR c/65179
3576         * c-common.c (c_fully_fold_internal): Warn when left shifting a
3577         negative value.
3578         * c.opt (Wshift-negative-value): New option.
3579         * c-opts.c (c_common_post_options): Set warn_shift_negative_value
3580         when -Wextra and C99/C++11 mode.
3582 2015-05-07  Marek Polacek  <polacek@redhat.com>
3583             Martin Uecker  <uecker@eecs.berkeley.edu>
3585         * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
3586         flexible member array-like members if SANITIZE_BOUNDS_STRICT.
3588 2015-05-05  Jason Merrill  <jason@redhat.com>
3590         * c.opt (Wterminate): New.
3592 2015-04-30  Marek Polacek  <polacek@redhat.com>
3594         * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
3595         require that the non-constant be of a boolean type.
3597 2015-04-29  Josh Triplett  <josh@joshtriplett.org>
3599         * c-common.c (handle_section_attribute): Refactor to reduce
3600         nesting and distinguish between error cases.
3602 2015-04-29  Marek Polacek  <polacek@redhat.com>
3604         PR c/64610
3605         * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
3606         with 0/1.
3608 2015-04-29  Jakub Jelinek  <jakub@redhat.com>
3610         * c-common.h (omp_clause_mask): Unconditionally define as a class.
3611         Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
3612         HOST_BITS_PER_WIDE_INT.
3614 2015-04-28  Tom de Vries  <tom@codesourcery.com>
3616         PR tree-optimization/65887
3617         * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
3619 2015-04-28  Eric Botcazou  <ebotcazou@adacore.com>
3620             Pierre-Marie de Rodat  <derodat@adacore.com>
3622         * c-ada-spec.c (in_function): Delete.
3623         (dump_generic_ada_node): Do not change in_function and remove the
3624         redundant code dealing with it.
3625         (print_ada_declaration): Do not change in_function.  Use INDENT_INCR.
3626         (print_ada_methods): Output the static member functions in a nested
3627         package after the regular methods as well as associated renamings.
3629 2015-04-24  Marek Polacek  <polacek@redhat.com>
3631         PR c/65830
3632         * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
3633         and OPT_Wshift_count_overflow.
3635         PR c/63357
3636         * c-common.c (warn_logical_operator): Warn if the operands have the
3637         same expressions.
3639 2015-04-24  Marek Polacek  <polacek@redhat.com>
3641         PR c/61534
3642         * c-common.c (warn_logical_operator): Bail if either operand comes
3643         from a macro expansion.
3645 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3647         PR target/55143
3648         * c-common.c (c_default_pointer_mode): Add definition.
3649         * c-common.h (c_default_pointer_mode): Add declaration.
3651 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
3653         * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
3654         on record_builtin_type argument.
3656 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
3658         PR c/65120
3659         * c-common.c (warn_logical_not_parentheses): Don't warn for
3660         !x == 0 or !x != 0.
3662 2015-03-07  Marek Polacek  <polacek@redhat.com>
3664         PR sanitizer/65280
3665         * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
3666         before trying to figure out whether we have a flexible array member.
3668 2015-03-06  Eric Botcazou  <ebotcazou@adacore.com>
3669             Jonathan Wakely  <jwakely.gcc@gmail.com>
3671         * c-ada-spec.c (dump_ada_double_name): Fix pasto.
3673 2015-03-05  Eric Botcazou  <ebotcazou@adacore.com>
3675         PR ada/65319
3676         * c-ada-spec.c (print_destructor): Remove obsolete code.
3678 2015-03-01  Eric Botcazou  <ebotcazou@adacore.com>
3680         * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
3681         (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
3682         DECL_TEMPLATE_RESULT emulations.
3683         (dump_ada_template)): Add guard for TYPE_METHODS.
3685 2015-02-27  Marek Polacek  <polacek@redhat.com>
3687         PR c/65040
3688         * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
3690 2015-02-27  Kai Tietz  <ktietz@redhat.com>
3692         PR c/35330
3693         * c-pragma.c (handle_pragma_weak): Do not try to create
3694         weak/alias of declarations not being function, or variable
3695         declarations.
3697 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
3699         PR libgomp/64625
3700         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
3701         Remove macros.
3702         (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
3704 2015-02-16  Marek Polacek  <polacek@redhat.com>
3706         PR c/65066
3707         * c-format.c (check_format_types): Handle null param.
3709 2015-02-13  Marek Polacek  <polacek@redhat.com>
3711         PR c/65040
3712         * c-format.c (check_format_types): Don't warn about different
3713         signedness if the original value is in the range of WANTED_TYPE.
3715 2015-02-12  Jason Merrill  <jason@redhat.com>
3717         PR c++/64956
3718         * c-opts.c (c_common_post_options): Change flag_abi_version from 0
3719         to the current highest version.
3720         * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
3722 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
3724         PR c/64824
3725         PR c/64868
3726         * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
3727         instead of RDIV_EXPR.  Use build_binary_op instead of
3728         build2_loc.
3730 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
3732         * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
3733         to pass input_location as first argument.
3735 2015-01-23  Tom de Vries  <tom@codesourcery.com>
3737         PR libgomp/64672
3738         * c.opt (fopenacc): Mark as LTO option.
3740 2015-01-23  Tom de Vries  <tom@codesourcery.com>
3742         PR libgomp/64707
3743         * c.opt (fopenmp): Mark as LTO option.
3745 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
3747         PR c/63307
3748         * cilk.c (fill_decls_vec): Only put decls into vector v.
3749         (compare_decls): Fix up formatting.
3751 2015-01-21  Igor Zamyatin  <igor.zamyatin@intel.com>
3753         PR c/63307
3754         * cilk.c: Include vec.h.
3755         (struct cilk_decls): New structure.
3756         (wrapper_parm_cb): Split this function to...
3757         (fill_decls_vec): ...this...
3758         (create_parm_list): ...and this.
3759         (compare_decls): New function.
3760         (for_local_cb): Remove.
3761         (wrapper_local_cb): Ditto.
3762         (build_wrapper_type): For now first traverse and fill vector of
3763         declarations then sort it and then deal with sorted vector.
3764         (cilk_outline): Ditto.
3765         (declare_one_free_variable): Ditto.
3767 2015-01-21  Jason Merrill  <jason@redhat.com>
3769         PR c++/64629
3770         * c-format.c (check_format_arg): Call decl_constant_value.
3772 2015-01-19  Martin Liska  <mliska@suse.cz>
3774         * c-common.c (handle_noicf_attribute): New function.
3776 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
3777             Bernd Schmidt  <bernds@codesourcery.com>
3778             James Norris  <jnorris@codesourcery.com>
3779             Cesar Philippidis  <cesar@codesourcery.com>
3780             Ilmir Usmanov  <i.usmanov@samsung.com>
3781             Jakub Jelinek  <jakub@redhat.com>
3783         * c.opt (fopenacc): New option.
3784         * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
3785         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
3786         New macros.
3787         * c-common.h (c_finish_oacc_wait): New prototype.
3788         * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
3789         (c_finish_oacc_wait): New function.
3790         * c-pragma.c (oacc_pragmas): New variable.
3791         (c_pp_lookup_pragma, init_pragma): Handle it.
3792         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
3793         PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
3794         PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
3795         PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
3796         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
3797         PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
3798         PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
3799         PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
3800         PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
3801         PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
3802         PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
3803         PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
3804         PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
3805         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
3806         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
3807         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
3808         PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
3809         PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
3810         PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
3811         PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
3812         PRAGMA_OACC_CLAUSE_WORKER.
3814 2015-01-14  Marcos Diaz  <marcos.diaz@tallertechnologies.com>
3816         * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
3817         for the new option fstack-protector_explicit.
3818         * c-common.c (c_common_attribute_table): Add stack_protect attribute.
3819         (handle_stack_protect_attribute): New function.
3821 2015-01-13  Martin Uecker  <uecker@eecs.berkeley.edu>
3823         * c.opt: New option -Warray-bounds=.
3825 2015-01-09  Michael Collison  <michael.collison@linaro.org>
3827         * array-notation-common.c: Include hash-set.h, machmode.h,
3828         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3829         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
3830         * c-ada-spec.c: Ditto.
3831         * c-cilkplus.c: Ditto.
3832         * c-common.c: Include input.h due to flattening of tree.h.
3833         Define macro GCC_C_COMMON_C.
3834         * c-common.h: Flatten tree.h header files into c-common.h.
3835         Remove include of tree-core.h.
3836         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
3837         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3838         fold-const.h, wide-int.h, and inchash.h due to
3839         flattening of tree.h.
3840         * c-dump.c: Ditto.
3841         * c-format.c: Flatten tree.h header files into c-common.h.
3842         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
3843         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3844         fold-const.h, wide-int.h, and inchash.h due to
3845         flattening of tree.h.
3846         * c-dump.c: Include hash-set.h, machmode.h,
3847         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3848         fold-const.h, wide-int.h, and inchash.h due to
3849         flattening of tree.h.
3850         * c-format.c: Include hash-set.h, machmode.h,
3851         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3852         fold-const.h, wide-int.h, inchash.h and real.h due to
3853         flattening of tree.h.
3854         * c-gimplify.c: Include hash-set.h, machmode.h,
3855         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3856         fold-const.h, wide-int.h, and inchash.h due to
3857         flattening of tree.h.
3858         * cilk.c: Ditto.
3859         * c-lex.c: Ditto.
3860         * c-omp.c: Ditto.
3861         * c-opts.c: Ditto.
3862         * c-pch.c: Ditto.
3863         * c-ppoutput.c: Ditto.
3864         * c-pragma.c: Ditto.
3865         * c-pretty-print.c: Ditto.
3866         * c-semantics.c: Ditto.
3867         * c-ubsan.c: Ditto.
3868         * stub-objc.c: Ditto.
3870 2015-01-08  Jason Merrill  <jason@redhat.com>
3872         * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
3873         do_ubsan_in_current_function.
3874         (ubsan_maybe_instrument_reference_or_call): Likewise.
3875         * c-ubsan.h: Declare it.
3877 2015-01-08  Mike Stump  <mikestump@comcast.net>
3879         * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
3881 2015-01-07  Marek Polacek  <polacek@redhat.com>
3883         PR c/64440
3884         * c-common.c (c_fully_fold_internal): Warn for division and modulo
3885         if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
3887 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
3889         PR c++/31397
3890         * c.opt (Wsuggest-override): New option.
3892 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
3894         Update copyright years.
3896 2015-01-05  Marek Polacek  <polacek@redhat.com>
3898         PR c/64423
3899         * c-common.c (warn_array_subscript_with_type_char): Add location_t
3900         parameter.  Use it.
3901         * c-common.h (warn_array_subscript_with_type_char): Update
3902         declaration.
3904 2014-12-20  Edward Smith-Rowland  <3dw4rd@verizon.net>
3906         * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
3907         Control macro with flag_sized_deallocation.
3909 2014-12-20  Martin Uecker  <uecker@eecs.berkeley.edu>
3911         * c.opt (Wdiscarded-array-qualifiers): New option.
3913 2014-12-19  Jakub Jelinek  <jakub@redhat.com>
3915         PR preprocessor/63831
3916         * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
3917         and __has_cpp_attribute here.
3918         * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
3919         c_common_has_attribute.
3920         * c-common.h (c_common_has_attribute): New prototype.
3921         * c-lex.c (init_c_lex): Set cb->has_attribute to
3922         c_common_has_attribute instead of cb_has_attribute.
3923         (get_token_no_padding): New function.
3924         (cb_has_attribute): Renamed to ...
3925         (c_common_has_attribute): ... this.  No longer static.  Use
3926         get_token_no_padding, require ()s, don't build TREE_LIST
3927         unnecessarily, fix up formatting, adjust diagnostics, call
3928         init_attributes.
3930 2014-12-15  Jason Merrill  <jason@redhat.com>
3932         * c.opt (-fsized-deallocation, -Wc++14-compat): New.
3933         (-Wsized-deallocation): New.
3934         * c-opts.c (c_common_post_options): -fsized-deallocation defaults
3935         to on in C++14 and up.
3937 2014-12-11  Jason Merrill  <jason@redhat.com>
3939         * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
3941         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
3942         we aren't complaining about VLAs.
3944 2014-12-06  Marek Polacek  <polacek@redhat.com>
3946         PR tree-optimization/64183
3947         * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
3948         shift-expression if it is integer_type_node.  Use types_compatible_p.
3950 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
3952         * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
3953         last argument from create_tmp_var_raw and create_tmp_var calls.
3954         * cilk.c (gimplify_cilk_spawn): Likewise.
3955         * c-omp.c (c_finish_omp_atomic): Likewise.
3957 2014-11-28  Marek Polacek  <polacek@redhat.com>
3959         * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
3960         instead of unsigned_type_node.
3962 2014-11-28  Marek Polacek  <polacek@redhat.com>
3964         PR c/63862
3965         * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
3966         to op1_utype.
3967         * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
3968         expression to unsigned_type_node.
3970 2014-11-20  Mark Wielaard  <mjw@redhat.com>
3972         PR debug/38757
3973         * c-opts.c (set_std_c89): Set lang_hooks.name.
3974         (set_std_c99): Likewise.
3975         (set_std_c11): Likewise.
3976         (set_std_cxx98): Likewise.
3977         (set_std_cxx11): Likewise.
3978         (set_std_cxx14): Likewise.
3979         (set_std_cxx1z): Likewise.
3981 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
3983         PR target/63764
3984         * c-common.h (convert_vector_to_pointer_for_subscript): Change
3985         return type to bool.
3986         * c-common.c: Include gimple-expr.h.
3987         (convert_vector_to_pointer_for_subscript): Change return type to
3988         bool.  If *vecp is not lvalue_p and has VECTOR_TYPE, return true
3989         and copy it into a TARGET_EXPR and use that instead of *vecp
3990         directly.
3992 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
3994         Merger of git branch "gimple-classes-v2-option-3".
3995         * ChangeLog.gimple-classes: New.
3996         * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
3997         from being just a vec<gimple> to a vec<gbind *>.
3999 2014-11-18  Jakub Jelinek  <jakub@redhat.com>
4001         PR sanitizer/63813
4002         * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
4003         argument to ptype, set type to TREE_TYPE (ptype).  Don't call
4004         get_pointer_alignment for non-pointers.  Use ptype, or if it is
4005         reference type, corresponding pointer type, as type of kind
4006         argument.
4007         (ubsan_maybe_instrument_reference,
4008         ubsan_maybe_instrument_member_call): Adjust callers.
4010 2014-11-15  Marek Polacek  <polacek@redhat.com>
4012         PR middle-end/63884
4013         * array-notation-common.c (is_sec_implicit_index_fn): Return false
4014         for NULL fndecl.
4015         (extract_array_notation_exprs): Return for NULL node.
4017 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
4019         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
4020         undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
4022 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
4024         PR c/59708
4025         * c-common.c (check_builtin_function_arguments): Handle
4026         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
4028 2014-11-10  Andi Kleen  <ak@linux.intel.com>
4030         PR c/60804
4031         * c-common.h (check_no_cilk): Declare.
4032         * cilk.c (get_error_location): New function.
4033         (check_no_cilk): Dito.
4035 2014-11-10  Andi Kleen  <ak@linux.intel.com>
4037         * cilk.c (recognize_spawn): Use expression location
4038         for error message.
4040 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
4042         * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
4044 2014-11-10  Edward Smith-Rowland  <3dw4rd@verizon.net>
4046         * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
4047         (__cpp_rtti, __cpp_exceptions): New macros for C++98;
4048         (__cpp_range_based_for, __cpp_initializer_lists,
4049         __cpp_delegating_constructors, __cpp_nsdmi,
4050         __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
4051         for C++11; (__cpp_attribute_deprecated): Remove in favor of
4052         __has_cpp_attribute.
4053         * c-lex.c (cb_has_attribute): New callback CPP function;
4054         (init_c_lex): Set has_attribute callback.
4056 2014-11-04  Richard Biener  <rguenther@suse.de>
4058         * c-common.c (shorten_compare): Do not shorten mixed
4059         DFP and non-DFP compares.
4061 2014-11-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
4063         * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
4064         * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
4065         Commentary and rearrangement of tests.
4066         * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
4067         Commentary and rearrangement of tests.
4068         * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
4069         * g++.dg/cpp1y/feat-cxx98.C: Commentary.
4071 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
4073         * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
4074         enum from machine_mode.
4076 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
4078         * c-common.c: Adjust include files.
4079         * c-gimplify.c: Ditto.
4080         * cilk.c: Ditto.
4081         * c-pragma.c: Ditto.
4082         * c-ubsan.c: Ditto.
4084 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
4086         * c-gimplify.c: Adjust include files.
4088 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4090         PR c++/53061
4091         * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
4092         c_common_initialize_diagnostics.
4093         * c-common.h: Likewise.
4095 2014-10-24  Marek Polacek  <polacek@redhat.com>
4097         PR c/56980
4098         * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
4099         print "struct"/"union"/"enum" for typedefed names.
4101 2014-10-23  Marek Polacek  <polacek@redhat.com>
4103         * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
4104         in unsigned type.
4106 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
4107             Yury Gribov  <y.gribov@samsung.com>
4109         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4110         ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
4111         instead of flag_sanitize_recover as bool flag.
4113 2014-10-21  Kirill Yukhin  <kirill.yukhin@intel.com>
4115         * cilk.c: Revert previous change.
4117 2014-10-20  Igor Zamyatin  <igor.zamyatin@intel.com>
4119         PR c/63307
4120         * cilk.c: Include vec.h.
4121         (struct cilk_decls): New structure.
4122         (wrapper_parm_cb): Split this function to...
4123         (fill_decls_vec): ...this...
4124         (create_parm_list): ...and this.
4125         (compare_decls): New function.
4126         (for_local_cb): Remove.
4127         (wrapper_local_cb): Ditto.
4128         (build_wrapper_type): For now first traverse and fill vector of
4129         declarations then sort it and then deal with sorted vector.
4130         (cilk_outline): Ditto.
4131         (declare_one_free_variable): Ditto.
4133 2014-10-17  Marek Polacek  <polacek@redhat.com>
4135         * c-opts.c (c_common_post_options): Set warn_implicit_int.
4136         * c.opt (Wimplicit-int): Initialize to -1.
4138 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
4140         * c-pragma.c: Adjust include files.
4141         * c-semantics.c: Likewise.
4143 2014-10-16  DJ Delorie  <dj@redhat.com>
4145         * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
4146         multiples of bytes.
4148 2014-10-14  Jason Merrill  <jason@redhat.com>
4150         PR c++/63455
4151         * c-common.h (CPP_PREPARSED_EXPR): New.
4152         (N_CP_TTYPES): Adjust.
4154 2014-10-15  Marek Polacek  <polacek@redhat.com>
4156         * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
4158 2014-10-14  DJ Delorie  <dj@redhat.com>
4160         * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
4161         types, not just __int128.
4162         * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
4163         types, not just __int128.
4164         (cpp_atomic_builtins): Round pointer sizes up.
4165         (type_suffix): Use type precision, not specific types.
4166         * c-common.c (c_common_reswords): Remove __int128 special case.
4167         (c_common_type_for_size): Check for all __intN types, not just
4168         __int128.
4169         (c_common_type_for_mode): Likewise.
4170         (c_common_signed_or_unsigned_type): Likewise.
4171         (c_build_bitfield_integer_type): Likewise.
4172         (c_common_nodes_and_builtins): Likewise.
4173         (keyword_begins_type_specifier): Likewise.
4174         * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
4175         __intN variants.
4177 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
4179         * c-common.c: Use hash_table instead of hashtab.
4181 2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>
4183         * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
4184         C++11 section.
4186 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
4188         PR c++/54427
4189         PR c++/57198
4190         PR c++/58845
4191         * c-common.c (warn_logical_operator): Punt for vectors.
4193 2014-10-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
4195         Implement SD-6: SG10 Feature Test Recommendations
4196         * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
4197         macros and the __has_header macro.
4199 2014-09-30  Jason Merrill  <jason@redhat.com>
4201         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
4202         RID_IS_TRIVIALLY_CONSTRUCTIBLE.
4203         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4205         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
4206         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4208         * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
4209         * c-common.c (c_common_reswords): Remove __is_convertible_to.
4211 2014-09-24  Marek Polacek  <polacek@redhat.com>
4213         PR c/61405
4214         PR c/53874
4215         * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
4217 2014-09-23  Andi Kleen  <ak@linux.intel.com>
4219         * c-common.c (handle_no_reorder_attribute): New function.
4220         (c_common_attribute_table): Add no_reorder attribute.
4222 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
4224         * c-cppbuiltin.c (c_cpp_builtins): Define
4225         __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
4226         modes.
4228 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
4230         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
4231         for supported floating-point modes.
4233 2014-09-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4235         * c.opt (Wpsabi): Use LangEnabledBy.
4236         * c-opts.c (c_common_handle_option): Do not handle here.
4238 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
4240         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
4241         macros for floating-point modes.
4243 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
4245         PR target/58757
4246         * c-cppbuiltin.c (builtin_define_float_constants): Correct
4247         __*_DENORM_MIN__ without denormals.
4249 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
4251         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4252         ubsan_instrument_vla, ubsan_instrument_return): Adjust
4253         ubsan_create_data callers.
4254         (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
4255         index is constant or BIT_AND_EXPR with constant mask and is
4256         small enough for the bound.
4257         * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
4258         ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
4260 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4262         * c.opt: Add CppReason to various flags.
4263         (Wdate-time): Re-sort.
4264         * c-common.c: Include c-common.h earlier.
4265         (struct reason_option_codes_t): Delete.
4266         (c_option_controlling_cpp_error): Prefix global type and struct
4267         with cpp_.
4269 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4271         * c.opt (Wnormalized): New.
4272         (Wnormalized=): Use Enum and Reject Negative.
4273         * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
4275 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
4277         * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
4278         digits of floating-point modes if -fbuilding-libgcc.
4280 2014-09-05  Joseph Myers  <joseph@codesourcery.com>
4282         * c-cppbuiltin.c (c_cpp_builtins): Also define
4283         __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
4284         __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
4285         __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
4286         __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
4287         __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
4288         __LIBGCC_STACK_GROWS_DOWNWARD__,
4289         __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
4290         __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
4291         __LIBGCC_DWARF_FRAME_REGISTERS__,
4292         __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
4293         __LIBGCC_STACK_POINTER_REGNUM__ and
4294         __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
4295         (builtin_define_with_value): Handle backslash-escaping in string
4296         macro values.
4298 2014-09-05  Richard Biener  <rguenther@suse.de>
4300         PR middle-end/63148
4301         * c-format.c (check_format_arg): Properly handle
4302         effectively signed POINTER_PLUS_EXPR offset.
4304 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4306         * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
4307         Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
4308         (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
4309         and Init.
4310         * c-opts.c (c_common_handle_option): Do not handle here.
4311         (sanitize_cpp_opts): Likewise.
4312         * c-common.c (struct reason_option_codes_t): Handle
4313         CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
4315 2014-09-03  Marek Polacek  <polacek@redhat.com>
4317         * c.opt (Wlogical-not-parentheses): Enable by -Wall.
4319 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
4320             Balaji V. Iyer  <balaji.v.iyer@intel.com>
4321             Igor Zamyatin  <igor.zamyatin@intel.com>
4323         * c-cilkplus.c (cilk_for_number_of_iterations): New function.
4324         * c-common.c (c_common_reswords): Added _Cilk_for.
4325         * c-common.h (enum rid): Added RID_CILK_FOR.
4326         (cilk_for_number_of_iterations): Add declaration.
4327         * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
4328         CILK_FOR.
4329         * c-pragma.c (init_pragma): Register "grainsize" pragma.
4330         * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
4332 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4334         * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
4335         Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
4336         Wundef): Use CPP, Var and Init.
4337         * c-opts.c (c_common_handle_option): Do not handle the above flags here.
4339 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4341         * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
4342         * c-opts.c (c_common_handle_option): Do not handle here.
4344 2014-08-25  Jason Merrill  <jason@redhat.com>
4346         * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
4347         -std=c++14 and -std=gnu++14, rather than the reverse.
4348         * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
4349         OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
4350         * c-common.h (cxx_dialect): Remove cxx1y.
4352 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
4354         * c-common.h (enum cxx_dialect): Add cxx14.
4355         * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
4356         * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
4357         cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
4359 2014-08-22  Jason Merrill  <jason@redhat.com>
4361         * c.opt (std=gnu++17): Fix alias.
4363 2014-08-22  Marek Polacek  <polacek@redhat.com>
4365         PR c++/62199
4366         * c-common.c (warn_logical_not_parentheses): Don't check LHS.  Don't
4367         check for vector types.  Drop LHS argument.
4368         * c-common.h (warn_logical_not_parentheses): Adjust.
4370 2014-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4372         * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
4373         (Wmultichar): Likewise.
4374         (Wdate-time): Use C-family languages instead of Common. Use CPP
4375         and Var.
4376         * c-opts.c (c_common_handle_option): Do not handle the above
4377         options here.
4378         (sanitize_cpp_opts): Likewise.
4380 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4382         PR fortran/44054
4383         * c-opts.c: Include tree-diagnostics.h.
4384         (c_diagnostic_finalizer): New.
4385         (c_common_initialize_diagnostics): Use it.
4387 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4389         PR preprocessor/51303
4390         * c-common.c (struct reason_option_codes_t option_codes):
4391         Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
4393 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4395         PR c/60975
4396         PR c/53063
4397         * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
4398         * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
4399         (c_common_post_options): Call init_global_opts_from_cpp.
4400         (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
4402 2014-08-19  Marek Polacek  <polacek@redhat.com>
4404         PR c++/62153
4405         * c-common.c (maybe_warn_bool_compare): New function.
4406         * c-common.h (maybe_warn_bool_compare): Declare.
4407         * c.opt (Wbool-compare): New option.
4409 2014-08-19  Marek Polacek  <polacek@redhat.com>
4411         * c.opt (Wc99-c11-compat): New option.
4413 2014-08-19  Marek Polacek  <polacek@redhat.com>
4415         * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
4416         to warn_c90_c99_compat.
4417         * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
4418         to -1.
4420 2014-08-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4421             Steven Bosscher  <steven@gcc.gnu.org>
4423         PR c/52952
4424         * c-format.c: Add extra_arg_loc and format_string_loc to struct
4425         format_check_results.
4426         (check_function_format): Use true and add comment for boolean
4427         argument.
4428         (finish_dollar_format_checking): Use explicit location when warning.
4429         (check_format_info): Likewise.
4430         (check_format_arg): Set extra_arg_loc and format_string_loc.
4431         (check_format_info_main): Use explicit location when warning.
4432         (check_format_types): Pass explicit location.
4433         (format_type_warning): Likewise.
4435 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4437         PR fortran/44054
4438         * c-format.c: Handle Fortran flags.
4440 2014-08-12  Igor Zamyatin  <igor.zamyatin@intel.com>
4442         PR other/61962
4443         * array-notation-common.c (find_rank): Added handling for other
4444         types of references.
4446 2014-08-10  Marek Polacek  <polacek@redhat.com>
4448         PR c/51849
4449         * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
4450         * c.opt (Wc90-c99-compat): Add option.
4452 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
4454         * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
4456 2014-08-03  Marek Polacek  <polacek@redhat.com>
4458         * c-common.c (check_case_value):  Add location_t parameter.  Use it.
4459         (c_add_case_label): Pass loc to check_case_value.
4461 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
4463         * cilk.c: Use hash_map instead of pointer_map.
4465 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
4467         * c-gimplify.c: Use hash_set instead of pointer_set.
4469 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
4471         PR middle-end/61455
4472         * array-notation-common.c (extract_array_notation_exprs): Handling
4473         of DECL_EXPR added.
4475 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
4477         * c-common.h (min_align_of_type): Removed prototype.
4478         * c-common.c (min_align_of_type): Removed.
4479         * c-ubsan.h (ubsan_maybe_instrument_reference,
4480         ubsan_maybe_instrument_member_call): New prototypes.
4481         * c-ubsan.c: Include stor-layout.h and builtins.h.
4482         (ubsan_maybe_instrument_reference_or_call,
4483         ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
4484         functions.
4486 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
4488         PR c++/60517
4489         * c.opt (-Wreturn-local-addr): Move to common.opt.
4491 2014-07-30  Jason Merrill  <jason@redhat.com>
4493         PR c++/61659
4494         PR c++/61687
4495         Revert:
4496         * c.opt (-fuse-all-virtuals): New.
4498 2014-07-30  Tom Tromey  <tromey@redhat.com>
4500         PR c/59855
4501         * c.opt (Wdesignated-init): New option.
4502         * c-common.c (c_common_attribute_table): Add "designated_init".
4503         (handle_designated_init): New function.
4505 2014-07-24  Marek Polacek  <polacek@redhat.com>
4507         PR c/57653
4508         * c-opts.c (c_finish_options): If -imacros is in effect, return.
4510 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
4512         PR preprocessor/60723 - missing system-ness marks for macro tokens
4513         * c-ppoutput.c (struct print::prev_was_system_token): New data
4514         member.
4515         (init_pp_output): Initialize it.
4516         (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
4517         (do_line_change): Return a flag saying if a line marker was
4518         emitted or not.
4519         (scan_translation_unit): Detect if the system-ness of the token we
4520         are about to emit is different from the one of the previously
4521         emitted token.  If so, emit a line marker.  Avoid emitting useless
4522         adjacent line markers.  Avoid emitting line markers for tokens
4523         originating from the expansion of built-in macros.
4524         (scan_translation_unit_directives_only): Adjust.
4526 2014-07-15  Marek Polacek  <polacek@redhat.com>
4528         * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
4529         TYPE_MAX_VALUE is NULL.
4531 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
4533         PR middle-end/61294
4534         * c.opt (Wmemset-transposed-args): New warning.
4536 2014-07-10  Jason Merrill  <jason@redhat.com>
4538         PR c++/61659
4539         PR c++/61687
4540         * c.opt (-fuse-all-virtuals): New.
4542 2014-07-09  Richard Biener  <rguenther@suse.de>
4544         PR c-family/61741
4545         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4546         using unsigned arithmetic if overflow does not wrap instead of
4547         if overflow is undefined.
4549 2014-07-06  Marek Polacek  <polacek@redhat.com>
4551         PR c/6940
4552         * c.opt (Wsizeof-array-argument): New option.
4554 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
4556         * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
4557         comments->count <= 1, as comments->entries might be NULL.
4559 2014-07-01  Marek Polacek  <polacek@redhat.com>
4561         * c.opt (Wint-conversion): New option.
4563 2014-07-01  Marek Polacek  <polacek@redhat.com>
4565         PR c/58286
4566         * c.opt (Wincompatible-pointer-types): New option.
4568 2014-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
4570         PR c++/51400
4571         * c-common.c (handle_noreturn_attribute, handle_const_attribute):
4572         Do not discard TYPE_QUALS of type.
4574 2014-06-26  Jason Merrill  <jason@redhat.com>
4576         * c-common.h (enum cxx_dialect): Add cxx1z.
4577         * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
4578         * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
4580 2014-06-26  Teresa Johnson  <tejohnson@google.com>
4582         * c-common.h (get_dump_info): Declare.
4583         * c-gimplify.c (c_genericize): Use saved dump files.
4584         * c-opts.c (c_common_parse_file): Begin and end dumps
4585         once around parsing invocation.
4586         (get_dump_info): New function.
4588 2014-06-23  Marek Polacek  <polacek@redhat.com>
4589             Andrew MacLeod  <amacleod@redhat.com>
4591         PR c/61553
4592         * c-common.c (get_atomic_generic_size): Don't segfault if the
4593         type doesn't have a size.
4595 2014-06-20  Marek Polacek  <polacek@redhat.com>
4597         * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
4598         (ubsan_walk_array_refs_r): New function.
4599         (c_genericize): Instrument array bounds.
4600         * c-ubsan.c: Include "internal-fn.h".
4601         (ubsan_instrument_division): Mark instrumented arrays as having
4602         side effects.  Adjust ubsan_type_descriptor call.
4603         (ubsan_instrument_shift): Likewise.
4604         (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
4605         (ubsan_instrument_bounds): New function.
4606         (ubsan_array_ref_instrumented_p): New function.
4607         (ubsan_maybe_instrument_array_ref): New function.
4608         * c-ubsan.h (ubsan_instrument_bounds): Declare.
4609         (ubsan_array_ref_instrumented_p): Declare.
4610         (ubsan_maybe_instrument_array_ref): Declare.
4612 2014-06-20  Hale Wang  <hale.wang@arm.com>
4614         PR lto/61123
4615         * c.opt (fshort-enums): Add to LTO.
4616         * c.opt (fshort-wchar): Likewise.
4618 2014-06-16  Marek Polacek  <polacek@redhat.com>
4620         PR c/60439
4621         * c.opt (Wswitch-bool): Add Var.
4623 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
4625         PR middle-end/61486
4626         * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
4627         #pragma omp target teams or
4628         #pragma omp {,target }teams distribute simd.
4630 2014-06-12  Jason Merrill  <jason@redhat.com>
4632         * c.opt (Wabi=, fabi-compat-version): New.
4633         * c-opts.c (c_common_handle_option): Handle -Wabi=.
4634         (c_common_post_options): Handle flag_abi_compat_version default.
4635         Disallow -fabi-compat-version=1.
4636         * c-common.h (abi_version_crosses): New.
4638 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
4640         * c-common.c (handle_section_attribute): Update handling for
4641         section names that are no longer trees.
4643 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
4645         PR fortran/60928
4646         * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
4647         (omp_pragmas): ... back here.
4649 2014-06-05  Marek Polacek  <polacek@redhat.com>
4651         PR c/49706
4652         * c-common.c (warn_logical_not_parentheses): New function.
4653         * c-common.h (warn_logical_not_parentheses): Declare.
4654         * c.opt (Wlogical-not-parentheses): New option.
4656 2014-06-04  Marek Polacek  <polacek@redhat.com>
4658         PR c/30020
4659         * c-common.c (check_case_bounds): Add location parameter.
4660         Use it.
4661         (c_add_case_label): Pass loc to check_case_bounds.
4663 2014-06-03  Marek Polacek  <polacek@redhat.com>
4665         PR c/60439
4666         * c.opt (Wswitch-bool): New option.
4668 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
4670         * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
4671         Remove prototypes.
4672         (record_types_used_by_current_var_decl): Move prototype to where
4673         it belongs.
4675         * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
4676         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
4677         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
4679 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
4681         * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
4682         * c-common.c (c_common_nodes_and_builtins): Don't initialize
4683         void_zero_node.
4684         * c-pretty-print.c (pp_c_void_constant): New function.
4685         (c_pretty_printer::constant, c_pretty_printer::primary_expression)
4686         (c_pretty_printer::expression): Handle VOID_CST.
4687         * cilk.c (extract_free_variables): Likewise.
4688         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
4689         (ubsan_instrument_vla): Use void_node instead of void_zero_node.
4691 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
4693         * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
4694         * c-pragma.c (push_alignment): Adjust.
4695         (handle_pragma_push_options): Likewise.
4697 2014-05-09  Marek Polacek  <polacek@redhat.com>
4699         PR c/50459
4700         * c-common.c (check_user_alignment): Return -1 if alignment is error
4701         node.
4702         (handle_aligned_attribute): Don't call default_conversion on
4703         FUNCTION_DECLs.
4704         (handle_vector_size_attribute): Likewise.
4705         (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
4706         (handle_sentinel_attribute): Call default_conversion and allow even
4707         integral types as an argument.
4709 2014-05-08  Marek Polacek  <polacek@redhat.com>
4711         PR c/61053
4712         * c-common.c (min_align_of_type): New function factored out from...
4713         (c_sizeof_or_alignof_type): ...here.
4714         * c-common.h (min_align_of_type): Declare.
4716 2014-05-08  Marek Polacek  <polacek@redhat.com>
4718         PR c/61077
4719         * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
4720         parameter type of main.
4722 2014-05-07  DJ Delorie  <dj@redhat.com>
4724         * c-cppbuiltin.c (print_bits_of_hex): New.
4725         (builtin_define_type_minmax): Print values using hex so as not to
4726         require a pre-computed list of string values.
4728 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
4729             Mike Stump  <mikestump@comcast.net>
4730             Richard Sandiford  <rdsandiford@googlemail.com>
4732         * c-ada-spec.c: Include wide-int.h.
4733         (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
4734         (dump_generic_ada_node): Use wide-int interfaces.
4735         * c-common.c: Include wide-int-print.h.
4736         (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
4737         (pointer_int_sum): Use wide-int interfaces.
4738         (c_common_nodes_and_builtins): Use make_int_cst.
4739         (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
4740         (handle_alloc_size_attribute): Use wide-int interfaces.
4741         (get_nonnull_operand): Likewise.
4742         * c-format.c (get_constant): Use tree_fits_uhwi_p.
4743         * c-lex.c: Include wide-int.h.
4744         (narrowest_unsigned_type): Take a widest_int rather than two
4745         HOST_WIDE_INTs.
4746         (narrowest_signed_type): Likewise.
4747         (interpret_integer): Update accordingly.  Use wide-int interfaces.
4748         (lex_charconst): Use wide-int interfaces.
4749         * c-pretty-print.c: Include wide-int.h.
4750         (pp_c_integer_constant): Use wide-int interfaces.
4751         * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
4752         INT_CST_LT_UNSIGNED.
4754 2014-05-06  Richard Biener  <rguenther@suse.de>
4756         * c-opts.c (c_common_post_options): For -freestanding,
4757         -fno-hosted and -fno-builtin disable pattern recognition
4758         if not enabled explicitely.
4760 2014-05-02  Marek Polacek  <polacek@redhat.com>
4762         * c.opt (Wsizeof-pointer-memaccess): Describe option.
4764 2014-05-01  Marek Polacek  <polacek@redhat.com>
4766         PR c/43245
4767         * c.opt (Wdiscarded-qualifiers): Add.
4769 2014-04-30  Marek Polacek  <polacek@redhat.com>
4771         * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs.  Perform
4772         INT_MIN / -1 sanitization only for integer types.
4774 2014-04-25  Marek Polacek  <polacek@redhat.com>
4776         PR c/18079
4777         * c-common.c (handle_noinline_attribute): Warn if the attribute
4778         conflicts with always_inline attribute.
4779         (handle_always_inline_attribute): Warn if the attribute conflicts
4780         with noinline attribute.
4782 2014-04-25  Marek Polacek  <polacek@redhat.com>
4784         PR c/60156
4785         * c-common.c (check_main_parameter_types): Warn about variadic main.
4787 2014-04-24  Mike Stump  <mikestump@comcast.net>
4789         * c.opt (Wshadow-ivar): Default to on.
4791 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
4793         * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
4795 2014-04-23  Marek Polacek  <polacek@redhat.com>
4797         * c-common.c (handle_tm_wrap_attribute): Tweak error message.
4799 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
4801         PR sanitizer/60275
4802         * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
4803         if flag_sanitize_undefined_trap_on_error.
4804         (ubsan_instrument_division, ubsan_instrument_shift,
4805         ubsan_instrument_vla): Likewise.  Use __ubsan_handle_*_abort ()
4806         if !flag_sanitize_recover.
4808 2014-04-22  Marc Glisse  <marc.glisse@inria.fr>
4810         PR libstdc++/43622
4811         * c-common.c (registered_builtin_types): Make non-static.
4812         * c-common.h (registered_builtin_types): Declare.
4814 2014-04-14  Richard Biener  <rguenther@suse.de>
4815         Marc Glisse  <marc.glisse@inria.fr>
4817         PR c/60819
4818         * c-common.c (convert_vector_to_pointer_for_subscript): Properly
4819         apply may-alias the scalar pointer type when applicable.
4821 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
4823         PR middle-end/60467
4824         * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
4825         as possible argument for Cilk_spawn.
4827 2014-04-11  Tobias Burnus  <burnus@net-b.de>
4829         PR c/60194
4830         * c.opt (Wformat-signedness): Add
4831         * c-format.c(check_format_types): Use it.
4833 2014-04-11  Jason Merrill  <jason@redhat.com>
4835         PR c++/57926
4836         * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
4837         default_conversion for an array argument.
4839 2014-04-08  Marek Polacek  <polacek@redhat.com>
4841         PR sanitizer/60745
4842         * c-ubsan.c: Include asan.h.
4843         (ubsan_instrument_return): Call initialize_sanitizer_builtins.
4845 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
4847         * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
4849 2014-04-02  Marek Polacek  <polacek@redhat.com>
4851         * c-common.h (c_expand_expr): Remove declaration.
4853 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
4855         PR c++/60689
4856         * c-common.c (add_atomic_size_parameter): When creating new
4857         params vector, push the size argument first.
4859 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
4861         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4862         ubsan_instrument_vla, ubsan_instrument_return): Adjust
4863         ubsan_create_data callers.
4865 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
4867         PR debug/60603
4868         * c-opts.c (c_finish_options): Restore cb_file_change call to
4869         <built-in>.
4871 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
4873         PR middle-end/36282
4874         * c-pragma.c (apply_pragma_weak): Only look at
4875         TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
4876         DECL_ASSEMBLER_NAME_SET_P (decl).
4877         (maybe_apply_pending_pragma_weaks): Exit early if
4878         vec_safe_is_empty (pending_weaks) rather than only when
4879         !pending_weaks.
4880         (maybe_apply_pragma_weak): Likewise.  If !DECL_ASSEMBLER_NAME_SET_P,
4881         set assembler name back to NULL afterwards.
4883 2014-03-11  Jason Merrill  <jason@redhat.com>
4885         * c.opt: Add -std=gnu++14.
4887 2014-03-11  Ian Bolton  <ian.bolton@arm.com>
4889         * c-opts.c (c_common_post_options): Don't override
4890         -ffp-contract=fast if unsafe-math-optimizations is on.
4892 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
4894         * c.opt: Enable LTO FE for fshort-double.
4896 2014-03-07  Jason Merrill  <jason@redhat.com>
4898         * c.opt: Add -std=c++14.
4900 2014-03-06  Marek Polacek  <polacek@redhat.com>
4902         PR c/60197
4903         * cilk.c (contains_cilk_spawn_stmt): New function.
4904         (contains_cilk_spawn_stmt_walker): Likewise.
4905         (recognize_spawn): Give error on invalid use of _Cilk_spawn.
4906         * c-common.h (contains_cilk_spawn_stmt): Add declaration.
4908 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
4910         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
4911         (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
4912         even when flag_preprocess_only.
4914 2014-02-26  Jason Merrill  <jason@redhat.com>
4916         PR c++/59231
4917         PR c++/11586
4918         * c-common.c (shorten_compare): Don't check
4919         c_inhibit_evaluation_warnings.
4921 2014-02-19  Jakub Jelinek  <jakub@redhat.com>
4923         PR c/37743
4924         * c-common.c (c_common_nodes_and_builtins): When initializing
4925         c_uint{16,32,64}_type_node, also set corresponding
4926         uint{16,32,64}_type_node to the same value.
4928         PR c++/60267
4929         * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
4930         for PRAGMA_IVDEP if flag_preprocess_only.
4932 2014-02-12  Jakub Jelinek  <jakub@redhat.com>
4934         PR c/60101
4935         * c-common.c (merge_tlist): If copy is true, call new_tlist,
4936         if false, add ADD itself, rather than vice versa.
4937         (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
4938         copy.  For SAVE_EXPR, only call merge_tlist once.
4940 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
4942         PR middle-end/60092
4943         * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
4944         and tree_to_uhwi.
4945         (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
4946         functions.
4947         (c_common_attribute_table): Add alloc_align and assume_aligned
4948         attributes.
4950 2014-02-06  Marek Polacek  <polacek@redhat.com>
4952         PR c/60087
4953         * c-common.c (warn_for_sign_compare): Call warning_at with location
4954         instead of warning.
4956 2014-02-05  Marek Polacek  <polacek@redhat.com>
4958         PR c/53123
4959         * c-omp.c (c_finish_omp_atomic): Remove unreachable return
4960         statement.
4962 2014-02-04  Marek Polacek  <polacek@redhat.com>
4964         PR c/60036
4965         * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
4966         SAVE_EXPR.
4968 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
4970         PR c++/53017
4971         PR c++/59211
4972         * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
4973         handle_vector_size_attribute, handle_nonnull_attribute): Call
4974         default_conversion on the attribute argument.
4975         (handle_nonnull_attribute): Increment the argument number.
4977 2014-01-31  Marek Polacek  <polacek@redhat.com>
4979         PR c/59963
4980         * c-common.c (add_atomic_size_parameter): Pass vNULL to
4981         build_function_call_vec.
4982         (resolve_overloaded_builtin): Likewise.
4983         * c-common.h (build_function_call_vec): Adjust declaration.
4985 2014-01-30  Marek Polacek  <polacek@redhat.com>
4987         PR c/59940
4988         * c-common.h (unsafe_conversion_p): Adjust declaration.
4989         (warnings_for_convert_and_check): Likewise.
4990         (convert_and_check): Likewise.
4991         * c-common.c (unsafe_conversion_p): Add location parameter.  Call
4992         expansion_point_location_if_in_system_header on it.
4993         (warnings_for_convert_and_check): Add location parameter.  Call
4994         expansion_point_location_if_in_system_header on it.  Use it.
4995         (convert_and_check): Add location parameter.  Use it.
4996         (conversion_warning): Likewise.
4997         (c_add_case_label): Adjust convert_and_check calls.
4998         (scalar_to_vector): Adjust unsafe_conversion_p calls.
5000 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5002         * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
5003         flag_cilkplus.
5004         * c-pragma.c (init_pragma): Likewise.
5005         * c.opt: Likewise.
5007 2014-01-23  Marek Polacek  <polacek@redhat.com>
5009         PR c/59846
5010         * c-common.c (shorten_compare): Add location_t parameter.
5011         * c-common.h (shorten_binary_op): Adjust declaration.
5013 2014-01-23  Marek Polacek  <polacek@redhat.com>
5015         PR c/58346
5016         * c-common.c (pointer_to_zero_sized_aggr_p): New function.
5017         * c-common.h: Declare it.
5019 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
5021         * c-ada-spec.h (dump_ada_specs): Revert prototype change.
5022         * c-ada-spec.c (dump_ads): Likewise.
5023         (cpp_check): Likewise.
5024         (dump_ada_specs): Likewise.
5026 2014-01-15  Laurent Alfonsi  <laurent.alfonsi@st.com>
5028         PR c++/49718
5029         * c-common.c (handle_no_instrument_function_attribute): Allow
5030         no_instrument_function attribute in class member
5031         definition/declaration.
5033 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
5035         PR c/58943
5036         * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
5037         build_modify_expr with non-NOP_EXPR opcode.  Handle return from it
5038         being COMPOUND_EXPR.
5039         (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
5040         operand a SAVE_EXPR and second MODIFY_EXPR.
5042 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
5044         PR target/58115
5045         * c-pch.c (c_common_write_pch): Call
5046         prepare_target_option_nodes_for_pch.
5048 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
5050         Update copyright years
5052 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
5054         * array-notation-common.c, c-cilkplus.c: Use the standard form for
5055         the copyright notice.
5057 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
5059         * c-ada-spec.c (print_constructor): New function.
5060         (print_destructor): Retrieve the origin of the destructor.
5061         (print_ada_declaration): Revamp handling of constructors/destructors.
5063 2013-12-23  Stuart Hastings  <stuart@apple.com>
5064             Bill Maddox  <maddox@google.com>
5065             Jason Merrill  <jason@redhat.com>
5067         * c.opt: Add -fdeclone-ctor-dtor.
5068         * c-opts.c (c_common_post_options): Default to on iff -Os.
5070 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5072         * c-common.c (c_common_attribute_table): Added "cilk simd function"
5073         attribute.
5074         * c-pragma.h (enum pragma_cilk_clause): Remove.
5075         (enum pragma_omp_clause):  Added the following fields:
5076         PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
5077         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
5078         PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
5079         PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
5080         PRAGMA_CILK_CLAUSE_UNIFORM.
5083 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5085         * cilk.c (cilk_outline): Made this function non-static.
5086         (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
5087         (create_cilk_wrapper): Added a new parameter: a function pointer.
5088         (c_install_body_w_frame_cleanup): Remove
5089         (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
5090         * c-common.h (cilk_outline): New prototype.
5091         (gimplify_cilk_spawn): Removed two parameters.
5092         (cilk_install_body_with_frame_cleanup): New prototype.
5093         * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
5094         CILK_SPAWN_STMT case.
5096 2013-12-11  Bernd Schmidt  <bernds@codesourcery.com>
5098         * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
5100         * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
5101         (int_array_type_node): Remove.
5102         * c-common.c (c_common_nodes_and_builtins): Don't build it.
5104 2013-12-05  Marek Polacek  <polacek@redhat.com>
5106         PR c/52023
5107         * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
5108         [ADJUST_FIELD_ALIGN].
5110 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
5112         PR c/52023
5113         * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
5114         and check field alignment if set.
5115         * c-common.h (c_sizeof_or_alignof_type): Update prototype.
5116         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
5118 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
5119             Marek Polacek  <polacek@redhat.com>
5121         * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
5122         sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
5124 2013-11-29   H.J. Lu  <hongjiu.lu@intel.com>
5126         PR c/59309
5127         * cilk.c (gimplify_cilk_spawn): Properly handle function without
5128         arguments.
5130 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
5132         PR c/59280
5133         * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
5134         goto invalid.  If it is error_mark_node, don't issue further
5135         diagnostics.
5137 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
5139         * c.opt (Wopenmp-simd): New.
5141 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
5143         * c-ubsan.h (ubsan_instrument_return): New prototype.
5144         * c-ubsan.c (ubsan_instrument_return): New function.
5146 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
5148         * c-common.c: Add required include files from gimple.h.
5149         * c-gimplify.c: Likewise
5150         * cilk.c: Likewise
5152 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
5154         * c-common.c (unsafe_conversion_p): Remove use of
5155         EXPR_LOC_OR_HERE macro.
5156         (conversion_warning): Likewise.
5157         (warnings_for_convert_and_check): Likewise.
5158         (warn_for_collisions_1): Likewise.
5159         (shorten_compare): Likewise, and remove use of in_system_header
5160         macro, using the location from the former.
5161         * c-lex.c (dump_one_header): Remove use of input_filename macro.
5162         (cb_def_pragma): Remove use of in_system_header macro.
5163         (lex_string): Likewise.
5164         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5166 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
5167             Mike Stump  <mikestump@comcast.net>
5168             Richard Sandiford  <rdsandiford@googlemail.com>
5170         * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
5171         instead of TREE_INT_CST_LOW, in cases where there is a protecting
5172         tree_fits_shwi_p or tree_fits_uhwi_p.
5173         (dump_generic_ada_node): Likewise.
5174         * c-format.c (check_format_arg): Likewise.
5175         * c-pretty-print.c (pp_c_integer_constant): Likewise.
5177 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
5179         * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
5181 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
5183         PR c/53001
5184         * c-common.c (unsafe_conversion_p): Make this function
5185         return an enumeration with more detail.
5186         (conversion_warning): Use the new return type of
5187         unsafe_conversion_p to separately warn either about conversions
5188         that lower floating point number precision or about the other
5189         kinds of conversions.
5190         * c-common.h (enum conversion_safety): New enumeration.
5191         (unsafe_conversion_p): switching return type to
5192         conversion_safety enumeration.
5193         * c.opt: Adding new warning -Wfloat-conversion and
5194         enabling it with -Wconversion.
5196 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
5198         * c-opts.c: Include plugin.h.
5199         (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
5201 2013-11-19  Marek Polacek  <polacek@redhat.com>
5203         * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
5204         call.
5205         (ubsan_instrument_shift): Likewise.
5206         (ubsan_instrument_vla): Likewise.
5208 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5210         * c-common.c (convert_vector_to_pointer_for_subscript): Remove
5211         cast to unsigned type.
5213 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5215         * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
5216         tree_low_cst.
5217         (complete_array_type): Update comment to refer to tree_to_[su]hwi
5218         rather than tree_low_cst.
5220 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5222         * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
5223         tree_to_uhwi throughout.
5225 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5227         * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
5228         tree_low_cst (..., 0) with tree_to_shwi throughout.
5230 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5232         * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
5233         host_integerp (..., 1) with tree_fits_uhwi_p throughout.
5235 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5237         * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
5238         host_integerp (..., 0) with tree_fits_shwi_p throughout.
5240 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
5242         * c-cilkplus.c: New file.
5243         * c-common.c (readonly_error): Add location argument.
5244         * c-common.h (readonly_error): Same.
5245         (c_finish_cilk_clauses): Protoize.
5246         (c_check_cilk_loop): Same.
5247         c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
5248         Do not fail on error_mark_node.
5249         Abstract increment canonicalization to here...
5250         (c_omp_for_incr_canonicalize_ptr): New.
5251         c-pragma.c (init_pragma): Register "simd" pragma.
5252         c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
5253         (enum pragma_cilk_clause): New.
5255 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
5257         * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
5258         wchar_type and host_integerp checks.
5260 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
5262         * c-common.c: Likewise.
5263         * c-gimplify.c: Likewise.
5264         * cilk.c: Likewise.
5266 2013-11-14  Diego Novillo  <dnovillo@google.com>
5268         * c-common.c: Include fold-const.h.
5269         Include stor-layout.h.
5270         Include calls.h.
5271         Include stringpool.h.
5272         Include attribs.h.
5273         Include varasm.h.
5274         Include trans-mem.h.
5275         * c-cppbuiltin.c: Include stor-layout.h.
5276         Include stringpool.h.
5277         * c-format.c: Include stringpool.h.
5278         * c-lex.c: Include stringpool.h.
5279         Include stor-layout.h.
5280         * c-pragma.c: Include stringpool.h.
5281         Include attribs.h.
5282         Include varasm.h.
5283         Include gcc-symtab.h.
5284         * c-pretty-print.c: Include stor-layout.h.
5285         Include attribs.h.
5286         * cilk.c: Include stringpool.h.
5287         Include calls.h.
5289 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
5291         * c-common.h (enum rid): Add RID_AUTO_TYPE.
5292         * c-common.c (c_common_reswords): Add __auto_type.
5293         (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
5295 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
5297         * c-common.c: Include gimplify.h.
5298         * c-gimplify.c: Likewise.
5299         * cilk.c: Likewise.
5300         * c-omp.c: Include gimple-expr.h instead of gimple.h.
5301         * c-ubsan.c: Don't include gimple.h.
5303 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
5305         * c-common.c (c_common_reswords): Add _Thread_local.
5307 2013-11-09  Joseph Myers  <joseph@codesourcery.com>
5309         * c-common.c (atomic_size_supported_p): New function.
5310         (resolve_overloaded_atomic_exchange)
5311         (resolve_overloaded_atomic_compare_exchange)
5312         (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
5313         Use it instead of comparing size with a local list of sizes.
5315 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
5316             Joseph Myers  <joseph@codesourcery.com>
5318         * c-common.h (enum rid): Add RID_ATOMIC.
5319         * c-common.c (c_common_reswords): Add _Atomic.
5320         (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
5321         (keyword_is_type_qualifier): Accept RID_ATOMIC.
5322         * c-format.c (check_format_types): Check for extra _Atomic
5323         qualifiers in format argument.
5324         * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
5325         (pp_c_type_qualifier_list): Mention _Atomic in comment.
5327 2013-11-06  Tobias Burnus  <burnus@net-b.de>
5329         * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
5331 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
5333         * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
5334         standards modes.
5335         * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
5336         to mean lack of IEEE 754 support.
5338 2013-11-05  Tobias Burnus  <burnus@net-b.de>
5340         * c.opt (-Wdate-time): New option
5341         * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
5343 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
5345         * c-cppbuiltin.c (cpp_iec_559_value): Test
5346         flag_excess_precision_cmdline not flag_excess_precision.
5348 2013-11-05  Tobias Burnus  <burnus@net-b.de>
5350         * c.opt (fopenmp-simd): New option.
5351         * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
5352         (omp_pragmas): ... this new struct.
5353         (c_pp_lookup_pragma): Also walk omp_pragmas.
5354         (init_pragma): Init pragmas for -fopenmp-simd.
5356 2013-11-04  Marek Polacek  <polacek@redhat.com>
5358         PR c++/58979
5359         * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
5361 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
5363         * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
5364         New functions.
5365         (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
5367 2013-11-04  Eric Botcazou  <ebotcazou@adacore.com>
5369         * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
5370         (dump_ada_specs): Adjust prototype of second callback.
5371         * c-ada-spec.c (cpp_check): New global variable.
5372         (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
5373         (print_generic_ada_decl): Likewise.
5374         (has_static_fields): Change return type to bool and add guard.
5375         (has_nontrivial_methods): New predicate.
5376         (is_tagged_type): Change return type to bool.
5377         (separate_class_package): Call has_nontrivial_methods.
5378         (pp_ada_tree_identifier): Minor tweaks.
5379         (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
5380         (dump_ada_array_domains): Likewise.
5381         (dump_ada_array_type): Likewise.
5382         (dump_template_types): Remove cpp_check parameter and do not pass it to
5383         dump_generic_ada_node.
5384         (dump_ada_template): Likewise.
5385         (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
5386         recursively.
5387         (print_ada_methods): Change return type to integer.  Remove cpp_check
5388         parameter and do not pass it down.
5389         (dump_nested_types): Remove cpp_check parameter and do not pass it to
5390         dump_generic_ada_node.
5391         (print_ada_declaration): Likewise.  Test RECORD_OR_UNION_TYPE_P before
5392         accessing methods.
5393         (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
5394         down.  Use has_nontrivial_methods to recognize C++ classes.  Use return
5395         value of print_ada_methods.
5396         (dump_ads): Rename cpp_check parameter to check and adjust prototype.
5397         Set cpp_check to it before invoking dump_ada_nodes.
5398         (dump_ada_specs): Likewise.
5400 2013-11-03  Marek Polacek  <polacek@redhat.com>
5402         * c-ubsan.c: Don't include hash-table.h.
5403         (ubsan_instrument_vla): New function.
5404         * c-ubsan.h: Declare it.
5406 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
5408         Automated part of renaming of symtab_node_base to symtab_node.
5410         Patch autogenerated by rename_symtab.py from
5411         https://github.com/davidmalcolm/gcc-refactoring-scripts
5412         revision 58bb219cc090b2f4516a9297d868c245495ee622
5414         * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
5415         symtab_node_base to symtab_node.
5417 2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
5419         Implement C++14 digit separators.
5420         * c-lex.c (interpret_float): Remove digit separators from scratch string
5421         before building real literal.
5423 2013-10-30  Jakub Jelinek  <jakub@redhat.com>
5425         * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
5427 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5429         * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
5430         fields.
5431         (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
5432         enabled.
5433         * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
5434         (insert_cilk_frame): New prototype.
5435         (cilk_init_builtins): Likewise.
5436         (gimplify_cilk_spawn): Likewise.
5437         (c_cilk_install_body_w_frame_cleanup): Likewise.
5438         (cilk_detect_spawn_and_unwrap): Likewise.
5439         (cilk_set_spawn_marker): Likewise.
5440         (build_cilk_sync): Likewise.
5441         (build_cilk_spawn): Likewise.
5442         * cilk.c: New file.
5444 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
5446         Patch autogenerated by refactor_symtab.py from
5447         https://github.com/davidmalcolm/gcc-refactoring-scripts
5448         revision 58bb219cc090b2f4516a9297d868c245495ee622
5450         * c-gimplify.c (c_genericize): Update for conversion of symtab types
5451         to a true class hierarchy.
5452         * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
5454 2013-10-27  Richard Sandiford  <rdsandiford@googlemail.com>
5456         * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
5458 2013-10-26  Jeff Law  <law@redhat.com>
5460         * c-common.c (c_define_builtins): Remove mudflap support.
5461         * c.opt: Ignore and warn for mudflap options.
5463 2013-10-24  Tobias Burnus  <burnus@net-b.de>
5465         PR other/33426
5466         * c-pragma.c (init_pragma) Add #pragma ivdep handling.
5467         * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
5469 2013-10-23  Jason Merrill  <jason@redhat.com>
5471         * c-format.c (gcc_cxxdiag_char_table): Add %X.
5473 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
5475         * c-common.h (omp_clause_mask::operator !=): New method.
5476         * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
5477         instead of if (mask & something) tests everywhere.
5479         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
5480         201307 instead of 201107.
5481         * c-common.c (DEF_FUNCTION_TYPE_8): Define.
5482         (c_common_attribute_table): Add "omp declare target" and
5483         "omp declare simd" attributes.
5484         (handle_omp_declare_target_attribute,
5485         handle_omp_declare_simd_attribute): New functions.
5486         * c-omp.c: Include c-pragma.h.
5487         (c_finish_omp_taskgroup): New function.
5488         (c_finish_omp_atomic): Add swapped argument, if true,
5489         build the operation first with rhs, lhs arguments and use NOP_EXPR
5490         build_modify_expr.
5491         (c_finish_omp_for): Add code argument, pass it down to make_code.
5492         (c_omp_split_clauses): New function.
5493         (c_split_parallel_clauses): Removed.
5494         (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
5495         c_omp_declare_simd_clauses_to_decls): New functions.
5496         * c-common.h (omp_clause_mask): New type.
5497         (OMP_CLAUSE_MASK_1): Define.
5498         (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
5499         omp_clause_mask::operator |=, omp_clause_mask::operator ~,
5500         omp_clause_mask::operator |, omp_clause_mask::operator &,
5501         omp_clause_mask::operator <<, omp_clause_mask::operator >>,
5502         omp_clause_mask::operator ==): New methods.
5503         (enum c_omp_clause_split): New.
5504         (c_finish_omp_taskgroup): New prototype.
5505         (c_finish_omp_atomic): Add swapped argument.
5506         (c_finish_omp_for): Add code argument.
5507         (c_omp_split_clauses): New prototype.
5508         (c_split_parallel_clauses): Removed.
5509         (c_omp_declare_simd_clauses_to_numbers,
5510         c_omp_declare_simd_clauses_to_decls): New prototypes.
5511         * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
5512         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
5513         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
5514         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
5515         PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
5516         Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
5517         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
5518         PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
5519         PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
5520         PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
5521         PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
5522         PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
5523         PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
5524         PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
5525         PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
5526         PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
5527         PRAGMA_OMP_CLAUSE_UNIFORM.
5529 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
5531         PR tree-optimization/20318
5532         * c-common.c (handle_returns_nonnull_attribute): New function.
5533         (c_common_attribute_table): Add returns_nonnull.
5535 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
5537         PR c++/19476
5538         * c.opt (fcheck-new): Move to common.opt.
5540 2013-09-25  Marek Polacek  <polacek@redhat.com>
5541             Jakub Jelinek  <jakub@redhat.com>
5543         PR sanitizer/58413
5544         * c-ubsan.c (ubsan_instrument_shift): Don't instrument
5545         an expression if we can prove it is correct.
5546         (ubsan_instrument_division): Likewise.  Remove unnecessary
5547         check.
5549 2013-09-18  Marek Polacek  <polacek@redhat.com>
5551         PR sanitizer/58411
5552         * c-common.c (handle_no_sanitize_undefined_attribute): New function.
5553         Declare it.
5554         (struct attribute_spec c_common_att): Add no_sanitize_undefined.
5556 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
5558         PR target/48094
5559         * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
5560         fobjc-gc, freplace-objc-classes): Accept for LTO.
5562 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
5564         * c-target.def: New hook
5566 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
5568         PR c++/43452
5569         * c.opt (Wdelete-incomplete): Add.
5571 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
5573         * c-common.c (same_scalar_type_ignoring_signedness): Delete.
5574         (vector_types_compatible_elements_p): New function.
5575         * c-common.h: (same_scalar_type_ignoring_signedness): Delete
5576         declaration.
5577         (vector_types_compatible_elements_p): Declare.
5579 2013-09-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5581         * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
5582         a virtual member function.
5583         (pp_simple_type_specifier): Remove.
5584         (pp_c_type_specifier): Likewise.
5585         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
5586         Rename from pp_c_type_specifier.  Adjust.
5587         (c_pretty_printer::c_pretty_printer): Do not assign to
5588         simple_type_specifier.
5590 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5592         * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
5593         member function.
5594         (c_pretty_printer::storage_class_specifier): Likewise.
5595         (c_pretty_printer::initializer): Likewise.
5596         (pp_declaration): Remove.
5597         (pp_declaration_specifiers): Likewise.
5598         (pp_abstract_declarator): Likewise.
5599         (pp_declarator): Likewise.
5600         (pp_type_id): Likewise.
5601         (pp_statement): Likewise.
5602         (pp_constant): Likewise.
5603         (pp_id_expression): Likewise.
5604         (pp_primary_expression): Likewise.
5605         (pp_unary_expression): Likewise.
5606         (pp_multiplicative_expression): Likewise.
5607         (pp_conditional_expression): Likewise.
5608         (pp_assignment_expression): Likewise.
5609         (pp_expression): Likewise.
5610         (pp_c_type_id): Likewise.
5611         (pp_c_storage_class_specifier): Likewise.
5612         * c-pretty-print.c (pp_c_type_cast): Tidy.
5613         (pp_c_pointer): Likewise.
5614         (pp_c_type_specifier): Likewise.
5615         (pp_c_parameter_type_list): Likewise.
5616         (pp_c_function_definition): Likewise.
5617         (pp_c_init_declarator): Likewise.
5618         (pp_c_initializer_list): Likewise.
5619         (pp_c_constructor_elts): Likewise.
5620         (c_pretty_printer::direct_abstract_declarator): Likewise.
5621         (c_pretty_printer::declaration_specifiers): Likewise.
5622         (c_pretty_printer::primary_expression): Likewise.
5623         (c_pretty_printer::postfix_expression): Likewise.
5624         (c_pretty_printer::type_id): Rename from pp_c_type_id.
5625         (c_pretty_printer::storage_class_specifier): Rename from
5626         pp_c_storage_class_specifier.
5627         (c_pretty_printer::initializer): Rename from pp_c_initializer.
5628         (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
5629         storage_class_specifier, initializer, offset_list, flags.
5631 2013-08-30  Marek Polacek  <polacek@redhat.com>
5633         * c-ubsan.c: New file.
5634         * c-ubsan.h: New file.
5636 2013-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5638         * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
5639         member function.
5640         (c_pretty_printer::declaration_specifiers): Likewise.
5641         (c_pretty_printer::declarator): Likewise.
5642         (c_pretty_printer::abstract_declarator): Likewise.
5643         (c_pretty_printer::direct_abstract_declarator): Likewise.
5644         (c_pretty_printer::direct_declarator): Likewise.
5645         (c_pretty_printer::function_specifier): Likewise.
5646         (pp_declaration): Adjust.
5647         (pp_declaration_specifiers): Likewise.
5648         (pp_abstract_declarator): Likewise.
5649         (pp_direct_declarator): Likewise.
5650         (pp_function_specifier): Likewise.
5651         (pp_direct_abstract_declarator): Remove as unused.
5652         (pp_c_declaration): Remove.
5653         (pp_c_declaration_specifiers): Likewise.
5654         (pp_c_declarator): Likewise.
5655         (pp_c_direct_declarator): Likewise.
5656         (pp_c_function_specifier): Likewise.
5657         (pp_c_direct_abstract_declarator): Likewise.
5658         * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
5659         from pp_c_abstract_declarator.  Adjust.
5660         (c_pretty_printer::direct_abstract_declarator):  Rename from
5661         pp_c_direct_abstract_declarator.  Adjust.
5662         (c_pretty_printer::function_specifier): Rename from
5663         pp_c_function_specifier.  Adjust.
5664         (c_pretty_printer::declaration_specifiers): Rename from
5665         pp_c_declaration_specifiers.  Adjust.
5666         (c_pretty_printer::direct_declarator): Rename from
5667         pp_c_direct_declarator.  Adjust.
5668         (c_pretty_printer::declarator): Rename from pp_c_declarator.  Adjust.
5669         (c_pretty_printer::declaration): Rename from pp_c_declaration.  Adjust.
5670         (c_pretty_printer::c_pretty_printer): Do not assign to
5671         declaration, declaration_specifiers, declarator,
5672         direct_declarator, direct_abstract_declarator, function_specifier.
5674 2013-08-26  Gabriel Dos Reis  <gdre@integrable-solutions.net>
5676         * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
5677         virtual member function.
5678         (c_pretty_printer::multiplicative_expression): Likewise.
5679         (c_pretty_printer::conditional_expression): Likewise.
5680         (c_pretty_printer::assignment_expression): Likewise.
5681         (c_pretty_printer::expression): Likewise.
5682         (pp_unary_expression): Adjust.
5683         (pp_multiplicative_expression): Likewise.
5684         (pp_assignment_expression): Likewise.
5685         (pp_conditional_expression): Likewise.
5686         (pp_expression): Likewise.
5687         * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
5688         from pp_c_unary_expression.  Adjust.
5689         (c_pretty_printer::multiplicative_expression): Rename from
5690         pp_c_multiplicative_expression.  Adjust.
5691         (c_pretty_printer::conditional_expression): Rename from
5692         pp_c_conditional_expression.  Adjust.
5693         (c_pretty_printer::assignment_expression): Rename from
5694         pp_c_assignment_expression.  Adjust.
5695         (c_pretty_printer::expression): Rename from pp_c_expression.  Adjust.
5696         (c_pretty_printer::c_pretty_printer): Do not assign to
5697         unary_expression, multiplicative_expression,
5698         conditional_expression, expression.
5700 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5702         * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
5703         virtual member function.
5704         (pp_postfix_expression): Adjust.
5705         (pp_c_postfix_expression): Remove.
5706         * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
5707         from pp_c_postfix_expression.  Adjust.
5708         (c_pretty_printer::c_pretty_printer): Do not assign to
5709         postfix_expression.
5711 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5713         * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
5714         virtua member function.
5715         (pp_primary_expression): Adjust.
5716         (pp_c_primary_expression): Remove.
5717         * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
5718         from pp_c_primary_expression.  Adjust.
5719         (pp_c_initializer_list): Use pp_primary_expression.
5720         (c_pretty_printer::c_pretty_printer): Do not assign to
5721         primary_expression.
5723 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5725         * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
5726         * c-pretty-print.c (M_): Remove.
5727         (c_pretty_printer::translate_string): Define.
5728         (pp_c_type_specifier): Use it.
5729         (pp_c_primary_expression): Likewise.
5730         (pp_c_expression): Likewise.
5732 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5734         * c-pretty-print.h (c_pretty_printer::id_expression): Now a
5735         virtual function.
5736         (pp_c_id_expression): Remove.
5737         (pp_id_expression): Adjust.
5738         * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
5739         pp_c_id_expression.  Adjust.
5740         (pp_c_postfix_expression): Use pp_id_expression.
5741         (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
5743 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5745         * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
5746         member function.
5747         (pp_constant): Adjust.
5748         (pp_c_constant): Remove.
5749         * c-pretty-print.c (c_pretty_printer::constant): Rename from
5750         pp_c_constant.  Adjust.
5751         (pp_c_constant)
5752         (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
5753         (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
5755 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5757         * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
5758         (c_pretty_printer::c_pretty_printer): Declare.
5759         * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
5760         c_pretty_printer_init.  Adjust.
5761         (print_c_tree): Do not call c_pretty_printer_init.
5762         * c-ada-spec.c (dump_ads): Remove call to pp_construct.
5764 2013-08-09  Arnaud Charlet  <charlet@adacore.com>
5766         * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
5768 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
5770         PR c++/58080
5771         * c-common.c (pointer_int_sum): Add bool parameter.
5772         * c-common.h (pointer_int_sum): Adjust declaration.
5774 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5776         * c-pretty-print.c (print_c_tree): Simplify.  Use non-static local
5777         c_pretty_printer variable.
5779 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5781         * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
5782         (pp_base): Remove.
5783         (pp_c_base): Likewise.  Adjust users.
5784         * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
5785         (pp_c_whitespace): Do not call pp_base.
5786         (pp_c_left_paren): Likewise.
5787         (pp_c_right_paren): Likewise.
5788         (pp_c_left_brace): Likewise.
5789         (pp_c_right_brace): Likewise.
5790         (pp_c_left_bracket): Likewise.
5791         (pp_c_right_bracket): Likewise.
5792         (pp_c_dot): Likewise.
5793         (pp_c_ampersand): Likewise.
5794         (pp_c_star): Likewise.
5795         (pp_c_arrow): Likewise.
5796         (pp_c_semicolon): Likewise.
5797         (pp_c_complement): Likewise.
5798         (pp_c_exclamation): Likewise.
5799         (pp_c_direct_declarator): Likewise.
5800         (pp_c_ws_string): Likewise.
5801         (pp_c_identifier): Likewise.
5802         (pp_c_statement): Likewise.
5803         (print_c_tree): Likewise.
5805 2013-08-04  Ed Smith-Rowland  <3dw4rd@verizon.net>
5807         PR c++/58072
5808         * c-common.c (c_parse_error): Catch user-defined literal tokens and
5809         provide useful error strings.
5811 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5813         * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
5814         printer functions instead of pp_string or operators and punctuators.
5815         (dump_generic_ada_node): Likewise.
5816         * c-pretty-print.c (pp_c_type_specifier): Likewise.
5817         (pp_c_relational_expression): Likewise.
5818         (pp_c_logical_or_expression): Likewise.
5820 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5822         * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
5823         functions instead of pp_character.
5824         (pp_ada_tree_identifier): Likewise.
5825         (dump_ada_double_name): Likewise.
5826         (dump_ada_function_declaration): Likewise.
5827         (dump_ada_array_domains): Likewise.
5828         (dump_template_types): Likewise.
5829         (dump_generic_ada_node): Likewise.
5830         (print_ada_declaration): Likewise.
5831         (print_ada_struct_decl): Likewise.
5832         * c-pretty-print.c (pp_c_integer_constant): Likewise.
5834 2013-07-23  Tom Tromey  <tromey@redhat.com>
5836         * c-common.h (enum rid) <RID_GENERIC>: New constant.
5837         * c-common.c (c_common_reswords): Add _Generic.
5839 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
5841         * c-common.c: Fix typos.
5842         * c-common.h: Likewise.
5844 2013-07-13  Lubos Lunak  <l.lunak@suse.cz>
5846         PR c++/55203
5847         * c-common.c (c_common_attribute_table): Add warn_unused.
5848         (handle_warn_unused_attribute): New.
5850 2013-07-10  Jakub Jelinek  <jakub@redhat.com>
5852         * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
5853         for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
5855 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
5857         PR c++/57869
5858         * c.opt: Add Wconditionally-supported.
5860 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
5862         * array-notation-common.c (length_mismatch_in_expr_p): Delete
5863         unused variables l_length and l_node.
5865 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
5867         PR c/57821
5868         * c-common.c (complete_array_type): Delay folding first index
5869         like other indices.  When folding, check for index overflow.
5871 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
5873         PR c++/57509
5874         * c-common.h (c_build_vec_perm_expr): New complain argument.
5875         * c-common.c (c_build_vec_perm_expr): Likewise.
5876         Use save_expr also in C++.
5878 2013-06-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5880         * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
5881         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
5882         * c-opts.c (c_common_post_options): Likewise.
5884 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5886         * array-notation-common.c (length_mismatch_in_expr): Changed the
5887         parameter type's from a dynamic array to a vec_tree.  Also removed
5888         the size parameters.
5889         * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
5890         the change above.
5892 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5894         * c-common.h (struct cilkplus_an_parts): New structure.
5895         (struct cilkplus_an_loop_parts): Likewise.
5896         (cilkplus_extract_an_triplets): New prototype.
5897         (fix_sec_implicit_args): Likewise.
5898         * array-notation-common.c (cilkplus_extract_an_triplets): New function.
5899         (fix_sec_implicit_args): Likewise.
5901 2013-06-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5903         * array-notation-common.c (find_inv_trees): Removed an unwanted
5904         typecasting.
5905         * c-common.h (struct inv_list::additional_tcodes): Changed type from
5906         enum rid to enum tree_code.
5908 2013-06-11  Jan Hubicka  <jh@suse.cz>
5910         * c-common.c (handle_alias_ifunc_attribute): Do not set
5911         DECL_EXTERNAL for weakref variables.
5912         * c-pragma.c (handle_pragma_weak): Make sure aliases
5913         are not declared as external.
5915 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5917         * array-notation-common.c (length_mismatch_in_expr_p): Moved this
5918         function from c/c-array-notation.c.
5919         (is_cilkplus_reduce_builtin): Likewise.
5920         (find_rank): Likewise.
5921         (extract_array_notation_exprs): Likewise.
5922         (replace_array_notations): Likewise.
5923         (find_inv_trees): Likewise.
5924         (replace_inv_trees): Likewise.
5925         (contains_array_notation_expr): Likewise.
5926         (find_correct_array_notation_type): Likewise.
5927         * c-common.h (struct inv_list): Moved this struct from the file
5928         c/c-array-notation.c and added a new field called additional tcodes.
5929         (length_mismatch_in_expr_p): New prototype.
5930         (is_cilkplus_reduce_builtin): Likewise.
5931         (find_rank): Likewise.
5932         (extract_array_notation_exprs): Likewise.
5933         (replace_array_notation): Likewise.
5934         (find_inv_trees): Likewise.
5935         (replace_inv_trees): Likewise.
5936         (find_correct_array_notation_type): Likewise.
5938 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5940         * c-common.c (c_define_builtins): When cilkplus is enabled, the
5941         function array_notation_init_builtins is called.
5942         (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
5943         * c-common.def (ARRAY_NOTATION_REF): New tree.
5944         * c-common.h (build_array_notation_expr): New function declaration.
5945         (build_array_notation_ref): Likewise.
5946         (extract_sec_implicit_index_arg): New extern declaration.
5947         (is_sec_implicit_index_fn): Likewise.
5948         (ARRAY_NOTATION_CHECK): New define.
5949         (ARRAY_NOTATION_ARRAY): Likewise.
5950         (ARRAY_NOTATION_START): Likewise.
5951         (ARRAY_NOTATION_LENGTH): Likewise.
5952         (ARRAY_NOTATION_STRIDE): Likewise.
5953         * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
5954         ARRAY_NOTATION_REF.
5955         (pp_c_expression): Likewise.
5956         * c.opt (flag_enable_cilkplus): New flag.
5957         * array-notation-common.c: New file.
5959 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
5961         PR c++/57274
5962         * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
5964 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
5966         * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
5967         vectors.
5969 2013-05-07  Han Shen  <shenhan@google.com>
5971         * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
5973 2013-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5975         * c-common.c (check_user_alignment): Emit error for negative values.
5977 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5979         * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
5981 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5983         * c-cppbuiltin.c (c_cpp_builtins): Do not define
5984         __GXX_EXPERIMENTAL_CXX1Y__.
5986 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5987             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5989         * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
5990         * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
5991         to simply use OPT_Wpointer_arith.
5992         (c_sizeof_or_alignof_type): Likewise.
5994 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5996         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
5998 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
6000         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
6001         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
6002         specifiers.
6004 2013-04-07  Steven Bosscher  <steven@gcc.gnu.org>
6006         * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
6008 2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
6010         * c-common.c (pointer_int_sum): Remove dead code.
6012 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
6014         PR middle-end/56524
6015         * c-common.c (handle_optimize_attribute): Don't call
6016         save_optabs_if_changed.
6018 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
6020         PR middle-end/56461
6021         * c-pch.c (pch_init): Free target_validity at the end.
6023 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
6025         * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
6027 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
6028             Jakub Jelinek  <jakub@redhat.com>
6030         PR sanitizer/56454
6031         * c-common.c (handle_no_sanitize_address_attribute): New function.
6032         (c_common_attribute_table): Add no_sanitize_address attribute.
6033         (handle_no_address_safety_analysis_attribute): Add
6034         no_sanitize_address attribute, not no_address_safety_analysis
6035         attribute.
6037 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
6039         PR target/52555
6040         * c-common.c (handle_optimize_attribute): Call
6041         save_optabs_if_changed.
6043 2013-02-18  Jakub Jelinek  <jakub@redhat.com>
6044             Steven Bosscher  <steven@gcc.gnu.org>
6046         PR pch/54117
6047         * c-opts.c (c_common_post_options): If debug info is enabled
6048         and non-dwarf*, refuse to load PCH files and when writing PCH
6049         file warn.
6051 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
6053         PR middle-end/56167
6054         * c-common.c (handle_error_attribute): Fix condition.
6056 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
6058         PR c++/55742
6059         * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
6061 2013-01-18  Jason Merrill  <jason@redhat.com>
6063         PR target/54908
6064         * c.opt (-fextern-tls-init): New.
6065         * c-opts.c (c_common_post_options): Handle it.
6067 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
6069         PR c/48418
6070         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
6071         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
6072         and is either negative or bigger or equal to type precision
6073         of the first operand.
6075 2012-12-03  Marek Polacek  <polacek@redhat.com>
6077         PR c/55570
6078         * c-common.c (check_user_alignment): Swap order of tests,
6079         check TREE_CODE first.
6081 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
6083         PR c++/52654
6084         * c-common.h (overflow_type): New enum.
6085         (build_userdef_literal): Add overflow_type argument.
6086         (tree_userdef_literal): Add overflow_type.
6087         (USERDEF_LITERAL_OVERFLOW): New access macro.
6088         * c-common.c (build_userdef_literal): Add overflow_type
6089         argument.
6090         * c-lex.c (c_lex_with_flags): Add overflow_type to
6091         build_userdef_literal calls.
6092         (interpret_integer, interpret_float): Add overflow_type argument.
6094 2012-11-28  Richard Biener  <rguenther@suse.de>
6096         PR c/35634
6097         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
6098         here and use a type with proper overflow behavior for types that would
6099         need to be promoted for the arithmetic.
6101 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
6103         PR sanitizer/55435
6104         * c-common.c (handle_no_address_safety_analysis_attribute): New
6105         function.
6106         (c_common_attribute_table): Add no_address_safety_analysis.
6108 2012-11-16  Simon Baldwin  <simonb@google.com>
6110         * c.opt: Add f[no-]canonical-system-headers.
6111         * c-opts.c (c_common_handle_option): Handle
6112         OPT_fcanonical_system_headers.
6114 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
6116         PR c++/54413
6117         * c-opts.c (c_common_handle_option): Set new flags.
6118         * c.opt: Describe new flags.
6120 2012-11-09  Jason Merrill  <jason@redhat.com>
6122         * c.opt (Wabi-tag): New.
6124 2012-11-09  Andi Kleen  <ak@linux.intel.com>
6126         PR 55139
6127         * c-common.c (get_atomic_generic_size): Mask with
6128         MEMMODEL_MASK
6130 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6132         PR c/53063
6133         * c.opt (Wformat): Make it Alias Wformat=1.
6134         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
6135         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
6136         LangEnabledBy.
6137         (Wformat=): RejectNegative. Use LangEnabledBy.
6138         (Wnonnull): Use LangEnabledBy.
6139         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
6140         * c-format.c (set_Wformat): Delete.
6141         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
6142         (maybe_read_dollar_number):  Likewise.
6143         (avoid_dollar_number):  Likewise.
6144         (finish_dollar_format_checking):  Likewise.
6145         (check_format_info):  Likewise.
6146         (check_format_info_main):  Likewise.
6147         (check_format_types):  Likewise.
6148         (format_type_warning):  Likewise.
6149         * c-common.c (int):  Likewise.
6150         (check_function_sentinel):  Likewise.
6151         * c-common.h (warn_format,set_Wformat): Do not declare here.
6153 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6155         PR c/53063
6156         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
6157         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
6158         Use LangEnabledBy.
6159         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
6160         common.opt.
6161         (Wvariadic-macros): Init(1).
6162         * c-opts.c (c_common_handle_option): Do not handle them
6163         explicitly.
6164         (c_common_post_options): Likewise.
6165         (sanitize_cpp_opts): warn_unused_macros is now
6166         cpp_warn_unused_macros.
6167         (push_command_line_include): Likewise.
6168         * c-common.c (warn_unknown_pragmas): Do not define.
6169         * c-common.h (warn_unknown_pragmas): Do not declare.
6171 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6173         PR c/51294
6174         * c-common.c (conversion_warning): Handle conditional expressions.
6176 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
6178         PR c++/54930
6179         * c.opt (Wreturn_local_addr): Define new option.
6181 2012-10-25  Jason Merrill  <jason@redhat.com>
6183         * c.opt (Wvirtual-move-assign): New.
6185         * c.opt (Winherited-variadic-ctor): New.
6187 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
6189         PR c++/54427
6190         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
6192 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
6194         * c-common.h (pch_cpp_save_state): Declare.
6195         * c-target.def (c_preinclude): New hook.
6196         * c-opts.c (done_preinclude): New.
6197         (push_command_line_include): Handle default preincluded header.
6198         (cb_file_change): Call pch_cpp_save_state when calling
6199         push_command_line_include.
6200         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
6201         (pch_cpp_save_state): New.
6202         (pch_init): Call pch_cpp_save_state conditionally, instead of
6203         calling cpp_save_state.
6205 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6207         PR c/53063
6208         PR c/40989
6209         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
6210         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
6211         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
6212         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
6213         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
6214         * c-opts.c (c_common_handle_option): Remove explicit handling from
6215         here.
6216         (c_common_post_options): Likewise.
6218 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
6220         * c-ada-spec.c (LOCATION_COL): Delete.
6221         (compare_location): New function.
6222         (compare_node): Use it.
6223         (compare_comment): Likewise.
6225 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6227         PR c/53063
6228         PR c/40989
6229         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
6230         * c-opts.c (c_common_handle_option): Do not set them here. Add
6231         comment.
6232         (c_common_post_options): Likewise.
6234 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
6236         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
6237         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
6238         Remove POINTER_TYPE handling, add large unsigned handling and use
6239         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
6241 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
6243         PR c/54381
6244         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
6245         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
6246         locs and array of 3 trees instead of just single loc and single
6247         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
6248         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
6249         For *cmp* builtins that take two sources strings report warnings
6250         about first and second source, not about destination and source.
6252 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
6254         PR c++/53055
6255         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
6257 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
6259         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
6260         declaring something coming from another file.
6262 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
6264         PR ada/54845
6265         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
6267 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
6269         PR c++/54194
6270         * c-common.c (warn_about_parentheses): Add location_t parameter;
6271         use EXPR_LOC_OR_LOC.
6272         * c-common.h: Update declaration.
6274 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
6276         PR c++/54427
6277         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
6278         more operations. Make error messages optional.
6279         * c-common.h (enum stv_conv): Moved from c-typeck.c.
6280         (scalar_to_vector): Declare.
6282 2012-10-08  Jason Merrill  <jason@redhat.com>
6284         * c-common.c (c_common_reswords): Add thread_local.
6286 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
6288         PR c++/53528 C++11 attribute support
6289         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
6290         new functions.
6291         * c-common.c (check_cxx_fundamental_alignment_constraints): New
6292         static function.
6293         (handle_aligned_attribute): In choose strictest alignment
6294         among many.  Use new check_cxx_fundamental_alignment_constraints.
6295         (handle_transparent_union_attribute): In c++11 attribute syntax,
6296         don't look through typedefs.
6298 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
6300         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
6301         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
6302         out of dumpfile.h.
6304 2012-09-25  Dehao Chen  <dehao@google.com>
6306         PR middle-end/54645
6307         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6308         map when read in the pch.
6310 2012-09-18  Arnaud Charlet  <charlet@adacore.com>
6312         * c-ada-spec.c: Style fixes.
6314 2012-09-18  Thomas Quinot  <quinot@adacore.com>
6316         * c.opt (-fada-spec-parent): Define new command line switch.
6317         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
6318         is specified, generate binding spec as a child of the specified unit.
6320 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
6321             Manuel López-Ibáñez  <manu@gcc.gnu.org>
6323         PR c++/53210
6324         * c.opt ([Winit-self]): Enabled by -Wall in C++.
6326 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
6328         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
6329         for pointers, and add missing Convention C pragma.
6330         (print_ada_struct_decl): Add missing aliased keyword.
6331         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
6333 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
6335         * c-common.c (sizeof_pointer_memaccess_warning): New function.
6336         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
6337         * c-opts.c (c_common_handle_option): Enable it for -Wall.
6338         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
6339         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
6341 2012-08-10  Richard Guenther  <rguenther@suse.de>
6343         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
6345 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
6347         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
6348         instead of separate pp_newline and pp_flush.
6349         (print_c_tree): Likewise.
6351 2012-07-26  Richard Henderson  <rth@redhat.com>
6353         * c-common.c (handle_hot_attribute): Allow labels.
6354         (handle_cold_attribute): Likewise.
6356 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
6358         PR c++/28656
6359         * c-common.c (check_function_nonnull): Handle multiple nonnull
6360         attributes properly.
6362 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
6364         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
6365         * c-ada-spec.c: Likewise.
6366         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
6368 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
6370         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
6371         Remove code conditional on it.
6373 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
6375         * c-gimplify.c: Do not include basic-block.h.
6376         * c-common.c: Do not include linfuncs.h.
6378 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
6380         * c-common.h: Include tree.h.
6382 2012-07-02  Jason Merrill  <jason@redhat.com>
6384         PR c++/53524
6385         * c-common.c (get_priority): Call default_conversion.
6387 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
6389         * c-pch.c (c_common_write_pch): Remove unused variables.
6391 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
6393         * cppspec.c: Moved from gcc/ to here.
6395 2012-06-27  Kai Tietz  <ktietz@redhat.com>
6397         PR preprocessor/37215
6398         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
6400 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
6402         * c-common.h (c_common_print_pch_checksum): Remove.
6403         * c-pch.c: Do not include output.h.
6404         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
6405         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
6406         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
6407         (struct c_pch_header): Remove.
6408         (get_ident): Update gpch version.
6409         (pch_init): Do not print executable_checksum to asm_out_file.
6410         Do not fail if there is no asm_out_file to read back from.  Set
6411         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
6412         (c_common_write_pch): Verify that nothing was written to asm_out_file
6413         since pch_init was called.  Do not write a c_pch_header, and do not
6414         copy from asm_out_file to the PCH.
6415         (c_common_read_pch): Do not read a c_pch_header, and do not restore
6416         the content of asm_out_file from the PCH.
6417         (c_common_print_pch_checksum): Remove.
6418         * c-opts.c (c_common_init): Print out executable_checksum directly.
6420 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
6422         * c-target.def (objc_declare_unresolved_class_reference,
6423         objc_declare_class_definition): Add new hooks.
6425 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
6427         * c-lex.c: Do not include output.h.
6428         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
6429         Remove uses of ASM_OUTPUT_IDENT.
6431 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
6433         PR c++/51033
6434         * c-common.h (c_build_vec_perm_expr): Move decl here.
6435         * c-common.c (c_build_vec_perm_expr): Move definition
6436         here.
6438 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
6440         * c.opt (fconserve-space): Turn into a no-op.
6442 2012-06-04  Sterling Augustine  <saugustine@google.com>
6444         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
6445         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
6446         both the start and end of the function.
6448 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
6450         * c-common.c: Do not include output.h.
6451         * c-pragma.c: Likewise.
6453 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
6455         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
6456         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
6457         (lang_decl_name): Handle namespace decls.
6459 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
6461         * c-ada-spec.c: Do not include output.h.
6462         * c-semantics.c: Likewise.
6464 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
6466         * c-common.c: Fix typo.
6468 2012-05-29  Michael Matz  <matz@suse.de>
6470         * c-common.h (c_expand_decl): Remove prototype.
6472 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6474         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
6475         * c-opts.c (c_common_handle_option): Remove code handling
6476         warn_missing_braces.
6478 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
6480         PR c++/25137
6481         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
6482         -Wmissing_braces.
6484 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
6486         PR c++/53322
6487         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
6489 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6491         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
6492         * c-opts.c (c_common_handle_option): Do not handle explicitly
6493         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
6495 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
6497         PR preprocessor/7263
6498         * c-lex.c (c_lex_with_flags):  Pass a virtual location to the call
6499         to cpp_classify_number.  For diagnostics, use the precise location
6500         instead of the global input_location.
6502 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
6504         PR c++/11856
6505         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
6507 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
6509         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
6511 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6513         PR 53063
6514         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
6515         Wreorder): Use LangEnabledBy.
6516         * c-opts.c (c_common_handle_option): Do not enable them
6517         explicitly. Call lang-specific generated functions.
6518         (c_common_post_options): Do not set them here.
6520 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6522         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
6523         Wmissing-field-initializers,Wmissing-parameter-type,
6524         Wold-style-declaration,Woverride-init): Use EnabledBy.
6525         * c-opts.c (c_common_post_options): Do not set here explicitly.
6527 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6529         PR 53063
6530         * c-opts.c (c_common_handle_option): Use handle_generated_option
6531         to enable sub-options.
6533 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
6535         PR c++/53158
6536         * c-common.c (warnings_for_convert_and_check): Use warning_at.
6538 2012-05-10  Richard Guenther  <rguenther@suse.de>
6540         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
6541         adjust commentary about TYPE_IS_SIZETYPE types.
6543 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6545         PR c++/53261
6546         * c-common.c (warn_logical_operator): Check that argument of
6547         integer_zerop is not NULL.
6549 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6551         PR c/43772
6552         * c-common.c (warn_logical_operator): Do not warn if either side
6553         is already true or false.
6555 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6557         PR c/51712
6558         * c-common.c (expr_original_type): New.
6559         (shorten_compare): Do not warn for enumeration types.
6561 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6563         * c.opt (fpermissive): Add Var(flag_permissive).
6565 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
6567         PR c++/51033
6568         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
6569         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
6571 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
6573         Add -Wvarargs option
6574         * c.opt (Wvarargs):  Define new option.
6576 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6578         * c-common.c (check_function_arguments): Replace
6579         Wmissing-format-attribute with Wsuggest-attribute=format.
6581 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6583         * c.opt (Wsuggest-attribute=format): New. Alias of
6584         Wmissing-format-attribute.
6585         * c-format.c (decode_format_type): Replace
6586         Wmissing-format-attribute with Wsuggest-attribute=format.
6587         (check_function_format): Likewise.
6589 2012-04-27  Ollie Wild  <aaw@google.com>
6591         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
6592         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
6593         * c.opt: Add Wliteral-suffix.
6595 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6597         PR c/44774
6598         * c.opt (Wpedantic): New.
6599         (pedantic): Alias Wpedantic.
6600         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
6601         (c_common_post_options): Likewise.
6602         (sanitize_cpp_opts): Likewise.
6603         * c-lex.c (interpret_float): Likewise.
6604         * c-format.c (check_format_types): Likewise.
6605         * c-common.c (pointer_int_sum): Likewise.
6606         (c_sizeof_or_alignof_type): Likewise.
6607         (c_add_case_label): Likewise.
6608         (c_do_switch_warnings): Likewise.
6609         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
6611 2012-04-15  Jason Merrill  <jason@redhat.com>
6613         PR c++/52818
6614         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
6615         (C_STD_NAME): Distinguish between C++98 and C++11.
6617 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6619         PR target/52624
6620         * c-common.h (uint16_type_node): Rename into...
6621         (c_uint16_type_node): ...this.
6622         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
6623         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
6625 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6627         * c-common.c (warn_if_unused_value): Move definition to here.
6628         * c-common.h (warn_if_unused_value): Move declaration to here.
6630 2012-03-23  William Bader  <williambader@hotmail.com>
6632         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
6634 2012-03-20  Jason Merrill  <jason@redhat.com>
6636         * c-common.h (enum cxx_dialect): Add cxx1y.
6637         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
6638         test.
6639         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
6640         * c-opts.c (c_common_post_options): Likewise.
6641         (set_std_cxx1y): New.
6642         (c_common_handle_option): Call it.
6643         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
6645 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
6647         PR c++/14710
6648         * c.opt ([Wuseless-cast]): Add.
6650 2012-03-16  Richard Guenther  <rguenther@suse.de>
6652         * c-pretty-print.c (pp_c_initializer_list): Adjust.
6654 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6656         PR c++/44783
6657         * c.opt (ftemplate-backtrace-limit) Add.
6659 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6661         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
6662         handling.
6663         * c-pragma.c (handle_pragma_extern_prefix): Remove.
6664         (init_pragma): Don't register extern_prefix.
6666 2012-03-12  Richard Guenther  <rguenther@suse.de>
6668         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
6669         (builtin_type_for_size): Likewise.
6671 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
6673         PR c++/52215
6674         * c-common.c (sync_resolve_params): Don't decide whether to convert
6675         or not based on TYPE_SIZE comparison, convert whenever arg_type
6676         is unsigned INTEGER_TYPE.
6678 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
6680         PR c/52118
6681         * c.opt ([Wunused-local-typedefs]): Fix description.
6683 2012-01-24  Mike Stump  <mikestump@comcast.net>
6685         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
6686         exactly.
6688 2012-01-18  Richard Guenther  <rguenther@suse.de>
6690         * c-opts.c (c_common_post_options): Reset LTO flags if
6691         we are about to generate a PCH.
6693 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
6695         PR c++/51777
6696         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
6697         use pp_unsigned_wide_integer.
6699 2012-01-10  Richard Guenther  <rguenther@suse.de>
6701         PR middle-end/51806
6702         * c-opts.c (c_common_handle_option): Move -Werror handling
6703         to language independent code.
6705 2012-01-05  Richard Guenther  <rguenther@suse.de>
6707         PR middle-end/51764
6708         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
6709         from common.opt.
6711 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
6713         PR c++/51316
6714         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
6715         of array types with an unknown bound.
6717 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
6719         * c-common.c (flag_isoc99): Update comment to refer to C11.
6720         (flag_isoc1x): Change to flag_isoc11.
6721         * c-common.h (flag_isoc99): Update comment to refer to C11.
6722         (flag_isoc1x): Change to flag_isoc11.
6723         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
6724         C11.
6725         * c-opts.c (set_std_c1x): Change to set_std_c11.
6726         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
6727         Call set_std_c11.
6728         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
6729         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
6730         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
6731         standard.
6732         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
6733         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
6734         (std=gnu1x): Make alias of std=gnu11.
6736 2011-12-19  Jason Merrill  <jason@redhat.com>
6738         PR c++/51228
6739         * c-common.c (handle_transparent_union_attribute): Check the first
6740         field if the type is complete.
6742 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
6744         PR libstdc++/51365
6745         * c-common.c (RID_IS_FINAL): Add.
6746         * c-common.h (RID_IS_FINAL): Add.
6748 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
6750         * c.opt (fgnu-runtime): Provide full description.
6751         (fnext-runtime): Likewise.
6752         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
6754 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
6756         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
6757         predefines in one place.  Add LOCK_FREE predefines.
6758         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
6759         new func.
6761 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
6763         PR c/51256
6764         * c-common.c (get_atomic_generic_size): Check for various error
6765         conditions
6766         (resolve_overloaded_atomic_exchange,
6767         resolve_overloaded_atomic_compare_exchange,
6768         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
6769         error_mark_node for error conditions.
6771 2011-11-08  Richard Guenther  <rguenther@suse.de>
6773         PR middle-end/51010
6774         c-family/
6776 2011-11-07  Richard Henderson  <rth@redhat.com>
6777             Aldy Hernandez  <aldyh@redhat.com>
6778             Torvald Riegel  <triegel@redhat.com>
6780         Merged from transactional-memory.
6782         * c-common.c (handle_tm_wrap_attribute,
6783         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
6784         (struct c_common_reswords): Added __transaction* keywords.
6785         (struct c_common_attribute_table): Added transaction* and tm_regparm
6786         attributes.
6787         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
6788         masks.
6789         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
6790         find_tm_attribute): Declare.
6792 2011-11-07  Jason Merrill  <jason@redhat.com>
6794         PR c++/35688
6795         * c-common.c, c-common.h: Revert yesterday's changes.
6797 2011-11-06  Jason Merrill  <jason@redhat.com>
6799         PR c++/35688
6800         * c-common.c (decl_has_visibility_attr): Split out from...
6801         (c_determine_visibility): ...here.
6802         * c-common.h: Declare it.
6804 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
6806         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
6807         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
6808         type.
6809         (check_user_alignment): New.  Split out of
6810         handle_aligned_attribute.  Disallow integer constants with
6811         noninteger types.  Conditionally allow zero.
6812         (handle_aligned_attribute): Use check_user_alignment.
6813         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
6815 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
6816             Richard Henderson  <rth@redhat.com>
6818         Merged from cxx-mem-model.
6820         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
6821         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
6822         parameters that are the same type size.
6823         (get_atomic_generic_size): New.  Find size of generic
6824         atomic function parameters and do typechecking.
6825         (add_atomic_size_parameter): New.  Insert size into parameter list.
6826         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
6827         either __atomic_exchange_n or external library call.
6828         (resolve_overloaded_atomic_compare_exchange): Restructure
6829         __atomic_compare_exchange to either _n variant or external library call.
6830         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
6831         __atomic_load_n or an external library call.
6832         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
6833         __atomic_store_n or an external library call.
6834         (resolve_overloaded_builtin): Handle new __atomic builtins.
6836 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
6838         PR c++/50608
6839         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
6840         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
6841         <INDIRECT_REF>: Return the argument.
6842         <ARRAY_REF>: Remove special code for negative offset.
6843         Call fold_build_pointer_plus instead of size_binop.
6844         (fold_offsetof): Remove STOP_REF argument and adjust.
6845         * c-common.h (fold_offsetof_1): Declare.
6846         (fold_offsetof): Remove STOP_REF argument.
6848 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
6850         PR c++/50810
6851         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
6852         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
6853         Wnarrowing for C++0x and C++98.
6854         * c.opt ([Wnarrowing]): Update.
6856 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
6858         PR c++/44277
6859         * c.opt: Add Wzero-as-null-pointer-constant.
6861 2011-10-31  Jason Merrill  <jason@redhat.com>
6863         * c.opt (-fdeduce-init-list): Off by default.
6865         PR c++/50920
6866         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
6867         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
6868         and -Wc++11-compat.
6869         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
6871 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
6873         PR c++/30066
6874         * c.opt (fvisibility-inlines-hidden): Description change.
6876 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
6878         Implement C++11 user-defined literals.
6879         * c-common.c (build_userdef_literal): New.
6880         * c-common.def: New tree code.
6881         * c-common.h (tree_userdef_literal): New tree struct and accessors.
6882         * c-lex.c (interpret_float): Add suffix parm.
6883         (c_lex_with_flags): Build literal tokens.
6885 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
6887         PR c++/50841
6888         Revert:
6889         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
6891         PR c++/50810
6892         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
6893         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
6894         Wnarrowing for C++0x and C++98.
6895         * c.opt ([Wnarrowing]): Update.
6897 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
6899         PR c++/50810
6900         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
6901         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
6902         Wnarrowing for C++0x and C++98.
6903         * c.opt ([Wnarrowing]): Update.
6905 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
6907         PR c++/45385
6908         * c-common.c (conversion_warning): Remove code looking for
6909         artificial operands.
6911 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
6913         PR bootstrap/50760
6914         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
6915         !NO_IMPLICIT_EXTERN_C.
6917 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
6919         * c-common.c (c_common_reswords): Add __bases,
6920         __direct_bases.
6921         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
6923 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
6925         PR c++/50757
6926         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
6928 2011-10-15  Tom Tromey  <tromey@redhat.com>
6929             Dodji Seketeli  <dodji@redhat.com>
6931         * c.opt (fdebug-cpp): New option.
6932         * c-opts.c (c_common_handle_option): Handle the option.
6933         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
6934         output stream in parameter. Factorized from ...
6935         (maybe_print_line): ... this. Dump location debug information when
6936         -fdebug-cpp is in effect.
6937         (print_line_1): New static function. Takes an output stream in
6938         parameter. Factorized from ...
6939         (print_line): ... here. Dump location information when -fdebug-cpp
6940         is in effect.
6941         (scan_translation_unit): Dump location information when
6942         -fdebug-cpp is in effect.
6944 2011-10-15  Tom Tromey  <tromey@redhat.com>
6945             Dodji Seketeli  <dodji@redhat.com>
6947         * c.opt (ftrack-macro-expansion): New option. Handle it with and
6948         without argument.
6949         * c-opts.c (c_common_handle_option)<case
6950         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
6951         cases. Handle -ftrack-macro-expansion with and without argument.
6953 2011-10-15  Tom Tromey  <tromey@redhat.com>
6954             Dodji Seketeli  <dodji@redhat.com>
6956         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
6957         (print_line, cb_define, do_line_change): Adjust to avoid touching
6958         the internals of struct line_map.  Use the public API instead.
6959         * c-pch.c (c_common_read_pch): Likewise.
6960         * c-lex.c (fe_file_change): Likewise.
6962 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
6964         PR c++/17212
6965         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
6967 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
6969         PR c++/33067
6970         * c-pretty-print.c (pp_c_floating_constant): Output
6971         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
6973 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
6975         * c-common.c (def_builtin_1): Delete old interface with two
6976         parallel arrays to hold standard builtin declarations, and replace
6977         it with a function based interface that can support creating
6978         builtins on the fly in the future.  Change all uses, and poison
6979         the old names.  Make sure 0 is not a legitimate builtin index.
6980         * c-omp.c (c_finish_omp_barrier): Ditto.
6981         (c_finish_omp_taskwait): Ditto.
6982         (c_finish_omp_flush): Ditto.
6984 2011-10-11  Tristan Gingold  <gingold@adacore.com>
6986         * c.opt: (fallow-parameterless-variadic-functions): New.
6988 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
6990         PR c++/33255 - Support -Wunused-local-typedefs warning
6991         * c-common.h (struct c_language_function::local_typedefs): New
6992         field.
6993         (record_locally_defined_typedef, maybe_record_typedef_use)
6994         (maybe_warn_unused_local_typedefs): Declare new functions.
6995         * c-common.c (record_locally_defined_typedef)
6996         (maybe_record_typedef_use)
6997         (maybe_warn_unused_local_typedefs): Define new functions.
6998         * c.opt: Declare new -Wunused-local-typedefs flag.
7000 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
7002         PR middle-end/50266
7003         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
7004         computations.
7006 2011-09-05  Richard Guenther  <rguenther@suse.de>
7008         * c-common.c (complete_array_type): Use ssize_int (-1) instead
7009         of integer_minus_one_node for empty array upper bounds.
7011 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
7013         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
7014         it's the first time it's being called on this main TU.
7016 2011-08-24  Richard Guenther  <rguenther@suse.de>
7018         PR c/49396
7019         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
7021 2011-08-22  Gabriel Charette  <gchare@google.com>
7023         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
7024         defined in cpp_init_builtins and c_cpp_builtins.
7026 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
7028         * c-common.c (c_common_reswords): Add __builtin_complex.
7029         * c-common.h (RID_BUILTIN_COMPLEX): New.
7031 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
7033         * c-common.c (c_common_reswords): Add _Noreturn.
7034         (keyword_is_function_specifier): Handle RID_NORETURN.
7035         * c-common.h (RID_NORETURN): New.
7037 2011-08-10  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
7039         * c-common.c (unsafe_conversion_p): New function. Check if it is
7040         unsafe to convert an expression to the type.
7041         (conversion_warning): Adjust, use unsafe_conversion_p.
7042         * c-common.h (unsafe_conversion_p): New function declaration.
7044 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
7046         * c-common.h (c_finish_omp_atomic): Adjust prototype.
7047         (c_finish_omp_taskyield): New prototype.
7048         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
7049         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
7050         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
7051         or RHS1 have side-effects, evaluate those too in the right spot,
7052         if it is a decl and LHS is also a decl, error out if they
7053         aren't the same.
7054         (c_finish_omp_taskyield): New function.
7055         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
7056         * c-pragma.c (omp_pragmas): Add taskyield.
7057         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
7058         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
7059         PRAGMA_OMP_CLAUSE_MERGEABLE.
7061 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
7063         * c-common.h (set_underlying_type): Remove parm name from
7064         declaration.
7066 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
7068         * c-pretty-print.h: Search c-common.h in c-family.
7070 2011-07-22  Jason Merrill  <jason@redhat.com>
7072         PR c++/49793
7073         * c.opt (Wnarrowing): New.
7075         PR c++/30112
7076         * c-common.h: Declare c_linkage_bindings.
7077         * c-pragma.c (handle_pragma_redefine_extname): Use it.
7079         PR c++/49813
7080         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
7081         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
7082         as flag_isoc99 for 'restrict'.
7083         (pp_c_specifier_qualifier_list): Likewise for _Complex.
7085 2011-07-21  Ian Lance Taylor  <iant@google.com>
7087         PR middle-end/49705
7088         * c-common.c (c_disable_warnings): New static function.
7089         (c_enable_warnings): New static function.
7090         (c_fully_fold_internal): Change local unused_p to bool.  Call
7091         c_disable_warnings and c_enable_warnings rather than change
7092         c_inhibit_evaluation_warnings.
7094 2011-07-20  Jason Merrill  <jason@redhat.com>
7096         PR c++/6709 (DR 743)
7097         PR c++/42603 (DR 950)
7098         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
7099         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
7100         (CPP_DECLTYPE): New.
7101         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
7103 2011-07-19  Richard Guenther  <rguenther@suse.de>
7105         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
7106         * c-omp.c (c_finish_omp_for): Likewise.
7108 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
7110         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
7111         body on the next line.
7113 2011-07-08  Jason Merrill  <jason@redhat.com>
7115         PR c++/45437
7116         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
7118         PR c++/49673
7119         * c-common.c (c_apply_type_quals_to_decl): Don't check
7120         TYPE_NEEDS_CONSTRUCTING.
7122 2011-07-06  Richard Guenther  <rguenther@suse.de>
7124         * c-common.c (c_common_nodes_and_builtins):
7125         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
7127 2011-07-05  Richard Guenther  <rguenther@suse.de>
7129         * c-common.c (c_common_nodes_and_builtins): Build all common
7130         tree nodes first.
7132 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
7134         * c-common.h (c_tree_chain_next): New static inline function.
7136         * c-common.c (check_builtin_function_arguments): Handle
7137         BUILT_IN_ASSUME_ALIGNED.
7139 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
7141         * c-common.c: Add sync_ or SYNC__ to builtin names.
7142         * c-omp.c: Add sync_ or SYNC__ to builtin names.
7144 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
7146         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
7147         handler.
7148         (gen_pragma_handler): New union.
7149         (internal_pragma_handler): New type.
7150         (c_register_pragma_with_data)
7151         (c_register_pragma_with_expansion_and_data): New functions.
7153         * c-pragma.c (registered_pragmas, c_register_pragma_1)
7154         (c_register_pragma, c_register_pragma_with_expansion)
7155         (c_invoke_pragma_handler): Changed to work with
7156         internal_pragma_handler.
7157         (c_register_pragma_with_data)
7158         (c_register_pragma_with_expansion_and_data): New functions.
7160 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
7162         * c-common.c: Include common/common-target.h.
7163         (handle_section_attribute): Use
7164         targetm_common.have_named_sections.
7165         * c-cppbuiltin.c: Include common/common-target.h.
7166         (c_cpp_builtins): Use targetm_common.except_unwind_info.
7168 2011-06-10  Richard Guenther  <rguenther@suse.de>
7170         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
7171         to print a IDENTIFIER_NODE.
7173 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7174             Joseph Myers  <joseph@codesourcery.com>
7176         * c.opt (fbuilding-libgcc): New option.
7177         * c-cppbuiltin.c (c_cpp_builtins): Define
7178         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
7180 2011-06-07  Jason Merrill  <jason@redhat.com>
7182         * c-common.c (max_tinst_depth): Lower default to 900.
7184         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
7186 2011-06-07  Richard Guenther  <rguenther@suse.de>
7188         * c-common.c (c_common_nodes_and_builtins): Do not set
7189         size_type_node or call set_sizetype.
7191 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
7193         PR debug/49130
7194         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
7195         type when using pointer comparison to compare types.
7197 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
7199         * c.opt: Add -Wdelete-non-virtual-dtor.
7200         * c-opts.c (c_common_handle_option): Include it in -Wall.
7202 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
7204         PR bootstrap/49190
7206         Revert:
7207         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
7209         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
7210         not tree_common.
7212 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
7214         PR c++/49165
7215         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
7216         C++ don't call c_common_truthvalue_conversion on void type arms.
7218 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
7220         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
7221         (stmt_list_stack): Define.
7222         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
7223         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
7225 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
7227         * c-common.c (warning_candidate_p): Check for BLOCKs.
7229 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
7231         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
7232         not tree_common.
7234 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
7236         * c-common.c (def_fn_type): Remove extra va_end.
7238 2011-05-23  Jason Merrill  <jason@redhat.com>
7240         PR c++/48106
7241         * c-common.c (c_common_get_narrower): New.
7242         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
7244 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
7246         * c-common.h (check_function_arguments): Tweak prototype of
7247         check_function_arguments.
7248         * c-common.c (check_function_arguments): Likewise.  Adjust
7249         calls to check_function_nonnull, check_function_format, and
7250         check_function_sentinel.
7251         (check_function_sentinel): Take a FUNCTION_TYPE rather than
7252         separate attributes and typelist arguments.  Use
7253         FOREACH_FUNCTION_ARGS to iterate over argument types.
7255 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
7257         * c-common.c (c_common_reswords): Reorder.
7258         * c-common.h (rid): Likewise.
7260 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
7262         * c-common.c (def_fn_type): Don't call build_function_type, call
7263         build_function_type_array or build_varargs_function_type_array
7264         instead.
7265         (c_common_nodes_and_builtins): Likewise.
7267 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
7269         * c-common.c (c_add_case_label): Omit the loc argument to
7270         build_case_label.
7271         * c-common.h (build_case_label): Remove.
7272         * c-semantics.c (build_case_label): Remove.
7274 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
7276         * c-objc.h (objc_start_method_definition): Update prototype.
7277         * stub-objc.c (objc_start_method_definition): Add extra parameter.
7279 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
7281         * c-common.c (check_main_parameter_types): Reindent.  Don't use
7282         TYPE_ARG_TYPES directly.
7283         (handle_nonnull_attribute): Likewise.
7284         (sync_resolve_params): Likewise.
7285         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
7286         to check_format_string.
7287         (handle_format_attribute): Likewise.
7288         (check_format_string): Take a function type to examine instead of
7289         a type list.  Use a function_arg_iterator to step through argument
7290         types.
7292 2011-05-04  Richard Guenther  <rguenther@suse.de>
7294         * c-common.c (fix_string_type): Use size_int for index type bounds.
7295         (start_fname_decls): Do not pass NULL to build_int_cst.
7296         (c_init_attributes): Likewise.
7297         * c-lex.c (c_lex_with_flags): Likewise.
7299 2011-04-27  Jason Merrill  <jason@redhat.com>
7301         * c-common.c (make_tree_vector_from_list): New.
7302         * c-common.h: Declare it.
7304 2011-04-26  Richard Guenther  <rguenther@suse.de>
7306         PR preprocessor/48248
7307         * c-ppoutput.c (maybe_print_line): Always optimize newlines
7308         for output size with -P.
7310 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
7312         * c-common.c (struct c_common_resword): Add __underlying_type.
7313         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
7315 2011-04-20  Jim Meyering  <meyering@redhat.com>
7317         * c-format.c (init_dollar_format_checking): Remove useless
7318         if-before-free.
7320 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
7322         * c-objc.h (objc_get_interface_ivars): Removed.
7323         (objc_detect_field_duplicates): New.
7324         * stub-objc.c: Likewise.
7326 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
7328         * stub-objc.c (objc_declare_protocols): Renamed to
7329         objc_declare_protocol.
7330         * c-objc.h: Likewise.
7332 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
7334         * stub-objc.c (objc_declare_class): Updated argument name.
7336 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
7338         * c-common.h (c_common_init_ts): Declare.
7339         * c-common.c (c_common_init_ts): Define.
7341 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
7343         * c-objc.h (objc_build_message_expr): Updated prototype.
7344         * stub-objc.c (objc_build_message_expr): Likewise.
7346 2011-04-12  Martin Jambor  <mjambor@suse.cz>
7348         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
7349         of cgraph_node.
7351 2011-04-11  Richard Guenther  <rguenther@suse.de>
7353         * c-common.c (complete_array_type): Build a range type of
7354         proper type.
7356 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
7358         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
7359         (handle_type_generic_attribute): Likewise.
7361 2011-04-07  Jason Merrill  <jason@redhat.com>
7363         PR c++/48450
7364         * c-common.c (c_common_truthvalue_conversion): Don't ignore
7365         conversion from C++0x scoped enum.
7367 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
7369         * c-target-def.h: New file.
7370         * c-target.def: New file.
7371         * c-target.h: New file.
7372         * c-common.c (targetcm): Don't define here.
7373         * c-common.h (default_handle_c_option): Declare.
7374         * c-format.c: Include c-target.h instead of target.h.
7375         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
7376         include tm.h.
7377         (default_handle_c_option): Move from targhooks.c.
7379 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
7381         PR preprocessor/48248
7382         * c-ppoutput.c (print): Add src_file field.
7383         (init_pp_output): Initialize it.
7384         (maybe_print_line): Don't optimize by adding up to 8 newlines
7385         if map->to_file and print.src_file are different file.
7386         (print_line): Update print.src_file.
7388 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7390         * c-ada-spec.c (compare_comment): Use filename_cmp
7391         instead of strcmp for filename.
7393 2011-03-25  Jeff Law  <law@redhat.com>
7395         * c-common.c (def_fn_type): Add missing va_end.
7397 2011-03-25  Jason Merrill  <jason@redhat.com>
7399         * c.opt: Add -std=c++03.
7401 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
7403         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
7405 2011-03-17  Kai Tietz  <ktietz@redhat.com>
7407         PR target/12171
7408         * c-pretty-print.c (pp_c_specifier_qualifier_list):
7409         Display allowed attributes for function pointer types.
7410         (pp_c_attributes_display): New function to display
7411         attributes having affects_type_identity flag set to true.
7412         * c-pretty-print.h (pp_c_attributes_display): New prototype.
7414         * c-common.c (c_common_attribute_table):
7415         Add new element.
7416         (c_common_format_attribute_table): Likewise.
7418 2011-03-18  Jason Merrill  <jason@redhat.com>
7420         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
7421         * c-common.h: Don't declare it here.
7422         * c-common.c: Or define it here.
7423         * c-opts.c (c_common_handle_option): Or set it here.
7425         PR c++/35315
7426         * c-common.c (handle_transparent_union_attribute): Don't
7427         make a duplicate type in C++.
7429 2011-03-15  Jason Merrill  <jason@redhat.com>
7431         * c-common.c (max_constexpr_depth): New.
7432         * c-common.h: Declare it.
7433         * c-opts.c (c_common_handle_option): Set it.
7434         * c.opt (fconstexpr-depth): New option.
7436 2011-03-11  Jason Merrill  <jason@redhat.com>
7438         * c-common.c (attribute_takes_identifier_p): Add missing const.
7440         PR c++/46803
7441         * c-common.c (attribute_takes_identifier_p): Assume that an
7442         unknown attribute takes an identifier.
7444 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
7446         PR c/47786
7447         * c-common.c (c_type_hash): Call list_length instead of iterating
7448         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
7450 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
7452         PR c/47809
7453         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
7455 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
7457         * c.opt (fobjc-abi-version=) New.
7458         (fobjc-nilcheck): New.
7460 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
7462         PR c++/46890
7463         * c-common.h (keyword_is_decl_specifier): Declare.
7464         * c-common.c (keyword_is_decl_specifier): Define.
7465         (keyword_is_function_specifier): New function.
7467 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
7469         PR c/47473
7470         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
7471         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
7472         REAL_TYPE.
7474 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
7476         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
7478 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
7480         PR pch/47430
7481         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
7482         after init_c_lex if pch_file is set.
7484 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
7486         PR c++/43601
7487         * c.opt (-fkeep-inline-dllexport): New switch.
7489 2011-01-12  Richard Guenther  <rguenther@suse.de>
7491         PR middle-end/32511
7492         * c-common.c (handle_weak_attribute): Warn instead of error
7493         on declaring an inline function weak.
7495 2011-01-05  Tom Tromey  <tromey@redhat.com>
7497         * c-common.h (lvalue_error): Update.
7498         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
7499         not error.
7501 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
7503         PR objc/47075
7504         * c-objc.h (objc_finish_message_expr): Added argument to
7505         prototype.
7507 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
7509         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
7510         Use prototype_p.
7512 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
7514         * c-objc.h (objc_maybe_warn_exceptions): New.
7515         * stub-objc.c (objc_maybe_warn_exceptions): New.
7517 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
7519         * c-common.h (readonly_error): Declare.
7520         * c-common.c (readonly_error): Define.
7522 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
7524         * c-common.h (invalid_indirection_error): Declare.
7525         * c-common.c (invalid_indirection_error): Define.
7527 2010-12-03  Richard Guenther  <rguenther@suse.de>
7529         PR c/46745
7530         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
7531         (pp_c_unary_expression): Likewise.
7532         (pp_c_expression): Likewise.
7534 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
7536         * c-common.h (objc_finish_function): New.
7537         (objc_non_volatilized_type): Removed.
7538         (objc_type_quals_match): Removed.
7539         * stub-objc.c (objc_finish_function): New.
7540         (objc_non_volatilized_type): Removed.
7541         (objc_type_quals_match): Removed.
7543 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
7545         * c-common.h (parse_optimize_options): Declare.
7546         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
7547         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
7549 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
7551         * c-opts.c (check_deps_environment_vars): Use getenv instead of
7552         GET_ENVIRONMENT.
7553         * c-pch.c (O_BINARY): Don't define here.
7554         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
7556 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
7558         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
7559         targetm.except_unwind_info.
7561 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
7563         * c-opts.c (c_common_handle_option): Pass location to
7564         set_struct_debug_option.
7566 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
7568         * c-common.c (visibility_options): Move from ../opts.c.
7569         * c-common.h (struct visibility_flags, visibility_options):
7570         Declare here.
7571         * c-opts.c (finish_options): Rename to c_finish_options.
7572         (c_common_init): Update call to finish_options.
7574 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
7576         PR objc/34033
7577         * c-lex.c (lex_string): Check that each string in an Objective-C
7578         string concat sequence starts with either one or zero '@', and
7579         that there are no spurious '@' signs at the end.
7581 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
7583         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
7584         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
7585         HANDLE_PRAGMA_VISIBILITY.
7586         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
7587         HANDLE_PRAGMA_VISIBILITY): Don't define.
7588         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
7590 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
7592         PR c++/16189
7593         PR c++/36888
7594         PR c++/45331
7595         * c-common.h (keyword_begins_type_specifier): Declare.
7596         (keyword_is_storage_class_specifier): Declare.
7597         (keyword_is_type_qualifier): Declare.
7598         * c-common.c (keyword_begins_type_specifier): New function.
7599         (keyword_is_storage_class_specifier): New function.
7600         (keyword_is_type_qualifier): Declare.
7602 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
7604         PR c/46547
7605         * c-common.c (in_late_binary_op): Define.
7606         (c_common_truthvalue_conversion): Check in_late_binary_op before
7607         calling c_save_expr.
7608         * c-common.h (in_late_binary_op): Declare.
7610 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
7612         * c-opts.c (c_common_handle_option): Update calls to
7613         set_struct_debug_option.
7615 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
7617         * c-common.h (objc_declare_protocols): Added additional argument.
7618         * stub-objc.c (objc_declare_protocol): Same change.
7620 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
7622         PR c/33193
7623         * c-common.h (build_real_imag_expr): Declare.
7624         * c-semantics.c (build_real_imag_expr): Define.
7626 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
7628         * c-opts.c (c_common_parse_file): Take no arguments.
7629         * c-common.h (c_common_parse_file): Update prototype.
7631 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
7633         PR c++/46401
7634         * c-common.c (warning_candidate_p): Don't track non-const calls
7635         or STRING_CSTs.
7637 2010-11-15  Ian Lance Taylor  <iant@google.com>
7639         * c-lex.c (init_c_lex): Set macro debug callbacks if
7640         flag_dump_go_spec is set.
7642 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
7644         * c-common.h (objc_build_incr_expr_for_property_ref): New.
7645         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
7647 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
7649         PR preprocessor/45038
7650         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
7651         dialects.
7653 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
7655         * c-common.h (c_family_lang_mask): Declare.
7656         * c-opts.c (c_family_lang_mask): Make extern.
7657         * c-pragma.c (handle_pragma_diagnostic): Use
7658         control_warning_option.
7660 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
7662         * c-common.c (parse_optimize_options): Update call to
7663         decode_options.
7664         * c-common.h (c_common_handle_option): Update prototype.
7665         * c-opts.c (c_common_handle_option): Take location_t parameter and
7666         pass it to other functions.
7668 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
7670         * c-opts.c (warning_as_error_callback): Remove.
7671         (c_common_initialize_diagnostics): Don't call
7672         register_warning_as_error_callback.
7673         (c_common_handle_option): Handle -Werror=normalized= here.
7675 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
7677         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
7678         in diagnostic.
7679         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
7680         letter.
7681         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
7682         Remove trailing '.' from diagnostics.
7683         * c.opt (Wwrite-strings_: Avoid '`' in help text.
7685 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
7687         * c-common.c (parse_optimize_options): Pass global_dc to
7688         decode_options.
7689         * c-opts.c (c_common_handle_option): Pass &global_options to
7690         set_Wstrict_aliasing.
7691         * c.opt (v): Don't mark Common or document here.
7693 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
7695         PR target/44981
7696         * c-format.c (format_type): New type gcc_objc_string_format_type.
7697         (valid_stringptr_type_p): New.
7698         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
7699         (check_format_string): Pass expected type, use
7700         valid_stringptr_type_p (), check that the format string types are
7701         consistent with the format specification.
7702         (decode_format_attr): Warn if NSString is used outside objective-c.
7703         (format_types_orig): Add NSString.
7704         (format_name): New.
7705         (format_flags): New.
7706         (check_format_arg): Handle format strings requiring an external parser.
7707         first_target_format_type: New variable.
7708         (handle_format_attribute): Set up first_target_format_type, pass the
7709         expected format arg string type to check_format_string().
7710         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL):  New flag.
7711         * stub-objc.c (objc_string_ref_type_p): New.
7712         (objc_check_format_arg): New.
7714 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
7716         Fixed using the Objective-C 2.0 dot-syntax with class names.
7717         * c-common.h (objc_build_class_component_ref): New.
7718         * stub-objc.c (objc_build_class_component_ref): New.
7720 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
7722         * c.opt (Wproperty-assign-default): New option.
7724 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
7726         Implemented -fobjc-std=objc1 flag.
7727         * c.opt (fobjc-std=objc1): New option.
7729 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
7731         Implemented format and noreturn attributes for Objective-C methods.
7732         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
7733         attribute for Objective-C methods.
7735 2010-10-31  Jason Merrill  <jason@redhat.com>
7737         * c-common.c (conversion_warning, warn_for_collisions_1): Use
7738         EXPR_LOC_OR_HERE.
7740 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
7742         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
7743         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
7744         (objc_add_property_declaration): Removed arguments for copies and
7745         ivar.
7746         (objc_build_getter_call): Renamed to
7747         objc_maybe_build_component_ref.
7748         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
7749         (objc_is_property_ref): New.
7750         * c-common.c (c_common_reswords): Removed copies and ivar.
7751         * stub-objc.c (objc_add_property_declaration): Removed arguments
7752         for copies and ivar.
7753         (objc_build_getter_call): Renamed to
7754         objc_maybe_build_component_ref.
7755         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
7756         (objc_is_property_ref): New.
7758 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
7759             Matthew Gingell  <gingell@adacore.com>
7761         * c-ada-spec.c (separate_class_package): New function.
7762         (pp_ada_tree_identifier): Prefix references to C++ classes with the
7763         name of their enclosing package.
7764         (print_ada_declaration): Use separate_class_package.
7766 2010-10-27  Jason Merrill  <jason@redhat.com>
7768         * c-common.c (c_common_reswords): Add __is_literal_type.
7769         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
7771         * c-common.c (check_case_value): Remove special C++ code.
7773 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
7775         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
7776         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
7777         and RID_LAST_PATTR.
7778         (objc_add_property_declaration): Added additional arguments.
7779         (objc_property_attribute_kind): Removed.
7780         (objc_set_property_attr): Removed.
7781         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
7782         copy and nonatomic.
7783         * stub-objc.c (objc_add_property_declaration): Added additional
7784         arguments.
7785         (objc_set_property_attr): Removed.
7787 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
7789         * c-common.h (objc_add_property_variable): Renamed to
7790         objc_add_property_declaration.  Added location argument.
7791         * stub-objc.c (objc_add_property_variable): Same change.
7793 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
7795         * c-common.h (objc_maybe_printable_name): New.
7796         * stub-objc.c (objc_maybe_printable_name): New.
7798 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
7799             Andrew Pinski  <pinskia@gmail.com>
7801         * c-common.h (c_common_mark_addressable_vec): Declare.
7802         * c-common.c (c_common_mark_addressable_vec): New function.
7804 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
7806         * c-common.h (objc_set_method_type): Removed.
7807         (objc_add_method_declaration): Added boolean argument.
7808         (objc_start_method_definition): Same change.
7809         (objc_build_method_signature): Same change.
7810         * stub-objc.c (objc_set_method_type): Removed.
7811         (objc_add_method_declaration): Added boolean argument.
7812         (objc_start_method_definition): Same change.
7813         (objc_build_method_signature): Same change.
7815 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
7817         * c-common.h (finish_file): Removed.
7818         (objc_write_global_declarations): New.
7819         * c-opts.c (c_common_parse_file): Do not call finish_file.
7820         * stub-objc.c (objc_write_global_declarations): New.
7822 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
7824         Implemented parsing @synthesize and @dynamic for
7825         Objective-C/Objective-C++.
7826         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
7827         (objc_add_synthesize_declaration): New.
7828         (objc_add_dynamic_declaration): New.
7829         * c-common.c (c_common_reswords): Add synthesize and dynamic.
7830         * stub-objc.c (objc_add_synthesize_declaration): New.
7831         (objc_add_dynamic_declaration): New.
7833 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
7835         PR target/46041
7836         * c-cppbuiltin.c (mode_has_fma): Move function here from
7837         builtins.c.  Don't use the fma optab, instead just use the
7838         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
7839         using -save-temps.
7841 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
7843         Merge from 'apple/trunk' branch on FSF servers.
7845         2005-11-08  Fariborz Jahanian  <fjahanian@apple.com>
7847         Radar 4330422
7848         * c-common.h (objc_non_volatilized_type): New declaration
7849         * stub-objc.c (objc_non_volatilized_type): New stub.
7851 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
7853         Merge from 'apple/trunk' branch on FSF servers.
7855         2006-03-27 Fariborz Jahanian  <fjahanian@apple.com>
7857         Radar 4133425
7858         * c-common.h (objc_diagnose_private_ivar): New decl.
7859         * stub-objc.c (objc_diagnose_private_ivar): New stub.
7861 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
7863         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
7864         * c-common.h (enum rid): Add RID_AT_PACKAGE.
7865         (objc_ivar_visibility_kind): New enum.
7866         (objc_set_visibility): Adjust prototype to use visibility enum.
7867         * stub-objc.c (objc_set_visibility): Adjust stub to use
7868         visibility enum.
7870 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
7872         * c-cppbuiltin.c (builtin_define_float_constants): Emit
7873         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
7874         has the appropriate fma builtins.
7875         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
7877 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
7879         merge from FSF apple 'trunk' branch.
7880         2006 Fariborz Jahanian  <fjahanian@apple.com>
7882         Radars 4436866, 4505126, 4506903, 4517826
7883         * c-common.c (c_common_resword): Define @property and its attributes.
7884         * c-common.h: Define property attribute enum entries.
7885         (OBJC_IS_PATTR_KEYWORD): New.
7886         (objc_property_attribute_kind): New enum.
7887         Declare objc_set_property_attr (), objc_add_property_variable (),
7888         objc_build_getter_call () and objc_build_setter_call ().
7889         * stub-objc.c (objc_set_property_attr): New stub.
7890         (objc_add_property_variable): Likewise.
7891         (objc_build_getter_call): Likewise.
7892         (objc_build_setter_call) Likewise.
7894 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
7896         merge from FSF apple 'trunk' branch.
7897         2006-04-26 Fariborz Jahanian  <fjahanian@apple.com>
7899         Radar 3803157 (method attributes)
7900         * c-common.c (handle_deprecated_attribute): Recognize
7901         objc methods as valid declarations.
7902         * c-common.h: Declare objc_method_decl ().
7903         * stub-objc.c (objc_method_decl): New stub.
7905 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
7907         * c-common.c (parse_optimize_options): Call
7908         decode_cmdline_options_to_array_default_mask before
7909         decode_options.  Update arguments to decode_options.
7910         * c-common.h (c_common_init_options_struct): Declare.
7911         * c-opts.c (c_common_init_options_struct): New.  Split out from
7912         c_common_init_options.
7914 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
7916         Implemented fast enumeration for Objective-C.
7917         * c-common.h (objc_finish_foreach_loop): New.
7918         * stub-objc.c (objc_finish_foreach_loop): New.
7920 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
7922         * c-common.h (struct diagnostic_context): Don't declare here.
7923         (c_common_initialize_diagnostics): Declare using
7924         diagnostic_context typedef.
7925         * c-opts.c (c_common_handle_option): Pass global_dc to
7926         handle_generated_option.
7928 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
7930         * c-opts.c (c_common_handle_option): Pass &global_options_set to
7931         handle_generated_option.
7933 2010-10-03  Ian Lance Taylor  <iant@google.com>
7935         * c.opt (-fplan9-extensions): New option.
7937 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7939         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
7940         Remove.
7941         (c_cpp_builtins): Call functions from cppbuiltin.c instead
7942         of duplicating code.
7944 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
7946         * c-common.c: Add two new entries for @optional
7947         and @required keywords.
7949         merge from FSF 'apple/trunk' branch.
7950         2006-01-30  Fariborz Jahanian  <fjahanian@apple.com>
7952         Radar 4386773
7953         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
7954         objective-c keywords.
7955         (objc_set_method_opt): New declaration.
7956         * stub-objc.c (objc_set_method_opt): New stub.
7958 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
7960         * c-common.c (handle_optimize_attribute): Pass &global_options to
7961         cl_optimization_save and cl_optimization_restore.
7962         * c-opts.c (c_common_handle_option): Pass &global_options to
7963         handle_generated_option.
7964         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
7965         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
7966         &global_options to cl_optimization_restore.
7968 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
7970         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
7971         Objective-C/Objective-C++ keywords.
7973 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
7975         Merge from 'apple/trunk' branch on FSF servers.
7977         2005-10-04  Fariborz Jahanian  <fjahanian@apple.com>
7979         Radar 4281748
7980         * c-common.h (objc_check_global_decl): New declaration.
7981         * stub-objc.c (objc_check_global_decl): New stub.
7983 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
7985         * c.opt: Don't use VarExists.
7987 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
7989         * c-common.c (c_cpp_error): Update names of diagnostic_context
7990         members.
7991         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
7992         cl_optimization members.
7993         * c-opts.c (warning_as_error_callback, c_common_handle_option,
7994         sanitize_cpp_opts, finish_options): Update names of cpp_options
7995         members.
7997 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
7999         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
8000         (objc_is_reserved_word): Removed.
8001         * c-common.c: Updated comments.
8002         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
8003         objc_is_reserved_word.
8004         * stub-objc.c (objc_is_reserved_word): Removed.
8006 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
8008         * c-common.h (objc_add_method_declaration): Adjust prototype to
8009         include attributes.
8010         (objc_start_method_definition): Likewise.
8011         (objc_build_keyword_decl): Likewise.
8012         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
8013         (objc_start_method_definition): Likewise.
8014         (objc_build_keyword_decl): Likewise.
8016 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
8018         * c-common.h (objc_start_class_interface): Adjust prototype.
8019         (objc_start_category_interface): Likewise.
8020         (objc_start_protocol): Likewise.
8021         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
8022         (objc_start_class_interface): Likewise.
8023         (objc_start_category_interface): Likewise.
8025 2010-09-27  Ian Lance Taylor  <iant@google.com>
8027         * c-common.c (c_common_attribute_table): Add no_split_stack.
8028         (handle_no_split_stack_attribute): New static function.
8030 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
8032         Merge from 'apple/trunk' branch on FSF servers.
8034         2005-12-15  Fariborz Jahanian  <fjahanian@apple.com>
8036         Radar 4229905
8037         * c-common.h (objc_have_common_type): New declaration.
8038         * stub-objc.c (objc_have_common_type): New stub.
8040         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
8042         Radar 4154928
8043         * c-common.h (objc_common_type): New prototype.
8044         * stub-objc.c (objc_common_type): New stub.
8046 2010-09-24  Jan Hubicka  <jh@suse.cz>
8048         * c-common.c (handle_leaf_attribute): New function.
8049         (struct attribute_spec c_common_att): Add leaf.
8051 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
8053         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
8054         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
8055         -dump, -dump=, -imacros, -imacros=, -include, -include=,
8056         -include-barrier, -include-directory, -include-directory=,
8057         -include-directory-after, -include-directory-after=,
8058         -include-prefix, -include-prefix=, -include-with-prefix,
8059         -include-with-prefix=, -include-with-prefix-after,
8060         -include-with-prefix-after=, -include-with-prefix-before,
8061         -include-with-prefix-before=, -no-integrated-cpp,
8062         -no-line-commands, -no-standard-includes, -no-warnings, -output,
8063         -output=, -pedantic, -pedantic-errors, -preprocess,
8064         -print-missing-file-dependencies, -trace-includes, -traditional,
8065         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
8066         -user-dependencies, -verbose, -write-dependencies,
8067         -write-user-dependencies, no-integrated-cpp, traditional): New.
8069 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8071         PR objc/23710
8072         * c-common.h (objc_start_method_definition): Return bool instead
8073         of void.
8074         * stub-objc.c (objc_start_method_definition): Return bool instead
8075         of void.
8077 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8079         PR objc/25965
8080         * c-common.h (objc_get_interface_ivars): New declaration.
8081         * stub-objc.c (objc_get_interface_ivars): New stub.
8083 2010-09-15  Ian Lance Taylor  <iant@google.com>
8085         * c-common.c (parse_optimize_options): Do not capitalize warning
8086         messages.  Remove period at end of warning message.
8088 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
8090         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
8091         (handle_alias_attribute): ... here.
8092         (handle_ifunc_attribute): New.
8094 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
8096         * c-common.h (do_warn_double_promotion): Declare.
8097         * c-common.c (do_warn_double_promotion): Define.
8099 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
8101         * c.opt (Wdouble-promotion): New.
8103 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
8105         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
8106         fvtable-thunks, fxref): Mark no longer supported in help text.
8108 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
8110         * c.opt (Wimport, fall-virtual, falt-external-templates,
8111         fdefault-inline, fenum-int-equiv, fexternal-templates,
8112         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
8113         fname-mangling-version-, fnew-abi, fnonnull-objects,
8114         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
8115         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
8116         applicable.
8117         (fhandle-exceptions): Mark with Alias and Warn.
8118         * c-opts.c (c_common_handle_option): Don't handle options marked
8119         as ignored.
8121 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
8123         * c.opt (Wcomments, Werror-implicit-function-declaration,
8124         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
8125         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
8126         aliases.
8127         * c-common.c (option_codes): Use OPT_Wcomment instead of
8128         OPT_Wcomments.
8129         * c-opts.c (warning_as_error_callback, c_common_handle_option):
8130         Don't handle options marked as aliases.
8132 2010-08-25  Richard Guenther  <rguenther@suse.de>
8134         * c-common.c (c_common_get_alias_set): Remove special
8135         handling for pointers.
8137 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
8139         * c-common.c: Use FOR_EACH_VEC_ELT.
8140         * c-gimplify.c: Likewise.
8141         * c-pragma.c: Likewise.
8143 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
8145         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
8146         RejectDriver.
8147         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
8148         RejectDriver.
8149         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
8150         instead of OPT_MDX and OPT_MMDX.
8152 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
8154         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
8156 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
8158         * c.opt (MD, MMD): Change to MDX and MMDX.
8159         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
8161 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
8163         * c-opts.c (c_common_handle_option): Call handle_generated_option
8164         instead of handle_option.
8166 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
8168         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
8169         (maybe_apply_renaming_pragma): Delete unneeded declarations.
8171 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
8173         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
8174         (pending_redefine_extname): Change type to a VEC.
8175         (add_to_renaming_pragma_list): Update for new type of
8176         pending_redefine_extname.
8177         (maybe_apply_renaming_pragma): Likewise.
8179 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
8181         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
8182         visited.
8183         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
8184         decide whether a type has already been declared/seen.
8185         Do not go to the original type.
8186         (dump_nested_types): New parameter forward.
8187         Generate forward declaration if needed and mark type as visited.
8188         (print_ada_declaration): Call dump_nested_types if not already done.
8189         Mark types as visited.
8191 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
8193         * c.opt (-print-pch-checksum): Remove option.
8194         * c-opts.c (c_common_handle_option): Don't handle
8195         OPT_print_pch_checksum.
8197 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8199         * c-common.h (c_common_handle_option): Update prototype and return
8200         value type.
8201         * c-opts.c (c_common_handle_option): Update prototype and return
8202         value type.  Update calls to handle_option and
8203         enable_warning_as_error.
8205 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
8207         PR c/45079
8208         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
8210 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8212         * c-common.h (c_common_missing_argument): Remove.
8213         * c-opts.c (c_common_missing_argument): Remove.
8214         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
8215         idirafter, imacros, include, isysroot, isystem, iquote): Add
8216         MissingArgError.
8217         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
8219 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8221         * c-common.h (c_common_option_lang_mask,
8222         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
8223         New.
8224         (c_common_init_options): Update prototype.
8225         * c-opts.c (c_common_option_lang_mask): New.
8226         (c_common_initialize_diagnostics): Split out of
8227         c_common_init_options.
8228         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
8229         New.
8230         (c_common_init_options): Update prototype.  Use decoded options in
8231         search for -lang-asm.
8233 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
8235         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
8236         * c-format.c: Likewise.
8238 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8240         * c-common.h: Include diagnostic-core.h. Error if already
8241         included.
8242         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
8244 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8246         * c-common.c (IN_GCC_FRONTEND): Do not undef.
8247         Do not include expr.h
8248         (vector_mode_valid_p): Move here.
8250 2010-06-21  DJ Delorie  <dj@redhat.com>
8252         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
8253         allow these pragmas anywhere.
8255 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
8257         PR bootstrap/44509
8258         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
8259         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
8260         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
8261         ggc_strdup instead of xstrdup.
8263 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
8265         * c-cppbuiltin.c: Include cpp-id-data.h.
8266         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
8267         (lazy_hex_fp_value): New function.
8268         (builtin_define_with_hex_fp_value): Provide definitions lazily.
8270 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8272         * c-gimplify.c: Do not include tree-flow.h
8274 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
8276         PR other/44034
8277         * c-common.c: Rename targetm member:
8278         targetm.enum_va_list -> targetm.enum_va_list_p
8280 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
8282         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
8284 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
8286         * c-cppbuiltin.c: Do not include except.h.
8288 2010-06-24  Andi Kleen  <ak@linux.intel.com>
8290         * c-common.c (warn_for_omitted_condop): New.
8291         * c-common.h (warn_for_omitted_condop): Add prototype.
8293 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
8295         * c.opt (lang-objc): Remove.
8296         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
8298 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
8300         * c-opts.c: Include "tm_p.h".
8302 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
8304         * c-common.c (parse_optimize_options): Update call to
8305         decode_options.
8307 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
8309         * c-common.c (record_types_used_by_current_var_decl): Adjust for
8310         new type of types_used_by_cur_var_decl.
8312 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
8314         PR bootstrap/44512
8315         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
8316         for C++ standard compliance.
8318 2010-06-16  Jason Merrill  <jason@redhat.com>
8320         * c.opt: Add -Wnoexcept.
8322 2010-06-16  Richard Guenther  <rguenther@suse.de>
8324         PR c/44555
8325         * c-common.c (c_common_truthvalue_conversion): Remove
8326         premature and wrong optimization concering ADDR_EXPRs.
8328 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
8330         * c-ada-spec.c (dump_sloc): Remove column info.
8331         (is_simple_enum): New function.
8332         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
8333         enum types when relevant.
8335 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8337         * c-common.c (conversion_warning): Warn at expression
8338         location.
8340 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
8342         * c-opts.c (c_common_handle_option): Don't handle
8343         OPT_fshow_column.
8345 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8347         * c-pragma.c (push_alignment): Use typed GC allocation.
8348         (handle_pragma_push_options): Likewise.
8350         * c-common.c (parse_optimize_options): Likewise.
8352         * c-common.h (struct sorted_fields_type): Add variable_size GTY
8353         option.
8355 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
8357         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
8358         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
8359         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
8360         flag_signed_bitfields, warn_strict_null_sentinel,
8361         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
8362         flag_gen_declaration, flag_no_gnu_keywords,
8363         flag_implement_inlines, flag_implicit_templates,
8364         flag_implicit_inline_templates, flag_optional_diags,
8365         flag_elide_constructors, flag_default_inline, flag_rtti,
8366         flag_conserve_space, flag_access_control, flag_check_new,
8367         flag_new_for_scope, flag_weak, flag_working_directory,
8368         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
8369         flag_enforce_eh_specs, flag_threadsafe_statics,
8370         flag_pretty_templates): Remove.
8371         * c-common.h (flag_preprocess_only, flag_nil_receivers,
8372         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
8373         flag_replace_objc_classes, flag_undef, flag_no_builtin,
8374         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
8375         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
8376         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
8377         flag_no_gnu_keywords, flag_implement_inlines,
8378         flag_implicit_templates, flag_implicit_inline_templates,
8379         flag_optional_diags, flag_elide_constructors, flag_default_inline,
8380         flag_rtti, flag_conserve_space, flag_access_control,
8381         flag_check_new, flag_new_for_scope, flag_weak,
8382         flag_working_directory, flag_use_cxa_atexit,
8383         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
8384         flag_threadsafe_statics, flag_pretty_templates,
8385         warn_strict_null_sentinel): Remove.
8386         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
8387         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
8388         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
8389         fimplicit-inline-templates, fimplicit-templates,
8390         flax-vector-conversions, fms-extensions, fnil-receivers,
8391         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
8392         frtti, fshort-double, fshort-enums, fshort-wchar,
8393         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
8394         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
8395         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
8396         gen-decls, undef): Use Var.
8397         (fdefault-inline, foptional-diags): Document as doing nothing.
8398         * c-opts.c (c_common_handle_option): Remove cases for options now
8399         using Var.  Mark ignored options as such.
8401 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
8403         * c-common.c: Moved to here from parent directory.
8404         * c-common.def: Likewise.
8405         * c-common.h: Likewise.
8406         * c-cppbuiltin.c: Likewise.
8407         * c-dump.c: Likewise.
8408         * c-format.c: Likewise.
8409         * c-format.h : Likewise.
8410         * c-gimplify.c: Likewise.
8411         * c-lex.c: Likewise.
8412         * c-omp.c: Likewise.
8413         * c.opt: Likewise.
8414         * c-opts.c: Likewise.
8415         * c-pch.c: Likewise.
8416         * c-ppoutput.c: Likewise.
8417         * c-pragma.c: Likewise.
8418         * c-pragma.h: Likewise.
8419         * c-pretty-print.c: Likewise.
8420         * c-pretty-print.h: Likewise.
8421         * c-semantics.c: Likewise.
8422         * stub-objc.c: Likewise.
8424         * c-common.c: Include gt-c-family-c-common.h.
8425         * c-pragma.c: Include gt-c-family-c-pragma.h.
8427 Copyright (C) 2010-2017 Free Software Foundation, Inc.
8429 Copying and distribution of this file, with or without modification,
8430 are permitted in any medium without royalty provided the copyright
8431 notice and this notice are preserved.