* doc/generic.texi (ANNOTATE_EXPR): Document 3rd operand.
[official-gcc.git] / gcc / c-family / ChangeLog
blob08d8cec9443090dac4b0ddb24f3daaa8f5a274c6
1 2017-11-21  Marc Glisse  <marc.glisse@inria.fr>
3         * c-pretty-print.c (pp_c_additive_expression,
4         c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
6 2017-11-21  Jakub Jelinek  <jakub@redhat.com>
8         * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
10         PR c++/83059
11         * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
12         instead of tree_to_uhwi, formatting fix.
14 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
16         PR c/81404
17         * known-headers.cc: New file, based on material from c/c-decl.c.
18         (suggest_missing_header): Copied as-is.
19         (get_stdlib_header_for_name): New, based on get_c_name_hint but
20         heavily edited to add C++ support.  Add some knowledge about
21         <limits.h>, <stdint.h>, and <wchar.h>.
22         * known-headers.h: Likewise.
24 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
26         * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
27         (lookup_name_fuzzy): Likewise.  Convert return type from
28         const char * to name_hint.  Add location_t param.
29         * name-hint.h: New header.
31 2017-11-19  Jakub Jelinek  <jakub@redhat.com>
33         PR c/66618
34         PR c/69960
35         * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
37 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
39         * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
40         expected publication date of C17.
41         (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
43 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
45         PR c/81156
46         * c-common.c (c_common_reswords): Add __builtin_tgmath.
47         * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
49 2017-11-10  Martin Sebor  <msebor@redhat.com>
51         PR c/81117
52         * c-common.c (catenate_strings): Use memcpy instead of strncpy.
53         * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
54         * c.opt (-Wstringop-truncation): New option.
56 2017-11-06  Martin Liska  <mliska@suse.cz>
58         PR middle-end/82404
59         * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
60         FE.
61         * c.opt: Set default value of warn_return_type.
63 2017-10-31  David Malcolm  <dmalcolm@redhat.com>
65         * c-common.c (binary_op_error): Update for renaming of
66         error_at_rich_loc.
67         (c_parse_error): Likewise.
68         * c-warn.c (warn_logical_not_parentheses): Likewise for
69         renaming of inform_at_rich_loc.
70         (warn_for_restrict): Likewise for renaming of
71         warning_at_rich_loc_n.
73 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
75         * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
76         * c-opts.c (set_std_c17): New function.
77         (c_common_init_options): Use gnu17 as default C version.
78         (c_common_handle_option): Handle -std=c17 and -std=gnu17.
80 2017-10-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
82         * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
83         (c_cpp_builtins): If a machine has a fast fma _Float<N> and
84         _Float<N>X variant, define __FP_FAST_FMA<N> and/or
85         __FP_FAST_FMA<N>X.
87 2017-10-23  Marek Polacek  <polacek@redhat.com>
89         PR c/82681
90         * c-warn.c (warnings_for_convert_and_check): Fix typos.
92 2017-10-19  Eric Botcazou  <ebotcazou@adacore.com>
94         * c-common.c (check_builtin_function_arguments): Also check arguments
95         of __builtin_alloca_with_align_and_max.
97 2017-10-17  David Malcolm  <dmalcolm@redhat.com>
99         * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
100         rather than NULL to format_warning_va.
101         (check_format_types): Likewise when calling format_type_warning.
102         Remove code to extract source_ranges and source_range * in favor
103         of just a location_t.
104         (format_type_warning): Convert source_range * param to a
105         location_t.
107 2017-10-13  Jakub Jelinek  <jakub@redhat.com>
109         * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
110         [LR]SHIFT_EXPR.
112 2017-10-12  David Malcolm  <dmalcolm@redhat.com>
114         * c-common.c (enum missing_token_insertion_kind): New enum.
115         (get_missing_token_insertion_kind): New function.
116         (maybe_suggest_missing_token_insertion): New function.
117         * c-common.h (maybe_suggest_missing_token_insertion): New decl.
119 2017-10-11  Nathan Sidwell  <nathan@acm.org>
121         * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
122         (c_common_handle_option): Update incpath_kind names.
124 2017-10-11  Martin Liska  <mliska@suse.cz>
126         PR sanitizer/82490
127         * c-attribs.c (handle_no_sanitize_attribute): Report directly
128         Wattributes warning.
130 2017-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
132         * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
133         operating on trees as wide_ints.
134         * c-common.c (pointer_int_sum): Likewise.
135         * c-pretty-print.c (pp_c_integer_constant): Likewise.
136         * c-warn.c (match_case_to_enum_1): Likewise.
137         (c_do_switch_warnings): Likewise.
138         (maybe_warn_shift_overflow): Likewise.
140 2017-10-10  Jakub Jelinek  <jakub@redhat.com>
142         PR c/82437
143         * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
144         instead of wide_int::from.
146 2017-10-06  Jakub Jelinek  <jakub@redhat.com>
148         PR c/82437
149         * c-warn.c (warn_tautological_bitwise_comparison): Instead of
150         using to_widest use wide_int with the larger of the two precisions.
152 2017-10-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
154         * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
155         functions.
157 2017-10-02  Richard Sandiford  <richard.sandiford@linaro.org>
159         * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
160         when combining the original unconverted comparison operands.
162 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
164         * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
165         attribute.
167 2017-09-29  Eric Botcazou  <ebotcazou@adacore.com>
169         * c-ada-spec.c (to_ada_name): Add index parameter.
170         (pp_ada_tree_identifier): Likewise.
171         (dump_ada_macros): Adjust call to to_ada_name.
172         (struct overloaded_name_hash): New type.
173         (struct overloaded_name_hasher): Likewise.
174         (overloaded_names): New hash table.
175         (compute_overloading_index): New function.
176         (dump_ada_decl_name): Call it and pass the result to
177         pp_ada_tree_identifier.
178         (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
179         (dump_ada_function_declaration): Likewise.
180         (dump_generic_ada_node): Likewise.
181         (print_constructor): Likewise.
182         (print_destructor): Likewise.
183         (dump_ada_specs): Delete overloaded_names table.
185 2017-09-29  Eric Botcazou  <ebotcazou@adacore.com>
187         * c-ada-spec.c (max_ada_macros): Move around.
188         (store_ada_macro_index): Likewise.
189         (source_file): Rename into...
190         (macro_source_file): ...this.
191         (count_ada_macro): Move around.
192         (store_ada_macro): Likewise.
193         (compare_macro): Likewise.
194         (print_ada_macros): Merge in...
195         (dump_ada_macros): ...this.
196         (source_file_base): Rename into...
197         (current_source_file): ...this.
198         (print_comment): Move around.
199         (dump_ada_nodes): Call dump_ada_declaration directly.
200         (struct with): Change type of limited field to bool.
201         (append_withs): Change type of limited_access parameter to bool.
202         (pp_ada_tree_identifie): Likewise.
203         (dump_ada_decl_nam): Likewise.
204         (dump_generic_ada_node): Likewise.  Do not print the return type.
205         (to_ada_name): Change type of space_found parameter to bool.
206         (dump_ada_function_declaration): Return void and change type of
207         parameters to bool.  Also print the return type for a function.
208         (print_ada_methods): Rename into...
209         (dump_ada_methods): ...this.
210         (print_ada_declaration): Rename into ...
211         (dump_ada_declaration): ...this.  Do not print the return type.
212         (print_ada_struct_decl): Rename into...
213         (dump_ada_struct_decl): ...this.
215 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
217         * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
218         rather than DECL_INITIAL.
219         (common_handle_aligned_attribute): Likewise.
221 2017-09-20  Alexandre Oliva <aoliva@redhat.com>
223         * c.opt (gen-decls): Add RejectNegative.
225 2017-09-15  Andrew Sutton  <andrew.n.sutton@gmail.com>
226             Jakub Jelinek  <jakub@redhat.com>
228         Add support for -std=c++2a.
229         * c-common.h (cxx_dialect): Add cxx2a as a dialect.
230         * opt.c: Add options for -std=c++2a and -std=gnu++2a.
231         * c-opts.c (set_std_cxx2a): New.
232         (c_common_handle_option): Set options when -std=c++2a is enabled.
233         (c_common_post_options): Adjust comments.
234         (set_std_cxx14, set_std_cxx17): Likewise.
236 2017-09-15  Eric Botcazou  <ebotcazou@adacore.com>
238         * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
239         message for non-uniform endianness and issue a warning in C++.
241 2017-09-15  Jakub Jelinek  <jakub@redhat.com>
243         * c.opt (Wc++1z-compat): Change from option to undocumented alias.
244         (Wc++17-compat): Change from undocumented alias to option.
245         (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
246         change C++1z to C++17 in description.
247         (std=c++1z, std=gnu++1z): Change from option to undocumented
248         deprecated alias.
249         (std=c++17, std=gnu++17): Change from undocumented alias to option.
250         Adjust description.
251         * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
252         * c-opts.c (set_std_cxx1z): Rename to ...
253         (set_std_cxx17): ... this.
254         (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
255         and OPT_std_gnu__1z to OPT_std_gnu__17.  Adjust set_std_cxx1z
256         caller.  
257         (c_common_post_options): Use cxx17 instead of cxx1z.  Adjust
258         comments.
260 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
262         * c-attribs.c (common_handle_aligned_attribute): Don't warn
263         function alignment if warn_if_not_aligned_p is true.
265 2017-09-12  Nathan Sidwell  <nathan@acm.org>
267         * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
268         resort_sorted_fields): Move to c/c-decl.c.
269         * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
270         (struct sorted_fields_type): Move to c/c-lang.h.
272 2017-09-09  Jonathan Wakely  <jwakely@redhat.com>
274         PR c++/81852
275         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
277 2017-09-04  Marek Polacek  <polacek@redhat.com>
279         PR c/81783
280         * c-warn.c (warn_tautological_bitwise_comparison): New function.
281         (warn_tautological_cmp): Call it.
283 2017-09-01  Boris Kolpackov <boris@codesynthesis.com>
285         * c-opts.c (c_common_finish): Write dependency information even if
286         there are errors.
288 2017-09-01  Jakub Jelinek  <jakub@redhat.com>
290         PR c/81887
291         * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
292         (omp_pragmas_simd): ... here.
293         * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
294         create new clauses list containing just simd clause.
296 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
297             Alan Hayward  <alan.hayward@arm.com>
298             David Sherwood  <david.sherwood@arm.com>
300         * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
301         into scalar_mode_supported_p call.
302         (handle_mode_attribute): Update call to scalar_mode_supported_p.
304 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
305             Alan Hayward  <alan.hayward@arm.com>
306             David Sherwood  <david.sherwood@arm.com>
308         * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
309         for the mode iterator.
311 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
312             Alan Hayward  <alan.hayward@arm.com>
313             David Sherwood  <david.sherwood@arm.com>
315         * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
316         * c-common.c (c_build_vec_perm_expr): Likewise.
318 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
319             Alan Hayward  <alan.hayward@arm.com>
320             David Sherwood  <david.sherwood@arm.com>
322         * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
324 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
325             Alan Hayward  <alan.hayward@arm.com>
326             David Sherwood  <david.sherwood@arm.com>
328         * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
329         before calling targetm.addr_space.valid_pointer_mode.
331 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
332             Alan Hayward  <alan.hayward@arm.com>
333             David Sherwood  <david.sherwood@arm.com>
335         * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
337 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
338             Alan Hayward  <alan.hayward@arm.com>
339             David Sherwood  <david.sherwood@arm.com>
341         * c-common.c (c_common_fixed_point_type_for_size): Use new mode
342         iterators.
343         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
345 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
346             Alan Hayward  <alan.hayward@arm.com>
347             David Sherwood  <david.sherwood@arm.com>
349         * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
350         case statements.
352 2017-08-29  Martin Liska  <mliska@suse.cz>
354         PR other/39851
355         * c-common.c (parse_optimize_options): Add argument to function
356         call.
357         * c-pragma.c (handle_pragma_diagnostic): Likewise.
359 2017-08-24  David Malcolm  <dmalcolm@redhat.com>
361         * c-lex.c (interpret_float): Use token location
362         when building an EXCESS_PRECISION_EXPR.
364 2017-08-21  David Malcolm  <dmalcolm@redhat.com>
366         * c-common.c (check_function_arguments): Add "arglogs" param; pass
367         it to check_function_format.
368         * c-common.h (check_function_arguments): Add vec<location_t> *
369         param.
370         (check_function_format): Likewise.
371         * c-format.c (struct format_check_context): Add field "arglocs".
372         (check_function_format): Add param "arglocs"; pass it to
373         check_format_info.
374         (check_format_info):  Add param "arglocs"; use it to initialize
375         new field of format_ctx.
376         (check_format_arg): Pass format_ctx->arglocs to new param of
377         check_format_info_main.
378         (class argument_parser): New field "arglocs".
379         (argument_parser::argument_parser): Add "arglocs_" param and use
380         it to initialize new field.
381         (argument_parser::check_argument_type): Pass new arglocs field to
382         check_format_types.
383         (check_format_info_main): Add param "arglocs", and use it when
384         constructing arg_parser.
385         (check_format_types): Add param "arglocs"; use it if non-NULL when
386         !EXPR_HAS_LOCATION (cur_param) to get at location information.
388 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
390         PR c/53037
391         * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
392         (c_common_attribute_table): Add warn_if_not_aligned.
393         (handle_aligned_attribute): Renamed to ...
394         (common_handle_aligned_attribute): Remove argument, name, and add
395         argument, warn_if_not_aligned.  Handle warn_if_not_aligned.
396         (handle_aligned_attribute): New.
397         * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
399 2017-08-14  Martin Sebor  <msebor@redhat.com>
401         PR c/81117
402         * c-attribs.c (c_common_attribute_table): Add nonstring entry.
403         (handle_nonstring_attribute): New function.
405 2017-08-14  Martin Sebor  <msebor@redhat.com>
407         PR c/81117
408         * c-format.h (T89_G): New macro.
409         * c-format.c (local_gcall_ptr_node): New variable.
410         (init_dynamic_diag_info): Initialize it.
412 2017-08-11  Martin Liska  <mliska@suse.cz>
414         * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
415         TARGET_SUPPORTS_ALIASES.
417 2017-08-10  David Malcolm  <dmalcolm@redhat.com>
419         * c-common.c (c_parse_error): Add rich_location * param, using it
420         rather implicitly using input_location.
421         * c-common.h (c_parse_error): Add rich_location * param.
423 2017-08-09  Marek Polacek  <polacek@redhat.com>
425         * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
426         (c_common_truthvalue_conversion): Likewise.
427         * c-omp.c (c_finish_omp_atomic): Likewise.
428         * c-common.h (build_binary_op): Update declaration.
430 2017-08-08  Martin Liska  <mliska@suse.cz>
432         * c-ada-spec.c: Include header files.
433         * c-ubsan.c: Likewise.
434         * c-warn.c: Likewise.
436 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
438         PR c/69389
439         * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
441 2017-08-07  Eric Botcazou  <ebotcazou@adacore.com>
443         * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
444         (print_ada_methods): Likewise.
445         (print_ada_declaration): Likewise.
447 2017-08-07  Martin Liska  <mliska@suse.cz>
449         * array-notation-common.c: Add new includes.
450         * c-format.c( handle_format_attribute): Canonicalize a format
451         function name.
452         * c-lex.c (c_common_has_attribute): Canonicalize name of an
453         attribute.
454         * c-pretty-print.c: Add new include.
456 2017-08-05  Eric Botcazou  <ebotcazou@adacore.com>
458         * c-ada-spec.c (has_static_fields): Look only into variables.
459         (print_constructor): Add TYPE parameter and use it for the name.
460         (print_destructor): Likewise.
461         (print_ada_declaration): Adjust to new constructor/destructor names.
462         Adjust calls to print_constructor and print_destructor.
463         (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
464         Look only into variables in the final loop.
466 2017-08-01  Eric Botcazou  <ebotcazou@adacore.com>
468         * c-ada-spec.c (has_static_fields): Look only into fields.
469         (dump_generic_ada_node): Small tweak.
470         (dump_nested_types): Look only into fields.
471         (print_ada_declaration): Look only into methods.  Small tweak.
472         (print_ada_struct_decl): Look only into fields.  Use DECL_VIRTUAL_P.
474 2017-08-01  Eric Botcazou  <ebotcazou@adacore.com>
476         * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
477         (dump_ada_function_declaration): Likewise.
478         (dump_generic_ada_node): Likewise.
479         (print_ada_declaration): Add support for const-qualified variables.
481 2017-07-31  Martin Liska  <mliska@suse.cz>
483         PR sanitize/81530
484         * c-ubsan.c (ubsan_maybe_instrument_array_ref):
485         Guard condition with flag_sanitize_p also with current_function_decl
486         non-null equality.
487         (ubsan_maybe_instrument_reference_or_call): Likewise.
489 2017-07-30  Uros Bizjak  <ubizjak@gmail.com>
491         * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
493 2017-07-29  Eric Botcazou  <ebotcazou@adacore.com>
495         * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
496         for enumeral types.
497         (print_ada_declaration): Add missing guard for record types.
499 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
501         PR c/45784
502         * c-omp.c (c_finish_omp_for): If the condition is wrapped in
503         rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
504         new COMPOUND_EXPRs around the rhs of the comparison.
506 2017-07-27  Marek Polacek  <polacek@redhat.com>
508         PR c/81417
509         * c-warn.c (warn_for_sign_compare): Tweak the warning message.  Print
510         the types.
512 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
514         * c-attribs.c (c_common_attribute_table): Add noipa attribute.
515         (handle_noipa_attribute): New function.
517 2017-07-07  Torsten Duwe  <duwe@suse.de>
519         * c-attribs.c (c_common_attribute_table): Add entry for
520         "patchable_function_entry".
522 2017-07-20  Nathan Sidwell  <nathan@acm.org>
524         Remove TYPE_METHODS.
525         * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
526         dump_ada_template, print_ada_methods,
527         print_ada_declaration): Member fns are on TYPE_FIELDS.
529 2017-07-18  Nathan Sidwell  <nathan@acm.org>
531         * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
533 2017-07-14  David Malcolm  <dmalcolm@redhat.com>
535         * c-common.c (try_to_locate_new_include_insertion_point): New
536         function.
537         (per_file_includes_t): New typedef.
538         (added_includes_t): New typedef.
539         (added_includes): New variable.
540         (maybe_add_include_fixit): New function.
541         * c-common.h (maybe_add_include_fixit): New decl.
543 2017-07-10  Martin Sebor  <msebor@redhat.com>
545         PR other/81345
546         * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
548 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
550         * c-common.c (selftest::c_family_tests): New.
551         * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
552         (selftest::c_family_tests): New decl.
554 2017-07-04  Marek Polacek  <polacek@redhat.com>
556         PR c/81231
557         * c-common.c (sync_resolve_size): Give error for pointers to incomplete
558         types.
560 2017-07-04  Marek Polacek  <polacek@redhat.com>
562         * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
564 2017-06-28  Martin Liska  <mliska@suse.cz>
566         PR ipa/81128
567         * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
568         to a function declaration.
570 2017-06-28  Martin Liska  <mliska@suse.cz>
572         PR driver/79659
573         * c.opt: Add IntegerRange to various options.
575 2017-06-26  Marek Polacek  <polacek@redhat.com>
577         PR c/80116
578         * c-common.h (warn_for_multistatement_macros): Declare.
579         * c-warn.c: Include "c-family/c-indentation.h".
580         (warn_for_multistatement_macros): New function.
581         * c.opt (Wmultistatement-macros): New option.
582         * c-indentation.c (guard_tinfo_to_string): No longer static.
583         Change the parameter type to "enum rid".  Handle RID_SWITCH.
584         * c-indentation.h (guard_tinfo_to_string): Declare.
586 2017-06-23  Marc Glisse  <marc.glisse@inria.fr>
588         * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
590 2017-06-15  Martin Sebor  <msebor@redhat.com>
592         PR c++/80560
593         * c.opt (-Wclass-memaccess): New option.
595 2017-06-14  Boris Kolpackov  <boris@codesynthesis.com>
597         * c-opts.c (c_common_finish): Handle '-' special value to -MF.
599 2017-06-13  Marek Polacek  <polacek@redhat.com>
601         PR objc/80949
602         * c-warn.c (do_warn_duplicated_branches): Return if any of the
603         branches is null.
605 2017-06-13  Martin Liska  <mliska@suse.cz>
607         PR sanitize/78204
608         * c-attribs.c (add_no_sanitize_value): New function.
609         (handle_no_sanitize_attribute): Likewise.
610         (handle_no_sanitize_address_attribute): Use the function.
611         (handle_no_sanitize_thread_attribute): New function.
612         (handle_no_address_safety_analysis_attribute): Use
613         add_no_sanitize_value.
614         (handle_no_sanitize_undefined_attribute): Likewise.
615         * c-common.h: Declare new functions.
616         * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
617         (ubsan_instrument_shift): Likewise.
618         (ubsan_instrument_bounds): Likewise.
619         (ubsan_maybe_instrument_array_ref): Likewise.
620         (ubsan_maybe_instrument_reference_or_call): Likewise.
622 2017-06-11  Jason Merrill  <jason@redhat.com>
624         * c-ada-spec.c, c-pragma.c: Use id_equal.
626 2017-06-04  Marek Polacek  <polacek@redhat.com>
628         PR c/80919
629         * c-format.c (matching_type_p): Return false if any of the types
630         requires structural equality.
632 2017-06-02  Martin Sebor  <msebor@redhat.com>
634         PR c/80892
635         * c-warn.c (conversion_warning): Use -Wconversion for integer
636         conversion and -Wfloat-conversion for floating one.
638 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
640         * c.opt (Wsizeof-pointer-div): New warning option.
642 2017-06-01  Volker Reichelt  <v.reichelt@netcologne.de>
644         * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
645         (Wcatch-value=1): Enable by -Wall.
647 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
649         * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
650         format_chars.
651         * c.opt (fdiagnostics-show-template-tree): New option.
652         (felide-type): New option.
654 2017-05-25  Volker Reichelt  <v.reichelt@netcologne.de>
656         * c.opt (Wcatch-value=): New C++ warning flag.
658 2017-05-24  Nathan Sidwell  <nathan@acm.org>
660         * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
661         const casts to avoid warning.
663 2017-05-24  Martin Sebor  <msebor@redhat.com>
665         PR c/80731
666         * c-common.h (unsafe_conversion_p): Add a function argument.
667         * c-common.c (unsafe_conversion_p): Same.
668         Add type names and values to diagnostics.
669         (scalar_to_vector): Adjust.
670         * c-warn.c (constant_expression_error): Add a function argument.
671         Add type names and values to diagnostics.
672         (conversion_warning): Add a function argument.
673         Add type names and values to diagnostics.
674         (warnings_for_convert_and_check): Same.
676 2017-05-19  Jason Merrill  <jason@redhat.com>
678         * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
679         enumerators.
681 2017-05-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
683         * c-format.c (locus): Move out of function scope,
684         add GTY attribute.
686 2017-05-19  Nathan Sidwell  <nathan@acm.org>
688         * c-opts.c (class_dump_file, class_dump_flags): Delete.
689         (c_common_parse_file): Remove class dump handling.
690         (get_dump_info): Likewise.
692 2017-05-19  Richard Biener  <rguenther@suse.de>
694         PR c++/80593
695         * c-warn.c (strict_aliasing_warning): Do not warn for accesses
696         to alias-set zero memory.
698 2017-05-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
700         * c-format.c (local_tree_type_node): Add GTY attribute.
702 2017-05-18  Marek Polacek  <polacek@redhat.com>
704         * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
705         (c_common_fixed_point_type_for_size): Likewise.
706         (c_common_type_for_mode): Likewise.
707         (shorten_compare): Likewise.
708         (c_promoting_integer_type_p): Use false/true instead of 0/1.
709         * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
711 2017-05-18  Marek Polacek  <polacek@redhat.com>
713         * c-common.c (self_promoting_args_p): Change the return type to bool.
714         Use false/true instead of 0/1.
715         * c-common.h (self_promoting_args_p): Update.
717 2017-05-17  Marek Polacek  <polacek@redhat.com>
719         * c-common.c: Use NULL_TREE instead of 0 where appropriate.
720         * c-warn.c: Likewise.
722 2017-05-17  Ville Voutilainen  <ville.voutilainen@gmail.com>
724         Implement new C++ intrinsics __is_assignable and __is_constructible.
725         * c-common.c (__is_assignable, __is_constructible): New.
726         * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
728 2017-05-17  Martin Liska  <mliska@suse.cz>
730         * c-common.h: Introduce dump_flags_t type and
731         use it instead of int type.
732         * c-gimplify.c (c_genericize): Likewise.
733         * c-opts.c: Likewise.
735 2017-05-17  Marek Polacek  <polacek@redhat.com>
737         * c-common.c (c_save_expr): Remove.
738         (c_common_truthvalue_conversion): Remove a call to c_save_expr.
739         * c-common.h (c_save_expr): Remove declaration.
741 2017-05-09  Volker Reichelt  <v.reichelt@netcologne.de>
743         PR c/35441
744         * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
745         MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
746         (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
747         (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
748         RDIV_EXPR.
749         (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
751 2017-05-09  Marek Polacek  <polacek@redhat.com>
753         PR c/80525
754         * c-warn.c (unwrap_c_maybe_const): New.
755         (warn_logical_operator): Call it.
757 2017-05-09  Nathan Sidwell  <nathan@acm.org>
759         * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
760         * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
762 2017-05-08  Martin Sebor  <msebor@redhat.com>
764         PR translation/80280
765         * c-format.h (struct format_flag_spec): Add new member.
766         (T89_T): New macro.
767         * c-format.c (local_tree_type_node): New global.
768         (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
769         (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
770         (strfmon_flag_specs): Likewise.
771         (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
772         with distinct quoting properties.
773         (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
774         (flag_chars_t::validate): Add argument and handle bad quoting.
775         (check_format_info_main): Handle quoting problems.
776         (init_dynamic_diag_info): Simplify.
778 2017-05-08  Jason Merrill  <jason@redhat.com>
780         * c-opts.c (c_common_post_options): Update defaults for
781         flag_abi_version and flag_abi_compat_version.
783 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
785         * c-common.c (c_cpp_error): Replace report_diagnostic
786         with diagnostic_report_diagnostic.
788 2017-05-04  Martin Sebor  <msebor@redhat.com>
790         PR translation/80280
791         * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
792         (handle_weakref_attribute): Same.
794 2017-05-03  Nathan Sidwell  <nathan@acm.org>
796         Canonicalize canonical type hashing
797         * c-common.c (complete_array_type): Use type_hash_canon.
799 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
801         PR c++/80038
802         * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
803         prototype.
804         (cilk_install_body_pedigree_operations): Likewise.
805         * cilk.c (cilk_set_spawn_marker): Mark functions that should be
806         detatched.
807         (cilk_gimplify_call_params_in_spawned_fn): Remove.
808         (cilk_install_body_pedigree_operations): Likewise.
809         (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
810         unwrapping.
812 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
814         PR c++/80534
815         * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
816         flag on non-aggregate element types.
818 2017-04-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
820         * c-common.c (c_type_hasher, type_hash_table): Remove.
821         (c_common_get_alias_set): Remove unreachable code.
822         * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
824 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
826         * c.opt (Wextra-semi): New C++ warning flag.
828 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
830         PR middle-end/80423
831         * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
833 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
835         PR middle-end/79788
836         PR middle-end/80375
837         * c-common.c (c_common_type_for_mode): Don't handle
838         widest_*_literal_type_node here.
839         c_common_signed_or_unsigned_type): Likewise.
840         (c_common_nodes_and_builtins): Set widest_*_literal_type_node
841         to *intTI_type_node or *intDI_type_node depending on whether
842         TImode is supported by the target or not.
844 2017-04-10  Martin Liska  <mliska@suse.cz>
846         PR sanitizer/80350
847         * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
848         doing an UBSAN check.
850 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
852         * c-warn.c (do_warn_double_promotion): Fix typo in comment.
854 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
856         PR c++/79572
857         * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
858         tree *.
859         * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise.  Handle
860         not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
861         REFERENCE_TYPE.
863 2017-03-31  David Malcolm  <dmalcolm@redhat.com>
865         PR documentation/78732
866         * c.opt (Wendif-labels): Fix description to refer to
867         #else rather than #elif.
869 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
871         PR libstdc++/80251
872         * c-common.h (enum rid): Add RID_IS_AGGREGATE.
873         * c-common.c (c_common_reswords): Add __is_aggregate trait.
875 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
877         PR middle-end/80162
878         * c-common.c (c_common_mark_addressable_vec): Don't set
879         TREE_ADDRESSABLE on DECL_HARD_REGISTER.
881 2017-03-21  Martin Sebor  <msebor@redhat.com>
883         PR c++/79548
884         * c-common.c (set_underlying_type): Mark type used only when
885         original del is declared unused.
887 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
889         PR translation/79848
890         * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
891         "%qs".
893 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
895         PR c/79921
896         * c-indentation.c (warn_for_misleading_indentation): Remove parens
897         from inform's message, so that xgettext can locate it.
899 2017-03-09  Marek Polacek  <polacek@redhat.com>
901         PR c++/79962
902         PR c++/79984
903         * c-attribs.c (handle_nonnull_attribute): Save the result of default
904         conversion to the attribute list.
906 2017-03-09  Martin Liska  <mliska@suse.cz>
908         * c-ada-spec.c (macro_length): Increment value instead of a pointer.
910 2017-03-03  Jason Merrill  <jason@redhat.com>
912         * c.opt (Wnoexcept-type): New.
914 2017-03-02  Richard Biener  <rguenther@suse.de>
916         PR c/79756
917         * c-common.c (c_common_mark_addressable_vec): Look through
918         C_MAYBE_CONST_EXPR.
920 2017-02-28  Martin Liska  <mliska@suse.cz>
922         * c.opt: Replace space with tabular for options of <number>
923         type.
925 2017-02-28  Martin Liska  <mliska@suse.cz>
927         * c.opt: Fix --help=option -Q for options which are of
928         an enum type.
930 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
932         PR c++/79588
933         * c-common.c (check_function_restrict): New function.
934         (check_function_arguments): Add FNDECL argument.  Call
935         check_function_restrict if -Wrestrict.
936         * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
937         and NARGS.  Use auto_vec for ARG_POSITIONS, simplify.
938         * c-common.h (check_function_arguments): Add FNDECL argument.
939         (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
941 2017-02-24  Eric Botcazou  <ebotcazou@adacore.com>
943         * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
944         treatment of parameters with pointer-to-tagged type and tidy up.
945         (print_ada_methods): Remove the special treatment of C++ static member
946         functions.
948 2017-02-22  Martin Liska  <mliska@suse.cz>
950         * c.opt: Replace inequality signs with square brackets
951         for -Wnornalized.
953 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
955         PR c++/79641
956         * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
957         preserve quals.
959 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
961         * c-cppbuiltin.c (builtin_define_float_constants): Define
962         __DECIMAL_DIG__ to the value for long double.
964 2017-02-15  Marek Polacek  <polacek@redhat.com>
966         PR c/79515
967         * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
968         conversion has occured.
970 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
972         * c-common.c (c_common_reswords): Add "__RTL".
973         * c-common.h (enum rid): Add RID_RTL.
975 2017-01-20  Marek Polacek  <polacek@redhat.com>
977         PR c/64279
978         * c-common.h (do_warn_duplicated_branches_r): Declare.
979         * c-gimplify.c (c_genericize): Walk the function tree calling
980         do_warn_duplicated_branches_r.
981         * c-warn.c (expr_from_macro_expansion_r): New.
982         (do_warn_duplicated_branches): New.
983         (do_warn_duplicated_branches_r): New.
984         * c.opt (Wduplicated-branches): New option.
986 2017-01-17  David Malcolm  <dmalcolm@redhat.com>
988         PR c++/71497
989         * c-indentation.c (warn_for_misleading_indentation): Use the past
990         subjunctive in the note.
992 2017-01-17  Aldy Hernandez  <aldyh@redhat.com>
994         PR c/79116
995         * array-notation-common.c (cilkplus_extract_an_triplets): Convert
996         start type to integer_type.
998 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
1000         PR driver/49726
1001         * c.opt (gen-decls): Add Driver flag.
1003 2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
1005         Revert:
1006         2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
1008         PR c++/71737
1009         * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
1011 2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
1013         PR c++/71737
1014         * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
1016 2017-01-12  Martin Sebor  <msebor@redhat.com>
1018         (-Wformat-overflow): ...to this.
1020 2017-01-11  Martin Sebor  <msebor@redhat.com>
1022         PR c/78768
1023         * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
1024         Also enable for LTO.
1026 2017-01-10  Jason Merrill  <jason@redhat.com>
1028         Implement P0195R2, C++17 variadic using.
1029         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
1031 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
1033         PR translation/79019
1034         PR translation/79020
1035         * c.opt (Wnormalized=): Fix typo in description.
1037 2017-01-08  Martin Sebor  <msebor@redhat.com>
1039         PR middle-end/77708
1040         * c.opt (-Wformat-truncation): New option.
1042 2017-01-06  Alexandre Oliva <aoliva@redhat.com>
1044         * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
1045         value to unsigned short to fit in 4 hex digits without
1046         warnings.
1048 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
1050         * c.opt (fsso-struct): Add 'native' value.
1052 2017-01-05  Martin Liska  <mliska@suse.cz>
1054         PR pch/78970
1055         * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
1056         header.
1058 2017-01-04  Marek Polacek  <polacek@redhat.com>
1060         PR c++/64767
1061         * c.opt (Wpointer-compare): New option.
1063 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
1065         PR driver/78957
1066         * c.opt (fsso-struct=): Add RejectNegative.
1068 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
1070         Update copyright years.
1072 2016-12-29  Martin Liska  <mliska@suse.cz>
1074         PR c/78933
1075         * c.opt (strong-eval-order): Add RejectNegative keyword.
1077 2016-12-22  Jason Merrill  <jason@redhat.com>
1079         Implement P0522R0, matching of template template arguments.
1080         * c-cppbuiltin.c (c_cpp_builtins): Define
1081         __cpp_template_template_args.
1083 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
1085         PR bootstrap/78817
1086         * c-common.c (struct nonnull_arg_ctx): New type.
1087         (check_function_nonnull): Return bool instead of void.  Use
1088         nonnull_arg_ctx as context rather than just location_t.
1089         (check_nonnull_arg): Adjust for the new context type, set
1090         warned_p to true if a warning has been diagnosed.
1091         (check_function_arguments): Return bool instead of void.
1092         * c-common.h (check_function_arguments): Adjust prototype.
1094 2016-12-21  Jason Merrill  <jason@redhat.com>
1096         * c.opt (-fnew-ttp-matching): New flag.
1097         * c-opts.c (c_common_post_options): Default on if -std=c++1z.
1099 2016-12-14  Martin Jambor  <mjambor@suse.cz>
1101         * c-omp.c: Include omp-general.h instead of omp-low.h.
1102         (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
1103         name.
1105 2016-12-14  Martin Sebor  <msebor@redhat.com>
1107         PR c/17308
1108         * c-common.c (check_nonnull_arg): Disable when optimization
1109         is enabled.
1111 2016-12-12  Marek Polacek  <polacek@redhat.com>
1113         PR c++/78647
1114         * c-common.c (attribute_fallthrough_p): Return false for
1115         error_mark_node.
1117 2016-12-08  Martin Sebor  <msebor@redhat.com>
1119         PR c/78284
1120         * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
1122 2016-12-08  Martin Sebor  <msebor@redhat.com>
1124         PR c/78165
1125         * c-pretty-print (pp_c_integer_constant): Avoid formatting type
1126         suffix.
1128 2016-12-07  Martin Sebor  <msebor@redhat.com>
1130         PR c/53562
1131         PR middle-end/77784
1132         PR middle-end/78149
1133         PR middle-end/78138
1134         * c.opt (-Wstringop-overflow): New option.
1136 2016-12-02  Maxim Ostapenko  <m.ostapenko@samsung.com>
1138         * c-attribs.c (asan odr indicator): New attribute.
1139         (handle_asan_odr_indicator_attribute): New function.
1141 2016-11-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1143         * c-common.c (c_common_nodes_and_builtins): Remove initialization of
1144         ptrdiff_type_node;
1146 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
1148         * c-common.c (excess_precision_mode_join): New.
1149         (c_ts18661_flt_eval_method): New.
1150         (c_c11_flt_eval_method): Likewise.
1151         (c_flt_eval_method): Likewise.
1152         * c-common.h (excess_precision_mode_join): New.
1153         (c_flt_eval_method): Likewise.
1154         * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
1155         (cpp_iec_559_value): Call it.
1156         (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
1157         call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
1158         __FLT_EVAL_METHOD_TS_18661_3__.
1160 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
1162         * c-opts.c (c_common_post_options): Add logic to handle the default
1163         case for -fpermitted-flt-eval-methods.
1165 2016-11-23  Paolo Bonzini  <bonzini@gnu.org>
1167         * c.opt (Wexpansion-to-defined): New.
1169 2016-11-23  Jakub Jelinek  <jakub@redhat.com>
1171         PR target/78451
1172         * c-pragma.c (handle_pragma_target): Don't replace
1173         current_target_pragma, but chainon the new args to the current one.
1175 2016-11-22  Nathan Sidwell  <nathan@acm.org>
1177         * array-notation-common.c (cilkplus_extract_an_trplets): Fix
1178         indentation and formatting.
1180 2016-11-21  Martin Sebor  <msebor@redhat.com>
1182         * c.opt (-fprintf-return-value): Enable by default.
1184 2016-11-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1186         PR c++/71973
1187         * c.opt (-Wbuiltin-declaration-mismatch): New warning.
1188         * c-common.c (c_common_nodes_and_builtins): Initialize
1189         const_tm_ptr_type_node.
1191 2016-11-16  Marek Polacek  <polacek@redhat.com>
1193         PR c/78285
1194         * c-common.c (c_add_case_label): Turn error_at calls into inform.
1196 2016-11-14  Jakub Jelinek  <jakub@redhat.com>
1198         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
1200 2016-11-14  Prasad Ghangal  <prasad.ghangal@gmail.com>
1201             Richard Biener  <rguenther@suse.de>
1203         * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
1204         * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
1205         * c.opt (fgimple): New option.
1207 2016-11-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1209         PR c/35503
1210         * c-common.h (warn_for_restrict): Declare.
1211         * c-warn.c: Include gcc-rich-location.h.
1212         (warn_for_restrict): New function.
1213         * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
1214         (gcc_cdiag_char_table): Likewise.
1215         (gcc_cxxdiag_char_table): Likewise.
1216         * c.opt (Wrestrict): New option.
1218 2016-11-13  Eric Botcazou  <ebotcazou@adacore.com>
1220         * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
1221         for nested types only if the type is a record or union and dump SLOC.
1223 2016-11-09  Jason Merrill  <jason@redhat.com>
1225         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
1227 2016-11-09  Jakub Jelinek  <jakub@redhat.com>
1229         * c-ubsan.c (ubsan_instrument_shift): Handle split
1230         -fsanitize=shift-base and -fsanitize=shift-exponent.
1232 2016-11-07  Jason Merrill  <jason@redhat.com>
1234         * c.opt (Wc++1z-compat): New.
1235         * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
1237 2016-11-07  Martin Liska  <mliska@suse.cz>
1239         * c-warn.c (warn_for_unused_label): Save all labels used
1240         in goto or in &label.
1242 2016-11-03  Jason Merrill  <jason@redhat.com>
1244         * c-cppbuiltin.c (c_cpp_builtins): Correct
1245         __cpp_inheriting_constructors.
1247 2016-11-01  Jason Merrill  <jason@redhat.com>
1249         * c-cppbuiltin.c (c_cpp_builtins): Update
1250         __cpp_inheriting_constructors.
1252         * c.opt (-fnew-inheriting-ctors): New.
1253         * c-opts.c: Default to on for ABI 11+.
1255 2016-10-31  Jakub Jelinek  <jakub@redhat.com>
1257         PR c++/77948
1258         * c.opt (fext-numeric-literals): Add Var and Init.
1259         * c-opts.c (c_common_handle_option): Don't clear
1260         cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
1261         (c_common_post_options): Clear it here if not set
1262         explicitly.
1264 2016-10-28  Aldy Hernandez  <aldyh@redhat.com>
1266         PR debug/77773
1267         * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
1268         if NULL.
1270 2016-10-25  Jakub Jelinek  <jakub@redhat.com>
1272         * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
1273         * c-common.c (c_common_reswords): Add __builtin_launder.
1275 2016-10-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1277         * c-common.c (c_common_truthvalue_conversion): Warn for
1278         multiplications in boolean context.  Fix the quoting of '<<' and '<'
1279         in the shift warning.
1281 2016-10-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1283         * c-common.c (c_common_truthvalue_conversion): Fix the comment.
1285 2016-10-20  Jason Merrill  <jason@redhat.com>
1287         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
1289 2016-10-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1291         * c-common.c (c_common_truthvalue_conversion): Warn only for signed
1292         integer shift ops in boolean context.
1294 2016-10-18  Aldy Hernandez  <aldyh@redhat.com>
1296         * c.opt (Walloca): New.
1297         (Walloca-larger-than=): New.
1298         (Wvla-larger-than=): New.
1300 2016-10-17  Marek Polacek  <polacek@redhat.com>
1302         * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
1303         Return immediately when finding a match.
1304         (warn_tautological_cmp): Remove a boolean variable that is no longer
1305         needed.
1307 2016-10-17  Marek Polacek  <polacek@redhat.com>
1309         * c-attribs.c: New file.
1310         * c-common.c: Move attributes handling to c-attribs.c.
1311         (get_nonnull_operand): No longer static.
1312         * c-common.h: Move the declarations from c-attribs.c to its own section.
1314 2016-10-14  Jason Merrill  <jason@redhat.com>
1316         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
1317         and __cpp_deduction_guides.
1319 2016-10-13  Jason Merrill  <jason@redhat.com>
1321         * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
1323 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1325         * c-cppbuiltin.c: Include memmodel.h.
1326         * c-opts.c: Likewise.
1327         * c-pragma.c: Likewise.
1328         * c-warn.c: Likewise.
1330 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
1332         * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
1333         (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
1334         * c-opts.c (sanitize_cpp_opts): Initialize
1335         cpp_opts->cpp_warn_implicit_fallthrough.
1337 2016-10-11  Marek Polacek  <polacek@redhat.com>
1339         * c-common.c (warning_candidate_p): Change the return type to bool
1340         and return true/false instead of 1/0.
1341         (vector_mode_valid_p): Likewise.
1343 2016-10-11  Marek Polacek  <polacek@redhat.com>
1345         * c-common.c (fold_for_warn): No longer static.
1346         (bool_promoted_to_int_p): Likewise.
1347         (c_common_get_narrower): Likewise.
1348         (constant_expression_warning): Move to c-warn.c.
1349         (constant_expression_error): Likewise.
1350         (overflow_warning): Likewise.
1351         (warn_logical_operator): Likewise.
1352         (find_array_ref_with_const_idx_r): Likewise.
1353         (warn_tautological_cmp): Likewise.
1354         (expr_has_boolean_operands_p): Likewise.
1355         (warn_logical_not_parentheses): Likewise.
1356         (warn_if_unused_value): Likewise.
1357         (strict_aliasing_warning): Likewise.
1358         (sizeof_pointer_memaccess_warning): Likewise.
1359         (check_main_parameter_types): Likewise.
1360         (conversion_warning): Likewise.
1361         (warnings_for_convert_and_check): Likewise.
1362         (match_case_to_enum_1): Likewise.
1363         (match_case_to_enum): Likewise.
1364         (c_do_switch_warnings): Likewise.
1365         (warn_for_omitted_condop): Likewise.
1366         (readonly_error): Likewise.
1367         (lvalue_error): Likewise.
1368         (invalid_indirection_error): Likewise.
1369         (warn_array_subscript_with_type_char): Likewise.
1370         (warn_about_parentheses): Likewise.
1371         (warn_for_unused_label): Likewise.
1372         (warn_for_div_by_zero): Likewise.
1373         (warn_for_memset): Likewise.
1374         (warn_for_sign_compare): Likewise.
1375         (do_warn_double_promotion): Likewise.
1376         (do_warn_unused_parameter): Likewise.
1377         (record_locally_defined_typedef): Likewise.
1378         (maybe_record_typedef_use): Likewise.
1379         (maybe_warn_unused_local_typedefs): Likewise.
1380         (maybe_warn_bool_compare): Likewise.
1381         (maybe_warn_shift_overflow): Likewise.
1382         (warn_duplicated_cond_add_or_warn): Likewise.
1383         (diagnose_mismatched_attributes): Likewise.
1384         * c-common.h: Move the declarations from c-warn.c to its own section.
1385         * c-warn.c: New file.
1387 2016-10-08  Jason Merrill  <jason@redhat.com>
1389         * c-common.c (c_common_truthvalue_conversion): Don't distribute
1390         into COND_EXPR in C++.
1392 2016-10-08  Jakub Jelinek  <jakub@redhat.com>
1394         * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
1395         token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
1396         CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
1398 2016-10-07  Jakub Jelinek  <jakub@redhat.com>
1400         Implement LWG2296 helper intrinsic
1401         * c-common.h (enum rid): Add RID_ADDRESSOF.
1402         * c-common.c (c_common_reswords): Add __builtin_addressof.
1404 2016-10-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1406         PR c++/77700
1407         * c-common.c (c_common_truthvalue_conversion): Warn also for
1408         suspicious enum values in boolean context.
1410 2016-10-06  Jakub Jelinek  <jakub@redhat.com>
1412         Implement P0258R2 - helper for C++17
1413         std::has_unique_object_representations trait
1414         * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
1415         * c-common.c (c_common_reswords): Add
1416         __has_unique_object_representations.
1418 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
1420         PR sanitizer/66343
1421         * c-ubsan.c (ubsan_instrument_return): Don't call
1422         initialize_sanitizer_builtins here.
1424 2016-10-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1426         * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
1427         conditional expression in boolean context when only one arm is
1428         non-boolean.
1430 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
1432         PR sanitizer/77823
1433         * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
1434         is not integral.
1436         * c-common.c (c_common_reswords): Update comment for C++11.
1438 2016-10-04  Jason Merrill  <jason@redhat.com>
1440         * c-common.c (make_tree_vector_from_ctor): New.
1441         * c-common.h: Declare it.
1443 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
1445         * c-cppbuiltin.c (c_cpp_builtins): Don't define
1446         __LIBGCC_JCR_SECTION_NAME__.
1448 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1450         * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
1451         left shift in boolean context.
1453 2016-09-29  Jakub Jelinek  <jakub@redhat.com>
1455         Implement P0001R1 - C++17 removal of register storage class specifier
1456         * c.opt (Wregister): New warning.
1457         * c-opts.c (c_common_post_options): Enable -Wregister by
1458         default for C++17.
1460 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
1462         * c-opts.c (c_common_post_options): Remove special case for
1463         TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
1464         in C++.
1466 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
1468         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
1469         -std=c++1z.
1471         * c-ada-spec.c (print_ada_declaration): Remove break after return.
1473 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1475         * c-common.c: Include memmodel.h.
1477 2016-09-26  Marek Polacek  <polacek@redhat.com>
1479         * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
1481 2016-09-26  Marek Polacek  <polacek@redhat.com>
1483         PR c/7652
1484         * c-common.c (c_common_attribute_table): Add fallthrough attribute.
1485         (handle_fallthrough_attribute): New function.
1486         (attribute_fallthrough_p): New function.
1487         * c-common.h (attribute_fallthrough_p): Declare.
1489 2016-09-24  Marek Polacek  <polacek@redhat.com>
1491         PR c/77490
1492         * c.opt (Wbool-operation): New.
1494 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1496         * c-common.c (c_common_truthvalue_conversion): Inhibit
1497         Wint-in-bool-context warning with from_macro_definition_at.
1498         Mention the expression will always evaluate to true.
1500 2016-09-21  Martin Sebor  <msebor@redhat.com>
1502         PR bootstrap/77676
1503         * c.opt (fprintf-return-value): Temporarily initialize to zero
1504         to unblock bootstrap failures.
1506 2016-09-21  Jakub Jelinek  <jakub@redhat.com>
1508         PR c++/77651
1509         * c.opt (Waligned-new=): Add RejectNegative.
1510         (faligned-new=): Likewise.  Spelling fix - change
1511         aligned_new_threshhold to aligned_new_threshold.
1512         * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
1513         to aligned_new_threshold.
1515 2016-09-20  Martin Sebor  <msebor@redhat.com>
1517         PR middle-end/49905
1518         * c.opt: Add -Wformat-length and -fprintf-return-value.
1520 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1522         PR c++/77434
1523         * c.opt (Wint-in-bool-context): New warning.
1524         * c-common.c (c_common_truthvalue_conversion): Warn on integer
1525         constants in boolean context.
1527 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
1529         * c-common.c (max_align_t_align): Also consider alignment of
1530         float128_type_node.
1532 2016-09-15  Jason Merrill  <jason@redhat.com>
1534         * c-common.c (check_cxx_fundamental_alignment_constraints): Check
1535         DECL_EXTERNAL.
1537 2016-09-14  Jason Merrill  <jason@redhat.com>
1539         * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
1540         limit FIELD_DECL, either.
1542 2016-09-14  Marek Polacek  <polacek@redhat.com>
1544         * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
1545         * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
1546         * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
1548 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
1550         * c-common.c (warn_logical_not_parentheses): Replace
1551         rich_location::add_fixit_insert calls with add_fixit_insert_before
1552         and add_fixit_insert_after, eliminating the "next_loc" calculation.
1554 2016-09-13  Jason Merrill  <jason@redhat.com>
1555             Tom de Vries  <tom@codesourcery.com>
1557         PR c++/77427
1558         * c-common.c (set_underlying_type): Don't treat array as builtin type.
1560 2016-09-13  Jason Merrill  <jason@redhat.com>
1562         * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
1563         limit types at all.
1565 2016-09-12  Jason Merrill  <jason@redhat.com>
1567         * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
1568         bit/byte confusion, allow large alignment for types.
1570 2016-09-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1572         PR c++/77496
1573         * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
1575 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
1577         PR c/72858
1578         * c-format.c (argument_parser::check_argument_type): Add params
1579         "type_start" and "conversion_char".  Use the former to generate
1580         offset_to_type_start and pass it and conversion_char to
1581         check_format_types.
1582         (check_format_info_main): Capture the start of the type
1583         information as "type_start", and pass it an format_char
1584         to arg_parser.check_argument_type.
1585         (check_format_types): Provide an example in the leading comment.
1586         Add params "offset_to_type_start" and "conversion_char"; pass
1587         them to format_type_warning calls.
1588         (test_get_modifier_for_format_len): Likewise.
1589         (matching_type_p): New function.
1590         (get_format_for_type): Add param "conversion_char" and move
1591         implementation into...
1592         (get_format_for_type_1): ...new function, called twice.
1593         Use new function matching_type_p rather than checking for
1594         TYPE_CANONICAL equality.
1595         (get_corrected_substring): New function.
1596         (format_type_warning): Provide an example in the leading comment.
1597         Add params "offset_to_type_start" and "conversion_char".  Replace
1598         call to get_format_for_type with call to get_corrected_substring
1599         and move rejection of hints for widths/precisions there.
1600         (assert_format_for_type_streq): Add param "conversion_char".
1601         (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
1602         (test_get_format_for_type_printf): Add conversion chars to the
1603         tests, adding coverage for various combinations of integer
1604         vs double conversions, and for preserving octal and hexadecimal
1605         conversions.
1606         (test_get_format_for_type_scanf): Add conversion chars to the
1607         tests.
1609 2016-09-10  Tom de Vries  <tom@codesourcery.com>
1611         PR C/71602
1612         * c-common.c (build_va_arg): Handle more strict
1613         targetm.canonical_va_list_type.  Replace first argument type error with
1614         assert.
1616 2016-09-09  Martin Sebor  <msebor@redhat.com>
1618         PR c/77520
1619         PR c/77521
1620         * c-format.c (argument_parser::find_format_char_info): Use %qc
1621         format directive unconditionally.
1623 2016-09-09  Jason Merrill  <jason@redhat.com>
1625         Implement C++17 new of over-aligned types.
1626         * c.opt: Add -faligned-new and -Waligned-new.
1627         * c-common.c (max_align_t_align): Split out from...
1628         (cxx_fundamental_alignment_p): ...here.
1629         * c-common.h: Declare it.
1630         * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
1632 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
1634         * c-cppbuiltin.c (builtin_define_type_width): New function.
1635         (builtin_define_stdint_macros, c_cpp_builtins): Define type width
1636         macros.
1638 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
1640         * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
1641         a POINTER_TYPE.
1642         (substring_loc::get_location): Move to substring-locations.c,
1643         keeping implementation as...
1644         (c_get_substring_location): New function, from the above, reworked
1645         to use accessors rather than member lookup.
1646         * c-common.h (class substring_loc): Move to substring-locations.h,
1647         replacing with a forward decl.
1648         (c_get_substring_location): New decl.
1649         * c-format.c: Include "substring-locations.h".
1650         (format_warning_va): Move to substring-locations.c.
1651         (format_warning_at_substring): Likewise.
1653 2016-09-06 Martin Sebor  <msebor@redhat.com>
1655         PR c/77336
1656         * c-format.c (check_function_format): Avoid issuing warnings for
1657         functions unless they call format functions with non-constant
1658         format strings.
1660 2016-09-06  Richard Biener  <rguenther@suse.de>
1662         PR c/77450
1663         * c-common.c (c_common_mark_addressable_vec): Handle
1664         COMPOUND_LITERAL_EXPR.
1666 2016-09-05  Marek Polacek  <polacek@redhat.com>
1668         PR c/77423
1669         * c-common.c (bool_promoted_to_int_p): New function.
1670         (expr_has_boolean_operands_p): New function.
1671         (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
1672         (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
1674 2016-09-04  Tom de Vries  <tom@codesourcery.com>
1676         revert:
1677         2016-08-29  Tom de Vries  <tom@codesourcery.com>
1679         * c-common.c (build_va_arg): Replace first argument type error
1680         with assert.
1682 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
1684         PR c/65467
1685         * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
1686         (c_finish_omp_for): Reject _Atomic qualified iterators.
1688 2016-09-01  Martin Sebor  <msebor@redhat.com>
1690         * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
1691         size to guarantee it fits the output of the formatted function
1692         regardless of its arguments.
1694 2016-09-01  Marek Polacek  <polacek@redhat.com>
1696         PR c/7652
1697         * c-common.c (resolve_overloaded_builtin): Fix formatting.  Add
1698         FALLTHRU comments.
1700 2016-08-29  Marek Polacek  <polacek@redhat.com>
1702         PR c/77292
1703         * c-common.c (warn_logical_not_parentheses): Don't warn for
1704         a comparison or a logical operator.
1706 2016-08-29  Tom de Vries  <tom@codesourcery.com>
1708         * c-common.c (build_va_arg): Fix type comparison assert.
1710 2016-08-29  Tom de Vries  <tom@codesourcery.com>
1712         * c-common.c (build_va_arg): Replace first argument type error
1713         with assert.
1715 2016-08-29  Tom de Vries  <tom@codesourcery.com>
1717         PR c/77398
1718         * c-common.c (build_va_arg): Add first argument error.  Build va_arg
1719         with error_mark_node as va_list instead of with illegal va_list.
1721 2016-08-25  Marek Polacek  <polacek@redhat.com>
1722             David Malcolm  <dmalcolm@redhat.com>
1724         * c-common.c (warn_logical_not_parentheses): Print fixit hints.
1725         * c-common.h (warn_logical_not_parentheses): Update declaration.
1727 2016-08-22  Marek Polacek  <polacek@redhat.com>
1729         PR c++/77321
1730         * c-common.c (warn_for_memset): Check type for null.
1732 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
1734         * c-family/c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
1735         _FloatNx types for suffixes for built-in functions.
1737 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
1739         PR c/32187
1740         * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
1741         (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
1742         (RID_FLOAT128X): New enum rid values.
1743         (CASE_RID_FLOATN_NX): New macro.
1744         * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
1745         keywords.
1746         (c_common_type_for_mode): Check for _FloatN and _FloatNx and
1747         corresponding complex types.
1748         (c_common_nodes_and_builtins): For non-C++, register _FloatN and
1749         _FloatNx and corresponding complex types.
1750         (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
1751         * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
1752         and _FloatNx types for the widest type for determining
1753         DECIMAL_DIG.  Define __LDBL_DECIMAL_DIG__ as well as
1754         __DECIMAL_DIG__ for long double.  Handle FMA_SUFFIX being NULL.
1755         (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
1756         and _FloatNx types.
1757         * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
1758         constants.
1759         * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
1760         _FloatNx types.
1762 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
1764         * c-opts.c (c_diagnostic_finalizer): Update for change to
1765         diagnostic_show_locus.
1767 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
1769         * c-common.c: Include "spellcheck.h".
1770         (cb_get_suggestion): New function.
1771         * c-common.h (cb_get_suggestion): New decl.
1772         * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
1773         cb_get_suggestion.
1775 2016-08-18  Marek Polacek  <polacek@redhat.com>
1777         PR c/71514
1778         * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
1779         and pointer-to-VLA.
1781 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
1783         PR c/72857
1784         * c-common.c (substring_loc::get_range): Rename to...
1785         (substring_loc::get_location): ...this, converting param from a
1786         source_range * to a location_t *.  Call
1787         get_source_location_for_substring rather than
1788         get_source_range_for_substring, and pass in m_caret_idx.
1789         * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
1790         (substring_loc::get_range): Replace with...
1791         (substring_loc::get_location): ...this.
1792         (substring_loc::set_caret_index): New method.
1793         (substring_loc): Add field m_caret_idx.
1794         * c-format.c (format_warning_va): Update for above changes.
1795         Rename local "substring_loc" to "fmt_substring_loc" to avoid
1796         clashing with type name.
1797         (format_warning_at_char): Add caret_idx param to substring_loc ctor.
1798         (check_argument_type): Likewise.
1799         (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
1800         Use a copy when emitting warnings, setting the caret index from TYPE.
1802 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
1803             Arnaud Charlet  <charlet@adacore.com>
1805         * c-ada-spec.c (dump_number): New function.
1806         (handle_escape_character): Likewise.
1807         (print_ada_macros): Add handling of constant integers and strings.
1809 2016-08-12  Marek Polacek  <polacek@redhat.com>
1811         PR c/7652
1812         * c-common.c (scalar_to_vector): Adjust fall through comment.
1813         * c-opts.c (c_common_handle_option): Likewise.
1814         * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
1815         * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
1816         fall through comment.
1817         * cilk.c (extract_free_variables): Add FALLTHRU.
1819 2016-08-10  Jason Merrill  <jason@redhat.com>
1821         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
1823 2016-08-09  Jason Merrill  <jason@redhat.com>
1825         * c-common.c (c_common_attribute_table): vector_size affects type
1826         identity.
1828 2016-08-09  Marek Polacek  <polacek@redhat.com>
1830         PR c/7652
1831         * c-ada-spec.c (dump_generic_ada_node): Add return.
1833 2016-08-09  Jason Merrill  <jason@redhat.com>
1835         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
1836         C++17 constexpr lambdas.
1838 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
1840         PR c/64955
1841         * c-common.h (selftest::c_format_c_tests): New declaration.
1842         (selftest::run_c_tests): New declaration.
1843         * c-format.c: Include "selftest.h.
1844         (format_warning_va): Add param "corrected_substring" and use
1845         it to add a replacement fix-it hint.
1846         (format_warning_at_substring): Likewise.
1847         (format_warning_at_char): Update for new param of
1848         format_warning_va.
1849         (argument_parser::check_argument_type): Pass "fki" to
1850         check_format_types.
1851         (check_format_types): Add param "fki" and pass it to
1852         format_type_warning.
1853         (deref_n_times): New function.
1854         (get_modifier_for_format_len): New function.
1855         (selftest::test_get_modifier_for_format_len): New function.
1856         (get_format_for_type): New function.
1857         (format_type_warning): Add param "fki" and use it to attempt
1858         to provide hints for argument types when calling
1859         format_warning_at_substring.
1860         (selftest::get_info): New function.
1861         (selftest::assert_format_for_type_streq): New function.
1862         (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
1863         (selftest::test_get_format_for_type_printf): New function.
1864         (selftest::test_get_format_for_type_scanf): New function.
1865         (selftest::c_format_c_tests): New function.
1867 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
1869         PR c/52952
1870         * c-format.c: Include "diagnostic.h".
1871         (location_column_from_byte_offset): Delete.
1872         (location_from_offset): Delete.
1873         (format_warning_va): New function.
1874         (format_warning_at_substring): New function.
1875         (format_warning_at_char): New function.
1876         (check_format_arg): Capture location of format_tree and pass to
1877         check_format_info_main.
1878         (argument_parser): Add fields "start_of_this_format" and
1879         "format_string_cst".
1880         (flag_chars_t::validate): Add param "format_string_cst".  Convert
1881         warning_at call using location_from_offset to call to
1882         format_warning_at_char.
1883         (argument_parser::argument_parser): Add param "format_string_cst_"
1884         and use use it to initialize field "format_string_cst".
1885         Initialize new field "start_of_this_format".
1886         (argument_parser::read_format_flags): Convert warning_at call
1887         using location_from_offset to a call to format_warning_at_char.
1888         (argument_parser::read_any_format_left_precision): Likewise.
1889         (argument_parser::read_any_format_precision): Likewise.
1890         (argument_parser::read_any_other_modifier): Likewise.
1891         (argument_parser::find_format_char_info): Likewise, in three places.
1892         (argument_parser::parse_any_scan_set): Likewise, in one place.
1893         (argument_parser::handle_conversions): Likewise, in two places.
1894         (argument_parser::check_argument_type): Add param "fmt_param_loc"
1895         and use it to make a substring_loc.  Pass the latter to
1896         check_format_types.
1897         (check_format_info_main): Add params "fmt_param_loc" and
1898         "format_string_cst".  Convert warning_at calls using
1899         location_from_offset to calls to format_warning_at_char.  Pass the
1900         new params to the arg_parser ctor.  Pass "format_string_cst" to
1901         flag_chars.validate.  Pass "fmt_param_loc" to
1902         arg_parser.check_argument_type.
1903         (check_format_types): Convert first param from a location_t
1904         to a const substring_loc & and rename to "fmt_loc".  Attempt
1905         to extract the range of the relevant parameter and pass it
1906         to format_type_warning.
1907         (format_type_warning): Convert first param from a location_t
1908         to a const substring_loc & and rename to "fmt_loc".  Add
1909         params "param_range" and "type".  Replace calls to warning_at
1910         with calls to format_warning_at_substring.
1912 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
1914         * c-format.c (class flag_chars_t): New class.
1915         (struct length_modifier): New struct.
1916         (class argument_parser): New class.
1917         (flag_chars_t::flag_chars_t): New ctor.
1918         (flag_chars_t::has_char_p): New method.
1919         (flag_chars_t::add_char): New method.
1920         (flag_chars_t::validate): New method.
1921         (flag_chars_t::get_alloc_flag): New method.
1922         (flag_chars_t::assignment_suppression_p): New method.
1923         (argument_parser::argument_parser): New ctor.
1924         (argument_parser::read_any_dollar): New method.
1925         (argument_parser::read_format_flags): New method.
1926         (argument_parser::read_any_format_width): New method.
1927         (argument_parser::read_any_format_left_precision): New method.
1928         (argument_parser::read_any_format_precision): New method.
1929         (argument_parser::handle_alloc_chars): New method.
1930         (argument_parser::read_any_length_modifier): New method.
1931         (argument_parser::read_any_other_modifier): New method.
1932         (argument_parser::find_format_char_info): New method.
1933         (argument_parser::validate_flag_pairs): New method.
1934         (argument_parser::give_y2k_warnings): New method.
1935         (argument_parser::parse_any_scan_set): New method.
1936         (argument_parser::handle_conversions): New method.
1937         (argument_parser::check_argument_type): New method.
1938         (check_format_info_main): Introduce classes argument_parser
1939         and flag_chars_t, moving the code within the loop into methods
1940         of these classes.  Make various locals "const".
1942 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
1944         * c-common.c: Include "substring-locations.h".
1945         (get_cpp_ttype_from_string_type): New function.
1946         (g_string_concat_db): New global.
1947         (substring_loc::get_range): New method.
1948         * c-common.h (g_string_concat_db): New declaration.
1949         (class substring_loc): New class.
1950         * c-lex.c (lex_string): When concatenating strings, capture the
1951         locations of all tokens using a new obstack, and record the
1952         concatenation locations within g_string_concat_db.
1953         * c-opts.c (c_common_init_options): Construct g_string_concat_db
1954         on the ggc-heap.
1956 2016-07-29  Marek Polacek  <polacek@redhat.com>
1958         PR c/71926
1959         * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
1960         parentheses warning.
1962         PR c/71574
1963         * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
1965 2016-07-28  Martin Liska  <mliska@suse.cz>
1967         PR gcov-profile/68025
1968         * c-common.c (handle_no_profile_instrument_function_attribute):
1970 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1972         * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
1973         BITS_PER_UNIT_LOG.
1975 2016-07-25  Jason Merrill  <jason@redhat.com>
1977         PR c++/65970
1978         * c.opt (fconstexpr-loop-limit): New.
1980 2016-07-22  Martin Sebor  <msebor@redhat.com>
1982         PR c++/71675
1983         * c-common.c (resolve_overloaded_builtin): Avoid converting
1984         __atomic_compare_exchange_n return type to that of what its
1985         first argument points to.
1987 2016-07-22  Uros Bizjak  <ubizjak@gmail.com>
1989         * c-common.c: Use HOST_WIDE_INT_M1U instead of
1990         ~(unsigned HOST_WIDE_INT) 0.
1992 2016-07-22  Martin Liska  <mliska@suse.cz>
1994         PR gcov-profile/69028
1995         PR gcov-profile/62047
1996         * cilk.c (create_cilk_helper_decl): Set location of a new decl
1997         to the current_function_decl.
1999 2016-07-21  Jason Merrill  <jason@redhat.com>
2001         PR c++/65168
2002         * c-common.c (c_common_truthvalue_conversion): Check
2003         c_inhibit_evaluation_warnings for warning about address of
2004         reference.
2006 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
2008         * c-common.h (lookup_name_fuzzy): Convert return type from tree to
2009         const char *.
2011 2016-07-15  Jason Merrill  <jason@redhat.com>
2013         * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
2015 2016-07-15  Jakub Jelinek  <jakub@redhat.com>
2017         PR c/71858
2018         * c-common.h (enum lookup_name_fuzzy_kind): Add
2019         FUZZY_LOOKUP_FUNCTION_NAME.
2021 2016-07-08  Jason Merrill  <jason@redhat.com>
2023         P0145: Refining Expression Order for C++.
2024         * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
2025         * c-opts.c: Adjust.
2027 2016-07-05  Markus Trippelsdorf  <markus@trippelsdorf.de>
2029         PR c++/71214
2030         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
2032 2016-06-29  Thomas Schwinge  <thomas@codesourcery.com>
2034         * c-pragma.h (enum pragma_kind): Rename
2035         PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE.  Adjust all
2036         users.
2038 2016-06-29  Richard Biener  <rguenther@suse.de>
2040         PR middle-end/71002
2041         * c-common.c (c_common_get_alias_set): Remove union type punning case.
2043 2016-06-24  Jason Merrill  <jason@redhat.com>
2045         P0145R2: Refining Expression Order for C++.
2046         * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
2047         MODIFY_EXPR.
2049 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
2051         * c-common.c (check_builtin_function_arguments): Require last
2052         argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
2053         Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
2054         if the last argument is pointer to enumerated or boolean type.
2056 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
2058         PR c/70339
2059         * c-common.h (enum lookup_name_fuzzy_kind): New enum.
2060         (lookup_name_fuzzy): New prototype.
2062 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
2064         * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
2066 2016-06-14  Jason Merrill  <jason@redhat.com>
2068         P0145R2: Refining Expression Order for C++.
2069         * c.opt (fargs-in-order): New.
2070         * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
2072 2016-06-13  Jakub Jelinek  <jakub@redhat.com>
2074         PR sanitizer/71498
2075         * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
2076         all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
2078         PR preprocessor/71183
2079         * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
2080         to cb_get_source_date_epoch.
2082 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
2084         PR c/68657
2085         * c.opt (Wpsabi): Add Warning flag.
2087 2016-06-10  Martin Sebor  <msebor@redhat.com>
2089         PR c/71392
2090         * gcc/c-family/c-common.c (handle_nonnull_attribute): Accept
2091         the nonnull attribute in type-generic builtins.
2093 2016-06-09  Martin Sebor  <msebor@redhat.com>
2095         PR c/70883
2096         * c-common.c (builtin_function_validate_nargs): Make text of error
2097         message consistent with others like it.
2099 2016-06-08  Martin Sebor  <msebor@redhat.com>
2100             Jakub Jelinek  <jakub@redhat.com>
2102         PR c++/70507
2103         PR c/68120
2104         * c-common.c (check_builtin_function_arguments): Handle
2105         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
2107 2016-06-08  Richard Biener  <rguenther@suse.de>
2109         * c-common.c (parse_optimize_options): Improve diagnostic messages.
2111 2016-06-07  Richard Biener  <rguenther@suse.de>
2113         PR c/61564
2114         * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
2115         options and warn about others.
2117 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
2119         * c-common.c (get_source_date_epoch): Rename to
2120         cb_get_source_date_epoch.
2121         * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
2122         message when the parsing fails.  Use error_at instead of fatal_error.
2123         * c-common.h (get_source_date_epoch): Rename to
2124         cb_get_source_date_epoch.
2125         * c-common.h (cb_get_source_date_epoch): Prototype.
2126         * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
2127         * c-common.h (c_omp_region_type): Remove trailing comma.
2128         * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
2129         * c-lex.c (c_lex_with_flags): Remove initialization of
2130         pfile->source_date_epoch.
2132 2016-05-30  Jakub Jelinek  <jakub@redhat.com>
2134         PR c++/71349
2135         * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
2136         C_OMP_CLAUSE_SPLIT_TARGET.  Put OMP_CLAUSE_NOWAIT to
2137         C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
2138         instead of C_OMP_CLAUSE_SPLIT_FOR.
2140 2016-05-24  Richard Biener  <rguenther@suse.de>
2142         PR middle-end/70434
2143         PR c/69504
2144         * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
2145         (convert_vector_to_array_for_subscript): ... this.
2146         * c-common.c (convert_vector_to_pointer_for_subscript): Use a
2147         VIEW_CONVERT_EXPR to an array type.  Rename to ...
2148         (convert_vector_to_array_for_subscript): ... this.
2150 2016-05-12  Marek Polacek  <polacek@redhat.com>
2152         PR c/70756
2153         * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
2154         size_in_bytes and pass LOC to it.
2156 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
2158         PR c/43651
2159         * c.opt (Wduplicate-decl-specifier): New option.
2161 2016-05-11  Marek Polacek  <polacek@redhat.com>
2163         PR c++/71024
2164         * c-common.c (diagnose_mismatched_attributes): New function.
2165         * c-common.h (diagnose_mismatched_attributes): Declare.
2167 2016-05-04  Marek Polacek  <polacek@redhat.com>
2169         * c.opt (Wdangling-else): New option.
2171 2016-05-03  Marek Polacek  <polacek@redhat.com>
2173         PR c/70859
2174         * c-common.c (builtin_function_validate_nargs): Add location
2175         parameter.  Use it.
2176         (check_builtin_function_arguments): Add location and arguments
2177         parameters.  Use them.
2178         * c-common.h (check_builtin_function_arguments): Update declaration.
2180 2016-05-03  Richard Biener  <rguenther@suse.de>
2182         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
2183         allow call args to gimplify to SSA names.
2185 2016-05-03  Marek Polacek  <polacek@redhat.com>
2187         * c-common.h (enum c_omp_region_type): Remove stray comma.
2189 2016-05-02  Cesar Philippidis  <cesar@codesourcery.com>
2191         * c-common.h (enum c_omp_region_type): Define.
2193 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
2195         * c-common.c (shorten_compare): Use wi::to_wide.
2197 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
2199         PR middle-end/70626
2200         * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
2201         * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
2202         reduction clauses in acc parallel loops.
2204 2016-04-29  Marek Polacek  <polacek@redhat.com>
2206         PR c/70852
2207         * c-common.c (warn_for_memset): Check domain before accessing it.
2209 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2211         PR/69089
2212         * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
2213         "aligned" attribute.
2215 2016-04-28  Jason Merrill  <jason@redhat.com>
2217         * c-lex.c (c_common_has_attribute): Handle nodiscard.
2219 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
2220             Matthias Klose  <doko@debian.org>
2222         * c-common.c (get_source_date_epoch): New function, gets the environment
2223         variable SOURCE_DATE_EPOCH and parses it as long long with error 
2224         handling.
2225         * c-common.h (get_source_date_epoch): Prototype.
2226         * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
2228 2015-04-27  Ryan Burn  <contact@rnburn.com>
2230         PR c++/69024
2231         PR c++/68997
2232         * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
2233         (cilk_recognize_spawn): Renamed from recognize_spawn and change to
2234         external linkage.
2235         (cilk_detect_and_unwrap): Corresponding changes.
2236         (extract_free_variables): Don't extract free variables from
2237         AGGR_INIT_EXPR slot.
2238         * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
2239         (cilk_recognize_spawn): Likewise.
2241 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
2243         * c.opt (Wmemset-elt-size): New option.
2244         * c-common.c (warn_for_memset): New function.
2245         * c-common.h (warn_for_memset): Declare.
2247 2016-04-25  Jason Merrill  <jason@redhat.com>
2249         * c-common.c (handle_unused_attribute): Accept CONST_DECL.
2250         No longer static.
2251         * c-common.h: Declare it.
2252         * c-lex.c (c_common_has_attribute): Add maybe_unused.
2254 2016-04-22  Jason Merrill  <jason@redhat.com>
2256         * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
2258 2016-04-20  Ilya Verbin  <ilya.verbin@intel.com>
2260         PR c++/69363
2261         * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
2262         * c-common.h (c_finish_cilk_clauses): Remove declaration.
2264 2016-04-18  Michael Matz  <matz@suse.de>
2266         * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
2267         and SET_DECL_ALIGN.
2269 2016-04-17  Eric Botcazou  <ebotcazou@adacore.com>
2271         * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
2272         (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
2273         to incomplete types.
2274         (dump_nested_type): Remove redundant tests and tidy up.
2275         (print_ada_declaration): Also set TREE_VISITED on the declaration of
2276         a type which is the typedef of an original type.
2278 2016-04-15  Marek Polacek  <polacek@redhat.com>
2280         PR c/70651
2281         * c-common.c (build_va_arg): Change two asserts into errors and return
2282         error_mark_node.
2284 2016-04-13  Marek Polacek  <polacek@redhat.com>
2286         PR c++/70639
2287         * c-indentation.c (should_warn_for_misleading_indentation): Bail out
2288         for switch statements, too.
2290 2016-03-28  Jason Merrill  <jason@redhat.com>
2292         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
2294 2016-03-23  Marek Polacek  <polacek@redhat.com>
2296         PR c++/69884
2297         * c.opt (Wignored-attributes): New option.
2299 2016-03-22  David Malcolm  <dmalcolm@redhat.com>
2301         PR c/69993
2302         * c-indentation.c (warn_for_misleading_indentation): Rewrite the
2303         diagnostic text, reversing the order of the warning and note so
2304         that they appear in source order.
2306 2016-03-17  Marek Polacek  <polacek@redhat.com>
2308         PR c/69407
2309         * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
2310         operations.
2312 2016-03-14  Jason Merrill  <jason@redhat.com>
2314         * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
2316         * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
2318 2016-03-09  Richard Biener  <rguenther@suse.de>
2320         PR c/70143
2321         * c-common.c (strict_aliasing_warning): Add back
2322         alias_sets_conflict_p check.
2324 2016-03-08  Jason Merrill  <jason@redhat.com>
2326         * c-opts.c (set_std_cxx1z): Don't enable concepts.
2328 2016-03-04  David Malcolm  <dmalcolm@redhat.com>
2330         PR c/68187
2331         * c-indentation.c (get_visual_column): Move code to determine next
2332         tab stop to...
2333         (next_tab_stop): ...this new function.
2334         (line_contains_hash_if): Delete function.
2335         (detect_preprocessor_logic): Delete function.
2336         (get_first_nws_vis_column): New function.
2337         (detect_intervening_unindent): New function.
2338         (should_warn_for_misleading_indentation): Replace call to
2339         detect_preprocessor_logic with a call to
2340         detect_intervening_unindent.
2342 2016-03-04  David Malcolm  <dmalcolm@redhat.com>
2344         PR c/68187
2345         * c-indentation.c (should_warn_for_misleading_indentation): When
2346         suppressing warnings about cases where the guard and body are on
2347         the same column, only use the first non-whitespace column in place
2348         of the guard token column when dealing with "else" clauses.
2349         When rejecting aligned BODY and NEXT, loosen the requirement
2350         from equality with the first non-whitespace of guard to simply
2351         that they not be indented relative to it.
2353 2016-03-04  Richard Biener  <rguenther@suse.de>
2355         PR c++/70054
2356         * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
2357         instead of alias_sets_conflict_p.
2359 2016-03-01  Marek Polacek  <polacek@redhat.com>
2361         PR c++/69795
2362         * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
2363         any DECL.
2365 2016-02-22  Martin Sebor  <msebor@redhat.com>
2367         PR middle-end/69780
2368         * c-common.c (check_builtin_function_arguments): Validate and
2369         reject invalid arguments to __builtin_alloca_with_align.
2371 2016-02-20  Mark Wielaard  <mjw@redhat.com>
2373         PR c/28901
2374         * c.opt (Wunused-const-variable): Turn into Alias for...
2375         (Wunused-const-variable=): New option.
2377 2016-02-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2379         PR c++/69865
2380         * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
2381         here...
2382         (c_common_init_options): ...to here.
2383         (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
2385 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
2387         PR c++/69826
2388         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
2389         (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
2390         flag_preprocess_only.
2392 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
2394         PR c/69835
2395         * c.opt (Wnonnull-compare): Enable for -Wall.
2397 2016-02-15  Jakub Jelinek  <jakub@redhat.com>
2399         PR c++/69797
2400         * c-common.c (sync_resolve_size): Diagnose too few arguments
2401         even when params is non-NULL empty vector.
2403 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
2405         PR target/60410
2406         * c.opt (fshort-double): Remove.
2408 2016-02-05  Martin Sebor  <msebor@redhat.com>
2410         PR c++/69662
2411         * c.opt (Warning options): Update -Wplacement-new to take
2412         an optional argument.
2414 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
2416         PR preprocessor/69543
2417         PR c/69558
2418         * c-pragma.c (handle_pragma_diagnostic): Pass input_location
2419         instead of loc to control_warning_option.
2421 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
2423         * c.opt (fopenacc-dim=): New option.
2425 2016-01-27  Ryan Burn  <contact@rnburn.com>
2427         PR cilkplus/69267
2428         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
2429         gimplify_arg. Removed superfluous post_p argument.
2430         * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
2431         superfluous post_p argument.
2432         * c-gimplify.c (c_gimplify_expr): Likewise.
2434 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
2436         PR other/69006
2437         * c-opts.c (c_diagnostic_finalizer): Replace invocation of
2438         pp_newline_and_flush with pp_flush.
2440 2016-01-20  Martin Sebor  <msebor@redhat.com>
2442         PR c/69405
2443         * c-common.c (sync_resolve_size): Avoid printing diagnostic about
2444         an incompatible argument when the argument isn't a valid tree node.
2446 2016-01-18  Jason Merrill  <jason@redhat.com>
2448         PR c++/68767
2449         * c-common.c (check_function_arguments_recurse): Fold the whole
2450         COND_EXPR, not just the condition.
2452 2016-01-18  Tom de Vries  <tom@codesourcery.com>
2454         * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
2455         classify as loop clause.
2457 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
2459         PR bootstrap/68271
2460         * c-pragma.c (c_register_pragma_1): Adjust comment to note that
2461         C++ FE no longer has limit on number of pragmas.
2463 2015-01-14  Ryan Burn  <contact@rnburn.com>
2465         PR c++/69048
2466         * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
2467         to add missing cleanup point.
2469 2016-01-14  David Malcolm  <dmalcolm@redhat.com>
2471         PR c++/68819
2472         * c-indentation.c (get_visual_column): Add location_t param.
2473         Handle the column number being zero by effectively disabling the
2474         warning, with an "inform".
2475         (should_warn_for_misleading_indentation): Add location_t argument
2476         for all uses of get_visual_column.
2478 2016-01-10  Patrick Palka  <ppalka@gcc.gnu.org>
2480         PR c++/69029
2481         * c-indentation.c (should_warn_for_misleading_indentation):
2482         Don't warn about do-while statements.
2484 2016-01-07  Martin Sebor  <msebor@redhat.com>
2486         PR c/68966
2487         * c-common.c (sync_resolve_size): Reject first argument when it's
2488         a pointer to _Bool.
2490 2016-01-05  David Malcolm  <dmalcolm@redhat.com>
2492         PR c/69122
2493         * c-indentation.c (get_visual_column): Remove default argument.
2494         (should_warn_for_misleading_indentation): For the multiline case,
2495         update call to get_visual_column for next_stmt_exploc so that it
2496         captures the location of the first non-whitespace character in the
2497         relevant line.  Don't issue warnings if there is non-whitespace
2498         before the next statement.
2500 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
2502         Update copyright years.
2504 2015-12-21  David Malcolm  <dmalcolm@redhat.com>
2506         * c-common.c (binary_op_error): Convert first param from
2507         location_t to rich_location * and use it when emitting an error.
2508         * c-common.h (binary_op_error): Convert first param from
2509         location_t to rich_location *.
2511 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
2513         * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
2514         * c-lex.c (conflict_marker_get_final_tok_kind): New function.
2516 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
2518         * c-common.c (c_common_attribute_table): Handle "omp declare target
2519         link" attribute.
2521 2015-12-14  Jakub Jelinek  <jakub@redhat.com>
2523         PR c/68833
2524         * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
2526 2014-12-12  Tobias Burnus  <burnus@net-b.de>
2528         PR fortran/68815
2529         * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
2530         specifiers (%d, %i,%u and %c).
2532 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
2534         * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
2536 2015-12-08  Jakub Jelinek  <jakub@redhat.com>
2538         PR c/48088
2539         PR c/68657
2540         * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
2541         * c-pragma.c (handle_pragma_diagnostic): Adjust
2542         control_warning_option caller.
2544 2015-12-07  David Malcolm  <dmalcolm@redhat.com>
2546         * c-common.c (c_cpp_error): Update for change to
2547         rich_location::set_range.
2549 2015-12-04  Paolo Bonzini  <bonzini@gnu.org>
2551         * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
2552         shifting 1 out of the sign bit.
2554 2015-12-04  Kirill Yukhin  <kirill.yukhin@intel.com>
2556         * c-common.c (c_common_attribute_table[]): Update max arguments
2557         count for "simd" attribute.
2558         (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
2560 2015-12-03  Jakub Jelinek  <jakub@redhat.com>
2562         PR preprocessor/57580
2563         * c-ppoutput.c (print): Change printed field to bool.
2564         Move src_file last for smaller padding.
2565         (init_pp_output): Set print.printed to false instead of 0.
2566         (scan_translation_unit): Fix up formatting.  Set print.printed
2567         to true after printing something other than newline.
2568         (scan_translation_unit_trad): Set print.printed to true instead of 1.
2569         (maybe_print_line_1): Set print.printed to false instead of 0.
2570         (print_line_1): Likewise.
2571         (do_line_change): Set print.printed to true instead of 1.
2572         (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
2573         dump_macro): Set print.printed to false after printing newline.
2575 2015-12-02  Jason Merrill  <jason@redhat.com>
2577         * c-common.c (fold_for_warn): New.
2578         (warn_logical_operator, warn_tautological_cmp)
2579         (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
2581         * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
2582         (c_fully_fold_internal, decl_constant_value_for_optimization):
2583         Move to c/c-fold.c.
2584         * c-common.h: Don't declare decl_constant_value_for_optimization.
2586 2015-12-02  Joseph Myers  <joseph@codesourcery.com>
2588         PR c/68162
2589         * c-common.h (c_build_qualified_type): Add extra default
2590         arguments.
2592 2015-12-01  Julian Brown  <julian@codesourcery.com>
2593             Cesar Philippidis  <cesar@codesourcery.com>
2594             James Norris  <James_Norris@mentor.com>
2596         * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
2597         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
2598         (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
2600 2015-11-30  Eric Botcazou  <ebotcazou@adacore.com>
2602         * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
2603         (decl_sloc_common): Delete and move bulk of processing to...
2604         (decl_sloc): ...here.
2605         (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
2606         (dump_ada_double_name): Remove S parameter and compute the suffix.
2607         (dump_ada_array_type): Add PARENT parameter.  Simplify computation of
2608         element type and deal with an anonymous one.
2609         (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
2610         (dump_generic_ada_node): Tweak.  Adjust call to dump_ada_array_type
2611         and remove reference to QUAL_UNION_TYPE.
2612         (dump_nested_types): Make 2 passes on the fields and move bulk to...
2613         (dump_nested_type): ...here.  New function extracted from above.
2614         Generate a full declaration for anonymous element type of arrays.
2615         (print_ada_declaration): Really skip anonymous declarations.  Remove
2616         references to QUAL_UNION_TYPE.  Adjust call to dump_ada_array_type.
2617         Clean up processing of declarations of array types and objects.
2618         (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
2619         Remove obsolete code and tidy up.
2621 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
2623         PR c/67581
2624         * c-common.c (handle_transparent_union_attribute): Update
2625         also type variants.
2627 2015-11-27  Martin Liska  <mliska@suse.cz>
2629         PR c++/68312
2630         * array-notation-common.c (cilkplus_extract_an_triplets):
2631         Release vector of vectors.
2632         * cilk.c (gimplify_cilk_spawn): Free allocated memory.
2634 2015-11-26  Eric Botcazou  <ebotcazou@adacore.com>
2636         PR c++/68527
2637         * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
2638         (print_ada_struct_decl): Likewise.
2640 2015-11-23  Igor Zamyatin  <igor.zamyatin@intel.com>
2642         PR c++/68001
2643         * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
2644         * cilk.c (recognize_spawn): Determine location in a more precise
2645         way.
2647 2015-11-19  Jason Merrill  <jason@redhat.com>
2649         * c-common.c (shorten_compare): But look through macros from
2650         system headers.
2652 2015-11-18  Jason Merrill  <jason@redhat.com>
2654         * c-common.c (shorten_compare): Don't -Wtype-limits if the
2655         non-constant operand comes from a macro.
2657 2015-11-17  Jason Merrill  <jason@redhat.com>
2659         PR bootstrap/68346
2660         * c-common.c (warn_tautological_cmp): Fold before checking for
2661         constants.
2663 2015-11-16  Marek Polacek  <polacek@redhat.com>
2665         PR c++/68362
2666         * c-common.c (check_case_bounds): Fold low and high cases.
2668 2015-11-16  Marek Polacek  <polacek@redhat.com>
2670         * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
2671         * c-common.c (c_common_get_alias_set): Likewise.
2672         (handle_visibility_attribute): Likewise.
2674 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
2676         * c-common.c (handle_simd_attribute): New.
2677         (struct attribute_spec): Add entry for "simd".
2678         (handle_simd_attribute): New.
2680 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
2682         * c-lex.c (interpret_float): Use fold_convert.
2684 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
2686         * c-common.c (c_fully_fold_internal): Capture existing souce_range,
2687         and store it on the result.
2688         * c-opts.c (c_common_init_options): Set
2689         global_dc->colorize_source_p.
2691 2015-11-12  James Norris  <jnorris@codesourcery.com>
2692             Joseph Myers  <joseph@codesourcery.com>
2694         * c-pragma.c (oacc_pragmas): Add entry for declare directive. 
2695         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
2696         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
2697         PRAGMA_OACC_CLAUSE_LINK.
2699 2015-11-11  Marek Polacek  <polacek@redhat.com>
2701         PR c/68107
2702         PR c++/68266
2703         * c-common.c (valid_array_size_p): New function.
2704         * c-common.h (valid_array_size_p): Declare.
2706 2015-11-11  Dominique d'Humieres  <dominiq@lps.ens.fr>
2708         PR bootstrap/68271
2709         * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
2711 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
2713         * array-notation-common.c: Remove unused header files.
2714         * c-ada-spec.c: Likewise.
2715         * c-cilkplus.c: Likewise.
2716         * c-common.c: Likewise.
2717         * c-cppbuiltin.c: Likewise.
2718         * c-dump.c: Likewise.
2719         * c-format.c: Likewise.
2720         * c-gimplify.c: Likewise.
2721         * c-indentation.c: Likewise.
2722         * c-lex.c: Likewise.
2723         * c-omp.c: Likewise.
2724         * c-opts.c: Likewise.
2725         * c-pch.c: Likewise.
2726         * c-ppoutput.c: Likewise.
2727         * c-pragma.c: Likewise.
2728         * c-pretty-print.c: Likewise.
2729         * c-semantics.c: Likewise.
2730         * c-ubsan.c: Likewise.
2731         * cilk.c: Likewise.
2732         * stub-objc.c: Likewise.
2734 2015-11-09  Thomas Schwinge  <thomas@codesourcery.com>
2735             Cesar Philippidis  <cesar@codesourcery.com>
2736             James Norris  <jnorris@codesourcery.com>
2737             Julian Brown  <julian@codesourcery.com>
2738             Nathan Sidwell  <nathan@codesourcery.com>
2740         * c-pragma.c (oacc_pragmas): Add "routine".
2741         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
2743 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
2745         * c-common.c (c_common_attributes): Add scalar_storage_order.
2746         (handle_scalar_storage_order_attribute): New function.
2747         * c-pragma.c (global_sso): New variable.
2748         (maybe_apply_pragma_scalar_storage_order): New function.
2749         (handle_pragma_scalar_storage_order): Likewise.
2750         (init_pragma): Register scalar_storage_order.
2751         * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
2752         * c.opt (Wscalar-storage-order): New warning.
2753         (fsso-struct=): New option.
2755 2015-11-08  Martin Sebor  <msebor@redhat.com>
2757         * c.opt (Wplacement-new): Add a period to the end of a sentence.
2759 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
2761         * c-common.c: Don't undef DEF_BUILTIN.
2763 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
2765         * c-common.c (c_cpp_error): Convert parameter from location_t to
2766         rich_location *.  Eliminate the "column_override" parameter and
2767         the call to diagnostic_override_column.
2768         Update the "done_lexing" clause to set range 0
2769         on the rich_location, rather than overwriting a location_t.
2770         * c-common.h (c_cpp_error): Convert parameter from location_t to
2771         rich_location *.  Eliminate the "column_override" parameter.
2773 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
2774             Thomas Schwinge  <thomas@codesourcery.com>
2775             James Norris  <jnorris@codesourcery.com>
2777         * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
2778         AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses.  Associate REDUCTION
2779         clauses with parallel and kernels and loops.
2780         * c-pragma.h (enum pragma_omp_clause): Add entries for
2781         PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
2782         * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
2783         NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
2784         INDEPENDENT,SEQ}.
2785         (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
2787 2015-11-05  Martin Sebor  <msebor@redhat.com>
2789         PR c++/67942
2790         * c.opt (-Wplacement-new): New option.
2792 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
2794         * c-common.h (c_finish_omp_atomic): Add TEST argument.
2795         (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
2796         * c-omp.c (c_finish_omp_atomic): Add TEST argument.  Don't call
2797         save_expr or create_tmp_var* if TEST is true.
2798         (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
2799         Don't call add_stmt here.
2800         (struct c_omp_check_loop_iv_data): New type.
2801         (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
2802         c_omp_check_loop_iv_exprs): New functions.
2803         (c_omp_split_clauses): Adjust for lastprivate being allowed on
2804         distribute.
2805         (c_omp_declare_simd_clauses_to_numbers): Change
2806         OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
2807         (c_omp_declare_simd_clauses_to_decls): Similarly change those
2808         from numbers to PARM_DECLs.
2810 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
2812         * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
2813         flag_checking.
2815 2015-11-03  Bernd Schmidt  <bschmidt@redhat.com>
2817         PR c++-common/67882
2818         * c-common.h (fold_offsetof_1): Add argument.
2819         * c-common.c (fold_offsetof_1): Diagnose more invalid
2820         offsetof expressions that reference elements past the end of
2821         an array.
2823 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
2824             Chung-Lin Tang  <cltang@codesourcery.com>
2826         * c-pragma.c (oacc_pragmas): Add "atomic".
2827         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
2829 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
2831         * c-common.c (handle_target_clones_attribute): New.
2832         (c_common_attribute_table): Add handle_target_clones_attribute.
2833         (handle_always_inline_attribute): Add check on target_clones attribute.
2834         (handle_target_attribute): Ditto.
2836 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
2838         * array-notation-common.c: Reorder #include's and remove duplicates.
2839         * c-ada-spec.c: Likewise.
2840         * c-cilkplus.c: Likewise.
2841         * c-common.c: Likewise.
2842         * c-cppbuiltin.c: Likewise.
2843         * c-dump.c: Likewise.
2844         * c-format.c: Likewise.
2845         * c-gimplify.c: Likewise.
2846         * c-indentation.c: Likewise.
2847         * c-lex.c: Likewise.
2848         * c-omp.c: Likewise.
2849         * c-opts.c: Likewise.
2850         * c-pch.c: Likewise.
2851         * c-ppoutput.c: Likewise.
2852         * c-pragma.c: Likewise.
2853         * c-pretty-print.c: Likewise.
2854         * c-semantics.c: Likewise.
2855         * c-ubsan.c: Likewise.
2856         * cilk.c: Likewise.
2857         * stub-objc.c: Likewise.
2859 2015-10-28  Jason Merrill  <jason@redhat.com>
2861         * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
2863 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
2864             James Norris  <jnorris@codesourcery.com>
2865             Cesar Philippidis  <cesar@codesourcery.com>
2867         PR c/64765
2868         PR c/64880
2869         * c-common.h (c_oacc_split_loop_clauses): Declare function.
2870         * c-omp.c (c_oacc_split_loop_clauses): New function.
2872 2015-10-21  Martin Sebor  <msebor@redhat.com>
2874         PR driver/68043
2875         * c.opt: End each sentence that describes an option with a period.
2877 2015-10-20  Marek Polacek  <polacek@redhat.com>
2879         * array-notation-common.c (is_cilkplus_vector_p): Define.
2880         * c-common.h (is_cilkplus_vector_p): Declare.
2882 2015-10-20  Marek Polacek  <polacek@redhat.com>
2884         * c.opt (std=gnu++11): Do not describe as experimental.
2885         (std=gnu++14): Likewise.
2887 2015-10-19  Jason Merrill  <jason@redhat.com>
2889         * c-cppbuiltin.c (c_cpp_builtins): Define
2890         __cpp_nontype_template_args.
2892 2015-10-19  Jason Merrill  <jason@redhat.com>
2894         * c-cppbuiltin.c (c_cpp_builtins): Define
2895         __cpp_enumerator_attributes, __cpp_fold_expressions,
2896         __cpp_unicode_characters.
2898 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
2899             Aldy Hernandez  <aldyh@redhat.com>
2901         * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
2902         DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
2903         (c_define_builtins): Likewise.
2904         * c-common.h (enum c_omp_clause_split): Add
2905         C_OMP_CLAUSE_SPLIT_TASKLOOP.
2906         (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
2907         (c_finish_omp_for): Add ORIG_DECLV argument.
2908         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
2909         201511 instead of 201307.
2910         * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
2911         OMP_CRITICAL_CLAUSES to it.
2912         (c_finish_omp_ordered): Add CLAUSES argument, set
2913         OMP_ORDERED_CLAUSES to it.
2914         (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
2915         to it if OMP_FOR.  Clear DECL_INITIAL on the IVs.
2916         (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
2917         constructs and new OpenMP 4.5 clauses.  Clear
2918         OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD.  Add
2919         verification code.
2920         * c-pragma.c (omp_pragmas_simd): Add taskloop.
2921         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
2922         (enum pragma_omp_clause): Add
2923         PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
2924         and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
2926 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2928         * c-lex.c (interpret_float): Use real_equal instead of
2929         REAL_VALUES_EQUAL.
2931 2015-10-04  Jason Merrill  <jason@redhat.com>
2933         Implement N4514, C++ Extensions for Transactional Memory.
2934         * c-common.c (c_common_reswords): Add C++ TM TS keywords.
2935         (c_common_attribute_table): Add transaction_safe_dynamic.
2936         transaction_safe now affects type identity.
2937         (handle_tm_attribute): Handle transaction_safe_dynamic.
2938         * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
2939         RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
2940         (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
2941         (D_TRANSMEM): New.
2942         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
2943         * c-pretty-print.c (pp_c_attributes_display): Don't print
2944         transaction_safe in C++.
2946 2015-10-02  Marek Polacek  <polacek@redhat.com>
2948         * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
2950 2015-10-02  Marek Polacek  <polacek@redhat.com>
2952         PR c/64249
2953         * c-common.c (warn_duplicated_cond_add_or_warn): New function.
2954         * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
2955         * c.opt (Wduplicated-cond): New option.
2957 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
2959         * c.opt (std=c11): Do not describe as experimental.
2960         (std=gnu11): Likewise.
2961         (std=iso9899:2011): Likewise.
2963 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
2965         * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
2966         (DEF_FUNCTION_TYPE_VAR_11): Delete.
2968 2015-09-25  Marek Polacek  <polacek@redhat.com>
2970         * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
2971         (ubsan_instrument_shift): Likewise.
2973 2015-09-25  Marek Polacek  <polacek@redhat.com>
2975         PR sanitizer/64906
2976         * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
2978 2015-09-24  Patrick Palka  <ppalka@gcc.gnu.org>
2980         * c-indentation.c (should_warn_for_misleading_indentation):
2981         Compare next_stmt_vis_column with guard_line_first_nws instead
2982         of with guard_line_vis_column.
2984 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2986         PR c/49654
2987         PR c/49655
2988         * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
2989         options and options not valid for the current language.
2991 2015-09-22  Patrick Palka  <ppalka@gcc.gnu.org>
2993         * c-indentation.c (should_warn_for_misleading_indentation):
2994         Float out and consolidate the calls to get_visual_column that
2995         are passed guard_exploc as an argument.  Compare
2996         next_stmt_vis_column with guard_line_first_nws instead of with
2997         body_line_first_nws.
2999 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
3001         * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
3002         Wnamespaces): New C++ warnings.
3004 2015-09-22  Jason Merrill  <jason@redhat.com>
3006         * c-common.h (abi_compat_version_crosses): New.
3007         (warn_abi_version): Declare.
3008         * c-common.c: Define it.
3009         * c-opts.c (c_common_post_options): Handle it.
3010         flag_abi_compat_version defaults to 8.
3012 2015-09-21  Ville Voutilainen  <ville.voutilainen@gmail.com>
3014         Complete the implementation of N4230, Nested namespace definition.
3015         * c-cppbuiltin.c: Add __cpp_namespace_attributes and
3016         __cpp_nested_namespace_definitions.
3018 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3020         * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
3022 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3024         * c-pragma.c (handle_pragma_diagnostic): Use explicit location
3025         when warning.
3026         * c-pragma.h (pragma_lex): Add optional loc argument.
3028 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
3030         * c-format.c (check_format_arg): Adjust to use common block size in all
3031         object pools.
3033 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
3035         * c-format.c (location_from_offset): Update for change in
3036         signature of location_get_source_line.
3037         * c-indentation.c (get_visual_column): Likewise.
3038         (line_contains_hash_if): Likewise.
3040 2015-09-14  Marek Polacek  <polacek@redhat.com>
3042         * c-opts.c (c_common_post_options): Set C++ standard earlier, before
3043         setting various warnings.
3045 2015-09-14  Marek Polacek  <polacek@redhat.com>
3047         * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
3048         a negative value.
3050 2015-09-11  Mark Wielaard  <mjw@redhat.com>
3052         PR c/28901
3053         * c.opt (Wunused-variable): Option from common.opt.
3054         (Wunused-const-variable): New option.
3056 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
3058         PR c++/53184
3059         * c.opt ([Wsubobject-linkage]): Add.
3061 2015-09-03  Martin Sebor  <msebor@redhat.com>
3063         PR c/66516
3064         * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
3065         functions.
3066         * c-common.c (reject_gcc_builtin): Define.
3068 2015-09-02  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3070         PR middle-end/60586
3071         * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
3072         prototype.
3073         * c-gimplify.c (c_gimplify_expr): Added a call to the function
3074         cilk_gimplify_call_params_in_spawned_fn.
3075         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
3076         (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
3077         unwrapping.
3079 2015-08-25  Marek Polacek  <polacek@redhat.com>
3081         PR middle-end/67330
3082         * c-common.c (handle_weak_attribute): Don't check whether the
3083         visibility can be changed here.
3085 2015-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3087         * c-lex.c (c_lex_with_flags): Use explicit locations.
3089 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
3091         * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
3092         c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
3094 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3096         PR middle-end/36757
3097         * c-common.c (check_builtin_function_arguments): Add check
3098         for BUILT_IN_SIGNBIT argument.
3100 2015-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
3102         PR c++/67160
3103         * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
3104         in c++1z mode.
3106 2015-08-17  Marek Polacek  <polacek@redhat.com>
3108         * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
3109         with whitespaces before qualifier names.
3111 2015-08-12  Marek Polacek  <polacek@redhat.com>
3113         PR c++/55095
3114         * c-common.c (maybe_warn_shift_overflow): Properly handle
3115         left-shifting 1 into the sign bit.
3117 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3119         * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
3121 2015-08-06  Andrew Sutton  <andrew.n.sutton@gmail.com>
3122             Braden Obrzut  <admin@maniacsvault.net>
3123             Jason Merrill  <jason@redhat.com>
3125         Add C++ Concepts TS support.
3126         * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
3127         * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
3128         (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
3129         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
3130         * c-opts.c (set_std_cxx1z): Set flag_concepts.
3131         * c.opt (fconcepts): New.
3133 2015-08-02  Martin Sebor  <msebor@redhat.com>
3135         * c.opt (-Wframe-address): New warning option.
3137 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
3139         * c-indentation.c (should_warn_for_misleading_indentation):
3140         Improve heuristics.
3142 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
3144         * c-indentation.c (get_visual_column): Add parameter first_nws,
3145         use it.  Update comment documenting the function.
3146         (is_first_nonwhitespace_on_line): Remove.
3147         (should_warn_for_misleading_indentation): Replace usage of
3148         of is_first_nonwhitespace_on_line with get_visual_column.
3150 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
3152         * c-indentation.h (struct token_indent_info): Define.
3153         (get_token_indent_info): Define.
3154         (warn_for_misleading_information): Declare.
3155         * c-common.h (warn_for_misleading_information): Remove.
3156         * c-identation.c (warn_for_misleading_indentation):
3157         Change declaration to take three token_indent_infos.  Adjust
3158         accordingly.
3159         * c-identation.c (should_warn_for_misleading_indentation):
3160         Likewise.  Bail out early if the body is a compound statement.
3161         (guard_tinfo_to_string): Define.
3163 2015-07-30  Jason Merrill  <jason@redhat.com>
3165         * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
3166         '*' for reference decay.
3168 2015-07-30  Marek Polacek  <polacek@redhat.com>
3170         * c-common.c (warn_tautological_cmp): Bail for float types.
3172 2015-07-27  Marek Polacek  <polacek@redhat.com>
3174         PR bootstrap/67030
3175         * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
3177 2015-07-27  Marek Polacek  <polacek@redhat.com>
3179         PR c++/66555
3180         PR c/54979
3181         * c-common.c (find_array_ref_with_const_idx_r): New function.
3182         (warn_tautological_cmp): New function.
3183         * c-common.h (warn_tautological_cmp): Declare.
3184         * c.opt (Wtautological-compare): New option.
3186 2015-07-23  Marek Polacek  <polacek@redhat.com>
3188         * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
3189         (ubsan_instrument_shift): Likewise.
3191 2015-07-23  Marek Polacek  <polacek@redhat.com>
3193         PR sanitizer/66908
3194         * c-ubsan.c: Include gimplify.h.
3195         (ubsan_instrument_division): Unshare OP0 and OP1.
3196         (ubsan_instrument_shift): Likewise.
3198 2015-07-20  Marek Polacek  <polacek@redhat.com>
3199             Richard Sandiford  <richard.sandiford@arm.com>
3201         PR c++/55095
3202         * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
3203         Use EXPR_LOC_OR_LOC.
3204         (maybe_warn_shift_overflow): New function.
3205         * c-common.h (maybe_warn_shift_overflow): Declare.
3206         * c-opts.c (c_common_post_options): Set warn_shift_overflow.
3207         * c.opt (Wshift-overflow): New option.
3209 2015-07-16  Martin Liska  <mliska@suse.cz>
3211         * c-format.c (static void check_format_info_main): Use
3212         object_allocator instead of pool_allocator.
3213         (check_format_arg): Likewise.
3214         (check_format_info_main): Likewise.
3216 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
3218         * c-opts.c: Remove multiline #include comment.
3220 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
3222         * c-common.c: Fix double word typos.
3224 2015-07-10  Eric Botcazou  <ebotcazou@adacore.com>
3226         * c-ada-spec.h (cpp_operation): Revert latest change.
3227         * c-ada-spec.c (print_ada_declaration): Likewise.  Skip implicit
3228         constructors and destructors.
3230 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
3232         * c-common.h: Adjust includes for flags.h changes.
3233         * stub-objc.c: Likewise.
3235 2015-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3237         * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
3238         * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
3240 2015-07-08  Jakub Jelinek  <jakub@redhat.com>
3242         * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
3243         are to be removed, return NULL rather than original clauses list.
3245 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
3247         * array-notation-common.c: Adjust includes.
3248         * c-ada-spec.c: Likewise.
3249         * c-cilkplus.c: Likewise.
3250         * c-common.h: Likewise.
3251         * c-cppbuiltin.c: Likewise.
3252         * c-dump.c: Likewise.
3253         * c-format.c: Likewise.
3254         * c-gimplify.c: Likewise.
3255         * c-indentation.c: Likewise.
3256         * c-lex.c: Likewise.
3257         * c-omp.c: Likewise.
3258         * c-opts.c: Likewise.
3259         * c-pch.c: Likewise.
3260         * c-ppoutput.c: Likewise.
3261         * c-pragma.c: Likewise.
3262         * c-pretty-print.c: Likewise.
3263         * c-semantics.c: Likewise.
3264         * c-ubsan.c: Likewise.
3265         * cilk.c: Likewise.
3266         * stub-objc.c: Likewise.
3268 2015-07-07  Eric Botcazou  <ebotcazou@adacore.com>
3270         * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
3271         * c-ada-spec.c (print_ada_declaration): Skip move constructors.
3273 2015-07-01  Jason Merrill  <jason@redhat.com>
3275         * c-common.h (D_CXX11): Rename from D_CXX0X.
3276         (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
3277         * c-common.c: Adjust.
3279         * c-opts.c (c_common_post_options): Default to C++14.
3281         * c-opts.c (c_common_post_options): Highest ABI level is now 10.
3283 2015-06-30  Edward Smith-Rowland  <3dw4rd@verizon.net>
3285         Implement N4197 - Adding u8 character literals
3286         * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
3287         CPP_CHAR.
3288         * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
3289         CPP_UTF8CHAR_USERDEF tokens.
3290         * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
3291         and CPP_UTF8CHAR tokens.
3292         (lex_charconst): Treat CPP_UTF8CHAR token.
3294 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3296         PR fortran/66605
3297         * c-common.c (do_warn_unused_parameter): Move here.
3298         * c-common.h (do_warn_unused_parameter): Declare.
3300 2015-06-29  Marek Polacek  <polacek@redhat.com>
3302         PR c/66322
3303         * c-common.c (check_case_bounds): Add bool * parameter.  Set
3304         OUTSIDE_RANGE_P.
3305         (c_add_case_label): Add bool * parameter.  Pass it down to
3306         check_case_bounds.
3307         (c_do_switch_warnings): Add bool parameters.  Implement -Wswitch-bool
3308         warning here.
3309         * c-common.h (c_add_case_label, c_do_switch_warnings): Update
3310         declarations.
3312 2015-06-27  Marek Polacek  <polacek@redhat.com>
3314         * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
3315         or VECTOR_INTEGER_TYPE_P throughout.
3316         * c-gimplify.c: Likewise.
3318 2015-06-26  Marek Polacek  <polacek@redhat.com>
3320         * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
3321         * c-common.c (c_fully_fold_internal): Likewise.
3322         (c_alignof_expr): Likewise.
3323         * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
3324         * c-ubsan.c (ubsan_instrument_bounds): Likewise.
3325         * cilk.c (create_parm_list): Likewise.
3327 2015-06-26  Marek Polacek  <polacek@redhat.com>
3329         * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
3331 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
3333         * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
3334         * c-gimplify.c: Likewise.
3335         * c-pragma.c: Likewise.
3336         * c-ubsan.c: Likewise.
3337         * cilk.c: Likewise.
3339 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3341         * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
3342         ggc_hasher.
3344 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
3346         * cilk.c: Move calls.h after tm.h in the include chain.
3348 2015-06-25  Marek Polacek  <polacek@redhat.com>
3350         * array-notation-common.c: Use VAR_P throughout.
3351         * c-ada-spec.c: Likewise.
3352         * c-common.c: Likewise.
3353         * c-format.c: Likewise.
3354         * c-gimplify.c: Likewise.
3355         * c-omp.c: Likewise.
3356         * c-pragma.c: Likewise.
3357         * c-pretty-print.c: Likewise.
3358         * cilk.c: Likewise.
3360 2015-06-25  Marek Polacek  <polacek@redhat.com>
3362         * cilk.c (extract_free_variables): Use is_global_var.
3364 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
3366         * c-common.c: Don't include target-def.h.
3368 2015-06-23  Marek Polacek  <polacek@redhat.com>
3370         * c-common.c (warn_logical_operator): Use tree_int_cst_equal
3371         when comparing INTEGER_CSTs.
3373 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
3375         * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
3376         * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
3377         (dump_ada_template): Skip partially specialized types.
3379 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
3381         * c-common.c (scalar_to_vector): Use std::swap instead of manually
3382         swapping.
3384 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
3386         * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
3387         * c-ada-spec.c: Likewise.
3388         * c-cilkplus.c: Likewise.
3389         * c-common.c: Likewise.
3390         * c-common.h: Likewise.
3391         * c-cppbuiltin.c: Likewise.
3392         * c-dump.c: Likewise.
3393         * c-format.c: Likewise.
3394         * c-gimplify.c: Likewise.
3395         * c-indentation.c: Likewise.
3396         * c-lex.c: Likewise.
3397         * c-omp.c: Likewise.
3398         * c-opts.c: Likewise.
3399         * c-pch.c: Likewise.
3400         * c-ppoutput.c: Likewise.
3401         * c-pragma.c: Likewise.
3402         * c-pretty-print.c: Likewise.
3403         * c-semantics.c: Likewise.
3404         * c-ubsan.c: Likewise.
3405         * cilk.c: Likewise.
3406         * stub-objc.c: Likewise.
3408 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
3410         PR c++/65168
3411         * c-common.c (c_common_truthvalue_conversion): Warn when
3412         converting an address of a reference to a truth value.
3414 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
3416         * array-notation-common.c : Adjust include files.
3417         * c-ada-spec.c : Likewise.
3418         * c-cilkplus.c : Likewise.
3419         * c-common.c : Likewise.
3420         * c-common.h : Likewise.
3421         * c-cppbuiltin.c : Likewise.
3422         * c-dump.c : Likewise.
3423         * c-format.c : Likewise.
3424         * c-gimplify.c : Likewise.
3425         * c-indentation.c : Likewise.
3426         * c-lex.c : Likewise.
3427         * c-omp.c : Likewise.
3428         * c-opts.c : Likewise.
3429         * c-pch.c : Likewise.
3430         * c-ppoutput.c : Likewise.
3431         * c-pragma.c : Likewise.
3432         * c-pretty-print.c : Likewise.
3433         * c-semantics.c : Likewise.
3434         * c-ubsan.c : Likewise.
3435         * cilk.c : Likewise.
3436         * stub-objc.c : Likewise.
3438 2015-06-08  Marek Polacek  <polacek@redhat.com>
3440         PR c/66415
3441         * c-format.c (location_from_offset): Return LOC if LINE is null.
3443 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
3445         * c-common.h (c_parse_final_cleanups): New prototype.
3446         * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
3448 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
3450         * c-common.c (noplt): New attribute.
3451         (handle_noplt_attribute): New handler.
3453 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
3455         * array-notation-common.c: Adjust includes for restructured coretypes.h.
3456         * c-ada-spec.c: Likewise.
3457         * c-cilkplus.c: Likewise.
3458         * c-common.c: Likewise.
3459         * c-common.h: Likewise.
3460         * c-cppbuiltin.c: Likewise.
3461         * c-dump.c: Likewise.
3462         * c-format.c: Likewise.
3463         * c-gimplify.c: Likewise.
3464         * c-indentation.c: Likewise.
3465         * c-lex.c: Likewise.
3466         * c-omp.c: Likewise.
3467         * c-opts.c: Likewise.
3468         * c-pch.c: Likewise.
3469         * c-ppoutput.c: Likewise.
3470         * c-pragma.c: Likewise.
3471         * c-pretty-print.c: Likewise.
3472         * c-semantics.c: Likewise.
3473         * c-ubsan.c: Likewise.
3474         * cilk.c: Likewise.
3475         * stub-objc.c: Likewise.
3477 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
3479         PR c/66220:
3480         * c-indentation.c (should_warn_for_misleading_indentation): Use
3481         expand_location rather than expand_location_to_spelling_point.
3482         Don't warn if the guarding statement is more indented than the
3483         next/body stmts.
3485 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
3487         * c-indentation.c (warn_for_misleading_indentation): Bail out
3488         immediately if -Wmisleading-indentation isn't enabled.
3490 2015-06-01  Martin Liska  <mliska@suse.cz>
3492         * c-format.c (check_format_arg):Use new type-based pool allocator.
3493         (check_format_info_main) Likewise.
3495 2015-05-31  Eric Botcazou  <ebotcazou@adacore.com>
3497         * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
3498         (has_nontrivial_methods): Likewise.
3500 2015-05-25  Marek Polacek  <polacek@redhat.com>
3502         * c-ubsan.c (ubsan_instrument_shift): Use type0.
3504 2015-05-22  Marek Polacek  <polacek@redhat.com>
3506         PR c/47043
3507         * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
3509 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3511         * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
3512         STACK_GROWS_DOWNWARD.
3514 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3516         * c-cppbuiltin.c (c_cpp_builtins): Check the value of
3517         STACK_GROWS_DOWNWARD rather than if it is defined.
3519 2015-05-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3521         PR c/52952
3522         * c-format.c (location_column_from_byte_offset): New.
3523         (location_from_offset): New.
3524         (struct format_wanted_type): Add offset_loc field.
3525         (check_format_info): Move handling of location for extra arguments
3526         closer to the point of warning.
3527         (check_format_info_main): Pass the result of location_from_offset
3528         to warning_at.
3529         (format_type_warning): Pass the result of location_from_offset
3530         to warning_at.
3532 2015-05-20  Marek Polacek  <polacek@redhat.com>
3534         * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
3536 2015-05-20  Marek Polacek  <polacek@redhat.com>
3538         * c-ada-spec.c (dump_sloc): Use DECL_P.
3540 2015-05-20  Marek Polacek  <polacek@redhat.com>
3542         * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
3543         * c-common.c: Likewise.
3545 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
3547         * c-common.h (fe_file_change): Strengthen param from
3548         const line_map * to const line_map_ordinary *.
3549         (pp_file_change): Likewise.
3550         * c-lex.c (fe_file_change): Likewise.
3551         (cb_define): Use linemap_check_ordinary when invoking
3552         SOURCE_LINE.
3553         (cb_undef): Likewise.
3554         * c-opts.c (c_finish_options): Use linemap_check_ordinary when
3555         invoking cb_file_change.
3556         (c_finish_options): Likewise.
3557         (push_command_line_include): Likewise.
3558         (cb_file_change): Strengthen param "new_map" from
3559         const line_map * to const line_map_ordinary *.
3560         * c-ppoutput.c (cb_define): Likewise for local "map".
3561         (pp_file_change): Likewise for param "map" and local "from".
3563 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
3565         * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
3567 2015-05-18  Tom de Vries  <tom@codesourcery.com>
3569         * c-common.c (build_va_arg_1): New function.
3570         (build_va_arg): Add address operator to va_list operand if necessary.
3572 2015-05-15  Mikhail Maltsev  <maltsevm@gmail.com>
3574         PR c/48956
3575         * c-common.c (int_safely_convertible_to_real_p): Define.
3576         (unsafe_conversion_p): Check conversions involving complex types.
3577         (conversion_warning): Add new warning message for conversions which
3578         discard imaginary component.
3579         * c-common.h: (enum conversion_safety): Add new enumerator for such
3580         conversions.
3582 2015-05-14  Marek Polacek  <polacek@redhat.com>
3584         PR c/66066
3585         PR c/66127
3586         * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
3587         (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
3588         C_MAYBE_CONST_EXPR_INT_OPERANDS set.  Add FOR_INT_CONST argument and
3589         use it.  If FOR_INT_CONST, require that all evaluated operands be
3590         INTEGER_CSTs.
3592 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
3594         * c-common.h (warn_for_misleading_indentation): New prototype.
3595         * c-indentation.c: New file.
3596         * c.opt (Wmisleading-indentation): New option.
3598 2015-05-12  Tom de Vries  <tom@codesourcery.com>
3600         PR tree-optimization/66010
3601         * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
3603 2015-05-09  Jason Merrill  <jason@redhat.com>
3605         * c-opts.c (c_common_post_options): Also clear
3606         cpp_opts->cpp_warn_cxx11_compat.
3608         * c-common.h (enum cxx_dialect): Add cxx_unset.
3609         * c-common.c (cxx_dialect): Initialize to cxx_unset.
3610         * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
3612         * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
3613         (std=gnu++0x): Mark as Undocumented.
3614         (std=gnu++1y): Add deprecated message.
3616 2015-05-08  Jason Merrill  <jason@redhat.com>
3618         * c.opt (Wc++11-compat): Make primary.  Rename var warn_cxx11_compat.
3619         * c-opts.c: Adjust.
3621         * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
3623 2015-05-08  Marek Polacek  <polacek@redhat.com>
3625         PR c/64918
3626         * c.opt (Woverride-init-side-effects): New option.
3628 2015-05-07  Marek Polacek  <polacek@redhat.com>
3630         PR c/65179
3631         * c-common.c (c_fully_fold_internal): Warn when left shifting a
3632         negative value.
3633         * c.opt (Wshift-negative-value): New option.
3634         * c-opts.c (c_common_post_options): Set warn_shift_negative_value
3635         when -Wextra and C99/C++11 mode.
3637 2015-05-07  Marek Polacek  <polacek@redhat.com>
3638             Martin Uecker  <uecker@eecs.berkeley.edu>
3640         * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
3641         flexible member array-like members if SANITIZE_BOUNDS_STRICT.
3643 2015-05-05  Jason Merrill  <jason@redhat.com>
3645         * c.opt (Wterminate): New.
3647 2015-04-30  Marek Polacek  <polacek@redhat.com>
3649         * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
3650         require that the non-constant be of a boolean type.
3652 2015-04-29  Josh Triplett  <josh@joshtriplett.org>
3654         * c-common.c (handle_section_attribute): Refactor to reduce
3655         nesting and distinguish between error cases.
3657 2015-04-29  Marek Polacek  <polacek@redhat.com>
3659         PR c/64610
3660         * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
3661         with 0/1.
3663 2015-04-29  Jakub Jelinek  <jakub@redhat.com>
3665         * c-common.h (omp_clause_mask): Unconditionally define as a class.
3666         Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
3667         HOST_BITS_PER_WIDE_INT.
3669 2015-04-28  Tom de Vries  <tom@codesourcery.com>
3671         PR tree-optimization/65887
3672         * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
3674 2015-04-28  Eric Botcazou  <ebotcazou@adacore.com>
3675             Pierre-Marie de Rodat  <derodat@adacore.com>
3677         * c-ada-spec.c (in_function): Delete.
3678         (dump_generic_ada_node): Do not change in_function and remove the
3679         redundant code dealing with it.
3680         (print_ada_declaration): Do not change in_function.  Use INDENT_INCR.
3681         (print_ada_methods): Output the static member functions in a nested
3682         package after the regular methods as well as associated renamings.
3684 2015-04-24  Marek Polacek  <polacek@redhat.com>
3686         PR c/65830
3687         * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
3688         and OPT_Wshift_count_overflow.
3690         PR c/63357
3691         * c-common.c (warn_logical_operator): Warn if the operands have the
3692         same expressions.
3694 2015-04-24  Marek Polacek  <polacek@redhat.com>
3696         PR c/61534
3697         * c-common.c (warn_logical_operator): Bail if either operand comes
3698         from a macro expansion.
3700 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3702         PR target/55143
3703         * c-common.c (c_default_pointer_mode): Add definition.
3704         * c-common.h (c_default_pointer_mode): Add declaration.
3706 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
3708         * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
3709         on record_builtin_type argument.
3711 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
3713         PR c/65120
3714         * c-common.c (warn_logical_not_parentheses): Don't warn for
3715         !x == 0 or !x != 0.
3717 2015-03-07  Marek Polacek  <polacek@redhat.com>
3719         PR sanitizer/65280
3720         * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
3721         before trying to figure out whether we have a flexible array member.
3723 2015-03-06  Eric Botcazou  <ebotcazou@adacore.com>
3724             Jonathan Wakely  <jwakely.gcc@gmail.com>
3726         * c-ada-spec.c (dump_ada_double_name): Fix pasto.
3728 2015-03-05  Eric Botcazou  <ebotcazou@adacore.com>
3730         PR ada/65319
3731         * c-ada-spec.c (print_destructor): Remove obsolete code.
3733 2015-03-01  Eric Botcazou  <ebotcazou@adacore.com>
3735         * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
3736         (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
3737         DECL_TEMPLATE_RESULT emulations.
3738         (dump_ada_template)): Add guard for TYPE_METHODS.
3740 2015-02-27  Marek Polacek  <polacek@redhat.com>
3742         PR c/65040
3743         * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
3745 2015-02-27  Kai Tietz  <ktietz@redhat.com>
3747         PR c/35330
3748         * c-pragma.c (handle_pragma_weak): Do not try to create
3749         weak/alias of declarations not being function, or variable
3750         declarations.
3752 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
3754         PR libgomp/64625
3755         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
3756         Remove macros.
3757         (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
3759 2015-02-16  Marek Polacek  <polacek@redhat.com>
3761         PR c/65066
3762         * c-format.c (check_format_types): Handle null param.
3764 2015-02-13  Marek Polacek  <polacek@redhat.com>
3766         PR c/65040
3767         * c-format.c (check_format_types): Don't warn about different
3768         signedness if the original value is in the range of WANTED_TYPE.
3770 2015-02-12  Jason Merrill  <jason@redhat.com>
3772         PR c++/64956
3773         * c-opts.c (c_common_post_options): Change flag_abi_version from 0
3774         to the current highest version.
3775         * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
3777 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
3779         PR c/64824
3780         PR c/64868
3781         * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
3782         instead of RDIV_EXPR.  Use build_binary_op instead of
3783         build2_loc.
3785 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
3787         * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
3788         to pass input_location as first argument.
3790 2015-01-23  Tom de Vries  <tom@codesourcery.com>
3792         PR libgomp/64672
3793         * c.opt (fopenacc): Mark as LTO option.
3795 2015-01-23  Tom de Vries  <tom@codesourcery.com>
3797         PR libgomp/64707
3798         * c.opt (fopenmp): Mark as LTO option.
3800 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
3802         PR c/63307
3803         * cilk.c (fill_decls_vec): Only put decls into vector v.
3804         (compare_decls): Fix up formatting.
3806 2015-01-21  Igor Zamyatin  <igor.zamyatin@intel.com>
3808         PR c/63307
3809         * cilk.c: Include vec.h.
3810         (struct cilk_decls): New structure.
3811         (wrapper_parm_cb): Split this function to...
3812         (fill_decls_vec): ...this...
3813         (create_parm_list): ...and this.
3814         (compare_decls): New function.
3815         (for_local_cb): Remove.
3816         (wrapper_local_cb): Ditto.
3817         (build_wrapper_type): For now first traverse and fill vector of
3818         declarations then sort it and then deal with sorted vector.
3819         (cilk_outline): Ditto.
3820         (declare_one_free_variable): Ditto.
3822 2015-01-21  Jason Merrill  <jason@redhat.com>
3824         PR c++/64629
3825         * c-format.c (check_format_arg): Call decl_constant_value.
3827 2015-01-19  Martin Liska  <mliska@suse.cz>
3829         * c-common.c (handle_noicf_attribute): New function.
3831 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
3832             Bernd Schmidt  <bernds@codesourcery.com>
3833             James Norris  <jnorris@codesourcery.com>
3834             Cesar Philippidis  <cesar@codesourcery.com>
3835             Ilmir Usmanov  <i.usmanov@samsung.com>
3836             Jakub Jelinek  <jakub@redhat.com>
3838         * c.opt (fopenacc): New option.
3839         * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
3840         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
3841         New macros.
3842         * c-common.h (c_finish_oacc_wait): New prototype.
3843         * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
3844         (c_finish_oacc_wait): New function.
3845         * c-pragma.c (oacc_pragmas): New variable.
3846         (c_pp_lookup_pragma, init_pragma): Handle it.
3847         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
3848         PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
3849         PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
3850         PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
3851         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
3852         PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
3853         PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
3854         PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
3855         PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
3856         PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
3857         PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
3858         PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
3859         PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
3860         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
3861         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
3862         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
3863         PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
3864         PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
3865         PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
3866         PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
3867         PRAGMA_OACC_CLAUSE_WORKER.
3869 2015-01-14  Marcos Diaz  <marcos.diaz@tallertechnologies.com>
3871         * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
3872         for the new option fstack-protector_explicit.
3873         * c-common.c (c_common_attribute_table): Add stack_protect attribute.
3874         (handle_stack_protect_attribute): New function.
3876 2015-01-13  Martin Uecker  <uecker@eecs.berkeley.edu>
3878         * c.opt: New option -Warray-bounds=.
3880 2015-01-09  Michael Collison  <michael.collison@linaro.org>
3882         * array-notation-common.c: Include hash-set.h, machmode.h,
3883         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3884         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
3885         * c-ada-spec.c: Ditto.
3886         * c-cilkplus.c: Ditto.
3887         * c-common.c: Include input.h due to flattening of tree.h.
3888         Define macro GCC_C_COMMON_C.
3889         * c-common.h: Flatten tree.h header files into c-common.h.
3890         Remove include of tree-core.h.
3891         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
3892         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3893         fold-const.h, wide-int.h, and inchash.h due to
3894         flattening of tree.h.
3895         * c-dump.c: Ditto.
3896         * c-format.c: Flatten tree.h header files into c-common.h.
3897         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
3898         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3899         fold-const.h, wide-int.h, and inchash.h due to
3900         flattening of tree.h.
3901         * c-dump.c: Include hash-set.h, machmode.h,
3902         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3903         fold-const.h, wide-int.h, and inchash.h due to
3904         flattening of tree.h.
3905         * c-format.c: Include hash-set.h, machmode.h,
3906         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3907         fold-const.h, wide-int.h, inchash.h and real.h due to
3908         flattening of tree.h.
3909         * c-gimplify.c: Include hash-set.h, machmode.h,
3910         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3911         fold-const.h, wide-int.h, and inchash.h due to
3912         flattening of tree.h.
3913         * cilk.c: Ditto.
3914         * c-lex.c: Ditto.
3915         * c-omp.c: Ditto.
3916         * c-opts.c: Ditto.
3917         * c-pch.c: Ditto.
3918         * c-ppoutput.c: Ditto.
3919         * c-pragma.c: Ditto.
3920         * c-pretty-print.c: Ditto.
3921         * c-semantics.c: Ditto.
3922         * c-ubsan.c: Ditto.
3923         * stub-objc.c: Ditto.
3925 2015-01-08  Jason Merrill  <jason@redhat.com>
3927         * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
3928         do_ubsan_in_current_function.
3929         (ubsan_maybe_instrument_reference_or_call): Likewise.
3930         * c-ubsan.h: Declare it.
3932 2015-01-08  Mike Stump  <mikestump@comcast.net>
3934         * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
3936 2015-01-07  Marek Polacek  <polacek@redhat.com>
3938         PR c/64440
3939         * c-common.c (c_fully_fold_internal): Warn for division and modulo
3940         if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
3942 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
3944         PR c++/31397
3945         * c.opt (Wsuggest-override): New option.
3947 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
3949         Update copyright years.
3951 2015-01-05  Marek Polacek  <polacek@redhat.com>
3953         PR c/64423
3954         * c-common.c (warn_array_subscript_with_type_char): Add location_t
3955         parameter.  Use it.
3956         * c-common.h (warn_array_subscript_with_type_char): Update
3957         declaration.
3959 2014-12-20  Edward Smith-Rowland  <3dw4rd@verizon.net>
3961         * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
3962         Control macro with flag_sized_deallocation.
3964 2014-12-20  Martin Uecker  <uecker@eecs.berkeley.edu>
3966         * c.opt (Wdiscarded-array-qualifiers): New option.
3968 2014-12-19  Jakub Jelinek  <jakub@redhat.com>
3970         PR preprocessor/63831
3971         * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
3972         and __has_cpp_attribute here.
3973         * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
3974         c_common_has_attribute.
3975         * c-common.h (c_common_has_attribute): New prototype.
3976         * c-lex.c (init_c_lex): Set cb->has_attribute to
3977         c_common_has_attribute instead of cb_has_attribute.
3978         (get_token_no_padding): New function.
3979         (cb_has_attribute): Renamed to ...
3980         (c_common_has_attribute): ... this.  No longer static.  Use
3981         get_token_no_padding, require ()s, don't build TREE_LIST
3982         unnecessarily, fix up formatting, adjust diagnostics, call
3983         init_attributes.
3985 2014-12-15  Jason Merrill  <jason@redhat.com>
3987         * c.opt (-fsized-deallocation, -Wc++14-compat): New.
3988         (-Wsized-deallocation): New.
3989         * c-opts.c (c_common_post_options): -fsized-deallocation defaults
3990         to on in C++14 and up.
3992 2014-12-11  Jason Merrill  <jason@redhat.com>
3994         * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
3996         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
3997         we aren't complaining about VLAs.
3999 2014-12-06  Marek Polacek  <polacek@redhat.com>
4001         PR tree-optimization/64183
4002         * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
4003         shift-expression if it is integer_type_node.  Use types_compatible_p.
4005 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
4007         * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
4008         last argument from create_tmp_var_raw and create_tmp_var calls.
4009         * cilk.c (gimplify_cilk_spawn): Likewise.
4010         * c-omp.c (c_finish_omp_atomic): Likewise.
4012 2014-11-28  Marek Polacek  <polacek@redhat.com>
4014         * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
4015         instead of unsigned_type_node.
4017 2014-11-28  Marek Polacek  <polacek@redhat.com>
4019         PR c/63862
4020         * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
4021         to op1_utype.
4022         * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
4023         expression to unsigned_type_node.
4025 2014-11-20  Mark Wielaard  <mjw@redhat.com>
4027         PR debug/38757
4028         * c-opts.c (set_std_c89): Set lang_hooks.name.
4029         (set_std_c99): Likewise.
4030         (set_std_c11): Likewise.
4031         (set_std_cxx98): Likewise.
4032         (set_std_cxx11): Likewise.
4033         (set_std_cxx14): Likewise.
4034         (set_std_cxx1z): Likewise.
4036 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
4038         PR target/63764
4039         * c-common.h (convert_vector_to_pointer_for_subscript): Change
4040         return type to bool.
4041         * c-common.c: Include gimple-expr.h.
4042         (convert_vector_to_pointer_for_subscript): Change return type to
4043         bool.  If *vecp is not lvalue_p and has VECTOR_TYPE, return true
4044         and copy it into a TARGET_EXPR and use that instead of *vecp
4045         directly.
4047 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
4049         Merger of git branch "gimple-classes-v2-option-3".
4050         * ChangeLog.gimple-classes: New.
4051         * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
4052         from being just a vec<gimple> to a vec<gbind *>.
4054 2014-11-18  Jakub Jelinek  <jakub@redhat.com>
4056         PR sanitizer/63813
4057         * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
4058         argument to ptype, set type to TREE_TYPE (ptype).  Don't call
4059         get_pointer_alignment for non-pointers.  Use ptype, or if it is
4060         reference type, corresponding pointer type, as type of kind
4061         argument.
4062         (ubsan_maybe_instrument_reference,
4063         ubsan_maybe_instrument_member_call): Adjust callers.
4065 2014-11-15  Marek Polacek  <polacek@redhat.com>
4067         PR middle-end/63884
4068         * array-notation-common.c (is_sec_implicit_index_fn): Return false
4069         for NULL fndecl.
4070         (extract_array_notation_exprs): Return for NULL node.
4072 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
4074         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
4075         undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
4077 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
4079         PR c/59708
4080         * c-common.c (check_builtin_function_arguments): Handle
4081         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
4083 2014-11-10  Andi Kleen  <ak@linux.intel.com>
4085         PR c/60804
4086         * c-common.h (check_no_cilk): Declare.
4087         * cilk.c (get_error_location): New function.
4088         (check_no_cilk): Dito.
4090 2014-11-10  Andi Kleen  <ak@linux.intel.com>
4092         * cilk.c (recognize_spawn): Use expression location
4093         for error message.
4095 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
4097         * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
4099 2014-11-10  Edward Smith-Rowland  <3dw4rd@verizon.net>
4101         * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
4102         (__cpp_rtti, __cpp_exceptions): New macros for C++98;
4103         (__cpp_range_based_for, __cpp_initializer_lists,
4104         __cpp_delegating_constructors, __cpp_nsdmi,
4105         __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
4106         for C++11; (__cpp_attribute_deprecated): Remove in favor of
4107         __has_cpp_attribute.
4108         * c-lex.c (cb_has_attribute): New callback CPP function;
4109         (init_c_lex): Set has_attribute callback.
4111 2014-11-04  Richard Biener  <rguenther@suse.de>
4113         * c-common.c (shorten_compare): Do not shorten mixed
4114         DFP and non-DFP compares.
4116 2014-11-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
4118         * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
4119         * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
4120         Commentary and rearrangement of tests.
4121         * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
4122         Commentary and rearrangement of tests.
4123         * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
4124         * g++.dg/cpp1y/feat-cxx98.C: Commentary.
4126 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
4128         * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
4129         enum from machine_mode.
4131 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
4133         * c-common.c: Adjust include files.
4134         * c-gimplify.c: Ditto.
4135         * cilk.c: Ditto.
4136         * c-pragma.c: Ditto.
4137         * c-ubsan.c: Ditto.
4139 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
4141         * c-gimplify.c: Adjust include files.
4143 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4145         PR c++/53061
4146         * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
4147         c_common_initialize_diagnostics.
4148         * c-common.h: Likewise.
4150 2014-10-24  Marek Polacek  <polacek@redhat.com>
4152         PR c/56980
4153         * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
4154         print "struct"/"union"/"enum" for typedefed names.
4156 2014-10-23  Marek Polacek  <polacek@redhat.com>
4158         * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
4159         in unsigned type.
4161 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
4162             Yury Gribov  <y.gribov@samsung.com>
4164         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4165         ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
4166         instead of flag_sanitize_recover as bool flag.
4168 2014-10-21  Kirill Yukhin  <kirill.yukhin@intel.com>
4170         * cilk.c: Revert previous change.
4172 2014-10-20  Igor Zamyatin  <igor.zamyatin@intel.com>
4174         PR c/63307
4175         * cilk.c: Include vec.h.
4176         (struct cilk_decls): New structure.
4177         (wrapper_parm_cb): Split this function to...
4178         (fill_decls_vec): ...this...
4179         (create_parm_list): ...and this.
4180         (compare_decls): New function.
4181         (for_local_cb): Remove.
4182         (wrapper_local_cb): Ditto.
4183         (build_wrapper_type): For now first traverse and fill vector of
4184         declarations then sort it and then deal with sorted vector.
4185         (cilk_outline): Ditto.
4186         (declare_one_free_variable): Ditto.
4188 2014-10-17  Marek Polacek  <polacek@redhat.com>
4190         * c-opts.c (c_common_post_options): Set warn_implicit_int.
4191         * c.opt (Wimplicit-int): Initialize to -1.
4193 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
4195         * c-pragma.c: Adjust include files.
4196         * c-semantics.c: Likewise.
4198 2014-10-16  DJ Delorie  <dj@redhat.com>
4200         * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
4201         multiples of bytes.
4203 2014-10-14  Jason Merrill  <jason@redhat.com>
4205         PR c++/63455
4206         * c-common.h (CPP_PREPARSED_EXPR): New.
4207         (N_CP_TTYPES): Adjust.
4209 2014-10-15  Marek Polacek  <polacek@redhat.com>
4211         * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
4213 2014-10-14  DJ Delorie  <dj@redhat.com>
4215         * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
4216         types, not just __int128.
4217         * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
4218         types, not just __int128.
4219         (cpp_atomic_builtins): Round pointer sizes up.
4220         (type_suffix): Use type precision, not specific types.
4221         * c-common.c (c_common_reswords): Remove __int128 special case.
4222         (c_common_type_for_size): Check for all __intN types, not just
4223         __int128.
4224         (c_common_type_for_mode): Likewise.
4225         (c_common_signed_or_unsigned_type): Likewise.
4226         (c_build_bitfield_integer_type): Likewise.
4227         (c_common_nodes_and_builtins): Likewise.
4228         (keyword_begins_type_specifier): Likewise.
4229         * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
4230         __intN variants.
4232 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
4234         * c-common.c: Use hash_table instead of hashtab.
4236 2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>
4238         * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
4239         C++11 section.
4241 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
4243         PR c++/54427
4244         PR c++/57198
4245         PR c++/58845
4246         * c-common.c (warn_logical_operator): Punt for vectors.
4248 2014-10-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
4250         Implement SD-6: SG10 Feature Test Recommendations
4251         * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
4252         macros and the __has_header macro.
4254 2014-09-30  Jason Merrill  <jason@redhat.com>
4256         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
4257         RID_IS_TRIVIALLY_CONSTRUCTIBLE.
4258         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4260         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
4261         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4263         * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
4264         * c-common.c (c_common_reswords): Remove __is_convertible_to.
4266 2014-09-24  Marek Polacek  <polacek@redhat.com>
4268         PR c/61405
4269         PR c/53874
4270         * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
4272 2014-09-23  Andi Kleen  <ak@linux.intel.com>
4274         * c-common.c (handle_no_reorder_attribute): New function.
4275         (c_common_attribute_table): Add no_reorder attribute.
4277 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
4279         * c-cppbuiltin.c (c_cpp_builtins): Define
4280         __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
4281         modes.
4283 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
4285         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
4286         for supported floating-point modes.
4288 2014-09-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4290         * c.opt (Wpsabi): Use LangEnabledBy.
4291         * c-opts.c (c_common_handle_option): Do not handle here.
4293 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
4295         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
4296         macros for floating-point modes.
4298 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
4300         PR target/58757
4301         * c-cppbuiltin.c (builtin_define_float_constants): Correct
4302         __*_DENORM_MIN__ without denormals.
4304 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
4306         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4307         ubsan_instrument_vla, ubsan_instrument_return): Adjust
4308         ubsan_create_data callers.
4309         (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
4310         index is constant or BIT_AND_EXPR with constant mask and is
4311         small enough for the bound.
4312         * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
4313         ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
4315 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4317         * c.opt: Add CppReason to various flags.
4318         (Wdate-time): Re-sort.
4319         * c-common.c: Include c-common.h earlier.
4320         (struct reason_option_codes_t): Delete.
4321         (c_option_controlling_cpp_error): Prefix global type and struct
4322         with cpp_.
4324 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4326         * c.opt (Wnormalized): New.
4327         (Wnormalized=): Use Enum and Reject Negative.
4328         * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
4330 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
4332         * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
4333         digits of floating-point modes if -fbuilding-libgcc.
4335 2014-09-05  Joseph Myers  <joseph@codesourcery.com>
4337         * c-cppbuiltin.c (c_cpp_builtins): Also define
4338         __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
4339         __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
4340         __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
4341         __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
4342         __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
4343         __LIBGCC_STACK_GROWS_DOWNWARD__,
4344         __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
4345         __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
4346         __LIBGCC_DWARF_FRAME_REGISTERS__,
4347         __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
4348         __LIBGCC_STACK_POINTER_REGNUM__ and
4349         __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
4350         (builtin_define_with_value): Handle backslash-escaping in string
4351         macro values.
4353 2014-09-05  Richard Biener  <rguenther@suse.de>
4355         PR middle-end/63148
4356         * c-format.c (check_format_arg): Properly handle
4357         effectively signed POINTER_PLUS_EXPR offset.
4359 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4361         * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
4362         Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
4363         (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
4364         and Init.
4365         * c-opts.c (c_common_handle_option): Do not handle here.
4366         (sanitize_cpp_opts): Likewise.
4367         * c-common.c (struct reason_option_codes_t): Handle
4368         CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
4370 2014-09-03  Marek Polacek  <polacek@redhat.com>
4372         * c.opt (Wlogical-not-parentheses): Enable by -Wall.
4374 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
4375             Balaji V. Iyer  <balaji.v.iyer@intel.com>
4376             Igor Zamyatin  <igor.zamyatin@intel.com>
4378         * c-cilkplus.c (cilk_for_number_of_iterations): New function.
4379         * c-common.c (c_common_reswords): Added _Cilk_for.
4380         * c-common.h (enum rid): Added RID_CILK_FOR.
4381         (cilk_for_number_of_iterations): Add declaration.
4382         * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
4383         CILK_FOR.
4384         * c-pragma.c (init_pragma): Register "grainsize" pragma.
4385         * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
4387 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4389         * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
4390         Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
4391         Wundef): Use CPP, Var and Init.
4392         * c-opts.c (c_common_handle_option): Do not handle the above flags here.
4394 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4396         * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
4397         * c-opts.c (c_common_handle_option): Do not handle here.
4399 2014-08-25  Jason Merrill  <jason@redhat.com>
4401         * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
4402         -std=c++14 and -std=gnu++14, rather than the reverse.
4403         * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
4404         OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
4405         * c-common.h (cxx_dialect): Remove cxx1y.
4407 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
4409         * c-common.h (enum cxx_dialect): Add cxx14.
4410         * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
4411         * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
4412         cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
4414 2014-08-22  Jason Merrill  <jason@redhat.com>
4416         * c.opt (std=gnu++17): Fix alias.
4418 2014-08-22  Marek Polacek  <polacek@redhat.com>
4420         PR c++/62199
4421         * c-common.c (warn_logical_not_parentheses): Don't check LHS.  Don't
4422         check for vector types.  Drop LHS argument.
4423         * c-common.h (warn_logical_not_parentheses): Adjust.
4425 2014-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4427         * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
4428         (Wmultichar): Likewise.
4429         (Wdate-time): Use C-family languages instead of Common. Use CPP
4430         and Var.
4431         * c-opts.c (c_common_handle_option): Do not handle the above
4432         options here.
4433         (sanitize_cpp_opts): Likewise.
4435 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4437         PR fortran/44054
4438         * c-opts.c: Include tree-diagnostics.h.
4439         (c_diagnostic_finalizer): New.
4440         (c_common_initialize_diagnostics): Use it.
4442 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4444         PR preprocessor/51303
4445         * c-common.c (struct reason_option_codes_t option_codes):
4446         Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
4448 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4450         PR c/60975
4451         PR c/53063
4452         * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
4453         * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
4454         (c_common_post_options): Call init_global_opts_from_cpp.
4455         (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
4457 2014-08-19  Marek Polacek  <polacek@redhat.com>
4459         PR c++/62153
4460         * c-common.c (maybe_warn_bool_compare): New function.
4461         * c-common.h (maybe_warn_bool_compare): Declare.
4462         * c.opt (Wbool-compare): New option.
4464 2014-08-19  Marek Polacek  <polacek@redhat.com>
4466         * c.opt (Wc99-c11-compat): New option.
4468 2014-08-19  Marek Polacek  <polacek@redhat.com>
4470         * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
4471         to warn_c90_c99_compat.
4472         * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
4473         to -1.
4475 2014-08-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4476             Steven Bosscher  <steven@gcc.gnu.org>
4478         PR c/52952
4479         * c-format.c: Add extra_arg_loc and format_string_loc to struct
4480         format_check_results.
4481         (check_function_format): Use true and add comment for boolean
4482         argument.
4483         (finish_dollar_format_checking): Use explicit location when warning.
4484         (check_format_info): Likewise.
4485         (check_format_arg): Set extra_arg_loc and format_string_loc.
4486         (check_format_info_main): Use explicit location when warning.
4487         (check_format_types): Pass explicit location.
4488         (format_type_warning): Likewise.
4490 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4492         PR fortran/44054
4493         * c-format.c: Handle Fortran flags.
4495 2014-08-12  Igor Zamyatin  <igor.zamyatin@intel.com>
4497         PR other/61962
4498         * array-notation-common.c (find_rank): Added handling for other
4499         types of references.
4501 2014-08-10  Marek Polacek  <polacek@redhat.com>
4503         PR c/51849
4504         * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
4505         * c.opt (Wc90-c99-compat): Add option.
4507 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
4509         * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
4511 2014-08-03  Marek Polacek  <polacek@redhat.com>
4513         * c-common.c (check_case_value):  Add location_t parameter.  Use it.
4514         (c_add_case_label): Pass loc to check_case_value.
4516 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
4518         * cilk.c: Use hash_map instead of pointer_map.
4520 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
4522         * c-gimplify.c: Use hash_set instead of pointer_set.
4524 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
4526         PR middle-end/61455
4527         * array-notation-common.c (extract_array_notation_exprs): Handling
4528         of DECL_EXPR added.
4530 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
4532         * c-common.h (min_align_of_type): Removed prototype.
4533         * c-common.c (min_align_of_type): Removed.
4534         * c-ubsan.h (ubsan_maybe_instrument_reference,
4535         ubsan_maybe_instrument_member_call): New prototypes.
4536         * c-ubsan.c: Include stor-layout.h and builtins.h.
4537         (ubsan_maybe_instrument_reference_or_call,
4538         ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
4539         functions.
4541 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
4543         PR c++/60517
4544         * c.opt (-Wreturn-local-addr): Move to common.opt.
4546 2014-07-30  Jason Merrill  <jason@redhat.com>
4548         PR c++/61659
4549         PR c++/61687
4550         Revert:
4551         * c.opt (-fuse-all-virtuals): New.
4553 2014-07-30  Tom Tromey  <tromey@redhat.com>
4555         PR c/59855
4556         * c.opt (Wdesignated-init): New option.
4557         * c-common.c (c_common_attribute_table): Add "designated_init".
4558         (handle_designated_init): New function.
4560 2014-07-24  Marek Polacek  <polacek@redhat.com>
4562         PR c/57653
4563         * c-opts.c (c_finish_options): If -imacros is in effect, return.
4565 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
4567         PR preprocessor/60723 - missing system-ness marks for macro tokens
4568         * c-ppoutput.c (struct print::prev_was_system_token): New data
4569         member.
4570         (init_pp_output): Initialize it.
4571         (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
4572         (do_line_change): Return a flag saying if a line marker was
4573         emitted or not.
4574         (scan_translation_unit): Detect if the system-ness of the token we
4575         are about to emit is different from the one of the previously
4576         emitted token.  If so, emit a line marker.  Avoid emitting useless
4577         adjacent line markers.  Avoid emitting line markers for tokens
4578         originating from the expansion of built-in macros.
4579         (scan_translation_unit_directives_only): Adjust.
4581 2014-07-15  Marek Polacek  <polacek@redhat.com>
4583         * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
4584         TYPE_MAX_VALUE is NULL.
4586 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
4588         PR middle-end/61294
4589         * c.opt (Wmemset-transposed-args): New warning.
4591 2014-07-10  Jason Merrill  <jason@redhat.com>
4593         PR c++/61659
4594         PR c++/61687
4595         * c.opt (-fuse-all-virtuals): New.
4597 2014-07-09  Richard Biener  <rguenther@suse.de>
4599         PR c-family/61741
4600         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4601         using unsigned arithmetic if overflow does not wrap instead of
4602         if overflow is undefined.
4604 2014-07-06  Marek Polacek  <polacek@redhat.com>
4606         PR c/6940
4607         * c.opt (Wsizeof-array-argument): New option.
4609 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
4611         * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
4612         comments->count <= 1, as comments->entries might be NULL.
4614 2014-07-01  Marek Polacek  <polacek@redhat.com>
4616         * c.opt (Wint-conversion): New option.
4618 2014-07-01  Marek Polacek  <polacek@redhat.com>
4620         PR c/58286
4621         * c.opt (Wincompatible-pointer-types): New option.
4623 2014-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
4625         PR c++/51400
4626         * c-common.c (handle_noreturn_attribute, handle_const_attribute):
4627         Do not discard TYPE_QUALS of type.
4629 2014-06-26  Jason Merrill  <jason@redhat.com>
4631         * c-common.h (enum cxx_dialect): Add cxx1z.
4632         * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
4633         * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
4635 2014-06-26  Teresa Johnson  <tejohnson@google.com>
4637         * c-common.h (get_dump_info): Declare.
4638         * c-gimplify.c (c_genericize): Use saved dump files.
4639         * c-opts.c (c_common_parse_file): Begin and end dumps
4640         once around parsing invocation.
4641         (get_dump_info): New function.
4643 2014-06-23  Marek Polacek  <polacek@redhat.com>
4644             Andrew MacLeod  <amacleod@redhat.com>
4646         PR c/61553
4647         * c-common.c (get_atomic_generic_size): Don't segfault if the
4648         type doesn't have a size.
4650 2014-06-20  Marek Polacek  <polacek@redhat.com>
4652         * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
4653         (ubsan_walk_array_refs_r): New function.
4654         (c_genericize): Instrument array bounds.
4655         * c-ubsan.c: Include "internal-fn.h".
4656         (ubsan_instrument_division): Mark instrumented arrays as having
4657         side effects.  Adjust ubsan_type_descriptor call.
4658         (ubsan_instrument_shift): Likewise.
4659         (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
4660         (ubsan_instrument_bounds): New function.
4661         (ubsan_array_ref_instrumented_p): New function.
4662         (ubsan_maybe_instrument_array_ref): New function.
4663         * c-ubsan.h (ubsan_instrument_bounds): Declare.
4664         (ubsan_array_ref_instrumented_p): Declare.
4665         (ubsan_maybe_instrument_array_ref): Declare.
4667 2014-06-20  Hale Wang  <hale.wang@arm.com>
4669         PR lto/61123
4670         * c.opt (fshort-enums): Add to LTO.
4671         * c.opt (fshort-wchar): Likewise.
4673 2014-06-16  Marek Polacek  <polacek@redhat.com>
4675         PR c/60439
4676         * c.opt (Wswitch-bool): Add Var.
4678 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
4680         PR middle-end/61486
4681         * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
4682         #pragma omp target teams or
4683         #pragma omp {,target }teams distribute simd.
4685 2014-06-12  Jason Merrill  <jason@redhat.com>
4687         * c.opt (Wabi=, fabi-compat-version): New.
4688         * c-opts.c (c_common_handle_option): Handle -Wabi=.
4689         (c_common_post_options): Handle flag_abi_compat_version default.
4690         Disallow -fabi-compat-version=1.
4691         * c-common.h (abi_version_crosses): New.
4693 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
4695         * c-common.c (handle_section_attribute): Update handling for
4696         section names that are no longer trees.
4698 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
4700         PR fortran/60928
4701         * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
4702         (omp_pragmas): ... back here.
4704 2014-06-05  Marek Polacek  <polacek@redhat.com>
4706         PR c/49706
4707         * c-common.c (warn_logical_not_parentheses): New function.
4708         * c-common.h (warn_logical_not_parentheses): Declare.
4709         * c.opt (Wlogical-not-parentheses): New option.
4711 2014-06-04  Marek Polacek  <polacek@redhat.com>
4713         PR c/30020
4714         * c-common.c (check_case_bounds): Add location parameter.
4715         Use it.
4716         (c_add_case_label): Pass loc to check_case_bounds.
4718 2014-06-03  Marek Polacek  <polacek@redhat.com>
4720         PR c/60439
4721         * c.opt (Wswitch-bool): New option.
4723 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
4725         * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
4726         Remove prototypes.
4727         (record_types_used_by_current_var_decl): Move prototype to where
4728         it belongs.
4730         * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
4731         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
4732         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
4734 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
4736         * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
4737         * c-common.c (c_common_nodes_and_builtins): Don't initialize
4738         void_zero_node.
4739         * c-pretty-print.c (pp_c_void_constant): New function.
4740         (c_pretty_printer::constant, c_pretty_printer::primary_expression)
4741         (c_pretty_printer::expression): Handle VOID_CST.
4742         * cilk.c (extract_free_variables): Likewise.
4743         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
4744         (ubsan_instrument_vla): Use void_node instead of void_zero_node.
4746 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
4748         * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
4749         * c-pragma.c (push_alignment): Adjust.
4750         (handle_pragma_push_options): Likewise.
4752 2014-05-09  Marek Polacek  <polacek@redhat.com>
4754         PR c/50459
4755         * c-common.c (check_user_alignment): Return -1 if alignment is error
4756         node.
4757         (handle_aligned_attribute): Don't call default_conversion on
4758         FUNCTION_DECLs.
4759         (handle_vector_size_attribute): Likewise.
4760         (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
4761         (handle_sentinel_attribute): Call default_conversion and allow even
4762         integral types as an argument.
4764 2014-05-08  Marek Polacek  <polacek@redhat.com>
4766         PR c/61053
4767         * c-common.c (min_align_of_type): New function factored out from...
4768         (c_sizeof_or_alignof_type): ...here.
4769         * c-common.h (min_align_of_type): Declare.
4771 2014-05-08  Marek Polacek  <polacek@redhat.com>
4773         PR c/61077
4774         * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
4775         parameter type of main.
4777 2014-05-07  DJ Delorie  <dj@redhat.com>
4779         * c-cppbuiltin.c (print_bits_of_hex): New.
4780         (builtin_define_type_minmax): Print values using hex so as not to
4781         require a pre-computed list of string values.
4783 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
4784             Mike Stump  <mikestump@comcast.net>
4785             Richard Sandiford  <rdsandiford@googlemail.com>
4787         * c-ada-spec.c: Include wide-int.h.
4788         (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
4789         (dump_generic_ada_node): Use wide-int interfaces.
4790         * c-common.c: Include wide-int-print.h.
4791         (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
4792         (pointer_int_sum): Use wide-int interfaces.
4793         (c_common_nodes_and_builtins): Use make_int_cst.
4794         (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
4795         (handle_alloc_size_attribute): Use wide-int interfaces.
4796         (get_nonnull_operand): Likewise.
4797         * c-format.c (get_constant): Use tree_fits_uhwi_p.
4798         * c-lex.c: Include wide-int.h.
4799         (narrowest_unsigned_type): Take a widest_int rather than two
4800         HOST_WIDE_INTs.
4801         (narrowest_signed_type): Likewise.
4802         (interpret_integer): Update accordingly.  Use wide-int interfaces.
4803         (lex_charconst): Use wide-int interfaces.
4804         * c-pretty-print.c: Include wide-int.h.
4805         (pp_c_integer_constant): Use wide-int interfaces.
4806         * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
4807         INT_CST_LT_UNSIGNED.
4809 2014-05-06  Richard Biener  <rguenther@suse.de>
4811         * c-opts.c (c_common_post_options): For -freestanding,
4812         -fno-hosted and -fno-builtin disable pattern recognition
4813         if not enabled explicitely.
4815 2014-05-02  Marek Polacek  <polacek@redhat.com>
4817         * c.opt (Wsizeof-pointer-memaccess): Describe option.
4819 2014-05-01  Marek Polacek  <polacek@redhat.com>
4821         PR c/43245
4822         * c.opt (Wdiscarded-qualifiers): Add.
4824 2014-04-30  Marek Polacek  <polacek@redhat.com>
4826         * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs.  Perform
4827         INT_MIN / -1 sanitization only for integer types.
4829 2014-04-25  Marek Polacek  <polacek@redhat.com>
4831         PR c/18079
4832         * c-common.c (handle_noinline_attribute): Warn if the attribute
4833         conflicts with always_inline attribute.
4834         (handle_always_inline_attribute): Warn if the attribute conflicts
4835         with noinline attribute.
4837 2014-04-25  Marek Polacek  <polacek@redhat.com>
4839         PR c/60156
4840         * c-common.c (check_main_parameter_types): Warn about variadic main.
4842 2014-04-24  Mike Stump  <mikestump@comcast.net>
4844         * c.opt (Wshadow-ivar): Default to on.
4846 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
4848         * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
4850 2014-04-23  Marek Polacek  <polacek@redhat.com>
4852         * c-common.c (handle_tm_wrap_attribute): Tweak error message.
4854 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
4856         PR sanitizer/60275
4857         * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
4858         if flag_sanitize_undefined_trap_on_error.
4859         (ubsan_instrument_division, ubsan_instrument_shift,
4860         ubsan_instrument_vla): Likewise.  Use __ubsan_handle_*_abort ()
4861         if !flag_sanitize_recover.
4863 2014-04-22  Marc Glisse  <marc.glisse@inria.fr>
4865         PR libstdc++/43622
4866         * c-common.c (registered_builtin_types): Make non-static.
4867         * c-common.h (registered_builtin_types): Declare.
4869 2014-04-14  Richard Biener  <rguenther@suse.de>
4870         Marc Glisse  <marc.glisse@inria.fr>
4872         PR c/60819
4873         * c-common.c (convert_vector_to_pointer_for_subscript): Properly
4874         apply may-alias the scalar pointer type when applicable.
4876 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
4878         PR middle-end/60467
4879         * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
4880         as possible argument for Cilk_spawn.
4882 2014-04-11  Tobias Burnus  <burnus@net-b.de>
4884         PR c/60194
4885         * c.opt (Wformat-signedness): Add
4886         * c-format.c(check_format_types): Use it.
4888 2014-04-11  Jason Merrill  <jason@redhat.com>
4890         PR c++/57926
4891         * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
4892         default_conversion for an array argument.
4894 2014-04-08  Marek Polacek  <polacek@redhat.com>
4896         PR sanitizer/60745
4897         * c-ubsan.c: Include asan.h.
4898         (ubsan_instrument_return): Call initialize_sanitizer_builtins.
4900 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
4902         * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
4904 2014-04-02  Marek Polacek  <polacek@redhat.com>
4906         * c-common.h (c_expand_expr): Remove declaration.
4908 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
4910         PR c++/60689
4911         * c-common.c (add_atomic_size_parameter): When creating new
4912         params vector, push the size argument first.
4914 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
4916         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4917         ubsan_instrument_vla, ubsan_instrument_return): Adjust
4918         ubsan_create_data callers.
4920 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
4922         PR debug/60603
4923         * c-opts.c (c_finish_options): Restore cb_file_change call to
4924         <built-in>.
4926 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
4928         PR middle-end/36282
4929         * c-pragma.c (apply_pragma_weak): Only look at
4930         TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
4931         DECL_ASSEMBLER_NAME_SET_P (decl).
4932         (maybe_apply_pending_pragma_weaks): Exit early if
4933         vec_safe_is_empty (pending_weaks) rather than only when
4934         !pending_weaks.
4935         (maybe_apply_pragma_weak): Likewise.  If !DECL_ASSEMBLER_NAME_SET_P,
4936         set assembler name back to NULL afterwards.
4938 2014-03-11  Jason Merrill  <jason@redhat.com>
4940         * c.opt: Add -std=gnu++14.
4942 2014-03-11  Ian Bolton  <ian.bolton@arm.com>
4944         * c-opts.c (c_common_post_options): Don't override
4945         -ffp-contract=fast if unsafe-math-optimizations is on.
4947 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
4949         * c.opt: Enable LTO FE for fshort-double.
4951 2014-03-07  Jason Merrill  <jason@redhat.com>
4953         * c.opt: Add -std=c++14.
4955 2014-03-06  Marek Polacek  <polacek@redhat.com>
4957         PR c/60197
4958         * cilk.c (contains_cilk_spawn_stmt): New function.
4959         (contains_cilk_spawn_stmt_walker): Likewise.
4960         (recognize_spawn): Give error on invalid use of _Cilk_spawn.
4961         * c-common.h (contains_cilk_spawn_stmt): Add declaration.
4963 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
4965         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
4966         (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
4967         even when flag_preprocess_only.
4969 2014-02-26  Jason Merrill  <jason@redhat.com>
4971         PR c++/59231
4972         PR c++/11586
4973         * c-common.c (shorten_compare): Don't check
4974         c_inhibit_evaluation_warnings.
4976 2014-02-19  Jakub Jelinek  <jakub@redhat.com>
4978         PR c/37743
4979         * c-common.c (c_common_nodes_and_builtins): When initializing
4980         c_uint{16,32,64}_type_node, also set corresponding
4981         uint{16,32,64}_type_node to the same value.
4983         PR c++/60267
4984         * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
4985         for PRAGMA_IVDEP if flag_preprocess_only.
4987 2014-02-12  Jakub Jelinek  <jakub@redhat.com>
4989         PR c/60101
4990         * c-common.c (merge_tlist): If copy is true, call new_tlist,
4991         if false, add ADD itself, rather than vice versa.
4992         (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
4993         copy.  For SAVE_EXPR, only call merge_tlist once.
4995 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
4997         PR middle-end/60092
4998         * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
4999         and tree_to_uhwi.
5000         (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
5001         functions.
5002         (c_common_attribute_table): Add alloc_align and assume_aligned
5003         attributes.
5005 2014-02-06  Marek Polacek  <polacek@redhat.com>
5007         PR c/60087
5008         * c-common.c (warn_for_sign_compare): Call warning_at with location
5009         instead of warning.
5011 2014-02-05  Marek Polacek  <polacek@redhat.com>
5013         PR c/53123
5014         * c-omp.c (c_finish_omp_atomic): Remove unreachable return
5015         statement.
5017 2014-02-04  Marek Polacek  <polacek@redhat.com>
5019         PR c/60036
5020         * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
5021         SAVE_EXPR.
5023 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
5025         PR c++/53017
5026         PR c++/59211
5027         * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
5028         handle_vector_size_attribute, handle_nonnull_attribute): Call
5029         default_conversion on the attribute argument.
5030         (handle_nonnull_attribute): Increment the argument number.
5032 2014-01-31  Marek Polacek  <polacek@redhat.com>
5034         PR c/59963
5035         * c-common.c (add_atomic_size_parameter): Pass vNULL to
5036         build_function_call_vec.
5037         (resolve_overloaded_builtin): Likewise.
5038         * c-common.h (build_function_call_vec): Adjust declaration.
5040 2014-01-30  Marek Polacek  <polacek@redhat.com>
5042         PR c/59940
5043         * c-common.h (unsafe_conversion_p): Adjust declaration.
5044         (warnings_for_convert_and_check): Likewise.
5045         (convert_and_check): Likewise.
5046         * c-common.c (unsafe_conversion_p): Add location parameter.  Call
5047         expansion_point_location_if_in_system_header on it.
5048         (warnings_for_convert_and_check): Add location parameter.  Call
5049         expansion_point_location_if_in_system_header on it.  Use it.
5050         (convert_and_check): Add location parameter.  Use it.
5051         (conversion_warning): Likewise.
5052         (c_add_case_label): Adjust convert_and_check calls.
5053         (scalar_to_vector): Adjust unsafe_conversion_p calls.
5055 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5057         * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
5058         flag_cilkplus.
5059         * c-pragma.c (init_pragma): Likewise.
5060         * c.opt: Likewise.
5062 2014-01-23  Marek Polacek  <polacek@redhat.com>
5064         PR c/59846
5065         * c-common.c (shorten_compare): Add location_t parameter.
5066         * c-common.h (shorten_binary_op): Adjust declaration.
5068 2014-01-23  Marek Polacek  <polacek@redhat.com>
5070         PR c/58346
5071         * c-common.c (pointer_to_zero_sized_aggr_p): New function.
5072         * c-common.h: Declare it.
5074 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
5076         * c-ada-spec.h (dump_ada_specs): Revert prototype change.
5077         * c-ada-spec.c (dump_ads): Likewise.
5078         (cpp_check): Likewise.
5079         (dump_ada_specs): Likewise.
5081 2014-01-15  Laurent Alfonsi  <laurent.alfonsi@st.com>
5083         PR c++/49718
5084         * c-common.c (handle_no_instrument_function_attribute): Allow
5085         no_instrument_function attribute in class member
5086         definition/declaration.
5088 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
5090         PR c/58943
5091         * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
5092         build_modify_expr with non-NOP_EXPR opcode.  Handle return from it
5093         being COMPOUND_EXPR.
5094         (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
5095         operand a SAVE_EXPR and second MODIFY_EXPR.
5097 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
5099         PR target/58115
5100         * c-pch.c (c_common_write_pch): Call
5101         prepare_target_option_nodes_for_pch.
5103 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
5105         Update copyright years
5107 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
5109         * array-notation-common.c, c-cilkplus.c: Use the standard form for
5110         the copyright notice.
5112 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
5114         * c-ada-spec.c (print_constructor): New function.
5115         (print_destructor): Retrieve the origin of the destructor.
5116         (print_ada_declaration): Revamp handling of constructors/destructors.
5118 2013-12-23  Stuart Hastings  <stuart@apple.com>
5119             Bill Maddox  <maddox@google.com>
5120             Jason Merrill  <jason@redhat.com>
5122         * c.opt: Add -fdeclone-ctor-dtor.
5123         * c-opts.c (c_common_post_options): Default to on iff -Os.
5125 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5127         * c-common.c (c_common_attribute_table): Added "cilk simd function"
5128         attribute.
5129         * c-pragma.h (enum pragma_cilk_clause): Remove.
5130         (enum pragma_omp_clause):  Added the following fields:
5131         PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
5132         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
5133         PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
5134         PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
5135         PRAGMA_CILK_CLAUSE_UNIFORM.
5138 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5140         * cilk.c (cilk_outline): Made this function non-static.
5141         (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
5142         (create_cilk_wrapper): Added a new parameter: a function pointer.
5143         (c_install_body_w_frame_cleanup): Remove
5144         (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
5145         * c-common.h (cilk_outline): New prototype.
5146         (gimplify_cilk_spawn): Removed two parameters.
5147         (cilk_install_body_with_frame_cleanup): New prototype.
5148         * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
5149         CILK_SPAWN_STMT case.
5151 2013-12-11  Bernd Schmidt  <bernds@codesourcery.com>
5153         * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
5155         * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
5156         (int_array_type_node): Remove.
5157         * c-common.c (c_common_nodes_and_builtins): Don't build it.
5159 2013-12-05  Marek Polacek  <polacek@redhat.com>
5161         PR c/52023
5162         * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
5163         [ADJUST_FIELD_ALIGN].
5165 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
5167         PR c/52023
5168         * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
5169         and check field alignment if set.
5170         * c-common.h (c_sizeof_or_alignof_type): Update prototype.
5171         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
5173 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
5174             Marek Polacek  <polacek@redhat.com>
5176         * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
5177         sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
5179 2013-11-29   H.J. Lu  <hongjiu.lu@intel.com>
5181         PR c/59309
5182         * cilk.c (gimplify_cilk_spawn): Properly handle function without
5183         arguments.
5185 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
5187         PR c/59280
5188         * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
5189         goto invalid.  If it is error_mark_node, don't issue further
5190         diagnostics.
5192 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
5194         * c.opt (Wopenmp-simd): New.
5196 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
5198         * c-ubsan.h (ubsan_instrument_return): New prototype.
5199         * c-ubsan.c (ubsan_instrument_return): New function.
5201 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
5203         * c-common.c: Add required include files from gimple.h.
5204         * c-gimplify.c: Likewise
5205         * cilk.c: Likewise
5207 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
5209         * c-common.c (unsafe_conversion_p): Remove use of
5210         EXPR_LOC_OR_HERE macro.
5211         (conversion_warning): Likewise.
5212         (warnings_for_convert_and_check): Likewise.
5213         (warn_for_collisions_1): Likewise.
5214         (shorten_compare): Likewise, and remove use of in_system_header
5215         macro, using the location from the former.
5216         * c-lex.c (dump_one_header): Remove use of input_filename macro.
5217         (cb_def_pragma): Remove use of in_system_header macro.
5218         (lex_string): Likewise.
5219         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5221 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
5222             Mike Stump  <mikestump@comcast.net>
5223             Richard Sandiford  <rdsandiford@googlemail.com>
5225         * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
5226         instead of TREE_INT_CST_LOW, in cases where there is a protecting
5227         tree_fits_shwi_p or tree_fits_uhwi_p.
5228         (dump_generic_ada_node): Likewise.
5229         * c-format.c (check_format_arg): Likewise.
5230         * c-pretty-print.c (pp_c_integer_constant): Likewise.
5232 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
5234         * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
5236 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
5238         PR c/53001
5239         * c-common.c (unsafe_conversion_p): Make this function
5240         return an enumeration with more detail.
5241         (conversion_warning): Use the new return type of
5242         unsafe_conversion_p to separately warn either about conversions
5243         that lower floating point number precision or about the other
5244         kinds of conversions.
5245         * c-common.h (enum conversion_safety): New enumeration.
5246         (unsafe_conversion_p): switching return type to
5247         conversion_safety enumeration.
5248         * c.opt: Adding new warning -Wfloat-conversion and
5249         enabling it with -Wconversion.
5251 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
5253         * c-opts.c: Include plugin.h.
5254         (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
5256 2013-11-19  Marek Polacek  <polacek@redhat.com>
5258         * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
5259         call.
5260         (ubsan_instrument_shift): Likewise.
5261         (ubsan_instrument_vla): Likewise.
5263 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5265         * c-common.c (convert_vector_to_pointer_for_subscript): Remove
5266         cast to unsigned type.
5268 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5270         * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
5271         tree_low_cst.
5272         (complete_array_type): Update comment to refer to tree_to_[su]hwi
5273         rather than tree_low_cst.
5275 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5277         * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
5278         tree_to_uhwi throughout.
5280 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5282         * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
5283         tree_low_cst (..., 0) with tree_to_shwi throughout.
5285 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5287         * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
5288         host_integerp (..., 1) with tree_fits_uhwi_p throughout.
5290 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5292         * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
5293         host_integerp (..., 0) with tree_fits_shwi_p throughout.
5295 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
5297         * c-cilkplus.c: New file.
5298         * c-common.c (readonly_error): Add location argument.
5299         * c-common.h (readonly_error): Same.
5300         (c_finish_cilk_clauses): Protoize.
5301         (c_check_cilk_loop): Same.
5302         c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
5303         Do not fail on error_mark_node.
5304         Abstract increment canonicalization to here...
5305         (c_omp_for_incr_canonicalize_ptr): New.
5306         c-pragma.c (init_pragma): Register "simd" pragma.
5307         c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
5308         (enum pragma_cilk_clause): New.
5310 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
5312         * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
5313         wchar_type and host_integerp checks.
5315 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
5317         * c-common.c: Likewise.
5318         * c-gimplify.c: Likewise.
5319         * cilk.c: Likewise.
5321 2013-11-14  Diego Novillo  <dnovillo@google.com>
5323         * c-common.c: Include fold-const.h.
5324         Include stor-layout.h.
5325         Include calls.h.
5326         Include stringpool.h.
5327         Include attribs.h.
5328         Include varasm.h.
5329         Include trans-mem.h.
5330         * c-cppbuiltin.c: Include stor-layout.h.
5331         Include stringpool.h.
5332         * c-format.c: Include stringpool.h.
5333         * c-lex.c: Include stringpool.h.
5334         Include stor-layout.h.
5335         * c-pragma.c: Include stringpool.h.
5336         Include attribs.h.
5337         Include varasm.h.
5338         Include gcc-symtab.h.
5339         * c-pretty-print.c: Include stor-layout.h.
5340         Include attribs.h.
5341         * cilk.c: Include stringpool.h.
5342         Include calls.h.
5344 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
5346         * c-common.h (enum rid): Add RID_AUTO_TYPE.
5347         * c-common.c (c_common_reswords): Add __auto_type.
5348         (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
5350 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
5352         * c-common.c: Include gimplify.h.
5353         * c-gimplify.c: Likewise.
5354         * cilk.c: Likewise.
5355         * c-omp.c: Include gimple-expr.h instead of gimple.h.
5356         * c-ubsan.c: Don't include gimple.h.
5358 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
5360         * c-common.c (c_common_reswords): Add _Thread_local.
5362 2013-11-09  Joseph Myers  <joseph@codesourcery.com>
5364         * c-common.c (atomic_size_supported_p): New function.
5365         (resolve_overloaded_atomic_exchange)
5366         (resolve_overloaded_atomic_compare_exchange)
5367         (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
5368         Use it instead of comparing size with a local list of sizes.
5370 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
5371             Joseph Myers  <joseph@codesourcery.com>
5373         * c-common.h (enum rid): Add RID_ATOMIC.
5374         * c-common.c (c_common_reswords): Add _Atomic.
5375         (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
5376         (keyword_is_type_qualifier): Accept RID_ATOMIC.
5377         * c-format.c (check_format_types): Check for extra _Atomic
5378         qualifiers in format argument.
5379         * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
5380         (pp_c_type_qualifier_list): Mention _Atomic in comment.
5382 2013-11-06  Tobias Burnus  <burnus@net-b.de>
5384         * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
5386 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
5388         * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
5389         standards modes.
5390         * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
5391         to mean lack of IEEE 754 support.
5393 2013-11-05  Tobias Burnus  <burnus@net-b.de>
5395         * c.opt (-Wdate-time): New option
5396         * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
5398 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
5400         * c-cppbuiltin.c (cpp_iec_559_value): Test
5401         flag_excess_precision_cmdline not flag_excess_precision.
5403 2013-11-05  Tobias Burnus  <burnus@net-b.de>
5405         * c.opt (fopenmp-simd): New option.
5406         * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
5407         (omp_pragmas): ... this new struct.
5408         (c_pp_lookup_pragma): Also walk omp_pragmas.
5409         (init_pragma): Init pragmas for -fopenmp-simd.
5411 2013-11-04  Marek Polacek  <polacek@redhat.com>
5413         PR c++/58979
5414         * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
5416 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
5418         * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
5419         New functions.
5420         (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
5422 2013-11-04  Eric Botcazou  <ebotcazou@adacore.com>
5424         * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
5425         (dump_ada_specs): Adjust prototype of second callback.
5426         * c-ada-spec.c (cpp_check): New global variable.
5427         (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
5428         (print_generic_ada_decl): Likewise.
5429         (has_static_fields): Change return type to bool and add guard.
5430         (has_nontrivial_methods): New predicate.
5431         (is_tagged_type): Change return type to bool.
5432         (separate_class_package): Call has_nontrivial_methods.
5433         (pp_ada_tree_identifier): Minor tweaks.
5434         (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
5435         (dump_ada_array_domains): Likewise.
5436         (dump_ada_array_type): Likewise.
5437         (dump_template_types): Remove cpp_check parameter and do not pass it to
5438         dump_generic_ada_node.
5439         (dump_ada_template): Likewise.
5440         (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
5441         recursively.
5442         (print_ada_methods): Change return type to integer.  Remove cpp_check
5443         parameter and do not pass it down.
5444         (dump_nested_types): Remove cpp_check parameter and do not pass it to
5445         dump_generic_ada_node.
5446         (print_ada_declaration): Likewise.  Test RECORD_OR_UNION_TYPE_P before
5447         accessing methods.
5448         (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
5449         down.  Use has_nontrivial_methods to recognize C++ classes.  Use return
5450         value of print_ada_methods.
5451         (dump_ads): Rename cpp_check parameter to check and adjust prototype.
5452         Set cpp_check to it before invoking dump_ada_nodes.
5453         (dump_ada_specs): Likewise.
5455 2013-11-03  Marek Polacek  <polacek@redhat.com>
5457         * c-ubsan.c: Don't include hash-table.h.
5458         (ubsan_instrument_vla): New function.
5459         * c-ubsan.h: Declare it.
5461 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
5463         Automated part of renaming of symtab_node_base to symtab_node.
5465         Patch autogenerated by rename_symtab.py from
5466         https://github.com/davidmalcolm/gcc-refactoring-scripts
5467         revision 58bb219cc090b2f4516a9297d868c245495ee622
5469         * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
5470         symtab_node_base to symtab_node.
5472 2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
5474         Implement C++14 digit separators.
5475         * c-lex.c (interpret_float): Remove digit separators from scratch string
5476         before building real literal.
5478 2013-10-30  Jakub Jelinek  <jakub@redhat.com>
5480         * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
5482 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5484         * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
5485         fields.
5486         (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
5487         enabled.
5488         * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
5489         (insert_cilk_frame): New prototype.
5490         (cilk_init_builtins): Likewise.
5491         (gimplify_cilk_spawn): Likewise.
5492         (c_cilk_install_body_w_frame_cleanup): Likewise.
5493         (cilk_detect_spawn_and_unwrap): Likewise.
5494         (cilk_set_spawn_marker): Likewise.
5495         (build_cilk_sync): Likewise.
5496         (build_cilk_spawn): Likewise.
5497         * cilk.c: New file.
5499 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
5501         Patch autogenerated by refactor_symtab.py from
5502         https://github.com/davidmalcolm/gcc-refactoring-scripts
5503         revision 58bb219cc090b2f4516a9297d868c245495ee622
5505         * c-gimplify.c (c_genericize): Update for conversion of symtab types
5506         to a true class hierarchy.
5507         * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
5509 2013-10-27  Richard Sandiford  <rdsandiford@googlemail.com>
5511         * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
5513 2013-10-26  Jeff Law  <law@redhat.com>
5515         * c-common.c (c_define_builtins): Remove mudflap support.
5516         * c.opt: Ignore and warn for mudflap options.
5518 2013-10-24  Tobias Burnus  <burnus@net-b.de>
5520         PR other/33426
5521         * c-pragma.c (init_pragma) Add #pragma ivdep handling.
5522         * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
5524 2013-10-23  Jason Merrill  <jason@redhat.com>
5526         * c-format.c (gcc_cxxdiag_char_table): Add %X.
5528 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
5530         * c-common.h (omp_clause_mask::operator !=): New method.
5531         * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
5532         instead of if (mask & something) tests everywhere.
5534         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
5535         201307 instead of 201107.
5536         * c-common.c (DEF_FUNCTION_TYPE_8): Define.
5537         (c_common_attribute_table): Add "omp declare target" and
5538         "omp declare simd" attributes.
5539         (handle_omp_declare_target_attribute,
5540         handle_omp_declare_simd_attribute): New functions.
5541         * c-omp.c: Include c-pragma.h.
5542         (c_finish_omp_taskgroup): New function.
5543         (c_finish_omp_atomic): Add swapped argument, if true,
5544         build the operation first with rhs, lhs arguments and use NOP_EXPR
5545         build_modify_expr.
5546         (c_finish_omp_for): Add code argument, pass it down to make_code.
5547         (c_omp_split_clauses): New function.
5548         (c_split_parallel_clauses): Removed.
5549         (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
5550         c_omp_declare_simd_clauses_to_decls): New functions.
5551         * c-common.h (omp_clause_mask): New type.
5552         (OMP_CLAUSE_MASK_1): Define.
5553         (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
5554         omp_clause_mask::operator |=, omp_clause_mask::operator ~,
5555         omp_clause_mask::operator |, omp_clause_mask::operator &,
5556         omp_clause_mask::operator <<, omp_clause_mask::operator >>,
5557         omp_clause_mask::operator ==): New methods.
5558         (enum c_omp_clause_split): New.
5559         (c_finish_omp_taskgroup): New prototype.
5560         (c_finish_omp_atomic): Add swapped argument.
5561         (c_finish_omp_for): Add code argument.
5562         (c_omp_split_clauses): New prototype.
5563         (c_split_parallel_clauses): Removed.
5564         (c_omp_declare_simd_clauses_to_numbers,
5565         c_omp_declare_simd_clauses_to_decls): New prototypes.
5566         * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
5567         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
5568         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
5569         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
5570         PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
5571         Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
5572         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
5573         PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
5574         PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
5575         PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
5576         PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
5577         PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
5578         PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
5579         PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
5580         PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
5581         PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
5582         PRAGMA_OMP_CLAUSE_UNIFORM.
5584 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
5586         PR tree-optimization/20318
5587         * c-common.c (handle_returns_nonnull_attribute): New function.
5588         (c_common_attribute_table): Add returns_nonnull.
5590 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
5592         PR c++/19476
5593         * c.opt (fcheck-new): Move to common.opt.
5595 2013-09-25  Marek Polacek  <polacek@redhat.com>
5596             Jakub Jelinek  <jakub@redhat.com>
5598         PR sanitizer/58413
5599         * c-ubsan.c (ubsan_instrument_shift): Don't instrument
5600         an expression if we can prove it is correct.
5601         (ubsan_instrument_division): Likewise.  Remove unnecessary
5602         check.
5604 2013-09-18  Marek Polacek  <polacek@redhat.com>
5606         PR sanitizer/58411
5607         * c-common.c (handle_no_sanitize_undefined_attribute): New function.
5608         Declare it.
5609         (struct attribute_spec c_common_att): Add no_sanitize_undefined.
5611 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
5613         PR target/48094
5614         * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
5615         fobjc-gc, freplace-objc-classes): Accept for LTO.
5617 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
5619         * c-target.def: New hook
5621 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
5623         PR c++/43452
5624         * c.opt (Wdelete-incomplete): Add.
5626 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
5628         * c-common.c (same_scalar_type_ignoring_signedness): Delete.
5629         (vector_types_compatible_elements_p): New function.
5630         * c-common.h: (same_scalar_type_ignoring_signedness): Delete
5631         declaration.
5632         (vector_types_compatible_elements_p): Declare.
5634 2013-09-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5636         * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
5637         a virtual member function.
5638         (pp_simple_type_specifier): Remove.
5639         (pp_c_type_specifier): Likewise.
5640         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
5641         Rename from pp_c_type_specifier.  Adjust.
5642         (c_pretty_printer::c_pretty_printer): Do not assign to
5643         simple_type_specifier.
5645 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5647         * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
5648         member function.
5649         (c_pretty_printer::storage_class_specifier): Likewise.
5650         (c_pretty_printer::initializer): Likewise.
5651         (pp_declaration): Remove.
5652         (pp_declaration_specifiers): Likewise.
5653         (pp_abstract_declarator): Likewise.
5654         (pp_declarator): Likewise.
5655         (pp_type_id): Likewise.
5656         (pp_statement): Likewise.
5657         (pp_constant): Likewise.
5658         (pp_id_expression): Likewise.
5659         (pp_primary_expression): Likewise.
5660         (pp_unary_expression): Likewise.
5661         (pp_multiplicative_expression): Likewise.
5662         (pp_conditional_expression): Likewise.
5663         (pp_assignment_expression): Likewise.
5664         (pp_expression): Likewise.
5665         (pp_c_type_id): Likewise.
5666         (pp_c_storage_class_specifier): Likewise.
5667         * c-pretty-print.c (pp_c_type_cast): Tidy.
5668         (pp_c_pointer): Likewise.
5669         (pp_c_type_specifier): Likewise.
5670         (pp_c_parameter_type_list): Likewise.
5671         (pp_c_function_definition): Likewise.
5672         (pp_c_init_declarator): Likewise.
5673         (pp_c_initializer_list): Likewise.
5674         (pp_c_constructor_elts): Likewise.
5675         (c_pretty_printer::direct_abstract_declarator): Likewise.
5676         (c_pretty_printer::declaration_specifiers): Likewise.
5677         (c_pretty_printer::primary_expression): Likewise.
5678         (c_pretty_printer::postfix_expression): Likewise.
5679         (c_pretty_printer::type_id): Rename from pp_c_type_id.
5680         (c_pretty_printer::storage_class_specifier): Rename from
5681         pp_c_storage_class_specifier.
5682         (c_pretty_printer::initializer): Rename from pp_c_initializer.
5683         (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
5684         storage_class_specifier, initializer, offset_list, flags.
5686 2013-08-30  Marek Polacek  <polacek@redhat.com>
5688         * c-ubsan.c: New file.
5689         * c-ubsan.h: New file.
5691 2013-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5693         * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
5694         member function.
5695         (c_pretty_printer::declaration_specifiers): Likewise.
5696         (c_pretty_printer::declarator): Likewise.
5697         (c_pretty_printer::abstract_declarator): Likewise.
5698         (c_pretty_printer::direct_abstract_declarator): Likewise.
5699         (c_pretty_printer::direct_declarator): Likewise.
5700         (c_pretty_printer::function_specifier): Likewise.
5701         (pp_declaration): Adjust.
5702         (pp_declaration_specifiers): Likewise.
5703         (pp_abstract_declarator): Likewise.
5704         (pp_direct_declarator): Likewise.
5705         (pp_function_specifier): Likewise.
5706         (pp_direct_abstract_declarator): Remove as unused.
5707         (pp_c_declaration): Remove.
5708         (pp_c_declaration_specifiers): Likewise.
5709         (pp_c_declarator): Likewise.
5710         (pp_c_direct_declarator): Likewise.
5711         (pp_c_function_specifier): Likewise.
5712         (pp_c_direct_abstract_declarator): Likewise.
5713         * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
5714         from pp_c_abstract_declarator.  Adjust.
5715         (c_pretty_printer::direct_abstract_declarator):  Rename from
5716         pp_c_direct_abstract_declarator.  Adjust.
5717         (c_pretty_printer::function_specifier): Rename from
5718         pp_c_function_specifier.  Adjust.
5719         (c_pretty_printer::declaration_specifiers): Rename from
5720         pp_c_declaration_specifiers.  Adjust.
5721         (c_pretty_printer::direct_declarator): Rename from
5722         pp_c_direct_declarator.  Adjust.
5723         (c_pretty_printer::declarator): Rename from pp_c_declarator.  Adjust.
5724         (c_pretty_printer::declaration): Rename from pp_c_declaration.  Adjust.
5725         (c_pretty_printer::c_pretty_printer): Do not assign to
5726         declaration, declaration_specifiers, declarator,
5727         direct_declarator, direct_abstract_declarator, function_specifier.
5729 2013-08-26  Gabriel Dos Reis  <gdre@integrable-solutions.net>
5731         * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
5732         virtual member function.
5733         (c_pretty_printer::multiplicative_expression): Likewise.
5734         (c_pretty_printer::conditional_expression): Likewise.
5735         (c_pretty_printer::assignment_expression): Likewise.
5736         (c_pretty_printer::expression): Likewise.
5737         (pp_unary_expression): Adjust.
5738         (pp_multiplicative_expression): Likewise.
5739         (pp_assignment_expression): Likewise.
5740         (pp_conditional_expression): Likewise.
5741         (pp_expression): Likewise.
5742         * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
5743         from pp_c_unary_expression.  Adjust.
5744         (c_pretty_printer::multiplicative_expression): Rename from
5745         pp_c_multiplicative_expression.  Adjust.
5746         (c_pretty_printer::conditional_expression): Rename from
5747         pp_c_conditional_expression.  Adjust.
5748         (c_pretty_printer::assignment_expression): Rename from
5749         pp_c_assignment_expression.  Adjust.
5750         (c_pretty_printer::expression): Rename from pp_c_expression.  Adjust.
5751         (c_pretty_printer::c_pretty_printer): Do not assign to
5752         unary_expression, multiplicative_expression,
5753         conditional_expression, expression.
5755 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5757         * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
5758         virtual member function.
5759         (pp_postfix_expression): Adjust.
5760         (pp_c_postfix_expression): Remove.
5761         * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
5762         from pp_c_postfix_expression.  Adjust.
5763         (c_pretty_printer::c_pretty_printer): Do not assign to
5764         postfix_expression.
5766 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5768         * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
5769         virtua member function.
5770         (pp_primary_expression): Adjust.
5771         (pp_c_primary_expression): Remove.
5772         * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
5773         from pp_c_primary_expression.  Adjust.
5774         (pp_c_initializer_list): Use pp_primary_expression.
5775         (c_pretty_printer::c_pretty_printer): Do not assign to
5776         primary_expression.
5778 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5780         * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
5781         * c-pretty-print.c (M_): Remove.
5782         (c_pretty_printer::translate_string): Define.
5783         (pp_c_type_specifier): Use it.
5784         (pp_c_primary_expression): Likewise.
5785         (pp_c_expression): Likewise.
5787 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5789         * c-pretty-print.h (c_pretty_printer::id_expression): Now a
5790         virtual function.
5791         (pp_c_id_expression): Remove.
5792         (pp_id_expression): Adjust.
5793         * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
5794         pp_c_id_expression.  Adjust.
5795         (pp_c_postfix_expression): Use pp_id_expression.
5796         (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
5798 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5800         * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
5801         member function.
5802         (pp_constant): Adjust.
5803         (pp_c_constant): Remove.
5804         * c-pretty-print.c (c_pretty_printer::constant): Rename from
5805         pp_c_constant.  Adjust.
5806         (pp_c_constant)
5807         (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
5808         (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
5810 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5812         * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
5813         (c_pretty_printer::c_pretty_printer): Declare.
5814         * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
5815         c_pretty_printer_init.  Adjust.
5816         (print_c_tree): Do not call c_pretty_printer_init.
5817         * c-ada-spec.c (dump_ads): Remove call to pp_construct.
5819 2013-08-09  Arnaud Charlet  <charlet@adacore.com>
5821         * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
5823 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
5825         PR c++/58080
5826         * c-common.c (pointer_int_sum): Add bool parameter.
5827         * c-common.h (pointer_int_sum): Adjust declaration.
5829 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5831         * c-pretty-print.c (print_c_tree): Simplify.  Use non-static local
5832         c_pretty_printer variable.
5834 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5836         * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
5837         (pp_base): Remove.
5838         (pp_c_base): Likewise.  Adjust users.
5839         * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
5840         (pp_c_whitespace): Do not call pp_base.
5841         (pp_c_left_paren): Likewise.
5842         (pp_c_right_paren): Likewise.
5843         (pp_c_left_brace): Likewise.
5844         (pp_c_right_brace): Likewise.
5845         (pp_c_left_bracket): Likewise.
5846         (pp_c_right_bracket): Likewise.
5847         (pp_c_dot): Likewise.
5848         (pp_c_ampersand): Likewise.
5849         (pp_c_star): Likewise.
5850         (pp_c_arrow): Likewise.
5851         (pp_c_semicolon): Likewise.
5852         (pp_c_complement): Likewise.
5853         (pp_c_exclamation): Likewise.
5854         (pp_c_direct_declarator): Likewise.
5855         (pp_c_ws_string): Likewise.
5856         (pp_c_identifier): Likewise.
5857         (pp_c_statement): Likewise.
5858         (print_c_tree): Likewise.
5860 2013-08-04  Ed Smith-Rowland  <3dw4rd@verizon.net>
5862         PR c++/58072
5863         * c-common.c (c_parse_error): Catch user-defined literal tokens and
5864         provide useful error strings.
5866 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5868         * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
5869         printer functions instead of pp_string or operators and punctuators.
5870         (dump_generic_ada_node): Likewise.
5871         * c-pretty-print.c (pp_c_type_specifier): Likewise.
5872         (pp_c_relational_expression): Likewise.
5873         (pp_c_logical_or_expression): Likewise.
5875 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5877         * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
5878         functions instead of pp_character.
5879         (pp_ada_tree_identifier): Likewise.
5880         (dump_ada_double_name): Likewise.
5881         (dump_ada_function_declaration): Likewise.
5882         (dump_ada_array_domains): Likewise.
5883         (dump_template_types): Likewise.
5884         (dump_generic_ada_node): Likewise.
5885         (print_ada_declaration): Likewise.
5886         (print_ada_struct_decl): Likewise.
5887         * c-pretty-print.c (pp_c_integer_constant): Likewise.
5889 2013-07-23  Tom Tromey  <tromey@redhat.com>
5891         * c-common.h (enum rid) <RID_GENERIC>: New constant.
5892         * c-common.c (c_common_reswords): Add _Generic.
5894 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
5896         * c-common.c: Fix typos.
5897         * c-common.h: Likewise.
5899 2013-07-13  Lubos Lunak  <l.lunak@suse.cz>
5901         PR c++/55203
5902         * c-common.c (c_common_attribute_table): Add warn_unused.
5903         (handle_warn_unused_attribute): New.
5905 2013-07-10  Jakub Jelinek  <jakub@redhat.com>
5907         * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
5908         for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
5910 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
5912         PR c++/57869
5913         * c.opt: Add Wconditionally-supported.
5915 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
5917         * array-notation-common.c (length_mismatch_in_expr_p): Delete
5918         unused variables l_length and l_node.
5920 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
5922         PR c/57821
5923         * c-common.c (complete_array_type): Delay folding first index
5924         like other indices.  When folding, check for index overflow.
5926 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
5928         PR c++/57509
5929         * c-common.h (c_build_vec_perm_expr): New complain argument.
5930         * c-common.c (c_build_vec_perm_expr): Likewise.
5931         Use save_expr also in C++.
5933 2013-06-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5935         * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
5936         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
5937         * c-opts.c (c_common_post_options): Likewise.
5939 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5941         * array-notation-common.c (length_mismatch_in_expr): Changed the
5942         parameter type's from a dynamic array to a vec_tree.  Also removed
5943         the size parameters.
5944         * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
5945         the change above.
5947 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5949         * c-common.h (struct cilkplus_an_parts): New structure.
5950         (struct cilkplus_an_loop_parts): Likewise.
5951         (cilkplus_extract_an_triplets): New prototype.
5952         (fix_sec_implicit_args): Likewise.
5953         * array-notation-common.c (cilkplus_extract_an_triplets): New function.
5954         (fix_sec_implicit_args): Likewise.
5956 2013-06-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5958         * array-notation-common.c (find_inv_trees): Removed an unwanted
5959         typecasting.
5960         * c-common.h (struct inv_list::additional_tcodes): Changed type from
5961         enum rid to enum tree_code.
5963 2013-06-11  Jan Hubicka  <jh@suse.cz>
5965         * c-common.c (handle_alias_ifunc_attribute): Do not set
5966         DECL_EXTERNAL for weakref variables.
5967         * c-pragma.c (handle_pragma_weak): Make sure aliases
5968         are not declared as external.
5970 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5972         * array-notation-common.c (length_mismatch_in_expr_p): Moved this
5973         function from c/c-array-notation.c.
5974         (is_cilkplus_reduce_builtin): Likewise.
5975         (find_rank): Likewise.
5976         (extract_array_notation_exprs): Likewise.
5977         (replace_array_notations): Likewise.
5978         (find_inv_trees): Likewise.
5979         (replace_inv_trees): Likewise.
5980         (contains_array_notation_expr): Likewise.
5981         (find_correct_array_notation_type): Likewise.
5982         * c-common.h (struct inv_list): Moved this struct from the file
5983         c/c-array-notation.c and added a new field called additional tcodes.
5984         (length_mismatch_in_expr_p): New prototype.
5985         (is_cilkplus_reduce_builtin): Likewise.
5986         (find_rank): Likewise.
5987         (extract_array_notation_exprs): Likewise.
5988         (replace_array_notation): Likewise.
5989         (find_inv_trees): Likewise.
5990         (replace_inv_trees): Likewise.
5991         (find_correct_array_notation_type): Likewise.
5993 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5995         * c-common.c (c_define_builtins): When cilkplus is enabled, the
5996         function array_notation_init_builtins is called.
5997         (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
5998         * c-common.def (ARRAY_NOTATION_REF): New tree.
5999         * c-common.h (build_array_notation_expr): New function declaration.
6000         (build_array_notation_ref): Likewise.
6001         (extract_sec_implicit_index_arg): New extern declaration.
6002         (is_sec_implicit_index_fn): Likewise.
6003         (ARRAY_NOTATION_CHECK): New define.
6004         (ARRAY_NOTATION_ARRAY): Likewise.
6005         (ARRAY_NOTATION_START): Likewise.
6006         (ARRAY_NOTATION_LENGTH): Likewise.
6007         (ARRAY_NOTATION_STRIDE): Likewise.
6008         * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
6009         ARRAY_NOTATION_REF.
6010         (pp_c_expression): Likewise.
6011         * c.opt (flag_enable_cilkplus): New flag.
6012         * array-notation-common.c: New file.
6014 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
6016         PR c++/57274
6017         * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
6019 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
6021         * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
6022         vectors.
6024 2013-05-07  Han Shen  <shenhan@google.com>
6026         * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
6028 2013-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6030         * c-common.c (check_user_alignment): Emit error for negative values.
6032 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
6034         * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
6036 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
6038         * c-cppbuiltin.c (c_cpp_builtins): Do not define
6039         __GXX_EXPERIMENTAL_CXX1Y__.
6041 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
6042             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6044         * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
6045         * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
6046         to simply use OPT_Wpointer_arith.
6047         (c_sizeof_or_alignof_type): Likewise.
6049 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
6051         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
6053 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
6055         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
6056         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
6057         specifiers.
6059 2013-04-07  Steven Bosscher  <steven@gcc.gnu.org>
6061         * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
6063 2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
6065         * c-common.c (pointer_int_sum): Remove dead code.
6067 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
6069         PR middle-end/56524
6070         * c-common.c (handle_optimize_attribute): Don't call
6071         save_optabs_if_changed.
6073 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
6075         PR middle-end/56461
6076         * c-pch.c (pch_init): Free target_validity at the end.
6078 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
6080         * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
6082 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
6083             Jakub Jelinek  <jakub@redhat.com>
6085         PR sanitizer/56454
6086         * c-common.c (handle_no_sanitize_address_attribute): New function.
6087         (c_common_attribute_table): Add no_sanitize_address attribute.
6088         (handle_no_address_safety_analysis_attribute): Add
6089         no_sanitize_address attribute, not no_address_safety_analysis
6090         attribute.
6092 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
6094         PR target/52555
6095         * c-common.c (handle_optimize_attribute): Call
6096         save_optabs_if_changed.
6098 2013-02-18  Jakub Jelinek  <jakub@redhat.com>
6099             Steven Bosscher  <steven@gcc.gnu.org>
6101         PR pch/54117
6102         * c-opts.c (c_common_post_options): If debug info is enabled
6103         and non-dwarf*, refuse to load PCH files and when writing PCH
6104         file warn.
6106 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
6108         PR middle-end/56167
6109         * c-common.c (handle_error_attribute): Fix condition.
6111 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
6113         PR c++/55742
6114         * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
6116 2013-01-18  Jason Merrill  <jason@redhat.com>
6118         PR target/54908
6119         * c.opt (-fextern-tls-init): New.
6120         * c-opts.c (c_common_post_options): Handle it.
6122 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
6124         PR c/48418
6125         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
6126         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
6127         and is either negative or bigger or equal to type precision
6128         of the first operand.
6130 2012-12-03  Marek Polacek  <polacek@redhat.com>
6132         PR c/55570
6133         * c-common.c (check_user_alignment): Swap order of tests,
6134         check TREE_CODE first.
6136 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
6138         PR c++/52654
6139         * c-common.h (overflow_type): New enum.
6140         (build_userdef_literal): Add overflow_type argument.
6141         (tree_userdef_literal): Add overflow_type.
6142         (USERDEF_LITERAL_OVERFLOW): New access macro.
6143         * c-common.c (build_userdef_literal): Add overflow_type
6144         argument.
6145         * c-lex.c (c_lex_with_flags): Add overflow_type to
6146         build_userdef_literal calls.
6147         (interpret_integer, interpret_float): Add overflow_type argument.
6149 2012-11-28  Richard Biener  <rguenther@suse.de>
6151         PR c/35634
6152         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
6153         here and use a type with proper overflow behavior for types that would
6154         need to be promoted for the arithmetic.
6156 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
6158         PR sanitizer/55435
6159         * c-common.c (handle_no_address_safety_analysis_attribute): New
6160         function.
6161         (c_common_attribute_table): Add no_address_safety_analysis.
6163 2012-11-16  Simon Baldwin  <simonb@google.com>
6165         * c.opt: Add f[no-]canonical-system-headers.
6166         * c-opts.c (c_common_handle_option): Handle
6167         OPT_fcanonical_system_headers.
6169 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
6171         PR c++/54413
6172         * c-opts.c (c_common_handle_option): Set new flags.
6173         * c.opt: Describe new flags.
6175 2012-11-09  Jason Merrill  <jason@redhat.com>
6177         * c.opt (Wabi-tag): New.
6179 2012-11-09  Andi Kleen  <ak@linux.intel.com>
6181         PR 55139
6182         * c-common.c (get_atomic_generic_size): Mask with
6183         MEMMODEL_MASK
6185 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6187         PR c/53063
6188         * c.opt (Wformat): Make it Alias Wformat=1.
6189         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
6190         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
6191         LangEnabledBy.
6192         (Wformat=): RejectNegative. Use LangEnabledBy.
6193         (Wnonnull): Use LangEnabledBy.
6194         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
6195         * c-format.c (set_Wformat): Delete.
6196         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
6197         (maybe_read_dollar_number):  Likewise.
6198         (avoid_dollar_number):  Likewise.
6199         (finish_dollar_format_checking):  Likewise.
6200         (check_format_info):  Likewise.
6201         (check_format_info_main):  Likewise.
6202         (check_format_types):  Likewise.
6203         (format_type_warning):  Likewise.
6204         * c-common.c (int):  Likewise.
6205         (check_function_sentinel):  Likewise.
6206         * c-common.h (warn_format,set_Wformat): Do not declare here.
6208 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6210         PR c/53063
6211         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
6212         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
6213         Use LangEnabledBy.
6214         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
6215         common.opt.
6216         (Wvariadic-macros): Init(1).
6217         * c-opts.c (c_common_handle_option): Do not handle them
6218         explicitly.
6219         (c_common_post_options): Likewise.
6220         (sanitize_cpp_opts): warn_unused_macros is now
6221         cpp_warn_unused_macros.
6222         (push_command_line_include): Likewise.
6223         * c-common.c (warn_unknown_pragmas): Do not define.
6224         * c-common.h (warn_unknown_pragmas): Do not declare.
6226 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6228         PR c/51294
6229         * c-common.c (conversion_warning): Handle conditional expressions.
6231 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
6233         PR c++/54930
6234         * c.opt (Wreturn_local_addr): Define new option.
6236 2012-10-25  Jason Merrill  <jason@redhat.com>
6238         * c.opt (Wvirtual-move-assign): New.
6240         * c.opt (Winherited-variadic-ctor): New.
6242 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
6244         PR c++/54427
6245         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
6247 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
6249         * c-common.h (pch_cpp_save_state): Declare.
6250         * c-target.def (c_preinclude): New hook.
6251         * c-opts.c (done_preinclude): New.
6252         (push_command_line_include): Handle default preincluded header.
6253         (cb_file_change): Call pch_cpp_save_state when calling
6254         push_command_line_include.
6255         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
6256         (pch_cpp_save_state): New.
6257         (pch_init): Call pch_cpp_save_state conditionally, instead of
6258         calling cpp_save_state.
6260 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6262         PR c/53063
6263         PR c/40989
6264         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
6265         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
6266         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
6267         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
6268         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
6269         * c-opts.c (c_common_handle_option): Remove explicit handling from
6270         here.
6271         (c_common_post_options): Likewise.
6273 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
6275         * c-ada-spec.c (LOCATION_COL): Delete.
6276         (compare_location): New function.
6277         (compare_node): Use it.
6278         (compare_comment): Likewise.
6280 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6282         PR c/53063
6283         PR c/40989
6284         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
6285         * c-opts.c (c_common_handle_option): Do not set them here. Add
6286         comment.
6287         (c_common_post_options): Likewise.
6289 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
6291         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
6292         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
6293         Remove POINTER_TYPE handling, add large unsigned handling and use
6294         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
6296 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
6298         PR c/54381
6299         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
6300         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
6301         locs and array of 3 trees instead of just single loc and single
6302         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
6303         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
6304         For *cmp* builtins that take two sources strings report warnings
6305         about first and second source, not about destination and source.
6307 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
6309         PR c++/53055
6310         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
6312 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
6314         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
6315         declaring something coming from another file.
6317 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
6319         PR ada/54845
6320         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
6322 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
6324         PR c++/54194
6325         * c-common.c (warn_about_parentheses): Add location_t parameter;
6326         use EXPR_LOC_OR_LOC.
6327         * c-common.h: Update declaration.
6329 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
6331         PR c++/54427
6332         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
6333         more operations. Make error messages optional.
6334         * c-common.h (enum stv_conv): Moved from c-typeck.c.
6335         (scalar_to_vector): Declare.
6337 2012-10-08  Jason Merrill  <jason@redhat.com>
6339         * c-common.c (c_common_reswords): Add thread_local.
6341 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
6343         PR c++/53528 C++11 attribute support
6344         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
6345         new functions.
6346         * c-common.c (check_cxx_fundamental_alignment_constraints): New
6347         static function.
6348         (handle_aligned_attribute): In choose strictest alignment
6349         among many.  Use new check_cxx_fundamental_alignment_constraints.
6350         (handle_transparent_union_attribute): In c++11 attribute syntax,
6351         don't look through typedefs.
6353 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
6355         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
6356         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
6357         out of dumpfile.h.
6359 2012-09-25  Dehao Chen  <dehao@google.com>
6361         PR middle-end/54645
6362         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6363         map when read in the pch.
6365 2012-09-18  Arnaud Charlet  <charlet@adacore.com>
6367         * c-ada-spec.c: Style fixes.
6369 2012-09-18  Thomas Quinot  <quinot@adacore.com>
6371         * c.opt (-fada-spec-parent): Define new command line switch.
6372         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
6373         is specified, generate binding spec as a child of the specified unit.
6375 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
6376             Manuel López-Ibáñez  <manu@gcc.gnu.org>
6378         PR c++/53210
6379         * c.opt ([Winit-self]): Enabled by -Wall in C++.
6381 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
6383         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
6384         for pointers, and add missing Convention C pragma.
6385         (print_ada_struct_decl): Add missing aliased keyword.
6386         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
6388 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
6390         * c-common.c (sizeof_pointer_memaccess_warning): New function.
6391         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
6392         * c-opts.c (c_common_handle_option): Enable it for -Wall.
6393         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
6394         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
6396 2012-08-10  Richard Guenther  <rguenther@suse.de>
6398         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
6400 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
6402         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
6403         instead of separate pp_newline and pp_flush.
6404         (print_c_tree): Likewise.
6406 2012-07-26  Richard Henderson  <rth@redhat.com>
6408         * c-common.c (handle_hot_attribute): Allow labels.
6409         (handle_cold_attribute): Likewise.
6411 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
6413         PR c++/28656
6414         * c-common.c (check_function_nonnull): Handle multiple nonnull
6415         attributes properly.
6417 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
6419         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
6420         * c-ada-spec.c: Likewise.
6421         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
6423 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
6425         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
6426         Remove code conditional on it.
6428 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
6430         * c-gimplify.c: Do not include basic-block.h.
6431         * c-common.c: Do not include linfuncs.h.
6433 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
6435         * c-common.h: Include tree.h.
6437 2012-07-02  Jason Merrill  <jason@redhat.com>
6439         PR c++/53524
6440         * c-common.c (get_priority): Call default_conversion.
6442 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
6444         * c-pch.c (c_common_write_pch): Remove unused variables.
6446 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
6448         * cppspec.c: Moved from gcc/ to here.
6450 2012-06-27  Kai Tietz  <ktietz@redhat.com>
6452         PR preprocessor/37215
6453         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
6455 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
6457         * c-common.h (c_common_print_pch_checksum): Remove.
6458         * c-pch.c: Do not include output.h.
6459         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
6460         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
6461         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
6462         (struct c_pch_header): Remove.
6463         (get_ident): Update gpch version.
6464         (pch_init): Do not print executable_checksum to asm_out_file.
6465         Do not fail if there is no asm_out_file to read back from.  Set
6466         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
6467         (c_common_write_pch): Verify that nothing was written to asm_out_file
6468         since pch_init was called.  Do not write a c_pch_header, and do not
6469         copy from asm_out_file to the PCH.
6470         (c_common_read_pch): Do not read a c_pch_header, and do not restore
6471         the content of asm_out_file from the PCH.
6472         (c_common_print_pch_checksum): Remove.
6473         * c-opts.c (c_common_init): Print out executable_checksum directly.
6475 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
6477         * c-target.def (objc_declare_unresolved_class_reference,
6478         objc_declare_class_definition): Add new hooks.
6480 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
6482         * c-lex.c: Do not include output.h.
6483         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
6484         Remove uses of ASM_OUTPUT_IDENT.
6486 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
6488         PR c++/51033
6489         * c-common.h (c_build_vec_perm_expr): Move decl here.
6490         * c-common.c (c_build_vec_perm_expr): Move definition
6491         here.
6493 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
6495         * c.opt (fconserve-space): Turn into a no-op.
6497 2012-06-04  Sterling Augustine  <saugustine@google.com>
6499         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
6500         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
6501         both the start and end of the function.
6503 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
6505         * c-common.c: Do not include output.h.
6506         * c-pragma.c: Likewise.
6508 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
6510         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
6511         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
6512         (lang_decl_name): Handle namespace decls.
6514 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
6516         * c-ada-spec.c: Do not include output.h.
6517         * c-semantics.c: Likewise.
6519 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
6521         * c-common.c: Fix typo.
6523 2012-05-29  Michael Matz  <matz@suse.de>
6525         * c-common.h (c_expand_decl): Remove prototype.
6527 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6529         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
6530         * c-opts.c (c_common_handle_option): Remove code handling
6531         warn_missing_braces.
6533 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
6535         PR c++/25137
6536         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
6537         -Wmissing_braces.
6539 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
6541         PR c++/53322
6542         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
6544 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6546         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
6547         * c-opts.c (c_common_handle_option): Do not handle explicitly
6548         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
6550 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
6552         PR preprocessor/7263
6553         * c-lex.c (c_lex_with_flags):  Pass a virtual location to the call
6554         to cpp_classify_number.  For diagnostics, use the precise location
6555         instead of the global input_location.
6557 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
6559         PR c++/11856
6560         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
6562 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
6564         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
6566 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6568         PR 53063
6569         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
6570         Wreorder): Use LangEnabledBy.
6571         * c-opts.c (c_common_handle_option): Do not enable them
6572         explicitly. Call lang-specific generated functions.
6573         (c_common_post_options): Do not set them here.
6575 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6577         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
6578         Wmissing-field-initializers,Wmissing-parameter-type,
6579         Wold-style-declaration,Woverride-init): Use EnabledBy.
6580         * c-opts.c (c_common_post_options): Do not set here explicitly.
6582 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6584         PR 53063
6585         * c-opts.c (c_common_handle_option): Use handle_generated_option
6586         to enable sub-options.
6588 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
6590         PR c++/53158
6591         * c-common.c (warnings_for_convert_and_check): Use warning_at.
6593 2012-05-10  Richard Guenther  <rguenther@suse.de>
6595         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
6596         adjust commentary about TYPE_IS_SIZETYPE types.
6598 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6600         PR c++/53261
6601         * c-common.c (warn_logical_operator): Check that argument of
6602         integer_zerop is not NULL.
6604 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6606         PR c/43772
6607         * c-common.c (warn_logical_operator): Do not warn if either side
6608         is already true or false.
6610 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6612         PR c/51712
6613         * c-common.c (expr_original_type): New.
6614         (shorten_compare): Do not warn for enumeration types.
6616 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6618         * c.opt (fpermissive): Add Var(flag_permissive).
6620 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
6622         PR c++/51033
6623         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
6624         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
6626 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
6628         Add -Wvarargs option
6629         * c.opt (Wvarargs):  Define new option.
6631 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6633         * c-common.c (check_function_arguments): Replace
6634         Wmissing-format-attribute with Wsuggest-attribute=format.
6636 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6638         * c.opt (Wsuggest-attribute=format): New. Alias of
6639         Wmissing-format-attribute.
6640         * c-format.c (decode_format_type): Replace
6641         Wmissing-format-attribute with Wsuggest-attribute=format.
6642         (check_function_format): Likewise.
6644 2012-04-27  Ollie Wild  <aaw@google.com>
6646         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
6647         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
6648         * c.opt: Add Wliteral-suffix.
6650 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6652         PR c/44774
6653         * c.opt (Wpedantic): New.
6654         (pedantic): Alias Wpedantic.
6655         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
6656         (c_common_post_options): Likewise.
6657         (sanitize_cpp_opts): Likewise.
6658         * c-lex.c (interpret_float): Likewise.
6659         * c-format.c (check_format_types): Likewise.
6660         * c-common.c (pointer_int_sum): Likewise.
6661         (c_sizeof_or_alignof_type): Likewise.
6662         (c_add_case_label): Likewise.
6663         (c_do_switch_warnings): Likewise.
6664         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
6666 2012-04-15  Jason Merrill  <jason@redhat.com>
6668         PR c++/52818
6669         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
6670         (C_STD_NAME): Distinguish between C++98 and C++11.
6672 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6674         PR target/52624
6675         * c-common.h (uint16_type_node): Rename into...
6676         (c_uint16_type_node): ...this.
6677         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
6678         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
6680 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6682         * c-common.c (warn_if_unused_value): Move definition to here.
6683         * c-common.h (warn_if_unused_value): Move declaration to here.
6685 2012-03-23  William Bader  <williambader@hotmail.com>
6687         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
6689 2012-03-20  Jason Merrill  <jason@redhat.com>
6691         * c-common.h (enum cxx_dialect): Add cxx1y.
6692         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
6693         test.
6694         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
6695         * c-opts.c (c_common_post_options): Likewise.
6696         (set_std_cxx1y): New.
6697         (c_common_handle_option): Call it.
6698         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
6700 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
6702         PR c++/14710
6703         * c.opt ([Wuseless-cast]): Add.
6705 2012-03-16  Richard Guenther  <rguenther@suse.de>
6707         * c-pretty-print.c (pp_c_initializer_list): Adjust.
6709 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6711         PR c++/44783
6712         * c.opt (ftemplate-backtrace-limit) Add.
6714 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6716         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
6717         handling.
6718         * c-pragma.c (handle_pragma_extern_prefix): Remove.
6719         (init_pragma): Don't register extern_prefix.
6721 2012-03-12  Richard Guenther  <rguenther@suse.de>
6723         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
6724         (builtin_type_for_size): Likewise.
6726 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
6728         PR c++/52215
6729         * c-common.c (sync_resolve_params): Don't decide whether to convert
6730         or not based on TYPE_SIZE comparison, convert whenever arg_type
6731         is unsigned INTEGER_TYPE.
6733 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
6735         PR c/52118
6736         * c.opt ([Wunused-local-typedefs]): Fix description.
6738 2012-01-24  Mike Stump  <mikestump@comcast.net>
6740         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
6741         exactly.
6743 2012-01-18  Richard Guenther  <rguenther@suse.de>
6745         * c-opts.c (c_common_post_options): Reset LTO flags if
6746         we are about to generate a PCH.
6748 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
6750         PR c++/51777
6751         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
6752         use pp_unsigned_wide_integer.
6754 2012-01-10  Richard Guenther  <rguenther@suse.de>
6756         PR middle-end/51806
6757         * c-opts.c (c_common_handle_option): Move -Werror handling
6758         to language independent code.
6760 2012-01-05  Richard Guenther  <rguenther@suse.de>
6762         PR middle-end/51764
6763         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
6764         from common.opt.
6766 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
6768         PR c++/51316
6769         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
6770         of array types with an unknown bound.
6772 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
6774         * c-common.c (flag_isoc99): Update comment to refer to C11.
6775         (flag_isoc1x): Change to flag_isoc11.
6776         * c-common.h (flag_isoc99): Update comment to refer to C11.
6777         (flag_isoc1x): Change to flag_isoc11.
6778         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
6779         C11.
6780         * c-opts.c (set_std_c1x): Change to set_std_c11.
6781         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
6782         Call set_std_c11.
6783         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
6784         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
6785         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
6786         standard.
6787         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
6788         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
6789         (std=gnu1x): Make alias of std=gnu11.
6791 2011-12-19  Jason Merrill  <jason@redhat.com>
6793         PR c++/51228
6794         * c-common.c (handle_transparent_union_attribute): Check the first
6795         field if the type is complete.
6797 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
6799         PR libstdc++/51365
6800         * c-common.c (RID_IS_FINAL): Add.
6801         * c-common.h (RID_IS_FINAL): Add.
6803 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
6805         * c.opt (fgnu-runtime): Provide full description.
6806         (fnext-runtime): Likewise.
6807         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
6809 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
6811         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
6812         predefines in one place.  Add LOCK_FREE predefines.
6813         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
6814         new func.
6816 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
6818         PR c/51256
6819         * c-common.c (get_atomic_generic_size): Check for various error
6820         conditions
6821         (resolve_overloaded_atomic_exchange,
6822         resolve_overloaded_atomic_compare_exchange,
6823         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
6824         error_mark_node for error conditions.
6826 2011-11-08  Richard Guenther  <rguenther@suse.de>
6828         PR middle-end/51010
6829         c-family/
6831 2011-11-07  Richard Henderson  <rth@redhat.com>
6832             Aldy Hernandez  <aldyh@redhat.com>
6833             Torvald Riegel  <triegel@redhat.com>
6835         Merged from transactional-memory.
6837         * c-common.c (handle_tm_wrap_attribute,
6838         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
6839         (struct c_common_reswords): Added __transaction* keywords.
6840         (struct c_common_attribute_table): Added transaction* and tm_regparm
6841         attributes.
6842         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
6843         masks.
6844         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
6845         find_tm_attribute): Declare.
6847 2011-11-07  Jason Merrill  <jason@redhat.com>
6849         PR c++/35688
6850         * c-common.c, c-common.h: Revert yesterday's changes.
6852 2011-11-06  Jason Merrill  <jason@redhat.com>
6854         PR c++/35688
6855         * c-common.c (decl_has_visibility_attr): Split out from...
6856         (c_determine_visibility): ...here.
6857         * c-common.h: Declare it.
6859 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
6861         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
6862         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
6863         type.
6864         (check_user_alignment): New.  Split out of
6865         handle_aligned_attribute.  Disallow integer constants with
6866         noninteger types.  Conditionally allow zero.
6867         (handle_aligned_attribute): Use check_user_alignment.
6868         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
6870 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
6871             Richard Henderson  <rth@redhat.com>
6873         Merged from cxx-mem-model.
6875         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
6876         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
6877         parameters that are the same type size.
6878         (get_atomic_generic_size): New.  Find size of generic
6879         atomic function parameters and do typechecking.
6880         (add_atomic_size_parameter): New.  Insert size into parameter list.
6881         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
6882         either __atomic_exchange_n or external library call.
6883         (resolve_overloaded_atomic_compare_exchange): Restructure
6884         __atomic_compare_exchange to either _n variant or external library call.
6885         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
6886         __atomic_load_n or an external library call.
6887         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
6888         __atomic_store_n or an external library call.
6889         (resolve_overloaded_builtin): Handle new __atomic builtins.
6891 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
6893         PR c++/50608
6894         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
6895         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
6896         <INDIRECT_REF>: Return the argument.
6897         <ARRAY_REF>: Remove special code for negative offset.
6898         Call fold_build_pointer_plus instead of size_binop.
6899         (fold_offsetof): Remove STOP_REF argument and adjust.
6900         * c-common.h (fold_offsetof_1): Declare.
6901         (fold_offsetof): Remove STOP_REF argument.
6903 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
6905         PR c++/50810
6906         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
6907         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
6908         Wnarrowing for C++0x and C++98.
6909         * c.opt ([Wnarrowing]): Update.
6911 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
6913         PR c++/44277
6914         * c.opt: Add Wzero-as-null-pointer-constant.
6916 2011-10-31  Jason Merrill  <jason@redhat.com>
6918         * c.opt (-fdeduce-init-list): Off by default.
6920         PR c++/50920
6921         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
6922         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
6923         and -Wc++11-compat.
6924         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
6926 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
6928         PR c++/30066
6929         * c.opt (fvisibility-inlines-hidden): Description change.
6931 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
6933         Implement C++11 user-defined literals.
6934         * c-common.c (build_userdef_literal): New.
6935         * c-common.def: New tree code.
6936         * c-common.h (tree_userdef_literal): New tree struct and accessors.
6937         * c-lex.c (interpret_float): Add suffix parm.
6938         (c_lex_with_flags): Build literal tokens.
6940 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
6942         PR c++/50841
6943         Revert:
6944         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
6946         PR c++/50810
6947         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
6948         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
6949         Wnarrowing for C++0x and C++98.
6950         * c.opt ([Wnarrowing]): Update.
6952 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
6954         PR c++/50810
6955         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
6956         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
6957         Wnarrowing for C++0x and C++98.
6958         * c.opt ([Wnarrowing]): Update.
6960 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
6962         PR c++/45385
6963         * c-common.c (conversion_warning): Remove code looking for
6964         artificial operands.
6966 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
6968         PR bootstrap/50760
6969         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
6970         !NO_IMPLICIT_EXTERN_C.
6972 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
6974         * c-common.c (c_common_reswords): Add __bases,
6975         __direct_bases.
6976         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
6978 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
6980         PR c++/50757
6981         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
6983 2011-10-15  Tom Tromey  <tromey@redhat.com>
6984             Dodji Seketeli  <dodji@redhat.com>
6986         * c.opt (fdebug-cpp): New option.
6987         * c-opts.c (c_common_handle_option): Handle the option.
6988         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
6989         output stream in parameter. Factorized from ...
6990         (maybe_print_line): ... this. Dump location debug information when
6991         -fdebug-cpp is in effect.
6992         (print_line_1): New static function. Takes an output stream in
6993         parameter. Factorized from ...
6994         (print_line): ... here. Dump location information when -fdebug-cpp
6995         is in effect.
6996         (scan_translation_unit): Dump location information when
6997         -fdebug-cpp is in effect.
6999 2011-10-15  Tom Tromey  <tromey@redhat.com>
7000             Dodji Seketeli  <dodji@redhat.com>
7002         * c.opt (ftrack-macro-expansion): New option. Handle it with and
7003         without argument.
7004         * c-opts.c (c_common_handle_option)<case
7005         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
7006         cases. Handle -ftrack-macro-expansion with and without argument.
7008 2011-10-15  Tom Tromey  <tromey@redhat.com>
7009             Dodji Seketeli  <dodji@redhat.com>
7011         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
7012         (print_line, cb_define, do_line_change): Adjust to avoid touching
7013         the internals of struct line_map.  Use the public API instead.
7014         * c-pch.c (c_common_read_pch): Likewise.
7015         * c-lex.c (fe_file_change): Likewise.
7017 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
7019         PR c++/17212
7020         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
7022 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
7024         PR c++/33067
7025         * c-pretty-print.c (pp_c_floating_constant): Output
7026         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
7028 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
7030         * c-common.c (def_builtin_1): Delete old interface with two
7031         parallel arrays to hold standard builtin declarations, and replace
7032         it with a function based interface that can support creating
7033         builtins on the fly in the future.  Change all uses, and poison
7034         the old names.  Make sure 0 is not a legitimate builtin index.
7035         * c-omp.c (c_finish_omp_barrier): Ditto.
7036         (c_finish_omp_taskwait): Ditto.
7037         (c_finish_omp_flush): Ditto.
7039 2011-10-11  Tristan Gingold  <gingold@adacore.com>
7041         * c.opt: (fallow-parameterless-variadic-functions): New.
7043 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
7045         PR c++/33255 - Support -Wunused-local-typedefs warning
7046         * c-common.h (struct c_language_function::local_typedefs): New
7047         field.
7048         (record_locally_defined_typedef, maybe_record_typedef_use)
7049         (maybe_warn_unused_local_typedefs): Declare new functions.
7050         * c-common.c (record_locally_defined_typedef)
7051         (maybe_record_typedef_use)
7052         (maybe_warn_unused_local_typedefs): Define new functions.
7053         * c.opt: Declare new -Wunused-local-typedefs flag.
7055 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
7057         PR middle-end/50266
7058         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
7059         computations.
7061 2011-09-05  Richard Guenther  <rguenther@suse.de>
7063         * c-common.c (complete_array_type): Use ssize_int (-1) instead
7064         of integer_minus_one_node for empty array upper bounds.
7066 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
7068         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
7069         it's the first time it's being called on this main TU.
7071 2011-08-24  Richard Guenther  <rguenther@suse.de>
7073         PR c/49396
7074         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
7076 2011-08-22  Gabriel Charette  <gchare@google.com>
7078         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
7079         defined in cpp_init_builtins and c_cpp_builtins.
7081 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
7083         * c-common.c (c_common_reswords): Add __builtin_complex.
7084         * c-common.h (RID_BUILTIN_COMPLEX): New.
7086 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
7088         * c-common.c (c_common_reswords): Add _Noreturn.
7089         (keyword_is_function_specifier): Handle RID_NORETURN.
7090         * c-common.h (RID_NORETURN): New.
7092 2011-08-10  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
7094         * c-common.c (unsafe_conversion_p): New function. Check if it is
7095         unsafe to convert an expression to the type.
7096         (conversion_warning): Adjust, use unsafe_conversion_p.
7097         * c-common.h (unsafe_conversion_p): New function declaration.
7099 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
7101         * c-common.h (c_finish_omp_atomic): Adjust prototype.
7102         (c_finish_omp_taskyield): New prototype.
7103         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
7104         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
7105         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
7106         or RHS1 have side-effects, evaluate those too in the right spot,
7107         if it is a decl and LHS is also a decl, error out if they
7108         aren't the same.
7109         (c_finish_omp_taskyield): New function.
7110         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
7111         * c-pragma.c (omp_pragmas): Add taskyield.
7112         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
7113         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
7114         PRAGMA_OMP_CLAUSE_MERGEABLE.
7116 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
7118         * c-common.h (set_underlying_type): Remove parm name from
7119         declaration.
7121 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
7123         * c-pretty-print.h: Search c-common.h in c-family.
7125 2011-07-22  Jason Merrill  <jason@redhat.com>
7127         PR c++/49793
7128         * c.opt (Wnarrowing): New.
7130         PR c++/30112
7131         * c-common.h: Declare c_linkage_bindings.
7132         * c-pragma.c (handle_pragma_redefine_extname): Use it.
7134         PR c++/49813
7135         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
7136         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
7137         as flag_isoc99 for 'restrict'.
7138         (pp_c_specifier_qualifier_list): Likewise for _Complex.
7140 2011-07-21  Ian Lance Taylor  <iant@google.com>
7142         PR middle-end/49705
7143         * c-common.c (c_disable_warnings): New static function.
7144         (c_enable_warnings): New static function.
7145         (c_fully_fold_internal): Change local unused_p to bool.  Call
7146         c_disable_warnings and c_enable_warnings rather than change
7147         c_inhibit_evaluation_warnings.
7149 2011-07-20  Jason Merrill  <jason@redhat.com>
7151         PR c++/6709 (DR 743)
7152         PR c++/42603 (DR 950)
7153         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
7154         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
7155         (CPP_DECLTYPE): New.
7156         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
7158 2011-07-19  Richard Guenther  <rguenther@suse.de>
7160         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
7161         * c-omp.c (c_finish_omp_for): Likewise.
7163 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
7165         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
7166         body on the next line.
7168 2011-07-08  Jason Merrill  <jason@redhat.com>
7170         PR c++/45437
7171         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
7173         PR c++/49673
7174         * c-common.c (c_apply_type_quals_to_decl): Don't check
7175         TYPE_NEEDS_CONSTRUCTING.
7177 2011-07-06  Richard Guenther  <rguenther@suse.de>
7179         * c-common.c (c_common_nodes_and_builtins):
7180         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
7182 2011-07-05  Richard Guenther  <rguenther@suse.de>
7184         * c-common.c (c_common_nodes_and_builtins): Build all common
7185         tree nodes first.
7187 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
7189         * c-common.h (c_tree_chain_next): New static inline function.
7191         * c-common.c (check_builtin_function_arguments): Handle
7192         BUILT_IN_ASSUME_ALIGNED.
7194 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
7196         * c-common.c: Add sync_ or SYNC__ to builtin names.
7197         * c-omp.c: Add sync_ or SYNC__ to builtin names.
7199 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
7201         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
7202         handler.
7203         (gen_pragma_handler): New union.
7204         (internal_pragma_handler): New type.
7205         (c_register_pragma_with_data)
7206         (c_register_pragma_with_expansion_and_data): New functions.
7208         * c-pragma.c (registered_pragmas, c_register_pragma_1)
7209         (c_register_pragma, c_register_pragma_with_expansion)
7210         (c_invoke_pragma_handler): Changed to work with
7211         internal_pragma_handler.
7212         (c_register_pragma_with_data)
7213         (c_register_pragma_with_expansion_and_data): New functions.
7215 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
7217         * c-common.c: Include common/common-target.h.
7218         (handle_section_attribute): Use
7219         targetm_common.have_named_sections.
7220         * c-cppbuiltin.c: Include common/common-target.h.
7221         (c_cpp_builtins): Use targetm_common.except_unwind_info.
7223 2011-06-10  Richard Guenther  <rguenther@suse.de>
7225         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
7226         to print a IDENTIFIER_NODE.
7228 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7229             Joseph Myers  <joseph@codesourcery.com>
7231         * c.opt (fbuilding-libgcc): New option.
7232         * c-cppbuiltin.c (c_cpp_builtins): Define
7233         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
7235 2011-06-07  Jason Merrill  <jason@redhat.com>
7237         * c-common.c (max_tinst_depth): Lower default to 900.
7239         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
7241 2011-06-07  Richard Guenther  <rguenther@suse.de>
7243         * c-common.c (c_common_nodes_and_builtins): Do not set
7244         size_type_node or call set_sizetype.
7246 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
7248         PR debug/49130
7249         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
7250         type when using pointer comparison to compare types.
7252 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
7254         * c.opt: Add -Wdelete-non-virtual-dtor.
7255         * c-opts.c (c_common_handle_option): Include it in -Wall.
7257 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
7259         PR bootstrap/49190
7261         Revert:
7262         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
7264         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
7265         not tree_common.
7267 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
7269         PR c++/49165
7270         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
7271         C++ don't call c_common_truthvalue_conversion on void type arms.
7273 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
7275         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
7276         (stmt_list_stack): Define.
7277         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
7278         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
7280 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
7282         * c-common.c (warning_candidate_p): Check for BLOCKs.
7284 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
7286         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
7287         not tree_common.
7289 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
7291         * c-common.c (def_fn_type): Remove extra va_end.
7293 2011-05-23  Jason Merrill  <jason@redhat.com>
7295         PR c++/48106
7296         * c-common.c (c_common_get_narrower): New.
7297         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
7299 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
7301         * c-common.h (check_function_arguments): Tweak prototype of
7302         check_function_arguments.
7303         * c-common.c (check_function_arguments): Likewise.  Adjust
7304         calls to check_function_nonnull, check_function_format, and
7305         check_function_sentinel.
7306         (check_function_sentinel): Take a FUNCTION_TYPE rather than
7307         separate attributes and typelist arguments.  Use
7308         FOREACH_FUNCTION_ARGS to iterate over argument types.
7310 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
7312         * c-common.c (c_common_reswords): Reorder.
7313         * c-common.h (rid): Likewise.
7315 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
7317         * c-common.c (def_fn_type): Don't call build_function_type, call
7318         build_function_type_array or build_varargs_function_type_array
7319         instead.
7320         (c_common_nodes_and_builtins): Likewise.
7322 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
7324         * c-common.c (c_add_case_label): Omit the loc argument to
7325         build_case_label.
7326         * c-common.h (build_case_label): Remove.
7327         * c-semantics.c (build_case_label): Remove.
7329 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
7331         * c-objc.h (objc_start_method_definition): Update prototype.
7332         * stub-objc.c (objc_start_method_definition): Add extra parameter.
7334 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
7336         * c-common.c (check_main_parameter_types): Reindent.  Don't use
7337         TYPE_ARG_TYPES directly.
7338         (handle_nonnull_attribute): Likewise.
7339         (sync_resolve_params): Likewise.
7340         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
7341         to check_format_string.
7342         (handle_format_attribute): Likewise.
7343         (check_format_string): Take a function type to examine instead of
7344         a type list.  Use a function_arg_iterator to step through argument
7345         types.
7347 2011-05-04  Richard Guenther  <rguenther@suse.de>
7349         * c-common.c (fix_string_type): Use size_int for index type bounds.
7350         (start_fname_decls): Do not pass NULL to build_int_cst.
7351         (c_init_attributes): Likewise.
7352         * c-lex.c (c_lex_with_flags): Likewise.
7354 2011-04-27  Jason Merrill  <jason@redhat.com>
7356         * c-common.c (make_tree_vector_from_list): New.
7357         * c-common.h: Declare it.
7359 2011-04-26  Richard Guenther  <rguenther@suse.de>
7361         PR preprocessor/48248
7362         * c-ppoutput.c (maybe_print_line): Always optimize newlines
7363         for output size with -P.
7365 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
7367         * c-common.c (struct c_common_resword): Add __underlying_type.
7368         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
7370 2011-04-20  Jim Meyering  <meyering@redhat.com>
7372         * c-format.c (init_dollar_format_checking): Remove useless
7373         if-before-free.
7375 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
7377         * c-objc.h (objc_get_interface_ivars): Removed.
7378         (objc_detect_field_duplicates): New.
7379         * stub-objc.c: Likewise.
7381 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
7383         * stub-objc.c (objc_declare_protocols): Renamed to
7384         objc_declare_protocol.
7385         * c-objc.h: Likewise.
7387 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
7389         * stub-objc.c (objc_declare_class): Updated argument name.
7391 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
7393         * c-common.h (c_common_init_ts): Declare.
7394         * c-common.c (c_common_init_ts): Define.
7396 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
7398         * c-objc.h (objc_build_message_expr): Updated prototype.
7399         * stub-objc.c (objc_build_message_expr): Likewise.
7401 2011-04-12  Martin Jambor  <mjambor@suse.cz>
7403         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
7404         of cgraph_node.
7406 2011-04-11  Richard Guenther  <rguenther@suse.de>
7408         * c-common.c (complete_array_type): Build a range type of
7409         proper type.
7411 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
7413         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
7414         (handle_type_generic_attribute): Likewise.
7416 2011-04-07  Jason Merrill  <jason@redhat.com>
7418         PR c++/48450
7419         * c-common.c (c_common_truthvalue_conversion): Don't ignore
7420         conversion from C++0x scoped enum.
7422 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
7424         * c-target-def.h: New file.
7425         * c-target.def: New file.
7426         * c-target.h: New file.
7427         * c-common.c (targetcm): Don't define here.
7428         * c-common.h (default_handle_c_option): Declare.
7429         * c-format.c: Include c-target.h instead of target.h.
7430         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
7431         include tm.h.
7432         (default_handle_c_option): Move from targhooks.c.
7434 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
7436         PR preprocessor/48248
7437         * c-ppoutput.c (print): Add src_file field.
7438         (init_pp_output): Initialize it.
7439         (maybe_print_line): Don't optimize by adding up to 8 newlines
7440         if map->to_file and print.src_file are different file.
7441         (print_line): Update print.src_file.
7443 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7445         * c-ada-spec.c (compare_comment): Use filename_cmp
7446         instead of strcmp for filename.
7448 2011-03-25  Jeff Law  <law@redhat.com>
7450         * c-common.c (def_fn_type): Add missing va_end.
7452 2011-03-25  Jason Merrill  <jason@redhat.com>
7454         * c.opt: Add -std=c++03.
7456 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
7458         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
7460 2011-03-17  Kai Tietz  <ktietz@redhat.com>
7462         PR target/12171
7463         * c-pretty-print.c (pp_c_specifier_qualifier_list):
7464         Display allowed attributes for function pointer types.
7465         (pp_c_attributes_display): New function to display
7466         attributes having affects_type_identity flag set to true.
7467         * c-pretty-print.h (pp_c_attributes_display): New prototype.
7469         * c-common.c (c_common_attribute_table):
7470         Add new element.
7471         (c_common_format_attribute_table): Likewise.
7473 2011-03-18  Jason Merrill  <jason@redhat.com>
7475         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
7476         * c-common.h: Don't declare it here.
7477         * c-common.c: Or define it here.
7478         * c-opts.c (c_common_handle_option): Or set it here.
7480         PR c++/35315
7481         * c-common.c (handle_transparent_union_attribute): Don't
7482         make a duplicate type in C++.
7484 2011-03-15  Jason Merrill  <jason@redhat.com>
7486         * c-common.c (max_constexpr_depth): New.
7487         * c-common.h: Declare it.
7488         * c-opts.c (c_common_handle_option): Set it.
7489         * c.opt (fconstexpr-depth): New option.
7491 2011-03-11  Jason Merrill  <jason@redhat.com>
7493         * c-common.c (attribute_takes_identifier_p): Add missing const.
7495         PR c++/46803
7496         * c-common.c (attribute_takes_identifier_p): Assume that an
7497         unknown attribute takes an identifier.
7499 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
7501         PR c/47786
7502         * c-common.c (c_type_hash): Call list_length instead of iterating
7503         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
7505 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
7507         PR c/47809
7508         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
7510 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
7512         * c.opt (fobjc-abi-version=) New.
7513         (fobjc-nilcheck): New.
7515 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
7517         PR c++/46890
7518         * c-common.h (keyword_is_decl_specifier): Declare.
7519         * c-common.c (keyword_is_decl_specifier): Define.
7520         (keyword_is_function_specifier): New function.
7522 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
7524         PR c/47473
7525         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
7526         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
7527         REAL_TYPE.
7529 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
7531         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
7533 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
7535         PR pch/47430
7536         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
7537         after init_c_lex if pch_file is set.
7539 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
7541         PR c++/43601
7542         * c.opt (-fkeep-inline-dllexport): New switch.
7544 2011-01-12  Richard Guenther  <rguenther@suse.de>
7546         PR middle-end/32511
7547         * c-common.c (handle_weak_attribute): Warn instead of error
7548         on declaring an inline function weak.
7550 2011-01-05  Tom Tromey  <tromey@redhat.com>
7552         * c-common.h (lvalue_error): Update.
7553         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
7554         not error.
7556 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
7558         PR objc/47075
7559         * c-objc.h (objc_finish_message_expr): Added argument to
7560         prototype.
7562 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
7564         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
7565         Use prototype_p.
7567 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
7569         * c-objc.h (objc_maybe_warn_exceptions): New.
7570         * stub-objc.c (objc_maybe_warn_exceptions): New.
7572 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
7574         * c-common.h (readonly_error): Declare.
7575         * c-common.c (readonly_error): Define.
7577 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
7579         * c-common.h (invalid_indirection_error): Declare.
7580         * c-common.c (invalid_indirection_error): Define.
7582 2010-12-03  Richard Guenther  <rguenther@suse.de>
7584         PR c/46745
7585         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
7586         (pp_c_unary_expression): Likewise.
7587         (pp_c_expression): Likewise.
7589 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
7591         * c-common.h (objc_finish_function): New.
7592         (objc_non_volatilized_type): Removed.
7593         (objc_type_quals_match): Removed.
7594         * stub-objc.c (objc_finish_function): New.
7595         (objc_non_volatilized_type): Removed.
7596         (objc_type_quals_match): Removed.
7598 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
7600         * c-common.h (parse_optimize_options): Declare.
7601         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
7602         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
7604 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
7606         * c-opts.c (check_deps_environment_vars): Use getenv instead of
7607         GET_ENVIRONMENT.
7608         * c-pch.c (O_BINARY): Don't define here.
7609         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
7611 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
7613         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
7614         targetm.except_unwind_info.
7616 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
7618         * c-opts.c (c_common_handle_option): Pass location to
7619         set_struct_debug_option.
7621 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
7623         * c-common.c (visibility_options): Move from ../opts.c.
7624         * c-common.h (struct visibility_flags, visibility_options):
7625         Declare here.
7626         * c-opts.c (finish_options): Rename to c_finish_options.
7627         (c_common_init): Update call to finish_options.
7629 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
7631         PR objc/34033
7632         * c-lex.c (lex_string): Check that each string in an Objective-C
7633         string concat sequence starts with either one or zero '@', and
7634         that there are no spurious '@' signs at the end.
7636 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
7638         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
7639         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
7640         HANDLE_PRAGMA_VISIBILITY.
7641         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
7642         HANDLE_PRAGMA_VISIBILITY): Don't define.
7643         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
7645 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
7647         PR c++/16189
7648         PR c++/36888
7649         PR c++/45331
7650         * c-common.h (keyword_begins_type_specifier): Declare.
7651         (keyword_is_storage_class_specifier): Declare.
7652         (keyword_is_type_qualifier): Declare.
7653         * c-common.c (keyword_begins_type_specifier): New function.
7654         (keyword_is_storage_class_specifier): New function.
7655         (keyword_is_type_qualifier): Declare.
7657 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
7659         PR c/46547
7660         * c-common.c (in_late_binary_op): Define.
7661         (c_common_truthvalue_conversion): Check in_late_binary_op before
7662         calling c_save_expr.
7663         * c-common.h (in_late_binary_op): Declare.
7665 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
7667         * c-opts.c (c_common_handle_option): Update calls to
7668         set_struct_debug_option.
7670 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
7672         * c-common.h (objc_declare_protocols): Added additional argument.
7673         * stub-objc.c (objc_declare_protocol): Same change.
7675 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
7677         PR c/33193
7678         * c-common.h (build_real_imag_expr): Declare.
7679         * c-semantics.c (build_real_imag_expr): Define.
7681 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
7683         * c-opts.c (c_common_parse_file): Take no arguments.
7684         * c-common.h (c_common_parse_file): Update prototype.
7686 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
7688         PR c++/46401
7689         * c-common.c (warning_candidate_p): Don't track non-const calls
7690         or STRING_CSTs.
7692 2010-11-15  Ian Lance Taylor  <iant@google.com>
7694         * c-lex.c (init_c_lex): Set macro debug callbacks if
7695         flag_dump_go_spec is set.
7697 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
7699         * c-common.h (objc_build_incr_expr_for_property_ref): New.
7700         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
7702 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
7704         PR preprocessor/45038
7705         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
7706         dialects.
7708 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
7710         * c-common.h (c_family_lang_mask): Declare.
7711         * c-opts.c (c_family_lang_mask): Make extern.
7712         * c-pragma.c (handle_pragma_diagnostic): Use
7713         control_warning_option.
7715 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
7717         * c-common.c (parse_optimize_options): Update call to
7718         decode_options.
7719         * c-common.h (c_common_handle_option): Update prototype.
7720         * c-opts.c (c_common_handle_option): Take location_t parameter and
7721         pass it to other functions.
7723 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
7725         * c-opts.c (warning_as_error_callback): Remove.
7726         (c_common_initialize_diagnostics): Don't call
7727         register_warning_as_error_callback.
7728         (c_common_handle_option): Handle -Werror=normalized= here.
7730 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
7732         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
7733         in diagnostic.
7734         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
7735         letter.
7736         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
7737         Remove trailing '.' from diagnostics.
7738         * c.opt (Wwrite-strings_: Avoid '`' in help text.
7740 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
7742         * c-common.c (parse_optimize_options): Pass global_dc to
7743         decode_options.
7744         * c-opts.c (c_common_handle_option): Pass &global_options to
7745         set_Wstrict_aliasing.
7746         * c.opt (v): Don't mark Common or document here.
7748 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
7750         PR target/44981
7751         * c-format.c (format_type): New type gcc_objc_string_format_type.
7752         (valid_stringptr_type_p): New.
7753         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
7754         (check_format_string): Pass expected type, use
7755         valid_stringptr_type_p (), check that the format string types are
7756         consistent with the format specification.
7757         (decode_format_attr): Warn if NSString is used outside objective-c.
7758         (format_types_orig): Add NSString.
7759         (format_name): New.
7760         (format_flags): New.
7761         (check_format_arg): Handle format strings requiring an external parser.
7762         first_target_format_type: New variable.
7763         (handle_format_attribute): Set up first_target_format_type, pass the
7764         expected format arg string type to check_format_string().
7765         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL):  New flag.
7766         * stub-objc.c (objc_string_ref_type_p): New.
7767         (objc_check_format_arg): New.
7769 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
7771         Fixed using the Objective-C 2.0 dot-syntax with class names.
7772         * c-common.h (objc_build_class_component_ref): New.
7773         * stub-objc.c (objc_build_class_component_ref): New.
7775 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
7777         * c.opt (Wproperty-assign-default): New option.
7779 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
7781         Implemented -fobjc-std=objc1 flag.
7782         * c.opt (fobjc-std=objc1): New option.
7784 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
7786         Implemented format and noreturn attributes for Objective-C methods.
7787         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
7788         attribute for Objective-C methods.
7790 2010-10-31  Jason Merrill  <jason@redhat.com>
7792         * c-common.c (conversion_warning, warn_for_collisions_1): Use
7793         EXPR_LOC_OR_HERE.
7795 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
7797         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
7798         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
7799         (objc_add_property_declaration): Removed arguments for copies and
7800         ivar.
7801         (objc_build_getter_call): Renamed to
7802         objc_maybe_build_component_ref.
7803         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
7804         (objc_is_property_ref): New.
7805         * c-common.c (c_common_reswords): Removed copies and ivar.
7806         * stub-objc.c (objc_add_property_declaration): Removed arguments
7807         for copies and ivar.
7808         (objc_build_getter_call): Renamed to
7809         objc_maybe_build_component_ref.
7810         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
7811         (objc_is_property_ref): New.
7813 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
7814             Matthew Gingell  <gingell@adacore.com>
7816         * c-ada-spec.c (separate_class_package): New function.
7817         (pp_ada_tree_identifier): Prefix references to C++ classes with the
7818         name of their enclosing package.
7819         (print_ada_declaration): Use separate_class_package.
7821 2010-10-27  Jason Merrill  <jason@redhat.com>
7823         * c-common.c (c_common_reswords): Add __is_literal_type.
7824         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
7826         * c-common.c (check_case_value): Remove special C++ code.
7828 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
7830         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
7831         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
7832         and RID_LAST_PATTR.
7833         (objc_add_property_declaration): Added additional arguments.
7834         (objc_property_attribute_kind): Removed.
7835         (objc_set_property_attr): Removed.
7836         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
7837         copy and nonatomic.
7838         * stub-objc.c (objc_add_property_declaration): Added additional
7839         arguments.
7840         (objc_set_property_attr): Removed.
7842 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
7844         * c-common.h (objc_add_property_variable): Renamed to
7845         objc_add_property_declaration.  Added location argument.
7846         * stub-objc.c (objc_add_property_variable): Same change.
7848 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
7850         * c-common.h (objc_maybe_printable_name): New.
7851         * stub-objc.c (objc_maybe_printable_name): New.
7853 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
7854             Andrew Pinski  <pinskia@gmail.com>
7856         * c-common.h (c_common_mark_addressable_vec): Declare.
7857         * c-common.c (c_common_mark_addressable_vec): New function.
7859 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
7861         * c-common.h (objc_set_method_type): Removed.
7862         (objc_add_method_declaration): Added boolean argument.
7863         (objc_start_method_definition): Same change.
7864         (objc_build_method_signature): Same change.
7865         * stub-objc.c (objc_set_method_type): Removed.
7866         (objc_add_method_declaration): Added boolean argument.
7867         (objc_start_method_definition): Same change.
7868         (objc_build_method_signature): Same change.
7870 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
7872         * c-common.h (finish_file): Removed.
7873         (objc_write_global_declarations): New.
7874         * c-opts.c (c_common_parse_file): Do not call finish_file.
7875         * stub-objc.c (objc_write_global_declarations): New.
7877 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
7879         Implemented parsing @synthesize and @dynamic for
7880         Objective-C/Objective-C++.
7881         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
7882         (objc_add_synthesize_declaration): New.
7883         (objc_add_dynamic_declaration): New.
7884         * c-common.c (c_common_reswords): Add synthesize and dynamic.
7885         * stub-objc.c (objc_add_synthesize_declaration): New.
7886         (objc_add_dynamic_declaration): New.
7888 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
7890         PR target/46041
7891         * c-cppbuiltin.c (mode_has_fma): Move function here from
7892         builtins.c.  Don't use the fma optab, instead just use the
7893         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
7894         using -save-temps.
7896 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
7898         Merge from 'apple/trunk' branch on FSF servers.
7900         2005-11-08  Fariborz Jahanian  <fjahanian@apple.com>
7902         Radar 4330422
7903         * c-common.h (objc_non_volatilized_type): New declaration
7904         * stub-objc.c (objc_non_volatilized_type): New stub.
7906 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
7908         Merge from 'apple/trunk' branch on FSF servers.
7910         2006-03-27 Fariborz Jahanian  <fjahanian@apple.com>
7912         Radar 4133425
7913         * c-common.h (objc_diagnose_private_ivar): New decl.
7914         * stub-objc.c (objc_diagnose_private_ivar): New stub.
7916 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
7918         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
7919         * c-common.h (enum rid): Add RID_AT_PACKAGE.
7920         (objc_ivar_visibility_kind): New enum.
7921         (objc_set_visibility): Adjust prototype to use visibility enum.
7922         * stub-objc.c (objc_set_visibility): Adjust stub to use
7923         visibility enum.
7925 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
7927         * c-cppbuiltin.c (builtin_define_float_constants): Emit
7928         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
7929         has the appropriate fma builtins.
7930         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
7932 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
7934         merge from FSF apple 'trunk' branch.
7935         2006 Fariborz Jahanian  <fjahanian@apple.com>
7937         Radars 4436866, 4505126, 4506903, 4517826
7938         * c-common.c (c_common_resword): Define @property and its attributes.
7939         * c-common.h: Define property attribute enum entries.
7940         (OBJC_IS_PATTR_KEYWORD): New.
7941         (objc_property_attribute_kind): New enum.
7942         Declare objc_set_property_attr (), objc_add_property_variable (),
7943         objc_build_getter_call () and objc_build_setter_call ().
7944         * stub-objc.c (objc_set_property_attr): New stub.
7945         (objc_add_property_variable): Likewise.
7946         (objc_build_getter_call): Likewise.
7947         (objc_build_setter_call) Likewise.
7949 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
7951         merge from FSF apple 'trunk' branch.
7952         2006-04-26 Fariborz Jahanian  <fjahanian@apple.com>
7954         Radar 3803157 (method attributes)
7955         * c-common.c (handle_deprecated_attribute): Recognize
7956         objc methods as valid declarations.
7957         * c-common.h: Declare objc_method_decl ().
7958         * stub-objc.c (objc_method_decl): New stub.
7960 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
7962         * c-common.c (parse_optimize_options): Call
7963         decode_cmdline_options_to_array_default_mask before
7964         decode_options.  Update arguments to decode_options.
7965         * c-common.h (c_common_init_options_struct): Declare.
7966         * c-opts.c (c_common_init_options_struct): New.  Split out from
7967         c_common_init_options.
7969 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
7971         Implemented fast enumeration for Objective-C.
7972         * c-common.h (objc_finish_foreach_loop): New.
7973         * stub-objc.c (objc_finish_foreach_loop): New.
7975 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
7977         * c-common.h (struct diagnostic_context): Don't declare here.
7978         (c_common_initialize_diagnostics): Declare using
7979         diagnostic_context typedef.
7980         * c-opts.c (c_common_handle_option): Pass global_dc to
7981         handle_generated_option.
7983 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
7985         * c-opts.c (c_common_handle_option): Pass &global_options_set to
7986         handle_generated_option.
7988 2010-10-03  Ian Lance Taylor  <iant@google.com>
7990         * c.opt (-fplan9-extensions): New option.
7992 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7994         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
7995         Remove.
7996         (c_cpp_builtins): Call functions from cppbuiltin.c instead
7997         of duplicating code.
7999 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
8001         * c-common.c: Add two new entries for @optional
8002         and @required keywords.
8004         merge from FSF 'apple/trunk' branch.
8005         2006-01-30  Fariborz Jahanian  <fjahanian@apple.com>
8007         Radar 4386773
8008         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
8009         objective-c keywords.
8010         (objc_set_method_opt): New declaration.
8011         * stub-objc.c (objc_set_method_opt): New stub.
8013 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
8015         * c-common.c (handle_optimize_attribute): Pass &global_options to
8016         cl_optimization_save and cl_optimization_restore.
8017         * c-opts.c (c_common_handle_option): Pass &global_options to
8018         handle_generated_option.
8019         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
8020         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
8021         &global_options to cl_optimization_restore.
8023 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
8025         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
8026         Objective-C/Objective-C++ keywords.
8028 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
8030         Merge from 'apple/trunk' branch on FSF servers.
8032         2005-10-04  Fariborz Jahanian  <fjahanian@apple.com>
8034         Radar 4281748
8035         * c-common.h (objc_check_global_decl): New declaration.
8036         * stub-objc.c (objc_check_global_decl): New stub.
8038 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
8040         * c.opt: Don't use VarExists.
8042 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
8044         * c-common.c (c_cpp_error): Update names of diagnostic_context
8045         members.
8046         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
8047         cl_optimization members.
8048         * c-opts.c (warning_as_error_callback, c_common_handle_option,
8049         sanitize_cpp_opts, finish_options): Update names of cpp_options
8050         members.
8052 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
8054         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
8055         (objc_is_reserved_word): Removed.
8056         * c-common.c: Updated comments.
8057         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
8058         objc_is_reserved_word.
8059         * stub-objc.c (objc_is_reserved_word): Removed.
8061 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
8063         * c-common.h (objc_add_method_declaration): Adjust prototype to
8064         include attributes.
8065         (objc_start_method_definition): Likewise.
8066         (objc_build_keyword_decl): Likewise.
8067         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
8068         (objc_start_method_definition): Likewise.
8069         (objc_build_keyword_decl): Likewise.
8071 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
8073         * c-common.h (objc_start_class_interface): Adjust prototype.
8074         (objc_start_category_interface): Likewise.
8075         (objc_start_protocol): Likewise.
8076         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
8077         (objc_start_class_interface): Likewise.
8078         (objc_start_category_interface): Likewise.
8080 2010-09-27  Ian Lance Taylor  <iant@google.com>
8082         * c-common.c (c_common_attribute_table): Add no_split_stack.
8083         (handle_no_split_stack_attribute): New static function.
8085 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
8087         Merge from 'apple/trunk' branch on FSF servers.
8089         2005-12-15  Fariborz Jahanian  <fjahanian@apple.com>
8091         Radar 4229905
8092         * c-common.h (objc_have_common_type): New declaration.
8093         * stub-objc.c (objc_have_common_type): New stub.
8095         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
8097         Radar 4154928
8098         * c-common.h (objc_common_type): New prototype.
8099         * stub-objc.c (objc_common_type): New stub.
8101 2010-09-24  Jan Hubicka  <jh@suse.cz>
8103         * c-common.c (handle_leaf_attribute): New function.
8104         (struct attribute_spec c_common_att): Add leaf.
8106 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
8108         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
8109         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
8110         -dump, -dump=, -imacros, -imacros=, -include, -include=,
8111         -include-barrier, -include-directory, -include-directory=,
8112         -include-directory-after, -include-directory-after=,
8113         -include-prefix, -include-prefix=, -include-with-prefix,
8114         -include-with-prefix=, -include-with-prefix-after,
8115         -include-with-prefix-after=, -include-with-prefix-before,
8116         -include-with-prefix-before=, -no-integrated-cpp,
8117         -no-line-commands, -no-standard-includes, -no-warnings, -output,
8118         -output=, -pedantic, -pedantic-errors, -preprocess,
8119         -print-missing-file-dependencies, -trace-includes, -traditional,
8120         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
8121         -user-dependencies, -verbose, -write-dependencies,
8122         -write-user-dependencies, no-integrated-cpp, traditional): New.
8124 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8126         PR objc/23710
8127         * c-common.h (objc_start_method_definition): Return bool instead
8128         of void.
8129         * stub-objc.c (objc_start_method_definition): Return bool instead
8130         of void.
8132 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8134         PR objc/25965
8135         * c-common.h (objc_get_interface_ivars): New declaration.
8136         * stub-objc.c (objc_get_interface_ivars): New stub.
8138 2010-09-15  Ian Lance Taylor  <iant@google.com>
8140         * c-common.c (parse_optimize_options): Do not capitalize warning
8141         messages.  Remove period at end of warning message.
8143 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
8145         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
8146         (handle_alias_attribute): ... here.
8147         (handle_ifunc_attribute): New.
8149 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
8151         * c-common.h (do_warn_double_promotion): Declare.
8152         * c-common.c (do_warn_double_promotion): Define.
8154 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
8156         * c.opt (Wdouble-promotion): New.
8158 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
8160         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
8161         fvtable-thunks, fxref): Mark no longer supported in help text.
8163 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
8165         * c.opt (Wimport, fall-virtual, falt-external-templates,
8166         fdefault-inline, fenum-int-equiv, fexternal-templates,
8167         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
8168         fname-mangling-version-, fnew-abi, fnonnull-objects,
8169         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
8170         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
8171         applicable.
8172         (fhandle-exceptions): Mark with Alias and Warn.
8173         * c-opts.c (c_common_handle_option): Don't handle options marked
8174         as ignored.
8176 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
8178         * c.opt (Wcomments, Werror-implicit-function-declaration,
8179         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
8180         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
8181         aliases.
8182         * c-common.c (option_codes): Use OPT_Wcomment instead of
8183         OPT_Wcomments.
8184         * c-opts.c (warning_as_error_callback, c_common_handle_option):
8185         Don't handle options marked as aliases.
8187 2010-08-25  Richard Guenther  <rguenther@suse.de>
8189         * c-common.c (c_common_get_alias_set): Remove special
8190         handling for pointers.
8192 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
8194         * c-common.c: Use FOR_EACH_VEC_ELT.
8195         * c-gimplify.c: Likewise.
8196         * c-pragma.c: Likewise.
8198 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
8200         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
8201         RejectDriver.
8202         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
8203         RejectDriver.
8204         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
8205         instead of OPT_MDX and OPT_MMDX.
8207 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
8209         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
8211 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
8213         * c.opt (MD, MMD): Change to MDX and MMDX.
8214         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
8216 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
8218         * c-opts.c (c_common_handle_option): Call handle_generated_option
8219         instead of handle_option.
8221 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
8223         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
8224         (maybe_apply_renaming_pragma): Delete unneeded declarations.
8226 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
8228         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
8229         (pending_redefine_extname): Change type to a VEC.
8230         (add_to_renaming_pragma_list): Update for new type of
8231         pending_redefine_extname.
8232         (maybe_apply_renaming_pragma): Likewise.
8234 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
8236         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
8237         visited.
8238         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
8239         decide whether a type has already been declared/seen.
8240         Do not go to the original type.
8241         (dump_nested_types): New parameter forward.
8242         Generate forward declaration if needed and mark type as visited.
8243         (print_ada_declaration): Call dump_nested_types if not already done.
8244         Mark types as visited.
8246 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
8248         * c.opt (-print-pch-checksum): Remove option.
8249         * c-opts.c (c_common_handle_option): Don't handle
8250         OPT_print_pch_checksum.
8252 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8254         * c-common.h (c_common_handle_option): Update prototype and return
8255         value type.
8256         * c-opts.c (c_common_handle_option): Update prototype and return
8257         value type.  Update calls to handle_option and
8258         enable_warning_as_error.
8260 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
8262         PR c/45079
8263         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
8265 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8267         * c-common.h (c_common_missing_argument): Remove.
8268         * c-opts.c (c_common_missing_argument): Remove.
8269         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
8270         idirafter, imacros, include, isysroot, isystem, iquote): Add
8271         MissingArgError.
8272         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
8274 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8276         * c-common.h (c_common_option_lang_mask,
8277         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
8278         New.
8279         (c_common_init_options): Update prototype.
8280         * c-opts.c (c_common_option_lang_mask): New.
8281         (c_common_initialize_diagnostics): Split out of
8282         c_common_init_options.
8283         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
8284         New.
8285         (c_common_init_options): Update prototype.  Use decoded options in
8286         search for -lang-asm.
8288 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
8290         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
8291         * c-format.c: Likewise.
8293 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8295         * c-common.h: Include diagnostic-core.h. Error if already
8296         included.
8297         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
8299 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8301         * c-common.c (IN_GCC_FRONTEND): Do not undef.
8302         Do not include expr.h
8303         (vector_mode_valid_p): Move here.
8305 2010-06-21  DJ Delorie  <dj@redhat.com>
8307         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
8308         allow these pragmas anywhere.
8310 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
8312         PR bootstrap/44509
8313         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
8314         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
8315         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
8316         ggc_strdup instead of xstrdup.
8318 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
8320         * c-cppbuiltin.c: Include cpp-id-data.h.
8321         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
8322         (lazy_hex_fp_value): New function.
8323         (builtin_define_with_hex_fp_value): Provide definitions lazily.
8325 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8327         * c-gimplify.c: Do not include tree-flow.h
8329 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
8331         PR other/44034
8332         * c-common.c: Rename targetm member:
8333         targetm.enum_va_list -> targetm.enum_va_list_p
8335 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
8337         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
8339 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
8341         * c-cppbuiltin.c: Do not include except.h.
8343 2010-06-24  Andi Kleen  <ak@linux.intel.com>
8345         * c-common.c (warn_for_omitted_condop): New.
8346         * c-common.h (warn_for_omitted_condop): Add prototype.
8348 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
8350         * c.opt (lang-objc): Remove.
8351         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
8353 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
8355         * c-opts.c: Include "tm_p.h".
8357 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
8359         * c-common.c (parse_optimize_options): Update call to
8360         decode_options.
8362 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
8364         * c-common.c (record_types_used_by_current_var_decl): Adjust for
8365         new type of types_used_by_cur_var_decl.
8367 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
8369         PR bootstrap/44512
8370         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
8371         for C++ standard compliance.
8373 2010-06-16  Jason Merrill  <jason@redhat.com>
8375         * c.opt: Add -Wnoexcept.
8377 2010-06-16  Richard Guenther  <rguenther@suse.de>
8379         PR c/44555
8380         * c-common.c (c_common_truthvalue_conversion): Remove
8381         premature and wrong optimization concering ADDR_EXPRs.
8383 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
8385         * c-ada-spec.c (dump_sloc): Remove column info.
8386         (is_simple_enum): New function.
8387         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
8388         enum types when relevant.
8390 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8392         * c-common.c (conversion_warning): Warn at expression
8393         location.
8395 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
8397         * c-opts.c (c_common_handle_option): Don't handle
8398         OPT_fshow_column.
8400 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8402         * c-pragma.c (push_alignment): Use typed GC allocation.
8403         (handle_pragma_push_options): Likewise.
8405         * c-common.c (parse_optimize_options): Likewise.
8407         * c-common.h (struct sorted_fields_type): Add variable_size GTY
8408         option.
8410 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
8412         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
8413         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
8414         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
8415         flag_signed_bitfields, warn_strict_null_sentinel,
8416         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
8417         flag_gen_declaration, flag_no_gnu_keywords,
8418         flag_implement_inlines, flag_implicit_templates,
8419         flag_implicit_inline_templates, flag_optional_diags,
8420         flag_elide_constructors, flag_default_inline, flag_rtti,
8421         flag_conserve_space, flag_access_control, flag_check_new,
8422         flag_new_for_scope, flag_weak, flag_working_directory,
8423         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
8424         flag_enforce_eh_specs, flag_threadsafe_statics,
8425         flag_pretty_templates): Remove.
8426         * c-common.h (flag_preprocess_only, flag_nil_receivers,
8427         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
8428         flag_replace_objc_classes, flag_undef, flag_no_builtin,
8429         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
8430         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
8431         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
8432         flag_no_gnu_keywords, flag_implement_inlines,
8433         flag_implicit_templates, flag_implicit_inline_templates,
8434         flag_optional_diags, flag_elide_constructors, flag_default_inline,
8435         flag_rtti, flag_conserve_space, flag_access_control,
8436         flag_check_new, flag_new_for_scope, flag_weak,
8437         flag_working_directory, flag_use_cxa_atexit,
8438         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
8439         flag_threadsafe_statics, flag_pretty_templates,
8440         warn_strict_null_sentinel): Remove.
8441         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
8442         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
8443         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
8444         fimplicit-inline-templates, fimplicit-templates,
8445         flax-vector-conversions, fms-extensions, fnil-receivers,
8446         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
8447         frtti, fshort-double, fshort-enums, fshort-wchar,
8448         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
8449         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
8450         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
8451         gen-decls, undef): Use Var.
8452         (fdefault-inline, foptional-diags): Document as doing nothing.
8453         * c-opts.c (c_common_handle_option): Remove cases for options now
8454         using Var.  Mark ignored options as such.
8456 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
8458         * c-common.c: Moved to here from parent directory.
8459         * c-common.def: Likewise.
8460         * c-common.h: Likewise.
8461         * c-cppbuiltin.c: Likewise.
8462         * c-dump.c: Likewise.
8463         * c-format.c: Likewise.
8464         * c-format.h : Likewise.
8465         * c-gimplify.c: Likewise.
8466         * c-lex.c: Likewise.
8467         * c-omp.c: Likewise.
8468         * c.opt: Likewise.
8469         * c-opts.c: Likewise.
8470         * c-pch.c: Likewise.
8471         * c-ppoutput.c: Likewise.
8472         * c-pragma.c: Likewise.
8473         * c-pragma.h: Likewise.
8474         * c-pretty-print.c: Likewise.
8475         * c-pretty-print.h: Likewise.
8476         * c-semantics.c: Likewise.
8477         * stub-objc.c: Likewise.
8479         * c-common.c: Include gt-c-family-c-common.h.
8480         * c-pragma.c: Include gt-c-family-c-pragma.h.
8482 Copyright (C) 2010-2017 Free Software Foundation, Inc.
8484 Copying and distribution of this file, with or without modification,
8485 are permitted in any medium without royalty provided the copyright
8486 notice and this notice are preserved.