P1236R1 - Signed integers are two's complement
[official-gcc.git] / gcc / c-family / ChangeLog
blobeadad49615673c4bb3d6cce2d968a1d4fe95b710
1 2018-11-14  Jakub Jelinek  <jakub@redhat.com>
3         P1236R1 - Signed integers are two's complement
4         * c-warn.c (maybe_warn_shift_overflow): Don't warn for c++2a.
5         * c-ubsan.c (ubsan_instrument_shift): Make signed shifts
6         with in-range second operand well defined for -std=c++2a.
8         PR other/88007
9         * c-common.c (parse_optimize_options): Allocate option string from
10         opts_obstack rather than as GC memory.  Move the allocation after
11         warning for invalid option.
13 2018-11-13  David Malcolm  <dmalcolm@redhat.com>
15         * c-common.c (c_get_substring_location): Update for renaming of
16         get_source_location_for_substring to get_location_within_string.
17         * c-lex.c: Replace "source_location" with "location_t".
18         * c-opts.c: Likewise.
19         * c-ppoutput.c: Likewise.
21 2018-11-13  Martin Sebor  <msebor@redhat.com>
23         PR middle-end/81824
24         * c-attribs.c (handle_copy_attribute): Exclude inlining attributes.
25         (handle_tls_model_attribute): Improve diagnostics.
27 2018-11-12  Jason Merrill  <jason@redhat.com>
29         * c-cppbuiltin.c (c_cpp_builtins): Define
30         __cpp_impl_destroying_delete.
32         * c-cppbuiltin.c (c_cpp_builtins): Change __cpp_explicit_bool to
33         __cpp_conditional_explicit.
35 2018-11-09  Martin Sebor  <msebor@redhat.com>
37         PR middle-end/81824
38         * c-attribs.c (handle_copy_attribute): New function.
40 2018-11-09  Martin Sebor  <msebor@redhat.com>
42         PR c/87795
43         * c-common.c (check_user_alignment): Use MAX_OFILE_ALIGNMENT.
45 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
47         * c-common.h (c_finish_omp_taskgroup): Add CLAUSES argument.
48         (c_finish_omp_atomic): Replace bool SEQ_CST argument with
49         enum omp_memory_order MEMORY_ORDER.
50         (c_finish_omp_flush): Add MO argument.
51         (c_omp_depend_t_p, c_finish_omp_depobj): Declare.
52         (c_finish_omp_for): Add FINAL_P argument.
53         * c-omp.c: Include memmodel.h.
54         (c_finish_omp_taskgroup): Add CLAUSES argument.  Set
55         OMP_TASKGROUP_CLAUSES to it.
56         (c_finish_omp_atomic): Replace bool SEQ_CST argument with
57         enum omp_memory_order MEMORY_ORDER.  Set OMP_ATOMIC_MEMORY_ORDER
58         instead of OMP_ATOMIC_SEQ_CST.
59         (c_omp_depend_t_p, c_finish_omp_depobj): New functions.
60         (c_finish_omp_flush): Add MO argument, if not MEMMODEL_LAST, emit
61         __atomic_thread_fence call with the given value.
62         (check_omp_for_incr_expr): Formatting fixes.
63         (c_finish_omp_for): Add FINAL_P argument.  Allow NE_EXPR
64         even in OpenMP loops, diagnose if NE_EXPR and incr expression
65         is not constant expression 1 or -1.  Transform NE_EXPR loops
66         with iterators pointers to VLA into LT_EXPR or GT_EXPR loops.
67         (c_omp_check_loop_iv_r): Look for orig decl of C++ range for
68         loops too.
69         (c_omp_split_clauses): Add support for combined
70         #pragma omp parallel master and
71         #pragma omp {,parallel }master taskloop{, simd} constructs.
72         Handle OMP_CLAUSE_IN_REDUCTION.  Handle OMP_CLAUSE_REDUCTION_TASK.
73         Handle OMP_CLAUSE_NONTEMPORAL.  Handle splitting OMP_CLAUSE_IF
74         also to OMP_SIMD.  Copy OMP_CLAUSE_LASTPRIVATE_CONDITIONAL.
75         (c_omp_predetermined_sharing): Don't return
76         OMP_CLAUSE_DEFAULT_SHARED for const qualified decls.
77         * c-pragma.c (omp_pragmas): Add PRAGMA_OMP_DEPOBJ and
78         PRAGMA_OMP_REQUIRES.
79         * c-pragma.h (enum pragma_kind): Likewise.
80         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_NONTEMPORAL
81         and PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION.
83 2018-11-08  David Malcolm  <dmalcolm@redhat.com>
85         * c-format.c (gcc_dump_printf_char_table): Add entry for %f.
87 2018-11-08  David Malcolm  <dmalcolm@redhat.com>
89         * c-format.c (local_cgraph_node_ptr_node): New variable.
90         (gcc_dump_printf_char_table): Add entry for %C.
91         (get_pointer_to_named_type): New function, taken from the handling
92         code for "gimple *" from...
93         (init_dynamic_diag_info): ...here.  Add handling for
94         "cgraph_node *".
95         * c-format.h (T_CGRAPH_NODE): New.
97 2018-10-19  Jason Merrill  <jason@redhat.com>
99         * c-cppbuiltin.c (c_cpp_builtins): Add
100         __cpp_nontype_template_parameter_class.
102 2018-10-31  Nathan Sidwell  <nathan@acm.org>
104         * c-opts.c (c_finish_options): Force command line macro
105         location.  Refactor to avoid repeating main debug hook.
106         (push_command_line_include): Clarify comment.
108         * c-opts.c (c_finish_options): Adjust cpp_force_token_locations call.
110 2018-10-30  Martin Sebor  <msebor@redhat.com>
112         PR middle-end/87041
113         * c-format.c (check_format_types): Avoid diagnosing null pointer
114         arguments to printf-family of functions.
116 2018-10-30  Marek Polacek  <polacek@redhat.com>
118         Implement P0892R2, explicit(bool).
119         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_explicit_bool.
121 2018-10-29  David Malcolm  <dmalcolm@redhat.com>
123         * name-hint.h (name_hint::take_deferred): New member function.
125 2018-10-29  David Malcolm  <dmalcolm@redhat.com>
127         PR c++/56856
128         * c-common.c (check_function_sentinel): Call fold_for_warn on the
129         argument.
130         (check_function_restrict): Rename param "argarray" to
131         "unfolded_argarray", and make a copy named "argarray", calling
132         fold_for_warn on each argument.
133         (check_function_arguments): Add note about responsibility for
134         folding the arguments.
136 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
138         * c-common.c (flag_isoc2x): New variable.
139         * c-common.h (clk_c): Update comment to reference C2X.
140         (flag_isoc99, flag_isoc11): Update comments to reference future
141         standard versions in general.
142         (flag_isoc2x): Declare.
143         * c-opts.c (set_std_c2x): New function.
144         (c_common_handle_option): Handle -std=c2x and -std=gnu2x.
145         (set_std_c89, set_std_c99, set_std_c11, set_std_c17): Set
146         flag_isoc2x to 0.
147         * c.opt (Wc11-c2x-compat, std=c2x, std=gnu2x): New options.
149 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
151         * c.opt (std=c17, std=c18, std=gnu17, std=gnu18, std=iso9899:2017)
152         (std=iso9899:2018): Document C17 as published in 2018.
154 2018-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
156         PR c++/87364
157         * c-pretty-print.c (c_pretty_printer::constant): Fix typo.
159 2018-10-11  Will Wray  <wjwray@gmail.com>
161         PR c++/87364
162         * c-pretty-print.h (pp_c_type_cast): Prototype.
163         (pp_c_integer_constant): Likewise.
164         * c-pretty-print.c (pp_c_type_cast): No longer static.
165         (pp_c_integer_constant): Likewise.
166         (pp_c_enumeration_constant): Fix loop termination when finding
167         name of constant.  No longer returns a value.  Call
168         pp_c_integer_constant.
169         (c_pretty_printer::constant): Update for changes to
170         pp_c_enumeration_constant.
172 2018-10-11  Jakub Jelinek  <jakub@redhat.com>
174         * c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312
175         for no_unique_address.
177 2018-10-09  David Malcolm  <dmalcolm@redhat.com>
179         * c-common.c (c_option_controlling_cpp_error): Rename to...
180         (c_option_controlling_cpp_diagnostic): ...this, and convert
181         "reason" from int to enum.
182         (c_cpp_error): Rename to...
183         (c_cpp_diagnostic): ...this, converting level and reason to enums.
184         * c-common.h (c_cpp_error): Rename to...
185         (c_cpp_diagnostic): ...this, converting level and reason to enums.
186         * c-opts.c (c_common_init_options): Update for renaming.
188 2018-10-08  Richard Sandiford  <richard.sandiford@arm.com>
190         PR c/87286
191         * c-common.c (vector_types_compatible_elements_p): Use
192         INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE.
194 2018-10-04  Vinay Kumar  <vinay.kumar@blackfigtech.com>
196         * c-attribs.c (get_priority): Add a warning flag warn_prio_ctor_dtor
197         to generate constructor destructor priority warning.
198         * c.opt (-Wprio-ctor-dtor): New option.
200 2018-10-01  Jason Merrill  <jason@redhat.com>
202         * c-lex.c (c_common_has_attribute): Add no_unique_address.
204 2018-10-01  Eric Botcazou  <ebotcazou@adacore.com>
206         * c-ada-spec.c (get_underlying_decl): Get to the main type variant.
207         (dump_ada_node): Add const keyword.
209 2018-09-25  Martin Liska  <mliska@suse.cz>
211         * c-common.c (c_common_truthvalue_conversion):
212         Remove Pascal from documentation.
214 2018-09-21  Eric Botcazou  <ebotcazou@adacore.com>
216         * c-ada-spec.c: Include diagnostic.h.
217         (dump_ada_declaration) <RECORD_TYPE>: Issue a warning on packed layout.
219 2018-09-19  Marek Polacek  <polacek@redhat.com>
221         * c.opt (Wclass-conversion): New.
223 2018-09-17  David Malcolm  <dmalcolm@redhat.com>
225         * c-format.c (range_label_for_format_type_mismatch::get_text):
226         Update for new param.
228 2018-09-17  David Malcolm  <dmalcolm@redhat.com>
230         * c-format.c (format_warning_at_char): Update for introduction of
231         format_string_diagnostic_t.
232         (format_type_warning): Likewise.
234 2018-09-17  Martin Jambor  <mjambor@suse.cz>
236         PR c/63886
237         * c.opt (Wabsolute-value): New.
239 2018-09-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
241         * c-common.c (complete_flexible_array_elts): New helper function.
242         * c-common.h (complete_flexible_array_elts): Declare.
244 2018-09-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
246         * c-common.c (braced_list_to_string): Remove eval parameter.
247         Add some more checks.  Always create zero-terminated STRING_CST.
248         * c-common.h (braced_list_to_string): Adjust prototype.
250 2018-08-27  David Malcolm  <dmalcolm@redhat.com>
252         PR 87091
253         * c-common.c (c_cpp_error): Update for conversion of show_caret_p
254         to a tri-state.
255         (maybe_suggest_missing_token_insertion): Likewise.
256         (maybe_add_include_fixit): Add param "override_location".  If set,
257         and source-printing is enabled, then override the rich_location's
258         primary location with that of the insertion point for the fix-it
259         hint, marking it with SHOW_LINES_WITHOUT_RANGE.
260         * c-common.h (extern void maybe_add_include_fixit): Add bool
261         param.
262         * c-format.c (selftest::test_type_mismatch_range_labels): Update
263         for conversion of show_caret_p to a tri-state.
264         * c-warn.c (warn_for_restrict): Likewise.
265         * known-headers.cc
266         (suggest_missing_header::~suggest_missing_header): Update call to
267         maybe_add_include_fixit to suggest overriding the location, as it
268         is for a note.
270 2018-08-27  Martin Liska  <mliska@suse.cz>
272         * c-common.c (check_function_restrict): Use new function
273         fndecl_built_in_p and remove check for FUNCTION_DECL if
274         possible.
275         (check_builtin_function_arguments): Likewise.
276         (reject_gcc_builtin): Likewise.
277         * c-warn.c (sizeof_pointer_memaccess_warning): Likewise.
279 2018-08-26  Marek Polacek  <polacek@redhat.com>
281         PR c++/87029, Implement -Wredundant-move.
282         * c.opt (Wredundant-move): New option.
284 2018-08-21  Marek Polacek  <polacek@redhat.com>
286         PR c++/86981, Implement -Wpessimizing-move.
287         * c.opt (Wpessimizing-move): New option.
289 2018-08-20  David Malcolm  <dmalcolm@redhat.com>
291         PR other/84889
292         * c-attribs.c (common_handle_aligned_attribute): Add
293         auto_diagnostic_group instance.
294         * c-indentation.c (warn_for_misleading_indentation): Likewise.
295         * c-opts.c (c_common_post_options): Likewise.
296         * c-warn.c (warn_logical_not_parentheses): Likewise.
297         (warn_duplicated_cond_add_or_warn): Likewise.
298         (warn_for_multistatement_macros): Likewise.
300 2018-08-20  Nathan Sidwell  <nathan@acm.org>
302         * c-ada-spec.c (macro_length, dump_ada_macros): Adjust macro parm
303         access.
305 2018-08-17  Nathan Sidwell  <nathan@acm.org>
307         * c-cppbuiltin.c (struct lazy_hex_fp_value_struct): Remove macro
308         field.
309         (laxy_hex_fp_value_count): Make unsigned.
310         (lazy_hex_fp_value): Provided with macro & lazy number.  Directly
311         manipulate the macro.
312         (builtin_defin_with_hex_fp_value): Adjust callback name, use
313         cpp_define_lazily.
315 2018-08-17  David Malcolm  <dmalcolm@redhat.com>
317         * c-format.c (enum format_type): Add gcc_dump_printf_format_type.
318         (gcc_dump_printf_length_specs): New.
319         (gcc_dump_printf_flag_pairs): New.
320         (gcc_dump_printf_flag_specs): New.
321         (gcc_dump_printf_char_table): New.
322         (format_types_orig): Add entry for "gcc_dump_printf".
323         (init_dynamic_diag_info): Set up length_char_specs and
324         conversion_specs for gcc_dump_printf_format_type.
325         (handle_format_attribute): Handle gcc_dump_printf_format_type.
327 2018-08-17  Nathan Sidwell  <nathan@acm.org>
329         * c-ada-spec.c (macro_length, dump_ada_macros): Constify.
331         * c-ada-spec.c: Don't #include "cpp-id-data.h"
332         * c-cppbuiltin.c: Likewise.
334 2018-08-17  Martin Liska  <mliska@suse.cz>
336         * c.opt: Remove Warn, Init and Report for options with
337         Ignore/Deprecated flag. Warning is done automatically for
338         Deprecated flags.
340 2018-08-16  David Malcolm  <dmalcolm@redhat.com>
342         PR c++/70693
343         * c-common.c (selftest::c_family_tests): Call
344         selftest::c_indentation_c_tests.
345         * c-common.h (selftest::c_indentation_c_tests): New decl.
346         * c-indentation.c: Include "selftest.h".
347         (next_tab_stop): Add "tab_width" param, rather than accessing
348         cpp_opts.
349         (get_visual_column): Likewise.  Clarify comment.  Bulletproof
350         against reading past the end of the line.
351         (get_first_nws_vis_column): Add "tab_width" param.
352         (detect_intervening_unindent): Likewise.
353         (should_warn_for_misleading_indentation): Read tab width from
354         cpp_opts and pass around.
355         (selftest::test_next_tab_stop): New test.
356         (selftest::assert_get_visual_column_succeeds): New function.
357         (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro.
358         (selftest::assert_get_visual_column_fails): New function.
359         (ASSERT_GET_VISUAL_COLUMN_FAILS): New macro.
360         (selftest::test_get_visual_column): New test.
361         (selftest::c_indentation_c_tests): New function.
363 2018-08-16  Nathan Sidwell  <nathan@acm.org>
365         * c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p.
366         (store_ada_macro): Likewise.
367         * c-ppoutput.c (cb_used_define, dump_macro): Likewise.
368         * c-spellcheck.cc (should-suggest_as_macro_p): Likewise,
370 2018-08-15  David Malcolm  <dmalcolm@redhat.com>
372         * c-format.c: Include "selftest-diagnostic.h" and
373         "gcc-rich-location.h".
374         (format_warning_at_char): Pass NULL for new label params of
375         format_warning_va.
376         (class indirection_suffix): New class.
377         (class range_label_for_format_type_mismatch): New class.
378         (format_type_warning): Move logic for generating "*" suffix to
379         class indirection_suffix.  Create "fmt_label" and "param_label"
380         to show their types, and pass them to the
381         format_warning_at_substring calls.
382         (selftest::test_type_mismatch_range_labels): New test.
383         (selftest::c_format_c_tests): Call it.
385 2018-08-13  Martin Sebor  <msebor@redhat.com>
387         PR tree-optimization/71625
388         * c-common.c (braced_list_to_string): New function.
389         * c-common.h (braced_list_to_string): Declare it.
391 2018-08-08  Nathan Sidwell  <nathan@acm.org>
393         * c-common.c (try_to_locate_new_include_inertion_point): Use
394         linemap_included_from_linemap.
395         * c-lex.c (fe_file_change): Use linemap_included_from.
396         * c-ppoutput.c (pp_file_change): Likewise.
398 2018-08-01  Martin Sebor  <msebor@redhat.com>
400         PR tree-optimization/86650
401         * c-family/c-format.c (gcc_tdiag_char_table): Update comment for "%G".
402         (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same.
403         (init_dynamic_diag_info): Update from "gcall *" to "gimple *".
404         * c-format.h (T89_G): Update to be "gimple *" rather than
405         "gcall *".
406         (local_gcall_ptr_node): Rename...
407         (local_gimple_ptr_node): ...to this.
409 2018-07-31  David Malcolm  <dmalcolm@redhat.com>
411         * c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing
412         table entries for gcc_diag_char_table, and the 'Z' entry from
413         gcc_tdiag_char_table, changing the "chain" entry for 'Z' from
414         &gcc_tdiag_char_table[0] to &gcc_diag_char_table[0].
415         (gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly
416         adding missing "Z" for this table.  Remove erroneous "G" and "K"
417         entries.
418         (gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE.  Remove "v".
419         (gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE.
420         (gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE.  Remove "v".
422 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
424         * c-common.c (speculation_safe_resolve_call): New function.
425         (speculation_safe_resolve_params): New function.
426         (speculation_safe_resolve_return): New function.
427         (resolve_overloaded_builtin): Handle __builtin_speculation_safe_value.
428         * c-cppbuiltin.c (c_cpp_builtins): Add pre-define for
429         __HAVE_SPECULATION_SAFE_VALUE.
431 2018-07-20  David Malcolm  <dmalcolm@redhat.com>
433         * c-common.c (c_cpp_error): Remove redundant "line_table"
434         parameter from call to rich_location::set_range.
435         (maybe_suggest_missing_token_insertion): Likewise.
437 2018-07-20  Martin Sebor  <msebor@redhat.com>
439         PR middle-end/82063
440         * gcc/c-family/c.opt (-Warray-bounds): Remove redundant -Wall.
442 2018-07-20  Martin Sebor  <msebor@redhat.com>
444         PR middle-end/82063
445         * c-common.h (c_common_handle_option): Change function argument
446         to HOST_WIDE_INT.
447         * c-opts.c (c_common_init_options): Same.
448         (c_common_handle_option): Same.  Remove special handling of
449         OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_.
450         * c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change
451         options to take a HOST_WIDE_INT argument and accept a byte-size
452         suffix.  Initialize.
453         (-Wvla-larger-than): Same.
454         (-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New.
455         (-Wno-vla-larger-than): Same.
457 2018-07-12  Jakub Jelinek  <jakub@redhat.com>
459         * c-attribs.c (c_common_attribute_table): Add
460         "omp declare target implicit" attribute.
462 2018-07-12  Richard Biener  <rguenther@suse.de>
464         PR c/86453
465         * c-attribs.c (handle_packed_attribute): Do not build a variant
466         type with TYPE_PACKED, instead ignore the attribute if we may
467         not apply to the original type.
469 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
471         PR c++/86443
472         * c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv
473         to contain TREE_LIST for both the original class iterator and the
474         "last" helper var.
476 2018-07-07  Eric Botcazou  <ebotcazou@adacore.com>
478         * c-ada-spec.c (to_ada_name): Remove index parameter.
479         (pp_ada_tree_identifier): Likewise.
480         (dump_ada_macros): Adjust call to to_ada_name.
481         (struct overloaded_name_hash): Delete.
482         (struct overloaded_name_hasher): Likewise.
483         (overloaded_names): Likewise.
484         (compute_overloading_index): Likewise.
485         (dump_ada_decl_name): Do not call compute_overloading_index and
486         adjust calls to pp_ada_tree_identifier.
487         (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
488         (dump_ada_import): Add spc parameter and switch to aspect syntax.
489         (dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier.
490         (dump_ada_enum_type): Remove type and display_convention parameters.
491         Adjust calls to pp_ada_tree_identifier.
492         (dump_ada_node): Likewise and for dump_ada_structure.
493         (dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type
494         and tidy up.
495         <RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect
496         syntax.
497         (print_constructor): Adjust call to pp_ada_tree_identifier.
498         (print_destructor): Likewise.
499         (dump_ada_declaration): Switch to aspect syntax.
500         (dump_ada_structure): Likewise and tidy up.  Replace display_convention
501         parameter with nested parameter.
502         (dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005.
503         (dump_ada_specs): Do not delete overloaded_names table.
505 2018-07-06  Peter Bergner  <bergner@linux.ibm.com>
507         PR target/86324
508         * c-attribs.c (handle_mode_attribute): Call translate_mode_attribute
509         target hook.
511 2018-07-05  Nathan Sidwell  <nathan@acm.org>
513         * c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not
514         NO_IMPLICIT_EXTERN_C.
516 2018-06-28  Martin Liska  <mliska@suse.cz>
518         * cppspec.c: Include opt-suggestions.h.
520 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
521             Thomas Schwinge <thomas@codesourcery.com>
522             Cesar Philippidis  <cesar@codesourcery.com>
524         * c-pragma.h (enum pragma_omp_clause): Add
525         PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove
526         PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}.
528 2018-06-20  Jakub Jelinek  <jakub@redhat.com>
530         PR c++/86210
531         * c-common.c (check_nonnull_arg): Use fold_for_warn.  Adjust obsolete
532         comment.
534 2018-06-18  Martin Sebor  <msebor@redhat.com>
536         PR middle-end/85602
537         * c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute
538         nonstring.
540 2018-06-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
542         * c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR.
544 2018-06-13  Jason Merrill  <jason@redhat.com>
546         * c-opts.c (c_common_post_options): Warn about useless -Wabi.
547         (c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version
548         handling.
550         PR c++/86094 - wrong code with defaulted move ctor.
551         * c-opts.c (c_common_post_options): Bump the current ABI version to
552         13.  Set warn_abi_version and flag_abi_compat_version to the current
553         version rather than 0.  Fix defaulting flag_abi_compat_version from
554         warn_abi_version.
556 2018-06-12  Martin Sebor  <msebor@redhat.com>
558         PR c/85931
559         * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when
560         sizeof source and destination yields the same value.
562 2018-06-12  Martin Liska  <mliska@suse.cz>
564         * c.opt: Make MPX-related options as Deprecated.
566 2018-06-08  David Malcolm  <dmalcolm@redhat.com>
568         * c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE
569         rather than 0.
571 2018-06-08  Martin Liska  <mliska@suse.cz>
573         * c-attribs.c (handle_bnd_variable_size_attribute): Remove support
574         for MPX (macros, related functions, fields in cgraph_node, ...).
575         (handle_bnd_legacy): Likewise.
576         (handle_bnd_instrument): Likewise.
577         * c.opt: Likewise.
579 2018-06-06  Jakub Jelinek  <jakub@redhat.com>
581         PR c++/86068
582         * c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set
583         __cpp_transactional_memory to 201500 instead of 210500.
585 2018-06-06  Jason Merrill  <jason@redhat.com>
587         PR c++/85710 - ICE with -Wmemset-elt-size.
588         * c-warn.c (warn_for_memset): Don't crash on incomplete element type.
590 2018-06-01  Jason Merrill  <jason@redhat.com>
592         * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to
593         201703.
595 2018-06-01  Eric Botcazou  <ebotcazou@adacore.com>
597         * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward
598         declaration for a typedef independently of whether the declaration of
599         the subtype is generated.
601 2018-05-31  Martin Sebor  <msebor@redhat.com>
603         PR c/82063
604         * c.opt (-Wno-alloc-size-larger-than): New option.
606 2018-04-22  David Pagan  <dave.pagan@oracle.com>
608         PR c/55976
609         * c-opts.c (c_common_post_options): Set default for warn_return_type
610         for C++/C++ with ObjC extensions only. For C, makes it possible to 
611         differentiate between default (no option), -Wreturn-type, and
612         -Wno-return-type.
614 2018-05-29  Jason Merrill  <jason@redhat.com>
616         * c.opt (Winit-list-lifetime): New flag.
618 2018-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
620         * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and
621         splay_tree_delete_pointers.
623 2018-05-26  Jakub Jelinek  <jakub@redhat.com>
625         PR bootstrap/85921
626         * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary
627         noinline variable to workaround broken kernel headers.
629 2018-05-18  Jason Merrill  <jason@redhat.com>
631         * c.opt (Wdeprecated-copy): New flag.
633 2018-05-17  Martin Liska  <mliska@suse.cz>
635         * c-warn.c (overflow_warning): Do not use
636         space in between 'G_' and '('.
638 2018-05-09  Jason Merrill  <jason@redhat.com>
640         * c-common.c (valid_array_size_p): Add complain parameter.
641         * c-common.h: ...which defaults to true.
643 2018-05-11  Jakub Jelinek  <jakub@redhat.com>
645         PR c/85696
646         * c-omp.c (c_omp_predetermined_sharing): Return
647         OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.
649 2018-05-11  Martin Liska  <mliska@suse.cz>
651         PR sanitizer/85556
652         * c-attribs.c (handle_no_sanitize_attribute): Iterate all
653         TREE_LIST values.
655 2018-05-10  Jakub Jelinek  <jakub@redhat.com>
657         PR c++/85662
658         * c-common.h (fold_offsetof_1): Removed.
659         (fold_offsetof): Add TYPE argument defaulted to size_type_node and
660         CTX argument defaulted to ERROR_MARK.
661         * c-common.c (fold_offsetof_1): Renamed to ...
662         (fold_offsetof): ... this.  Remove wrapper function.  Add TYPE
663         argument, convert the pointer constant to TYPE and use size_binop
664         with PLUS_EXPR instead of fold_build_pointer_plus if type is not
665         a pointer type.  Adjust recursive calls.
667 2018-05-10  Eric Botcazou  <ebotcazou@adacore.com>
669         PR c++/85400
670         * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs.
672 2018-05-07  Nathan Sidwell  <nathan@acm.org>
674         * c.opt (ffor-scope): Remove functionality, issue warning.
676 2018-05-03  Nathan Sidwell  <nathan@acm.org>
678         * c.opt (ffriend-injection): Remove functionality, issue warning.
680 2018-05-01  David Malcolm  <dmalcolm@redhat.com>
682         PR c/84258
683         * c-format.c (struct format_check_results): Add field
684         "number_non_char".
685         (check_format_info): Initialize it, and warn if encountered.
686         (check_format_arg): Distinguish between wide char and
687         everything else when detecting arrays of non-char.
689 2018-04-30  David Malcolm  <dmalcolm@redhat.com>
691         * c-format.c (get_corrected_substring): Update for
692         location_get_source_line returning a char_span.  Use a char_span
693         when handling the prefix of the correction.
694         * c-indentation.c (get_visual_column): Update for
695         location_get_source_line returning a char_span.
696         (get_first_nws_vis_column): Likewise.
698 2018-03-29  David Malcolm  <dmalcolm@redhat.com>
700         PR c++/84269
701         * known-headers.cc (get_stdlib_header_for_name): Add various names
702         from <assert.h>, <string.h>, and <memory.h>; add more names from
703         <stdio.h>.
705 2018-03-27  Jakub Jelinek  <jakub@redhat.com>
707         PR c++/85061
708         * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that
709         get_base_address of the second operand is a VAR_P, rather than the
710         operand itself, and use gcc_checking_assert instead of gcc_assert.
712 2018-03-23  Marek Polacek  <polacek@redhat.com>
714         PR c++/85045
715         * c-pretty-print.c (c_pretty_printer::multiplicative_expression)
716         <case RDIV_EXPR>: Tweak condition.
718 2018-03-20  Eric Botcazou  <ebotcazou@adacore.com>
720         * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool.
722 2018-03-16  Jakub Jelinek  <jakub@redhat.com>
724         PR c/84909
725         * c-warn.c (conversion_warning): Replace "to to" with "to" in
726         diagnostics.
728         PR c/84910
729         * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
730         diagnostics.
732 2018-03-16  Richard Biener  <rguenther@suse.de>
734         PR c/84873
735         * c-gimplify.c (c_gimplify_expr): Revert previous change.  Instead
736         unshare the possibly folded expression.
738 2018-03-15  Richard Biener  <rguenther@suse.de>
740         PR c/84873
741         * c-gimplify.c (c_gimplify_expr): Do not fold expressions.
743 2018-03-13  Martin Sebor  <msebor@redhat.com>
745         PR tree-optimization/84725
746         * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring
747         with all three narrow character types, including their qualified forms.
749 2018-03-12  Martin Sebor  <msebor@redhat.com>
751         PR tree-optimization/83456
752         * gcc/c-family/c-common.c (check_function_restrict): Return bool.
753         Restore checking of bounded built-in functions.
754         (check_function_arguments): Also return the result
755         of warn_for_restrict.
756         * gcc/c-family/c-common.c (check_function_restrict): Return bool.
757         * gcc/c-family/c-warn.c (warn_for_restrict): Return bool.
759 2018-03-02  Marek Polacek  <polacek@redhat.com>
761         PR c++/84171
762         * c-warn.c (warn_for_sign_compare): Bail out if any of the operands
763         is erroneous.
765 2018-03-02  Thomas Schwinge  <thomas@codesourcery.com>
767         * c-attribs.c (c_common_attribute_table): Remove "cilk simd
768         function".
770 2018-03-01  Marek Polacek  <polacek@redhat.com>
772         PR c++/84639
773         * c-attribs.c (common_handle_aligned_attribute): Don't use invalid
774         alignment in computation.
776 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
778         * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case.
779         <REAL_TYPE>: Deal specifically with _Float128/__float128.
781 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
783         * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case.
784         (is_char_array): Take a type instead of a declaration.
785         (dump_ada_array_type): Likewise.
786         (is_simple_enum): Minor tweak.
787         (dump_ada_enum_type): New function extracted from...
788         (dump_ada_node) <ENUMERAL_TYPE>: ...here.  Invoke it.
789         <INTEGER_TYPE>: Remove unreachable code.
790         <RECORD_TYPE>: Likewise.  Minor tweaks.
791         (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes.
792         <ENUMERAL_TYPE>: New case.
793         <RECORD_TYPE>: Factor out common code.
794         (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes.
795         Minor tweaks.  Deal with enumeral types.
796         (dump_ada_structure): Minor tweaks.
798 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
800         * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic
801         address for incomplete structures.
802         (dump_forward_type): Do not bail out for incomplete structures.
803         (dump_ada_declaration): Do not special-case incomplete structures
804         for subtypes.  Dump them as null records for types.
806 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
808         * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
809         (is_char_array): Fix formatting.
810         (dump_template_types): Likewise.
811         (dump_generic_ada_node): Rename into...
812         (dump_ada_node): ...this.
813         <POINTER_TYPE>: Remove superfluous space.  Use generic address for
814         incomplete structures and not for empty structures.  Do not use it
815         when forward declarations are needed.
816         (dump_forward_type): New function.
817         (dump_nested_types): Remove FORWARD parameter.  Do not consider
818         TREE_VISITED and do not generate a forward declaration.  Only dump
819         original nested types for nested declaration.
820         (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
821         <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
822         <RECORD_TYPE>: Do not consider TREE_VISITED.
823         (dump_ada_declaration): Use booleans and fix formatting throughout.
824         <TYPE_DECL>: Skip incomplete structures and not empty structures.
825         Call dump_forward_type instead of dump_nested_types for a typedef.
826         Remove superfluous check and adjust call to dump_nested_types.
827         <POINTER_TYPE>: Call dump_forward_type and fall through.
828         (dump_ada_struct_decl): Rename into...
829         (dump_ada_structure): ...this.  Do not special-case empty structures.
831 2018-02-27  Martin Sebor  <msebor@redhat.com>
833         PR c++/83871
834         * c.opt (-Wmissing-attributes): New option.
836 2018-02-21  Martin Liska  <mliska@suse.cz>
838         * c.opt (Wcatch-value=): Add IntegerRange.
840 2018-02-15  Jason Merrill  <jason@redhat.com>
842         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
844 2018-02-09  Nathan Sidwell  <nathan@acm.org>
846         PR c/84293
847         * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
848         arg.
849         * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
850         arg.  Adjust.
852 2018-02-09  Martin Sebor  <msebor@redhat.com>
854         PR lto/84212
855         * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
856         (-Walloc-size-larger-than, -Wformat-truncation=): Same.
857         (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
858         (-Wstrict-overflow, -Wsuggest-attribute): Same.
859         (-Wuninitialized): Same.
861 2018-02-09  Eric Botcazou  <ebotcazou@adacore.com>
863         * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
864         keyword for components.
866 2018-02-02  Paolo Carlini  <paolo.carlini@oracle.com>
868         * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
870 2018-02-02  Julia Koval  <julia.koval@intel.com>
872         * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
874 2018-01-29  Marek Polacek  <polacek@redhat.com>
876         PR c/83966
877         * c-format.c (check_function_format): Check current_function_decl.
879 2018-01-27  Jakub Jelinek  <jakub@redhat.com>
881         * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
882         argument.
883         (LAZY_HEX_FP_VALUES_CNT): Define.
884         (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
885         values rather than just 12.
886         (builtin_define_with_hex_fp_value): Likewise.
888 2018-01-18  Boris Kolpackov  <boris@codesynthesis.com>
890         PR other/70268
891         * c.opt (-fmacro-prefix-map): New option.
892         * c-opts.c (c_common_handle_option): Handle it.
893         * c-lex.c (init_c_lex): Set remap_filename cpp callback.
894         * c-ppoutput.c (init_pp_output): Likewise.
896 2018-01-17  David Malcolm  <dmalcolm@redhat.com>
898         PR c++/83814
899         * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
901 2018-01-10  Eric Botcazou  <ebotcazou@adacore.com>
903         * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
904         Skip 'f' and 'F' characters if it is true.
905         (store_ada_macro): Minor tweak.
906         (dump_ada_macros) <CPP_COMMENT>: Likewise.
907         <CPP_WSTRING>: Likewise.
908         <CPP_STRING>: Output '&' in the buffer if not the first string.
909         <CPP_NUMBER>: Adjust calls to dump_number.
911 2018-01-10  David Malcolm  <dmalcolm@redhat.com>
913         PR c++/43486
914         * c-common.c: Include "selftest.h".
915         (get_atomic_generic_size): Perform the test for integral type
916         before the range test for any integer constant, fixing indentation
917         of braces.  Call fold_for_warn before testing for an INTEGER_CST.
918         (reject_gcc_builtin): Strip any location wrapper from EXPR.
919         (selftest::test_fold_for_warn): New function.
920         (selftest::c_common_c_tests): New function.
921         (selftest::c_family_tests): Call it, and
922         selftest::c_pretty_print_c_tests.
923         * c-common.h (selftest::c_pretty_print_c_tests): New decl.
924         * c-format.c (check_format_arg): Convert VAR_P check to a
925         fold_for_warn.
926         * c-pretty-print.c: Include "selftest.h".
927         (pp_c_cast_expression): Don't print casts for location wrappers.
928         (selftest::assert_c_pretty_printer_output): New function.
929         (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
930         (selftest::test_location_wrappers): New function.
931         (selftest::c_pretty_print_c_tests): New function.
932         * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
934 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
935             Alan Hayward  <alan.hayward@arm.com>
936             David Sherwood  <david.sherwood@arm.com>
938         * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
940 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
941             Alan Hayward  <alan.hayward@arm.com>
942             David Sherwood  <david.sherwood@arm.com>
944         * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
945         as polynomial.
947 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
948             Alan Hayward  <alan.hayward@arm.com>
949             David Sherwood  <david.sherwood@arm.com>
951         * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
952         (convert_vector_to_array_for_subscript): Handle polynomial
953         TYPE_VECTOR_SUBPARTS.
954         (c_common_type_for_mode): Check valid_vector_subparts_p.
955         * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
956         VECTOR_CST_NELTS.
958 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
960         Update copyright years.
962 2017-12-22  Mike Stump  <mikestump@comcast.net>
963             Eric Botcazou  <ebotcazou@adacore.com>
965         * c-pragma.c (init_pragma): Register pragma GCC unroll.
966         * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
968 2017-12-22  Alexandre Oliva <aoliva@redhat.com>
970         PR debug/83527
971         PR debug/83419
972         * c-semantics.c (only_debug_stmts_after_p): New.
973         (pop_stmt_list): Clear side effects in debug-only stmt list.
974         Check for single nondebug stmt followed by debug stmts only.
976 2017-12-21  Alexandre Oliva  <aoliva@redhat.com>
978         PR debug/83419
979         * c-semantics.c (pop_stmt_list): Propagate side effects from
980         single nondebug stmt to container list.
982 2017-12-19  Jakub Jelinek  <jakub@redhat.com>
984         * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
985         conditions with typical order conditions.
987 2017-12-18  Marek Polacek  <polacek@redhat.com>
989         * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
990         not in effect.
992 2017-12-17  Martin Sebor  <msebor@redhat.com>
994         * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
995         an error for attribute warn_if_not_aligned.
997 2017-12-16  Martin Sebor  <msebor@redhat.com>
999         PR tree-optimization/78918
1000         * c-common.c (check_function_restrict): Avoid checking built-ins.
1001         * c.opt (-Wrestrict): Include in -Wall.
1003 2017-12-15  Jakub Jelinek  <jakub@redhat.com>
1005         * c-attribs.c (c_common_attribute_table,
1006         c_common_format_attribute_table): Swap affects_type_identity
1007         and handler fields, adjust comments.
1009 2017-12-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1011         * c.opt (Wcast-function-type): New warning option.
1012         * c-lex.c (get_fileinfo): Avoid warning.
1013         * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
1015 2017-12-14  Qing Zhao  <qing.zhao@oracle.com>
1017         PR middle_end/79538
1018         * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
1019         Adjust the size of buf1 and buf2, add a new buf to avoid
1020         format-overflow warning.
1022 2017-12-12  Alexandre Oliva <aoliva@redhat.com>
1024         * c-semantics.c (pop_stmt_list): Move begin stmt marker into
1025         subsequent statement list.
1027 2017-12-07  Martin Sebor  <msebor@redhat.com>
1029         PR c/81544
1030         PR c/81566
1031         * c-attribs.c (attr_aligned_exclusions): New array.
1032         (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
1033         (attr_common_exclusions, attr_const_pure_exclusions): Same.
1034         (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
1035         (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
1036         (attr_warn_unused_result_exclusions): Same.
1037         (handle_hot_attribute, handle_cold_attribute): Simplify.
1038         (handle_const_attribute): Warn on function returning void.
1039         (handle_pure_attribute): Same.
1040         (handle_aligned_attribute): Diagnose conflicting attribute
1041         specifications.
1042         * c-warn.c (diagnose_mismatched_attributes): Simplify.
1044 2017-12-06  David Malcolm  <dmalcolm@redhat.com>
1046         PR c/83236
1047         * c-common.c (selftest::c_family_tests): Call
1048         selftest::c_spellcheck_cc_tests.
1049         * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
1050         * c-spellcheck.cc: Include "selftest.h".
1051         (name_reserved_for_implementation_p): New function.
1052         (should_suggest_as_macro_p): New function.
1053         (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
1054         should_suggest_as_macro_p and call it.
1055         (selftest::test_name_reserved_for_implementation_p): New function.
1056         (selftest::c_spellcheck_cc_tests): New function.
1057         * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
1059 2017-12-06  David Malcolm  <dmalcolm@redhat.com>
1061         * c-spellcheck.cc: New file, taken from macro-handling code in
1062         spellcheck-tree.c.
1063         * c-spellcheck.h: New file, taken from macro-handling code in
1064         spellcheck-tree.h.
1066 2017-12-01  Jakub Jelinek  <jakub@redhat.com>
1068         * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
1069         attribute.
1070         (handle_simd_attribute): Don't check for "cilk simd function"
1071         attribute.  Reindent, formatting changes.
1073 2017-11-30  Julia Koval  <julia.koval@intel.com>
1075         * c-common.h (inv_list): Remove.
1077 2017-11-28  Jakub Jelinek  <jakub@redhat.com>
1079         PR sanitizer/81275
1080         * c-common.c (c_switch_covers_all_cases_p_1,
1081         c_switch_covers_all_cases_p): New functions.
1082         * c-common.h (c_switch_covers_all_cases_p): Declare.
1084 2017-11-28  Julia Koval  <julia.koval@intel.com>
1085             Sebastian Peryt  <sebastian.peryt@intel.com>
1087         * array-notation-common.c: Delete.
1088         * c-cilkplus.c: Ditto.
1089         * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
1090         * c-common.def (ARRAY_NOTATION_REF): Remove.
1091         * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
1092         build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
1093         c_validate_cilk_plus_loop, cilkplus_an_parts,
1094         cilk_ignorable_spawn_rhs_op,
1095         cilk_recognize_spawn): Remove.
1096         * c-gimplify.c (CILK_SPAWN_STMT): Remove.
1097         * c-omp.c: Remove CILK_SIMD check.
1098         * c-pragma.c: Ditto.
1099         * c-pragma.h: Remove CILK related pragmas.
1100         * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
1101         ARRAY_NOTATION_REF condition.
1102         (c_pretty_printer::expression): Ditto.
1103         * c.opt (fcilkplus): Remove.
1104         * cilk.c: Delete.
1106 2017-11-21  Marc Glisse  <marc.glisse@inria.fr>
1108         * c-pretty-print.c (pp_c_additive_expression,
1109         c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
1111 2017-11-21  Jakub Jelinek  <jakub@redhat.com>
1113         * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
1115         PR c++/83059
1116         * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
1117         instead of tree_to_uhwi, formatting fix.
1119 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
1121         PR c/81404
1122         * known-headers.cc: New file, based on material from c/c-decl.c.
1123         (suggest_missing_header): Copied as-is.
1124         (get_stdlib_header_for_name): New, based on get_c_name_hint but
1125         heavily edited to add C++ support.  Add some knowledge about
1126         <limits.h>, <stdint.h>, and <wchar.h>.
1127         * known-headers.h: Likewise.
1129 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
1131         * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
1132         (lookup_name_fuzzy): Likewise.  Convert return type from
1133         const char * to name_hint.  Add location_t param.
1134         * name-hint.h: New header.
1136 2017-11-19  Jakub Jelinek  <jakub@redhat.com>
1138         PR c/66618
1139         PR c/69960
1140         * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
1142 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
1144         * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
1145         expected publication date of C17.
1146         (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
1148 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
1150         PR c/81156
1151         * c-common.c (c_common_reswords): Add __builtin_tgmath.
1152         * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
1154 2017-11-10  Martin Sebor  <msebor@redhat.com>
1156         PR c/81117
1157         * c-common.c (catenate_strings): Use memcpy instead of strncpy.
1158         * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
1159         * c.opt (-Wstringop-truncation): New option.
1161 2017-11-06  Martin Liska  <mliska@suse.cz>
1163         PR middle-end/82404
1164         * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
1165         FE.
1166         * c.opt: Set default value of warn_return_type.
1168 2017-10-31  David Malcolm  <dmalcolm@redhat.com>
1170         * c-common.c (binary_op_error): Update for renaming of
1171         error_at_rich_loc.
1172         (c_parse_error): Likewise.
1173         * c-warn.c (warn_logical_not_parentheses): Likewise for
1174         renaming of inform_at_rich_loc.
1175         (warn_for_restrict): Likewise for renaming of
1176         warning_at_rich_loc_n.
1178 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
1180         * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
1181         * c-opts.c (set_std_c17): New function.
1182         (c_common_init_options): Use gnu17 as default C version.
1183         (c_common_handle_option): Handle -std=c17 and -std=gnu17.
1185 2017-10-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
1187         * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
1188         (c_cpp_builtins): If a machine has a fast fma _Float<N> and
1189         _Float<N>X variant, define __FP_FAST_FMA<N> and/or
1190         __FP_FAST_FMA<N>X.
1192 2017-10-23  Marek Polacek  <polacek@redhat.com>
1194         PR c/82681
1195         * c-warn.c (warnings_for_convert_and_check): Fix typos.
1197 2017-10-19  Eric Botcazou  <ebotcazou@adacore.com>
1199         * c-common.c (check_builtin_function_arguments): Also check arguments
1200         of __builtin_alloca_with_align_and_max.
1202 2017-10-17  David Malcolm  <dmalcolm@redhat.com>
1204         * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
1205         rather than NULL to format_warning_va.
1206         (check_format_types): Likewise when calling format_type_warning.
1207         Remove code to extract source_ranges and source_range * in favor
1208         of just a location_t.
1209         (format_type_warning): Convert source_range * param to a
1210         location_t.
1212 2017-10-13  Jakub Jelinek  <jakub@redhat.com>
1214         * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
1215         [LR]SHIFT_EXPR.
1217 2017-10-12  David Malcolm  <dmalcolm@redhat.com>
1219         * c-common.c (enum missing_token_insertion_kind): New enum.
1220         (get_missing_token_insertion_kind): New function.
1221         (maybe_suggest_missing_token_insertion): New function.
1222         * c-common.h (maybe_suggest_missing_token_insertion): New decl.
1224 2017-10-11  Nathan Sidwell  <nathan@acm.org>
1226         * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
1227         (c_common_handle_option): Update incpath_kind names.
1229 2017-10-11  Martin Liska  <mliska@suse.cz>
1231         PR sanitizer/82490
1232         * c-attribs.c (handle_no_sanitize_attribute): Report directly
1233         Wattributes warning.
1235 2017-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
1237         * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
1238         operating on trees as wide_ints.
1239         * c-common.c (pointer_int_sum): Likewise.
1240         * c-pretty-print.c (pp_c_integer_constant): Likewise.
1241         * c-warn.c (match_case_to_enum_1): Likewise.
1242         (c_do_switch_warnings): Likewise.
1243         (maybe_warn_shift_overflow): Likewise.
1245 2017-10-10  Jakub Jelinek  <jakub@redhat.com>
1247         PR c/82437
1248         * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
1249         instead of wide_int::from.
1251 2017-10-06  Jakub Jelinek  <jakub@redhat.com>
1253         PR c/82437
1254         * c-warn.c (warn_tautological_bitwise_comparison): Instead of
1255         using to_widest use wide_int with the larger of the two precisions.
1257 2017-10-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1259         * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
1260         functions.
1262 2017-10-02  Richard Sandiford  <richard.sandiford@linaro.org>
1264         * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
1265         when combining the original unconverted comparison operands.
1267 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
1269         * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
1270         attribute.
1272 2017-09-29  Eric Botcazou  <ebotcazou@adacore.com>
1274         * c-ada-spec.c (to_ada_name): Add index parameter.
1275         (pp_ada_tree_identifier): Likewise.
1276         (dump_ada_macros): Adjust call to to_ada_name.
1277         (struct overloaded_name_hash): New type.
1278         (struct overloaded_name_hasher): Likewise.
1279         (overloaded_names): New hash table.
1280         (compute_overloading_index): New function.
1281         (dump_ada_decl_name): Call it and pass the result to
1282         pp_ada_tree_identifier.
1283         (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
1284         (dump_ada_function_declaration): Likewise.
1285         (dump_generic_ada_node): Likewise.
1286         (print_constructor): Likewise.
1287         (print_destructor): Likewise.
1288         (dump_ada_specs): Delete overloaded_names table.
1290 2017-09-29  Eric Botcazou  <ebotcazou@adacore.com>
1292         * c-ada-spec.c (max_ada_macros): Move around.
1293         (store_ada_macro_index): Likewise.
1294         (source_file): Rename into...
1295         (macro_source_file): ...this.
1296         (count_ada_macro): Move around.
1297         (store_ada_macro): Likewise.
1298         (compare_macro): Likewise.
1299         (print_ada_macros): Merge in...
1300         (dump_ada_macros): ...this.
1301         (source_file_base): Rename into...
1302         (current_source_file): ...this.
1303         (print_comment): Move around.
1304         (dump_ada_nodes): Call dump_ada_declaration directly.
1305         (struct with): Change type of limited field to bool.
1306         (append_withs): Change type of limited_access parameter to bool.
1307         (pp_ada_tree_identifie): Likewise.
1308         (dump_ada_decl_nam): Likewise.
1309         (dump_generic_ada_node): Likewise.  Do not print the return type.
1310         (to_ada_name): Change type of space_found parameter to bool.
1311         (dump_ada_function_declaration): Return void and change type of
1312         parameters to bool.  Also print the return type for a function.
1313         (print_ada_methods): Rename into...
1314         (dump_ada_methods): ...this.
1315         (print_ada_declaration): Rename into ...
1316         (dump_ada_declaration): ...this.  Do not print the return type.
1317         (print_ada_struct_decl): Rename into...
1318         (dump_ada_struct_decl): ...this.
1320 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
1322         * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
1323         rather than DECL_INITIAL.
1324         (common_handle_aligned_attribute): Likewise.
1326 2017-09-20  Alexandre Oliva <aoliva@redhat.com>
1328         * c.opt (gen-decls): Add RejectNegative.
1330 2017-09-15  Andrew Sutton  <andrew.n.sutton@gmail.com>
1331             Jakub Jelinek  <jakub@redhat.com>
1333         Add support for -std=c++2a.
1334         * c-common.h (cxx_dialect): Add cxx2a as a dialect.
1335         * opt.c: Add options for -std=c++2a and -std=gnu++2a.
1336         * c-opts.c (set_std_cxx2a): New.
1337         (c_common_handle_option): Set options when -std=c++2a is enabled.
1338         (c_common_post_options): Adjust comments.
1339         (set_std_cxx14, set_std_cxx17): Likewise.
1341 2017-09-15  Eric Botcazou  <ebotcazou@adacore.com>
1343         * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
1344         message for non-uniform endianness and issue a warning in C++.
1346 2017-09-15  Jakub Jelinek  <jakub@redhat.com>
1348         * c.opt (Wc++1z-compat): Change from option to undocumented alias.
1349         (Wc++17-compat): Change from undocumented alias to option.
1350         (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
1351         change C++1z to C++17 in description.
1352         (std=c++1z, std=gnu++1z): Change from option to undocumented
1353         deprecated alias.
1354         (std=c++17, std=gnu++17): Change from undocumented alias to option.
1355         Adjust description.
1356         * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
1357         * c-opts.c (set_std_cxx1z): Rename to ...
1358         (set_std_cxx17): ... this.
1359         (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
1360         and OPT_std_gnu__1z to OPT_std_gnu__17.  Adjust set_std_cxx1z
1361         caller.
1362         (c_common_post_options): Use cxx17 instead of cxx1z.  Adjust
1363         comments.
1365 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
1367         * c-attribs.c (common_handle_aligned_attribute): Don't warn
1368         function alignment if warn_if_not_aligned_p is true.
1370 2017-09-12  Nathan Sidwell  <nathan@acm.org>
1372         * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
1373         resort_sorted_fields): Move to c/c-decl.c.
1374         * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
1375         (struct sorted_fields_type): Move to c/c-lang.h.
1377 2017-09-09  Jonathan Wakely  <jwakely@redhat.com>
1379         PR c++/81852
1380         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
1382 2017-09-04  Marek Polacek  <polacek@redhat.com>
1384         PR c/81783
1385         * c-warn.c (warn_tautological_bitwise_comparison): New function.
1386         (warn_tautological_cmp): Call it.
1388 2017-09-01  Boris Kolpackov <boris@codesynthesis.com>
1390         * c-opts.c (c_common_finish): Write dependency information even if
1391         there are errors.
1393 2017-09-01  Jakub Jelinek  <jakub@redhat.com>
1395         PR c/81887
1396         * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
1397         (omp_pragmas_simd): ... here.
1398         * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
1399         create new clauses list containing just simd clause.
1401 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
1402             Alan Hayward  <alan.hayward@arm.com>
1403             David Sherwood  <david.sherwood@arm.com>
1405         * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
1406         into scalar_mode_supported_p call.
1407         (handle_mode_attribute): Update call to scalar_mode_supported_p.
1409 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
1410             Alan Hayward  <alan.hayward@arm.com>
1411             David Sherwood  <david.sherwood@arm.com>
1413         * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
1414         for the mode iterator.
1416 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
1417             Alan Hayward  <alan.hayward@arm.com>
1418             David Sherwood  <david.sherwood@arm.com>
1420         * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
1421         * c-common.c (c_build_vec_perm_expr): Likewise.
1423 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
1424             Alan Hayward  <alan.hayward@arm.com>
1425             David Sherwood  <david.sherwood@arm.com>
1427         * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
1429 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
1430             Alan Hayward  <alan.hayward@arm.com>
1431             David Sherwood  <david.sherwood@arm.com>
1433         * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
1434         before calling targetm.addr_space.valid_pointer_mode.
1436 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
1437             Alan Hayward  <alan.hayward@arm.com>
1438             David Sherwood  <david.sherwood@arm.com>
1440         * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
1442 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
1443             Alan Hayward  <alan.hayward@arm.com>
1444             David Sherwood  <david.sherwood@arm.com>
1446         * c-common.c (c_common_fixed_point_type_for_size): Use new mode
1447         iterators.
1448         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1450 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
1451             Alan Hayward  <alan.hayward@arm.com>
1452             David Sherwood  <david.sherwood@arm.com>
1454         * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
1455         case statements.
1457 2017-08-29  Martin Liska  <mliska@suse.cz>
1459         PR other/39851
1460         * c-common.c (parse_optimize_options): Add argument to function
1461         call.
1462         * c-pragma.c (handle_pragma_diagnostic): Likewise.
1464 2017-08-24  David Malcolm  <dmalcolm@redhat.com>
1466         * c-lex.c (interpret_float): Use token location
1467         when building an EXCESS_PRECISION_EXPR.
1469 2017-08-21  David Malcolm  <dmalcolm@redhat.com>
1471         * c-common.c (check_function_arguments): Add "arglogs" param; pass
1472         it to check_function_format.
1473         * c-common.h (check_function_arguments): Add vec<location_t> *
1474         param.
1475         (check_function_format): Likewise.
1476         * c-format.c (struct format_check_context): Add field "arglocs".
1477         (check_function_format): Add param "arglocs"; pass it to
1478         check_format_info.
1479         (check_format_info):  Add param "arglocs"; use it to initialize
1480         new field of format_ctx.
1481         (check_format_arg): Pass format_ctx->arglocs to new param of
1482         check_format_info_main.
1483         (class argument_parser): New field "arglocs".
1484         (argument_parser::argument_parser): Add "arglocs_" param and use
1485         it to initialize new field.
1486         (argument_parser::check_argument_type): Pass new arglocs field to
1487         check_format_types.
1488         (check_format_info_main): Add param "arglocs", and use it when
1489         constructing arg_parser.
1490         (check_format_types): Add param "arglocs"; use it if non-NULL when
1491         !EXPR_HAS_LOCATION (cur_param) to get at location information.
1493 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
1495         PR c/53037
1496         * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
1497         (c_common_attribute_table): Add warn_if_not_aligned.
1498         (handle_aligned_attribute): Renamed to ...
1499         (common_handle_aligned_attribute): Remove argument, name, and add
1500         argument, warn_if_not_aligned.  Handle warn_if_not_aligned.
1501         (handle_aligned_attribute): New.
1502         * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
1504 2017-08-14  Martin Sebor  <msebor@redhat.com>
1506         PR c/81117
1507         * c-attribs.c (c_common_attribute_table): Add nonstring entry.
1508         (handle_nonstring_attribute): New function.
1510 2017-08-14  Martin Sebor  <msebor@redhat.com>
1512         PR c/81117
1513         * c-format.h (T89_G): New macro.
1514         * c-format.c (local_gcall_ptr_node): New variable.
1515         (init_dynamic_diag_info): Initialize it.
1517 2017-08-11  Martin Liska  <mliska@suse.cz>
1519         * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
1520         TARGET_SUPPORTS_ALIASES.
1522 2017-08-10  David Malcolm  <dmalcolm@redhat.com>
1524         * c-common.c (c_parse_error): Add rich_location * param, using it
1525         rather implicitly using input_location.
1526         * c-common.h (c_parse_error): Add rich_location * param.
1528 2017-08-09  Marek Polacek  <polacek@redhat.com>
1530         * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
1531         (c_common_truthvalue_conversion): Likewise.
1532         * c-omp.c (c_finish_omp_atomic): Likewise.
1533         * c-common.h (build_binary_op): Update declaration.
1535 2017-08-08  Martin Liska  <mliska@suse.cz>
1537         * c-ada-spec.c: Include header files.
1538         * c-ubsan.c: Likewise.
1539         * c-warn.c: Likewise.
1541 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
1543         PR c/69389
1544         * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
1546 2017-08-07  Eric Botcazou  <ebotcazou@adacore.com>
1548         * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
1549         (print_ada_methods): Likewise.
1550         (print_ada_declaration): Likewise.
1552 2017-08-07  Martin Liska  <mliska@suse.cz>
1554         * array-notation-common.c: Add new includes.
1555         * c-format.c( handle_format_attribute): Canonicalize a format
1556         function name.
1557         * c-lex.c (c_common_has_attribute): Canonicalize name of an
1558         attribute.
1559         * c-pretty-print.c: Add new include.
1561 2017-08-05  Eric Botcazou  <ebotcazou@adacore.com>
1563         * c-ada-spec.c (has_static_fields): Look only into variables.
1564         (print_constructor): Add TYPE parameter and use it for the name.
1565         (print_destructor): Likewise.
1566         (print_ada_declaration): Adjust to new constructor/destructor names.
1567         Adjust calls to print_constructor and print_destructor.
1568         (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
1569         Look only into variables in the final loop.
1571 2017-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1573         * c-ada-spec.c (has_static_fields): Look only into fields.
1574         (dump_generic_ada_node): Small tweak.
1575         (dump_nested_types): Look only into fields.
1576         (print_ada_declaration): Look only into methods.  Small tweak.
1577         (print_ada_struct_decl): Look only into fields.  Use DECL_VIRTUAL_P.
1579 2017-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1581         * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
1582         (dump_ada_function_declaration): Likewise.
1583         (dump_generic_ada_node): Likewise.
1584         (print_ada_declaration): Add support for const-qualified variables.
1586 2017-07-31  Martin Liska  <mliska@suse.cz>
1588         PR sanitize/81530
1589         * c-ubsan.c (ubsan_maybe_instrument_array_ref):
1590         Guard condition with flag_sanitize_p also with current_function_decl
1591         non-null equality.
1592         (ubsan_maybe_instrument_reference_or_call): Likewise.
1594 2017-07-30  Uros Bizjak  <ubizjak@gmail.com>
1596         * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
1598 2017-07-29  Eric Botcazou  <ebotcazou@adacore.com>
1600         * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
1601         for enumeral types.
1602         (print_ada_declaration): Add missing guard for record types.
1604 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
1606         PR c/45784
1607         * c-omp.c (c_finish_omp_for): If the condition is wrapped in
1608         rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
1609         new COMPOUND_EXPRs around the rhs of the comparison.
1611 2017-07-27  Marek Polacek  <polacek@redhat.com>
1613         PR c/81417
1614         * c-warn.c (warn_for_sign_compare): Tweak the warning message.  Print
1615         the types.
1617 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
1619         * c-attribs.c (c_common_attribute_table): Add noipa attribute.
1620         (handle_noipa_attribute): New function.
1622 2017-07-07  Torsten Duwe  <duwe@suse.de>
1624         * c-attribs.c (c_common_attribute_table): Add entry for
1625         "patchable_function_entry".
1627 2017-07-20  Nathan Sidwell  <nathan@acm.org>
1629         Remove TYPE_METHODS.
1630         * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
1631         dump_ada_template, print_ada_methods,
1632         print_ada_declaration): Member fns are on TYPE_FIELDS.
1634 2017-07-18  Nathan Sidwell  <nathan@acm.org>
1636         * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
1638 2017-07-14  David Malcolm  <dmalcolm@redhat.com>
1640         * c-common.c (try_to_locate_new_include_insertion_point): New
1641         function.
1642         (per_file_includes_t): New typedef.
1643         (added_includes_t): New typedef.
1644         (added_includes): New variable.
1645         (maybe_add_include_fixit): New function.
1646         * c-common.h (maybe_add_include_fixit): New decl.
1648 2017-07-10  Martin Sebor  <msebor@redhat.com>
1650         PR other/81345
1651         * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
1653 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
1655         * c-common.c (selftest::c_family_tests): New.
1656         * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
1657         (selftest::c_family_tests): New decl.
1659 2017-07-04  Marek Polacek  <polacek@redhat.com>
1661         PR c/81231
1662         * c-common.c (sync_resolve_size): Give error for pointers to incomplete
1663         types.
1665 2017-07-04  Marek Polacek  <polacek@redhat.com>
1667         * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
1669 2017-06-28  Martin Liska  <mliska@suse.cz>
1671         PR ipa/81128
1672         * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
1673         to a function declaration.
1675 2017-06-28  Martin Liska  <mliska@suse.cz>
1677         PR driver/79659
1678         * c.opt: Add IntegerRange to various options.
1680 2017-06-26  Marek Polacek  <polacek@redhat.com>
1682         PR c/80116
1683         * c-common.h (warn_for_multistatement_macros): Declare.
1684         * c-warn.c: Include "c-family/c-indentation.h".
1685         (warn_for_multistatement_macros): New function.
1686         * c.opt (Wmultistatement-macros): New option.
1687         * c-indentation.c (guard_tinfo_to_string): No longer static.
1688         Change the parameter type to "enum rid".  Handle RID_SWITCH.
1689         * c-indentation.h (guard_tinfo_to_string): Declare.
1691 2017-06-23  Marc Glisse  <marc.glisse@inria.fr>
1693         * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
1695 2017-06-15  Martin Sebor  <msebor@redhat.com>
1697         PR c++/80560
1698         * c.opt (-Wclass-memaccess): New option.
1700 2017-06-14  Boris Kolpackov  <boris@codesynthesis.com>
1702         * c-opts.c (c_common_finish): Handle '-' special value to -MF.
1704 2017-06-13  Marek Polacek  <polacek@redhat.com>
1706         PR objc/80949
1707         * c-warn.c (do_warn_duplicated_branches): Return if any of the
1708         branches is null.
1710 2017-06-13  Martin Liska  <mliska@suse.cz>
1712         PR sanitize/78204
1713         * c-attribs.c (add_no_sanitize_value): New function.
1714         (handle_no_sanitize_attribute): Likewise.
1715         (handle_no_sanitize_address_attribute): Use the function.
1716         (handle_no_sanitize_thread_attribute): New function.
1717         (handle_no_address_safety_analysis_attribute): Use
1718         add_no_sanitize_value.
1719         (handle_no_sanitize_undefined_attribute): Likewise.
1720         * c-common.h: Declare new functions.
1721         * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
1722         (ubsan_instrument_shift): Likewise.
1723         (ubsan_instrument_bounds): Likewise.
1724         (ubsan_maybe_instrument_array_ref): Likewise.
1725         (ubsan_maybe_instrument_reference_or_call): Likewise.
1727 2017-06-11  Jason Merrill  <jason@redhat.com>
1729         * c-ada-spec.c, c-pragma.c: Use id_equal.
1731 2017-06-04  Marek Polacek  <polacek@redhat.com>
1733         PR c/80919
1734         * c-format.c (matching_type_p): Return false if any of the types
1735         requires structural equality.
1737 2017-06-02  Martin Sebor  <msebor@redhat.com>
1739         PR c/80892
1740         * c-warn.c (conversion_warning): Use -Wconversion for integer
1741         conversion and -Wfloat-conversion for floating one.
1743 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1745         * c.opt (Wsizeof-pointer-div): New warning option.
1747 2017-06-01  Volker Reichelt  <v.reichelt@netcologne.de>
1749         * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
1750         (Wcatch-value=1): Enable by -Wall.
1752 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
1754         * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
1755         format_chars.
1756         * c.opt (fdiagnostics-show-template-tree): New option.
1757         (felide-type): New option.
1759 2017-05-25  Volker Reichelt  <v.reichelt@netcologne.de>
1761         * c.opt (Wcatch-value=): New C++ warning flag.
1763 2017-05-24  Nathan Sidwell  <nathan@acm.org>
1765         * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
1766         const casts to avoid warning.
1768 2017-05-24  Martin Sebor  <msebor@redhat.com>
1770         PR c/80731
1771         * c-common.h (unsafe_conversion_p): Add a function argument.
1772         * c-common.c (unsafe_conversion_p): Same.
1773         Add type names and values to diagnostics.
1774         (scalar_to_vector): Adjust.
1775         * c-warn.c (constant_expression_error): Add a function argument.
1776         Add type names and values to diagnostics.
1777         (conversion_warning): Add a function argument.
1778         Add type names and values to diagnostics.
1779         (warnings_for_convert_and_check): Same.
1781 2017-05-19  Jason Merrill  <jason@redhat.com>
1783         * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
1784         enumerators.
1786 2017-05-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1788         * c-format.c (locus): Move out of function scope,
1789         add GTY attribute.
1791 2017-05-19  Nathan Sidwell  <nathan@acm.org>
1793         * c-opts.c (class_dump_file, class_dump_flags): Delete.
1794         (c_common_parse_file): Remove class dump handling.
1795         (get_dump_info): Likewise.
1797 2017-05-19  Richard Biener  <rguenther@suse.de>
1799         PR c++/80593
1800         * c-warn.c (strict_aliasing_warning): Do not warn for accesses
1801         to alias-set zero memory.
1803 2017-05-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1805         * c-format.c (local_tree_type_node): Add GTY attribute.
1807 2017-05-18  Marek Polacek  <polacek@redhat.com>
1809         * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
1810         (c_common_fixed_point_type_for_size): Likewise.
1811         (c_common_type_for_mode): Likewise.
1812         (shorten_compare): Likewise.
1813         (c_promoting_integer_type_p): Use false/true instead of 0/1.
1814         * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
1816 2017-05-18  Marek Polacek  <polacek@redhat.com>
1818         * c-common.c (self_promoting_args_p): Change the return type to bool.
1819         Use false/true instead of 0/1.
1820         * c-common.h (self_promoting_args_p): Update.
1822 2017-05-17  Marek Polacek  <polacek@redhat.com>
1824         * c-common.c: Use NULL_TREE instead of 0 where appropriate.
1825         * c-warn.c: Likewise.
1827 2017-05-17  Ville Voutilainen  <ville.voutilainen@gmail.com>
1829         Implement new C++ intrinsics __is_assignable and __is_constructible.
1830         * c-common.c (__is_assignable, __is_constructible): New.
1831         * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
1833 2017-05-17  Martin Liska  <mliska@suse.cz>
1835         * c-common.h: Introduce dump_flags_t type and
1836         use it instead of int type.
1837         * c-gimplify.c (c_genericize): Likewise.
1838         * c-opts.c: Likewise.
1840 2017-05-17  Marek Polacek  <polacek@redhat.com>
1842         * c-common.c (c_save_expr): Remove.
1843         (c_common_truthvalue_conversion): Remove a call to c_save_expr.
1844         * c-common.h (c_save_expr): Remove declaration.
1846 2017-05-09  Volker Reichelt  <v.reichelt@netcologne.de>
1848         PR c/35441
1849         * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
1850         MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
1851         (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
1852         (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
1853         RDIV_EXPR.
1854         (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
1856 2017-05-09  Marek Polacek  <polacek@redhat.com>
1858         PR c/80525
1859         * c-warn.c (unwrap_c_maybe_const): New.
1860         (warn_logical_operator): Call it.
1862 2017-05-09  Nathan Sidwell  <nathan@acm.org>
1864         * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
1865         * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
1867 2017-05-08  Martin Sebor  <msebor@redhat.com>
1869         PR translation/80280
1870         * c-format.h (struct format_flag_spec): Add new member.
1871         (T89_T): New macro.
1872         * c-format.c (local_tree_type_node): New global.
1873         (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
1874         (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
1875         (strfmon_flag_specs): Likewise.
1876         (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
1877         with distinct quoting properties.
1878         (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
1879         (flag_chars_t::validate): Add argument and handle bad quoting.
1880         (check_format_info_main): Handle quoting problems.
1881         (init_dynamic_diag_info): Simplify.
1883 2017-05-08  Jason Merrill  <jason@redhat.com>
1885         * c-opts.c (c_common_post_options): Update defaults for
1886         flag_abi_version and flag_abi_compat_version.
1888 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
1890         * c-common.c (c_cpp_error): Replace report_diagnostic
1891         with diagnostic_report_diagnostic.
1893 2017-05-04  Martin Sebor  <msebor@redhat.com>
1895         PR translation/80280
1896         * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
1897         (handle_weakref_attribute): Same.
1899 2017-05-03  Nathan Sidwell  <nathan@acm.org>
1901         Canonicalize canonical type hashing
1902         * c-common.c (complete_array_type): Use type_hash_canon.
1904 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
1906         PR c++/80038
1907         * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
1908         prototype.
1909         (cilk_install_body_pedigree_operations): Likewise.
1910         * cilk.c (cilk_set_spawn_marker): Mark functions that should be
1911         detatched.
1912         (cilk_gimplify_call_params_in_spawned_fn): Remove.
1913         (cilk_install_body_pedigree_operations): Likewise.
1914         (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
1915         unwrapping.
1917 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
1919         PR c++/80534
1920         * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
1921         flag on non-aggregate element types.
1923 2017-04-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1925         * c-common.c (c_type_hasher, type_hash_table): Remove.
1926         (c_common_get_alias_set): Remove unreachable code.
1927         * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
1929 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
1931         * c.opt (Wextra-semi): New C++ warning flag.
1933 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
1935         PR middle-end/80423
1936         * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
1938 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
1940         PR middle-end/79788
1941         PR middle-end/80375
1942         * c-common.c (c_common_type_for_mode): Don't handle
1943         widest_*_literal_type_node here.
1944         c_common_signed_or_unsigned_type): Likewise.
1945         (c_common_nodes_and_builtins): Set widest_*_literal_type_node
1946         to *intTI_type_node or *intDI_type_node depending on whether
1947         TImode is supported by the target or not.
1949 2017-04-10  Martin Liska  <mliska@suse.cz>
1951         PR sanitizer/80350
1952         * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
1953         doing an UBSAN check.
1955 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
1957         * c-warn.c (do_warn_double_promotion): Fix typo in comment.
1959 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
1961         PR c++/79572
1962         * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
1963         tree *.
1964         * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise.  Handle
1965         not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
1966         REFERENCE_TYPE.
1968 2017-03-31  David Malcolm  <dmalcolm@redhat.com>
1970         PR documentation/78732
1971         * c.opt (Wendif-labels): Fix description to refer to
1972         #else rather than #elif.
1974 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
1976         PR libstdc++/80251
1977         * c-common.h (enum rid): Add RID_IS_AGGREGATE.
1978         * c-common.c (c_common_reswords): Add __is_aggregate trait.
1980 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
1982         PR middle-end/80162
1983         * c-common.c (c_common_mark_addressable_vec): Don't set
1984         TREE_ADDRESSABLE on DECL_HARD_REGISTER.
1986 2017-03-21  Martin Sebor  <msebor@redhat.com>
1988         PR c++/79548
1989         * c-common.c (set_underlying_type): Mark type used only when
1990         original del is declared unused.
1992 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
1994         PR translation/79848
1995         * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
1996         "%qs".
1998 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
2000         PR c/79921
2001         * c-indentation.c (warn_for_misleading_indentation): Remove parens
2002         from inform's message, so that xgettext can locate it.
2004 2017-03-09  Marek Polacek  <polacek@redhat.com>
2006         PR c++/79962
2007         PR c++/79984
2008         * c-attribs.c (handle_nonnull_attribute): Save the result of default
2009         conversion to the attribute list.
2011 2017-03-09  Martin Liska  <mliska@suse.cz>
2013         * c-ada-spec.c (macro_length): Increment value instead of a pointer.
2015 2017-03-03  Jason Merrill  <jason@redhat.com>
2017         * c.opt (Wnoexcept-type): New.
2019 2017-03-02  Richard Biener  <rguenther@suse.de>
2021         PR c/79756
2022         * c-common.c (c_common_mark_addressable_vec): Look through
2023         C_MAYBE_CONST_EXPR.
2025 2017-02-28  Martin Liska  <mliska@suse.cz>
2027         * c.opt: Replace space with tabular for options of <number>
2028         type.
2030 2017-02-28  Martin Liska  <mliska@suse.cz>
2032         * c.opt: Fix --help=option -Q for options which are of
2033         an enum type.
2035 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
2037         PR c++/79588
2038         * c-common.c (check_function_restrict): New function.
2039         (check_function_arguments): Add FNDECL argument.  Call
2040         check_function_restrict if -Wrestrict.
2041         * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
2042         and NARGS.  Use auto_vec for ARG_POSITIONS, simplify.
2043         * c-common.h (check_function_arguments): Add FNDECL argument.
2044         (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
2046 2017-02-24  Eric Botcazou  <ebotcazou@adacore.com>
2048         * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
2049         treatment of parameters with pointer-to-tagged type and tidy up.
2050         (print_ada_methods): Remove the special treatment of C++ static member
2051         functions.
2053 2017-02-22  Martin Liska  <mliska@suse.cz>
2055         * c.opt: Replace inequality signs with square brackets
2056         for -Wnornalized.
2058 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
2060         PR c++/79641
2061         * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
2062         preserve quals.
2064 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
2066         * c-cppbuiltin.c (builtin_define_float_constants): Define
2067         __DECIMAL_DIG__ to the value for long double.
2069 2017-02-15  Marek Polacek  <polacek@redhat.com>
2071         PR c/79515
2072         * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
2073         conversion has occured.
2075 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
2077         * c-common.c (c_common_reswords): Add "__RTL".
2078         * c-common.h (enum rid): Add RID_RTL.
2080 2017-01-20  Marek Polacek  <polacek@redhat.com>
2082         PR c/64279
2083         * c-common.h (do_warn_duplicated_branches_r): Declare.
2084         * c-gimplify.c (c_genericize): Walk the function tree calling
2085         do_warn_duplicated_branches_r.
2086         * c-warn.c (expr_from_macro_expansion_r): New.
2087         (do_warn_duplicated_branches): New.
2088         (do_warn_duplicated_branches_r): New.
2089         * c.opt (Wduplicated-branches): New option.
2091 2017-01-17  David Malcolm  <dmalcolm@redhat.com>
2093         PR c++/71497
2094         * c-indentation.c (warn_for_misleading_indentation): Use the past
2095         subjunctive in the note.
2097 2017-01-17  Aldy Hernandez  <aldyh@redhat.com>
2099         PR c/79116
2100         * array-notation-common.c (cilkplus_extract_an_triplets): Convert
2101         start type to integer_type.
2103 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
2105         PR driver/49726
2106         * c.opt (gen-decls): Add Driver flag.
2108 2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
2110         Revert:
2111         2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
2113         PR c++/71737
2114         * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
2116 2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
2118         PR c++/71737
2119         * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
2121 2017-01-12  Martin Sebor  <msebor@redhat.com>
2123         (-Wformat-overflow): ...to this.
2125 2017-01-11  Martin Sebor  <msebor@redhat.com>
2127         PR c/78768
2128         * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
2129         Also enable for LTO.
2131 2017-01-10  Jason Merrill  <jason@redhat.com>
2133         Implement P0195R2, C++17 variadic using.
2134         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
2136 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
2138         PR translation/79019
2139         PR translation/79020
2140         * c.opt (Wnormalized=): Fix typo in description.
2142 2017-01-08  Martin Sebor  <msebor@redhat.com>
2144         PR middle-end/77708
2145         * c.opt (-Wformat-truncation): New option.
2147 2017-01-06  Alexandre Oliva <aoliva@redhat.com>
2149         * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
2150         value to unsigned short to fit in 4 hex digits without
2151         warnings.
2153 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
2155         * c.opt (fsso-struct): Add 'native' value.
2157 2017-01-05  Martin Liska  <mliska@suse.cz>
2159         PR pch/78970
2160         * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
2161         header.
2163 2017-01-04  Marek Polacek  <polacek@redhat.com>
2165         PR c++/64767
2166         * c.opt (Wpointer-compare): New option.
2168 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
2170         PR driver/78957
2171         * c.opt (fsso-struct=): Add RejectNegative.
2173 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
2175         Update copyright years.
2177 2016-12-29  Martin Liska  <mliska@suse.cz>
2179         PR c/78933
2180         * c.opt (strong-eval-order): Add RejectNegative keyword.
2182 2016-12-22  Jason Merrill  <jason@redhat.com>
2184         Implement P0522R0, matching of template template arguments.
2185         * c-cppbuiltin.c (c_cpp_builtins): Define
2186         __cpp_template_template_args.
2188 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
2190         PR bootstrap/78817
2191         * c-common.c (struct nonnull_arg_ctx): New type.
2192         (check_function_nonnull): Return bool instead of void.  Use
2193         nonnull_arg_ctx as context rather than just location_t.
2194         (check_nonnull_arg): Adjust for the new context type, set
2195         warned_p to true if a warning has been diagnosed.
2196         (check_function_arguments): Return bool instead of void.
2197         * c-common.h (check_function_arguments): Adjust prototype.
2199 2016-12-21  Jason Merrill  <jason@redhat.com>
2201         * c.opt (-fnew-ttp-matching): New flag.
2202         * c-opts.c (c_common_post_options): Default on if -std=c++1z.
2204 2016-12-14  Martin Jambor  <mjambor@suse.cz>
2206         * c-omp.c: Include omp-general.h instead of omp-low.h.
2207         (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
2208         name.
2210 2016-12-14  Martin Sebor  <msebor@redhat.com>
2212         PR c/17308
2213         * c-common.c (check_nonnull_arg): Disable when optimization
2214         is enabled.
2216 2016-12-12  Marek Polacek  <polacek@redhat.com>
2218         PR c++/78647
2219         * c-common.c (attribute_fallthrough_p): Return false for
2220         error_mark_node.
2222 2016-12-08  Martin Sebor  <msebor@redhat.com>
2224         PR c/78284
2225         * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
2227 2016-12-08  Martin Sebor  <msebor@redhat.com>
2229         PR c/78165
2230         * c-pretty-print (pp_c_integer_constant): Avoid formatting type
2231         suffix.
2233 2016-12-07  Martin Sebor  <msebor@redhat.com>
2235         PR c/53562
2236         PR middle-end/77784
2237         PR middle-end/78149
2238         PR middle-end/78138
2239         * c.opt (-Wstringop-overflow): New option.
2241 2016-12-02  Maxim Ostapenko  <m.ostapenko@samsung.com>
2243         * c-attribs.c (asan odr indicator): New attribute.
2244         (handle_asan_odr_indicator_attribute): New function.
2246 2016-11-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2248         * c-common.c (c_common_nodes_and_builtins): Remove initialization of
2249         ptrdiff_type_node;
2251 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
2253         * c-common.c (excess_precision_mode_join): New.
2254         (c_ts18661_flt_eval_method): New.
2255         (c_c11_flt_eval_method): Likewise.
2256         (c_flt_eval_method): Likewise.
2257         * c-common.h (excess_precision_mode_join): New.
2258         (c_flt_eval_method): Likewise.
2259         * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
2260         (cpp_iec_559_value): Call it.
2261         (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
2262         call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
2263         __FLT_EVAL_METHOD_TS_18661_3__.
2265 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
2267         * c-opts.c (c_common_post_options): Add logic to handle the default
2268         case for -fpermitted-flt-eval-methods.
2270 2016-11-23  Paolo Bonzini  <bonzini@gnu.org>
2272         * c.opt (Wexpansion-to-defined): New.
2274 2016-11-23  Jakub Jelinek  <jakub@redhat.com>
2276         PR target/78451
2277         * c-pragma.c (handle_pragma_target): Don't replace
2278         current_target_pragma, but chainon the new args to the current one.
2280 2016-11-22  Nathan Sidwell  <nathan@acm.org>
2282         * array-notation-common.c (cilkplus_extract_an_trplets): Fix
2283         indentation and formatting.
2285 2016-11-21  Martin Sebor  <msebor@redhat.com>
2287         * c.opt (-fprintf-return-value): Enable by default.
2289 2016-11-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2291         PR c++/71973
2292         * c.opt (-Wbuiltin-declaration-mismatch): New warning.
2293         * c-common.c (c_common_nodes_and_builtins): Initialize
2294         const_tm_ptr_type_node.
2296 2016-11-16  Marek Polacek  <polacek@redhat.com>
2298         PR c/78285
2299         * c-common.c (c_add_case_label): Turn error_at calls into inform.
2301 2016-11-14  Jakub Jelinek  <jakub@redhat.com>
2303         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
2305 2016-11-14  Prasad Ghangal  <prasad.ghangal@gmail.com>
2306             Richard Biener  <rguenther@suse.de>
2308         * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
2309         * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
2310         * c.opt (fgimple): New option.
2312 2016-11-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2314         PR c/35503
2315         * c-common.h (warn_for_restrict): Declare.
2316         * c-warn.c: Include gcc-rich-location.h.
2317         (warn_for_restrict): New function.
2318         * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
2319         (gcc_cdiag_char_table): Likewise.
2320         (gcc_cxxdiag_char_table): Likewise.
2321         * c.opt (Wrestrict): New option.
2323 2016-11-13  Eric Botcazou  <ebotcazou@adacore.com>
2325         * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
2326         for nested types only if the type is a record or union and dump SLOC.
2328 2016-11-09  Jason Merrill  <jason@redhat.com>
2330         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
2332 2016-11-09  Jakub Jelinek  <jakub@redhat.com>
2334         * c-ubsan.c (ubsan_instrument_shift): Handle split
2335         -fsanitize=shift-base and -fsanitize=shift-exponent.
2337 2016-11-07  Jason Merrill  <jason@redhat.com>
2339         * c.opt (Wc++1z-compat): New.
2340         * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
2342 2016-11-07  Martin Liska  <mliska@suse.cz>
2344         * c-warn.c (warn_for_unused_label): Save all labels used
2345         in goto or in &label.
2347 2016-11-03  Jason Merrill  <jason@redhat.com>
2349         * c-cppbuiltin.c (c_cpp_builtins): Correct
2350         __cpp_inheriting_constructors.
2352 2016-11-01  Jason Merrill  <jason@redhat.com>
2354         * c-cppbuiltin.c (c_cpp_builtins): Update
2355         __cpp_inheriting_constructors.
2357         * c.opt (-fnew-inheriting-ctors): New.
2358         * c-opts.c: Default to on for ABI 11+.
2360 2016-10-31  Jakub Jelinek  <jakub@redhat.com>
2362         PR c++/77948
2363         * c.opt (fext-numeric-literals): Add Var and Init.
2364         * c-opts.c (c_common_handle_option): Don't clear
2365         cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
2366         (c_common_post_options): Clear it here if not set
2367         explicitly.
2369 2016-10-28  Aldy Hernandez  <aldyh@redhat.com>
2371         PR debug/77773
2372         * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
2373         if NULL.
2375 2016-10-25  Jakub Jelinek  <jakub@redhat.com>
2377         * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
2378         * c-common.c (c_common_reswords): Add __builtin_launder.
2380 2016-10-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2382         * c-common.c (c_common_truthvalue_conversion): Warn for
2383         multiplications in boolean context.  Fix the quoting of '<<' and '<'
2384         in the shift warning.
2386 2016-10-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2388         * c-common.c (c_common_truthvalue_conversion): Fix the comment.
2390 2016-10-20  Jason Merrill  <jason@redhat.com>
2392         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
2394 2016-10-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2396         * c-common.c (c_common_truthvalue_conversion): Warn only for signed
2397         integer shift ops in boolean context.
2399 2016-10-18  Aldy Hernandez  <aldyh@redhat.com>
2401         * c.opt (Walloca): New.
2402         (Walloca-larger-than=): New.
2403         (Wvla-larger-than=): New.
2405 2016-10-17  Marek Polacek  <polacek@redhat.com>
2407         * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
2408         Return immediately when finding a match.
2409         (warn_tautological_cmp): Remove a boolean variable that is no longer
2410         needed.
2412 2016-10-17  Marek Polacek  <polacek@redhat.com>
2414         * c-attribs.c: New file.
2415         * c-common.c: Move attributes handling to c-attribs.c.
2416         (get_nonnull_operand): No longer static.
2417         * c-common.h: Move the declarations from c-attribs.c to its own section.
2419 2016-10-14  Jason Merrill  <jason@redhat.com>
2421         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
2422         and __cpp_deduction_guides.
2424 2016-10-13  Jason Merrill  <jason@redhat.com>
2426         * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
2428 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2430         * c-cppbuiltin.c: Include memmodel.h.
2431         * c-opts.c: Likewise.
2432         * c-pragma.c: Likewise.
2433         * c-warn.c: Likewise.
2435 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
2437         * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
2438         (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
2439         * c-opts.c (sanitize_cpp_opts): Initialize
2440         cpp_opts->cpp_warn_implicit_fallthrough.
2442 2016-10-11  Marek Polacek  <polacek@redhat.com>
2444         * c-common.c (warning_candidate_p): Change the return type to bool
2445         and return true/false instead of 1/0.
2446         (vector_mode_valid_p): Likewise.
2448 2016-10-11  Marek Polacek  <polacek@redhat.com>
2450         * c-common.c (fold_for_warn): No longer static.
2451         (bool_promoted_to_int_p): Likewise.
2452         (c_common_get_narrower): Likewise.
2453         (constant_expression_warning): Move to c-warn.c.
2454         (constant_expression_error): Likewise.
2455         (overflow_warning): Likewise.
2456         (warn_logical_operator): Likewise.
2457         (find_array_ref_with_const_idx_r): Likewise.
2458         (warn_tautological_cmp): Likewise.
2459         (expr_has_boolean_operands_p): Likewise.
2460         (warn_logical_not_parentheses): Likewise.
2461         (warn_if_unused_value): Likewise.
2462         (strict_aliasing_warning): Likewise.
2463         (sizeof_pointer_memaccess_warning): Likewise.
2464         (check_main_parameter_types): Likewise.
2465         (conversion_warning): Likewise.
2466         (warnings_for_convert_and_check): Likewise.
2467         (match_case_to_enum_1): Likewise.
2468         (match_case_to_enum): Likewise.
2469         (c_do_switch_warnings): Likewise.
2470         (warn_for_omitted_condop): Likewise.
2471         (readonly_error): Likewise.
2472         (lvalue_error): Likewise.
2473         (invalid_indirection_error): Likewise.
2474         (warn_array_subscript_with_type_char): Likewise.
2475         (warn_about_parentheses): Likewise.
2476         (warn_for_unused_label): Likewise.
2477         (warn_for_div_by_zero): Likewise.
2478         (warn_for_memset): Likewise.
2479         (warn_for_sign_compare): Likewise.
2480         (do_warn_double_promotion): Likewise.
2481         (do_warn_unused_parameter): Likewise.
2482         (record_locally_defined_typedef): Likewise.
2483         (maybe_record_typedef_use): Likewise.
2484         (maybe_warn_unused_local_typedefs): Likewise.
2485         (maybe_warn_bool_compare): Likewise.
2486         (maybe_warn_shift_overflow): Likewise.
2487         (warn_duplicated_cond_add_or_warn): Likewise.
2488         (diagnose_mismatched_attributes): Likewise.
2489         * c-common.h: Move the declarations from c-warn.c to its own section.
2490         * c-warn.c: New file.
2492 2016-10-08  Jason Merrill  <jason@redhat.com>
2494         * c-common.c (c_common_truthvalue_conversion): Don't distribute
2495         into COND_EXPR in C++.
2497 2016-10-08  Jakub Jelinek  <jakub@redhat.com>
2499         * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
2500         token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
2501         CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
2503 2016-10-07  Jakub Jelinek  <jakub@redhat.com>
2505         Implement LWG2296 helper intrinsic
2506         * c-common.h (enum rid): Add RID_ADDRESSOF.
2507         * c-common.c (c_common_reswords): Add __builtin_addressof.
2509 2016-10-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2511         PR c++/77700
2512         * c-common.c (c_common_truthvalue_conversion): Warn also for
2513         suspicious enum values in boolean context.
2515 2016-10-06  Jakub Jelinek  <jakub@redhat.com>
2517         Implement P0258R2 - helper for C++17
2518         std::has_unique_object_representations trait
2519         * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
2520         * c-common.c (c_common_reswords): Add
2521         __has_unique_object_representations.
2523 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
2525         PR sanitizer/66343
2526         * c-ubsan.c (ubsan_instrument_return): Don't call
2527         initialize_sanitizer_builtins here.
2529 2016-10-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2531         * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
2532         conditional expression in boolean context when only one arm is
2533         non-boolean.
2535 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
2537         PR sanitizer/77823
2538         * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
2539         is not integral.
2541         * c-common.c (c_common_reswords): Update comment for C++11.
2543 2016-10-04  Jason Merrill  <jason@redhat.com>
2545         * c-common.c (make_tree_vector_from_ctor): New.
2546         * c-common.h: Declare it.
2548 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
2550         * c-cppbuiltin.c (c_cpp_builtins): Don't define
2551         __LIBGCC_JCR_SECTION_NAME__.
2553 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2555         * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
2556         left shift in boolean context.
2558 2016-09-29  Jakub Jelinek  <jakub@redhat.com>
2560         Implement P0001R1 - C++17 removal of register storage class specifier
2561         * c.opt (Wregister): New warning.
2562         * c-opts.c (c_common_post_options): Enable -Wregister by
2563         default for C++17.
2565 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
2567         * c-opts.c (c_common_post_options): Remove special case for
2568         TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
2569         in C++.
2571 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
2573         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
2574         -std=c++1z.
2576         * c-ada-spec.c (print_ada_declaration): Remove break after return.
2578 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2580         * c-common.c: Include memmodel.h.
2582 2016-09-26  Marek Polacek  <polacek@redhat.com>
2584         * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
2586 2016-09-26  Marek Polacek  <polacek@redhat.com>
2588         PR c/7652
2589         * c-common.c (c_common_attribute_table): Add fallthrough attribute.
2590         (handle_fallthrough_attribute): New function.
2591         (attribute_fallthrough_p): New function.
2592         * c-common.h (attribute_fallthrough_p): Declare.
2594 2016-09-24  Marek Polacek  <polacek@redhat.com>
2596         PR c/77490
2597         * c.opt (Wbool-operation): New.
2599 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2601         * c-common.c (c_common_truthvalue_conversion): Inhibit
2602         Wint-in-bool-context warning with from_macro_definition_at.
2603         Mention the expression will always evaluate to true.
2605 2016-09-21  Martin Sebor  <msebor@redhat.com>
2607         PR bootstrap/77676
2608         * c.opt (fprintf-return-value): Temporarily initialize to zero
2609         to unblock bootstrap failures.
2611 2016-09-21  Jakub Jelinek  <jakub@redhat.com>
2613         PR c++/77651
2614         * c.opt (Waligned-new=): Add RejectNegative.
2615         (faligned-new=): Likewise.  Spelling fix - change
2616         aligned_new_threshhold to aligned_new_threshold.
2617         * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
2618         to aligned_new_threshold.
2620 2016-09-20  Martin Sebor  <msebor@redhat.com>
2622         PR middle-end/49905
2623         * c.opt: Add -Wformat-length and -fprintf-return-value.
2625 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2627         PR c++/77434
2628         * c.opt (Wint-in-bool-context): New warning.
2629         * c-common.c (c_common_truthvalue_conversion): Warn on integer
2630         constants in boolean context.
2632 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
2634         * c-common.c (max_align_t_align): Also consider alignment of
2635         float128_type_node.
2637 2016-09-15  Jason Merrill  <jason@redhat.com>
2639         * c-common.c (check_cxx_fundamental_alignment_constraints): Check
2640         DECL_EXTERNAL.
2642 2016-09-14  Jason Merrill  <jason@redhat.com>
2644         * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
2645         limit FIELD_DECL, either.
2647 2016-09-14  Marek Polacek  <polacek@redhat.com>
2649         * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
2650         * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
2651         * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
2653 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
2655         * c-common.c (warn_logical_not_parentheses): Replace
2656         rich_location::add_fixit_insert calls with add_fixit_insert_before
2657         and add_fixit_insert_after, eliminating the "next_loc" calculation.
2659 2016-09-13  Jason Merrill  <jason@redhat.com>
2660             Tom de Vries  <tom@codesourcery.com>
2662         PR c++/77427
2663         * c-common.c (set_underlying_type): Don't treat array as builtin type.
2665 2016-09-13  Jason Merrill  <jason@redhat.com>
2667         * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
2668         limit types at all.
2670 2016-09-12  Jason Merrill  <jason@redhat.com>
2672         * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
2673         bit/byte confusion, allow large alignment for types.
2675 2016-09-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2677         PR c++/77496
2678         * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
2680 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
2682         PR c/72858
2683         * c-format.c (argument_parser::check_argument_type): Add params
2684         "type_start" and "conversion_char".  Use the former to generate
2685         offset_to_type_start and pass it and conversion_char to
2686         check_format_types.
2687         (check_format_info_main): Capture the start of the type
2688         information as "type_start", and pass it an format_char
2689         to arg_parser.check_argument_type.
2690         (check_format_types): Provide an example in the leading comment.
2691         Add params "offset_to_type_start" and "conversion_char"; pass
2692         them to format_type_warning calls.
2693         (test_get_modifier_for_format_len): Likewise.
2694         (matching_type_p): New function.
2695         (get_format_for_type): Add param "conversion_char" and move
2696         implementation into...
2697         (get_format_for_type_1): ...new function, called twice.
2698         Use new function matching_type_p rather than checking for
2699         TYPE_CANONICAL equality.
2700         (get_corrected_substring): New function.
2701         (format_type_warning): Provide an example in the leading comment.
2702         Add params "offset_to_type_start" and "conversion_char".  Replace
2703         call to get_format_for_type with call to get_corrected_substring
2704         and move rejection of hints for widths/precisions there.
2705         (assert_format_for_type_streq): Add param "conversion_char".
2706         (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
2707         (test_get_format_for_type_printf): Add conversion chars to the
2708         tests, adding coverage for various combinations of integer
2709         vs double conversions, and for preserving octal and hexadecimal
2710         conversions.
2711         (test_get_format_for_type_scanf): Add conversion chars to the
2712         tests.
2714 2016-09-10  Tom de Vries  <tom@codesourcery.com>
2716         PR C/71602
2717         * c-common.c (build_va_arg): Handle more strict
2718         targetm.canonical_va_list_type.  Replace first argument type error with
2719         assert.
2721 2016-09-09  Martin Sebor  <msebor@redhat.com>
2723         PR c/77520
2724         PR c/77521
2725         * c-format.c (argument_parser::find_format_char_info): Use %qc
2726         format directive unconditionally.
2728 2016-09-09  Jason Merrill  <jason@redhat.com>
2730         Implement C++17 new of over-aligned types.
2731         * c.opt: Add -faligned-new and -Waligned-new.
2732         * c-common.c (max_align_t_align): Split out from...
2733         (cxx_fundamental_alignment_p): ...here.
2734         * c-common.h: Declare it.
2735         * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
2737 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
2739         * c-cppbuiltin.c (builtin_define_type_width): New function.
2740         (builtin_define_stdint_macros, c_cpp_builtins): Define type width
2741         macros.
2743 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
2745         * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
2746         a POINTER_TYPE.
2747         (substring_loc::get_location): Move to substring-locations.c,
2748         keeping implementation as...
2749         (c_get_substring_location): New function, from the above, reworked
2750         to use accessors rather than member lookup.
2751         * c-common.h (class substring_loc): Move to substring-locations.h,
2752         replacing with a forward decl.
2753         (c_get_substring_location): New decl.
2754         * c-format.c: Include "substring-locations.h".
2755         (format_warning_va): Move to substring-locations.c.
2756         (format_warning_at_substring): Likewise.
2758 2016-09-06 Martin Sebor  <msebor@redhat.com>
2760         PR c/77336
2761         * c-format.c (check_function_format): Avoid issuing warnings for
2762         functions unless they call format functions with non-constant
2763         format strings.
2765 2016-09-06  Richard Biener  <rguenther@suse.de>
2767         PR c/77450
2768         * c-common.c (c_common_mark_addressable_vec): Handle
2769         COMPOUND_LITERAL_EXPR.
2771 2016-09-05  Marek Polacek  <polacek@redhat.com>
2773         PR c/77423
2774         * c-common.c (bool_promoted_to_int_p): New function.
2775         (expr_has_boolean_operands_p): New function.
2776         (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
2777         (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
2779 2016-09-04  Tom de Vries  <tom@codesourcery.com>
2781         revert:
2782         2016-08-29  Tom de Vries  <tom@codesourcery.com>
2784         * c-common.c (build_va_arg): Replace first argument type error
2785         with assert.
2787 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
2789         PR c/65467
2790         * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
2791         (c_finish_omp_for): Reject _Atomic qualified iterators.
2793 2016-09-01  Martin Sebor  <msebor@redhat.com>
2795         * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
2796         size to guarantee it fits the output of the formatted function
2797         regardless of its arguments.
2799 2016-09-01  Marek Polacek  <polacek@redhat.com>
2801         PR c/7652
2802         * c-common.c (resolve_overloaded_builtin): Fix formatting.  Add
2803         FALLTHRU comments.
2805 2016-08-29  Marek Polacek  <polacek@redhat.com>
2807         PR c/77292
2808         * c-common.c (warn_logical_not_parentheses): Don't warn for
2809         a comparison or a logical operator.
2811 2016-08-29  Tom de Vries  <tom@codesourcery.com>
2813         * c-common.c (build_va_arg): Fix type comparison assert.
2815 2016-08-29  Tom de Vries  <tom@codesourcery.com>
2817         * c-common.c (build_va_arg): Replace first argument type error
2818         with assert.
2820 2016-08-29  Tom de Vries  <tom@codesourcery.com>
2822         PR c/77398
2823         * c-common.c (build_va_arg): Add first argument error.  Build va_arg
2824         with error_mark_node as va_list instead of with illegal va_list.
2826 2016-08-25  Marek Polacek  <polacek@redhat.com>
2827             David Malcolm  <dmalcolm@redhat.com>
2829         * c-common.c (warn_logical_not_parentheses): Print fixit hints.
2830         * c-common.h (warn_logical_not_parentheses): Update declaration.
2832 2016-08-22  Marek Polacek  <polacek@redhat.com>
2834         PR c++/77321
2835         * c-common.c (warn_for_memset): Check type for null.
2837 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
2839         * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
2840         _FloatNx types for suffixes for built-in functions.
2842 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
2844         PR c/32187
2845         * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
2846         (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
2847         (RID_FLOAT128X): New enum rid values.
2848         (CASE_RID_FLOATN_NX): New macro.
2849         * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
2850         keywords.
2851         (c_common_type_for_mode): Check for _FloatN and _FloatNx and
2852         corresponding complex types.
2853         (c_common_nodes_and_builtins): For non-C++, register _FloatN and
2854         _FloatNx and corresponding complex types.
2855         (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
2856         * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
2857         and _FloatNx types for the widest type for determining
2858         DECIMAL_DIG.  Define __LDBL_DECIMAL_DIG__ as well as
2859         __DECIMAL_DIG__ for long double.  Handle FMA_SUFFIX being NULL.
2860         (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
2861         and _FloatNx types.
2862         * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
2863         constants.
2864         * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
2865         _FloatNx types.
2867 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
2869         * c-opts.c (c_diagnostic_finalizer): Update for change to
2870         diagnostic_show_locus.
2872 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
2874         * c-common.c: Include "spellcheck.h".
2875         (cb_get_suggestion): New function.
2876         * c-common.h (cb_get_suggestion): New decl.
2877         * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
2878         cb_get_suggestion.
2880 2016-08-18  Marek Polacek  <polacek@redhat.com>
2882         PR c/71514
2883         * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
2884         and pointer-to-VLA.
2886 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
2888         PR c/72857
2889         * c-common.c (substring_loc::get_range): Rename to...
2890         (substring_loc::get_location): ...this, converting param from a
2891         source_range * to a location_t *.  Call
2892         get_source_location_for_substring rather than
2893         get_source_range_for_substring, and pass in m_caret_idx.
2894         * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
2895         (substring_loc::get_range): Replace with...
2896         (substring_loc::get_location): ...this.
2897         (substring_loc::set_caret_index): New method.
2898         (substring_loc): Add field m_caret_idx.
2899         * c-format.c (format_warning_va): Update for above changes.
2900         Rename local "substring_loc" to "fmt_substring_loc" to avoid
2901         clashing with type name.
2902         (format_warning_at_char): Add caret_idx param to substring_loc ctor.
2903         (check_argument_type): Likewise.
2904         (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
2905         Use a copy when emitting warnings, setting the caret index from TYPE.
2907 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
2908             Arnaud Charlet  <charlet@adacore.com>
2910         * c-ada-spec.c (dump_number): New function.
2911         (handle_escape_character): Likewise.
2912         (print_ada_macros): Add handling of constant integers and strings.
2914 2016-08-12  Marek Polacek  <polacek@redhat.com>
2916         PR c/7652
2917         * c-common.c (scalar_to_vector): Adjust fall through comment.
2918         * c-opts.c (c_common_handle_option): Likewise.
2919         * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
2920         * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
2921         fall through comment.
2922         * cilk.c (extract_free_variables): Add FALLTHRU.
2924 2016-08-10  Jason Merrill  <jason@redhat.com>
2926         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
2928 2016-08-09  Jason Merrill  <jason@redhat.com>
2930         * c-common.c (c_common_attribute_table): vector_size affects type
2931         identity.
2933 2016-08-09  Marek Polacek  <polacek@redhat.com>
2935         PR c/7652
2936         * c-ada-spec.c (dump_generic_ada_node): Add return.
2938 2016-08-09  Jason Merrill  <jason@redhat.com>
2940         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
2941         C++17 constexpr lambdas.
2943 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
2945         PR c/64955
2946         * c-common.h (selftest::c_format_c_tests): New declaration.
2947         (selftest::run_c_tests): New declaration.
2948         * c-format.c: Include "selftest.h.
2949         (format_warning_va): Add param "corrected_substring" and use
2950         it to add a replacement fix-it hint.
2951         (format_warning_at_substring): Likewise.
2952         (format_warning_at_char): Update for new param of
2953         format_warning_va.
2954         (argument_parser::check_argument_type): Pass "fki" to
2955         check_format_types.
2956         (check_format_types): Add param "fki" and pass it to
2957         format_type_warning.
2958         (deref_n_times): New function.
2959         (get_modifier_for_format_len): New function.
2960         (selftest::test_get_modifier_for_format_len): New function.
2961         (get_format_for_type): New function.
2962         (format_type_warning): Add param "fki" and use it to attempt
2963         to provide hints for argument types when calling
2964         format_warning_at_substring.
2965         (selftest::get_info): New function.
2966         (selftest::assert_format_for_type_streq): New function.
2967         (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
2968         (selftest::test_get_format_for_type_printf): New function.
2969         (selftest::test_get_format_for_type_scanf): New function.
2970         (selftest::c_format_c_tests): New function.
2972 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
2974         PR c/52952
2975         * c-format.c: Include "diagnostic.h".
2976         (location_column_from_byte_offset): Delete.
2977         (location_from_offset): Delete.
2978         (format_warning_va): New function.
2979         (format_warning_at_substring): New function.
2980         (format_warning_at_char): New function.
2981         (check_format_arg): Capture location of format_tree and pass to
2982         check_format_info_main.
2983         (argument_parser): Add fields "start_of_this_format" and
2984         "format_string_cst".
2985         (flag_chars_t::validate): Add param "format_string_cst".  Convert
2986         warning_at call using location_from_offset to call to
2987         format_warning_at_char.
2988         (argument_parser::argument_parser): Add param "format_string_cst_"
2989         and use use it to initialize field "format_string_cst".
2990         Initialize new field "start_of_this_format".
2991         (argument_parser::read_format_flags): Convert warning_at call
2992         using location_from_offset to a call to format_warning_at_char.
2993         (argument_parser::read_any_format_left_precision): Likewise.
2994         (argument_parser::read_any_format_precision): Likewise.
2995         (argument_parser::read_any_other_modifier): Likewise.
2996         (argument_parser::find_format_char_info): Likewise, in three places.
2997         (argument_parser::parse_any_scan_set): Likewise, in one place.
2998         (argument_parser::handle_conversions): Likewise, in two places.
2999         (argument_parser::check_argument_type): Add param "fmt_param_loc"
3000         and use it to make a substring_loc.  Pass the latter to
3001         check_format_types.
3002         (check_format_info_main): Add params "fmt_param_loc" and
3003         "format_string_cst".  Convert warning_at calls using
3004         location_from_offset to calls to format_warning_at_char.  Pass the
3005         new params to the arg_parser ctor.  Pass "format_string_cst" to
3006         flag_chars.validate.  Pass "fmt_param_loc" to
3007         arg_parser.check_argument_type.
3008         (check_format_types): Convert first param from a location_t
3009         to a const substring_loc & and rename to "fmt_loc".  Attempt
3010         to extract the range of the relevant parameter and pass it
3011         to format_type_warning.
3012         (format_type_warning): Convert first param from a location_t
3013         to a const substring_loc & and rename to "fmt_loc".  Add
3014         params "param_range" and "type".  Replace calls to warning_at
3015         with calls to format_warning_at_substring.
3017 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
3019         * c-format.c (class flag_chars_t): New class.
3020         (struct length_modifier): New struct.
3021         (class argument_parser): New class.
3022         (flag_chars_t::flag_chars_t): New ctor.
3023         (flag_chars_t::has_char_p): New method.
3024         (flag_chars_t::add_char): New method.
3025         (flag_chars_t::validate): New method.
3026         (flag_chars_t::get_alloc_flag): New method.
3027         (flag_chars_t::assignment_suppression_p): New method.
3028         (argument_parser::argument_parser): New ctor.
3029         (argument_parser::read_any_dollar): New method.
3030         (argument_parser::read_format_flags): New method.
3031         (argument_parser::read_any_format_width): New method.
3032         (argument_parser::read_any_format_left_precision): New method.
3033         (argument_parser::read_any_format_precision): New method.
3034         (argument_parser::handle_alloc_chars): New method.
3035         (argument_parser::read_any_length_modifier): New method.
3036         (argument_parser::read_any_other_modifier): New method.
3037         (argument_parser::find_format_char_info): New method.
3038         (argument_parser::validate_flag_pairs): New method.
3039         (argument_parser::give_y2k_warnings): New method.
3040         (argument_parser::parse_any_scan_set): New method.
3041         (argument_parser::handle_conversions): New method.
3042         (argument_parser::check_argument_type): New method.
3043         (check_format_info_main): Introduce classes argument_parser
3044         and flag_chars_t, moving the code within the loop into methods
3045         of these classes.  Make various locals "const".
3047 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
3049         * c-common.c: Include "substring-locations.h".
3050         (get_cpp_ttype_from_string_type): New function.
3051         (g_string_concat_db): New global.
3052         (substring_loc::get_range): New method.
3053         * c-common.h (g_string_concat_db): New declaration.
3054         (class substring_loc): New class.
3055         * c-lex.c (lex_string): When concatenating strings, capture the
3056         locations of all tokens using a new obstack, and record the
3057         concatenation locations within g_string_concat_db.
3058         * c-opts.c (c_common_init_options): Construct g_string_concat_db
3059         on the ggc-heap.
3061 2016-07-29  Marek Polacek  <polacek@redhat.com>
3063         PR c/71926
3064         * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
3065         parentheses warning.
3067         PR c/71574
3068         * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
3070 2016-07-28  Martin Liska  <mliska@suse.cz>
3072         PR gcov-profile/68025
3073         * c-common.c (handle_no_profile_instrument_function_attribute):
3075 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3077         * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
3078         BITS_PER_UNIT_LOG.
3080 2016-07-25  Jason Merrill  <jason@redhat.com>
3082         PR c++/65970
3083         * c.opt (fconstexpr-loop-limit): New.
3085 2016-07-22  Martin Sebor  <msebor@redhat.com>
3087         PR c++/71675
3088         * c-common.c (resolve_overloaded_builtin): Avoid converting
3089         __atomic_compare_exchange_n return type to that of what its
3090         first argument points to.
3092 2016-07-22  Uros Bizjak  <ubizjak@gmail.com>
3094         * c-common.c: Use HOST_WIDE_INT_M1U instead of
3095         ~(unsigned HOST_WIDE_INT) 0.
3097 2016-07-22  Martin Liska  <mliska@suse.cz>
3099         PR gcov-profile/69028
3100         PR gcov-profile/62047
3101         * cilk.c (create_cilk_helper_decl): Set location of a new decl
3102         to the current_function_decl.
3104 2016-07-21  Jason Merrill  <jason@redhat.com>
3106         PR c++/65168
3107         * c-common.c (c_common_truthvalue_conversion): Check
3108         c_inhibit_evaluation_warnings for warning about address of
3109         reference.
3111 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
3113         * c-common.h (lookup_name_fuzzy): Convert return type from tree to
3114         const char *.
3116 2016-07-15  Jason Merrill  <jason@redhat.com>
3118         * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
3120 2016-07-15  Jakub Jelinek  <jakub@redhat.com>
3122         PR c/71858
3123         * c-common.h (enum lookup_name_fuzzy_kind): Add
3124         FUZZY_LOOKUP_FUNCTION_NAME.
3126 2016-07-08  Jason Merrill  <jason@redhat.com>
3128         P0145: Refining Expression Order for C++.
3129         * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
3130         * c-opts.c: Adjust.
3132 2016-07-05  Markus Trippelsdorf  <markus@trippelsdorf.de>
3134         PR c++/71214
3135         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
3137 2016-06-29  Thomas Schwinge  <thomas@codesourcery.com>
3139         * c-pragma.h (enum pragma_kind): Rename
3140         PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE.  Adjust all
3141         users.
3143 2016-06-29  Richard Biener  <rguenther@suse.de>
3145         PR middle-end/71002
3146         * c-common.c (c_common_get_alias_set): Remove union type punning case.
3148 2016-06-24  Jason Merrill  <jason@redhat.com>
3150         P0145R2: Refining Expression Order for C++.
3151         * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
3152         MODIFY_EXPR.
3154 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
3156         * c-common.c (check_builtin_function_arguments): Require last
3157         argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
3158         Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
3159         if the last argument is pointer to enumerated or boolean type.
3161 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
3163         PR c/70339
3164         * c-common.h (enum lookup_name_fuzzy_kind): New enum.
3165         (lookup_name_fuzzy): New prototype.
3167 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
3169         * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
3171 2016-06-14  Jason Merrill  <jason@redhat.com>
3173         P0145R2: Refining Expression Order for C++.
3174         * c.opt (fargs-in-order): New.
3175         * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
3177 2016-06-13  Jakub Jelinek  <jakub@redhat.com>
3179         PR sanitizer/71498
3180         * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
3181         all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
3183         PR preprocessor/71183
3184         * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
3185         to cb_get_source_date_epoch.
3187 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
3189         PR c/68657
3190         * c.opt (Wpsabi): Add Warning flag.
3192 2016-06-10  Martin Sebor  <msebor@redhat.com>
3194         PR c/71392
3195         * c-common.c (handle_nonnull_attribute): Accept
3196         the nonnull attribute in type-generic builtins.
3198 2016-06-09  Martin Sebor  <msebor@redhat.com>
3200         PR c/70883
3201         * c-common.c (builtin_function_validate_nargs): Make text of error
3202         message consistent with others like it.
3204 2016-06-08  Martin Sebor  <msebor@redhat.com>
3205             Jakub Jelinek  <jakub@redhat.com>
3207         PR c++/70507
3208         PR c/68120
3209         * c-common.c (check_builtin_function_arguments): Handle
3210         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
3212 2016-06-08  Richard Biener  <rguenther@suse.de>
3214         * c-common.c (parse_optimize_options): Improve diagnostic messages.
3216 2016-06-07  Richard Biener  <rguenther@suse.de>
3218         PR c/61564
3219         * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
3220         options and warn about others.
3222 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
3224         * c-common.c (get_source_date_epoch): Rename to
3225         cb_get_source_date_epoch.
3226         * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
3227         message when the parsing fails.  Use error_at instead of fatal_error.
3228         * c-common.h (get_source_date_epoch): Rename to
3229         cb_get_source_date_epoch.
3230         * c-common.h (cb_get_source_date_epoch): Prototype.
3231         * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
3232         * c-common.h (c_omp_region_type): Remove trailing comma.
3233         * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
3234         * c-lex.c (c_lex_with_flags): Remove initialization of
3235         pfile->source_date_epoch.
3237 2016-05-30  Jakub Jelinek  <jakub@redhat.com>
3239         PR c++/71349
3240         * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
3241         C_OMP_CLAUSE_SPLIT_TARGET.  Put OMP_CLAUSE_NOWAIT to
3242         C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
3243         instead of C_OMP_CLAUSE_SPLIT_FOR.
3245 2016-05-24  Richard Biener  <rguenther@suse.de>
3247         PR middle-end/70434
3248         PR c/69504
3249         * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
3250         (convert_vector_to_array_for_subscript): ... this.
3251         * c-common.c (convert_vector_to_pointer_for_subscript): Use a
3252         VIEW_CONVERT_EXPR to an array type.  Rename to ...
3253         (convert_vector_to_array_for_subscript): ... this.
3255 2016-05-12  Marek Polacek  <polacek@redhat.com>
3257         PR c/70756
3258         * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
3259         size_in_bytes and pass LOC to it.
3261 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
3263         PR c/43651
3264         * c.opt (Wduplicate-decl-specifier): New option.
3266 2016-05-11  Marek Polacek  <polacek@redhat.com>
3268         PR c++/71024
3269         * c-common.c (diagnose_mismatched_attributes): New function.
3270         * c-common.h (diagnose_mismatched_attributes): Declare.
3272 2016-05-04  Marek Polacek  <polacek@redhat.com>
3274         * c.opt (Wdangling-else): New option.
3276 2016-05-03  Marek Polacek  <polacek@redhat.com>
3278         PR c/70859
3279         * c-common.c (builtin_function_validate_nargs): Add location
3280         parameter.  Use it.
3281         (check_builtin_function_arguments): Add location and arguments
3282         parameters.  Use them.
3283         * c-common.h (check_builtin_function_arguments): Update declaration.
3285 2016-05-03  Richard Biener  <rguenther@suse.de>
3287         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
3288         allow call args to gimplify to SSA names.
3290 2016-05-03  Marek Polacek  <polacek@redhat.com>
3292         * c-common.h (enum c_omp_region_type): Remove stray comma.
3294 2016-05-02  Cesar Philippidis  <cesar@codesourcery.com>
3296         * c-common.h (enum c_omp_region_type): Define.
3298 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
3300         * c-common.c (shorten_compare): Use wi::to_wide.
3302 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
3304         PR middle-end/70626
3305         * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
3306         * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
3307         reduction clauses in acc parallel loops.
3309 2016-04-29  Marek Polacek  <polacek@redhat.com>
3311         PR c/70852
3312         * c-common.c (warn_for_memset): Check domain before accessing it.
3314 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3316         PR/69089
3317         * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
3318         "aligned" attribute.
3320 2016-04-28  Jason Merrill  <jason@redhat.com>
3322         * c-lex.c (c_common_has_attribute): Handle nodiscard.
3324 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
3325             Matthias Klose  <doko@debian.org>
3327         * c-common.c (get_source_date_epoch): New function, gets the environment
3328         variable SOURCE_DATE_EPOCH and parses it as long long with error
3329         handling.
3330         * c-common.h (get_source_date_epoch): Prototype.
3331         * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
3333 2015-04-27  Ryan Burn  <contact@rnburn.com>
3335         PR c++/69024
3336         PR c++/68997
3337         * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
3338         (cilk_recognize_spawn): Renamed from recognize_spawn and change to
3339         external linkage.
3340         (cilk_detect_and_unwrap): Corresponding changes.
3341         (extract_free_variables): Don't extract free variables from
3342         AGGR_INIT_EXPR slot.
3343         * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
3344         (cilk_recognize_spawn): Likewise.
3346 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
3348         * c.opt (Wmemset-elt-size): New option.
3349         * c-common.c (warn_for_memset): New function.
3350         * c-common.h (warn_for_memset): Declare.
3352 2016-04-25  Jason Merrill  <jason@redhat.com>
3354         * c-common.c (handle_unused_attribute): Accept CONST_DECL.
3355         No longer static.
3356         * c-common.h: Declare it.
3357         * c-lex.c (c_common_has_attribute): Add maybe_unused.
3359 2016-04-22  Jason Merrill  <jason@redhat.com>
3361         * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
3363 2016-04-20  Ilya Verbin  <ilya.verbin@intel.com>
3365         PR c++/69363
3366         * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
3367         * c-common.h (c_finish_cilk_clauses): Remove declaration.
3369 2016-04-18  Michael Matz  <matz@suse.de>
3371         * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
3372         and SET_DECL_ALIGN.
3374 2016-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3376         * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
3377         (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
3378         to incomplete types.
3379         (dump_nested_type): Remove redundant tests and tidy up.
3380         (print_ada_declaration): Also set TREE_VISITED on the declaration of
3381         a type which is the typedef of an original type.
3383 2016-04-15  Marek Polacek  <polacek@redhat.com>
3385         PR c/70651
3386         * c-common.c (build_va_arg): Change two asserts into errors and return
3387         error_mark_node.
3389 2016-04-13  Marek Polacek  <polacek@redhat.com>
3391         PR c++/70639
3392         * c-indentation.c (should_warn_for_misleading_indentation): Bail out
3393         for switch statements, too.
3395 2016-03-28  Jason Merrill  <jason@redhat.com>
3397         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
3399 2016-03-23  Marek Polacek  <polacek@redhat.com>
3401         PR c++/69884
3402         * c.opt (Wignored-attributes): New option.
3404 2016-03-22  David Malcolm  <dmalcolm@redhat.com>
3406         PR c/69993
3407         * c-indentation.c (warn_for_misleading_indentation): Rewrite the
3408         diagnostic text, reversing the order of the warning and note so
3409         that they appear in source order.
3411 2016-03-17  Marek Polacek  <polacek@redhat.com>
3413         PR c/69407
3414         * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
3415         operations.
3417 2016-03-14  Jason Merrill  <jason@redhat.com>
3419         * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
3421         * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
3423 2016-03-09  Richard Biener  <rguenther@suse.de>
3425         PR c/70143
3426         * c-common.c (strict_aliasing_warning): Add back
3427         alias_sets_conflict_p check.
3429 2016-03-08  Jason Merrill  <jason@redhat.com>
3431         * c-opts.c (set_std_cxx1z): Don't enable concepts.
3433 2016-03-04  David Malcolm  <dmalcolm@redhat.com>
3435         PR c/68187
3436         * c-indentation.c (get_visual_column): Move code to determine next
3437         tab stop to...
3438         (next_tab_stop): ...this new function.
3439         (line_contains_hash_if): Delete function.
3440         (detect_preprocessor_logic): Delete function.
3441         (get_first_nws_vis_column): New function.
3442         (detect_intervening_unindent): New function.
3443         (should_warn_for_misleading_indentation): Replace call to
3444         detect_preprocessor_logic with a call to
3445         detect_intervening_unindent.
3447 2016-03-04  David Malcolm  <dmalcolm@redhat.com>
3449         PR c/68187
3450         * c-indentation.c (should_warn_for_misleading_indentation): When
3451         suppressing warnings about cases where the guard and body are on
3452         the same column, only use the first non-whitespace column in place
3453         of the guard token column when dealing with "else" clauses.
3454         When rejecting aligned BODY and NEXT, loosen the requirement
3455         from equality with the first non-whitespace of guard to simply
3456         that they not be indented relative to it.
3458 2016-03-04  Richard Biener  <rguenther@suse.de>
3460         PR c++/70054
3461         * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
3462         instead of alias_sets_conflict_p.
3464 2016-03-01  Marek Polacek  <polacek@redhat.com>
3466         PR c++/69795
3467         * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
3468         any DECL.
3470 2016-02-22  Martin Sebor  <msebor@redhat.com>
3472         PR middle-end/69780
3473         * c-common.c (check_builtin_function_arguments): Validate and
3474         reject invalid arguments to __builtin_alloca_with_align.
3476 2016-02-20  Mark Wielaard  <mjw@redhat.com>
3478         PR c/28901
3479         * c.opt (Wunused-const-variable): Turn into Alias for...
3480         (Wunused-const-variable=): New option.
3482 2016-02-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3484         PR c++/69865
3485         * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
3486         here...
3487         (c_common_init_options): ...to here.
3488         (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
3490 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
3492         PR c++/69826
3493         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
3494         (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
3495         flag_preprocess_only.
3497 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
3499         PR c/69835
3500         * c.opt (Wnonnull-compare): Enable for -Wall.
3502 2016-02-15  Jakub Jelinek  <jakub@redhat.com>
3504         PR c++/69797
3505         * c-common.c (sync_resolve_size): Diagnose too few arguments
3506         even when params is non-NULL empty vector.
3508 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
3510         PR target/60410
3511         * c.opt (fshort-double): Remove.
3513 2016-02-05  Martin Sebor  <msebor@redhat.com>
3515         PR c++/69662
3516         * c.opt (Warning options): Update -Wplacement-new to take
3517         an optional argument.
3519 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
3521         PR preprocessor/69543
3522         PR c/69558
3523         * c-pragma.c (handle_pragma_diagnostic): Pass input_location
3524         instead of loc to control_warning_option.
3526 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
3528         * c.opt (fopenacc-dim=): New option.
3530 2016-01-27  Ryan Burn  <contact@rnburn.com>
3532         PR cilkplus/69267
3533         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
3534         gimplify_arg. Removed superfluous post_p argument.
3535         * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
3536         superfluous post_p argument.
3537         * c-gimplify.c (c_gimplify_expr): Likewise.
3539 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
3541         PR other/69006
3542         * c-opts.c (c_diagnostic_finalizer): Replace invocation of
3543         pp_newline_and_flush with pp_flush.
3545 2016-01-20  Martin Sebor  <msebor@redhat.com>
3547         PR c/69405
3548         * c-common.c (sync_resolve_size): Avoid printing diagnostic about
3549         an incompatible argument when the argument isn't a valid tree node.
3551 2016-01-18  Jason Merrill  <jason@redhat.com>
3553         PR c++/68767
3554         * c-common.c (check_function_arguments_recurse): Fold the whole
3555         COND_EXPR, not just the condition.
3557 2016-01-18  Tom de Vries  <tom@codesourcery.com>
3559         * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
3560         classify as loop clause.
3562 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
3564         PR bootstrap/68271
3565         * c-pragma.c (c_register_pragma_1): Adjust comment to note that
3566         C++ FE no longer has limit on number of pragmas.
3568 2015-01-14  Ryan Burn  <contact@rnburn.com>
3570         PR c++/69048
3571         * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
3572         to add missing cleanup point.
3574 2016-01-14  David Malcolm  <dmalcolm@redhat.com>
3576         PR c++/68819
3577         * c-indentation.c (get_visual_column): Add location_t param.
3578         Handle the column number being zero by effectively disabling the
3579         warning, with an "inform".
3580         (should_warn_for_misleading_indentation): Add location_t argument
3581         for all uses of get_visual_column.
3583 2016-01-10  Patrick Palka  <ppalka@gcc.gnu.org>
3585         PR c++/69029
3586         * c-indentation.c (should_warn_for_misleading_indentation):
3587         Don't warn about do-while statements.
3589 2016-01-07  Martin Sebor  <msebor@redhat.com>
3591         PR c/68966
3592         * c-common.c (sync_resolve_size): Reject first argument when it's
3593         a pointer to _Bool.
3595 2016-01-05  David Malcolm  <dmalcolm@redhat.com>
3597         PR c/69122
3598         * c-indentation.c (get_visual_column): Remove default argument.
3599         (should_warn_for_misleading_indentation): For the multiline case,
3600         update call to get_visual_column for next_stmt_exploc so that it
3601         captures the location of the first non-whitespace character in the
3602         relevant line.  Don't issue warnings if there is non-whitespace
3603         before the next statement.
3605 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
3607         Update copyright years.
3609 2015-12-21  David Malcolm  <dmalcolm@redhat.com>
3611         * c-common.c (binary_op_error): Convert first param from
3612         location_t to rich_location * and use it when emitting an error.
3613         * c-common.h (binary_op_error): Convert first param from
3614         location_t to rich_location *.
3616 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
3618         * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
3619         * c-lex.c (conflict_marker_get_final_tok_kind): New function.
3621 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
3623         * c-common.c (c_common_attribute_table): Handle "omp declare target
3624         link" attribute.
3626 2015-12-14  Jakub Jelinek  <jakub@redhat.com>
3628         PR c/68833
3629         * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
3631 2014-12-12  Tobias Burnus  <burnus@net-b.de>
3633         PR fortran/68815
3634         * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
3635         specifiers (%d, %i,%u and %c).
3637 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
3639         * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
3641 2015-12-08  Jakub Jelinek  <jakub@redhat.com>
3643         PR c/48088
3644         PR c/68657
3645         * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
3646         * c-pragma.c (handle_pragma_diagnostic): Adjust
3647         control_warning_option caller.
3649 2015-12-07  David Malcolm  <dmalcolm@redhat.com>
3651         * c-common.c (c_cpp_error): Update for change to
3652         rich_location::set_range.
3654 2015-12-04  Paolo Bonzini  <bonzini@gnu.org>
3656         * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
3657         shifting 1 out of the sign bit.
3659 2015-12-04  Kirill Yukhin  <kirill.yukhin@intel.com>
3661         * c-common.c (c_common_attribute_table[]): Update max arguments
3662         count for "simd" attribute.
3663         (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
3665 2015-12-03  Jakub Jelinek  <jakub@redhat.com>
3667         PR preprocessor/57580
3668         * c-ppoutput.c (print): Change printed field to bool.
3669         Move src_file last for smaller padding.
3670         (init_pp_output): Set print.printed to false instead of 0.
3671         (scan_translation_unit): Fix up formatting.  Set print.printed
3672         to true after printing something other than newline.
3673         (scan_translation_unit_trad): Set print.printed to true instead of 1.
3674         (maybe_print_line_1): Set print.printed to false instead of 0.
3675         (print_line_1): Likewise.
3676         (do_line_change): Set print.printed to true instead of 1.
3677         (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
3678         dump_macro): Set print.printed to false after printing newline.
3680 2015-12-02  Jason Merrill  <jason@redhat.com>
3682         * c-common.c (fold_for_warn): New.
3683         (warn_logical_operator, warn_tautological_cmp)
3684         (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
3686         * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
3687         (c_fully_fold_internal, decl_constant_value_for_optimization):
3688         Move to c/c-fold.c.
3689         * c-common.h: Don't declare decl_constant_value_for_optimization.
3691 2015-12-02  Joseph Myers  <joseph@codesourcery.com>
3693         PR c/68162
3694         * c-common.h (c_build_qualified_type): Add extra default
3695         arguments.
3697 2015-12-01  Julian Brown  <julian@codesourcery.com>
3698             Cesar Philippidis  <cesar@codesourcery.com>
3699             James Norris  <James_Norris@mentor.com>
3701         * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
3702         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
3703         (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
3705 2015-11-30  Eric Botcazou  <ebotcazou@adacore.com>
3707         * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
3708         (decl_sloc_common): Delete and move bulk of processing to...
3709         (decl_sloc): ...here.
3710         (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
3711         (dump_ada_double_name): Remove S parameter and compute the suffix.
3712         (dump_ada_array_type): Add PARENT parameter.  Simplify computation of
3713         element type and deal with an anonymous one.
3714         (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
3715         (dump_generic_ada_node): Tweak.  Adjust call to dump_ada_array_type
3716         and remove reference to QUAL_UNION_TYPE.
3717         (dump_nested_types): Make 2 passes on the fields and move bulk to...
3718         (dump_nested_type): ...here.  New function extracted from above.
3719         Generate a full declaration for anonymous element type of arrays.
3720         (print_ada_declaration): Really skip anonymous declarations.  Remove
3721         references to QUAL_UNION_TYPE.  Adjust call to dump_ada_array_type.
3722         Clean up processing of declarations of array types and objects.
3723         (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
3724         Remove obsolete code and tidy up.
3726 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
3728         PR c/67581
3729         * c-common.c (handle_transparent_union_attribute): Update
3730         also type variants.
3732 2015-11-27  Martin Liska  <mliska@suse.cz>
3734         PR c++/68312
3735         * array-notation-common.c (cilkplus_extract_an_triplets):
3736         Release vector of vectors.
3737         * cilk.c (gimplify_cilk_spawn): Free allocated memory.
3739 2015-11-26  Eric Botcazou  <ebotcazou@adacore.com>
3741         PR c++/68527
3742         * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
3743         (print_ada_struct_decl): Likewise.
3745 2015-11-23  Igor Zamyatin  <igor.zamyatin@intel.com>
3747         PR c++/68001
3748         * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
3749         * cilk.c (recognize_spawn): Determine location in a more precise
3750         way.
3752 2015-11-19  Jason Merrill  <jason@redhat.com>
3754         * c-common.c (shorten_compare): But look through macros from
3755         system headers.
3757 2015-11-18  Jason Merrill  <jason@redhat.com>
3759         * c-common.c (shorten_compare): Don't -Wtype-limits if the
3760         non-constant operand comes from a macro.
3762 2015-11-17  Jason Merrill  <jason@redhat.com>
3764         PR bootstrap/68346
3765         * c-common.c (warn_tautological_cmp): Fold before checking for
3766         constants.
3768 2015-11-16  Marek Polacek  <polacek@redhat.com>
3770         PR c++/68362
3771         * c-common.c (check_case_bounds): Fold low and high cases.
3773 2015-11-16  Marek Polacek  <polacek@redhat.com>
3775         * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
3776         * c-common.c (c_common_get_alias_set): Likewise.
3777         (handle_visibility_attribute): Likewise.
3779 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
3781         * c-common.c (handle_simd_attribute): New.
3782         (struct attribute_spec): Add entry for "simd".
3783         (handle_simd_attribute): New.
3785 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
3787         * c-lex.c (interpret_float): Use fold_convert.
3789 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
3791         * c-common.c (c_fully_fold_internal): Capture existing souce_range,
3792         and store it on the result.
3793         * c-opts.c (c_common_init_options): Set
3794         global_dc->colorize_source_p.
3796 2015-11-12  James Norris  <jnorris@codesourcery.com>
3797             Joseph Myers  <joseph@codesourcery.com>
3799         * c-pragma.c (oacc_pragmas): Add entry for declare directive.
3800         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
3801         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
3802         PRAGMA_OACC_CLAUSE_LINK.
3804 2015-11-11  Marek Polacek  <polacek@redhat.com>
3806         PR c/68107
3807         PR c++/68266
3808         * c-common.c (valid_array_size_p): New function.
3809         * c-common.h (valid_array_size_p): Declare.
3811 2015-11-11  Dominique d'Humieres  <dominiq@lps.ens.fr>
3813         PR bootstrap/68271
3814         * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
3816 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
3818         * array-notation-common.c: Remove unused header files.
3819         * c-ada-spec.c: Likewise.
3820         * c-cilkplus.c: Likewise.
3821         * c-common.c: Likewise.
3822         * c-cppbuiltin.c: Likewise.
3823         * c-dump.c: Likewise.
3824         * c-format.c: Likewise.
3825         * c-gimplify.c: Likewise.
3826         * c-indentation.c: Likewise.
3827         * c-lex.c: Likewise.
3828         * c-omp.c: Likewise.
3829         * c-opts.c: Likewise.
3830         * c-pch.c: Likewise.
3831         * c-ppoutput.c: Likewise.
3832         * c-pragma.c: Likewise.
3833         * c-pretty-print.c: Likewise.
3834         * c-semantics.c: Likewise.
3835         * c-ubsan.c: Likewise.
3836         * cilk.c: Likewise.
3837         * stub-objc.c: Likewise.
3839 2015-11-09  Thomas Schwinge  <thomas@codesourcery.com>
3840             Cesar Philippidis  <cesar@codesourcery.com>
3841             James Norris  <jnorris@codesourcery.com>
3842             Julian Brown  <julian@codesourcery.com>
3843             Nathan Sidwell  <nathan@codesourcery.com>
3845         * c-pragma.c (oacc_pragmas): Add "routine".
3846         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
3848 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
3850         * c-common.c (c_common_attributes): Add scalar_storage_order.
3851         (handle_scalar_storage_order_attribute): New function.
3852         * c-pragma.c (global_sso): New variable.
3853         (maybe_apply_pragma_scalar_storage_order): New function.
3854         (handle_pragma_scalar_storage_order): Likewise.
3855         (init_pragma): Register scalar_storage_order.
3856         * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
3857         * c.opt (Wscalar-storage-order): New warning.
3858         (fsso-struct=): New option.
3860 2015-11-08  Martin Sebor  <msebor@redhat.com>
3862         * c.opt (Wplacement-new): Add a period to the end of a sentence.
3864 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3866         * c-common.c: Don't undef DEF_BUILTIN.
3868 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
3870         * c-common.c (c_cpp_error): Convert parameter from location_t to
3871         rich_location *.  Eliminate the "column_override" parameter and
3872         the call to diagnostic_override_column.
3873         Update the "done_lexing" clause to set range 0
3874         on the rich_location, rather than overwriting a location_t.
3875         * c-common.h (c_cpp_error): Convert parameter from location_t to
3876         rich_location *.  Eliminate the "column_override" parameter.
3878 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
3879             Thomas Schwinge  <thomas@codesourcery.com>
3880             James Norris  <jnorris@codesourcery.com>
3882         * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
3883         AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses.  Associate REDUCTION
3884         clauses with parallel and kernels and loops.
3885         * c-pragma.h (enum pragma_omp_clause): Add entries for
3886         PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
3887         * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
3888         NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
3889         INDEPENDENT,SEQ}.
3890         (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
3892 2015-11-05  Martin Sebor  <msebor@redhat.com>
3894         PR c++/67942
3895         * c.opt (-Wplacement-new): New option.
3897 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
3899         * c-common.h (c_finish_omp_atomic): Add TEST argument.
3900         (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
3901         * c-omp.c (c_finish_omp_atomic): Add TEST argument.  Don't call
3902         save_expr or create_tmp_var* if TEST is true.
3903         (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
3904         Don't call add_stmt here.
3905         (struct c_omp_check_loop_iv_data): New type.
3906         (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
3907         c_omp_check_loop_iv_exprs): New functions.
3908         (c_omp_split_clauses): Adjust for lastprivate being allowed on
3909         distribute.
3910         (c_omp_declare_simd_clauses_to_numbers): Change
3911         OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
3912         (c_omp_declare_simd_clauses_to_decls): Similarly change those
3913         from numbers to PARM_DECLs.
3915 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
3917         * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
3918         flag_checking.
3920 2015-11-03  Bernd Schmidt  <bschmidt@redhat.com>
3922         PR c++-common/67882
3923         * c-common.h (fold_offsetof_1): Add argument.
3924         * c-common.c (fold_offsetof_1): Diagnose more invalid
3925         offsetof expressions that reference elements past the end of
3926         an array.
3928 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
3929             Chung-Lin Tang  <cltang@codesourcery.com>
3931         * c-pragma.c (oacc_pragmas): Add "atomic".
3932         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
3934 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
3936         * c-common.c (handle_target_clones_attribute): New.
3937         (c_common_attribute_table): Add handle_target_clones_attribute.
3938         (handle_always_inline_attribute): Add check on target_clones attribute.
3939         (handle_target_attribute): Ditto.
3941 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
3943         * array-notation-common.c: Reorder #include's and remove duplicates.
3944         * c-ada-spec.c: Likewise.
3945         * c-cilkplus.c: Likewise.
3946         * c-common.c: Likewise.
3947         * c-cppbuiltin.c: Likewise.
3948         * c-dump.c: Likewise.
3949         * c-format.c: Likewise.
3950         * c-gimplify.c: Likewise.
3951         * c-indentation.c: Likewise.
3952         * c-lex.c: Likewise.
3953         * c-omp.c: Likewise.
3954         * c-opts.c: Likewise.
3955         * c-pch.c: Likewise.
3956         * c-ppoutput.c: Likewise.
3957         * c-pragma.c: Likewise.
3958         * c-pretty-print.c: Likewise.
3959         * c-semantics.c: Likewise.
3960         * c-ubsan.c: Likewise.
3961         * cilk.c: Likewise.
3962         * stub-objc.c: Likewise.
3964 2015-10-28  Jason Merrill  <jason@redhat.com>
3966         * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
3968 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
3969             James Norris  <jnorris@codesourcery.com>
3970             Cesar Philippidis  <cesar@codesourcery.com>
3972         PR c/64765
3973         PR c/64880
3974         * c-common.h (c_oacc_split_loop_clauses): Declare function.
3975         * c-omp.c (c_oacc_split_loop_clauses): New function.
3977 2015-10-21  Martin Sebor  <msebor@redhat.com>
3979         PR driver/68043
3980         * c.opt: End each sentence that describes an option with a period.
3982 2015-10-20  Marek Polacek  <polacek@redhat.com>
3984         * array-notation-common.c (is_cilkplus_vector_p): Define.
3985         * c-common.h (is_cilkplus_vector_p): Declare.
3987 2015-10-20  Marek Polacek  <polacek@redhat.com>
3989         * c.opt (std=gnu++11): Do not describe as experimental.
3990         (std=gnu++14): Likewise.
3992 2015-10-19  Jason Merrill  <jason@redhat.com>
3994         * c-cppbuiltin.c (c_cpp_builtins): Define
3995         __cpp_nontype_template_args.
3997 2015-10-19  Jason Merrill  <jason@redhat.com>
3999         * c-cppbuiltin.c (c_cpp_builtins): Define
4000         __cpp_enumerator_attributes, __cpp_fold_expressions,
4001         __cpp_unicode_characters.
4003 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
4004             Aldy Hernandez  <aldyh@redhat.com>
4006         * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
4007         DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
4008         (c_define_builtins): Likewise.
4009         * c-common.h (enum c_omp_clause_split): Add
4010         C_OMP_CLAUSE_SPLIT_TASKLOOP.
4011         (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
4012         (c_finish_omp_for): Add ORIG_DECLV argument.
4013         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
4014         201511 instead of 201307.
4015         * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
4016         OMP_CRITICAL_CLAUSES to it.
4017         (c_finish_omp_ordered): Add CLAUSES argument, set
4018         OMP_ORDERED_CLAUSES to it.
4019         (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
4020         to it if OMP_FOR.  Clear DECL_INITIAL on the IVs.
4021         (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
4022         constructs and new OpenMP 4.5 clauses.  Clear
4023         OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD.  Add
4024         verification code.
4025         * c-pragma.c (omp_pragmas_simd): Add taskloop.
4026         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
4027         (enum pragma_omp_clause): Add
4028         PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
4029         and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
4031 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
4033         * c-lex.c (interpret_float): Use real_equal instead of
4034         REAL_VALUES_EQUAL.
4036 2015-10-04  Jason Merrill  <jason@redhat.com>
4038         Implement N4514, C++ Extensions for Transactional Memory.
4039         * c-common.c (c_common_reswords): Add C++ TM TS keywords.
4040         (c_common_attribute_table): Add transaction_safe_dynamic.
4041         transaction_safe now affects type identity.
4042         (handle_tm_attribute): Handle transaction_safe_dynamic.
4043         * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
4044         RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
4045         (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
4046         (D_TRANSMEM): New.
4047         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
4048         * c-pretty-print.c (pp_c_attributes_display): Don't print
4049         transaction_safe in C++.
4051 2015-10-02  Marek Polacek  <polacek@redhat.com>
4053         * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
4055 2015-10-02  Marek Polacek  <polacek@redhat.com>
4057         PR c/64249
4058         * c-common.c (warn_duplicated_cond_add_or_warn): New function.
4059         * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
4060         * c.opt (Wduplicated-cond): New option.
4062 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
4064         * c.opt (std=c11): Do not describe as experimental.
4065         (std=gnu11): Likewise.
4066         (std=iso9899:2011): Likewise.
4068 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
4070         * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
4071         (DEF_FUNCTION_TYPE_VAR_11): Delete.
4073 2015-09-25  Marek Polacek  <polacek@redhat.com>
4075         * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
4076         (ubsan_instrument_shift): Likewise.
4078 2015-09-25  Marek Polacek  <polacek@redhat.com>
4080         PR sanitizer/64906
4081         * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
4083 2015-09-24  Patrick Palka  <ppalka@gcc.gnu.org>
4085         * c-indentation.c (should_warn_for_misleading_indentation):
4086         Compare next_stmt_vis_column with guard_line_first_nws instead
4087         of with guard_line_vis_column.
4089 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4091         PR c/49654
4092         PR c/49655
4093         * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
4094         options and options not valid for the current language.
4096 2015-09-22  Patrick Palka  <ppalka@gcc.gnu.org>
4098         * c-indentation.c (should_warn_for_misleading_indentation):
4099         Float out and consolidate the calls to get_visual_column that
4100         are passed guard_exploc as an argument.  Compare
4101         next_stmt_vis_column with guard_line_first_nws instead of with
4102         body_line_first_nws.
4104 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
4106         * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
4107         Wnamespaces): New C++ warnings.
4109 2015-09-22  Jason Merrill  <jason@redhat.com>
4111         * c-common.h (abi_compat_version_crosses): New.
4112         (warn_abi_version): Declare.
4113         * c-common.c: Define it.
4114         * c-opts.c (c_common_post_options): Handle it.
4115         flag_abi_compat_version defaults to 8.
4117 2015-09-21  Ville Voutilainen  <ville.voutilainen@gmail.com>
4119         Complete the implementation of N4230, Nested namespace definition.
4120         * c-cppbuiltin.c: Add __cpp_namespace_attributes and
4121         __cpp_nested_namespace_definitions.
4123 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4125         * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
4127 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4129         * c-pragma.c (handle_pragma_diagnostic): Use explicit location
4130         when warning.
4131         * c-pragma.h (pragma_lex): Add optional loc argument.
4133 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
4135         * c-format.c (check_format_arg): Adjust to use common block size in all
4136         object pools.
4138 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
4140         * c-format.c (location_from_offset): Update for change in
4141         signature of location_get_source_line.
4142         * c-indentation.c (get_visual_column): Likewise.
4143         (line_contains_hash_if): Likewise.
4145 2015-09-14  Marek Polacek  <polacek@redhat.com>
4147         * c-opts.c (c_common_post_options): Set C++ standard earlier, before
4148         setting various warnings.
4150 2015-09-14  Marek Polacek  <polacek@redhat.com>
4152         * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
4153         a negative value.
4155 2015-09-11  Mark Wielaard  <mjw@redhat.com>
4157         PR c/28901
4158         * c.opt (Wunused-variable): Option from common.opt.
4159         (Wunused-const-variable): New option.
4161 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
4163         PR c++/53184
4164         * c.opt ([Wsubobject-linkage]): Add.
4166 2015-09-03  Martin Sebor  <msebor@redhat.com>
4168         PR c/66516
4169         * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
4170         functions.
4171         * c-common.c (reject_gcc_builtin): Define.
4173 2015-09-02  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4175         PR middle-end/60586
4176         * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
4177         prototype.
4178         * c-gimplify.c (c_gimplify_expr): Added a call to the function
4179         cilk_gimplify_call_params_in_spawned_fn.
4180         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
4181         (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
4182         unwrapping.
4184 2015-08-25  Marek Polacek  <polacek@redhat.com>
4186         PR middle-end/67330
4187         * c-common.c (handle_weak_attribute): Don't check whether the
4188         visibility can be changed here.
4190 2015-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4192         * c-lex.c (c_lex_with_flags): Use explicit locations.
4194 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
4196         * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
4197         c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
4199 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4201         PR middle-end/36757
4202         * c-common.c (check_builtin_function_arguments): Add check
4203         for BUILT_IN_SIGNBIT argument.
4205 2015-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
4207         PR c++/67160
4208         * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
4209         in c++1z mode.
4211 2015-08-17  Marek Polacek  <polacek@redhat.com>
4213         * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
4214         with whitespaces before qualifier names.
4216 2015-08-12  Marek Polacek  <polacek@redhat.com>
4218         PR c++/55095
4219         * c-common.c (maybe_warn_shift_overflow): Properly handle
4220         left-shifting 1 into the sign bit.
4222 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4224         * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
4226 2015-08-06  Andrew Sutton  <andrew.n.sutton@gmail.com>
4227             Braden Obrzut  <admin@maniacsvault.net>
4228             Jason Merrill  <jason@redhat.com>
4230         Add C++ Concepts TS support.
4231         * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
4232         * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
4233         (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
4234         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
4235         * c-opts.c (set_std_cxx1z): Set flag_concepts.
4236         * c.opt (fconcepts): New.
4238 2015-08-02  Martin Sebor  <msebor@redhat.com>
4240         * c.opt (-Wframe-address): New warning option.
4242 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
4244         * c-indentation.c (should_warn_for_misleading_indentation):
4245         Improve heuristics.
4247 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
4249         * c-indentation.c (get_visual_column): Add parameter first_nws,
4250         use it.  Update comment documenting the function.
4251         (is_first_nonwhitespace_on_line): Remove.
4252         (should_warn_for_misleading_indentation): Replace usage of
4253         of is_first_nonwhitespace_on_line with get_visual_column.
4255 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
4257         * c-indentation.h (struct token_indent_info): Define.
4258         (get_token_indent_info): Define.
4259         (warn_for_misleading_information): Declare.
4260         * c-common.h (warn_for_misleading_information): Remove.
4261         * c-identation.c (warn_for_misleading_indentation):
4262         Change declaration to take three token_indent_infos.  Adjust
4263         accordingly.
4264         * c-identation.c (should_warn_for_misleading_indentation):
4265         Likewise.  Bail out early if the body is a compound statement.
4266         (guard_tinfo_to_string): Define.
4268 2015-07-30  Jason Merrill  <jason@redhat.com>
4270         * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
4271         '*' for reference decay.
4273 2015-07-30  Marek Polacek  <polacek@redhat.com>
4275         * c-common.c (warn_tautological_cmp): Bail for float types.
4277 2015-07-27  Marek Polacek  <polacek@redhat.com>
4279         PR bootstrap/67030
4280         * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
4282 2015-07-27  Marek Polacek  <polacek@redhat.com>
4284         PR c++/66555
4285         PR c/54979
4286         * c-common.c (find_array_ref_with_const_idx_r): New function.
4287         (warn_tautological_cmp): New function.
4288         * c-common.h (warn_tautological_cmp): Declare.
4289         * c.opt (Wtautological-compare): New option.
4291 2015-07-23  Marek Polacek  <polacek@redhat.com>
4293         * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
4294         (ubsan_instrument_shift): Likewise.
4296 2015-07-23  Marek Polacek  <polacek@redhat.com>
4298         PR sanitizer/66908
4299         * c-ubsan.c: Include gimplify.h.
4300         (ubsan_instrument_division): Unshare OP0 and OP1.
4301         (ubsan_instrument_shift): Likewise.
4303 2015-07-20  Marek Polacek  <polacek@redhat.com>
4304             Richard Sandiford  <richard.sandiford@arm.com>
4306         PR c++/55095
4307         * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
4308         Use EXPR_LOC_OR_LOC.
4309         (maybe_warn_shift_overflow): New function.
4310         * c-common.h (maybe_warn_shift_overflow): Declare.
4311         * c-opts.c (c_common_post_options): Set warn_shift_overflow.
4312         * c.opt (Wshift-overflow): New option.
4314 2015-07-16  Martin Liska  <mliska@suse.cz>
4316         * c-format.c (static void check_format_info_main): Use
4317         object_allocator instead of pool_allocator.
4318         (check_format_arg): Likewise.
4319         (check_format_info_main): Likewise.
4321 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
4323         * c-opts.c: Remove multiline #include comment.
4325 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
4327         * c-common.c: Fix double word typos.
4329 2015-07-10  Eric Botcazou  <ebotcazou@adacore.com>
4331         * c-ada-spec.h (cpp_operation): Revert latest change.
4332         * c-ada-spec.c (print_ada_declaration): Likewise.  Skip implicit
4333         constructors and destructors.
4335 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
4337         * c-common.h: Adjust includes for flags.h changes.
4338         * stub-objc.c: Likewise.
4340 2015-07-08  Eric Botcazou  <ebotcazou@adacore.com>
4342         * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
4343         * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
4345 2015-07-08  Jakub Jelinek  <jakub@redhat.com>
4347         * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
4348         are to be removed, return NULL rather than original clauses list.
4350 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
4352         * array-notation-common.c: Adjust includes.
4353         * c-ada-spec.c: Likewise.
4354         * c-cilkplus.c: Likewise.
4355         * c-common.h: Likewise.
4356         * c-cppbuiltin.c: Likewise.
4357         * c-dump.c: Likewise.
4358         * c-format.c: Likewise.
4359         * c-gimplify.c: Likewise.
4360         * c-indentation.c: Likewise.
4361         * c-lex.c: Likewise.
4362         * c-omp.c: Likewise.
4363         * c-opts.c: Likewise.
4364         * c-pch.c: Likewise.
4365         * c-ppoutput.c: Likewise.
4366         * c-pragma.c: Likewise.
4367         * c-pretty-print.c: Likewise.
4368         * c-semantics.c: Likewise.
4369         * c-ubsan.c: Likewise.
4370         * cilk.c: Likewise.
4371         * stub-objc.c: Likewise.
4373 2015-07-07  Eric Botcazou  <ebotcazou@adacore.com>
4375         * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
4376         * c-ada-spec.c (print_ada_declaration): Skip move constructors.
4378 2015-07-01  Jason Merrill  <jason@redhat.com>
4380         * c-common.h (D_CXX11): Rename from D_CXX0X.
4381         (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
4382         * c-common.c: Adjust.
4384         * c-opts.c (c_common_post_options): Default to C++14.
4386         * c-opts.c (c_common_post_options): Highest ABI level is now 10.
4388 2015-06-30  Edward Smith-Rowland  <3dw4rd@verizon.net>
4390         Implement N4197 - Adding u8 character literals
4391         * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
4392         CPP_CHAR.
4393         * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
4394         CPP_UTF8CHAR_USERDEF tokens.
4395         * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
4396         and CPP_UTF8CHAR tokens.
4397         (lex_charconst): Treat CPP_UTF8CHAR token.
4399 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4401         PR fortran/66605
4402         * c-common.c (do_warn_unused_parameter): Move here.
4403         * c-common.h (do_warn_unused_parameter): Declare.
4405 2015-06-29  Marek Polacek  <polacek@redhat.com>
4407         PR c/66322
4408         * c-common.c (check_case_bounds): Add bool * parameter.  Set
4409         OUTSIDE_RANGE_P.
4410         (c_add_case_label): Add bool * parameter.  Pass it down to
4411         check_case_bounds.
4412         (c_do_switch_warnings): Add bool parameters.  Implement -Wswitch-bool
4413         warning here.
4414         * c-common.h (c_add_case_label, c_do_switch_warnings): Update
4415         declarations.
4417 2015-06-27  Marek Polacek  <polacek@redhat.com>
4419         * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
4420         or VECTOR_INTEGER_TYPE_P throughout.
4421         * c-gimplify.c: Likewise.
4423 2015-06-26  Marek Polacek  <polacek@redhat.com>
4425         * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
4426         * c-common.c (c_fully_fold_internal): Likewise.
4427         (c_alignof_expr): Likewise.
4428         * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
4429         * c-ubsan.c (ubsan_instrument_bounds): Likewise.
4430         * cilk.c (create_parm_list): Likewise.
4432 2015-06-26  Marek Polacek  <polacek@redhat.com>
4434         * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
4436 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
4438         * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
4439         * c-gimplify.c: Likewise.
4440         * c-pragma.c: Likewise.
4441         * c-ubsan.c: Likewise.
4442         * cilk.c: Likewise.
4444 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4446         * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
4447         ggc_hasher.
4449 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
4451         * cilk.c: Move calls.h after tm.h in the include chain.
4453 2015-06-25  Marek Polacek  <polacek@redhat.com>
4455         * array-notation-common.c: Use VAR_P throughout.
4456         * c-ada-spec.c: Likewise.
4457         * c-common.c: Likewise.
4458         * c-format.c: Likewise.
4459         * c-gimplify.c: Likewise.
4460         * c-omp.c: Likewise.
4461         * c-pragma.c: Likewise.
4462         * c-pretty-print.c: Likewise.
4463         * cilk.c: Likewise.
4465 2015-06-25  Marek Polacek  <polacek@redhat.com>
4467         * cilk.c (extract_free_variables): Use is_global_var.
4469 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
4471         * c-common.c: Don't include target-def.h.
4473 2015-06-23  Marek Polacek  <polacek@redhat.com>
4475         * c-common.c (warn_logical_operator): Use tree_int_cst_equal
4476         when comparing INTEGER_CSTs.
4478 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
4480         * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
4481         * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
4482         (dump_ada_template): Skip partially specialized types.
4484 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
4486         * c-common.c (scalar_to_vector): Use std::swap instead of manually
4487         swapping.
4489 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
4491         * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
4492         * c-ada-spec.c: Likewise.
4493         * c-cilkplus.c: Likewise.
4494         * c-common.c: Likewise.
4495         * c-common.h: Likewise.
4496         * c-cppbuiltin.c: Likewise.
4497         * c-dump.c: Likewise.
4498         * c-format.c: Likewise.
4499         * c-gimplify.c: Likewise.
4500         * c-indentation.c: Likewise.
4501         * c-lex.c: Likewise.
4502         * c-omp.c: Likewise.
4503         * c-opts.c: Likewise.
4504         * c-pch.c: Likewise.
4505         * c-ppoutput.c: Likewise.
4506         * c-pragma.c: Likewise.
4507         * c-pretty-print.c: Likewise.
4508         * c-semantics.c: Likewise.
4509         * c-ubsan.c: Likewise.
4510         * cilk.c: Likewise.
4511         * stub-objc.c: Likewise.
4513 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
4515         PR c++/65168
4516         * c-common.c (c_common_truthvalue_conversion): Warn when
4517         converting an address of a reference to a truth value.
4519 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
4521         * array-notation-common.c : Adjust include files.
4522         * c-ada-spec.c : Likewise.
4523         * c-cilkplus.c : Likewise.
4524         * c-common.c : Likewise.
4525         * c-common.h : Likewise.
4526         * c-cppbuiltin.c : Likewise.
4527         * c-dump.c : Likewise.
4528         * c-format.c : Likewise.
4529         * c-gimplify.c : Likewise.
4530         * c-indentation.c : Likewise.
4531         * c-lex.c : Likewise.
4532         * c-omp.c : Likewise.
4533         * c-opts.c : Likewise.
4534         * c-pch.c : Likewise.
4535         * c-ppoutput.c : Likewise.
4536         * c-pragma.c : Likewise.
4537         * c-pretty-print.c : Likewise.
4538         * c-semantics.c : Likewise.
4539         * c-ubsan.c : Likewise.
4540         * cilk.c : Likewise.
4541         * stub-objc.c : Likewise.
4543 2015-06-08  Marek Polacek  <polacek@redhat.com>
4545         PR c/66415
4546         * c-format.c (location_from_offset): Return LOC if LINE is null.
4548 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
4550         * c-common.h (c_parse_final_cleanups): New prototype.
4551         * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
4553 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
4555         * c-common.c (noplt): New attribute.
4556         (handle_noplt_attribute): New handler.
4558 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
4560         * array-notation-common.c: Adjust includes for restructured coretypes.h.
4561         * c-ada-spec.c: Likewise.
4562         * c-cilkplus.c: Likewise.
4563         * c-common.c: Likewise.
4564         * c-common.h: Likewise.
4565         * c-cppbuiltin.c: Likewise.
4566         * c-dump.c: Likewise.
4567         * c-format.c: Likewise.
4568         * c-gimplify.c: Likewise.
4569         * c-indentation.c: Likewise.
4570         * c-lex.c: Likewise.
4571         * c-omp.c: Likewise.
4572         * c-opts.c: Likewise.
4573         * c-pch.c: Likewise.
4574         * c-ppoutput.c: Likewise.
4575         * c-pragma.c: Likewise.
4576         * c-pretty-print.c: Likewise.
4577         * c-semantics.c: Likewise.
4578         * c-ubsan.c: Likewise.
4579         * cilk.c: Likewise.
4580         * stub-objc.c: Likewise.
4582 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
4584         PR c/66220:
4585         * c-indentation.c (should_warn_for_misleading_indentation): Use
4586         expand_location rather than expand_location_to_spelling_point.
4587         Don't warn if the guarding statement is more indented than the
4588         next/body stmts.
4590 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
4592         * c-indentation.c (warn_for_misleading_indentation): Bail out
4593         immediately if -Wmisleading-indentation isn't enabled.
4595 2015-06-01  Martin Liska  <mliska@suse.cz>
4597         * c-format.c (check_format_arg):Use new type-based pool allocator.
4598         (check_format_info_main) Likewise.
4600 2015-05-31  Eric Botcazou  <ebotcazou@adacore.com>
4602         * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
4603         (has_nontrivial_methods): Likewise.
4605 2015-05-25  Marek Polacek  <polacek@redhat.com>
4607         * c-ubsan.c (ubsan_instrument_shift): Use type0.
4609 2015-05-22  Marek Polacek  <polacek@redhat.com>
4611         PR c/47043
4612         * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
4614 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4616         * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
4617         STACK_GROWS_DOWNWARD.
4619 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4621         * c-cppbuiltin.c (c_cpp_builtins): Check the value of
4622         STACK_GROWS_DOWNWARD rather than if it is defined.
4624 2015-05-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4626         PR c/52952
4627         * c-format.c (location_column_from_byte_offset): New.
4628         (location_from_offset): New.
4629         (struct format_wanted_type): Add offset_loc field.
4630         (check_format_info): Move handling of location for extra arguments
4631         closer to the point of warning.
4632         (check_format_info_main): Pass the result of location_from_offset
4633         to warning_at.
4634         (format_type_warning): Pass the result of location_from_offset
4635         to warning_at.
4637 2015-05-20  Marek Polacek  <polacek@redhat.com>
4639         * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
4641 2015-05-20  Marek Polacek  <polacek@redhat.com>
4643         * c-ada-spec.c (dump_sloc): Use DECL_P.
4645 2015-05-20  Marek Polacek  <polacek@redhat.com>
4647         * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
4648         * c-common.c: Likewise.
4650 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
4652         * c-common.h (fe_file_change): Strengthen param from
4653         const line_map * to const line_map_ordinary *.
4654         (pp_file_change): Likewise.
4655         * c-lex.c (fe_file_change): Likewise.
4656         (cb_define): Use linemap_check_ordinary when invoking
4657         SOURCE_LINE.
4658         (cb_undef): Likewise.
4659         * c-opts.c (c_finish_options): Use linemap_check_ordinary when
4660         invoking cb_file_change.
4661         (c_finish_options): Likewise.
4662         (push_command_line_include): Likewise.
4663         (cb_file_change): Strengthen param "new_map" from
4664         const line_map * to const line_map_ordinary *.
4665         * c-ppoutput.c (cb_define): Likewise for local "map".
4666         (pp_file_change): Likewise for param "map" and local "from".
4668 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
4670         * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
4672 2015-05-18  Tom de Vries  <tom@codesourcery.com>
4674         * c-common.c (build_va_arg_1): New function.
4675         (build_va_arg): Add address operator to va_list operand if necessary.
4677 2015-05-15  Mikhail Maltsev  <maltsevm@gmail.com>
4679         PR c/48956
4680         * c-common.c (int_safely_convertible_to_real_p): Define.
4681         (unsafe_conversion_p): Check conversions involving complex types.
4682         (conversion_warning): Add new warning message for conversions which
4683         discard imaginary component.
4684         * c-common.h: (enum conversion_safety): Add new enumerator for such
4685         conversions.
4687 2015-05-14  Marek Polacek  <polacek@redhat.com>
4689         PR c/66066
4690         PR c/66127
4691         * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
4692         (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
4693         C_MAYBE_CONST_EXPR_INT_OPERANDS set.  Add FOR_INT_CONST argument and
4694         use it.  If FOR_INT_CONST, require that all evaluated operands be
4695         INTEGER_CSTs.
4697 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
4699         * c-common.h (warn_for_misleading_indentation): New prototype.
4700         * c-indentation.c: New file.
4701         * c.opt (Wmisleading-indentation): New option.
4703 2015-05-12  Tom de Vries  <tom@codesourcery.com>
4705         PR tree-optimization/66010
4706         * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
4708 2015-05-09  Jason Merrill  <jason@redhat.com>
4710         * c-opts.c (c_common_post_options): Also clear
4711         cpp_opts->cpp_warn_cxx11_compat.
4713         * c-common.h (enum cxx_dialect): Add cxx_unset.
4714         * c-common.c (cxx_dialect): Initialize to cxx_unset.
4715         * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
4717         * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
4718         (std=gnu++0x): Mark as Undocumented.
4719         (std=gnu++1y): Add deprecated message.
4721 2015-05-08  Jason Merrill  <jason@redhat.com>
4723         * c.opt (Wc++11-compat): Make primary.  Rename var warn_cxx11_compat.
4724         * c-opts.c: Adjust.
4726         * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
4728 2015-05-08  Marek Polacek  <polacek@redhat.com>
4730         PR c/64918
4731         * c.opt (Woverride-init-side-effects): New option.
4733 2015-05-07  Marek Polacek  <polacek@redhat.com>
4735         PR c/65179
4736         * c-common.c (c_fully_fold_internal): Warn when left shifting a
4737         negative value.
4738         * c.opt (Wshift-negative-value): New option.
4739         * c-opts.c (c_common_post_options): Set warn_shift_negative_value
4740         when -Wextra and C99/C++11 mode.
4742 2015-05-07  Marek Polacek  <polacek@redhat.com>
4743             Martin Uecker  <uecker@eecs.berkeley.edu>
4745         * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
4746         flexible member array-like members if SANITIZE_BOUNDS_STRICT.
4748 2015-05-05  Jason Merrill  <jason@redhat.com>
4750         * c.opt (Wterminate): New.
4752 2015-04-30  Marek Polacek  <polacek@redhat.com>
4754         * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
4755         require that the non-constant be of a boolean type.
4757 2015-04-29  Josh Triplett  <josh@joshtriplett.org>
4759         * c-common.c (handle_section_attribute): Refactor to reduce
4760         nesting and distinguish between error cases.
4762 2015-04-29  Marek Polacek  <polacek@redhat.com>
4764         PR c/64610
4765         * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
4766         with 0/1.
4768 2015-04-29  Jakub Jelinek  <jakub@redhat.com>
4770         * c-common.h (omp_clause_mask): Unconditionally define as a class.
4771         Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
4772         HOST_BITS_PER_WIDE_INT.
4774 2015-04-28  Tom de Vries  <tom@codesourcery.com>
4776         PR tree-optimization/65887
4777         * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
4779 2015-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4780             Pierre-Marie de Rodat  <derodat@adacore.com>
4782         * c-ada-spec.c (in_function): Delete.
4783         (dump_generic_ada_node): Do not change in_function and remove the
4784         redundant code dealing with it.
4785         (print_ada_declaration): Do not change in_function.  Use INDENT_INCR.
4786         (print_ada_methods): Output the static member functions in a nested
4787         package after the regular methods as well as associated renamings.
4789 2015-04-24  Marek Polacek  <polacek@redhat.com>
4791         PR c/65830
4792         * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
4793         and OPT_Wshift_count_overflow.
4795         PR c/63357
4796         * c-common.c (warn_logical_operator): Warn if the operands have the
4797         same expressions.
4799 2015-04-24  Marek Polacek  <polacek@redhat.com>
4801         PR c/61534
4802         * c-common.c (warn_logical_operator): Bail if either operand comes
4803         from a macro expansion.
4805 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4807         PR target/55143
4808         * c-common.c (c_default_pointer_mode): Add definition.
4809         * c-common.h (c_default_pointer_mode): Add declaration.
4811 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
4813         * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
4814         on record_builtin_type argument.
4816 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
4818         PR c/65120
4819         * c-common.c (warn_logical_not_parentheses): Don't warn for
4820         !x == 0 or !x != 0.
4822 2015-03-07  Marek Polacek  <polacek@redhat.com>
4824         PR sanitizer/65280
4825         * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
4826         before trying to figure out whether we have a flexible array member.
4828 2015-03-06  Eric Botcazou  <ebotcazou@adacore.com>
4829             Jonathan Wakely  <jwakely.gcc@gmail.com>
4831         * c-ada-spec.c (dump_ada_double_name): Fix pasto.
4833 2015-03-05  Eric Botcazou  <ebotcazou@adacore.com>
4835         PR ada/65319
4836         * c-ada-spec.c (print_destructor): Remove obsolete code.
4838 2015-03-01  Eric Botcazou  <ebotcazou@adacore.com>
4840         * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
4841         (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
4842         DECL_TEMPLATE_RESULT emulations.
4843         (dump_ada_template)): Add guard for TYPE_METHODS.
4845 2015-02-27  Marek Polacek  <polacek@redhat.com>
4847         PR c/65040
4848         * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
4850 2015-02-27  Kai Tietz  <ktietz@redhat.com>
4852         PR c/35330
4853         * c-pragma.c (handle_pragma_weak): Do not try to create
4854         weak/alias of declarations not being function, or variable
4855         declarations.
4857 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
4859         PR libgomp/64625
4860         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
4861         Remove macros.
4862         (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
4864 2015-02-16  Marek Polacek  <polacek@redhat.com>
4866         PR c/65066
4867         * c-format.c (check_format_types): Handle null param.
4869 2015-02-13  Marek Polacek  <polacek@redhat.com>
4871         PR c/65040
4872         * c-format.c (check_format_types): Don't warn about different
4873         signedness if the original value is in the range of WANTED_TYPE.
4875 2015-02-12  Jason Merrill  <jason@redhat.com>
4877         PR c++/64956
4878         * c-opts.c (c_common_post_options): Change flag_abi_version from 0
4879         to the current highest version.
4880         * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
4882 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
4884         PR c/64824
4885         PR c/64868
4886         * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
4887         instead of RDIV_EXPR.  Use build_binary_op instead of
4888         build2_loc.
4890 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
4892         * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
4893         to pass input_location as first argument.
4895 2015-01-23  Tom de Vries  <tom@codesourcery.com>
4897         PR libgomp/64672
4898         * c.opt (fopenacc): Mark as LTO option.
4900 2015-01-23  Tom de Vries  <tom@codesourcery.com>
4902         PR libgomp/64707
4903         * c.opt (fopenmp): Mark as LTO option.
4905 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
4907         PR c/63307
4908         * cilk.c (fill_decls_vec): Only put decls into vector v.
4909         (compare_decls): Fix up formatting.
4911 2015-01-21  Igor Zamyatin  <igor.zamyatin@intel.com>
4913         PR c/63307
4914         * cilk.c: Include vec.h.
4915         (struct cilk_decls): New structure.
4916         (wrapper_parm_cb): Split this function to...
4917         (fill_decls_vec): ...this...
4918         (create_parm_list): ...and this.
4919         (compare_decls): New function.
4920         (for_local_cb): Remove.
4921         (wrapper_local_cb): Ditto.
4922         (build_wrapper_type): For now first traverse and fill vector of
4923         declarations then sort it and then deal with sorted vector.
4924         (cilk_outline): Ditto.
4925         (declare_one_free_variable): Ditto.
4927 2015-01-21  Jason Merrill  <jason@redhat.com>
4929         PR c++/64629
4930         * c-format.c (check_format_arg): Call decl_constant_value.
4932 2015-01-19  Martin Liska  <mliska@suse.cz>
4934         * c-common.c (handle_noicf_attribute): New function.
4936 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
4937             Bernd Schmidt  <bernds@codesourcery.com>
4938             James Norris  <jnorris@codesourcery.com>
4939             Cesar Philippidis  <cesar@codesourcery.com>
4940             Ilmir Usmanov  <i.usmanov@samsung.com>
4941             Jakub Jelinek  <jakub@redhat.com>
4943         * c.opt (fopenacc): New option.
4944         * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
4945         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
4946         New macros.
4947         * c-common.h (c_finish_oacc_wait): New prototype.
4948         * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
4949         (c_finish_oacc_wait): New function.
4950         * c-pragma.c (oacc_pragmas): New variable.
4951         (c_pp_lookup_pragma, init_pragma): Handle it.
4952         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
4953         PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
4954         PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
4955         PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
4956         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
4957         PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
4958         PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
4959         PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
4960         PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
4961         PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
4962         PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
4963         PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
4964         PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
4965         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
4966         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
4967         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
4968         PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
4969         PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
4970         PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
4971         PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
4972         PRAGMA_OACC_CLAUSE_WORKER.
4974 2015-01-14  Marcos Diaz  <marcos.diaz@tallertechnologies.com>
4976         * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
4977         for the new option fstack-protector_explicit.
4978         * c-common.c (c_common_attribute_table): Add stack_protect attribute.
4979         (handle_stack_protect_attribute): New function.
4981 2015-01-13  Martin Uecker  <uecker@eecs.berkeley.edu>
4983         * c.opt: New option -Warray-bounds=.
4985 2015-01-09  Michael Collison  <michael.collison@linaro.org>
4987         * array-notation-common.c: Include hash-set.h, machmode.h,
4988         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4989         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
4990         * c-ada-spec.c: Ditto.
4991         * c-cilkplus.c: Ditto.
4992         * c-common.c: Include input.h due to flattening of tree.h.
4993         Define macro GCC_C_COMMON_C.
4994         * c-common.h: Flatten tree.h header files into c-common.h.
4995         Remove include of tree-core.h.
4996         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
4997         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4998         fold-const.h, wide-int.h, and inchash.h due to
4999         flattening of tree.h.
5000         * c-dump.c: Ditto.
5001         * c-format.c: Flatten tree.h header files into c-common.h.
5002         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
5003         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
5004         fold-const.h, wide-int.h, and inchash.h due to
5005         flattening of tree.h.
5006         * c-dump.c: Include hash-set.h, machmode.h,
5007         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
5008         fold-const.h, wide-int.h, and inchash.h due to
5009         flattening of tree.h.
5010         * c-format.c: Include hash-set.h, machmode.h,
5011         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
5012         fold-const.h, wide-int.h, inchash.h and real.h due to
5013         flattening of tree.h.
5014         * c-gimplify.c: Include hash-set.h, machmode.h,
5015         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
5016         fold-const.h, wide-int.h, and inchash.h due to
5017         flattening of tree.h.
5018         * cilk.c: Ditto.
5019         * c-lex.c: Ditto.
5020         * c-omp.c: Ditto.
5021         * c-opts.c: Ditto.
5022         * c-pch.c: Ditto.
5023         * c-ppoutput.c: Ditto.
5024         * c-pragma.c: Ditto.
5025         * c-pretty-print.c: Ditto.
5026         * c-semantics.c: Ditto.
5027         * c-ubsan.c: Ditto.
5028         * stub-objc.c: Ditto.
5030 2015-01-08  Jason Merrill  <jason@redhat.com>
5032         * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
5033         do_ubsan_in_current_function.
5034         (ubsan_maybe_instrument_reference_or_call): Likewise.
5035         * c-ubsan.h: Declare it.
5037 2015-01-08  Mike Stump  <mikestump@comcast.net>
5039         * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
5041 2015-01-07  Marek Polacek  <polacek@redhat.com>
5043         PR c/64440
5044         * c-common.c (c_fully_fold_internal): Warn for division and modulo
5045         if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
5047 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
5049         PR c++/31397
5050         * c.opt (Wsuggest-override): New option.
5052 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
5054         Update copyright years.
5056 2015-01-05  Marek Polacek  <polacek@redhat.com>
5058         PR c/64423
5059         * c-common.c (warn_array_subscript_with_type_char): Add location_t
5060         parameter.  Use it.
5061         * c-common.h (warn_array_subscript_with_type_char): Update
5062         declaration.
5064 2014-12-20  Edward Smith-Rowland  <3dw4rd@verizon.net>
5066         * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
5067         Control macro with flag_sized_deallocation.
5069 2014-12-20  Martin Uecker  <uecker@eecs.berkeley.edu>
5071         * c.opt (Wdiscarded-array-qualifiers): New option.
5073 2014-12-19  Jakub Jelinek  <jakub@redhat.com>
5075         PR preprocessor/63831
5076         * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
5077         and __has_cpp_attribute here.
5078         * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
5079         c_common_has_attribute.
5080         * c-common.h (c_common_has_attribute): New prototype.
5081         * c-lex.c (init_c_lex): Set cb->has_attribute to
5082         c_common_has_attribute instead of cb_has_attribute.
5083         (get_token_no_padding): New function.
5084         (cb_has_attribute): Renamed to ...
5085         (c_common_has_attribute): ... this.  No longer static.  Use
5086         get_token_no_padding, require ()s, don't build TREE_LIST
5087         unnecessarily, fix up formatting, adjust diagnostics, call
5088         init_attributes.
5090 2014-12-15  Jason Merrill  <jason@redhat.com>
5092         * c.opt (-fsized-deallocation, -Wc++14-compat): New.
5093         (-Wsized-deallocation): New.
5094         * c-opts.c (c_common_post_options): -fsized-deallocation defaults
5095         to on in C++14 and up.
5097 2014-12-11  Jason Merrill  <jason@redhat.com>
5099         * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
5101         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
5102         we aren't complaining about VLAs.
5104 2014-12-06  Marek Polacek  <polacek@redhat.com>
5106         PR tree-optimization/64183
5107         * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
5108         shift-expression if it is integer_type_node.  Use types_compatible_p.
5110 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
5112         * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
5113         last argument from create_tmp_var_raw and create_tmp_var calls.
5114         * cilk.c (gimplify_cilk_spawn): Likewise.
5115         * c-omp.c (c_finish_omp_atomic): Likewise.
5117 2014-11-28  Marek Polacek  <polacek@redhat.com>
5119         * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
5120         instead of unsigned_type_node.
5122 2014-11-28  Marek Polacek  <polacek@redhat.com>
5124         PR c/63862
5125         * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
5126         to op1_utype.
5127         * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
5128         expression to unsigned_type_node.
5130 2014-11-20  Mark Wielaard  <mjw@redhat.com>
5132         PR debug/38757
5133         * c-opts.c (set_std_c89): Set lang_hooks.name.
5134         (set_std_c99): Likewise.
5135         (set_std_c11): Likewise.
5136         (set_std_cxx98): Likewise.
5137         (set_std_cxx11): Likewise.
5138         (set_std_cxx14): Likewise.
5139         (set_std_cxx1z): Likewise.
5141 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
5143         PR target/63764
5144         * c-common.h (convert_vector_to_pointer_for_subscript): Change
5145         return type to bool.
5146         * c-common.c: Include gimple-expr.h.
5147         (convert_vector_to_pointer_for_subscript): Change return type to
5148         bool.  If *vecp is not lvalue_p and has VECTOR_TYPE, return true
5149         and copy it into a TARGET_EXPR and use that instead of *vecp
5150         directly.
5152 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
5154         Merger of git branch "gimple-classes-v2-option-3".
5155         * ChangeLog.gimple-classes: New.
5156         * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
5157         from being just a vec<gimple> to a vec<gbind *>.
5159 2014-11-18  Jakub Jelinek  <jakub@redhat.com>
5161         PR sanitizer/63813
5162         * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
5163         argument to ptype, set type to TREE_TYPE (ptype).  Don't call
5164         get_pointer_alignment for non-pointers.  Use ptype, or if it is
5165         reference type, corresponding pointer type, as type of kind
5166         argument.
5167         (ubsan_maybe_instrument_reference,
5168         ubsan_maybe_instrument_member_call): Adjust callers.
5170 2014-11-15  Marek Polacek  <polacek@redhat.com>
5172         PR middle-end/63884
5173         * array-notation-common.c (is_sec_implicit_index_fn): Return false
5174         for NULL fndecl.
5175         (extract_array_notation_exprs): Return for NULL node.
5177 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
5179         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
5180         undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
5182 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
5184         PR c/59708
5185         * c-common.c (check_builtin_function_arguments): Handle
5186         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
5188 2014-11-10  Andi Kleen  <ak@linux.intel.com>
5190         PR c/60804
5191         * c-common.h (check_no_cilk): Declare.
5192         * cilk.c (get_error_location): New function.
5193         (check_no_cilk): Dito.
5195 2014-11-10  Andi Kleen  <ak@linux.intel.com>
5197         * cilk.c (recognize_spawn): Use expression location
5198         for error message.
5200 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
5202         * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
5204 2014-11-10  Edward Smith-Rowland  <3dw4rd@verizon.net>
5206         * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
5207         (__cpp_rtti, __cpp_exceptions): New macros for C++98;
5208         (__cpp_range_based_for, __cpp_initializer_lists,
5209         __cpp_delegating_constructors, __cpp_nsdmi,
5210         __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
5211         for C++11; (__cpp_attribute_deprecated): Remove in favor of
5212         __has_cpp_attribute.
5213         * c-lex.c (cb_has_attribute): New callback CPP function;
5214         (init_c_lex): Set has_attribute callback.
5216 2014-11-04  Richard Biener  <rguenther@suse.de>
5218         * c-common.c (shorten_compare): Do not shorten mixed
5219         DFP and non-DFP compares.
5221 2014-11-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
5223         * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
5224         * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
5225         Commentary and rearrangement of tests.
5226         * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
5227         Commentary and rearrangement of tests.
5228         * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
5229         * g++.dg/cpp1y/feat-cxx98.C: Commentary.
5231 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
5233         * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
5234         enum from machine_mode.
5236 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
5238         * c-common.c: Adjust include files.
5239         * c-gimplify.c: Ditto.
5240         * cilk.c: Ditto.
5241         * c-pragma.c: Ditto.
5242         * c-ubsan.c: Ditto.
5244 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
5246         * c-gimplify.c: Adjust include files.
5248 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5250         PR c++/53061
5251         * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
5252         c_common_initialize_diagnostics.
5253         * c-common.h: Likewise.
5255 2014-10-24  Marek Polacek  <polacek@redhat.com>
5257         PR c/56980
5258         * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
5259         print "struct"/"union"/"enum" for typedefed names.
5261 2014-10-23  Marek Polacek  <polacek@redhat.com>
5263         * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
5264         in unsigned type.
5266 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
5267             Yury Gribov  <y.gribov@samsung.com>
5269         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
5270         ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
5271         instead of flag_sanitize_recover as bool flag.
5273 2014-10-21  Kirill Yukhin  <kirill.yukhin@intel.com>
5275         * cilk.c: Revert previous change.
5277 2014-10-20  Igor Zamyatin  <igor.zamyatin@intel.com>
5279         PR c/63307
5280         * cilk.c: Include vec.h.
5281         (struct cilk_decls): New structure.
5282         (wrapper_parm_cb): Split this function to...
5283         (fill_decls_vec): ...this...
5284         (create_parm_list): ...and this.
5285         (compare_decls): New function.
5286         (for_local_cb): Remove.
5287         (wrapper_local_cb): Ditto.
5288         (build_wrapper_type): For now first traverse and fill vector of
5289         declarations then sort it and then deal with sorted vector.
5290         (cilk_outline): Ditto.
5291         (declare_one_free_variable): Ditto.
5293 2014-10-17  Marek Polacek  <polacek@redhat.com>
5295         * c-opts.c (c_common_post_options): Set warn_implicit_int.
5296         * c.opt (Wimplicit-int): Initialize to -1.
5298 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
5300         * c-pragma.c: Adjust include files.
5301         * c-semantics.c: Likewise.
5303 2014-10-16  DJ Delorie  <dj@redhat.com>
5305         * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
5306         multiples of bytes.
5308 2014-10-14  Jason Merrill  <jason@redhat.com>
5310         PR c++/63455
5311         * c-common.h (CPP_PREPARSED_EXPR): New.
5312         (N_CP_TTYPES): Adjust.
5314 2014-10-15  Marek Polacek  <polacek@redhat.com>
5316         * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
5318 2014-10-14  DJ Delorie  <dj@redhat.com>
5320         * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
5321         types, not just __int128.
5322         * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
5323         types, not just __int128.
5324         (cpp_atomic_builtins): Round pointer sizes up.
5325         (type_suffix): Use type precision, not specific types.
5326         * c-common.c (c_common_reswords): Remove __int128 special case.
5327         (c_common_type_for_size): Check for all __intN types, not just
5328         __int128.
5329         (c_common_type_for_mode): Likewise.
5330         (c_common_signed_or_unsigned_type): Likewise.
5331         (c_build_bitfield_integer_type): Likewise.
5332         (c_common_nodes_and_builtins): Likewise.
5333         (keyword_begins_type_specifier): Likewise.
5334         * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
5335         __intN variants.
5337 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
5339         * c-common.c: Use hash_table instead of hashtab.
5341 2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>
5343         * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
5344         C++11 section.
5346 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
5348         PR c++/54427
5349         PR c++/57198
5350         PR c++/58845
5351         * c-common.c (warn_logical_operator): Punt for vectors.
5353 2014-10-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
5355         Implement SD-6: SG10 Feature Test Recommendations
5356         * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
5357         macros and the __has_header macro.
5359 2014-09-30  Jason Merrill  <jason@redhat.com>
5361         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
5362         RID_IS_TRIVIALLY_CONSTRUCTIBLE.
5363         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
5365         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
5366         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
5368         * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
5369         * c-common.c (c_common_reswords): Remove __is_convertible_to.
5371 2014-09-24  Marek Polacek  <polacek@redhat.com>
5373         PR c/61405
5374         PR c/53874
5375         * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
5377 2014-09-23  Andi Kleen  <ak@linux.intel.com>
5379         * c-common.c (handle_no_reorder_attribute): New function.
5380         (c_common_attribute_table): Add no_reorder attribute.
5382 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
5384         * c-cppbuiltin.c (c_cpp_builtins): Define
5385         __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
5386         modes.
5388 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
5390         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
5391         for supported floating-point modes.
5393 2014-09-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5395         * c.opt (Wpsabi): Use LangEnabledBy.
5396         * c-opts.c (c_common_handle_option): Do not handle here.
5398 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
5400         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
5401         macros for floating-point modes.
5403 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
5405         PR target/58757
5406         * c-cppbuiltin.c (builtin_define_float_constants): Correct
5407         __*_DENORM_MIN__ without denormals.
5409 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
5411         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
5412         ubsan_instrument_vla, ubsan_instrument_return): Adjust
5413         ubsan_create_data callers.
5414         (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
5415         index is constant or BIT_AND_EXPR with constant mask and is
5416         small enough for the bound.
5417         * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
5418         ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
5420 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5422         * c.opt: Add CppReason to various flags.
5423         (Wdate-time): Re-sort.
5424         * c-common.c: Include c-common.h earlier.
5425         (struct reason_option_codes_t): Delete.
5426         (c_option_controlling_cpp_error): Prefix global type and struct
5427         with cpp_.
5429 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5431         * c.opt (Wnormalized): New.
5432         (Wnormalized=): Use Enum and Reject Negative.
5433         * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
5435 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
5437         * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
5438         digits of floating-point modes if -fbuilding-libgcc.
5440 2014-09-05  Joseph Myers  <joseph@codesourcery.com>
5442         * c-cppbuiltin.c (c_cpp_builtins): Also define
5443         __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
5444         __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
5445         __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
5446         __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
5447         __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
5448         __LIBGCC_STACK_GROWS_DOWNWARD__,
5449         __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
5450         __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
5451         __LIBGCC_DWARF_FRAME_REGISTERS__,
5452         __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
5453         __LIBGCC_STACK_POINTER_REGNUM__ and
5454         __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
5455         (builtin_define_with_value): Handle backslash-escaping in string
5456         macro values.
5458 2014-09-05  Richard Biener  <rguenther@suse.de>
5460         PR middle-end/63148
5461         * c-format.c (check_format_arg): Properly handle
5462         effectively signed POINTER_PLUS_EXPR offset.
5464 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5466         * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
5467         Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
5468         (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
5469         and Init.
5470         * c-opts.c (c_common_handle_option): Do not handle here.
5471         (sanitize_cpp_opts): Likewise.
5472         * c-common.c (struct reason_option_codes_t): Handle
5473         CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
5475 2014-09-03  Marek Polacek  <polacek@redhat.com>
5477         * c.opt (Wlogical-not-parentheses): Enable by -Wall.
5479 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
5480             Balaji V. Iyer  <balaji.v.iyer@intel.com>
5481             Igor Zamyatin  <igor.zamyatin@intel.com>
5483         * c-cilkplus.c (cilk_for_number_of_iterations): New function.
5484         * c-common.c (c_common_reswords): Added _Cilk_for.
5485         * c-common.h (enum rid): Added RID_CILK_FOR.
5486         (cilk_for_number_of_iterations): Add declaration.
5487         * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
5488         CILK_FOR.
5489         * c-pragma.c (init_pragma): Register "grainsize" pragma.
5490         * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
5492 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5494         * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
5495         Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
5496         Wundef): Use CPP, Var and Init.
5497         * c-opts.c (c_common_handle_option): Do not handle the above flags here.
5499 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5501         * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
5502         * c-opts.c (c_common_handle_option): Do not handle here.
5504 2014-08-25  Jason Merrill  <jason@redhat.com>
5506         * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
5507         -std=c++14 and -std=gnu++14, rather than the reverse.
5508         * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
5509         OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
5510         * c-common.h (cxx_dialect): Remove cxx1y.
5512 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
5514         * c-common.h (enum cxx_dialect): Add cxx14.
5515         * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
5516         * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
5517         cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
5519 2014-08-22  Jason Merrill  <jason@redhat.com>
5521         * c.opt (std=gnu++17): Fix alias.
5523 2014-08-22  Marek Polacek  <polacek@redhat.com>
5525         PR c++/62199
5526         * c-common.c (warn_logical_not_parentheses): Don't check LHS.  Don't
5527         check for vector types.  Drop LHS argument.
5528         * c-common.h (warn_logical_not_parentheses): Adjust.
5530 2014-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5532         * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
5533         (Wmultichar): Likewise.
5534         (Wdate-time): Use C-family languages instead of Common. Use CPP
5535         and Var.
5536         * c-opts.c (c_common_handle_option): Do not handle the above
5537         options here.
5538         (sanitize_cpp_opts): Likewise.
5540 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5542         PR fortran/44054
5543         * c-opts.c: Include tree-diagnostics.h.
5544         (c_diagnostic_finalizer): New.
5545         (c_common_initialize_diagnostics): Use it.
5547 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5549         PR preprocessor/51303
5550         * c-common.c (struct reason_option_codes_t option_codes):
5551         Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
5553 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5555         PR c/60975
5556         PR c/53063
5557         * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
5558         * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
5559         (c_common_post_options): Call init_global_opts_from_cpp.
5560         (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
5562 2014-08-19  Marek Polacek  <polacek@redhat.com>
5564         PR c++/62153
5565         * c-common.c (maybe_warn_bool_compare): New function.
5566         * c-common.h (maybe_warn_bool_compare): Declare.
5567         * c.opt (Wbool-compare): New option.
5569 2014-08-19  Marek Polacek  <polacek@redhat.com>
5571         * c.opt (Wc99-c11-compat): New option.
5573 2014-08-19  Marek Polacek  <polacek@redhat.com>
5575         * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
5576         to warn_c90_c99_compat.
5577         * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
5578         to -1.
5580 2014-08-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5581             Steven Bosscher  <steven@gcc.gnu.org>
5583         PR c/52952
5584         * c-format.c: Add extra_arg_loc and format_string_loc to struct
5585         format_check_results.
5586         (check_function_format): Use true and add comment for boolean
5587         argument.
5588         (finish_dollar_format_checking): Use explicit location when warning.
5589         (check_format_info): Likewise.
5590         (check_format_arg): Set extra_arg_loc and format_string_loc.
5591         (check_format_info_main): Use explicit location when warning.
5592         (check_format_types): Pass explicit location.
5593         (format_type_warning): Likewise.
5595 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5597         PR fortran/44054
5598         * c-format.c: Handle Fortran flags.
5600 2014-08-12  Igor Zamyatin  <igor.zamyatin@intel.com>
5602         PR other/61962
5603         * array-notation-common.c (find_rank): Added handling for other
5604         types of references.
5606 2014-08-10  Marek Polacek  <polacek@redhat.com>
5608         PR c/51849
5609         * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
5610         * c.opt (Wc90-c99-compat): Add option.
5612 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
5614         * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
5616 2014-08-03  Marek Polacek  <polacek@redhat.com>
5618         * c-common.c (check_case_value):  Add location_t parameter.  Use it.
5619         (c_add_case_label): Pass loc to check_case_value.
5621 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
5623         * cilk.c: Use hash_map instead of pointer_map.
5625 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
5627         * c-gimplify.c: Use hash_set instead of pointer_set.
5629 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
5631         PR middle-end/61455
5632         * array-notation-common.c (extract_array_notation_exprs): Handling
5633         of DECL_EXPR added.
5635 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
5637         * c-common.h (min_align_of_type): Removed prototype.
5638         * c-common.c (min_align_of_type): Removed.
5639         * c-ubsan.h (ubsan_maybe_instrument_reference,
5640         ubsan_maybe_instrument_member_call): New prototypes.
5641         * c-ubsan.c: Include stor-layout.h and builtins.h.
5642         (ubsan_maybe_instrument_reference_or_call,
5643         ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
5644         functions.
5646 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
5648         PR c++/60517
5649         * c.opt (-Wreturn-local-addr): Move to common.opt.
5651 2014-07-30  Jason Merrill  <jason@redhat.com>
5653         PR c++/61659
5654         PR c++/61687
5655         Revert:
5656         * c.opt (-fuse-all-virtuals): New.
5658 2014-07-30  Tom Tromey  <tromey@redhat.com>
5660         PR c/59855
5661         * c.opt (Wdesignated-init): New option.
5662         * c-common.c (c_common_attribute_table): Add "designated_init".
5663         (handle_designated_init): New function.
5665 2014-07-24  Marek Polacek  <polacek@redhat.com>
5667         PR c/57653
5668         * c-opts.c (c_finish_options): If -imacros is in effect, return.
5670 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
5672         PR preprocessor/60723 - missing system-ness marks for macro tokens
5673         * c-ppoutput.c (struct print::prev_was_system_token): New data
5674         member.
5675         (init_pp_output): Initialize it.
5676         (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
5677         (do_line_change): Return a flag saying if a line marker was
5678         emitted or not.
5679         (scan_translation_unit): Detect if the system-ness of the token we
5680         are about to emit is different from the one of the previously
5681         emitted token.  If so, emit a line marker.  Avoid emitting useless
5682         adjacent line markers.  Avoid emitting line markers for tokens
5683         originating from the expansion of built-in macros.
5684         (scan_translation_unit_directives_only): Adjust.
5686 2014-07-15  Marek Polacek  <polacek@redhat.com>
5688         * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
5689         TYPE_MAX_VALUE is NULL.
5691 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
5693         PR middle-end/61294
5694         * c.opt (Wmemset-transposed-args): New warning.
5696 2014-07-10  Jason Merrill  <jason@redhat.com>
5698         PR c++/61659
5699         PR c++/61687
5700         * c.opt (-fuse-all-virtuals): New.
5702 2014-07-09  Richard Biener  <rguenther@suse.de>
5704         PR c-family/61741
5705         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
5706         using unsigned arithmetic if overflow does not wrap instead of
5707         if overflow is undefined.
5709 2014-07-06  Marek Polacek  <polacek@redhat.com>
5711         PR c/6940
5712         * c.opt (Wsizeof-array-argument): New option.
5714 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
5716         * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
5717         comments->count <= 1, as comments->entries might be NULL.
5719 2014-07-01  Marek Polacek  <polacek@redhat.com>
5721         * c.opt (Wint-conversion): New option.
5723 2014-07-01  Marek Polacek  <polacek@redhat.com>
5725         PR c/58286
5726         * c.opt (Wincompatible-pointer-types): New option.
5728 2014-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
5730         PR c++/51400
5731         * c-common.c (handle_noreturn_attribute, handle_const_attribute):
5732         Do not discard TYPE_QUALS of type.
5734 2014-06-26  Jason Merrill  <jason@redhat.com>
5736         * c-common.h (enum cxx_dialect): Add cxx1z.
5737         * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
5738         * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
5740 2014-06-26  Teresa Johnson  <tejohnson@google.com>
5742         * c-common.h (get_dump_info): Declare.
5743         * c-gimplify.c (c_genericize): Use saved dump files.
5744         * c-opts.c (c_common_parse_file): Begin and end dumps
5745         once around parsing invocation.
5746         (get_dump_info): New function.
5748 2014-06-23  Marek Polacek  <polacek@redhat.com>
5749             Andrew MacLeod  <amacleod@redhat.com>
5751         PR c/61553
5752         * c-common.c (get_atomic_generic_size): Don't segfault if the
5753         type doesn't have a size.
5755 2014-06-20  Marek Polacek  <polacek@redhat.com>
5757         * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
5758         (ubsan_walk_array_refs_r): New function.
5759         (c_genericize): Instrument array bounds.
5760         * c-ubsan.c: Include "internal-fn.h".
5761         (ubsan_instrument_division): Mark instrumented arrays as having
5762         side effects.  Adjust ubsan_type_descriptor call.
5763         (ubsan_instrument_shift): Likewise.
5764         (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
5765         (ubsan_instrument_bounds): New function.
5766         (ubsan_array_ref_instrumented_p): New function.
5767         (ubsan_maybe_instrument_array_ref): New function.
5768         * c-ubsan.h (ubsan_instrument_bounds): Declare.
5769         (ubsan_array_ref_instrumented_p): Declare.
5770         (ubsan_maybe_instrument_array_ref): Declare.
5772 2014-06-20  Hale Wang  <hale.wang@arm.com>
5774         PR lto/61123
5775         * c.opt (fshort-enums): Add to LTO.
5776         * c.opt (fshort-wchar): Likewise.
5778 2014-06-16  Marek Polacek  <polacek@redhat.com>
5780         PR c/60439
5781         * c.opt (Wswitch-bool): Add Var.
5783 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
5785         PR middle-end/61486
5786         * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
5787         #pragma omp target teams or
5788         #pragma omp {,target }teams distribute simd.
5790 2014-06-12  Jason Merrill  <jason@redhat.com>
5792         * c.opt (Wabi=, fabi-compat-version): New.
5793         * c-opts.c (c_common_handle_option): Handle -Wabi=.
5794         (c_common_post_options): Handle flag_abi_compat_version default.
5795         Disallow -fabi-compat-version=1.
5796         * c-common.h (abi_version_crosses): New.
5798 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
5800         * c-common.c (handle_section_attribute): Update handling for
5801         section names that are no longer trees.
5803 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
5805         PR fortran/60928
5806         * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
5807         (omp_pragmas): ... back here.
5809 2014-06-05  Marek Polacek  <polacek@redhat.com>
5811         PR c/49706
5812         * c-common.c (warn_logical_not_parentheses): New function.
5813         * c-common.h (warn_logical_not_parentheses): Declare.
5814         * c.opt (Wlogical-not-parentheses): New option.
5816 2014-06-04  Marek Polacek  <polacek@redhat.com>
5818         PR c/30020
5819         * c-common.c (check_case_bounds): Add location parameter.
5820         Use it.
5821         (c_add_case_label): Pass loc to check_case_bounds.
5823 2014-06-03  Marek Polacek  <polacek@redhat.com>
5825         PR c/60439
5826         * c.opt (Wswitch-bool): New option.
5828 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
5830         * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
5831         Remove prototypes.
5832         (record_types_used_by_current_var_decl): Move prototype to where
5833         it belongs.
5835         * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
5836         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
5837         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
5839 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
5841         * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
5842         * c-common.c (c_common_nodes_and_builtins): Don't initialize
5843         void_zero_node.
5844         * c-pretty-print.c (pp_c_void_constant): New function.
5845         (c_pretty_printer::constant, c_pretty_printer::primary_expression)
5846         (c_pretty_printer::expression): Handle VOID_CST.
5847         * cilk.c (extract_free_variables): Likewise.
5848         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
5849         (ubsan_instrument_vla): Use void_node instead of void_zero_node.
5851 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
5853         * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
5854         * c-pragma.c (push_alignment): Adjust.
5855         (handle_pragma_push_options): Likewise.
5857 2014-05-09  Marek Polacek  <polacek@redhat.com>
5859         PR c/50459
5860         * c-common.c (check_user_alignment): Return -1 if alignment is error
5861         node.
5862         (handle_aligned_attribute): Don't call default_conversion on
5863         FUNCTION_DECLs.
5864         (handle_vector_size_attribute): Likewise.
5865         (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
5866         (handle_sentinel_attribute): Call default_conversion and allow even
5867         integral types as an argument.
5869 2014-05-08  Marek Polacek  <polacek@redhat.com>
5871         PR c/61053
5872         * c-common.c (min_align_of_type): New function factored out from...
5873         (c_sizeof_or_alignof_type): ...here.
5874         * c-common.h (min_align_of_type): Declare.
5876 2014-05-08  Marek Polacek  <polacek@redhat.com>
5878         PR c/61077
5879         * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
5880         parameter type of main.
5882 2014-05-07  DJ Delorie  <dj@redhat.com>
5884         * c-cppbuiltin.c (print_bits_of_hex): New.
5885         (builtin_define_type_minmax): Print values using hex so as not to
5886         require a pre-computed list of string values.
5888 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
5889             Mike Stump  <mikestump@comcast.net>
5890             Richard Sandiford  <rdsandiford@googlemail.com>
5892         * c-ada-spec.c: Include wide-int.h.
5893         (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
5894         (dump_generic_ada_node): Use wide-int interfaces.
5895         * c-common.c: Include wide-int-print.h.
5896         (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
5897         (pointer_int_sum): Use wide-int interfaces.
5898         (c_common_nodes_and_builtins): Use make_int_cst.
5899         (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
5900         (handle_alloc_size_attribute): Use wide-int interfaces.
5901         (get_nonnull_operand): Likewise.
5902         * c-format.c (get_constant): Use tree_fits_uhwi_p.
5903         * c-lex.c: Include wide-int.h.
5904         (narrowest_unsigned_type): Take a widest_int rather than two
5905         HOST_WIDE_INTs.
5906         (narrowest_signed_type): Likewise.
5907         (interpret_integer): Update accordingly.  Use wide-int interfaces.
5908         (lex_charconst): Use wide-int interfaces.
5909         * c-pretty-print.c: Include wide-int.h.
5910         (pp_c_integer_constant): Use wide-int interfaces.
5911         * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
5912         INT_CST_LT_UNSIGNED.
5914 2014-05-06  Richard Biener  <rguenther@suse.de>
5916         * c-opts.c (c_common_post_options): For -freestanding,
5917         -fno-hosted and -fno-builtin disable pattern recognition
5918         if not enabled explicitely.
5920 2014-05-02  Marek Polacek  <polacek@redhat.com>
5922         * c.opt (Wsizeof-pointer-memaccess): Describe option.
5924 2014-05-01  Marek Polacek  <polacek@redhat.com>
5926         PR c/43245
5927         * c.opt (Wdiscarded-qualifiers): Add.
5929 2014-04-30  Marek Polacek  <polacek@redhat.com>
5931         * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs.  Perform
5932         INT_MIN / -1 sanitization only for integer types.
5934 2014-04-25  Marek Polacek  <polacek@redhat.com>
5936         PR c/18079
5937         * c-common.c (handle_noinline_attribute): Warn if the attribute
5938         conflicts with always_inline attribute.
5939         (handle_always_inline_attribute): Warn if the attribute conflicts
5940         with noinline attribute.
5942 2014-04-25  Marek Polacek  <polacek@redhat.com>
5944         PR c/60156
5945         * c-common.c (check_main_parameter_types): Warn about variadic main.
5947 2014-04-24  Mike Stump  <mikestump@comcast.net>
5949         * c.opt (Wshadow-ivar): Default to on.
5951 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
5953         * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
5955 2014-04-23  Marek Polacek  <polacek@redhat.com>
5957         * c-common.c (handle_tm_wrap_attribute): Tweak error message.
5959 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
5961         PR sanitizer/60275
5962         * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
5963         if flag_sanitize_undefined_trap_on_error.
5964         (ubsan_instrument_division, ubsan_instrument_shift,
5965         ubsan_instrument_vla): Likewise.  Use __ubsan_handle_*_abort ()
5966         if !flag_sanitize_recover.
5968 2014-04-22  Marc Glisse  <marc.glisse@inria.fr>
5970         PR libstdc++/43622
5971         * c-common.c (registered_builtin_types): Make non-static.
5972         * c-common.h (registered_builtin_types): Declare.
5974 2014-04-14  Richard Biener  <rguenther@suse.de>
5975         Marc Glisse  <marc.glisse@inria.fr>
5977         PR c/60819
5978         * c-common.c (convert_vector_to_pointer_for_subscript): Properly
5979         apply may-alias the scalar pointer type when applicable.
5981 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
5983         PR middle-end/60467
5984         * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
5985         as possible argument for Cilk_spawn.
5987 2014-04-11  Tobias Burnus  <burnus@net-b.de>
5989         PR c/60194
5990         * c.opt (Wformat-signedness): Add
5991         * c-format.c(check_format_types): Use it.
5993 2014-04-11  Jason Merrill  <jason@redhat.com>
5995         PR c++/57926
5996         * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
5997         default_conversion for an array argument.
5999 2014-04-08  Marek Polacek  <polacek@redhat.com>
6001         PR sanitizer/60745
6002         * c-ubsan.c: Include asan.h.
6003         (ubsan_instrument_return): Call initialize_sanitizer_builtins.
6005 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
6007         * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
6009 2014-04-02  Marek Polacek  <polacek@redhat.com>
6011         * c-common.h (c_expand_expr): Remove declaration.
6013 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
6015         PR c++/60689
6016         * c-common.c (add_atomic_size_parameter): When creating new
6017         params vector, push the size argument first.
6019 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
6021         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
6022         ubsan_instrument_vla, ubsan_instrument_return): Adjust
6023         ubsan_create_data callers.
6025 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
6027         PR debug/60603
6028         * c-opts.c (c_finish_options): Restore cb_file_change call to
6029         <built-in>.
6031 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
6033         PR middle-end/36282
6034         * c-pragma.c (apply_pragma_weak): Only look at
6035         TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
6036         DECL_ASSEMBLER_NAME_SET_P (decl).
6037         (maybe_apply_pending_pragma_weaks): Exit early if
6038         vec_safe_is_empty (pending_weaks) rather than only when
6039         !pending_weaks.
6040         (maybe_apply_pragma_weak): Likewise.  If !DECL_ASSEMBLER_NAME_SET_P,
6041         set assembler name back to NULL afterwards.
6043 2014-03-11  Jason Merrill  <jason@redhat.com>
6045         * c.opt: Add -std=gnu++14.
6047 2014-03-11  Ian Bolton  <ian.bolton@arm.com>
6049         * c-opts.c (c_common_post_options): Don't override
6050         -ffp-contract=fast if unsafe-math-optimizations is on.
6052 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
6054         * c.opt: Enable LTO FE for fshort-double.
6056 2014-03-07  Jason Merrill  <jason@redhat.com>
6058         * c.opt: Add -std=c++14.
6060 2014-03-06  Marek Polacek  <polacek@redhat.com>
6062         PR c/60197
6063         * cilk.c (contains_cilk_spawn_stmt): New function.
6064         (contains_cilk_spawn_stmt_walker): Likewise.
6065         (recognize_spawn): Give error on invalid use of _Cilk_spawn.
6066         * c-common.h (contains_cilk_spawn_stmt): Add declaration.
6068 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
6070         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
6071         (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
6072         even when flag_preprocess_only.
6074 2014-02-26  Jason Merrill  <jason@redhat.com>
6076         PR c++/59231
6077         PR c++/11586
6078         * c-common.c (shorten_compare): Don't check
6079         c_inhibit_evaluation_warnings.
6081 2014-02-19  Jakub Jelinek  <jakub@redhat.com>
6083         PR c/37743
6084         * c-common.c (c_common_nodes_and_builtins): When initializing
6085         c_uint{16,32,64}_type_node, also set corresponding
6086         uint{16,32,64}_type_node to the same value.
6088         PR c++/60267
6089         * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
6090         for PRAGMA_IVDEP if flag_preprocess_only.
6092 2014-02-12  Jakub Jelinek  <jakub@redhat.com>
6094         PR c/60101
6095         * c-common.c (merge_tlist): If copy is true, call new_tlist,
6096         if false, add ADD itself, rather than vice versa.
6097         (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
6098         copy.  For SAVE_EXPR, only call merge_tlist once.
6100 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
6102         PR middle-end/60092
6103         * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
6104         and tree_to_uhwi.
6105         (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
6106         functions.
6107         (c_common_attribute_table): Add alloc_align and assume_aligned
6108         attributes.
6110 2014-02-06  Marek Polacek  <polacek@redhat.com>
6112         PR c/60087
6113         * c-common.c (warn_for_sign_compare): Call warning_at with location
6114         instead of warning.
6116 2014-02-05  Marek Polacek  <polacek@redhat.com>
6118         PR c/53123
6119         * c-omp.c (c_finish_omp_atomic): Remove unreachable return
6120         statement.
6122 2014-02-04  Marek Polacek  <polacek@redhat.com>
6124         PR c/60036
6125         * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
6126         SAVE_EXPR.
6128 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
6130         PR c++/53017
6131         PR c++/59211
6132         * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
6133         handle_vector_size_attribute, handle_nonnull_attribute): Call
6134         default_conversion on the attribute argument.
6135         (handle_nonnull_attribute): Increment the argument number.
6137 2014-01-31  Marek Polacek  <polacek@redhat.com>
6139         PR c/59963
6140         * c-common.c (add_atomic_size_parameter): Pass vNULL to
6141         build_function_call_vec.
6142         (resolve_overloaded_builtin): Likewise.
6143         * c-common.h (build_function_call_vec): Adjust declaration.
6145 2014-01-30  Marek Polacek  <polacek@redhat.com>
6147         PR c/59940
6148         * c-common.h (unsafe_conversion_p): Adjust declaration.
6149         (warnings_for_convert_and_check): Likewise.
6150         (convert_and_check): Likewise.
6151         * c-common.c (unsafe_conversion_p): Add location parameter.  Call
6152         expansion_point_location_if_in_system_header on it.
6153         (warnings_for_convert_and_check): Add location parameter.  Call
6154         expansion_point_location_if_in_system_header on it.  Use it.
6155         (convert_and_check): Add location parameter.  Use it.
6156         (conversion_warning): Likewise.
6157         (c_add_case_label): Adjust convert_and_check calls.
6158         (scalar_to_vector): Adjust unsafe_conversion_p calls.
6160 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6162         * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
6163         flag_cilkplus.
6164         * c-pragma.c (init_pragma): Likewise.
6165         * c.opt: Likewise.
6167 2014-01-23  Marek Polacek  <polacek@redhat.com>
6169         PR c/59846
6170         * c-common.c (shorten_compare): Add location_t parameter.
6171         * c-common.h (shorten_binary_op): Adjust declaration.
6173 2014-01-23  Marek Polacek  <polacek@redhat.com>
6175         PR c/58346
6176         * c-common.c (pointer_to_zero_sized_aggr_p): New function.
6177         * c-common.h: Declare it.
6179 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
6181         * c-ada-spec.h (dump_ada_specs): Revert prototype change.
6182         * c-ada-spec.c (dump_ads): Likewise.
6183         (cpp_check): Likewise.
6184         (dump_ada_specs): Likewise.
6186 2014-01-15  Laurent Alfonsi  <laurent.alfonsi@st.com>
6188         PR c++/49718
6189         * c-common.c (handle_no_instrument_function_attribute): Allow
6190         no_instrument_function attribute in class member
6191         definition/declaration.
6193 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
6195         PR c/58943
6196         * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
6197         build_modify_expr with non-NOP_EXPR opcode.  Handle return from it
6198         being COMPOUND_EXPR.
6199         (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
6200         operand a SAVE_EXPR and second MODIFY_EXPR.
6202 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
6204         PR target/58115
6205         * c-pch.c (c_common_write_pch): Call
6206         prepare_target_option_nodes_for_pch.
6208 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
6210         Update copyright years
6212 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
6214         * array-notation-common.c, c-cilkplus.c: Use the standard form for
6215         the copyright notice.
6217 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
6219         * c-ada-spec.c (print_constructor): New function.
6220         (print_destructor): Retrieve the origin of the destructor.
6221         (print_ada_declaration): Revamp handling of constructors/destructors.
6223 2013-12-23  Stuart Hastings  <stuart@apple.com>
6224             Bill Maddox  <maddox@google.com>
6225             Jason Merrill  <jason@redhat.com>
6227         * c.opt: Add -fdeclone-ctor-dtor.
6228         * c-opts.c (c_common_post_options): Default to on iff -Os.
6230 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6232         * c-common.c (c_common_attribute_table): Added "cilk simd function"
6233         attribute.
6234         * c-pragma.h (enum pragma_cilk_clause): Remove.
6235         (enum pragma_omp_clause):  Added the following fields:
6236         PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
6237         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
6238         PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
6239         PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
6240         PRAGMA_CILK_CLAUSE_UNIFORM.
6243 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6245         * cilk.c (cilk_outline): Made this function non-static.
6246         (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
6247         (create_cilk_wrapper): Added a new parameter: a function pointer.
6248         (c_install_body_w_frame_cleanup): Remove
6249         (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
6250         * c-common.h (cilk_outline): New prototype.
6251         (gimplify_cilk_spawn): Removed two parameters.
6252         (cilk_install_body_with_frame_cleanup): New prototype.
6253         * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
6254         CILK_SPAWN_STMT case.
6256 2013-12-11  Bernd Schmidt  <bernds@codesourcery.com>
6258         * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
6260         * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
6261         (int_array_type_node): Remove.
6262         * c-common.c (c_common_nodes_and_builtins): Don't build it.
6264 2013-12-05  Marek Polacek  <polacek@redhat.com>
6266         PR c/52023
6267         * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
6268         [ADJUST_FIELD_ALIGN].
6270 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
6272         PR c/52023
6273         * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
6274         and check field alignment if set.
6275         * c-common.h (c_sizeof_or_alignof_type): Update prototype.
6276         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
6278 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
6279             Marek Polacek  <polacek@redhat.com>
6281         * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
6282         sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
6284 2013-11-29   H.J. Lu  <hongjiu.lu@intel.com>
6286         PR c/59309
6287         * cilk.c (gimplify_cilk_spawn): Properly handle function without
6288         arguments.
6290 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
6292         PR c/59280
6293         * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
6294         goto invalid.  If it is error_mark_node, don't issue further
6295         diagnostics.
6297 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
6299         * c.opt (Wopenmp-simd): New.
6301 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
6303         * c-ubsan.h (ubsan_instrument_return): New prototype.
6304         * c-ubsan.c (ubsan_instrument_return): New function.
6306 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
6308         * c-common.c: Add required include files from gimple.h.
6309         * c-gimplify.c: Likewise
6310         * cilk.c: Likewise
6312 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
6314         * c-common.c (unsafe_conversion_p): Remove use of
6315         EXPR_LOC_OR_HERE macro.
6316         (conversion_warning): Likewise.
6317         (warnings_for_convert_and_check): Likewise.
6318         (warn_for_collisions_1): Likewise.
6319         (shorten_compare): Likewise, and remove use of in_system_header
6320         macro, using the location from the former.
6321         * c-lex.c (dump_one_header): Remove use of input_filename macro.
6322         (cb_def_pragma): Remove use of in_system_header macro.
6323         (lex_string): Likewise.
6324         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
6326 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
6327             Mike Stump  <mikestump@comcast.net>
6328             Richard Sandiford  <rdsandiford@googlemail.com>
6330         * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
6331         instead of TREE_INT_CST_LOW, in cases where there is a protecting
6332         tree_fits_shwi_p or tree_fits_uhwi_p.
6333         (dump_generic_ada_node): Likewise.
6334         * c-format.c (check_format_arg): Likewise.
6335         * c-pretty-print.c (pp_c_integer_constant): Likewise.
6337 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
6339         * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
6341 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
6343         PR c/53001
6344         * c-common.c (unsafe_conversion_p): Make this function
6345         return an enumeration with more detail.
6346         (conversion_warning): Use the new return type of
6347         unsafe_conversion_p to separately warn either about conversions
6348         that lower floating point number precision or about the other
6349         kinds of conversions.
6350         * c-common.h (enum conversion_safety): New enumeration.
6351         (unsafe_conversion_p): switching return type to
6352         conversion_safety enumeration.
6353         * c.opt: Adding new warning -Wfloat-conversion and
6354         enabling it with -Wconversion.
6356 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
6358         * c-opts.c: Include plugin.h.
6359         (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
6361 2013-11-19  Marek Polacek  <polacek@redhat.com>
6363         * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
6364         call.
6365         (ubsan_instrument_shift): Likewise.
6366         (ubsan_instrument_vla): Likewise.
6368 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6370         * c-common.c (convert_vector_to_pointer_for_subscript): Remove
6371         cast to unsigned type.
6373 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6375         * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
6376         tree_low_cst.
6377         (complete_array_type): Update comment to refer to tree_to_[su]hwi
6378         rather than tree_low_cst.
6380 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6382         * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
6383         tree_to_uhwi throughout.
6385 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6387         * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
6388         tree_low_cst (..., 0) with tree_to_shwi throughout.
6390 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6392         * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
6393         host_integerp (..., 1) with tree_fits_uhwi_p throughout.
6395 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6397         * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
6398         host_integerp (..., 0) with tree_fits_shwi_p throughout.
6400 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
6402         * c-cilkplus.c: New file.
6403         * c-common.c (readonly_error): Add location argument.
6404         * c-common.h (readonly_error): Same.
6405         (c_finish_cilk_clauses): Protoize.
6406         (c_check_cilk_loop): Same.
6407         c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
6408         Do not fail on error_mark_node.
6409         Abstract increment canonicalization to here...
6410         (c_omp_for_incr_canonicalize_ptr): New.
6411         c-pragma.c (init_pragma): Register "simd" pragma.
6412         c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
6413         (enum pragma_cilk_clause): New.
6415 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
6417         * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
6418         wchar_type and host_integerp checks.
6420 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
6422         * c-common.c: Likewise.
6423         * c-gimplify.c: Likewise.
6424         * cilk.c: Likewise.
6426 2013-11-14  Diego Novillo  <dnovillo@google.com>
6428         * c-common.c: Include fold-const.h.
6429         Include stor-layout.h.
6430         Include calls.h.
6431         Include stringpool.h.
6432         Include attribs.h.
6433         Include varasm.h.
6434         Include trans-mem.h.
6435         * c-cppbuiltin.c: Include stor-layout.h.
6436         Include stringpool.h.
6437         * c-format.c: Include stringpool.h.
6438         * c-lex.c: Include stringpool.h.
6439         Include stor-layout.h.
6440         * c-pragma.c: Include stringpool.h.
6441         Include attribs.h.
6442         Include varasm.h.
6443         Include gcc-symtab.h.
6444         * c-pretty-print.c: Include stor-layout.h.
6445         Include attribs.h.
6446         * cilk.c: Include stringpool.h.
6447         Include calls.h.
6449 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
6451         * c-common.h (enum rid): Add RID_AUTO_TYPE.
6452         * c-common.c (c_common_reswords): Add __auto_type.
6453         (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
6455 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
6457         * c-common.c: Include gimplify.h.
6458         * c-gimplify.c: Likewise.
6459         * cilk.c: Likewise.
6460         * c-omp.c: Include gimple-expr.h instead of gimple.h.
6461         * c-ubsan.c: Don't include gimple.h.
6463 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
6465         * c-common.c (c_common_reswords): Add _Thread_local.
6467 2013-11-09  Joseph Myers  <joseph@codesourcery.com>
6469         * c-common.c (atomic_size_supported_p): New function.
6470         (resolve_overloaded_atomic_exchange)
6471         (resolve_overloaded_atomic_compare_exchange)
6472         (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
6473         Use it instead of comparing size with a local list of sizes.
6475 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
6476             Joseph Myers  <joseph@codesourcery.com>
6478         * c-common.h (enum rid): Add RID_ATOMIC.
6479         * c-common.c (c_common_reswords): Add _Atomic.
6480         (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
6481         (keyword_is_type_qualifier): Accept RID_ATOMIC.
6482         * c-format.c (check_format_types): Check for extra _Atomic
6483         qualifiers in format argument.
6484         * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
6485         (pp_c_type_qualifier_list): Mention _Atomic in comment.
6487 2013-11-06  Tobias Burnus  <burnus@net-b.de>
6489         * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
6491 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
6493         * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
6494         standards modes.
6495         * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
6496         to mean lack of IEEE 754 support.
6498 2013-11-05  Tobias Burnus  <burnus@net-b.de>
6500         * c.opt (-Wdate-time): New option
6501         * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
6503 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
6505         * c-cppbuiltin.c (cpp_iec_559_value): Test
6506         flag_excess_precision_cmdline not flag_excess_precision.
6508 2013-11-05  Tobias Burnus  <burnus@net-b.de>
6510         * c.opt (fopenmp-simd): New option.
6511         * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
6512         (omp_pragmas): ... this new struct.
6513         (c_pp_lookup_pragma): Also walk omp_pragmas.
6514         (init_pragma): Init pragmas for -fopenmp-simd.
6516 2013-11-04  Marek Polacek  <polacek@redhat.com>
6518         PR c++/58979
6519         * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
6521 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
6523         * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
6524         New functions.
6525         (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
6527 2013-11-04  Eric Botcazou  <ebotcazou@adacore.com>
6529         * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
6530         (dump_ada_specs): Adjust prototype of second callback.
6531         * c-ada-spec.c (cpp_check): New global variable.
6532         (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
6533         (print_generic_ada_decl): Likewise.
6534         (has_static_fields): Change return type to bool and add guard.
6535         (has_nontrivial_methods): New predicate.
6536         (is_tagged_type): Change return type to bool.
6537         (separate_class_package): Call has_nontrivial_methods.
6538         (pp_ada_tree_identifier): Minor tweaks.
6539         (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
6540         (dump_ada_array_domains): Likewise.
6541         (dump_ada_array_type): Likewise.
6542         (dump_template_types): Remove cpp_check parameter and do not pass it to
6543         dump_generic_ada_node.
6544         (dump_ada_template): Likewise.
6545         (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
6546         recursively.
6547         (print_ada_methods): Change return type to integer.  Remove cpp_check
6548         parameter and do not pass it down.
6549         (dump_nested_types): Remove cpp_check parameter and do not pass it to
6550         dump_generic_ada_node.
6551         (print_ada_declaration): Likewise.  Test RECORD_OR_UNION_TYPE_P before
6552         accessing methods.
6553         (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
6554         down.  Use has_nontrivial_methods to recognize C++ classes.  Use return
6555         value of print_ada_methods.
6556         (dump_ads): Rename cpp_check parameter to check and adjust prototype.
6557         Set cpp_check to it before invoking dump_ada_nodes.
6558         (dump_ada_specs): Likewise.
6560 2013-11-03  Marek Polacek  <polacek@redhat.com>
6562         * c-ubsan.c: Don't include hash-table.h.
6563         (ubsan_instrument_vla): New function.
6564         * c-ubsan.h: Declare it.
6566 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
6568         Automated part of renaming of symtab_node_base to symtab_node.
6570         Patch autogenerated by rename_symtab.py from
6571         https://github.com/davidmalcolm/gcc-refactoring-scripts
6572         revision 58bb219cc090b2f4516a9297d868c245495ee622
6574         * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
6575         symtab_node_base to symtab_node.
6577 2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
6579         Implement C++14 digit separators.
6580         * c-lex.c (interpret_float): Remove digit separators from scratch string
6581         before building real literal.
6583 2013-10-30  Jakub Jelinek  <jakub@redhat.com>
6585         * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
6587 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6589         * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
6590         fields.
6591         (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
6592         enabled.
6593         * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
6594         (insert_cilk_frame): New prototype.
6595         (cilk_init_builtins): Likewise.
6596         (gimplify_cilk_spawn): Likewise.
6597         (c_cilk_install_body_w_frame_cleanup): Likewise.
6598         (cilk_detect_spawn_and_unwrap): Likewise.
6599         (cilk_set_spawn_marker): Likewise.
6600         (build_cilk_sync): Likewise.
6601         (build_cilk_spawn): Likewise.
6602         * cilk.c: New file.
6604 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
6606         Patch autogenerated by refactor_symtab.py from
6607         https://github.com/davidmalcolm/gcc-refactoring-scripts
6608         revision 58bb219cc090b2f4516a9297d868c245495ee622
6610         * c-gimplify.c (c_genericize): Update for conversion of symtab types
6611         to a true class hierarchy.
6612         * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
6614 2013-10-27  Richard Sandiford  <rdsandiford@googlemail.com>
6616         * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
6618 2013-10-26  Jeff Law  <law@redhat.com>
6620         * c-common.c (c_define_builtins): Remove mudflap support.
6621         * c.opt: Ignore and warn for mudflap options.
6623 2013-10-24  Tobias Burnus  <burnus@net-b.de>
6625         PR other/33426
6626         * c-pragma.c (init_pragma) Add #pragma ivdep handling.
6627         * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
6629 2013-10-23  Jason Merrill  <jason@redhat.com>
6631         * c-format.c (gcc_cxxdiag_char_table): Add %X.
6633 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
6635         * c-common.h (omp_clause_mask::operator !=): New method.
6636         * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
6637         instead of if (mask & something) tests everywhere.
6639         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
6640         201307 instead of 201107.
6641         * c-common.c (DEF_FUNCTION_TYPE_8): Define.
6642         (c_common_attribute_table): Add "omp declare target" and
6643         "omp declare simd" attributes.
6644         (handle_omp_declare_target_attribute,
6645         handle_omp_declare_simd_attribute): New functions.
6646         * c-omp.c: Include c-pragma.h.
6647         (c_finish_omp_taskgroup): New function.
6648         (c_finish_omp_atomic): Add swapped argument, if true,
6649         build the operation first with rhs, lhs arguments and use NOP_EXPR
6650         build_modify_expr.
6651         (c_finish_omp_for): Add code argument, pass it down to make_code.
6652         (c_omp_split_clauses): New function.
6653         (c_split_parallel_clauses): Removed.
6654         (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
6655         c_omp_declare_simd_clauses_to_decls): New functions.
6656         * c-common.h (omp_clause_mask): New type.
6657         (OMP_CLAUSE_MASK_1): Define.
6658         (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
6659         omp_clause_mask::operator |=, omp_clause_mask::operator ~,
6660         omp_clause_mask::operator |, omp_clause_mask::operator &,
6661         omp_clause_mask::operator <<, omp_clause_mask::operator >>,
6662         omp_clause_mask::operator ==): New methods.
6663         (enum c_omp_clause_split): New.
6664         (c_finish_omp_taskgroup): New prototype.
6665         (c_finish_omp_atomic): Add swapped argument.
6666         (c_finish_omp_for): Add code argument.
6667         (c_omp_split_clauses): New prototype.
6668         (c_split_parallel_clauses): Removed.
6669         (c_omp_declare_simd_clauses_to_numbers,
6670         c_omp_declare_simd_clauses_to_decls): New prototypes.
6671         * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
6672         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
6673         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
6674         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
6675         PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
6676         Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
6677         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
6678         PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
6679         PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
6680         PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
6681         PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
6682         PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
6683         PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
6684         PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
6685         PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
6686         PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
6687         PRAGMA_OMP_CLAUSE_UNIFORM.
6689 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
6691         PR tree-optimization/20318
6692         * c-common.c (handle_returns_nonnull_attribute): New function.
6693         (c_common_attribute_table): Add returns_nonnull.
6695 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
6697         PR c++/19476
6698         * c.opt (fcheck-new): Move to common.opt.
6700 2013-09-25  Marek Polacek  <polacek@redhat.com>
6701             Jakub Jelinek  <jakub@redhat.com>
6703         PR sanitizer/58413
6704         * c-ubsan.c (ubsan_instrument_shift): Don't instrument
6705         an expression if we can prove it is correct.
6706         (ubsan_instrument_division): Likewise.  Remove unnecessary
6707         check.
6709 2013-09-18  Marek Polacek  <polacek@redhat.com>
6711         PR sanitizer/58411
6712         * c-common.c (handle_no_sanitize_undefined_attribute): New function.
6713         Declare it.
6714         (struct attribute_spec c_common_att): Add no_sanitize_undefined.
6716 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
6718         PR target/48094
6719         * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
6720         fobjc-gc, freplace-objc-classes): Accept for LTO.
6722 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
6724         * c-target.def: New hook
6726 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
6728         PR c++/43452
6729         * c.opt (Wdelete-incomplete): Add.
6731 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
6733         * c-common.c (same_scalar_type_ignoring_signedness): Delete.
6734         (vector_types_compatible_elements_p): New function.
6735         * c-common.h: (same_scalar_type_ignoring_signedness): Delete
6736         declaration.
6737         (vector_types_compatible_elements_p): Declare.
6739 2013-09-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6741         * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
6742         a virtual member function.
6743         (pp_simple_type_specifier): Remove.
6744         (pp_c_type_specifier): Likewise.
6745         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
6746         Rename from pp_c_type_specifier.  Adjust.
6747         (c_pretty_printer::c_pretty_printer): Do not assign to
6748         simple_type_specifier.
6750 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6752         * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
6753         member function.
6754         (c_pretty_printer::storage_class_specifier): Likewise.
6755         (c_pretty_printer::initializer): Likewise.
6756         (pp_declaration): Remove.
6757         (pp_declaration_specifiers): Likewise.
6758         (pp_abstract_declarator): Likewise.
6759         (pp_declarator): Likewise.
6760         (pp_type_id): Likewise.
6761         (pp_statement): Likewise.
6762         (pp_constant): Likewise.
6763         (pp_id_expression): Likewise.
6764         (pp_primary_expression): Likewise.
6765         (pp_unary_expression): Likewise.
6766         (pp_multiplicative_expression): Likewise.
6767         (pp_conditional_expression): Likewise.
6768         (pp_assignment_expression): Likewise.
6769         (pp_expression): Likewise.
6770         (pp_c_type_id): Likewise.
6771         (pp_c_storage_class_specifier): Likewise.
6772         * c-pretty-print.c (pp_c_type_cast): Tidy.
6773         (pp_c_pointer): Likewise.
6774         (pp_c_type_specifier): Likewise.
6775         (pp_c_parameter_type_list): Likewise.
6776         (pp_c_function_definition): Likewise.
6777         (pp_c_init_declarator): Likewise.
6778         (pp_c_initializer_list): Likewise.
6779         (pp_c_constructor_elts): Likewise.
6780         (c_pretty_printer::direct_abstract_declarator): Likewise.
6781         (c_pretty_printer::declaration_specifiers): Likewise.
6782         (c_pretty_printer::primary_expression): Likewise.
6783         (c_pretty_printer::postfix_expression): Likewise.
6784         (c_pretty_printer::type_id): Rename from pp_c_type_id.
6785         (c_pretty_printer::storage_class_specifier): Rename from
6786         pp_c_storage_class_specifier.
6787         (c_pretty_printer::initializer): Rename from pp_c_initializer.
6788         (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
6789         storage_class_specifier, initializer, offset_list, flags.
6791 2013-08-30  Marek Polacek  <polacek@redhat.com>
6793         * c-ubsan.c: New file.
6794         * c-ubsan.h: New file.
6796 2013-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6798         * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
6799         member function.
6800         (c_pretty_printer::declaration_specifiers): Likewise.
6801         (c_pretty_printer::declarator): Likewise.
6802         (c_pretty_printer::abstract_declarator): Likewise.
6803         (c_pretty_printer::direct_abstract_declarator): Likewise.
6804         (c_pretty_printer::direct_declarator): Likewise.
6805         (c_pretty_printer::function_specifier): Likewise.
6806         (pp_declaration): Adjust.
6807         (pp_declaration_specifiers): Likewise.
6808         (pp_abstract_declarator): Likewise.
6809         (pp_direct_declarator): Likewise.
6810         (pp_function_specifier): Likewise.
6811         (pp_direct_abstract_declarator): Remove as unused.
6812         (pp_c_declaration): Remove.
6813         (pp_c_declaration_specifiers): Likewise.
6814         (pp_c_declarator): Likewise.
6815         (pp_c_direct_declarator): Likewise.
6816         (pp_c_function_specifier): Likewise.
6817         (pp_c_direct_abstract_declarator): Likewise.
6818         * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
6819         from pp_c_abstract_declarator.  Adjust.
6820         (c_pretty_printer::direct_abstract_declarator):  Rename from
6821         pp_c_direct_abstract_declarator.  Adjust.
6822         (c_pretty_printer::function_specifier): Rename from
6823         pp_c_function_specifier.  Adjust.
6824         (c_pretty_printer::declaration_specifiers): Rename from
6825         pp_c_declaration_specifiers.  Adjust.
6826         (c_pretty_printer::direct_declarator): Rename from
6827         pp_c_direct_declarator.  Adjust.
6828         (c_pretty_printer::declarator): Rename from pp_c_declarator.  Adjust.
6829         (c_pretty_printer::declaration): Rename from pp_c_declaration.  Adjust.
6830         (c_pretty_printer::c_pretty_printer): Do not assign to
6831         declaration, declaration_specifiers, declarator,
6832         direct_declarator, direct_abstract_declarator, function_specifier.
6834 2013-08-26  Gabriel Dos Reis  <gdre@integrable-solutions.net>
6836         * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
6837         virtual member function.
6838         (c_pretty_printer::multiplicative_expression): Likewise.
6839         (c_pretty_printer::conditional_expression): Likewise.
6840         (c_pretty_printer::assignment_expression): Likewise.
6841         (c_pretty_printer::expression): Likewise.
6842         (pp_unary_expression): Adjust.
6843         (pp_multiplicative_expression): Likewise.
6844         (pp_assignment_expression): Likewise.
6845         (pp_conditional_expression): Likewise.
6846         (pp_expression): Likewise.
6847         * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
6848         from pp_c_unary_expression.  Adjust.
6849         (c_pretty_printer::multiplicative_expression): Rename from
6850         pp_c_multiplicative_expression.  Adjust.
6851         (c_pretty_printer::conditional_expression): Rename from
6852         pp_c_conditional_expression.  Adjust.
6853         (c_pretty_printer::assignment_expression): Rename from
6854         pp_c_assignment_expression.  Adjust.
6855         (c_pretty_printer::expression): Rename from pp_c_expression.  Adjust.
6856         (c_pretty_printer::c_pretty_printer): Do not assign to
6857         unary_expression, multiplicative_expression,
6858         conditional_expression, expression.
6860 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6862         * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
6863         virtual member function.
6864         (pp_postfix_expression): Adjust.
6865         (pp_c_postfix_expression): Remove.
6866         * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
6867         from pp_c_postfix_expression.  Adjust.
6868         (c_pretty_printer::c_pretty_printer): Do not assign to
6869         postfix_expression.
6871 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6873         * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
6874         virtua member function.
6875         (pp_primary_expression): Adjust.
6876         (pp_c_primary_expression): Remove.
6877         * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
6878         from pp_c_primary_expression.  Adjust.
6879         (pp_c_initializer_list): Use pp_primary_expression.
6880         (c_pretty_printer::c_pretty_printer): Do not assign to
6881         primary_expression.
6883 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6885         * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
6886         * c-pretty-print.c (M_): Remove.
6887         (c_pretty_printer::translate_string): Define.
6888         (pp_c_type_specifier): Use it.
6889         (pp_c_primary_expression): Likewise.
6890         (pp_c_expression): Likewise.
6892 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6894         * c-pretty-print.h (c_pretty_printer::id_expression): Now a
6895         virtual function.
6896         (pp_c_id_expression): Remove.
6897         (pp_id_expression): Adjust.
6898         * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
6899         pp_c_id_expression.  Adjust.
6900         (pp_c_postfix_expression): Use pp_id_expression.
6901         (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
6903 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6905         * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
6906         member function.
6907         (pp_constant): Adjust.
6908         (pp_c_constant): Remove.
6909         * c-pretty-print.c (c_pretty_printer::constant): Rename from
6910         pp_c_constant.  Adjust.
6911         (pp_c_constant)
6912         (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
6913         (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
6915 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6917         * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
6918         (c_pretty_printer::c_pretty_printer): Declare.
6919         * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
6920         c_pretty_printer_init.  Adjust.
6921         (print_c_tree): Do not call c_pretty_printer_init.
6922         * c-ada-spec.c (dump_ads): Remove call to pp_construct.
6924 2013-08-09  Arnaud Charlet  <charlet@adacore.com>
6926         * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
6928 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
6930         PR c++/58080
6931         * c-common.c (pointer_int_sum): Add bool parameter.
6932         * c-common.h (pointer_int_sum): Adjust declaration.
6934 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6936         * c-pretty-print.c (print_c_tree): Simplify.  Use non-static local
6937         c_pretty_printer variable.
6939 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6941         * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
6942         (pp_base): Remove.
6943         (pp_c_base): Likewise.  Adjust users.
6944         * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
6945         (pp_c_whitespace): Do not call pp_base.
6946         (pp_c_left_paren): Likewise.
6947         (pp_c_right_paren): Likewise.
6948         (pp_c_left_brace): Likewise.
6949         (pp_c_right_brace): Likewise.
6950         (pp_c_left_bracket): Likewise.
6951         (pp_c_right_bracket): Likewise.
6952         (pp_c_dot): Likewise.
6953         (pp_c_ampersand): Likewise.
6954         (pp_c_star): Likewise.
6955         (pp_c_arrow): Likewise.
6956         (pp_c_semicolon): Likewise.
6957         (pp_c_complement): Likewise.
6958         (pp_c_exclamation): Likewise.
6959         (pp_c_direct_declarator): Likewise.
6960         (pp_c_ws_string): Likewise.
6961         (pp_c_identifier): Likewise.
6962         (pp_c_statement): Likewise.
6963         (print_c_tree): Likewise.
6965 2013-08-04  Ed Smith-Rowland  <3dw4rd@verizon.net>
6967         PR c++/58072
6968         * c-common.c (c_parse_error): Catch user-defined literal tokens and
6969         provide useful error strings.
6971 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6973         * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
6974         printer functions instead of pp_string or operators and punctuators.
6975         (dump_generic_ada_node): Likewise.
6976         * c-pretty-print.c (pp_c_type_specifier): Likewise.
6977         (pp_c_relational_expression): Likewise.
6978         (pp_c_logical_or_expression): Likewise.
6980 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6982         * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
6983         functions instead of pp_character.
6984         (pp_ada_tree_identifier): Likewise.
6985         (dump_ada_double_name): Likewise.
6986         (dump_ada_function_declaration): Likewise.
6987         (dump_ada_array_domains): Likewise.
6988         (dump_template_types): Likewise.
6989         (dump_generic_ada_node): Likewise.
6990         (print_ada_declaration): Likewise.
6991         (print_ada_struct_decl): Likewise.
6992         * c-pretty-print.c (pp_c_integer_constant): Likewise.
6994 2013-07-23  Tom Tromey  <tromey@redhat.com>
6996         * c-common.h (enum rid) <RID_GENERIC>: New constant.
6997         * c-common.c (c_common_reswords): Add _Generic.
6999 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
7001         * c-common.c: Fix typos.
7002         * c-common.h: Likewise.
7004 2013-07-13  Lubos Lunak  <l.lunak@suse.cz>
7006         PR c++/55203
7007         * c-common.c (c_common_attribute_table): Add warn_unused.
7008         (handle_warn_unused_attribute): New.
7010 2013-07-10  Jakub Jelinek  <jakub@redhat.com>
7012         * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
7013         for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
7015 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
7017         PR c++/57869
7018         * c.opt: Add Wconditionally-supported.
7020 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
7022         * array-notation-common.c (length_mismatch_in_expr_p): Delete
7023         unused variables l_length and l_node.
7025 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
7027         PR c/57821
7028         * c-common.c (complete_array_type): Delay folding first index
7029         like other indices.  When folding, check for index overflow.
7031 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
7033         PR c++/57509
7034         * c-common.h (c_build_vec_perm_expr): New complain argument.
7035         * c-common.c (c_build_vec_perm_expr): Likewise.
7036         Use save_expr also in C++.
7038 2013-06-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7040         * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
7041         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
7042         * c-opts.c (c_common_post_options): Likewise.
7044 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7046         * array-notation-common.c (length_mismatch_in_expr): Changed the
7047         parameter type's from a dynamic array to a vec_tree.  Also removed
7048         the size parameters.
7049         * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
7050         the change above.
7052 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7054         * c-common.h (struct cilkplus_an_parts): New structure.
7055         (struct cilkplus_an_loop_parts): Likewise.
7056         (cilkplus_extract_an_triplets): New prototype.
7057         (fix_sec_implicit_args): Likewise.
7058         * array-notation-common.c (cilkplus_extract_an_triplets): New function.
7059         (fix_sec_implicit_args): Likewise.
7061 2013-06-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7063         * array-notation-common.c (find_inv_trees): Removed an unwanted
7064         typecasting.
7065         * c-common.h (struct inv_list::additional_tcodes): Changed type from
7066         enum rid to enum tree_code.
7068 2013-06-11  Jan Hubicka  <jh@suse.cz>
7070         * c-common.c (handle_alias_ifunc_attribute): Do not set
7071         DECL_EXTERNAL for weakref variables.
7072         * c-pragma.c (handle_pragma_weak): Make sure aliases
7073         are not declared as external.
7075 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7077         * array-notation-common.c (length_mismatch_in_expr_p): Moved this
7078         function from c/c-array-notation.c.
7079         (is_cilkplus_reduce_builtin): Likewise.
7080         (find_rank): Likewise.
7081         (extract_array_notation_exprs): Likewise.
7082         (replace_array_notations): Likewise.
7083         (find_inv_trees): Likewise.
7084         (replace_inv_trees): Likewise.
7085         (contains_array_notation_expr): Likewise.
7086         (find_correct_array_notation_type): Likewise.
7087         * c-common.h (struct inv_list): Moved this struct from the file
7088         c/c-array-notation.c and added a new field called additional tcodes.
7089         (length_mismatch_in_expr_p): New prototype.
7090         (is_cilkplus_reduce_builtin): Likewise.
7091         (find_rank): Likewise.
7092         (extract_array_notation_exprs): Likewise.
7093         (replace_array_notation): Likewise.
7094         (find_inv_trees): Likewise.
7095         (replace_inv_trees): Likewise.
7096         (find_correct_array_notation_type): Likewise.
7098 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7100         * c-common.c (c_define_builtins): When cilkplus is enabled, the
7101         function array_notation_init_builtins is called.
7102         (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
7103         * c-common.def (ARRAY_NOTATION_REF): New tree.
7104         * c-common.h (build_array_notation_expr): New function declaration.
7105         (build_array_notation_ref): Likewise.
7106         (extract_sec_implicit_index_arg): New extern declaration.
7107         (is_sec_implicit_index_fn): Likewise.
7108         (ARRAY_NOTATION_CHECK): New define.
7109         (ARRAY_NOTATION_ARRAY): Likewise.
7110         (ARRAY_NOTATION_START): Likewise.
7111         (ARRAY_NOTATION_LENGTH): Likewise.
7112         (ARRAY_NOTATION_STRIDE): Likewise.
7113         * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
7114         ARRAY_NOTATION_REF.
7115         (pp_c_expression): Likewise.
7116         * c.opt (flag_enable_cilkplus): New flag.
7117         * array-notation-common.c: New file.
7119 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
7121         PR c++/57274
7122         * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
7124 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
7126         * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
7127         vectors.
7129 2013-05-07  Han Shen  <shenhan@google.com>
7131         * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
7133 2013-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
7135         * c-common.c (check_user_alignment): Emit error for negative values.
7137 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
7139         * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
7141 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
7143         * c-cppbuiltin.c (c_cpp_builtins): Do not define
7144         __GXX_EXPERIMENTAL_CXX1Y__.
7146 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
7147             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7149         * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
7150         * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
7151         to simply use OPT_Wpointer_arith.
7152         (c_sizeof_or_alignof_type): Likewise.
7154 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
7156         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
7158 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
7160         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
7161         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
7162         specifiers.
7164 2013-04-07  Steven Bosscher  <steven@gcc.gnu.org>
7166         * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
7168 2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
7170         * c-common.c (pointer_int_sum): Remove dead code.
7172 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
7174         PR middle-end/56524
7175         * c-common.c (handle_optimize_attribute): Don't call
7176         save_optabs_if_changed.
7178 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
7180         PR middle-end/56461
7181         * c-pch.c (pch_init): Free target_validity at the end.
7183 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
7185         * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
7187 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
7188             Jakub Jelinek  <jakub@redhat.com>
7190         PR sanitizer/56454
7191         * c-common.c (handle_no_sanitize_address_attribute): New function.
7192         (c_common_attribute_table): Add no_sanitize_address attribute.
7193         (handle_no_address_safety_analysis_attribute): Add
7194         no_sanitize_address attribute, not no_address_safety_analysis
7195         attribute.
7197 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
7199         PR target/52555
7200         * c-common.c (handle_optimize_attribute): Call
7201         save_optabs_if_changed.
7203 2013-02-18  Jakub Jelinek  <jakub@redhat.com>
7204             Steven Bosscher  <steven@gcc.gnu.org>
7206         PR pch/54117
7207         * c-opts.c (c_common_post_options): If debug info is enabled
7208         and non-dwarf*, refuse to load PCH files and when writing PCH
7209         file warn.
7211 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
7213         PR middle-end/56167
7214         * c-common.c (handle_error_attribute): Fix condition.
7216 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
7218         PR c++/55742
7219         * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
7221 2013-01-18  Jason Merrill  <jason@redhat.com>
7223         PR target/54908
7224         * c.opt (-fextern-tls-init): New.
7225         * c-opts.c (c_common_post_options): Handle it.
7227 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
7229         PR c/48418
7230         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
7231         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
7232         and is either negative or bigger or equal to type precision
7233         of the first operand.
7235 2012-12-03  Marek Polacek  <polacek@redhat.com>
7237         PR c/55570
7238         * c-common.c (check_user_alignment): Swap order of tests,
7239         check TREE_CODE first.
7241 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
7243         PR c++/52654
7244         * c-common.h (overflow_type): New enum.
7245         (build_userdef_literal): Add overflow_type argument.
7246         (tree_userdef_literal): Add overflow_type.
7247         (USERDEF_LITERAL_OVERFLOW): New access macro.
7248         * c-common.c (build_userdef_literal): Add overflow_type
7249         argument.
7250         * c-lex.c (c_lex_with_flags): Add overflow_type to
7251         build_userdef_literal calls.
7252         (interpret_integer, interpret_float): Add overflow_type argument.
7254 2012-11-28  Richard Biener  <rguenther@suse.de>
7256         PR c/35634
7257         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
7258         here and use a type with proper overflow behavior for types that would
7259         need to be promoted for the arithmetic.
7261 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
7263         PR sanitizer/55435
7264         * c-common.c (handle_no_address_safety_analysis_attribute): New
7265         function.
7266         (c_common_attribute_table): Add no_address_safety_analysis.
7268 2012-11-16  Simon Baldwin  <simonb@google.com>
7270         * c.opt: Add f[no-]canonical-system-headers.
7271         * c-opts.c (c_common_handle_option): Handle
7272         OPT_fcanonical_system_headers.
7274 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
7276         PR c++/54413
7277         * c-opts.c (c_common_handle_option): Set new flags.
7278         * c.opt: Describe new flags.
7280 2012-11-09  Jason Merrill  <jason@redhat.com>
7282         * c.opt (Wabi-tag): New.
7284 2012-11-09  Andi Kleen  <ak@linux.intel.com>
7286         PR 55139
7287         * c-common.c (get_atomic_generic_size): Mask with
7288         MEMMODEL_MASK
7290 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7292         PR c/53063
7293         * c.opt (Wformat): Make it Alias Wformat=1.
7294         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
7295         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
7296         LangEnabledBy.
7297         (Wformat=): RejectNegative. Use LangEnabledBy.
7298         (Wnonnull): Use LangEnabledBy.
7299         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
7300         * c-format.c (set_Wformat): Delete.
7301         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
7302         (maybe_read_dollar_number):  Likewise.
7303         (avoid_dollar_number):  Likewise.
7304         (finish_dollar_format_checking):  Likewise.
7305         (check_format_info):  Likewise.
7306         (check_format_info_main):  Likewise.
7307         (check_format_types):  Likewise.
7308         (format_type_warning):  Likewise.
7309         * c-common.c (int):  Likewise.
7310         (check_function_sentinel):  Likewise.
7311         * c-common.h (warn_format,set_Wformat): Do not declare here.
7313 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7315         PR c/53063
7316         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
7317         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
7318         Use LangEnabledBy.
7319         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
7320         common.opt.
7321         (Wvariadic-macros): Init(1).
7322         * c-opts.c (c_common_handle_option): Do not handle them
7323         explicitly.
7324         (c_common_post_options): Likewise.
7325         (sanitize_cpp_opts): warn_unused_macros is now
7326         cpp_warn_unused_macros.
7327         (push_command_line_include): Likewise.
7328         * c-common.c (warn_unknown_pragmas): Do not define.
7329         * c-common.h (warn_unknown_pragmas): Do not declare.
7331 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7333         PR c/51294
7334         * c-common.c (conversion_warning): Handle conditional expressions.
7336 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
7338         PR c++/54930
7339         * c.opt (Wreturn_local_addr): Define new option.
7341 2012-10-25  Jason Merrill  <jason@redhat.com>
7343         * c.opt (Wvirtual-move-assign): New.
7345         * c.opt (Winherited-variadic-ctor): New.
7347 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
7349         PR c++/54427
7350         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
7352 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
7354         * c-common.h (pch_cpp_save_state): Declare.
7355         * c-target.def (c_preinclude): New hook.
7356         * c-opts.c (done_preinclude): New.
7357         (push_command_line_include): Handle default preincluded header.
7358         (cb_file_change): Call pch_cpp_save_state when calling
7359         push_command_line_include.
7360         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
7361         (pch_cpp_save_state): New.
7362         (pch_init): Call pch_cpp_save_state conditionally, instead of
7363         calling cpp_save_state.
7365 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7367         PR c/53063
7368         PR c/40989
7369         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
7370         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
7371         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
7372         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
7373         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
7374         * c-opts.c (c_common_handle_option): Remove explicit handling from
7375         here.
7376         (c_common_post_options): Likewise.
7378 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
7380         * c-ada-spec.c (LOCATION_COL): Delete.
7381         (compare_location): New function.
7382         (compare_node): Use it.
7383         (compare_comment): Likewise.
7385 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7387         PR c/53063
7388         PR c/40989
7389         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
7390         * c-opts.c (c_common_handle_option): Do not set them here. Add
7391         comment.
7392         (c_common_post_options): Likewise.
7394 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
7396         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
7397         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
7398         Remove POINTER_TYPE handling, add large unsigned handling and use
7399         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
7401 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
7403         PR c/54381
7404         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
7405         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
7406         locs and array of 3 trees instead of just single loc and single
7407         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
7408         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
7409         For *cmp* builtins that take two sources strings report warnings
7410         about first and second source, not about destination and source.
7412 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
7414         PR c++/53055
7415         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
7417 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
7419         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
7420         declaring something coming from another file.
7422 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
7424         PR ada/54845
7425         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
7427 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
7429         PR c++/54194
7430         * c-common.c (warn_about_parentheses): Add location_t parameter;
7431         use EXPR_LOC_OR_LOC.
7432         * c-common.h: Update declaration.
7434 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
7436         PR c++/54427
7437         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
7438         more operations. Make error messages optional.
7439         * c-common.h (enum stv_conv): Moved from c-typeck.c.
7440         (scalar_to_vector): Declare.
7442 2012-10-08  Jason Merrill  <jason@redhat.com>
7444         * c-common.c (c_common_reswords): Add thread_local.
7446 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
7448         PR c++/53528 C++11 attribute support
7449         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
7450         new functions.
7451         * c-common.c (check_cxx_fundamental_alignment_constraints): New
7452         static function.
7453         (handle_aligned_attribute): In choose strictest alignment
7454         among many.  Use new check_cxx_fundamental_alignment_constraints.
7455         (handle_transparent_union_attribute): In c++11 attribute syntax,
7456         don't look through typedefs.
7458 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
7460         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
7461         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
7462         out of dumpfile.h.
7464 2012-09-25  Dehao Chen  <dehao@google.com>
7466         PR middle-end/54645
7467         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
7468         map when read in the pch.
7470 2012-09-18  Arnaud Charlet  <charlet@adacore.com>
7472         * c-ada-spec.c: Style fixes.
7474 2012-09-18  Thomas Quinot  <quinot@adacore.com>
7476         * c.opt (-fada-spec-parent): Define new command line switch.
7477         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
7478         is specified, generate binding spec as a child of the specified unit.
7480 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
7481             Manuel López-Ibáñez  <manu@gcc.gnu.org>
7483         PR c++/53210
7484         * c.opt ([Winit-self]): Enabled by -Wall in C++.
7486 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
7488         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
7489         for pointers, and add missing Convention C pragma.
7490         (print_ada_struct_decl): Add missing aliased keyword.
7491         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
7493 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
7495         * c-common.c (sizeof_pointer_memaccess_warning): New function.
7496         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
7497         * c-opts.c (c_common_handle_option): Enable it for -Wall.
7498         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
7499         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
7501 2012-08-10  Richard Guenther  <rguenther@suse.de>
7503         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
7505 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
7507         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
7508         instead of separate pp_newline and pp_flush.
7509         (print_c_tree): Likewise.
7511 2012-07-26  Richard Henderson  <rth@redhat.com>
7513         * c-common.c (handle_hot_attribute): Allow labels.
7514         (handle_cold_attribute): Likewise.
7516 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
7518         PR c++/28656
7519         * c-common.c (check_function_nonnull): Handle multiple nonnull
7520         attributes properly.
7522 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
7524         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
7525         * c-ada-spec.c: Likewise.
7526         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
7528 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
7530         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
7531         Remove code conditional on it.
7533 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
7535         * c-gimplify.c: Do not include basic-block.h.
7536         * c-common.c: Do not include linfuncs.h.
7538 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
7540         * c-common.h: Include tree.h.
7542 2012-07-02  Jason Merrill  <jason@redhat.com>
7544         PR c++/53524
7545         * c-common.c (get_priority): Call default_conversion.
7547 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
7549         * c-pch.c (c_common_write_pch): Remove unused variables.
7551 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
7553         * cppspec.c: Moved from gcc/ to here.
7555 2012-06-27  Kai Tietz  <ktietz@redhat.com>
7557         PR preprocessor/37215
7558         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
7560 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
7562         * c-common.h (c_common_print_pch_checksum): Remove.
7563         * c-pch.c: Do not include output.h.
7564         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
7565         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
7566         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
7567         (struct c_pch_header): Remove.
7568         (get_ident): Update gpch version.
7569         (pch_init): Do not print executable_checksum to asm_out_file.
7570         Do not fail if there is no asm_out_file to read back from.  Set
7571         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
7572         (c_common_write_pch): Verify that nothing was written to asm_out_file
7573         since pch_init was called.  Do not write a c_pch_header, and do not
7574         copy from asm_out_file to the PCH.
7575         (c_common_read_pch): Do not read a c_pch_header, and do not restore
7576         the content of asm_out_file from the PCH.
7577         (c_common_print_pch_checksum): Remove.
7578         * c-opts.c (c_common_init): Print out executable_checksum directly.
7580 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
7582         * c-target.def (objc_declare_unresolved_class_reference,
7583         objc_declare_class_definition): Add new hooks.
7585 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
7587         * c-lex.c: Do not include output.h.
7588         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
7589         Remove uses of ASM_OUTPUT_IDENT.
7591 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
7593         PR c++/51033
7594         * c-common.h (c_build_vec_perm_expr): Move decl here.
7595         * c-common.c (c_build_vec_perm_expr): Move definition
7596         here.
7598 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
7600         * c.opt (fconserve-space): Turn into a no-op.
7602 2012-06-04  Sterling Augustine  <saugustine@google.com>
7604         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
7605         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
7606         both the start and end of the function.
7608 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
7610         * c-common.c: Do not include output.h.
7611         * c-pragma.c: Likewise.
7613 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
7615         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
7616         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
7617         (lang_decl_name): Handle namespace decls.
7619 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
7621         * c-ada-spec.c: Do not include output.h.
7622         * c-semantics.c: Likewise.
7624 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
7626         * c-common.c: Fix typo.
7628 2012-05-29  Michael Matz  <matz@suse.de>
7630         * c-common.h (c_expand_decl): Remove prototype.
7632 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7634         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
7635         * c-opts.c (c_common_handle_option): Remove code handling
7636         warn_missing_braces.
7638 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
7640         PR c++/25137
7641         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
7642         -Wmissing_braces.
7644 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
7646         PR c++/53322
7647         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
7649 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7651         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
7652         * c-opts.c (c_common_handle_option): Do not handle explicitly
7653         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
7655 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
7657         PR preprocessor/7263
7658         * c-lex.c (c_lex_with_flags):  Pass a virtual location to the call
7659         to cpp_classify_number.  For diagnostics, use the precise location
7660         instead of the global input_location.
7662 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
7664         PR c++/11856
7665         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
7667 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
7669         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
7671 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7673         PR 53063
7674         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
7675         Wreorder): Use LangEnabledBy.
7676         * c-opts.c (c_common_handle_option): Do not enable them
7677         explicitly. Call lang-specific generated functions.
7678         (c_common_post_options): Do not set them here.
7680 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7682         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
7683         Wmissing-field-initializers,Wmissing-parameter-type,
7684         Wold-style-declaration,Woverride-init): Use EnabledBy.
7685         * c-opts.c (c_common_post_options): Do not set here explicitly.
7687 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7689         PR 53063
7690         * c-opts.c (c_common_handle_option): Use handle_generated_option
7691         to enable sub-options.
7693 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
7695         PR c++/53158
7696         * c-common.c (warnings_for_convert_and_check): Use warning_at.
7698 2012-05-10  Richard Guenther  <rguenther@suse.de>
7700         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
7701         adjust commentary about TYPE_IS_SIZETYPE types.
7703 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7705         PR c++/53261
7706         * c-common.c (warn_logical_operator): Check that argument of
7707         integer_zerop is not NULL.
7709 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7711         PR c/43772
7712         * c-common.c (warn_logical_operator): Do not warn if either side
7713         is already true or false.
7715 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7717         PR c/51712
7718         * c-common.c (expr_original_type): New.
7719         (shorten_compare): Do not warn for enumeration types.
7721 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7723         * c.opt (fpermissive): Add Var(flag_permissive).
7725 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
7727         PR c++/51033
7728         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
7729         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
7731 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
7733         Add -Wvarargs option
7734         * c.opt (Wvarargs):  Define new option.
7736 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7738         * c-common.c (check_function_arguments): Replace
7739         Wmissing-format-attribute with Wsuggest-attribute=format.
7741 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7743         * c.opt (Wsuggest-attribute=format): New. Alias of
7744         Wmissing-format-attribute.
7745         * c-format.c (decode_format_type): Replace
7746         Wmissing-format-attribute with Wsuggest-attribute=format.
7747         (check_function_format): Likewise.
7749 2012-04-27  Ollie Wild  <aaw@google.com>
7751         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
7752         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
7753         * c.opt: Add Wliteral-suffix.
7755 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7757         PR c/44774
7758         * c.opt (Wpedantic): New.
7759         (pedantic): Alias Wpedantic.
7760         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
7761         (c_common_post_options): Likewise.
7762         (sanitize_cpp_opts): Likewise.
7763         * c-lex.c (interpret_float): Likewise.
7764         * c-format.c (check_format_types): Likewise.
7765         * c-common.c (pointer_int_sum): Likewise.
7766         (c_sizeof_or_alignof_type): Likewise.
7767         (c_add_case_label): Likewise.
7768         (c_do_switch_warnings): Likewise.
7769         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
7771 2012-04-15  Jason Merrill  <jason@redhat.com>
7773         PR c++/52818
7774         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
7775         (C_STD_NAME): Distinguish between C++98 and C++11.
7777 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
7779         PR target/52624
7780         * c-common.h (uint16_type_node): Rename into...
7781         (c_uint16_type_node): ...this.
7782         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
7783         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
7785 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7787         * c-common.c (warn_if_unused_value): Move definition to here.
7788         * c-common.h (warn_if_unused_value): Move declaration to here.
7790 2012-03-23  William Bader  <williambader@hotmail.com>
7792         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
7794 2012-03-20  Jason Merrill  <jason@redhat.com>
7796         * c-common.h (enum cxx_dialect): Add cxx1y.
7797         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
7798         test.
7799         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
7800         * c-opts.c (c_common_post_options): Likewise.
7801         (set_std_cxx1y): New.
7802         (c_common_handle_option): Call it.
7803         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
7805 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
7807         PR c++/14710
7808         * c.opt ([Wuseless-cast]): Add.
7810 2012-03-16  Richard Guenther  <rguenther@suse.de>
7812         * c-pretty-print.c (pp_c_initializer_list): Adjust.
7814 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7816         PR c++/44783
7817         * c.opt (ftemplate-backtrace-limit) Add.
7819 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7821         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
7822         handling.
7823         * c-pragma.c (handle_pragma_extern_prefix): Remove.
7824         (init_pragma): Don't register extern_prefix.
7826 2012-03-12  Richard Guenther  <rguenther@suse.de>
7828         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
7829         (builtin_type_for_size): Likewise.
7831 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
7833         PR c++/52215
7834         * c-common.c (sync_resolve_params): Don't decide whether to convert
7835         or not based on TYPE_SIZE comparison, convert whenever arg_type
7836         is unsigned INTEGER_TYPE.
7838 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
7840         PR c/52118
7841         * c.opt ([Wunused-local-typedefs]): Fix description.
7843 2012-01-24  Mike Stump  <mikestump@comcast.net>
7845         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
7846         exactly.
7848 2012-01-18  Richard Guenther  <rguenther@suse.de>
7850         * c-opts.c (c_common_post_options): Reset LTO flags if
7851         we are about to generate a PCH.
7853 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
7855         PR c++/51777
7856         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
7857         use pp_unsigned_wide_integer.
7859 2012-01-10  Richard Guenther  <rguenther@suse.de>
7861         PR middle-end/51806
7862         * c-opts.c (c_common_handle_option): Move -Werror handling
7863         to language independent code.
7865 2012-01-05  Richard Guenther  <rguenther@suse.de>
7867         PR middle-end/51764
7868         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
7869         from common.opt.
7871 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
7873         PR c++/51316
7874         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
7875         of array types with an unknown bound.
7877 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
7879         * c-common.c (flag_isoc99): Update comment to refer to C11.
7880         (flag_isoc1x): Change to flag_isoc11.
7881         * c-common.h (flag_isoc99): Update comment to refer to C11.
7882         (flag_isoc1x): Change to flag_isoc11.
7883         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
7884         C11.
7885         * c-opts.c (set_std_c1x): Change to set_std_c11.
7886         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
7887         Call set_std_c11.
7888         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
7889         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
7890         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
7891         standard.
7892         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
7893         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
7894         (std=gnu1x): Make alias of std=gnu11.
7896 2011-12-19  Jason Merrill  <jason@redhat.com>
7898         PR c++/51228
7899         * c-common.c (handle_transparent_union_attribute): Check the first
7900         field if the type is complete.
7902 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
7904         PR libstdc++/51365
7905         * c-common.c (RID_IS_FINAL): Add.
7906         * c-common.h (RID_IS_FINAL): Add.
7908 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
7910         * c.opt (fgnu-runtime): Provide full description.
7911         (fnext-runtime): Likewise.
7912         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
7914 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
7916         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
7917         predefines in one place.  Add LOCK_FREE predefines.
7918         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
7919         new func.
7921 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
7923         PR c/51256
7924         * c-common.c (get_atomic_generic_size): Check for various error
7925         conditions
7926         (resolve_overloaded_atomic_exchange,
7927         resolve_overloaded_atomic_compare_exchange,
7928         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
7929         error_mark_node for error conditions.
7931 2011-11-08  Richard Guenther  <rguenther@suse.de>
7933         PR middle-end/51010
7934         c-family/
7936 2011-11-07  Richard Henderson  <rth@redhat.com>
7937             Aldy Hernandez  <aldyh@redhat.com>
7938             Torvald Riegel  <triegel@redhat.com>
7940         Merged from transactional-memory.
7942         * c-common.c (handle_tm_wrap_attribute,
7943         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
7944         (struct c_common_reswords): Added __transaction* keywords.
7945         (struct c_common_attribute_table): Added transaction* and tm_regparm
7946         attributes.
7947         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
7948         masks.
7949         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
7950         find_tm_attribute): Declare.
7952 2011-11-07  Jason Merrill  <jason@redhat.com>
7954         PR c++/35688
7955         * c-common.c, c-common.h: Revert yesterday's changes.
7957 2011-11-06  Jason Merrill  <jason@redhat.com>
7959         PR c++/35688
7960         * c-common.c (decl_has_visibility_attr): Split out from...
7961         (c_determine_visibility): ...here.
7962         * c-common.h: Declare it.
7964 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
7966         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
7967         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
7968         type.
7969         (check_user_alignment): New.  Split out of
7970         handle_aligned_attribute.  Disallow integer constants with
7971         noninteger types.  Conditionally allow zero.
7972         (handle_aligned_attribute): Use check_user_alignment.
7973         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
7975 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
7976             Richard Henderson  <rth@redhat.com>
7978         Merged from cxx-mem-model.
7980         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
7981         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
7982         parameters that are the same type size.
7983         (get_atomic_generic_size): New.  Find size of generic
7984         atomic function parameters and do typechecking.
7985         (add_atomic_size_parameter): New.  Insert size into parameter list.
7986         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
7987         either __atomic_exchange_n or external library call.
7988         (resolve_overloaded_atomic_compare_exchange): Restructure
7989         __atomic_compare_exchange to either _n variant or external library call.
7990         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
7991         __atomic_load_n or an external library call.
7992         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
7993         __atomic_store_n or an external library call.
7994         (resolve_overloaded_builtin): Handle new __atomic builtins.
7996 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
7998         PR c++/50608
7999         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
8000         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
8001         <INDIRECT_REF>: Return the argument.
8002         <ARRAY_REF>: Remove special code for negative offset.
8003         Call fold_build_pointer_plus instead of size_binop.
8004         (fold_offsetof): Remove STOP_REF argument and adjust.
8005         * c-common.h (fold_offsetof_1): Declare.
8006         (fold_offsetof): Remove STOP_REF argument.
8008 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
8010         PR c++/50810
8011         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
8012         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
8013         Wnarrowing for C++0x and C++98.
8014         * c.opt ([Wnarrowing]): Update.
8016 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
8018         PR c++/44277
8019         * c.opt: Add Wzero-as-null-pointer-constant.
8021 2011-10-31  Jason Merrill  <jason@redhat.com>
8023         * c.opt (-fdeduce-init-list): Off by default.
8025         PR c++/50920
8026         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
8027         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
8028         and -Wc++11-compat.
8029         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
8031 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
8033         PR c++/30066
8034         * c.opt (fvisibility-inlines-hidden): Description change.
8036 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
8038         Implement C++11 user-defined literals.
8039         * c-common.c (build_userdef_literal): New.
8040         * c-common.def: New tree code.
8041         * c-common.h (tree_userdef_literal): New tree struct and accessors.
8042         * c-lex.c (interpret_float): Add suffix parm.
8043         (c_lex_with_flags): Build literal tokens.
8045 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
8047         PR c++/50841
8048         Revert:
8049         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
8051         PR c++/50810
8052         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
8053         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
8054         Wnarrowing for C++0x and C++98.
8055         * c.opt ([Wnarrowing]): Update.
8057 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
8059         PR c++/50810
8060         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
8061         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
8062         Wnarrowing for C++0x and C++98.
8063         * c.opt ([Wnarrowing]): Update.
8065 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
8067         PR c++/45385
8068         * c-common.c (conversion_warning): Remove code looking for
8069         artificial operands.
8071 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
8073         PR bootstrap/50760
8074         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
8075         !NO_IMPLICIT_EXTERN_C.
8077 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
8079         * c-common.c (c_common_reswords): Add __bases,
8080         __direct_bases.
8081         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
8083 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
8085         PR c++/50757
8086         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
8088 2011-10-15  Tom Tromey  <tromey@redhat.com>
8089             Dodji Seketeli  <dodji@redhat.com>
8091         * c.opt (fdebug-cpp): New option.
8092         * c-opts.c (c_common_handle_option): Handle the option.
8093         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
8094         output stream in parameter. Factorized from ...
8095         (maybe_print_line): ... this. Dump location debug information when
8096         -fdebug-cpp is in effect.
8097         (print_line_1): New static function. Takes an output stream in
8098         parameter. Factorized from ...
8099         (print_line): ... here. Dump location information when -fdebug-cpp
8100         is in effect.
8101         (scan_translation_unit): Dump location information when
8102         -fdebug-cpp is in effect.
8104 2011-10-15  Tom Tromey  <tromey@redhat.com>
8105             Dodji Seketeli  <dodji@redhat.com>
8107         * c.opt (ftrack-macro-expansion): New option. Handle it with and
8108         without argument.
8109         * c-opts.c (c_common_handle_option)<case
8110         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
8111         cases. Handle -ftrack-macro-expansion with and without argument.
8113 2011-10-15  Tom Tromey  <tromey@redhat.com>
8114             Dodji Seketeli  <dodji@redhat.com>
8116         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
8117         (print_line, cb_define, do_line_change): Adjust to avoid touching
8118         the internals of struct line_map.  Use the public API instead.
8119         * c-pch.c (c_common_read_pch): Likewise.
8120         * c-lex.c (fe_file_change): Likewise.
8122 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
8124         PR c++/17212
8125         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
8127 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
8129         PR c++/33067
8130         * c-pretty-print.c (pp_c_floating_constant): Output
8131         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
8133 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
8135         * c-common.c (def_builtin_1): Delete old interface with two
8136         parallel arrays to hold standard builtin declarations, and replace
8137         it with a function based interface that can support creating
8138         builtins on the fly in the future.  Change all uses, and poison
8139         the old names.  Make sure 0 is not a legitimate builtin index.
8140         * c-omp.c (c_finish_omp_barrier): Ditto.
8141         (c_finish_omp_taskwait): Ditto.
8142         (c_finish_omp_flush): Ditto.
8144 2011-10-11  Tristan Gingold  <gingold@adacore.com>
8146         * c.opt: (fallow-parameterless-variadic-functions): New.
8148 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
8150         PR c++/33255 - Support -Wunused-local-typedefs warning
8151         * c-common.h (struct c_language_function::local_typedefs): New
8152         field.
8153         (record_locally_defined_typedef, maybe_record_typedef_use)
8154         (maybe_warn_unused_local_typedefs): Declare new functions.
8155         * c-common.c (record_locally_defined_typedef)
8156         (maybe_record_typedef_use)
8157         (maybe_warn_unused_local_typedefs): Define new functions.
8158         * c.opt: Declare new -Wunused-local-typedefs flag.
8160 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
8162         PR middle-end/50266
8163         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
8164         computations.
8166 2011-09-05  Richard Guenther  <rguenther@suse.de>
8168         * c-common.c (complete_array_type): Use ssize_int (-1) instead
8169         of integer_minus_one_node for empty array upper bounds.
8171 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
8173         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
8174         it's the first time it's being called on this main TU.
8176 2011-08-24  Richard Guenther  <rguenther@suse.de>
8178         PR c/49396
8179         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
8181 2011-08-22  Gabriel Charette  <gchare@google.com>
8183         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
8184         defined in cpp_init_builtins and c_cpp_builtins.
8186 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
8188         * c-common.c (c_common_reswords): Add __builtin_complex.
8189         * c-common.h (RID_BUILTIN_COMPLEX): New.
8191 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
8193         * c-common.c (c_common_reswords): Add _Noreturn.
8194         (keyword_is_function_specifier): Handle RID_NORETURN.
8195         * c-common.h (RID_NORETURN): New.
8197 2011-08-10  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
8199         * c-common.c (unsafe_conversion_p): New function. Check if it is
8200         unsafe to convert an expression to the type.
8201         (conversion_warning): Adjust, use unsafe_conversion_p.
8202         * c-common.h (unsafe_conversion_p): New function declaration.
8204 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
8206         * c-common.h (c_finish_omp_atomic): Adjust prototype.
8207         (c_finish_omp_taskyield): New prototype.
8208         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
8209         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
8210         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
8211         or RHS1 have side-effects, evaluate those too in the right spot,
8212         if it is a decl and LHS is also a decl, error out if they
8213         aren't the same.
8214         (c_finish_omp_taskyield): New function.
8215         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
8216         * c-pragma.c (omp_pragmas): Add taskyield.
8217         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
8218         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
8219         PRAGMA_OMP_CLAUSE_MERGEABLE.
8221 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
8223         * c-common.h (set_underlying_type): Remove parm name from
8224         declaration.
8226 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
8228         * c-pretty-print.h: Search c-common.h in c-family.
8230 2011-07-22  Jason Merrill  <jason@redhat.com>
8232         PR c++/49793
8233         * c.opt (Wnarrowing): New.
8235         PR c++/30112
8236         * c-common.h: Declare c_linkage_bindings.
8237         * c-pragma.c (handle_pragma_redefine_extname): Use it.
8239         PR c++/49813
8240         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
8241         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
8242         as flag_isoc99 for 'restrict'.
8243         (pp_c_specifier_qualifier_list): Likewise for _Complex.
8245 2011-07-21  Ian Lance Taylor  <iant@google.com>
8247         PR middle-end/49705
8248         * c-common.c (c_disable_warnings): New static function.
8249         (c_enable_warnings): New static function.
8250         (c_fully_fold_internal): Change local unused_p to bool.  Call
8251         c_disable_warnings and c_enable_warnings rather than change
8252         c_inhibit_evaluation_warnings.
8254 2011-07-20  Jason Merrill  <jason@redhat.com>
8256         PR c++/6709 (DR 743)
8257         PR c++/42603 (DR 950)
8258         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
8259         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
8260         (CPP_DECLTYPE): New.
8261         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
8263 2011-07-19  Richard Guenther  <rguenther@suse.de>
8265         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
8266         * c-omp.c (c_finish_omp_for): Likewise.
8268 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
8270         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
8271         body on the next line.
8273 2011-07-08  Jason Merrill  <jason@redhat.com>
8275         PR c++/45437
8276         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
8278         PR c++/49673
8279         * c-common.c (c_apply_type_quals_to_decl): Don't check
8280         TYPE_NEEDS_CONSTRUCTING.
8282 2011-07-06  Richard Guenther  <rguenther@suse.de>
8284         * c-common.c (c_common_nodes_and_builtins):
8285         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
8287 2011-07-05  Richard Guenther  <rguenther@suse.de>
8289         * c-common.c (c_common_nodes_and_builtins): Build all common
8290         tree nodes first.
8292 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
8294         * c-common.h (c_tree_chain_next): New static inline function.
8296         * c-common.c (check_builtin_function_arguments): Handle
8297         BUILT_IN_ASSUME_ALIGNED.
8299 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
8301         * c-common.c: Add sync_ or SYNC__ to builtin names.
8302         * c-omp.c: Add sync_ or SYNC__ to builtin names.
8304 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
8306         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
8307         handler.
8308         (gen_pragma_handler): New union.
8309         (internal_pragma_handler): New type.
8310         (c_register_pragma_with_data)
8311         (c_register_pragma_with_expansion_and_data): New functions.
8313         * c-pragma.c (registered_pragmas, c_register_pragma_1)
8314         (c_register_pragma, c_register_pragma_with_expansion)
8315         (c_invoke_pragma_handler): Changed to work with
8316         internal_pragma_handler.
8317         (c_register_pragma_with_data)
8318         (c_register_pragma_with_expansion_and_data): New functions.
8320 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
8322         * c-common.c: Include common/common-target.h.
8323         (handle_section_attribute): Use
8324         targetm_common.have_named_sections.
8325         * c-cppbuiltin.c: Include common/common-target.h.
8326         (c_cpp_builtins): Use targetm_common.except_unwind_info.
8328 2011-06-10  Richard Guenther  <rguenther@suse.de>
8330         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
8331         to print a IDENTIFIER_NODE.
8333 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8334             Joseph Myers  <joseph@codesourcery.com>
8336         * c.opt (fbuilding-libgcc): New option.
8337         * c-cppbuiltin.c (c_cpp_builtins): Define
8338         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
8340 2011-06-07  Jason Merrill  <jason@redhat.com>
8342         * c-common.c (max_tinst_depth): Lower default to 900.
8344         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
8346 2011-06-07  Richard Guenther  <rguenther@suse.de>
8348         * c-common.c (c_common_nodes_and_builtins): Do not set
8349         size_type_node or call set_sizetype.
8351 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
8353         PR debug/49130
8354         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
8355         type when using pointer comparison to compare types.
8357 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
8359         * c.opt: Add -Wdelete-non-virtual-dtor.
8360         * c-opts.c (c_common_handle_option): Include it in -Wall.
8362 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
8364         PR bootstrap/49190
8366         Revert:
8367         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
8369         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
8370         not tree_common.
8372 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
8374         PR c++/49165
8375         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
8376         C++ don't call c_common_truthvalue_conversion on void type arms.
8378 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
8380         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
8381         (stmt_list_stack): Define.
8382         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
8383         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
8385 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
8387         * c-common.c (warning_candidate_p): Check for BLOCKs.
8389 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
8391         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
8392         not tree_common.
8394 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
8396         * c-common.c (def_fn_type): Remove extra va_end.
8398 2011-05-23  Jason Merrill  <jason@redhat.com>
8400         PR c++/48106
8401         * c-common.c (c_common_get_narrower): New.
8402         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
8404 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
8406         * c-common.h (check_function_arguments): Tweak prototype of
8407         check_function_arguments.
8408         * c-common.c (check_function_arguments): Likewise.  Adjust
8409         calls to check_function_nonnull, check_function_format, and
8410         check_function_sentinel.
8411         (check_function_sentinel): Take a FUNCTION_TYPE rather than
8412         separate attributes and typelist arguments.  Use
8413         FOREACH_FUNCTION_ARGS to iterate over argument types.
8415 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
8417         * c-common.c (c_common_reswords): Reorder.
8418         * c-common.h (rid): Likewise.
8420 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
8422         * c-common.c (def_fn_type): Don't call build_function_type, call
8423         build_function_type_array or build_varargs_function_type_array
8424         instead.
8425         (c_common_nodes_and_builtins): Likewise.
8427 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
8429         * c-common.c (c_add_case_label): Omit the loc argument to
8430         build_case_label.
8431         * c-common.h (build_case_label): Remove.
8432         * c-semantics.c (build_case_label): Remove.
8434 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
8436         * c-objc.h (objc_start_method_definition): Update prototype.
8437         * stub-objc.c (objc_start_method_definition): Add extra parameter.
8439 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
8441         * c-common.c (check_main_parameter_types): Reindent.  Don't use
8442         TYPE_ARG_TYPES directly.
8443         (handle_nonnull_attribute): Likewise.
8444         (sync_resolve_params): Likewise.
8445         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
8446         to check_format_string.
8447         (handle_format_attribute): Likewise.
8448         (check_format_string): Take a function type to examine instead of
8449         a type list.  Use a function_arg_iterator to step through argument
8450         types.
8452 2011-05-04  Richard Guenther  <rguenther@suse.de>
8454         * c-common.c (fix_string_type): Use size_int for index type bounds.
8455         (start_fname_decls): Do not pass NULL to build_int_cst.
8456         (c_init_attributes): Likewise.
8457         * c-lex.c (c_lex_with_flags): Likewise.
8459 2011-04-27  Jason Merrill  <jason@redhat.com>
8461         * c-common.c (make_tree_vector_from_list): New.
8462         * c-common.h: Declare it.
8464 2011-04-26  Richard Guenther  <rguenther@suse.de>
8466         PR preprocessor/48248
8467         * c-ppoutput.c (maybe_print_line): Always optimize newlines
8468         for output size with -P.
8470 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
8472         * c-common.c (struct c_common_resword): Add __underlying_type.
8473         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
8475 2011-04-20  Jim Meyering  <meyering@redhat.com>
8477         * c-format.c (init_dollar_format_checking): Remove useless
8478         if-before-free.
8480 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
8482         * c-objc.h (objc_get_interface_ivars): Removed.
8483         (objc_detect_field_duplicates): New.
8484         * stub-objc.c: Likewise.
8486 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
8488         * stub-objc.c (objc_declare_protocols): Renamed to
8489         objc_declare_protocol.
8490         * c-objc.h: Likewise.
8492 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
8494         * stub-objc.c (objc_declare_class): Updated argument name.
8496 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
8498         * c-common.h (c_common_init_ts): Declare.
8499         * c-common.c (c_common_init_ts): Define.
8501 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
8503         * c-objc.h (objc_build_message_expr): Updated prototype.
8504         * stub-objc.c (objc_build_message_expr): Likewise.
8506 2011-04-12  Martin Jambor  <mjambor@suse.cz>
8508         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
8509         of cgraph_node.
8511 2011-04-11  Richard Guenther  <rguenther@suse.de>
8513         * c-common.c (complete_array_type): Build a range type of
8514         proper type.
8516 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
8518         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
8519         (handle_type_generic_attribute): Likewise.
8521 2011-04-07  Jason Merrill  <jason@redhat.com>
8523         PR c++/48450
8524         * c-common.c (c_common_truthvalue_conversion): Don't ignore
8525         conversion from C++0x scoped enum.
8527 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
8529         * c-target-def.h: New file.
8530         * c-target.def: New file.
8531         * c-target.h: New file.
8532         * c-common.c (targetcm): Don't define here.
8533         * c-common.h (default_handle_c_option): Declare.
8534         * c-format.c: Include c-target.h instead of target.h.
8535         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
8536         include tm.h.
8537         (default_handle_c_option): Move from targhooks.c.
8539 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
8541         PR preprocessor/48248
8542         * c-ppoutput.c (print): Add src_file field.
8543         (init_pp_output): Initialize it.
8544         (maybe_print_line): Don't optimize by adding up to 8 newlines
8545         if map->to_file and print.src_file are different file.
8546         (print_line): Update print.src_file.
8548 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8550         * c-ada-spec.c (compare_comment): Use filename_cmp
8551         instead of strcmp for filename.
8553 2011-03-25  Jeff Law  <law@redhat.com>
8555         * c-common.c (def_fn_type): Add missing va_end.
8557 2011-03-25  Jason Merrill  <jason@redhat.com>
8559         * c.opt: Add -std=c++03.
8561 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8563         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
8565 2011-03-17  Kai Tietz  <ktietz@redhat.com>
8567         PR target/12171
8568         * c-pretty-print.c (pp_c_specifier_qualifier_list):
8569         Display allowed attributes for function pointer types.
8570         (pp_c_attributes_display): New function to display
8571         attributes having affects_type_identity flag set to true.
8572         * c-pretty-print.h (pp_c_attributes_display): New prototype.
8574         * c-common.c (c_common_attribute_table):
8575         Add new element.
8576         (c_common_format_attribute_table): Likewise.
8578 2011-03-18  Jason Merrill  <jason@redhat.com>
8580         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
8581         * c-common.h: Don't declare it here.
8582         * c-common.c: Or define it here.
8583         * c-opts.c (c_common_handle_option): Or set it here.
8585         PR c++/35315
8586         * c-common.c (handle_transparent_union_attribute): Don't
8587         make a duplicate type in C++.
8589 2011-03-15  Jason Merrill  <jason@redhat.com>
8591         * c-common.c (max_constexpr_depth): New.
8592         * c-common.h: Declare it.
8593         * c-opts.c (c_common_handle_option): Set it.
8594         * c.opt (fconstexpr-depth): New option.
8596 2011-03-11  Jason Merrill  <jason@redhat.com>
8598         * c-common.c (attribute_takes_identifier_p): Add missing const.
8600         PR c++/46803
8601         * c-common.c (attribute_takes_identifier_p): Assume that an
8602         unknown attribute takes an identifier.
8604 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
8606         PR c/47786
8607         * c-common.c (c_type_hash): Call list_length instead of iterating
8608         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
8610 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
8612         PR c/47809
8613         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
8615 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
8617         * c.opt (fobjc-abi-version=) New.
8618         (fobjc-nilcheck): New.
8620 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
8622         PR c++/46890
8623         * c-common.h (keyword_is_decl_specifier): Declare.
8624         * c-common.c (keyword_is_decl_specifier): Define.
8625         (keyword_is_function_specifier): New function.
8627 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
8629         PR c/47473
8630         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
8631         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
8632         REAL_TYPE.
8634 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
8636         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
8638 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
8640         PR pch/47430
8641         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
8642         after init_c_lex if pch_file is set.
8644 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
8646         PR c++/43601
8647         * c.opt (-fkeep-inline-dllexport): New switch.
8649 2011-01-12  Richard Guenther  <rguenther@suse.de>
8651         PR middle-end/32511
8652         * c-common.c (handle_weak_attribute): Warn instead of error
8653         on declaring an inline function weak.
8655 2011-01-05  Tom Tromey  <tromey@redhat.com>
8657         * c-common.h (lvalue_error): Update.
8658         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
8659         not error.
8661 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
8663         PR objc/47075
8664         * c-objc.h (objc_finish_message_expr): Added argument to
8665         prototype.
8667 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
8669         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
8670         Use prototype_p.
8672 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
8674         * c-objc.h (objc_maybe_warn_exceptions): New.
8675         * stub-objc.c (objc_maybe_warn_exceptions): New.
8677 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
8679         * c-common.h (readonly_error): Declare.
8680         * c-common.c (readonly_error): Define.
8682 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
8684         * c-common.h (invalid_indirection_error): Declare.
8685         * c-common.c (invalid_indirection_error): Define.
8687 2010-12-03  Richard Guenther  <rguenther@suse.de>
8689         PR c/46745
8690         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
8691         (pp_c_unary_expression): Likewise.
8692         (pp_c_expression): Likewise.
8694 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
8696         * c-common.h (objc_finish_function): New.
8697         (objc_non_volatilized_type): Removed.
8698         (objc_type_quals_match): Removed.
8699         * stub-objc.c (objc_finish_function): New.
8700         (objc_non_volatilized_type): Removed.
8701         (objc_type_quals_match): Removed.
8703 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
8705         * c-common.h (parse_optimize_options): Declare.
8706         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
8707         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
8709 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
8711         * c-opts.c (check_deps_environment_vars): Use getenv instead of
8712         GET_ENVIRONMENT.
8713         * c-pch.c (O_BINARY): Don't define here.
8714         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
8716 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
8718         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
8719         targetm.except_unwind_info.
8721 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
8723         * c-opts.c (c_common_handle_option): Pass location to
8724         set_struct_debug_option.
8726 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
8728         * c-common.c (visibility_options): Move from ../opts.c.
8729         * c-common.h (struct visibility_flags, visibility_options):
8730         Declare here.
8731         * c-opts.c (finish_options): Rename to c_finish_options.
8732         (c_common_init): Update call to finish_options.
8734 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
8736         PR objc/34033
8737         * c-lex.c (lex_string): Check that each string in an Objective-C
8738         string concat sequence starts with either one or zero '@', and
8739         that there are no spurious '@' signs at the end.
8741 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
8743         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
8744         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
8745         HANDLE_PRAGMA_VISIBILITY.
8746         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
8747         HANDLE_PRAGMA_VISIBILITY): Don't define.
8748         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
8750 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
8752         PR c++/16189
8753         PR c++/36888
8754         PR c++/45331
8755         * c-common.h (keyword_begins_type_specifier): Declare.
8756         (keyword_is_storage_class_specifier): Declare.
8757         (keyword_is_type_qualifier): Declare.
8758         * c-common.c (keyword_begins_type_specifier): New function.
8759         (keyword_is_storage_class_specifier): New function.
8760         (keyword_is_type_qualifier): Declare.
8762 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
8764         PR c/46547
8765         * c-common.c (in_late_binary_op): Define.
8766         (c_common_truthvalue_conversion): Check in_late_binary_op before
8767         calling c_save_expr.
8768         * c-common.h (in_late_binary_op): Declare.
8770 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
8772         * c-opts.c (c_common_handle_option): Update calls to
8773         set_struct_debug_option.
8775 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
8777         * c-common.h (objc_declare_protocols): Added additional argument.
8778         * stub-objc.c (objc_declare_protocol): Same change.
8780 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
8782         PR c/33193
8783         * c-common.h (build_real_imag_expr): Declare.
8784         * c-semantics.c (build_real_imag_expr): Define.
8786 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
8788         * c-opts.c (c_common_parse_file): Take no arguments.
8789         * c-common.h (c_common_parse_file): Update prototype.
8791 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
8793         PR c++/46401
8794         * c-common.c (warning_candidate_p): Don't track non-const calls
8795         or STRING_CSTs.
8797 2010-11-15  Ian Lance Taylor  <iant@google.com>
8799         * c-lex.c (init_c_lex): Set macro debug callbacks if
8800         flag_dump_go_spec is set.
8802 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
8804         * c-common.h (objc_build_incr_expr_for_property_ref): New.
8805         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
8807 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
8809         PR preprocessor/45038
8810         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
8811         dialects.
8813 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
8815         * c-common.h (c_family_lang_mask): Declare.
8816         * c-opts.c (c_family_lang_mask): Make extern.
8817         * c-pragma.c (handle_pragma_diagnostic): Use
8818         control_warning_option.
8820 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
8822         * c-common.c (parse_optimize_options): Update call to
8823         decode_options.
8824         * c-common.h (c_common_handle_option): Update prototype.
8825         * c-opts.c (c_common_handle_option): Take location_t parameter and
8826         pass it to other functions.
8828 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
8830         * c-opts.c (warning_as_error_callback): Remove.
8831         (c_common_initialize_diagnostics): Don't call
8832         register_warning_as_error_callback.
8833         (c_common_handle_option): Handle -Werror=normalized= here.
8835 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
8837         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
8838         in diagnostic.
8839         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
8840         letter.
8841         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
8842         Remove trailing '.' from diagnostics.
8843         * c.opt (Wwrite-strings_: Avoid '`' in help text.
8845 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
8847         * c-common.c (parse_optimize_options): Pass global_dc to
8848         decode_options.
8849         * c-opts.c (c_common_handle_option): Pass &global_options to
8850         set_Wstrict_aliasing.
8851         * c.opt (v): Don't mark Common or document here.
8853 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
8855         PR target/44981
8856         * c-format.c (format_type): New type gcc_objc_string_format_type.
8857         (valid_stringptr_type_p): New.
8858         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
8859         (check_format_string): Pass expected type, use
8860         valid_stringptr_type_p (), check that the format string types are
8861         consistent with the format specification.
8862         (decode_format_attr): Warn if NSString is used outside objective-c.
8863         (format_types_orig): Add NSString.
8864         (format_name): New.
8865         (format_flags): New.
8866         (check_format_arg): Handle format strings requiring an external parser.
8867         first_target_format_type: New variable.
8868         (handle_format_attribute): Set up first_target_format_type, pass the
8869         expected format arg string type to check_format_string().
8870         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL):  New flag.
8871         * stub-objc.c (objc_string_ref_type_p): New.
8872         (objc_check_format_arg): New.
8874 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
8876         Fixed using the Objective-C 2.0 dot-syntax with class names.
8877         * c-common.h (objc_build_class_component_ref): New.
8878         * stub-objc.c (objc_build_class_component_ref): New.
8880 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
8882         * c.opt (Wproperty-assign-default): New option.
8884 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
8886         Implemented -fobjc-std=objc1 flag.
8887         * c.opt (fobjc-std=objc1): New option.
8889 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
8891         Implemented format and noreturn attributes for Objective-C methods.
8892         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
8893         attribute for Objective-C methods.
8895 2010-10-31  Jason Merrill  <jason@redhat.com>
8897         * c-common.c (conversion_warning, warn_for_collisions_1): Use
8898         EXPR_LOC_OR_HERE.
8900 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
8902         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
8903         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
8904         (objc_add_property_declaration): Removed arguments for copies and
8905         ivar.
8906         (objc_build_getter_call): Renamed to
8907         objc_maybe_build_component_ref.
8908         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
8909         (objc_is_property_ref): New.
8910         * c-common.c (c_common_reswords): Removed copies and ivar.
8911         * stub-objc.c (objc_add_property_declaration): Removed arguments
8912         for copies and ivar.
8913         (objc_build_getter_call): Renamed to
8914         objc_maybe_build_component_ref.
8915         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
8916         (objc_is_property_ref): New.
8918 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
8919             Matthew Gingell  <gingell@adacore.com>
8921         * c-ada-spec.c (separate_class_package): New function.
8922         (pp_ada_tree_identifier): Prefix references to C++ classes with the
8923         name of their enclosing package.
8924         (print_ada_declaration): Use separate_class_package.
8926 2010-10-27  Jason Merrill  <jason@redhat.com>
8928         * c-common.c (c_common_reswords): Add __is_literal_type.
8929         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
8931         * c-common.c (check_case_value): Remove special C++ code.
8933 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
8935         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
8936         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
8937         and RID_LAST_PATTR.
8938         (objc_add_property_declaration): Added additional arguments.
8939         (objc_property_attribute_kind): Removed.
8940         (objc_set_property_attr): Removed.
8941         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
8942         copy and nonatomic.
8943         * stub-objc.c (objc_add_property_declaration): Added additional
8944         arguments.
8945         (objc_set_property_attr): Removed.
8947 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
8949         * c-common.h (objc_add_property_variable): Renamed to
8950         objc_add_property_declaration.  Added location argument.
8951         * stub-objc.c (objc_add_property_variable): Same change.
8953 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
8955         * c-common.h (objc_maybe_printable_name): New.
8956         * stub-objc.c (objc_maybe_printable_name): New.
8958 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
8959             Andrew Pinski  <pinskia@gmail.com>
8961         * c-common.h (c_common_mark_addressable_vec): Declare.
8962         * c-common.c (c_common_mark_addressable_vec): New function.
8964 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
8966         * c-common.h (objc_set_method_type): Removed.
8967         (objc_add_method_declaration): Added boolean argument.
8968         (objc_start_method_definition): Same change.
8969         (objc_build_method_signature): Same change.
8970         * stub-objc.c (objc_set_method_type): Removed.
8971         (objc_add_method_declaration): Added boolean argument.
8972         (objc_start_method_definition): Same change.
8973         (objc_build_method_signature): Same change.
8975 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
8977         * c-common.h (finish_file): Removed.
8978         (objc_write_global_declarations): New.
8979         * c-opts.c (c_common_parse_file): Do not call finish_file.
8980         * stub-objc.c (objc_write_global_declarations): New.
8982 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
8984         Implemented parsing @synthesize and @dynamic for
8985         Objective-C/Objective-C++.
8986         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
8987         (objc_add_synthesize_declaration): New.
8988         (objc_add_dynamic_declaration): New.
8989         * c-common.c (c_common_reswords): Add synthesize and dynamic.
8990         * stub-objc.c (objc_add_synthesize_declaration): New.
8991         (objc_add_dynamic_declaration): New.
8993 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
8995         PR target/46041
8996         * c-cppbuiltin.c (mode_has_fma): Move function here from
8997         builtins.c.  Don't use the fma optab, instead just use the
8998         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
8999         using -save-temps.
9001 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
9003         Merge from 'apple/trunk' branch on FSF servers.
9005         2005-11-08  Fariborz Jahanian  <fjahanian@apple.com>
9007         Radar 4330422
9008         * c-common.h (objc_non_volatilized_type): New declaration
9009         * stub-objc.c (objc_non_volatilized_type): New stub.
9011 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
9013         Merge from 'apple/trunk' branch on FSF servers.
9015         2006-03-27 Fariborz Jahanian  <fjahanian@apple.com>
9017         Radar 4133425
9018         * c-common.h (objc_diagnose_private_ivar): New decl.
9019         * stub-objc.c (objc_diagnose_private_ivar): New stub.
9021 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
9023         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
9024         * c-common.h (enum rid): Add RID_AT_PACKAGE.
9025         (objc_ivar_visibility_kind): New enum.
9026         (objc_set_visibility): Adjust prototype to use visibility enum.
9027         * stub-objc.c (objc_set_visibility): Adjust stub to use
9028         visibility enum.
9030 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9032         * c-cppbuiltin.c (builtin_define_float_constants): Emit
9033         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
9034         has the appropriate fma builtins.
9035         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
9037 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
9039         merge from FSF apple 'trunk' branch.
9040         2006 Fariborz Jahanian  <fjahanian@apple.com>
9042         Radars 4436866, 4505126, 4506903, 4517826
9043         * c-common.c (c_common_resword): Define @property and its attributes.
9044         * c-common.h: Define property attribute enum entries.
9045         (OBJC_IS_PATTR_KEYWORD): New.
9046         (objc_property_attribute_kind): New enum.
9047         Declare objc_set_property_attr (), objc_add_property_variable (),
9048         objc_build_getter_call () and objc_build_setter_call ().
9049         * stub-objc.c (objc_set_property_attr): New stub.
9050         (objc_add_property_variable): Likewise.
9051         (objc_build_getter_call): Likewise.
9052         (objc_build_setter_call) Likewise.
9054 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
9056         merge from FSF apple 'trunk' branch.
9057         2006-04-26 Fariborz Jahanian  <fjahanian@apple.com>
9059         Radar 3803157 (method attributes)
9060         * c-common.c (handle_deprecated_attribute): Recognize
9061         objc methods as valid declarations.
9062         * c-common.h: Declare objc_method_decl ().
9063         * stub-objc.c (objc_method_decl): New stub.
9065 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
9067         * c-common.c (parse_optimize_options): Call
9068         decode_cmdline_options_to_array_default_mask before
9069         decode_options.  Update arguments to decode_options.
9070         * c-common.h (c_common_init_options_struct): Declare.
9071         * c-opts.c (c_common_init_options_struct): New.  Split out from
9072         c_common_init_options.
9074 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
9076         Implemented fast enumeration for Objective-C.
9077         * c-common.h (objc_finish_foreach_loop): New.
9078         * stub-objc.c (objc_finish_foreach_loop): New.
9080 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
9082         * c-common.h (struct diagnostic_context): Don't declare here.
9083         (c_common_initialize_diagnostics): Declare using
9084         diagnostic_context typedef.
9085         * c-opts.c (c_common_handle_option): Pass global_dc to
9086         handle_generated_option.
9088 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
9090         * c-opts.c (c_common_handle_option): Pass &global_options_set to
9091         handle_generated_option.
9093 2010-10-03  Ian Lance Taylor  <iant@google.com>
9095         * c.opt (-fplan9-extensions): New option.
9097 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9099         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
9100         Remove.
9101         (c_cpp_builtins): Call functions from cppbuiltin.c instead
9102         of duplicating code.
9104 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
9106         * c-common.c: Add two new entries for @optional
9107         and @required keywords.
9109         merge from FSF 'apple/trunk' branch.
9110         2006-01-30  Fariborz Jahanian  <fjahanian@apple.com>
9112         Radar 4386773
9113         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
9114         objective-c keywords.
9115         (objc_set_method_opt): New declaration.
9116         * stub-objc.c (objc_set_method_opt): New stub.
9118 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
9120         * c-common.c (handle_optimize_attribute): Pass &global_options to
9121         cl_optimization_save and cl_optimization_restore.
9122         * c-opts.c (c_common_handle_option): Pass &global_options to
9123         handle_generated_option.
9124         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
9125         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
9126         &global_options to cl_optimization_restore.
9128 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
9130         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
9131         Objective-C/Objective-C++ keywords.
9133 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
9135         Merge from 'apple/trunk' branch on FSF servers.
9137         2005-10-04  Fariborz Jahanian  <fjahanian@apple.com>
9139         Radar 4281748
9140         * c-common.h (objc_check_global_decl): New declaration.
9141         * stub-objc.c (objc_check_global_decl): New stub.
9143 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
9145         * c.opt: Don't use VarExists.
9147 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
9149         * c-common.c (c_cpp_error): Update names of diagnostic_context
9150         members.
9151         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
9152         cl_optimization members.
9153         * c-opts.c (warning_as_error_callback, c_common_handle_option,
9154         sanitize_cpp_opts, finish_options): Update names of cpp_options
9155         members.
9157 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
9159         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
9160         (objc_is_reserved_word): Removed.
9161         * c-common.c: Updated comments.
9162         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
9163         objc_is_reserved_word.
9164         * stub-objc.c (objc_is_reserved_word): Removed.
9166 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
9168         * c-common.h (objc_add_method_declaration): Adjust prototype to
9169         include attributes.
9170         (objc_start_method_definition): Likewise.
9171         (objc_build_keyword_decl): Likewise.
9172         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
9173         (objc_start_method_definition): Likewise.
9174         (objc_build_keyword_decl): Likewise.
9176 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
9178         * c-common.h (objc_start_class_interface): Adjust prototype.
9179         (objc_start_category_interface): Likewise.
9180         (objc_start_protocol): Likewise.
9181         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
9182         (objc_start_class_interface): Likewise.
9183         (objc_start_category_interface): Likewise.
9185 2010-09-27  Ian Lance Taylor  <iant@google.com>
9187         * c-common.c (c_common_attribute_table): Add no_split_stack.
9188         (handle_no_split_stack_attribute): New static function.
9190 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
9192         Merge from 'apple/trunk' branch on FSF servers.
9194         2005-12-15  Fariborz Jahanian  <fjahanian@apple.com>
9196         Radar 4229905
9197         * c-common.h (objc_have_common_type): New declaration.
9198         * stub-objc.c (objc_have_common_type): New stub.
9200         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
9202         Radar 4154928
9203         * c-common.h (objc_common_type): New prototype.
9204         * stub-objc.c (objc_common_type): New stub.
9206 2010-09-24  Jan Hubicka  <jh@suse.cz>
9208         * c-common.c (handle_leaf_attribute): New function.
9209         (struct attribute_spec c_common_att): Add leaf.
9211 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
9213         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
9214         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
9215         -dump, -dump=, -imacros, -imacros=, -include, -include=,
9216         -include-barrier, -include-directory, -include-directory=,
9217         -include-directory-after, -include-directory-after=,
9218         -include-prefix, -include-prefix=, -include-with-prefix,
9219         -include-with-prefix=, -include-with-prefix-after,
9220         -include-with-prefix-after=, -include-with-prefix-before,
9221         -include-with-prefix-before=, -no-integrated-cpp,
9222         -no-line-commands, -no-standard-includes, -no-warnings, -output,
9223         -output=, -pedantic, -pedantic-errors, -preprocess,
9224         -print-missing-file-dependencies, -trace-includes, -traditional,
9225         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
9226         -user-dependencies, -verbose, -write-dependencies,
9227         -write-user-dependencies, no-integrated-cpp, traditional): New.
9229 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9231         PR objc/23710
9232         * c-common.h (objc_start_method_definition): Return bool instead
9233         of void.
9234         * stub-objc.c (objc_start_method_definition): Return bool instead
9235         of void.
9237 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9239         PR objc/25965
9240         * c-common.h (objc_get_interface_ivars): New declaration.
9241         * stub-objc.c (objc_get_interface_ivars): New stub.
9243 2010-09-15  Ian Lance Taylor  <iant@google.com>
9245         * c-common.c (parse_optimize_options): Do not capitalize warning
9246         messages.  Remove period at end of warning message.
9248 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
9250         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
9251         (handle_alias_attribute): ... here.
9252         (handle_ifunc_attribute): New.
9254 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
9256         * c-common.h (do_warn_double_promotion): Declare.
9257         * c-common.c (do_warn_double_promotion): Define.
9259 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
9261         * c.opt (Wdouble-promotion): New.
9263 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
9265         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
9266         fvtable-thunks, fxref): Mark no longer supported in help text.
9268 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
9270         * c.opt (Wimport, fall-virtual, falt-external-templates,
9271         fdefault-inline, fenum-int-equiv, fexternal-templates,
9272         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
9273         fname-mangling-version-, fnew-abi, fnonnull-objects,
9274         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
9275         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
9276         applicable.
9277         (fhandle-exceptions): Mark with Alias and Warn.
9278         * c-opts.c (c_common_handle_option): Don't handle options marked
9279         as ignored.
9281 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
9283         * c.opt (Wcomments, Werror-implicit-function-declaration,
9284         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
9285         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
9286         aliases.
9287         * c-common.c (option_codes): Use OPT_Wcomment instead of
9288         OPT_Wcomments.
9289         * c-opts.c (warning_as_error_callback, c_common_handle_option):
9290         Don't handle options marked as aliases.
9292 2010-08-25  Richard Guenther  <rguenther@suse.de>
9294         * c-common.c (c_common_get_alias_set): Remove special
9295         handling for pointers.
9297 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
9299         * c-common.c: Use FOR_EACH_VEC_ELT.
9300         * c-gimplify.c: Likewise.
9301         * c-pragma.c: Likewise.
9303 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
9305         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
9306         RejectDriver.
9307         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
9308         RejectDriver.
9309         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
9310         instead of OPT_MDX and OPT_MMDX.
9312 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
9314         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
9316 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
9318         * c.opt (MD, MMD): Change to MDX and MMDX.
9319         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
9321 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
9323         * c-opts.c (c_common_handle_option): Call handle_generated_option
9324         instead of handle_option.
9326 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
9328         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
9329         (maybe_apply_renaming_pragma): Delete unneeded declarations.
9331 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
9333         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
9334         (pending_redefine_extname): Change type to a VEC.
9335         (add_to_renaming_pragma_list): Update for new type of
9336         pending_redefine_extname.
9337         (maybe_apply_renaming_pragma): Likewise.
9339 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
9341         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
9342         visited.
9343         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
9344         decide whether a type has already been declared/seen.
9345         Do not go to the original type.
9346         (dump_nested_types): New parameter forward.
9347         Generate forward declaration if needed and mark type as visited.
9348         (print_ada_declaration): Call dump_nested_types if not already done.
9349         Mark types as visited.
9351 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
9353         * c.opt (-print-pch-checksum): Remove option.
9354         * c-opts.c (c_common_handle_option): Don't handle
9355         OPT_print_pch_checksum.
9357 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
9359         * c-common.h (c_common_handle_option): Update prototype and return
9360         value type.
9361         * c-opts.c (c_common_handle_option): Update prototype and return
9362         value type.  Update calls to handle_option and
9363         enable_warning_as_error.
9365 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
9367         PR c/45079
9368         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
9370 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
9372         * c-common.h (c_common_missing_argument): Remove.
9373         * c-opts.c (c_common_missing_argument): Remove.
9374         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
9375         idirafter, imacros, include, isysroot, isystem, iquote): Add
9376         MissingArgError.
9377         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
9379 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
9381         * c-common.h (c_common_option_lang_mask,
9382         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
9383         New.
9384         (c_common_init_options): Update prototype.
9385         * c-opts.c (c_common_option_lang_mask): New.
9386         (c_common_initialize_diagnostics): Split out of
9387         c_common_init_options.
9388         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
9389         New.
9390         (c_common_init_options): Update prototype.  Use decoded options in
9391         search for -lang-asm.
9393 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
9395         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
9396         * c-format.c: Likewise.
9398 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9400         * c-common.h: Include diagnostic-core.h. Error if already
9401         included.
9402         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
9404 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9406         * c-common.c (IN_GCC_FRONTEND): Do not undef.
9407         Do not include expr.h
9408         (vector_mode_valid_p): Move here.
9410 2010-06-21  DJ Delorie  <dj@redhat.com>
9412         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
9413         allow these pragmas anywhere.
9415 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
9417         PR bootstrap/44509
9418         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
9419         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
9420         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
9421         ggc_strdup instead of xstrdup.
9423 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
9425         * c-cppbuiltin.c: Include cpp-id-data.h.
9426         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
9427         (lazy_hex_fp_value): New function.
9428         (builtin_define_with_hex_fp_value): Provide definitions lazily.
9430 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9432         * c-gimplify.c: Do not include tree-flow.h
9434 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
9436         PR other/44034
9437         * c-common.c: Rename targetm member:
9438         targetm.enum_va_list -> targetm.enum_va_list_p
9440 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
9442         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
9444 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
9446         * c-cppbuiltin.c: Do not include except.h.
9448 2010-06-24  Andi Kleen  <ak@linux.intel.com>
9450         * c-common.c (warn_for_omitted_condop): New.
9451         * c-common.h (warn_for_omitted_condop): Add prototype.
9453 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
9455         * c.opt (lang-objc): Remove.
9456         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
9458 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
9460         * c-opts.c: Include "tm_p.h".
9462 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
9464         * c-common.c (parse_optimize_options): Update call to
9465         decode_options.
9467 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
9469         * c-common.c (record_types_used_by_current_var_decl): Adjust for
9470         new type of types_used_by_cur_var_decl.
9472 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
9474         PR bootstrap/44512
9475         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
9476         for C++ standard compliance.
9478 2010-06-16  Jason Merrill  <jason@redhat.com>
9480         * c.opt: Add -Wnoexcept.
9482 2010-06-16  Richard Guenther  <rguenther@suse.de>
9484         PR c/44555
9485         * c-common.c (c_common_truthvalue_conversion): Remove
9486         premature and wrong optimization concering ADDR_EXPRs.
9488 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
9490         * c-ada-spec.c (dump_sloc): Remove column info.
9491         (is_simple_enum): New function.
9492         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
9493         enum types when relevant.
9495 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9497         * c-common.c (conversion_warning): Warn at expression
9498         location.
9500 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
9502         * c-opts.c (c_common_handle_option): Don't handle
9503         OPT_fshow_column.
9505 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9507         * c-pragma.c (push_alignment): Use typed GC allocation.
9508         (handle_pragma_push_options): Likewise.
9510         * c-common.c (parse_optimize_options): Likewise.
9512         * c-common.h (struct sorted_fields_type): Add variable_size GTY
9513         option.
9515 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
9517         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
9518         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
9519         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
9520         flag_signed_bitfields, warn_strict_null_sentinel,
9521         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
9522         flag_gen_declaration, flag_no_gnu_keywords,
9523         flag_implement_inlines, flag_implicit_templates,
9524         flag_implicit_inline_templates, flag_optional_diags,
9525         flag_elide_constructors, flag_default_inline, flag_rtti,
9526         flag_conserve_space, flag_access_control, flag_check_new,
9527         flag_new_for_scope, flag_weak, flag_working_directory,
9528         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
9529         flag_enforce_eh_specs, flag_threadsafe_statics,
9530         flag_pretty_templates): Remove.
9531         * c-common.h (flag_preprocess_only, flag_nil_receivers,
9532         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
9533         flag_replace_objc_classes, flag_undef, flag_no_builtin,
9534         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
9535         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
9536         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
9537         flag_no_gnu_keywords, flag_implement_inlines,
9538         flag_implicit_templates, flag_implicit_inline_templates,
9539         flag_optional_diags, flag_elide_constructors, flag_default_inline,
9540         flag_rtti, flag_conserve_space, flag_access_control,
9541         flag_check_new, flag_new_for_scope, flag_weak,
9542         flag_working_directory, flag_use_cxa_atexit,
9543         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
9544         flag_threadsafe_statics, flag_pretty_templates,
9545         warn_strict_null_sentinel): Remove.
9546         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
9547         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
9548         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
9549         fimplicit-inline-templates, fimplicit-templates,
9550         flax-vector-conversions, fms-extensions, fnil-receivers,
9551         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
9552         frtti, fshort-double, fshort-enums, fshort-wchar,
9553         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
9554         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
9555         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
9556         gen-decls, undef): Use Var.
9557         (fdefault-inline, foptional-diags): Document as doing nothing.
9558         * c-opts.c (c_common_handle_option): Remove cases for options now
9559         using Var.  Mark ignored options as such.
9561 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
9563         * c-common.c: Moved to here from parent directory.
9564         * c-common.def: Likewise.
9565         * c-common.h: Likewise.
9566         * c-cppbuiltin.c: Likewise.
9567         * c-dump.c: Likewise.
9568         * c-format.c: Likewise.
9569         * c-format.h : Likewise.
9570         * c-gimplify.c: Likewise.
9571         * c-lex.c: Likewise.
9572         * c-omp.c: Likewise.
9573         * c.opt: Likewise.
9574         * c-opts.c: Likewise.
9575         * c-pch.c: Likewise.
9576         * c-ppoutput.c: Likewise.
9577         * c-pragma.c: Likewise.
9578         * c-pragma.h: Likewise.
9579         * c-pretty-print.c: Likewise.
9580         * c-pretty-print.h: Likewise.
9581         * c-semantics.c: Likewise.
9582         * stub-objc.c: Likewise.
9584         * c-common.c: Include gt-c-family-c-common.h.
9585         * c-pragma.c: Include gt-c-family-c-pragma.h.
9587 Copyright (C) 2010-2018 Free Software Foundation, Inc.
9589 Copying and distribution of this file, with or without modification,
9590 are permitted in any medium without royalty provided the copyright
9591 notice and this notice are preserved.