[AArch64] Avoid GET_MODE_NUNITS in v8.4 support
[official-gcc.git] / gcc / c-family / ChangeLog
blob1e490afe3318845e4e457e949888a181f30efea5
1 2018-01-10  Eric Botcazou  <ebotcazou@adacore.com>
3         * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
4         Skip 'f' and 'F' characters if it is true.
5         (store_ada_macro): Minor tweak.
6         (dump_ada_macros) <CPP_COMMENT>: Likewise.
7         <CPP_WSTRING>: Likewise.
8         <CPP_STRING>: Output '&' in the buffer if not the first string.
9         <CPP_NUMBER>: Adjust calls to dump_number.
11 2018-01-10  David Malcolm  <dmalcolm@redhat.com>
13         PR c++/43486
14         * c-common.c: Include "selftest.h".
15         (get_atomic_generic_size): Perform the test for integral type
16         before the range test for any integer constant, fixing indentation
17         of braces.  Call fold_for_warn before testing for an INTEGER_CST.
18         (reject_gcc_builtin): Strip any location wrapper from EXPR.
19         (selftest::test_fold_for_warn): New function.
20         (selftest::c_common_c_tests): New function.
21         (selftest::c_family_tests): Call it, and
22         selftest::c_pretty_print_c_tests.
23         * c-common.h (selftest::c_pretty_print_c_tests): New decl.
24         * c-format.c (check_format_arg): Convert VAR_P check to a
25         fold_for_warn.
26         * c-pretty-print.c: Include "selftest.h".
27         (pp_c_cast_expression): Don't print casts for location wrappers.
28         (selftest::assert_c_pretty_printer_output): New function.
29         (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
30         (selftest::test_location_wrappers): New function.
31         (selftest::c_pretty_print_c_tests): New function.
32         * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
34 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
35             Alan Hayward  <alan.hayward@arm.com>
36             David Sherwood  <david.sherwood@arm.com>
38         * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
40 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
41             Alan Hayward  <alan.hayward@arm.com>
42             David Sherwood  <david.sherwood@arm.com>
44         * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
45         as polynomial.
47 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
48             Alan Hayward  <alan.hayward@arm.com>
49             David Sherwood  <david.sherwood@arm.com>
51         * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
52         (convert_vector_to_array_for_subscript): Handle polynomial
53         TYPE_VECTOR_SUBPARTS.
54         (c_common_type_for_mode): Check valid_vector_subparts_p.
55         * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
56         VECTOR_CST_NELTS.
58 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
60         Update copyright years.
62 2017-12-22  Mike Stump  <mikestump@comcast.net>
63             Eric Botcazou  <ebotcazou@adacore.com>
65         * c-pragma.c (init_pragma): Register pragma GCC unroll.
66         * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
68 2017-12-22  Alexandre Oliva <aoliva@redhat.com>
70         PR debug/83527
71         PR debug/83419
72         * c-semantics.c (only_debug_stmts_after_p): New.
73         (pop_stmt_list): Clear side effects in debug-only stmt list.
74         Check for single nondebug stmt followed by debug stmts only.
76 2017-12-21  Alexandre Oliva  <aoliva@redhat.com>
78         PR debug/83419
79         * c-semantics.c (pop_stmt_list): Propagate side effects from
80         single nondebug stmt to container list.
82 2017-12-19  Jakub Jelinek  <jakub@redhat.com>
84         * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
85         conditions with typical order conditions.
87 2017-12-18  Marek Polacek  <polacek@redhat.com>
89         * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
90         not in effect.
92 2017-12-17  Martin Sebor  <msebor@redhat.com>
94         * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
95         an error for attribute warn_if_not_aligned.
97 2017-12-16  Martin Sebor  <msebor@redhat.com>
99         PR tree-optimization/78918
100         * c-common.c (check_function_restrict): Avoid checking built-ins.
101         * c.opt (-Wrestrict): Include in -Wall.
103 2017-12-15  Jakub Jelinek  <jakub@redhat.com>
105         * c-attribs.c (c_common_attribute_table,
106         c_common_format_attribute_table): Swap affects_type_identity
107         and handler fields, adjust comments.
109 2017-12-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
111         * c.opt (Wcast-function-type): New warning option.
112         * c-lex.c (get_fileinfo): Avoid warning.
113         * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
115 2017-12-14  Qing Zhao  <qing.zhao@oracle.com>
117         PR middle_end/79538 
118         * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
119         Adjust the size of buf1 and buf2, add a new buf to avoid
120         format-overflow warning.
122 2017-12-12  Alexandre Oliva <aoliva@redhat.com>
124         * c-semantics.c (pop_stmt_list): Move begin stmt marker into
125         subsequent statement list.
127 2017-12-07  Martin Sebor  <msebor@redhat.com>
129         PR c/81544
130         PR c/81566
131         * c-attribs.c (attr_aligned_exclusions): New array.
132         (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
133         (attr_common_exclusions, attr_const_pure_exclusions): Same.
134         (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
135         (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
136         (attr_warn_unused_result_exclusions): Same.
137         (handle_hot_attribute, handle_cold_attribute): Simplify.
138         (handle_const_attribute): Warn on function returning void.
139         (handle_pure_attribute): Same.
140         (handle_aligned_attribute): Diagnose conflicting attribute
141         specifications.
142         * c-warn.c (diagnose_mismatched_attributes): Simplify.
144 2017-12-06  David Malcolm  <dmalcolm@redhat.com>
146         PR c/83236
147         * c-common.c (selftest::c_family_tests): Call
148         selftest::c_spellcheck_cc_tests.
149         * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
150         * c-spellcheck.cc: Include "selftest.h".
151         (name_reserved_for_implementation_p): New function.
152         (should_suggest_as_macro_p): New function.
153         (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
154         should_suggest_as_macro_p and call it.
155         (selftest::test_name_reserved_for_implementation_p): New function.
156         (selftest::c_spellcheck_cc_tests): New function.
157         * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
159 2017-12-06  David Malcolm  <dmalcolm@redhat.com>
161         * c-spellcheck.cc: New file, taken from macro-handling code in
162         spellcheck-tree.c.
163         * c-spellcheck.h: New file, taken from macro-handling code in
164         spellcheck-tree.h.
166 2017-12-01  Jakub Jelinek  <jakub@redhat.com>
168         * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
169         attribute.
170         (handle_simd_attribute): Don't check for "cilk simd function"
171         attribute.  Reindent, formatting changes.
173 2017-11-30  Julia Koval  <julia.koval@intel.com>
175         * c-common.h (inv_list): Remove.
177 2017-11-28  Jakub Jelinek  <jakub@redhat.com>
179         PR sanitizer/81275
180         * c-common.c (c_switch_covers_all_cases_p_1,
181         c_switch_covers_all_cases_p): New functions.
182         * c-common.h (c_switch_covers_all_cases_p): Declare.
184 2017-11-28  Julia Koval  <julia.koval@intel.com>
185             Sebastian Peryt  <sebastian.peryt@intel.com>
187         * array-notation-common.c: Delete.
188         * c-cilkplus.c: Ditto.
189         * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
190         * c-common.def (ARRAY_NOTATION_REF): Remove.
191         * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
192         build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
193         c_validate_cilk_plus_loop, cilkplus_an_parts,
194         cilk_ignorable_spawn_rhs_op,
195         cilk_recognize_spawn): Remove.
196         * c-gimplify.c (CILK_SPAWN_STMT): Remove.
197         * c-omp.c: Remove CILK_SIMD check.
198         * c-pragma.c: Ditto.
199         * c-pragma.h: Remove CILK related pragmas.
200         * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
201         ARRAY_NOTATION_REF condition.
202         (c_pretty_printer::expression): Ditto.
203         * c.opt (fcilkplus): Remove.
204         * cilk.c: Delete.
206 2017-11-21  Marc Glisse  <marc.glisse@inria.fr>
208         * c-pretty-print.c (pp_c_additive_expression,
209         c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
211 2017-11-21  Jakub Jelinek  <jakub@redhat.com>
213         * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
215         PR c++/83059
216         * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
217         instead of tree_to_uhwi, formatting fix.
219 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
221         PR c/81404
222         * known-headers.cc: New file, based on material from c/c-decl.c.
223         (suggest_missing_header): Copied as-is.
224         (get_stdlib_header_for_name): New, based on get_c_name_hint but
225         heavily edited to add C++ support.  Add some knowledge about
226         <limits.h>, <stdint.h>, and <wchar.h>.
227         * known-headers.h: Likewise.
229 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
231         * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
232         (lookup_name_fuzzy): Likewise.  Convert return type from
233         const char * to name_hint.  Add location_t param.
234         * name-hint.h: New header.
236 2017-11-19  Jakub Jelinek  <jakub@redhat.com>
238         PR c/66618
239         PR c/69960
240         * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
242 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
244         * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
245         expected publication date of C17.
246         (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
248 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
250         PR c/81156
251         * c-common.c (c_common_reswords): Add __builtin_tgmath.
252         * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
254 2017-11-10  Martin Sebor  <msebor@redhat.com>
256         PR c/81117
257         * c-common.c (catenate_strings): Use memcpy instead of strncpy.
258         * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
259         * c.opt (-Wstringop-truncation): New option.
261 2017-11-06  Martin Liska  <mliska@suse.cz>
263         PR middle-end/82404
264         * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
265         FE.
266         * c.opt: Set default value of warn_return_type.
268 2017-10-31  David Malcolm  <dmalcolm@redhat.com>
270         * c-common.c (binary_op_error): Update for renaming of
271         error_at_rich_loc.
272         (c_parse_error): Likewise.
273         * c-warn.c (warn_logical_not_parentheses): Likewise for
274         renaming of inform_at_rich_loc.
275         (warn_for_restrict): Likewise for renaming of
276         warning_at_rich_loc_n.
278 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
280         * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
281         * c-opts.c (set_std_c17): New function.
282         (c_common_init_options): Use gnu17 as default C version.
283         (c_common_handle_option): Handle -std=c17 and -std=gnu17.
285 2017-10-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
287         * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
288         (c_cpp_builtins): If a machine has a fast fma _Float<N> and
289         _Float<N>X variant, define __FP_FAST_FMA<N> and/or
290         __FP_FAST_FMA<N>X.
292 2017-10-23  Marek Polacek  <polacek@redhat.com>
294         PR c/82681
295         * c-warn.c (warnings_for_convert_and_check): Fix typos.
297 2017-10-19  Eric Botcazou  <ebotcazou@adacore.com>
299         * c-common.c (check_builtin_function_arguments): Also check arguments
300         of __builtin_alloca_with_align_and_max.
302 2017-10-17  David Malcolm  <dmalcolm@redhat.com>
304         * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
305         rather than NULL to format_warning_va.
306         (check_format_types): Likewise when calling format_type_warning.
307         Remove code to extract source_ranges and source_range * in favor
308         of just a location_t.
309         (format_type_warning): Convert source_range * param to a
310         location_t.
312 2017-10-13  Jakub Jelinek  <jakub@redhat.com>
314         * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
315         [LR]SHIFT_EXPR.
317 2017-10-12  David Malcolm  <dmalcolm@redhat.com>
319         * c-common.c (enum missing_token_insertion_kind): New enum.
320         (get_missing_token_insertion_kind): New function.
321         (maybe_suggest_missing_token_insertion): New function.
322         * c-common.h (maybe_suggest_missing_token_insertion): New decl.
324 2017-10-11  Nathan Sidwell  <nathan@acm.org>
326         * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
327         (c_common_handle_option): Update incpath_kind names.
329 2017-10-11  Martin Liska  <mliska@suse.cz>
331         PR sanitizer/82490
332         * c-attribs.c (handle_no_sanitize_attribute): Report directly
333         Wattributes warning.
335 2017-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
337         * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
338         operating on trees as wide_ints.
339         * c-common.c (pointer_int_sum): Likewise.
340         * c-pretty-print.c (pp_c_integer_constant): Likewise.
341         * c-warn.c (match_case_to_enum_1): Likewise.
342         (c_do_switch_warnings): Likewise.
343         (maybe_warn_shift_overflow): Likewise.
345 2017-10-10  Jakub Jelinek  <jakub@redhat.com>
347         PR c/82437
348         * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
349         instead of wide_int::from.
351 2017-10-06  Jakub Jelinek  <jakub@redhat.com>
353         PR c/82437
354         * c-warn.c (warn_tautological_bitwise_comparison): Instead of
355         using to_widest use wide_int with the larger of the two precisions.
357 2017-10-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
359         * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
360         functions.
362 2017-10-02  Richard Sandiford  <richard.sandiford@linaro.org>
364         * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
365         when combining the original unconverted comparison operands.
367 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
369         * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
370         attribute.
372 2017-09-29  Eric Botcazou  <ebotcazou@adacore.com>
374         * c-ada-spec.c (to_ada_name): Add index parameter.
375         (pp_ada_tree_identifier): Likewise.
376         (dump_ada_macros): Adjust call to to_ada_name.
377         (struct overloaded_name_hash): New type.
378         (struct overloaded_name_hasher): Likewise.
379         (overloaded_names): New hash table.
380         (compute_overloading_index): New function.
381         (dump_ada_decl_name): Call it and pass the result to
382         pp_ada_tree_identifier.
383         (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
384         (dump_ada_function_declaration): Likewise.
385         (dump_generic_ada_node): Likewise.
386         (print_constructor): Likewise.
387         (print_destructor): Likewise.
388         (dump_ada_specs): Delete overloaded_names table.
390 2017-09-29  Eric Botcazou  <ebotcazou@adacore.com>
392         * c-ada-spec.c (max_ada_macros): Move around.
393         (store_ada_macro_index): Likewise.
394         (source_file): Rename into...
395         (macro_source_file): ...this.
396         (count_ada_macro): Move around.
397         (store_ada_macro): Likewise.
398         (compare_macro): Likewise.
399         (print_ada_macros): Merge in...
400         (dump_ada_macros): ...this.
401         (source_file_base): Rename into...
402         (current_source_file): ...this.
403         (print_comment): Move around.
404         (dump_ada_nodes): Call dump_ada_declaration directly.
405         (struct with): Change type of limited field to bool.
406         (append_withs): Change type of limited_access parameter to bool.
407         (pp_ada_tree_identifie): Likewise.
408         (dump_ada_decl_nam): Likewise.
409         (dump_generic_ada_node): Likewise.  Do not print the return type.
410         (to_ada_name): Change type of space_found parameter to bool.
411         (dump_ada_function_declaration): Return void and change type of
412         parameters to bool.  Also print the return type for a function.
413         (print_ada_methods): Rename into...
414         (dump_ada_methods): ...this.
415         (print_ada_declaration): Rename into ...
416         (dump_ada_declaration): ...this.  Do not print the return type.
417         (print_ada_struct_decl): Rename into...
418         (dump_ada_struct_decl): ...this.
420 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
422         * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
423         rather than DECL_INITIAL.
424         (common_handle_aligned_attribute): Likewise.
426 2017-09-20  Alexandre Oliva <aoliva@redhat.com>
428         * c.opt (gen-decls): Add RejectNegative.
430 2017-09-15  Andrew Sutton  <andrew.n.sutton@gmail.com>
431             Jakub Jelinek  <jakub@redhat.com>
433         Add support for -std=c++2a.
434         * c-common.h (cxx_dialect): Add cxx2a as a dialect.
435         * opt.c: Add options for -std=c++2a and -std=gnu++2a.
436         * c-opts.c (set_std_cxx2a): New.
437         (c_common_handle_option): Set options when -std=c++2a is enabled.
438         (c_common_post_options): Adjust comments.
439         (set_std_cxx14, set_std_cxx17): Likewise.
441 2017-09-15  Eric Botcazou  <ebotcazou@adacore.com>
443         * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
444         message for non-uniform endianness and issue a warning in C++.
446 2017-09-15  Jakub Jelinek  <jakub@redhat.com>
448         * c.opt (Wc++1z-compat): Change from option to undocumented alias.
449         (Wc++17-compat): Change from undocumented alias to option.
450         (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
451         change C++1z to C++17 in description.
452         (std=c++1z, std=gnu++1z): Change from option to undocumented
453         deprecated alias.
454         (std=c++17, std=gnu++17): Change from undocumented alias to option.
455         Adjust description.
456         * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
457         * c-opts.c (set_std_cxx1z): Rename to ...
458         (set_std_cxx17): ... this.
459         (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
460         and OPT_std_gnu__1z to OPT_std_gnu__17.  Adjust set_std_cxx1z
461         caller.  
462         (c_common_post_options): Use cxx17 instead of cxx1z.  Adjust
463         comments.
465 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
467         * c-attribs.c (common_handle_aligned_attribute): Don't warn
468         function alignment if warn_if_not_aligned_p is true.
470 2017-09-12  Nathan Sidwell  <nathan@acm.org>
472         * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
473         resort_sorted_fields): Move to c/c-decl.c.
474         * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
475         (struct sorted_fields_type): Move to c/c-lang.h.
477 2017-09-09  Jonathan Wakely  <jwakely@redhat.com>
479         PR c++/81852
480         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
482 2017-09-04  Marek Polacek  <polacek@redhat.com>
484         PR c/81783
485         * c-warn.c (warn_tautological_bitwise_comparison): New function.
486         (warn_tautological_cmp): Call it.
488 2017-09-01  Boris Kolpackov <boris@codesynthesis.com>
490         * c-opts.c (c_common_finish): Write dependency information even if
491         there are errors.
493 2017-09-01  Jakub Jelinek  <jakub@redhat.com>
495         PR c/81887
496         * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
497         (omp_pragmas_simd): ... here.
498         * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
499         create new clauses list containing just simd clause.
501 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
502             Alan Hayward  <alan.hayward@arm.com>
503             David Sherwood  <david.sherwood@arm.com>
505         * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
506         into scalar_mode_supported_p call.
507         (handle_mode_attribute): Update call to scalar_mode_supported_p.
509 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
510             Alan Hayward  <alan.hayward@arm.com>
511             David Sherwood  <david.sherwood@arm.com>
513         * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
514         for the mode iterator.
516 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
517             Alan Hayward  <alan.hayward@arm.com>
518             David Sherwood  <david.sherwood@arm.com>
520         * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
521         * c-common.c (c_build_vec_perm_expr): Likewise.
523 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
524             Alan Hayward  <alan.hayward@arm.com>
525             David Sherwood  <david.sherwood@arm.com>
527         * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
529 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
530             Alan Hayward  <alan.hayward@arm.com>
531             David Sherwood  <david.sherwood@arm.com>
533         * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
534         before calling targetm.addr_space.valid_pointer_mode.
536 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
537             Alan Hayward  <alan.hayward@arm.com>
538             David Sherwood  <david.sherwood@arm.com>
540         * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
542 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
543             Alan Hayward  <alan.hayward@arm.com>
544             David Sherwood  <david.sherwood@arm.com>
546         * c-common.c (c_common_fixed_point_type_for_size): Use new mode
547         iterators.
548         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
550 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
551             Alan Hayward  <alan.hayward@arm.com>
552             David Sherwood  <david.sherwood@arm.com>
554         * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
555         case statements.
557 2017-08-29  Martin Liska  <mliska@suse.cz>
559         PR other/39851
560         * c-common.c (parse_optimize_options): Add argument to function
561         call.
562         * c-pragma.c (handle_pragma_diagnostic): Likewise.
564 2017-08-24  David Malcolm  <dmalcolm@redhat.com>
566         * c-lex.c (interpret_float): Use token location
567         when building an EXCESS_PRECISION_EXPR.
569 2017-08-21  David Malcolm  <dmalcolm@redhat.com>
571         * c-common.c (check_function_arguments): Add "arglogs" param; pass
572         it to check_function_format.
573         * c-common.h (check_function_arguments): Add vec<location_t> *
574         param.
575         (check_function_format): Likewise.
576         * c-format.c (struct format_check_context): Add field "arglocs".
577         (check_function_format): Add param "arglocs"; pass it to
578         check_format_info.
579         (check_format_info):  Add param "arglocs"; use it to initialize
580         new field of format_ctx.
581         (check_format_arg): Pass format_ctx->arglocs to new param of
582         check_format_info_main.
583         (class argument_parser): New field "arglocs".
584         (argument_parser::argument_parser): Add "arglocs_" param and use
585         it to initialize new field.
586         (argument_parser::check_argument_type): Pass new arglocs field to
587         check_format_types.
588         (check_format_info_main): Add param "arglocs", and use it when
589         constructing arg_parser.
590         (check_format_types): Add param "arglocs"; use it if non-NULL when
591         !EXPR_HAS_LOCATION (cur_param) to get at location information.
593 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
595         PR c/53037
596         * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
597         (c_common_attribute_table): Add warn_if_not_aligned.
598         (handle_aligned_attribute): Renamed to ...
599         (common_handle_aligned_attribute): Remove argument, name, and add
600         argument, warn_if_not_aligned.  Handle warn_if_not_aligned.
601         (handle_aligned_attribute): New.
602         * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
604 2017-08-14  Martin Sebor  <msebor@redhat.com>
606         PR c/81117
607         * c-attribs.c (c_common_attribute_table): Add nonstring entry.
608         (handle_nonstring_attribute): New function.
610 2017-08-14  Martin Sebor  <msebor@redhat.com>
612         PR c/81117
613         * c-format.h (T89_G): New macro.
614         * c-format.c (local_gcall_ptr_node): New variable.
615         (init_dynamic_diag_info): Initialize it.
617 2017-08-11  Martin Liska  <mliska@suse.cz>
619         * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
620         TARGET_SUPPORTS_ALIASES.
622 2017-08-10  David Malcolm  <dmalcolm@redhat.com>
624         * c-common.c (c_parse_error): Add rich_location * param, using it
625         rather implicitly using input_location.
626         * c-common.h (c_parse_error): Add rich_location * param.
628 2017-08-09  Marek Polacek  <polacek@redhat.com>
630         * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
631         (c_common_truthvalue_conversion): Likewise.
632         * c-omp.c (c_finish_omp_atomic): Likewise.
633         * c-common.h (build_binary_op): Update declaration.
635 2017-08-08  Martin Liska  <mliska@suse.cz>
637         * c-ada-spec.c: Include header files.
638         * c-ubsan.c: Likewise.
639         * c-warn.c: Likewise.
641 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
643         PR c/69389
644         * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
646 2017-08-07  Eric Botcazou  <ebotcazou@adacore.com>
648         * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
649         (print_ada_methods): Likewise.
650         (print_ada_declaration): Likewise.
652 2017-08-07  Martin Liska  <mliska@suse.cz>
654         * array-notation-common.c: Add new includes.
655         * c-format.c( handle_format_attribute): Canonicalize a format
656         function name.
657         * c-lex.c (c_common_has_attribute): Canonicalize name of an
658         attribute.
659         * c-pretty-print.c: Add new include.
661 2017-08-05  Eric Botcazou  <ebotcazou@adacore.com>
663         * c-ada-spec.c (has_static_fields): Look only into variables.
664         (print_constructor): Add TYPE parameter and use it for the name.
665         (print_destructor): Likewise.
666         (print_ada_declaration): Adjust to new constructor/destructor names.
667         Adjust calls to print_constructor and print_destructor.
668         (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
669         Look only into variables in the final loop.
671 2017-08-01  Eric Botcazou  <ebotcazou@adacore.com>
673         * c-ada-spec.c (has_static_fields): Look only into fields.
674         (dump_generic_ada_node): Small tweak.
675         (dump_nested_types): Look only into fields.
676         (print_ada_declaration): Look only into methods.  Small tweak.
677         (print_ada_struct_decl): Look only into fields.  Use DECL_VIRTUAL_P.
679 2017-08-01  Eric Botcazou  <ebotcazou@adacore.com>
681         * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
682         (dump_ada_function_declaration): Likewise.
683         (dump_generic_ada_node): Likewise.
684         (print_ada_declaration): Add support for const-qualified variables.
686 2017-07-31  Martin Liska  <mliska@suse.cz>
688         PR sanitize/81530
689         * c-ubsan.c (ubsan_maybe_instrument_array_ref):
690         Guard condition with flag_sanitize_p also with current_function_decl
691         non-null equality.
692         (ubsan_maybe_instrument_reference_or_call): Likewise.
694 2017-07-30  Uros Bizjak  <ubizjak@gmail.com>
696         * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
698 2017-07-29  Eric Botcazou  <ebotcazou@adacore.com>
700         * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
701         for enumeral types.
702         (print_ada_declaration): Add missing guard for record types.
704 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
706         PR c/45784
707         * c-omp.c (c_finish_omp_for): If the condition is wrapped in
708         rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
709         new COMPOUND_EXPRs around the rhs of the comparison.
711 2017-07-27  Marek Polacek  <polacek@redhat.com>
713         PR c/81417
714         * c-warn.c (warn_for_sign_compare): Tweak the warning message.  Print
715         the types.
717 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
719         * c-attribs.c (c_common_attribute_table): Add noipa attribute.
720         (handle_noipa_attribute): New function.
722 2017-07-07  Torsten Duwe  <duwe@suse.de>
724         * c-attribs.c (c_common_attribute_table): Add entry for
725         "patchable_function_entry".
727 2017-07-20  Nathan Sidwell  <nathan@acm.org>
729         Remove TYPE_METHODS.
730         * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
731         dump_ada_template, print_ada_methods,
732         print_ada_declaration): Member fns are on TYPE_FIELDS.
734 2017-07-18  Nathan Sidwell  <nathan@acm.org>
736         * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
738 2017-07-14  David Malcolm  <dmalcolm@redhat.com>
740         * c-common.c (try_to_locate_new_include_insertion_point): New
741         function.
742         (per_file_includes_t): New typedef.
743         (added_includes_t): New typedef.
744         (added_includes): New variable.
745         (maybe_add_include_fixit): New function.
746         * c-common.h (maybe_add_include_fixit): New decl.
748 2017-07-10  Martin Sebor  <msebor@redhat.com>
750         PR other/81345
751         * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
753 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
755         * c-common.c (selftest::c_family_tests): New.
756         * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
757         (selftest::c_family_tests): New decl.
759 2017-07-04  Marek Polacek  <polacek@redhat.com>
761         PR c/81231
762         * c-common.c (sync_resolve_size): Give error for pointers to incomplete
763         types.
765 2017-07-04  Marek Polacek  <polacek@redhat.com>
767         * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
769 2017-06-28  Martin Liska  <mliska@suse.cz>
771         PR ipa/81128
772         * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
773         to a function declaration.
775 2017-06-28  Martin Liska  <mliska@suse.cz>
777         PR driver/79659
778         * c.opt: Add IntegerRange to various options.
780 2017-06-26  Marek Polacek  <polacek@redhat.com>
782         PR c/80116
783         * c-common.h (warn_for_multistatement_macros): Declare.
784         * c-warn.c: Include "c-family/c-indentation.h".
785         (warn_for_multistatement_macros): New function.
786         * c.opt (Wmultistatement-macros): New option.
787         * c-indentation.c (guard_tinfo_to_string): No longer static.
788         Change the parameter type to "enum rid".  Handle RID_SWITCH.
789         * c-indentation.h (guard_tinfo_to_string): Declare.
791 2017-06-23  Marc Glisse  <marc.glisse@inria.fr>
793         * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
795 2017-06-15  Martin Sebor  <msebor@redhat.com>
797         PR c++/80560
798         * c.opt (-Wclass-memaccess): New option.
800 2017-06-14  Boris Kolpackov  <boris@codesynthesis.com>
802         * c-opts.c (c_common_finish): Handle '-' special value to -MF.
804 2017-06-13  Marek Polacek  <polacek@redhat.com>
806         PR objc/80949
807         * c-warn.c (do_warn_duplicated_branches): Return if any of the
808         branches is null.
810 2017-06-13  Martin Liska  <mliska@suse.cz>
812         PR sanitize/78204
813         * c-attribs.c (add_no_sanitize_value): New function.
814         (handle_no_sanitize_attribute): Likewise.
815         (handle_no_sanitize_address_attribute): Use the function.
816         (handle_no_sanitize_thread_attribute): New function.
817         (handle_no_address_safety_analysis_attribute): Use
818         add_no_sanitize_value.
819         (handle_no_sanitize_undefined_attribute): Likewise.
820         * c-common.h: Declare new functions.
821         * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
822         (ubsan_instrument_shift): Likewise.
823         (ubsan_instrument_bounds): Likewise.
824         (ubsan_maybe_instrument_array_ref): Likewise.
825         (ubsan_maybe_instrument_reference_or_call): Likewise.
827 2017-06-11  Jason Merrill  <jason@redhat.com>
829         * c-ada-spec.c, c-pragma.c: Use id_equal.
831 2017-06-04  Marek Polacek  <polacek@redhat.com>
833         PR c/80919
834         * c-format.c (matching_type_p): Return false if any of the types
835         requires structural equality.
837 2017-06-02  Martin Sebor  <msebor@redhat.com>
839         PR c/80892
840         * c-warn.c (conversion_warning): Use -Wconversion for integer
841         conversion and -Wfloat-conversion for floating one.
843 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
845         * c.opt (Wsizeof-pointer-div): New warning option.
847 2017-06-01  Volker Reichelt  <v.reichelt@netcologne.de>
849         * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
850         (Wcatch-value=1): Enable by -Wall.
852 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
854         * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
855         format_chars.
856         * c.opt (fdiagnostics-show-template-tree): New option.
857         (felide-type): New option.
859 2017-05-25  Volker Reichelt  <v.reichelt@netcologne.de>
861         * c.opt (Wcatch-value=): New C++ warning flag.
863 2017-05-24  Nathan Sidwell  <nathan@acm.org>
865         * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
866         const casts to avoid warning.
868 2017-05-24  Martin Sebor  <msebor@redhat.com>
870         PR c/80731
871         * c-common.h (unsafe_conversion_p): Add a function argument.
872         * c-common.c (unsafe_conversion_p): Same.
873         Add type names and values to diagnostics.
874         (scalar_to_vector): Adjust.
875         * c-warn.c (constant_expression_error): Add a function argument.
876         Add type names and values to diagnostics.
877         (conversion_warning): Add a function argument.
878         Add type names and values to diagnostics.
879         (warnings_for_convert_and_check): Same.
881 2017-05-19  Jason Merrill  <jason@redhat.com>
883         * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
884         enumerators.
886 2017-05-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
888         * c-format.c (locus): Move out of function scope,
889         add GTY attribute.
891 2017-05-19  Nathan Sidwell  <nathan@acm.org>
893         * c-opts.c (class_dump_file, class_dump_flags): Delete.
894         (c_common_parse_file): Remove class dump handling.
895         (get_dump_info): Likewise.
897 2017-05-19  Richard Biener  <rguenther@suse.de>
899         PR c++/80593
900         * c-warn.c (strict_aliasing_warning): Do not warn for accesses
901         to alias-set zero memory.
903 2017-05-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
905         * c-format.c (local_tree_type_node): Add GTY attribute.
907 2017-05-18  Marek Polacek  <polacek@redhat.com>
909         * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
910         (c_common_fixed_point_type_for_size): Likewise.
911         (c_common_type_for_mode): Likewise.
912         (shorten_compare): Likewise.
913         (c_promoting_integer_type_p): Use false/true instead of 0/1.
914         * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
916 2017-05-18  Marek Polacek  <polacek@redhat.com>
918         * c-common.c (self_promoting_args_p): Change the return type to bool.
919         Use false/true instead of 0/1.
920         * c-common.h (self_promoting_args_p): Update.
922 2017-05-17  Marek Polacek  <polacek@redhat.com>
924         * c-common.c: Use NULL_TREE instead of 0 where appropriate.
925         * c-warn.c: Likewise.
927 2017-05-17  Ville Voutilainen  <ville.voutilainen@gmail.com>
929         Implement new C++ intrinsics __is_assignable and __is_constructible.
930         * c-common.c (__is_assignable, __is_constructible): New.
931         * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
933 2017-05-17  Martin Liska  <mliska@suse.cz>
935         * c-common.h: Introduce dump_flags_t type and
936         use it instead of int type.
937         * c-gimplify.c (c_genericize): Likewise.
938         * c-opts.c: Likewise.
940 2017-05-17  Marek Polacek  <polacek@redhat.com>
942         * c-common.c (c_save_expr): Remove.
943         (c_common_truthvalue_conversion): Remove a call to c_save_expr.
944         * c-common.h (c_save_expr): Remove declaration.
946 2017-05-09  Volker Reichelt  <v.reichelt@netcologne.de>
948         PR c/35441
949         * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
950         MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
951         (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
952         (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
953         RDIV_EXPR.
954         (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
956 2017-05-09  Marek Polacek  <polacek@redhat.com>
958         PR c/80525
959         * c-warn.c (unwrap_c_maybe_const): New.
960         (warn_logical_operator): Call it.
962 2017-05-09  Nathan Sidwell  <nathan@acm.org>
964         * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
965         * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
967 2017-05-08  Martin Sebor  <msebor@redhat.com>
969         PR translation/80280
970         * c-format.h (struct format_flag_spec): Add new member.
971         (T89_T): New macro.
972         * c-format.c (local_tree_type_node): New global.
973         (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
974         (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
975         (strfmon_flag_specs): Likewise.
976         (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
977         with distinct quoting properties.
978         (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
979         (flag_chars_t::validate): Add argument and handle bad quoting.
980         (check_format_info_main): Handle quoting problems.
981         (init_dynamic_diag_info): Simplify.
983 2017-05-08  Jason Merrill  <jason@redhat.com>
985         * c-opts.c (c_common_post_options): Update defaults for
986         flag_abi_version and flag_abi_compat_version.
988 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
990         * c-common.c (c_cpp_error): Replace report_diagnostic
991         with diagnostic_report_diagnostic.
993 2017-05-04  Martin Sebor  <msebor@redhat.com>
995         PR translation/80280
996         * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
997         (handle_weakref_attribute): Same.
999 2017-05-03  Nathan Sidwell  <nathan@acm.org>
1001         Canonicalize canonical type hashing
1002         * c-common.c (complete_array_type): Use type_hash_canon.
1004 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
1006         PR c++/80038
1007         * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
1008         prototype.
1009         (cilk_install_body_pedigree_operations): Likewise.
1010         * cilk.c (cilk_set_spawn_marker): Mark functions that should be
1011         detatched.
1012         (cilk_gimplify_call_params_in_spawned_fn): Remove.
1013         (cilk_install_body_pedigree_operations): Likewise.
1014         (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
1015         unwrapping.
1017 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
1019         PR c++/80534
1020         * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
1021         flag on non-aggregate element types.
1023 2017-04-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1025         * c-common.c (c_type_hasher, type_hash_table): Remove.
1026         (c_common_get_alias_set): Remove unreachable code.
1027         * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
1029 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
1031         * c.opt (Wextra-semi): New C++ warning flag.
1033 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
1035         PR middle-end/80423
1036         * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
1038 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
1040         PR middle-end/79788
1041         PR middle-end/80375
1042         * c-common.c (c_common_type_for_mode): Don't handle
1043         widest_*_literal_type_node here.
1044         c_common_signed_or_unsigned_type): Likewise.
1045         (c_common_nodes_and_builtins): Set widest_*_literal_type_node
1046         to *intTI_type_node or *intDI_type_node depending on whether
1047         TImode is supported by the target or not.
1049 2017-04-10  Martin Liska  <mliska@suse.cz>
1051         PR sanitizer/80350
1052         * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
1053         doing an UBSAN check.
1055 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
1057         * c-warn.c (do_warn_double_promotion): Fix typo in comment.
1059 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
1061         PR c++/79572
1062         * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
1063         tree *.
1064         * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise.  Handle
1065         not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
1066         REFERENCE_TYPE.
1068 2017-03-31  David Malcolm  <dmalcolm@redhat.com>
1070         PR documentation/78732
1071         * c.opt (Wendif-labels): Fix description to refer to
1072         #else rather than #elif.
1074 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
1076         PR libstdc++/80251
1077         * c-common.h (enum rid): Add RID_IS_AGGREGATE.
1078         * c-common.c (c_common_reswords): Add __is_aggregate trait.
1080 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
1082         PR middle-end/80162
1083         * c-common.c (c_common_mark_addressable_vec): Don't set
1084         TREE_ADDRESSABLE on DECL_HARD_REGISTER.
1086 2017-03-21  Martin Sebor  <msebor@redhat.com>
1088         PR c++/79548
1089         * c-common.c (set_underlying_type): Mark type used only when
1090         original del is declared unused.
1092 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
1094         PR translation/79848
1095         * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
1096         "%qs".
1098 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
1100         PR c/79921
1101         * c-indentation.c (warn_for_misleading_indentation): Remove parens
1102         from inform's message, so that xgettext can locate it.
1104 2017-03-09  Marek Polacek  <polacek@redhat.com>
1106         PR c++/79962
1107         PR c++/79984
1108         * c-attribs.c (handle_nonnull_attribute): Save the result of default
1109         conversion to the attribute list.
1111 2017-03-09  Martin Liska  <mliska@suse.cz>
1113         * c-ada-spec.c (macro_length): Increment value instead of a pointer.
1115 2017-03-03  Jason Merrill  <jason@redhat.com>
1117         * c.opt (Wnoexcept-type): New.
1119 2017-03-02  Richard Biener  <rguenther@suse.de>
1121         PR c/79756
1122         * c-common.c (c_common_mark_addressable_vec): Look through
1123         C_MAYBE_CONST_EXPR.
1125 2017-02-28  Martin Liska  <mliska@suse.cz>
1127         * c.opt: Replace space with tabular for options of <number>
1128         type.
1130 2017-02-28  Martin Liska  <mliska@suse.cz>
1132         * c.opt: Fix --help=option -Q for options which are of
1133         an enum type.
1135 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
1137         PR c++/79588
1138         * c-common.c (check_function_restrict): New function.
1139         (check_function_arguments): Add FNDECL argument.  Call
1140         check_function_restrict if -Wrestrict.
1141         * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
1142         and NARGS.  Use auto_vec for ARG_POSITIONS, simplify.
1143         * c-common.h (check_function_arguments): Add FNDECL argument.
1144         (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
1146 2017-02-24  Eric Botcazou  <ebotcazou@adacore.com>
1148         * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
1149         treatment of parameters with pointer-to-tagged type and tidy up.
1150         (print_ada_methods): Remove the special treatment of C++ static member
1151         functions.
1153 2017-02-22  Martin Liska  <mliska@suse.cz>
1155         * c.opt: Replace inequality signs with square brackets
1156         for -Wnornalized.
1158 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
1160         PR c++/79641
1161         * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
1162         preserve quals.
1164 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
1166         * c-cppbuiltin.c (builtin_define_float_constants): Define
1167         __DECIMAL_DIG__ to the value for long double.
1169 2017-02-15  Marek Polacek  <polacek@redhat.com>
1171         PR c/79515
1172         * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
1173         conversion has occured.
1175 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
1177         * c-common.c (c_common_reswords): Add "__RTL".
1178         * c-common.h (enum rid): Add RID_RTL.
1180 2017-01-20  Marek Polacek  <polacek@redhat.com>
1182         PR c/64279
1183         * c-common.h (do_warn_duplicated_branches_r): Declare.
1184         * c-gimplify.c (c_genericize): Walk the function tree calling
1185         do_warn_duplicated_branches_r.
1186         * c-warn.c (expr_from_macro_expansion_r): New.
1187         (do_warn_duplicated_branches): New.
1188         (do_warn_duplicated_branches_r): New.
1189         * c.opt (Wduplicated-branches): New option.
1191 2017-01-17  David Malcolm  <dmalcolm@redhat.com>
1193         PR c++/71497
1194         * c-indentation.c (warn_for_misleading_indentation): Use the past
1195         subjunctive in the note.
1197 2017-01-17  Aldy Hernandez  <aldyh@redhat.com>
1199         PR c/79116
1200         * array-notation-common.c (cilkplus_extract_an_triplets): Convert
1201         start type to integer_type.
1203 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
1205         PR driver/49726
1206         * c.opt (gen-decls): Add Driver flag.
1208 2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
1210         Revert:
1211         2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
1213         PR c++/71737
1214         * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
1216 2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
1218         PR c++/71737
1219         * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
1221 2017-01-12  Martin Sebor  <msebor@redhat.com>
1223         (-Wformat-overflow): ...to this.
1225 2017-01-11  Martin Sebor  <msebor@redhat.com>
1227         PR c/78768
1228         * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
1229         Also enable for LTO.
1231 2017-01-10  Jason Merrill  <jason@redhat.com>
1233         Implement P0195R2, C++17 variadic using.
1234         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
1236 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
1238         PR translation/79019
1239         PR translation/79020
1240         * c.opt (Wnormalized=): Fix typo in description.
1242 2017-01-08  Martin Sebor  <msebor@redhat.com>
1244         PR middle-end/77708
1245         * c.opt (-Wformat-truncation): New option.
1247 2017-01-06  Alexandre Oliva <aoliva@redhat.com>
1249         * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
1250         value to unsigned short to fit in 4 hex digits without
1251         warnings.
1253 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
1255         * c.opt (fsso-struct): Add 'native' value.
1257 2017-01-05  Martin Liska  <mliska@suse.cz>
1259         PR pch/78970
1260         * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
1261         header.
1263 2017-01-04  Marek Polacek  <polacek@redhat.com>
1265         PR c++/64767
1266         * c.opt (Wpointer-compare): New option.
1268 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
1270         PR driver/78957
1271         * c.opt (fsso-struct=): Add RejectNegative.
1273 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
1275         Update copyright years.
1277 2016-12-29  Martin Liska  <mliska@suse.cz>
1279         PR c/78933
1280         * c.opt (strong-eval-order): Add RejectNegative keyword.
1282 2016-12-22  Jason Merrill  <jason@redhat.com>
1284         Implement P0522R0, matching of template template arguments.
1285         * c-cppbuiltin.c (c_cpp_builtins): Define
1286         __cpp_template_template_args.
1288 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
1290         PR bootstrap/78817
1291         * c-common.c (struct nonnull_arg_ctx): New type.
1292         (check_function_nonnull): Return bool instead of void.  Use
1293         nonnull_arg_ctx as context rather than just location_t.
1294         (check_nonnull_arg): Adjust for the new context type, set
1295         warned_p to true if a warning has been diagnosed.
1296         (check_function_arguments): Return bool instead of void.
1297         * c-common.h (check_function_arguments): Adjust prototype.
1299 2016-12-21  Jason Merrill  <jason@redhat.com>
1301         * c.opt (-fnew-ttp-matching): New flag.
1302         * c-opts.c (c_common_post_options): Default on if -std=c++1z.
1304 2016-12-14  Martin Jambor  <mjambor@suse.cz>
1306         * c-omp.c: Include omp-general.h instead of omp-low.h.
1307         (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
1308         name.
1310 2016-12-14  Martin Sebor  <msebor@redhat.com>
1312         PR c/17308
1313         * c-common.c (check_nonnull_arg): Disable when optimization
1314         is enabled.
1316 2016-12-12  Marek Polacek  <polacek@redhat.com>
1318         PR c++/78647
1319         * c-common.c (attribute_fallthrough_p): Return false for
1320         error_mark_node.
1322 2016-12-08  Martin Sebor  <msebor@redhat.com>
1324         PR c/78284
1325         * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
1327 2016-12-08  Martin Sebor  <msebor@redhat.com>
1329         PR c/78165
1330         * c-pretty-print (pp_c_integer_constant): Avoid formatting type
1331         suffix.
1333 2016-12-07  Martin Sebor  <msebor@redhat.com>
1335         PR c/53562
1336         PR middle-end/77784
1337         PR middle-end/78149
1338         PR middle-end/78138
1339         * c.opt (-Wstringop-overflow): New option.
1341 2016-12-02  Maxim Ostapenko  <m.ostapenko@samsung.com>
1343         * c-attribs.c (asan odr indicator): New attribute.
1344         (handle_asan_odr_indicator_attribute): New function.
1346 2016-11-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1348         * c-common.c (c_common_nodes_and_builtins): Remove initialization of
1349         ptrdiff_type_node;
1351 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
1353         * c-common.c (excess_precision_mode_join): New.
1354         (c_ts18661_flt_eval_method): New.
1355         (c_c11_flt_eval_method): Likewise.
1356         (c_flt_eval_method): Likewise.
1357         * c-common.h (excess_precision_mode_join): New.
1358         (c_flt_eval_method): Likewise.
1359         * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
1360         (cpp_iec_559_value): Call it.
1361         (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
1362         call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
1363         __FLT_EVAL_METHOD_TS_18661_3__.
1365 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
1367         * c-opts.c (c_common_post_options): Add logic to handle the default
1368         case for -fpermitted-flt-eval-methods.
1370 2016-11-23  Paolo Bonzini  <bonzini@gnu.org>
1372         * c.opt (Wexpansion-to-defined): New.
1374 2016-11-23  Jakub Jelinek  <jakub@redhat.com>
1376         PR target/78451
1377         * c-pragma.c (handle_pragma_target): Don't replace
1378         current_target_pragma, but chainon the new args to the current one.
1380 2016-11-22  Nathan Sidwell  <nathan@acm.org>
1382         * array-notation-common.c (cilkplus_extract_an_trplets): Fix
1383         indentation and formatting.
1385 2016-11-21  Martin Sebor  <msebor@redhat.com>
1387         * c.opt (-fprintf-return-value): Enable by default.
1389 2016-11-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1391         PR c++/71973
1392         * c.opt (-Wbuiltin-declaration-mismatch): New warning.
1393         * c-common.c (c_common_nodes_and_builtins): Initialize
1394         const_tm_ptr_type_node.
1396 2016-11-16  Marek Polacek  <polacek@redhat.com>
1398         PR c/78285
1399         * c-common.c (c_add_case_label): Turn error_at calls into inform.
1401 2016-11-14  Jakub Jelinek  <jakub@redhat.com>
1403         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
1405 2016-11-14  Prasad Ghangal  <prasad.ghangal@gmail.com>
1406             Richard Biener  <rguenther@suse.de>
1408         * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
1409         * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
1410         * c.opt (fgimple): New option.
1412 2016-11-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1414         PR c/35503
1415         * c-common.h (warn_for_restrict): Declare.
1416         * c-warn.c: Include gcc-rich-location.h.
1417         (warn_for_restrict): New function.
1418         * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
1419         (gcc_cdiag_char_table): Likewise.
1420         (gcc_cxxdiag_char_table): Likewise.
1421         * c.opt (Wrestrict): New option.
1423 2016-11-13  Eric Botcazou  <ebotcazou@adacore.com>
1425         * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
1426         for nested types only if the type is a record or union and dump SLOC.
1428 2016-11-09  Jason Merrill  <jason@redhat.com>
1430         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
1432 2016-11-09  Jakub Jelinek  <jakub@redhat.com>
1434         * c-ubsan.c (ubsan_instrument_shift): Handle split
1435         -fsanitize=shift-base and -fsanitize=shift-exponent.
1437 2016-11-07  Jason Merrill  <jason@redhat.com>
1439         * c.opt (Wc++1z-compat): New.
1440         * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
1442 2016-11-07  Martin Liska  <mliska@suse.cz>
1444         * c-warn.c (warn_for_unused_label): Save all labels used
1445         in goto or in &label.
1447 2016-11-03  Jason Merrill  <jason@redhat.com>
1449         * c-cppbuiltin.c (c_cpp_builtins): Correct
1450         __cpp_inheriting_constructors.
1452 2016-11-01  Jason Merrill  <jason@redhat.com>
1454         * c-cppbuiltin.c (c_cpp_builtins): Update
1455         __cpp_inheriting_constructors.
1457         * c.opt (-fnew-inheriting-ctors): New.
1458         * c-opts.c: Default to on for ABI 11+.
1460 2016-10-31  Jakub Jelinek  <jakub@redhat.com>
1462         PR c++/77948
1463         * c.opt (fext-numeric-literals): Add Var and Init.
1464         * c-opts.c (c_common_handle_option): Don't clear
1465         cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
1466         (c_common_post_options): Clear it here if not set
1467         explicitly.
1469 2016-10-28  Aldy Hernandez  <aldyh@redhat.com>
1471         PR debug/77773
1472         * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
1473         if NULL.
1475 2016-10-25  Jakub Jelinek  <jakub@redhat.com>
1477         * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
1478         * c-common.c (c_common_reswords): Add __builtin_launder.
1480 2016-10-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1482         * c-common.c (c_common_truthvalue_conversion): Warn for
1483         multiplications in boolean context.  Fix the quoting of '<<' and '<'
1484         in the shift warning.
1486 2016-10-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1488         * c-common.c (c_common_truthvalue_conversion): Fix the comment.
1490 2016-10-20  Jason Merrill  <jason@redhat.com>
1492         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
1494 2016-10-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1496         * c-common.c (c_common_truthvalue_conversion): Warn only for signed
1497         integer shift ops in boolean context.
1499 2016-10-18  Aldy Hernandez  <aldyh@redhat.com>
1501         * c.opt (Walloca): New.
1502         (Walloca-larger-than=): New.
1503         (Wvla-larger-than=): New.
1505 2016-10-17  Marek Polacek  <polacek@redhat.com>
1507         * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
1508         Return immediately when finding a match.
1509         (warn_tautological_cmp): Remove a boolean variable that is no longer
1510         needed.
1512 2016-10-17  Marek Polacek  <polacek@redhat.com>
1514         * c-attribs.c: New file.
1515         * c-common.c: Move attributes handling to c-attribs.c.
1516         (get_nonnull_operand): No longer static.
1517         * c-common.h: Move the declarations from c-attribs.c to its own section.
1519 2016-10-14  Jason Merrill  <jason@redhat.com>
1521         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
1522         and __cpp_deduction_guides.
1524 2016-10-13  Jason Merrill  <jason@redhat.com>
1526         * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
1528 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1530         * c-cppbuiltin.c: Include memmodel.h.
1531         * c-opts.c: Likewise.
1532         * c-pragma.c: Likewise.
1533         * c-warn.c: Likewise.
1535 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
1537         * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
1538         (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
1539         * c-opts.c (sanitize_cpp_opts): Initialize
1540         cpp_opts->cpp_warn_implicit_fallthrough.
1542 2016-10-11  Marek Polacek  <polacek@redhat.com>
1544         * c-common.c (warning_candidate_p): Change the return type to bool
1545         and return true/false instead of 1/0.
1546         (vector_mode_valid_p): Likewise.
1548 2016-10-11  Marek Polacek  <polacek@redhat.com>
1550         * c-common.c (fold_for_warn): No longer static.
1551         (bool_promoted_to_int_p): Likewise.
1552         (c_common_get_narrower): Likewise.
1553         (constant_expression_warning): Move to c-warn.c.
1554         (constant_expression_error): Likewise.
1555         (overflow_warning): Likewise.
1556         (warn_logical_operator): Likewise.
1557         (find_array_ref_with_const_idx_r): Likewise.
1558         (warn_tautological_cmp): Likewise.
1559         (expr_has_boolean_operands_p): Likewise.
1560         (warn_logical_not_parentheses): Likewise.
1561         (warn_if_unused_value): Likewise.
1562         (strict_aliasing_warning): Likewise.
1563         (sizeof_pointer_memaccess_warning): Likewise.
1564         (check_main_parameter_types): Likewise.
1565         (conversion_warning): Likewise.
1566         (warnings_for_convert_and_check): Likewise.
1567         (match_case_to_enum_1): Likewise.
1568         (match_case_to_enum): Likewise.
1569         (c_do_switch_warnings): Likewise.
1570         (warn_for_omitted_condop): Likewise.
1571         (readonly_error): Likewise.
1572         (lvalue_error): Likewise.
1573         (invalid_indirection_error): Likewise.
1574         (warn_array_subscript_with_type_char): Likewise.
1575         (warn_about_parentheses): Likewise.
1576         (warn_for_unused_label): Likewise.
1577         (warn_for_div_by_zero): Likewise.
1578         (warn_for_memset): Likewise.
1579         (warn_for_sign_compare): Likewise.
1580         (do_warn_double_promotion): Likewise.
1581         (do_warn_unused_parameter): Likewise.
1582         (record_locally_defined_typedef): Likewise.
1583         (maybe_record_typedef_use): Likewise.
1584         (maybe_warn_unused_local_typedefs): Likewise.
1585         (maybe_warn_bool_compare): Likewise.
1586         (maybe_warn_shift_overflow): Likewise.
1587         (warn_duplicated_cond_add_or_warn): Likewise.
1588         (diagnose_mismatched_attributes): Likewise.
1589         * c-common.h: Move the declarations from c-warn.c to its own section.
1590         * c-warn.c: New file.
1592 2016-10-08  Jason Merrill  <jason@redhat.com>
1594         * c-common.c (c_common_truthvalue_conversion): Don't distribute
1595         into COND_EXPR in C++.
1597 2016-10-08  Jakub Jelinek  <jakub@redhat.com>
1599         * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
1600         token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
1601         CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
1603 2016-10-07  Jakub Jelinek  <jakub@redhat.com>
1605         Implement LWG2296 helper intrinsic
1606         * c-common.h (enum rid): Add RID_ADDRESSOF.
1607         * c-common.c (c_common_reswords): Add __builtin_addressof.
1609 2016-10-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1611         PR c++/77700
1612         * c-common.c (c_common_truthvalue_conversion): Warn also for
1613         suspicious enum values in boolean context.
1615 2016-10-06  Jakub Jelinek  <jakub@redhat.com>
1617         Implement P0258R2 - helper for C++17
1618         std::has_unique_object_representations trait
1619         * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
1620         * c-common.c (c_common_reswords): Add
1621         __has_unique_object_representations.
1623 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
1625         PR sanitizer/66343
1626         * c-ubsan.c (ubsan_instrument_return): Don't call
1627         initialize_sanitizer_builtins here.
1629 2016-10-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1631         * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
1632         conditional expression in boolean context when only one arm is
1633         non-boolean.
1635 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
1637         PR sanitizer/77823
1638         * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
1639         is not integral.
1641         * c-common.c (c_common_reswords): Update comment for C++11.
1643 2016-10-04  Jason Merrill  <jason@redhat.com>
1645         * c-common.c (make_tree_vector_from_ctor): New.
1646         * c-common.h: Declare it.
1648 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
1650         * c-cppbuiltin.c (c_cpp_builtins): Don't define
1651         __LIBGCC_JCR_SECTION_NAME__.
1653 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1655         * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
1656         left shift in boolean context.
1658 2016-09-29  Jakub Jelinek  <jakub@redhat.com>
1660         Implement P0001R1 - C++17 removal of register storage class specifier
1661         * c.opt (Wregister): New warning.
1662         * c-opts.c (c_common_post_options): Enable -Wregister by
1663         default for C++17.
1665 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
1667         * c-opts.c (c_common_post_options): Remove special case for
1668         TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
1669         in C++.
1671 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
1673         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
1674         -std=c++1z.
1676         * c-ada-spec.c (print_ada_declaration): Remove break after return.
1678 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1680         * c-common.c: Include memmodel.h.
1682 2016-09-26  Marek Polacek  <polacek@redhat.com>
1684         * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
1686 2016-09-26  Marek Polacek  <polacek@redhat.com>
1688         PR c/7652
1689         * c-common.c (c_common_attribute_table): Add fallthrough attribute.
1690         (handle_fallthrough_attribute): New function.
1691         (attribute_fallthrough_p): New function.
1692         * c-common.h (attribute_fallthrough_p): Declare.
1694 2016-09-24  Marek Polacek  <polacek@redhat.com>
1696         PR c/77490
1697         * c.opt (Wbool-operation): New.
1699 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1701         * c-common.c (c_common_truthvalue_conversion): Inhibit
1702         Wint-in-bool-context warning with from_macro_definition_at.
1703         Mention the expression will always evaluate to true.
1705 2016-09-21  Martin Sebor  <msebor@redhat.com>
1707         PR bootstrap/77676
1708         * c.opt (fprintf-return-value): Temporarily initialize to zero
1709         to unblock bootstrap failures.
1711 2016-09-21  Jakub Jelinek  <jakub@redhat.com>
1713         PR c++/77651
1714         * c.opt (Waligned-new=): Add RejectNegative.
1715         (faligned-new=): Likewise.  Spelling fix - change
1716         aligned_new_threshhold to aligned_new_threshold.
1717         * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
1718         to aligned_new_threshold.
1720 2016-09-20  Martin Sebor  <msebor@redhat.com>
1722         PR middle-end/49905
1723         * c.opt: Add -Wformat-length and -fprintf-return-value.
1725 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1727         PR c++/77434
1728         * c.opt (Wint-in-bool-context): New warning.
1729         * c-common.c (c_common_truthvalue_conversion): Warn on integer
1730         constants in boolean context.
1732 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
1734         * c-common.c (max_align_t_align): Also consider alignment of
1735         float128_type_node.
1737 2016-09-15  Jason Merrill  <jason@redhat.com>
1739         * c-common.c (check_cxx_fundamental_alignment_constraints): Check
1740         DECL_EXTERNAL.
1742 2016-09-14  Jason Merrill  <jason@redhat.com>
1744         * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
1745         limit FIELD_DECL, either.
1747 2016-09-14  Marek Polacek  <polacek@redhat.com>
1749         * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
1750         * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
1751         * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
1753 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
1755         * c-common.c (warn_logical_not_parentheses): Replace
1756         rich_location::add_fixit_insert calls with add_fixit_insert_before
1757         and add_fixit_insert_after, eliminating the "next_loc" calculation.
1759 2016-09-13  Jason Merrill  <jason@redhat.com>
1760             Tom de Vries  <tom@codesourcery.com>
1762         PR c++/77427
1763         * c-common.c (set_underlying_type): Don't treat array as builtin type.
1765 2016-09-13  Jason Merrill  <jason@redhat.com>
1767         * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
1768         limit types at all.
1770 2016-09-12  Jason Merrill  <jason@redhat.com>
1772         * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
1773         bit/byte confusion, allow large alignment for types.
1775 2016-09-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1777         PR c++/77496
1778         * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
1780 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
1782         PR c/72858
1783         * c-format.c (argument_parser::check_argument_type): Add params
1784         "type_start" and "conversion_char".  Use the former to generate
1785         offset_to_type_start and pass it and conversion_char to
1786         check_format_types.
1787         (check_format_info_main): Capture the start of the type
1788         information as "type_start", and pass it an format_char
1789         to arg_parser.check_argument_type.
1790         (check_format_types): Provide an example in the leading comment.
1791         Add params "offset_to_type_start" and "conversion_char"; pass
1792         them to format_type_warning calls.
1793         (test_get_modifier_for_format_len): Likewise.
1794         (matching_type_p): New function.
1795         (get_format_for_type): Add param "conversion_char" and move
1796         implementation into...
1797         (get_format_for_type_1): ...new function, called twice.
1798         Use new function matching_type_p rather than checking for
1799         TYPE_CANONICAL equality.
1800         (get_corrected_substring): New function.
1801         (format_type_warning): Provide an example in the leading comment.
1802         Add params "offset_to_type_start" and "conversion_char".  Replace
1803         call to get_format_for_type with call to get_corrected_substring
1804         and move rejection of hints for widths/precisions there.
1805         (assert_format_for_type_streq): Add param "conversion_char".
1806         (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
1807         (test_get_format_for_type_printf): Add conversion chars to the
1808         tests, adding coverage for various combinations of integer
1809         vs double conversions, and for preserving octal and hexadecimal
1810         conversions.
1811         (test_get_format_for_type_scanf): Add conversion chars to the
1812         tests.
1814 2016-09-10  Tom de Vries  <tom@codesourcery.com>
1816         PR C/71602
1817         * c-common.c (build_va_arg): Handle more strict
1818         targetm.canonical_va_list_type.  Replace first argument type error with
1819         assert.
1821 2016-09-09  Martin Sebor  <msebor@redhat.com>
1823         PR c/77520
1824         PR c/77521
1825         * c-format.c (argument_parser::find_format_char_info): Use %qc
1826         format directive unconditionally.
1828 2016-09-09  Jason Merrill  <jason@redhat.com>
1830         Implement C++17 new of over-aligned types.
1831         * c.opt: Add -faligned-new and -Waligned-new.
1832         * c-common.c (max_align_t_align): Split out from...
1833         (cxx_fundamental_alignment_p): ...here.
1834         * c-common.h: Declare it.
1835         * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
1837 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
1839         * c-cppbuiltin.c (builtin_define_type_width): New function.
1840         (builtin_define_stdint_macros, c_cpp_builtins): Define type width
1841         macros.
1843 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
1845         * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
1846         a POINTER_TYPE.
1847         (substring_loc::get_location): Move to substring-locations.c,
1848         keeping implementation as...
1849         (c_get_substring_location): New function, from the above, reworked
1850         to use accessors rather than member lookup.
1851         * c-common.h (class substring_loc): Move to substring-locations.h,
1852         replacing with a forward decl.
1853         (c_get_substring_location): New decl.
1854         * c-format.c: Include "substring-locations.h".
1855         (format_warning_va): Move to substring-locations.c.
1856         (format_warning_at_substring): Likewise.
1858 2016-09-06 Martin Sebor  <msebor@redhat.com>
1860         PR c/77336
1861         * c-format.c (check_function_format): Avoid issuing warnings for
1862         functions unless they call format functions with non-constant
1863         format strings.
1865 2016-09-06  Richard Biener  <rguenther@suse.de>
1867         PR c/77450
1868         * c-common.c (c_common_mark_addressable_vec): Handle
1869         COMPOUND_LITERAL_EXPR.
1871 2016-09-05  Marek Polacek  <polacek@redhat.com>
1873         PR c/77423
1874         * c-common.c (bool_promoted_to_int_p): New function.
1875         (expr_has_boolean_operands_p): New function.
1876         (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
1877         (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
1879 2016-09-04  Tom de Vries  <tom@codesourcery.com>
1881         revert:
1882         2016-08-29  Tom de Vries  <tom@codesourcery.com>
1884         * c-common.c (build_va_arg): Replace first argument type error
1885         with assert.
1887 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
1889         PR c/65467
1890         * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
1891         (c_finish_omp_for): Reject _Atomic qualified iterators.
1893 2016-09-01  Martin Sebor  <msebor@redhat.com>
1895         * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
1896         size to guarantee it fits the output of the formatted function
1897         regardless of its arguments.
1899 2016-09-01  Marek Polacek  <polacek@redhat.com>
1901         PR c/7652
1902         * c-common.c (resolve_overloaded_builtin): Fix formatting.  Add
1903         FALLTHRU comments.
1905 2016-08-29  Marek Polacek  <polacek@redhat.com>
1907         PR c/77292
1908         * c-common.c (warn_logical_not_parentheses): Don't warn for
1909         a comparison or a logical operator.
1911 2016-08-29  Tom de Vries  <tom@codesourcery.com>
1913         * c-common.c (build_va_arg): Fix type comparison assert.
1915 2016-08-29  Tom de Vries  <tom@codesourcery.com>
1917         * c-common.c (build_va_arg): Replace first argument type error
1918         with assert.
1920 2016-08-29  Tom de Vries  <tom@codesourcery.com>
1922         PR c/77398
1923         * c-common.c (build_va_arg): Add first argument error.  Build va_arg
1924         with error_mark_node as va_list instead of with illegal va_list.
1926 2016-08-25  Marek Polacek  <polacek@redhat.com>
1927             David Malcolm  <dmalcolm@redhat.com>
1929         * c-common.c (warn_logical_not_parentheses): Print fixit hints.
1930         * c-common.h (warn_logical_not_parentheses): Update declaration.
1932 2016-08-22  Marek Polacek  <polacek@redhat.com>
1934         PR c++/77321
1935         * c-common.c (warn_for_memset): Check type for null.
1937 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
1939         * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
1940         _FloatNx types for suffixes for built-in functions.
1942 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
1944         PR c/32187
1945         * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
1946         (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
1947         (RID_FLOAT128X): New enum rid values.
1948         (CASE_RID_FLOATN_NX): New macro.
1949         * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
1950         keywords.
1951         (c_common_type_for_mode): Check for _FloatN and _FloatNx and
1952         corresponding complex types.
1953         (c_common_nodes_and_builtins): For non-C++, register _FloatN and
1954         _FloatNx and corresponding complex types.
1955         (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
1956         * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
1957         and _FloatNx types for the widest type for determining
1958         DECIMAL_DIG.  Define __LDBL_DECIMAL_DIG__ as well as
1959         __DECIMAL_DIG__ for long double.  Handle FMA_SUFFIX being NULL.
1960         (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
1961         and _FloatNx types.
1962         * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
1963         constants.
1964         * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
1965         _FloatNx types.
1967 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
1969         * c-opts.c (c_diagnostic_finalizer): Update for change to
1970         diagnostic_show_locus.
1972 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
1974         * c-common.c: Include "spellcheck.h".
1975         (cb_get_suggestion): New function.
1976         * c-common.h (cb_get_suggestion): New decl.
1977         * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
1978         cb_get_suggestion.
1980 2016-08-18  Marek Polacek  <polacek@redhat.com>
1982         PR c/71514
1983         * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
1984         and pointer-to-VLA.
1986 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
1988         PR c/72857
1989         * c-common.c (substring_loc::get_range): Rename to...
1990         (substring_loc::get_location): ...this, converting param from a
1991         source_range * to a location_t *.  Call
1992         get_source_location_for_substring rather than
1993         get_source_range_for_substring, and pass in m_caret_idx.
1994         * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
1995         (substring_loc::get_range): Replace with...
1996         (substring_loc::get_location): ...this.
1997         (substring_loc::set_caret_index): New method.
1998         (substring_loc): Add field m_caret_idx.
1999         * c-format.c (format_warning_va): Update for above changes.
2000         Rename local "substring_loc" to "fmt_substring_loc" to avoid
2001         clashing with type name.
2002         (format_warning_at_char): Add caret_idx param to substring_loc ctor.
2003         (check_argument_type): Likewise.
2004         (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
2005         Use a copy when emitting warnings, setting the caret index from TYPE.
2007 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
2008             Arnaud Charlet  <charlet@adacore.com>
2010         * c-ada-spec.c (dump_number): New function.
2011         (handle_escape_character): Likewise.
2012         (print_ada_macros): Add handling of constant integers and strings.
2014 2016-08-12  Marek Polacek  <polacek@redhat.com>
2016         PR c/7652
2017         * c-common.c (scalar_to_vector): Adjust fall through comment.
2018         * c-opts.c (c_common_handle_option): Likewise.
2019         * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
2020         * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
2021         fall through comment.
2022         * cilk.c (extract_free_variables): Add FALLTHRU.
2024 2016-08-10  Jason Merrill  <jason@redhat.com>
2026         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
2028 2016-08-09  Jason Merrill  <jason@redhat.com>
2030         * c-common.c (c_common_attribute_table): vector_size affects type
2031         identity.
2033 2016-08-09  Marek Polacek  <polacek@redhat.com>
2035         PR c/7652
2036         * c-ada-spec.c (dump_generic_ada_node): Add return.
2038 2016-08-09  Jason Merrill  <jason@redhat.com>
2040         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
2041         C++17 constexpr lambdas.
2043 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
2045         PR c/64955
2046         * c-common.h (selftest::c_format_c_tests): New declaration.
2047         (selftest::run_c_tests): New declaration.
2048         * c-format.c: Include "selftest.h.
2049         (format_warning_va): Add param "corrected_substring" and use
2050         it to add a replacement fix-it hint.
2051         (format_warning_at_substring): Likewise.
2052         (format_warning_at_char): Update for new param of
2053         format_warning_va.
2054         (argument_parser::check_argument_type): Pass "fki" to
2055         check_format_types.
2056         (check_format_types): Add param "fki" and pass it to
2057         format_type_warning.
2058         (deref_n_times): New function.
2059         (get_modifier_for_format_len): New function.
2060         (selftest::test_get_modifier_for_format_len): New function.
2061         (get_format_for_type): New function.
2062         (format_type_warning): Add param "fki" and use it to attempt
2063         to provide hints for argument types when calling
2064         format_warning_at_substring.
2065         (selftest::get_info): New function.
2066         (selftest::assert_format_for_type_streq): New function.
2067         (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
2068         (selftest::test_get_format_for_type_printf): New function.
2069         (selftest::test_get_format_for_type_scanf): New function.
2070         (selftest::c_format_c_tests): New function.
2072 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
2074         PR c/52952
2075         * c-format.c: Include "diagnostic.h".
2076         (location_column_from_byte_offset): Delete.
2077         (location_from_offset): Delete.
2078         (format_warning_va): New function.
2079         (format_warning_at_substring): New function.
2080         (format_warning_at_char): New function.
2081         (check_format_arg): Capture location of format_tree and pass to
2082         check_format_info_main.
2083         (argument_parser): Add fields "start_of_this_format" and
2084         "format_string_cst".
2085         (flag_chars_t::validate): Add param "format_string_cst".  Convert
2086         warning_at call using location_from_offset to call to
2087         format_warning_at_char.
2088         (argument_parser::argument_parser): Add param "format_string_cst_"
2089         and use use it to initialize field "format_string_cst".
2090         Initialize new field "start_of_this_format".
2091         (argument_parser::read_format_flags): Convert warning_at call
2092         using location_from_offset to a call to format_warning_at_char.
2093         (argument_parser::read_any_format_left_precision): Likewise.
2094         (argument_parser::read_any_format_precision): Likewise.
2095         (argument_parser::read_any_other_modifier): Likewise.
2096         (argument_parser::find_format_char_info): Likewise, in three places.
2097         (argument_parser::parse_any_scan_set): Likewise, in one place.
2098         (argument_parser::handle_conversions): Likewise, in two places.
2099         (argument_parser::check_argument_type): Add param "fmt_param_loc"
2100         and use it to make a substring_loc.  Pass the latter to
2101         check_format_types.
2102         (check_format_info_main): Add params "fmt_param_loc" and
2103         "format_string_cst".  Convert warning_at calls using
2104         location_from_offset to calls to format_warning_at_char.  Pass the
2105         new params to the arg_parser ctor.  Pass "format_string_cst" to
2106         flag_chars.validate.  Pass "fmt_param_loc" to
2107         arg_parser.check_argument_type.
2108         (check_format_types): Convert first param from a location_t
2109         to a const substring_loc & and rename to "fmt_loc".  Attempt
2110         to extract the range of the relevant parameter and pass it
2111         to format_type_warning.
2112         (format_type_warning): Convert first param from a location_t
2113         to a const substring_loc & and rename to "fmt_loc".  Add
2114         params "param_range" and "type".  Replace calls to warning_at
2115         with calls to format_warning_at_substring.
2117 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
2119         * c-format.c (class flag_chars_t): New class.
2120         (struct length_modifier): New struct.
2121         (class argument_parser): New class.
2122         (flag_chars_t::flag_chars_t): New ctor.
2123         (flag_chars_t::has_char_p): New method.
2124         (flag_chars_t::add_char): New method.
2125         (flag_chars_t::validate): New method.
2126         (flag_chars_t::get_alloc_flag): New method.
2127         (flag_chars_t::assignment_suppression_p): New method.
2128         (argument_parser::argument_parser): New ctor.
2129         (argument_parser::read_any_dollar): New method.
2130         (argument_parser::read_format_flags): New method.
2131         (argument_parser::read_any_format_width): New method.
2132         (argument_parser::read_any_format_left_precision): New method.
2133         (argument_parser::read_any_format_precision): New method.
2134         (argument_parser::handle_alloc_chars): New method.
2135         (argument_parser::read_any_length_modifier): New method.
2136         (argument_parser::read_any_other_modifier): New method.
2137         (argument_parser::find_format_char_info): New method.
2138         (argument_parser::validate_flag_pairs): New method.
2139         (argument_parser::give_y2k_warnings): New method.
2140         (argument_parser::parse_any_scan_set): New method.
2141         (argument_parser::handle_conversions): New method.
2142         (argument_parser::check_argument_type): New method.
2143         (check_format_info_main): Introduce classes argument_parser
2144         and flag_chars_t, moving the code within the loop into methods
2145         of these classes.  Make various locals "const".
2147 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
2149         * c-common.c: Include "substring-locations.h".
2150         (get_cpp_ttype_from_string_type): New function.
2151         (g_string_concat_db): New global.
2152         (substring_loc::get_range): New method.
2153         * c-common.h (g_string_concat_db): New declaration.
2154         (class substring_loc): New class.
2155         * c-lex.c (lex_string): When concatenating strings, capture the
2156         locations of all tokens using a new obstack, and record the
2157         concatenation locations within g_string_concat_db.
2158         * c-opts.c (c_common_init_options): Construct g_string_concat_db
2159         on the ggc-heap.
2161 2016-07-29  Marek Polacek  <polacek@redhat.com>
2163         PR c/71926
2164         * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
2165         parentheses warning.
2167         PR c/71574
2168         * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
2170 2016-07-28  Martin Liska  <mliska@suse.cz>
2172         PR gcov-profile/68025
2173         * c-common.c (handle_no_profile_instrument_function_attribute):
2175 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2177         * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
2178         BITS_PER_UNIT_LOG.
2180 2016-07-25  Jason Merrill  <jason@redhat.com>
2182         PR c++/65970
2183         * c.opt (fconstexpr-loop-limit): New.
2185 2016-07-22  Martin Sebor  <msebor@redhat.com>
2187         PR c++/71675
2188         * c-common.c (resolve_overloaded_builtin): Avoid converting
2189         __atomic_compare_exchange_n return type to that of what its
2190         first argument points to.
2192 2016-07-22  Uros Bizjak  <ubizjak@gmail.com>
2194         * c-common.c: Use HOST_WIDE_INT_M1U instead of
2195         ~(unsigned HOST_WIDE_INT) 0.
2197 2016-07-22  Martin Liska  <mliska@suse.cz>
2199         PR gcov-profile/69028
2200         PR gcov-profile/62047
2201         * cilk.c (create_cilk_helper_decl): Set location of a new decl
2202         to the current_function_decl.
2204 2016-07-21  Jason Merrill  <jason@redhat.com>
2206         PR c++/65168
2207         * c-common.c (c_common_truthvalue_conversion): Check
2208         c_inhibit_evaluation_warnings for warning about address of
2209         reference.
2211 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
2213         * c-common.h (lookup_name_fuzzy): Convert return type from tree to
2214         const char *.
2216 2016-07-15  Jason Merrill  <jason@redhat.com>
2218         * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
2220 2016-07-15  Jakub Jelinek  <jakub@redhat.com>
2222         PR c/71858
2223         * c-common.h (enum lookup_name_fuzzy_kind): Add
2224         FUZZY_LOOKUP_FUNCTION_NAME.
2226 2016-07-08  Jason Merrill  <jason@redhat.com>
2228         P0145: Refining Expression Order for C++.
2229         * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
2230         * c-opts.c: Adjust.
2232 2016-07-05  Markus Trippelsdorf  <markus@trippelsdorf.de>
2234         PR c++/71214
2235         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
2237 2016-06-29  Thomas Schwinge  <thomas@codesourcery.com>
2239         * c-pragma.h (enum pragma_kind): Rename
2240         PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE.  Adjust all
2241         users.
2243 2016-06-29  Richard Biener  <rguenther@suse.de>
2245         PR middle-end/71002
2246         * c-common.c (c_common_get_alias_set): Remove union type punning case.
2248 2016-06-24  Jason Merrill  <jason@redhat.com>
2250         P0145R2: Refining Expression Order for C++.
2251         * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
2252         MODIFY_EXPR.
2254 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
2256         * c-common.c (check_builtin_function_arguments): Require last
2257         argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
2258         Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
2259         if the last argument is pointer to enumerated or boolean type.
2261 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
2263         PR c/70339
2264         * c-common.h (enum lookup_name_fuzzy_kind): New enum.
2265         (lookup_name_fuzzy): New prototype.
2267 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
2269         * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
2271 2016-06-14  Jason Merrill  <jason@redhat.com>
2273         P0145R2: Refining Expression Order for C++.
2274         * c.opt (fargs-in-order): New.
2275         * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
2277 2016-06-13  Jakub Jelinek  <jakub@redhat.com>
2279         PR sanitizer/71498
2280         * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
2281         all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
2283         PR preprocessor/71183
2284         * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
2285         to cb_get_source_date_epoch.
2287 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
2289         PR c/68657
2290         * c.opt (Wpsabi): Add Warning flag.
2292 2016-06-10  Martin Sebor  <msebor@redhat.com>
2294         PR c/71392
2295         * c-common.c (handle_nonnull_attribute): Accept
2296         the nonnull attribute in type-generic builtins.
2298 2016-06-09  Martin Sebor  <msebor@redhat.com>
2300         PR c/70883
2301         * c-common.c (builtin_function_validate_nargs): Make text of error
2302         message consistent with others like it.
2304 2016-06-08  Martin Sebor  <msebor@redhat.com>
2305             Jakub Jelinek  <jakub@redhat.com>
2307         PR c++/70507
2308         PR c/68120
2309         * c-common.c (check_builtin_function_arguments): Handle
2310         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
2312 2016-06-08  Richard Biener  <rguenther@suse.de>
2314         * c-common.c (parse_optimize_options): Improve diagnostic messages.
2316 2016-06-07  Richard Biener  <rguenther@suse.de>
2318         PR c/61564
2319         * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
2320         options and warn about others.
2322 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
2324         * c-common.c (get_source_date_epoch): Rename to
2325         cb_get_source_date_epoch.
2326         * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
2327         message when the parsing fails.  Use error_at instead of fatal_error.
2328         * c-common.h (get_source_date_epoch): Rename to
2329         cb_get_source_date_epoch.
2330         * c-common.h (cb_get_source_date_epoch): Prototype.
2331         * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
2332         * c-common.h (c_omp_region_type): Remove trailing comma.
2333         * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
2334         * c-lex.c (c_lex_with_flags): Remove initialization of
2335         pfile->source_date_epoch.
2337 2016-05-30  Jakub Jelinek  <jakub@redhat.com>
2339         PR c++/71349
2340         * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
2341         C_OMP_CLAUSE_SPLIT_TARGET.  Put OMP_CLAUSE_NOWAIT to
2342         C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
2343         instead of C_OMP_CLAUSE_SPLIT_FOR.
2345 2016-05-24  Richard Biener  <rguenther@suse.de>
2347         PR middle-end/70434
2348         PR c/69504
2349         * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
2350         (convert_vector_to_array_for_subscript): ... this.
2351         * c-common.c (convert_vector_to_pointer_for_subscript): Use a
2352         VIEW_CONVERT_EXPR to an array type.  Rename to ...
2353         (convert_vector_to_array_for_subscript): ... this.
2355 2016-05-12  Marek Polacek  <polacek@redhat.com>
2357         PR c/70756
2358         * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
2359         size_in_bytes and pass LOC to it.
2361 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
2363         PR c/43651
2364         * c.opt (Wduplicate-decl-specifier): New option.
2366 2016-05-11  Marek Polacek  <polacek@redhat.com>
2368         PR c++/71024
2369         * c-common.c (diagnose_mismatched_attributes): New function.
2370         * c-common.h (diagnose_mismatched_attributes): Declare.
2372 2016-05-04  Marek Polacek  <polacek@redhat.com>
2374         * c.opt (Wdangling-else): New option.
2376 2016-05-03  Marek Polacek  <polacek@redhat.com>
2378         PR c/70859
2379         * c-common.c (builtin_function_validate_nargs): Add location
2380         parameter.  Use it.
2381         (check_builtin_function_arguments): Add location and arguments
2382         parameters.  Use them.
2383         * c-common.h (check_builtin_function_arguments): Update declaration.
2385 2016-05-03  Richard Biener  <rguenther@suse.de>
2387         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
2388         allow call args to gimplify to SSA names.
2390 2016-05-03  Marek Polacek  <polacek@redhat.com>
2392         * c-common.h (enum c_omp_region_type): Remove stray comma.
2394 2016-05-02  Cesar Philippidis  <cesar@codesourcery.com>
2396         * c-common.h (enum c_omp_region_type): Define.
2398 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
2400         * c-common.c (shorten_compare): Use wi::to_wide.
2402 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
2404         PR middle-end/70626
2405         * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
2406         * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
2407         reduction clauses in acc parallel loops.
2409 2016-04-29  Marek Polacek  <polacek@redhat.com>
2411         PR c/70852
2412         * c-common.c (warn_for_memset): Check domain before accessing it.
2414 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2416         PR/69089
2417         * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
2418         "aligned" attribute.
2420 2016-04-28  Jason Merrill  <jason@redhat.com>
2422         * c-lex.c (c_common_has_attribute): Handle nodiscard.
2424 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
2425             Matthias Klose  <doko@debian.org>
2427         * c-common.c (get_source_date_epoch): New function, gets the environment
2428         variable SOURCE_DATE_EPOCH and parses it as long long with error 
2429         handling.
2430         * c-common.h (get_source_date_epoch): Prototype.
2431         * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
2433 2015-04-27  Ryan Burn  <contact@rnburn.com>
2435         PR c++/69024
2436         PR c++/68997
2437         * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
2438         (cilk_recognize_spawn): Renamed from recognize_spawn and change to
2439         external linkage.
2440         (cilk_detect_and_unwrap): Corresponding changes.
2441         (extract_free_variables): Don't extract free variables from
2442         AGGR_INIT_EXPR slot.
2443         * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
2444         (cilk_recognize_spawn): Likewise.
2446 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
2448         * c.opt (Wmemset-elt-size): New option.
2449         * c-common.c (warn_for_memset): New function.
2450         * c-common.h (warn_for_memset): Declare.
2452 2016-04-25  Jason Merrill  <jason@redhat.com>
2454         * c-common.c (handle_unused_attribute): Accept CONST_DECL.
2455         No longer static.
2456         * c-common.h: Declare it.
2457         * c-lex.c (c_common_has_attribute): Add maybe_unused.
2459 2016-04-22  Jason Merrill  <jason@redhat.com>
2461         * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
2463 2016-04-20  Ilya Verbin  <ilya.verbin@intel.com>
2465         PR c++/69363
2466         * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
2467         * c-common.h (c_finish_cilk_clauses): Remove declaration.
2469 2016-04-18  Michael Matz  <matz@suse.de>
2471         * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
2472         and SET_DECL_ALIGN.
2474 2016-04-17  Eric Botcazou  <ebotcazou@adacore.com>
2476         * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
2477         (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
2478         to incomplete types.
2479         (dump_nested_type): Remove redundant tests and tidy up.
2480         (print_ada_declaration): Also set TREE_VISITED on the declaration of
2481         a type which is the typedef of an original type.
2483 2016-04-15  Marek Polacek  <polacek@redhat.com>
2485         PR c/70651
2486         * c-common.c (build_va_arg): Change two asserts into errors and return
2487         error_mark_node.
2489 2016-04-13  Marek Polacek  <polacek@redhat.com>
2491         PR c++/70639
2492         * c-indentation.c (should_warn_for_misleading_indentation): Bail out
2493         for switch statements, too.
2495 2016-03-28  Jason Merrill  <jason@redhat.com>
2497         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
2499 2016-03-23  Marek Polacek  <polacek@redhat.com>
2501         PR c++/69884
2502         * c.opt (Wignored-attributes): New option.
2504 2016-03-22  David Malcolm  <dmalcolm@redhat.com>
2506         PR c/69993
2507         * c-indentation.c (warn_for_misleading_indentation): Rewrite the
2508         diagnostic text, reversing the order of the warning and note so
2509         that they appear in source order.
2511 2016-03-17  Marek Polacek  <polacek@redhat.com>
2513         PR c/69407
2514         * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
2515         operations.
2517 2016-03-14  Jason Merrill  <jason@redhat.com>
2519         * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
2521         * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
2523 2016-03-09  Richard Biener  <rguenther@suse.de>
2525         PR c/70143
2526         * c-common.c (strict_aliasing_warning): Add back
2527         alias_sets_conflict_p check.
2529 2016-03-08  Jason Merrill  <jason@redhat.com>
2531         * c-opts.c (set_std_cxx1z): Don't enable concepts.
2533 2016-03-04  David Malcolm  <dmalcolm@redhat.com>
2535         PR c/68187
2536         * c-indentation.c (get_visual_column): Move code to determine next
2537         tab stop to...
2538         (next_tab_stop): ...this new function.
2539         (line_contains_hash_if): Delete function.
2540         (detect_preprocessor_logic): Delete function.
2541         (get_first_nws_vis_column): New function.
2542         (detect_intervening_unindent): New function.
2543         (should_warn_for_misleading_indentation): Replace call to
2544         detect_preprocessor_logic with a call to
2545         detect_intervening_unindent.
2547 2016-03-04  David Malcolm  <dmalcolm@redhat.com>
2549         PR c/68187
2550         * c-indentation.c (should_warn_for_misleading_indentation): When
2551         suppressing warnings about cases where the guard and body are on
2552         the same column, only use the first non-whitespace column in place
2553         of the guard token column when dealing with "else" clauses.
2554         When rejecting aligned BODY and NEXT, loosen the requirement
2555         from equality with the first non-whitespace of guard to simply
2556         that they not be indented relative to it.
2558 2016-03-04  Richard Biener  <rguenther@suse.de>
2560         PR c++/70054
2561         * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
2562         instead of alias_sets_conflict_p.
2564 2016-03-01  Marek Polacek  <polacek@redhat.com>
2566         PR c++/69795
2567         * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
2568         any DECL.
2570 2016-02-22  Martin Sebor  <msebor@redhat.com>
2572         PR middle-end/69780
2573         * c-common.c (check_builtin_function_arguments): Validate and
2574         reject invalid arguments to __builtin_alloca_with_align.
2576 2016-02-20  Mark Wielaard  <mjw@redhat.com>
2578         PR c/28901
2579         * c.opt (Wunused-const-variable): Turn into Alias for...
2580         (Wunused-const-variable=): New option.
2582 2016-02-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2584         PR c++/69865
2585         * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
2586         here...
2587         (c_common_init_options): ...to here.
2588         (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
2590 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
2592         PR c++/69826
2593         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
2594         (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
2595         flag_preprocess_only.
2597 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
2599         PR c/69835
2600         * c.opt (Wnonnull-compare): Enable for -Wall.
2602 2016-02-15  Jakub Jelinek  <jakub@redhat.com>
2604         PR c++/69797
2605         * c-common.c (sync_resolve_size): Diagnose too few arguments
2606         even when params is non-NULL empty vector.
2608 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
2610         PR target/60410
2611         * c.opt (fshort-double): Remove.
2613 2016-02-05  Martin Sebor  <msebor@redhat.com>
2615         PR c++/69662
2616         * c.opt (Warning options): Update -Wplacement-new to take
2617         an optional argument.
2619 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
2621         PR preprocessor/69543
2622         PR c/69558
2623         * c-pragma.c (handle_pragma_diagnostic): Pass input_location
2624         instead of loc to control_warning_option.
2626 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
2628         * c.opt (fopenacc-dim=): New option.
2630 2016-01-27  Ryan Burn  <contact@rnburn.com>
2632         PR cilkplus/69267
2633         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
2634         gimplify_arg. Removed superfluous post_p argument.
2635         * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
2636         superfluous post_p argument.
2637         * c-gimplify.c (c_gimplify_expr): Likewise.
2639 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
2641         PR other/69006
2642         * c-opts.c (c_diagnostic_finalizer): Replace invocation of
2643         pp_newline_and_flush with pp_flush.
2645 2016-01-20  Martin Sebor  <msebor@redhat.com>
2647         PR c/69405
2648         * c-common.c (sync_resolve_size): Avoid printing diagnostic about
2649         an incompatible argument when the argument isn't a valid tree node.
2651 2016-01-18  Jason Merrill  <jason@redhat.com>
2653         PR c++/68767
2654         * c-common.c (check_function_arguments_recurse): Fold the whole
2655         COND_EXPR, not just the condition.
2657 2016-01-18  Tom de Vries  <tom@codesourcery.com>
2659         * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
2660         classify as loop clause.
2662 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
2664         PR bootstrap/68271
2665         * c-pragma.c (c_register_pragma_1): Adjust comment to note that
2666         C++ FE no longer has limit on number of pragmas.
2668 2015-01-14  Ryan Burn  <contact@rnburn.com>
2670         PR c++/69048
2671         * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
2672         to add missing cleanup point.
2674 2016-01-14  David Malcolm  <dmalcolm@redhat.com>
2676         PR c++/68819
2677         * c-indentation.c (get_visual_column): Add location_t param.
2678         Handle the column number being zero by effectively disabling the
2679         warning, with an "inform".
2680         (should_warn_for_misleading_indentation): Add location_t argument
2681         for all uses of get_visual_column.
2683 2016-01-10  Patrick Palka  <ppalka@gcc.gnu.org>
2685         PR c++/69029
2686         * c-indentation.c (should_warn_for_misleading_indentation):
2687         Don't warn about do-while statements.
2689 2016-01-07  Martin Sebor  <msebor@redhat.com>
2691         PR c/68966
2692         * c-common.c (sync_resolve_size): Reject first argument when it's
2693         a pointer to _Bool.
2695 2016-01-05  David Malcolm  <dmalcolm@redhat.com>
2697         PR c/69122
2698         * c-indentation.c (get_visual_column): Remove default argument.
2699         (should_warn_for_misleading_indentation): For the multiline case,
2700         update call to get_visual_column for next_stmt_exploc so that it
2701         captures the location of the first non-whitespace character in the
2702         relevant line.  Don't issue warnings if there is non-whitespace
2703         before the next statement.
2705 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
2707         Update copyright years.
2709 2015-12-21  David Malcolm  <dmalcolm@redhat.com>
2711         * c-common.c (binary_op_error): Convert first param from
2712         location_t to rich_location * and use it when emitting an error.
2713         * c-common.h (binary_op_error): Convert first param from
2714         location_t to rich_location *.
2716 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
2718         * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
2719         * c-lex.c (conflict_marker_get_final_tok_kind): New function.
2721 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
2723         * c-common.c (c_common_attribute_table): Handle "omp declare target
2724         link" attribute.
2726 2015-12-14  Jakub Jelinek  <jakub@redhat.com>
2728         PR c/68833
2729         * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
2731 2014-12-12  Tobias Burnus  <burnus@net-b.de>
2733         PR fortran/68815
2734         * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
2735         specifiers (%d, %i,%u and %c).
2737 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
2739         * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
2741 2015-12-08  Jakub Jelinek  <jakub@redhat.com>
2743         PR c/48088
2744         PR c/68657
2745         * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
2746         * c-pragma.c (handle_pragma_diagnostic): Adjust
2747         control_warning_option caller.
2749 2015-12-07  David Malcolm  <dmalcolm@redhat.com>
2751         * c-common.c (c_cpp_error): Update for change to
2752         rich_location::set_range.
2754 2015-12-04  Paolo Bonzini  <bonzini@gnu.org>
2756         * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
2757         shifting 1 out of the sign bit.
2759 2015-12-04  Kirill Yukhin  <kirill.yukhin@intel.com>
2761         * c-common.c (c_common_attribute_table[]): Update max arguments
2762         count for "simd" attribute.
2763         (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
2765 2015-12-03  Jakub Jelinek  <jakub@redhat.com>
2767         PR preprocessor/57580
2768         * c-ppoutput.c (print): Change printed field to bool.
2769         Move src_file last for smaller padding.
2770         (init_pp_output): Set print.printed to false instead of 0.
2771         (scan_translation_unit): Fix up formatting.  Set print.printed
2772         to true after printing something other than newline.
2773         (scan_translation_unit_trad): Set print.printed to true instead of 1.
2774         (maybe_print_line_1): Set print.printed to false instead of 0.
2775         (print_line_1): Likewise.
2776         (do_line_change): Set print.printed to true instead of 1.
2777         (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
2778         dump_macro): Set print.printed to false after printing newline.
2780 2015-12-02  Jason Merrill  <jason@redhat.com>
2782         * c-common.c (fold_for_warn): New.
2783         (warn_logical_operator, warn_tautological_cmp)
2784         (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
2786         * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
2787         (c_fully_fold_internal, decl_constant_value_for_optimization):
2788         Move to c/c-fold.c.
2789         * c-common.h: Don't declare decl_constant_value_for_optimization.
2791 2015-12-02  Joseph Myers  <joseph@codesourcery.com>
2793         PR c/68162
2794         * c-common.h (c_build_qualified_type): Add extra default
2795         arguments.
2797 2015-12-01  Julian Brown  <julian@codesourcery.com>
2798             Cesar Philippidis  <cesar@codesourcery.com>
2799             James Norris  <James_Norris@mentor.com>
2801         * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
2802         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
2803         (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
2805 2015-11-30  Eric Botcazou  <ebotcazou@adacore.com>
2807         * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
2808         (decl_sloc_common): Delete and move bulk of processing to...
2809         (decl_sloc): ...here.
2810         (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
2811         (dump_ada_double_name): Remove S parameter and compute the suffix.
2812         (dump_ada_array_type): Add PARENT parameter.  Simplify computation of
2813         element type and deal with an anonymous one.
2814         (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
2815         (dump_generic_ada_node): Tweak.  Adjust call to dump_ada_array_type
2816         and remove reference to QUAL_UNION_TYPE.
2817         (dump_nested_types): Make 2 passes on the fields and move bulk to...
2818         (dump_nested_type): ...here.  New function extracted from above.
2819         Generate a full declaration for anonymous element type of arrays.
2820         (print_ada_declaration): Really skip anonymous declarations.  Remove
2821         references to QUAL_UNION_TYPE.  Adjust call to dump_ada_array_type.
2822         Clean up processing of declarations of array types and objects.
2823         (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
2824         Remove obsolete code and tidy up.
2826 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
2828         PR c/67581
2829         * c-common.c (handle_transparent_union_attribute): Update
2830         also type variants.
2832 2015-11-27  Martin Liska  <mliska@suse.cz>
2834         PR c++/68312
2835         * array-notation-common.c (cilkplus_extract_an_triplets):
2836         Release vector of vectors.
2837         * cilk.c (gimplify_cilk_spawn): Free allocated memory.
2839 2015-11-26  Eric Botcazou  <ebotcazou@adacore.com>
2841         PR c++/68527
2842         * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
2843         (print_ada_struct_decl): Likewise.
2845 2015-11-23  Igor Zamyatin  <igor.zamyatin@intel.com>
2847         PR c++/68001
2848         * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
2849         * cilk.c (recognize_spawn): Determine location in a more precise
2850         way.
2852 2015-11-19  Jason Merrill  <jason@redhat.com>
2854         * c-common.c (shorten_compare): But look through macros from
2855         system headers.
2857 2015-11-18  Jason Merrill  <jason@redhat.com>
2859         * c-common.c (shorten_compare): Don't -Wtype-limits if the
2860         non-constant operand comes from a macro.
2862 2015-11-17  Jason Merrill  <jason@redhat.com>
2864         PR bootstrap/68346
2865         * c-common.c (warn_tautological_cmp): Fold before checking for
2866         constants.
2868 2015-11-16  Marek Polacek  <polacek@redhat.com>
2870         PR c++/68362
2871         * c-common.c (check_case_bounds): Fold low and high cases.
2873 2015-11-16  Marek Polacek  <polacek@redhat.com>
2875         * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
2876         * c-common.c (c_common_get_alias_set): Likewise.
2877         (handle_visibility_attribute): Likewise.
2879 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
2881         * c-common.c (handle_simd_attribute): New.
2882         (struct attribute_spec): Add entry for "simd".
2883         (handle_simd_attribute): New.
2885 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
2887         * c-lex.c (interpret_float): Use fold_convert.
2889 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
2891         * c-common.c (c_fully_fold_internal): Capture existing souce_range,
2892         and store it on the result.
2893         * c-opts.c (c_common_init_options): Set
2894         global_dc->colorize_source_p.
2896 2015-11-12  James Norris  <jnorris@codesourcery.com>
2897             Joseph Myers  <joseph@codesourcery.com>
2899         * c-pragma.c (oacc_pragmas): Add entry for declare directive. 
2900         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
2901         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
2902         PRAGMA_OACC_CLAUSE_LINK.
2904 2015-11-11  Marek Polacek  <polacek@redhat.com>
2906         PR c/68107
2907         PR c++/68266
2908         * c-common.c (valid_array_size_p): New function.
2909         * c-common.h (valid_array_size_p): Declare.
2911 2015-11-11  Dominique d'Humieres  <dominiq@lps.ens.fr>
2913         PR bootstrap/68271
2914         * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
2916 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
2918         * array-notation-common.c: Remove unused header files.
2919         * c-ada-spec.c: Likewise.
2920         * c-cilkplus.c: Likewise.
2921         * c-common.c: Likewise.
2922         * c-cppbuiltin.c: Likewise.
2923         * c-dump.c: Likewise.
2924         * c-format.c: Likewise.
2925         * c-gimplify.c: Likewise.
2926         * c-indentation.c: Likewise.
2927         * c-lex.c: Likewise.
2928         * c-omp.c: Likewise.
2929         * c-opts.c: Likewise.
2930         * c-pch.c: Likewise.
2931         * c-ppoutput.c: Likewise.
2932         * c-pragma.c: Likewise.
2933         * c-pretty-print.c: Likewise.
2934         * c-semantics.c: Likewise.
2935         * c-ubsan.c: Likewise.
2936         * cilk.c: Likewise.
2937         * stub-objc.c: Likewise.
2939 2015-11-09  Thomas Schwinge  <thomas@codesourcery.com>
2940             Cesar Philippidis  <cesar@codesourcery.com>
2941             James Norris  <jnorris@codesourcery.com>
2942             Julian Brown  <julian@codesourcery.com>
2943             Nathan Sidwell  <nathan@codesourcery.com>
2945         * c-pragma.c (oacc_pragmas): Add "routine".
2946         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
2948 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
2950         * c-common.c (c_common_attributes): Add scalar_storage_order.
2951         (handle_scalar_storage_order_attribute): New function.
2952         * c-pragma.c (global_sso): New variable.
2953         (maybe_apply_pragma_scalar_storage_order): New function.
2954         (handle_pragma_scalar_storage_order): Likewise.
2955         (init_pragma): Register scalar_storage_order.
2956         * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
2957         * c.opt (Wscalar-storage-order): New warning.
2958         (fsso-struct=): New option.
2960 2015-11-08  Martin Sebor  <msebor@redhat.com>
2962         * c.opt (Wplacement-new): Add a period to the end of a sentence.
2964 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
2966         * c-common.c: Don't undef DEF_BUILTIN.
2968 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
2970         * c-common.c (c_cpp_error): Convert parameter from location_t to
2971         rich_location *.  Eliminate the "column_override" parameter and
2972         the call to diagnostic_override_column.
2973         Update the "done_lexing" clause to set range 0
2974         on the rich_location, rather than overwriting a location_t.
2975         * c-common.h (c_cpp_error): Convert parameter from location_t to
2976         rich_location *.  Eliminate the "column_override" parameter.
2978 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
2979             Thomas Schwinge  <thomas@codesourcery.com>
2980             James Norris  <jnorris@codesourcery.com>
2982         * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
2983         AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses.  Associate REDUCTION
2984         clauses with parallel and kernels and loops.
2985         * c-pragma.h (enum pragma_omp_clause): Add entries for
2986         PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
2987         * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
2988         NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
2989         INDEPENDENT,SEQ}.
2990         (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
2992 2015-11-05  Martin Sebor  <msebor@redhat.com>
2994         PR c++/67942
2995         * c.opt (-Wplacement-new): New option.
2997 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
2999         * c-common.h (c_finish_omp_atomic): Add TEST argument.
3000         (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
3001         * c-omp.c (c_finish_omp_atomic): Add TEST argument.  Don't call
3002         save_expr or create_tmp_var* if TEST is true.
3003         (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
3004         Don't call add_stmt here.
3005         (struct c_omp_check_loop_iv_data): New type.
3006         (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
3007         c_omp_check_loop_iv_exprs): New functions.
3008         (c_omp_split_clauses): Adjust for lastprivate being allowed on
3009         distribute.
3010         (c_omp_declare_simd_clauses_to_numbers): Change
3011         OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
3012         (c_omp_declare_simd_clauses_to_decls): Similarly change those
3013         from numbers to PARM_DECLs.
3015 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
3017         * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
3018         flag_checking.
3020 2015-11-03  Bernd Schmidt  <bschmidt@redhat.com>
3022         PR c++-common/67882
3023         * c-common.h (fold_offsetof_1): Add argument.
3024         * c-common.c (fold_offsetof_1): Diagnose more invalid
3025         offsetof expressions that reference elements past the end of
3026         an array.
3028 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
3029             Chung-Lin Tang  <cltang@codesourcery.com>
3031         * c-pragma.c (oacc_pragmas): Add "atomic".
3032         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
3034 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
3036         * c-common.c (handle_target_clones_attribute): New.
3037         (c_common_attribute_table): Add handle_target_clones_attribute.
3038         (handle_always_inline_attribute): Add check on target_clones attribute.
3039         (handle_target_attribute): Ditto.
3041 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
3043         * array-notation-common.c: Reorder #include's and remove duplicates.
3044         * c-ada-spec.c: Likewise.
3045         * c-cilkplus.c: Likewise.
3046         * c-common.c: Likewise.
3047         * c-cppbuiltin.c: Likewise.
3048         * c-dump.c: Likewise.
3049         * c-format.c: Likewise.
3050         * c-gimplify.c: Likewise.
3051         * c-indentation.c: Likewise.
3052         * c-lex.c: Likewise.
3053         * c-omp.c: Likewise.
3054         * c-opts.c: Likewise.
3055         * c-pch.c: Likewise.
3056         * c-ppoutput.c: Likewise.
3057         * c-pragma.c: Likewise.
3058         * c-pretty-print.c: Likewise.
3059         * c-semantics.c: Likewise.
3060         * c-ubsan.c: Likewise.
3061         * cilk.c: Likewise.
3062         * stub-objc.c: Likewise.
3064 2015-10-28  Jason Merrill  <jason@redhat.com>
3066         * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
3068 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
3069             James Norris  <jnorris@codesourcery.com>
3070             Cesar Philippidis  <cesar@codesourcery.com>
3072         PR c/64765
3073         PR c/64880
3074         * c-common.h (c_oacc_split_loop_clauses): Declare function.
3075         * c-omp.c (c_oacc_split_loop_clauses): New function.
3077 2015-10-21  Martin Sebor  <msebor@redhat.com>
3079         PR driver/68043
3080         * c.opt: End each sentence that describes an option with a period.
3082 2015-10-20  Marek Polacek  <polacek@redhat.com>
3084         * array-notation-common.c (is_cilkplus_vector_p): Define.
3085         * c-common.h (is_cilkplus_vector_p): Declare.
3087 2015-10-20  Marek Polacek  <polacek@redhat.com>
3089         * c.opt (std=gnu++11): Do not describe as experimental.
3090         (std=gnu++14): Likewise.
3092 2015-10-19  Jason Merrill  <jason@redhat.com>
3094         * c-cppbuiltin.c (c_cpp_builtins): Define
3095         __cpp_nontype_template_args.
3097 2015-10-19  Jason Merrill  <jason@redhat.com>
3099         * c-cppbuiltin.c (c_cpp_builtins): Define
3100         __cpp_enumerator_attributes, __cpp_fold_expressions,
3101         __cpp_unicode_characters.
3103 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
3104             Aldy Hernandez  <aldyh@redhat.com>
3106         * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
3107         DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
3108         (c_define_builtins): Likewise.
3109         * c-common.h (enum c_omp_clause_split): Add
3110         C_OMP_CLAUSE_SPLIT_TASKLOOP.
3111         (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
3112         (c_finish_omp_for): Add ORIG_DECLV argument.
3113         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
3114         201511 instead of 201307.
3115         * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
3116         OMP_CRITICAL_CLAUSES to it.
3117         (c_finish_omp_ordered): Add CLAUSES argument, set
3118         OMP_ORDERED_CLAUSES to it.
3119         (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
3120         to it if OMP_FOR.  Clear DECL_INITIAL on the IVs.
3121         (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
3122         constructs and new OpenMP 4.5 clauses.  Clear
3123         OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD.  Add
3124         verification code.
3125         * c-pragma.c (omp_pragmas_simd): Add taskloop.
3126         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
3127         (enum pragma_omp_clause): Add
3128         PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
3129         and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
3131 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3133         * c-lex.c (interpret_float): Use real_equal instead of
3134         REAL_VALUES_EQUAL.
3136 2015-10-04  Jason Merrill  <jason@redhat.com>
3138         Implement N4514, C++ Extensions for Transactional Memory.
3139         * c-common.c (c_common_reswords): Add C++ TM TS keywords.
3140         (c_common_attribute_table): Add transaction_safe_dynamic.
3141         transaction_safe now affects type identity.
3142         (handle_tm_attribute): Handle transaction_safe_dynamic.
3143         * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
3144         RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
3145         (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
3146         (D_TRANSMEM): New.
3147         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
3148         * c-pretty-print.c (pp_c_attributes_display): Don't print
3149         transaction_safe in C++.
3151 2015-10-02  Marek Polacek  <polacek@redhat.com>
3153         * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
3155 2015-10-02  Marek Polacek  <polacek@redhat.com>
3157         PR c/64249
3158         * c-common.c (warn_duplicated_cond_add_or_warn): New function.
3159         * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
3160         * c.opt (Wduplicated-cond): New option.
3162 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
3164         * c.opt (std=c11): Do not describe as experimental.
3165         (std=gnu11): Likewise.
3166         (std=iso9899:2011): Likewise.
3168 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
3170         * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
3171         (DEF_FUNCTION_TYPE_VAR_11): Delete.
3173 2015-09-25  Marek Polacek  <polacek@redhat.com>
3175         * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
3176         (ubsan_instrument_shift): Likewise.
3178 2015-09-25  Marek Polacek  <polacek@redhat.com>
3180         PR sanitizer/64906
3181         * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
3183 2015-09-24  Patrick Palka  <ppalka@gcc.gnu.org>
3185         * c-indentation.c (should_warn_for_misleading_indentation):
3186         Compare next_stmt_vis_column with guard_line_first_nws instead
3187         of with guard_line_vis_column.
3189 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3191         PR c/49654
3192         PR c/49655
3193         * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
3194         options and options not valid for the current language.
3196 2015-09-22  Patrick Palka  <ppalka@gcc.gnu.org>
3198         * c-indentation.c (should_warn_for_misleading_indentation):
3199         Float out and consolidate the calls to get_visual_column that
3200         are passed guard_exploc as an argument.  Compare
3201         next_stmt_vis_column with guard_line_first_nws instead of with
3202         body_line_first_nws.
3204 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
3206         * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
3207         Wnamespaces): New C++ warnings.
3209 2015-09-22  Jason Merrill  <jason@redhat.com>
3211         * c-common.h (abi_compat_version_crosses): New.
3212         (warn_abi_version): Declare.
3213         * c-common.c: Define it.
3214         * c-opts.c (c_common_post_options): Handle it.
3215         flag_abi_compat_version defaults to 8.
3217 2015-09-21  Ville Voutilainen  <ville.voutilainen@gmail.com>
3219         Complete the implementation of N4230, Nested namespace definition.
3220         * c-cppbuiltin.c: Add __cpp_namespace_attributes and
3221         __cpp_nested_namespace_definitions.
3223 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3225         * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
3227 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3229         * c-pragma.c (handle_pragma_diagnostic): Use explicit location
3230         when warning.
3231         * c-pragma.h (pragma_lex): Add optional loc argument.
3233 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
3235         * c-format.c (check_format_arg): Adjust to use common block size in all
3236         object pools.
3238 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
3240         * c-format.c (location_from_offset): Update for change in
3241         signature of location_get_source_line.
3242         * c-indentation.c (get_visual_column): Likewise.
3243         (line_contains_hash_if): Likewise.
3245 2015-09-14  Marek Polacek  <polacek@redhat.com>
3247         * c-opts.c (c_common_post_options): Set C++ standard earlier, before
3248         setting various warnings.
3250 2015-09-14  Marek Polacek  <polacek@redhat.com>
3252         * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
3253         a negative value.
3255 2015-09-11  Mark Wielaard  <mjw@redhat.com>
3257         PR c/28901
3258         * c.opt (Wunused-variable): Option from common.opt.
3259         (Wunused-const-variable): New option.
3261 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
3263         PR c++/53184
3264         * c.opt ([Wsubobject-linkage]): Add.
3266 2015-09-03  Martin Sebor  <msebor@redhat.com>
3268         PR c/66516
3269         * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
3270         functions.
3271         * c-common.c (reject_gcc_builtin): Define.
3273 2015-09-02  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3275         PR middle-end/60586
3276         * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
3277         prototype.
3278         * c-gimplify.c (c_gimplify_expr): Added a call to the function
3279         cilk_gimplify_call_params_in_spawned_fn.
3280         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
3281         (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
3282         unwrapping.
3284 2015-08-25  Marek Polacek  <polacek@redhat.com>
3286         PR middle-end/67330
3287         * c-common.c (handle_weak_attribute): Don't check whether the
3288         visibility can be changed here.
3290 2015-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3292         * c-lex.c (c_lex_with_flags): Use explicit locations.
3294 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
3296         * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
3297         c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
3299 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3301         PR middle-end/36757
3302         * c-common.c (check_builtin_function_arguments): Add check
3303         for BUILT_IN_SIGNBIT argument.
3305 2015-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
3307         PR c++/67160
3308         * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
3309         in c++1z mode.
3311 2015-08-17  Marek Polacek  <polacek@redhat.com>
3313         * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
3314         with whitespaces before qualifier names.
3316 2015-08-12  Marek Polacek  <polacek@redhat.com>
3318         PR c++/55095
3319         * c-common.c (maybe_warn_shift_overflow): Properly handle
3320         left-shifting 1 into the sign bit.
3322 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3324         * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
3326 2015-08-06  Andrew Sutton  <andrew.n.sutton@gmail.com>
3327             Braden Obrzut  <admin@maniacsvault.net>
3328             Jason Merrill  <jason@redhat.com>
3330         Add C++ Concepts TS support.
3331         * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
3332         * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
3333         (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
3334         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
3335         * c-opts.c (set_std_cxx1z): Set flag_concepts.
3336         * c.opt (fconcepts): New.
3338 2015-08-02  Martin Sebor  <msebor@redhat.com>
3340         * c.opt (-Wframe-address): New warning option.
3342 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
3344         * c-indentation.c (should_warn_for_misleading_indentation):
3345         Improve heuristics.
3347 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
3349         * c-indentation.c (get_visual_column): Add parameter first_nws,
3350         use it.  Update comment documenting the function.
3351         (is_first_nonwhitespace_on_line): Remove.
3352         (should_warn_for_misleading_indentation): Replace usage of
3353         of is_first_nonwhitespace_on_line with get_visual_column.
3355 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
3357         * c-indentation.h (struct token_indent_info): Define.
3358         (get_token_indent_info): Define.
3359         (warn_for_misleading_information): Declare.
3360         * c-common.h (warn_for_misleading_information): Remove.
3361         * c-identation.c (warn_for_misleading_indentation):
3362         Change declaration to take three token_indent_infos.  Adjust
3363         accordingly.
3364         * c-identation.c (should_warn_for_misleading_indentation):
3365         Likewise.  Bail out early if the body is a compound statement.
3366         (guard_tinfo_to_string): Define.
3368 2015-07-30  Jason Merrill  <jason@redhat.com>
3370         * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
3371         '*' for reference decay.
3373 2015-07-30  Marek Polacek  <polacek@redhat.com>
3375         * c-common.c (warn_tautological_cmp): Bail for float types.
3377 2015-07-27  Marek Polacek  <polacek@redhat.com>
3379         PR bootstrap/67030
3380         * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
3382 2015-07-27  Marek Polacek  <polacek@redhat.com>
3384         PR c++/66555
3385         PR c/54979
3386         * c-common.c (find_array_ref_with_const_idx_r): New function.
3387         (warn_tautological_cmp): New function.
3388         * c-common.h (warn_tautological_cmp): Declare.
3389         * c.opt (Wtautological-compare): New option.
3391 2015-07-23  Marek Polacek  <polacek@redhat.com>
3393         * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
3394         (ubsan_instrument_shift): Likewise.
3396 2015-07-23  Marek Polacek  <polacek@redhat.com>
3398         PR sanitizer/66908
3399         * c-ubsan.c: Include gimplify.h.
3400         (ubsan_instrument_division): Unshare OP0 and OP1.
3401         (ubsan_instrument_shift): Likewise.
3403 2015-07-20  Marek Polacek  <polacek@redhat.com>
3404             Richard Sandiford  <richard.sandiford@arm.com>
3406         PR c++/55095
3407         * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
3408         Use EXPR_LOC_OR_LOC.
3409         (maybe_warn_shift_overflow): New function.
3410         * c-common.h (maybe_warn_shift_overflow): Declare.
3411         * c-opts.c (c_common_post_options): Set warn_shift_overflow.
3412         * c.opt (Wshift-overflow): New option.
3414 2015-07-16  Martin Liska  <mliska@suse.cz>
3416         * c-format.c (static void check_format_info_main): Use
3417         object_allocator instead of pool_allocator.
3418         (check_format_arg): Likewise.
3419         (check_format_info_main): Likewise.
3421 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
3423         * c-opts.c: Remove multiline #include comment.
3425 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
3427         * c-common.c: Fix double word typos.
3429 2015-07-10  Eric Botcazou  <ebotcazou@adacore.com>
3431         * c-ada-spec.h (cpp_operation): Revert latest change.
3432         * c-ada-spec.c (print_ada_declaration): Likewise.  Skip implicit
3433         constructors and destructors.
3435 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
3437         * c-common.h: Adjust includes for flags.h changes.
3438         * stub-objc.c: Likewise.
3440 2015-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3442         * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
3443         * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
3445 2015-07-08  Jakub Jelinek  <jakub@redhat.com>
3447         * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
3448         are to be removed, return NULL rather than original clauses list.
3450 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
3452         * array-notation-common.c: Adjust includes.
3453         * c-ada-spec.c: Likewise.
3454         * c-cilkplus.c: Likewise.
3455         * c-common.h: Likewise.
3456         * c-cppbuiltin.c: Likewise.
3457         * c-dump.c: Likewise.
3458         * c-format.c: Likewise.
3459         * c-gimplify.c: Likewise.
3460         * c-indentation.c: Likewise.
3461         * c-lex.c: Likewise.
3462         * c-omp.c: Likewise.
3463         * c-opts.c: Likewise.
3464         * c-pch.c: Likewise.
3465         * c-ppoutput.c: Likewise.
3466         * c-pragma.c: Likewise.
3467         * c-pretty-print.c: Likewise.
3468         * c-semantics.c: Likewise.
3469         * c-ubsan.c: Likewise.
3470         * cilk.c: Likewise.
3471         * stub-objc.c: Likewise.
3473 2015-07-07  Eric Botcazou  <ebotcazou@adacore.com>
3475         * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
3476         * c-ada-spec.c (print_ada_declaration): Skip move constructors.
3478 2015-07-01  Jason Merrill  <jason@redhat.com>
3480         * c-common.h (D_CXX11): Rename from D_CXX0X.
3481         (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
3482         * c-common.c: Adjust.
3484         * c-opts.c (c_common_post_options): Default to C++14.
3486         * c-opts.c (c_common_post_options): Highest ABI level is now 10.
3488 2015-06-30  Edward Smith-Rowland  <3dw4rd@verizon.net>
3490         Implement N4197 - Adding u8 character literals
3491         * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
3492         CPP_CHAR.
3493         * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
3494         CPP_UTF8CHAR_USERDEF tokens.
3495         * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
3496         and CPP_UTF8CHAR tokens.
3497         (lex_charconst): Treat CPP_UTF8CHAR token.
3499 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3501         PR fortran/66605
3502         * c-common.c (do_warn_unused_parameter): Move here.
3503         * c-common.h (do_warn_unused_parameter): Declare.
3505 2015-06-29  Marek Polacek  <polacek@redhat.com>
3507         PR c/66322
3508         * c-common.c (check_case_bounds): Add bool * parameter.  Set
3509         OUTSIDE_RANGE_P.
3510         (c_add_case_label): Add bool * parameter.  Pass it down to
3511         check_case_bounds.
3512         (c_do_switch_warnings): Add bool parameters.  Implement -Wswitch-bool
3513         warning here.
3514         * c-common.h (c_add_case_label, c_do_switch_warnings): Update
3515         declarations.
3517 2015-06-27  Marek Polacek  <polacek@redhat.com>
3519         * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
3520         or VECTOR_INTEGER_TYPE_P throughout.
3521         * c-gimplify.c: Likewise.
3523 2015-06-26  Marek Polacek  <polacek@redhat.com>
3525         * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
3526         * c-common.c (c_fully_fold_internal): Likewise.
3527         (c_alignof_expr): Likewise.
3528         * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
3529         * c-ubsan.c (ubsan_instrument_bounds): Likewise.
3530         * cilk.c (create_parm_list): Likewise.
3532 2015-06-26  Marek Polacek  <polacek@redhat.com>
3534         * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
3536 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
3538         * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
3539         * c-gimplify.c: Likewise.
3540         * c-pragma.c: Likewise.
3541         * c-ubsan.c: Likewise.
3542         * cilk.c: Likewise.
3544 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3546         * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
3547         ggc_hasher.
3549 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
3551         * cilk.c: Move calls.h after tm.h in the include chain.
3553 2015-06-25  Marek Polacek  <polacek@redhat.com>
3555         * array-notation-common.c: Use VAR_P throughout.
3556         * c-ada-spec.c: Likewise.
3557         * c-common.c: Likewise.
3558         * c-format.c: Likewise.
3559         * c-gimplify.c: Likewise.
3560         * c-omp.c: Likewise.
3561         * c-pragma.c: Likewise.
3562         * c-pretty-print.c: Likewise.
3563         * cilk.c: Likewise.
3565 2015-06-25  Marek Polacek  <polacek@redhat.com>
3567         * cilk.c (extract_free_variables): Use is_global_var.
3569 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
3571         * c-common.c: Don't include target-def.h.
3573 2015-06-23  Marek Polacek  <polacek@redhat.com>
3575         * c-common.c (warn_logical_operator): Use tree_int_cst_equal
3576         when comparing INTEGER_CSTs.
3578 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
3580         * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
3581         * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
3582         (dump_ada_template): Skip partially specialized types.
3584 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
3586         * c-common.c (scalar_to_vector): Use std::swap instead of manually
3587         swapping.
3589 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
3591         * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
3592         * c-ada-spec.c: Likewise.
3593         * c-cilkplus.c: Likewise.
3594         * c-common.c: Likewise.
3595         * c-common.h: Likewise.
3596         * c-cppbuiltin.c: Likewise.
3597         * c-dump.c: Likewise.
3598         * c-format.c: Likewise.
3599         * c-gimplify.c: Likewise.
3600         * c-indentation.c: Likewise.
3601         * c-lex.c: Likewise.
3602         * c-omp.c: Likewise.
3603         * c-opts.c: Likewise.
3604         * c-pch.c: Likewise.
3605         * c-ppoutput.c: Likewise.
3606         * c-pragma.c: Likewise.
3607         * c-pretty-print.c: Likewise.
3608         * c-semantics.c: Likewise.
3609         * c-ubsan.c: Likewise.
3610         * cilk.c: Likewise.
3611         * stub-objc.c: Likewise.
3613 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
3615         PR c++/65168
3616         * c-common.c (c_common_truthvalue_conversion): Warn when
3617         converting an address of a reference to a truth value.
3619 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
3621         * array-notation-common.c : Adjust include files.
3622         * c-ada-spec.c : Likewise.
3623         * c-cilkplus.c : Likewise.
3624         * c-common.c : Likewise.
3625         * c-common.h : Likewise.
3626         * c-cppbuiltin.c : Likewise.
3627         * c-dump.c : Likewise.
3628         * c-format.c : Likewise.
3629         * c-gimplify.c : Likewise.
3630         * c-indentation.c : Likewise.
3631         * c-lex.c : Likewise.
3632         * c-omp.c : Likewise.
3633         * c-opts.c : Likewise.
3634         * c-pch.c : Likewise.
3635         * c-ppoutput.c : Likewise.
3636         * c-pragma.c : Likewise.
3637         * c-pretty-print.c : Likewise.
3638         * c-semantics.c : Likewise.
3639         * c-ubsan.c : Likewise.
3640         * cilk.c : Likewise.
3641         * stub-objc.c : Likewise.
3643 2015-06-08  Marek Polacek  <polacek@redhat.com>
3645         PR c/66415
3646         * c-format.c (location_from_offset): Return LOC if LINE is null.
3648 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
3650         * c-common.h (c_parse_final_cleanups): New prototype.
3651         * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
3653 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
3655         * c-common.c (noplt): New attribute.
3656         (handle_noplt_attribute): New handler.
3658 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
3660         * array-notation-common.c: Adjust includes for restructured coretypes.h.
3661         * c-ada-spec.c: Likewise.
3662         * c-cilkplus.c: Likewise.
3663         * c-common.c: Likewise.
3664         * c-common.h: Likewise.
3665         * c-cppbuiltin.c: Likewise.
3666         * c-dump.c: Likewise.
3667         * c-format.c: Likewise.
3668         * c-gimplify.c: Likewise.
3669         * c-indentation.c: Likewise.
3670         * c-lex.c: Likewise.
3671         * c-omp.c: Likewise.
3672         * c-opts.c: Likewise.
3673         * c-pch.c: Likewise.
3674         * c-ppoutput.c: Likewise.
3675         * c-pragma.c: Likewise.
3676         * c-pretty-print.c: Likewise.
3677         * c-semantics.c: Likewise.
3678         * c-ubsan.c: Likewise.
3679         * cilk.c: Likewise.
3680         * stub-objc.c: Likewise.
3682 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
3684         PR c/66220:
3685         * c-indentation.c (should_warn_for_misleading_indentation): Use
3686         expand_location rather than expand_location_to_spelling_point.
3687         Don't warn if the guarding statement is more indented than the
3688         next/body stmts.
3690 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
3692         * c-indentation.c (warn_for_misleading_indentation): Bail out
3693         immediately if -Wmisleading-indentation isn't enabled.
3695 2015-06-01  Martin Liska  <mliska@suse.cz>
3697         * c-format.c (check_format_arg):Use new type-based pool allocator.
3698         (check_format_info_main) Likewise.
3700 2015-05-31  Eric Botcazou  <ebotcazou@adacore.com>
3702         * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
3703         (has_nontrivial_methods): Likewise.
3705 2015-05-25  Marek Polacek  <polacek@redhat.com>
3707         * c-ubsan.c (ubsan_instrument_shift): Use type0.
3709 2015-05-22  Marek Polacek  <polacek@redhat.com>
3711         PR c/47043
3712         * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
3714 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3716         * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
3717         STACK_GROWS_DOWNWARD.
3719 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3721         * c-cppbuiltin.c (c_cpp_builtins): Check the value of
3722         STACK_GROWS_DOWNWARD rather than if it is defined.
3724 2015-05-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3726         PR c/52952
3727         * c-format.c (location_column_from_byte_offset): New.
3728         (location_from_offset): New.
3729         (struct format_wanted_type): Add offset_loc field.
3730         (check_format_info): Move handling of location for extra arguments
3731         closer to the point of warning.
3732         (check_format_info_main): Pass the result of location_from_offset
3733         to warning_at.
3734         (format_type_warning): Pass the result of location_from_offset
3735         to warning_at.
3737 2015-05-20  Marek Polacek  <polacek@redhat.com>
3739         * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
3741 2015-05-20  Marek Polacek  <polacek@redhat.com>
3743         * c-ada-spec.c (dump_sloc): Use DECL_P.
3745 2015-05-20  Marek Polacek  <polacek@redhat.com>
3747         * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
3748         * c-common.c: Likewise.
3750 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
3752         * c-common.h (fe_file_change): Strengthen param from
3753         const line_map * to const line_map_ordinary *.
3754         (pp_file_change): Likewise.
3755         * c-lex.c (fe_file_change): Likewise.
3756         (cb_define): Use linemap_check_ordinary when invoking
3757         SOURCE_LINE.
3758         (cb_undef): Likewise.
3759         * c-opts.c (c_finish_options): Use linemap_check_ordinary when
3760         invoking cb_file_change.
3761         (c_finish_options): Likewise.
3762         (push_command_line_include): Likewise.
3763         (cb_file_change): Strengthen param "new_map" from
3764         const line_map * to const line_map_ordinary *.
3765         * c-ppoutput.c (cb_define): Likewise for local "map".
3766         (pp_file_change): Likewise for param "map" and local "from".
3768 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
3770         * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
3772 2015-05-18  Tom de Vries  <tom@codesourcery.com>
3774         * c-common.c (build_va_arg_1): New function.
3775         (build_va_arg): Add address operator to va_list operand if necessary.
3777 2015-05-15  Mikhail Maltsev  <maltsevm@gmail.com>
3779         PR c/48956
3780         * c-common.c (int_safely_convertible_to_real_p): Define.
3781         (unsafe_conversion_p): Check conversions involving complex types.
3782         (conversion_warning): Add new warning message for conversions which
3783         discard imaginary component.
3784         * c-common.h: (enum conversion_safety): Add new enumerator for such
3785         conversions.
3787 2015-05-14  Marek Polacek  <polacek@redhat.com>
3789         PR c/66066
3790         PR c/66127
3791         * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
3792         (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
3793         C_MAYBE_CONST_EXPR_INT_OPERANDS set.  Add FOR_INT_CONST argument and
3794         use it.  If FOR_INT_CONST, require that all evaluated operands be
3795         INTEGER_CSTs.
3797 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
3799         * c-common.h (warn_for_misleading_indentation): New prototype.
3800         * c-indentation.c: New file.
3801         * c.opt (Wmisleading-indentation): New option.
3803 2015-05-12  Tom de Vries  <tom@codesourcery.com>
3805         PR tree-optimization/66010
3806         * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
3808 2015-05-09  Jason Merrill  <jason@redhat.com>
3810         * c-opts.c (c_common_post_options): Also clear
3811         cpp_opts->cpp_warn_cxx11_compat.
3813         * c-common.h (enum cxx_dialect): Add cxx_unset.
3814         * c-common.c (cxx_dialect): Initialize to cxx_unset.
3815         * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
3817         * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
3818         (std=gnu++0x): Mark as Undocumented.
3819         (std=gnu++1y): Add deprecated message.
3821 2015-05-08  Jason Merrill  <jason@redhat.com>
3823         * c.opt (Wc++11-compat): Make primary.  Rename var warn_cxx11_compat.
3824         * c-opts.c: Adjust.
3826         * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
3828 2015-05-08  Marek Polacek  <polacek@redhat.com>
3830         PR c/64918
3831         * c.opt (Woverride-init-side-effects): New option.
3833 2015-05-07  Marek Polacek  <polacek@redhat.com>
3835         PR c/65179
3836         * c-common.c (c_fully_fold_internal): Warn when left shifting a
3837         negative value.
3838         * c.opt (Wshift-negative-value): New option.
3839         * c-opts.c (c_common_post_options): Set warn_shift_negative_value
3840         when -Wextra and C99/C++11 mode.
3842 2015-05-07  Marek Polacek  <polacek@redhat.com>
3843             Martin Uecker  <uecker@eecs.berkeley.edu>
3845         * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
3846         flexible member array-like members if SANITIZE_BOUNDS_STRICT.
3848 2015-05-05  Jason Merrill  <jason@redhat.com>
3850         * c.opt (Wterminate): New.
3852 2015-04-30  Marek Polacek  <polacek@redhat.com>
3854         * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
3855         require that the non-constant be of a boolean type.
3857 2015-04-29  Josh Triplett  <josh@joshtriplett.org>
3859         * c-common.c (handle_section_attribute): Refactor to reduce
3860         nesting and distinguish between error cases.
3862 2015-04-29  Marek Polacek  <polacek@redhat.com>
3864         PR c/64610
3865         * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
3866         with 0/1.
3868 2015-04-29  Jakub Jelinek  <jakub@redhat.com>
3870         * c-common.h (omp_clause_mask): Unconditionally define as a class.
3871         Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
3872         HOST_BITS_PER_WIDE_INT.
3874 2015-04-28  Tom de Vries  <tom@codesourcery.com>
3876         PR tree-optimization/65887
3877         * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
3879 2015-04-28  Eric Botcazou  <ebotcazou@adacore.com>
3880             Pierre-Marie de Rodat  <derodat@adacore.com>
3882         * c-ada-spec.c (in_function): Delete.
3883         (dump_generic_ada_node): Do not change in_function and remove the
3884         redundant code dealing with it.
3885         (print_ada_declaration): Do not change in_function.  Use INDENT_INCR.
3886         (print_ada_methods): Output the static member functions in a nested
3887         package after the regular methods as well as associated renamings.
3889 2015-04-24  Marek Polacek  <polacek@redhat.com>
3891         PR c/65830
3892         * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
3893         and OPT_Wshift_count_overflow.
3895         PR c/63357
3896         * c-common.c (warn_logical_operator): Warn if the operands have the
3897         same expressions.
3899 2015-04-24  Marek Polacek  <polacek@redhat.com>
3901         PR c/61534
3902         * c-common.c (warn_logical_operator): Bail if either operand comes
3903         from a macro expansion.
3905 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3907         PR target/55143
3908         * c-common.c (c_default_pointer_mode): Add definition.
3909         * c-common.h (c_default_pointer_mode): Add declaration.
3911 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
3913         * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
3914         on record_builtin_type argument.
3916 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
3918         PR c/65120
3919         * c-common.c (warn_logical_not_parentheses): Don't warn for
3920         !x == 0 or !x != 0.
3922 2015-03-07  Marek Polacek  <polacek@redhat.com>
3924         PR sanitizer/65280
3925         * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
3926         before trying to figure out whether we have a flexible array member.
3928 2015-03-06  Eric Botcazou  <ebotcazou@adacore.com>
3929             Jonathan Wakely  <jwakely.gcc@gmail.com>
3931         * c-ada-spec.c (dump_ada_double_name): Fix pasto.
3933 2015-03-05  Eric Botcazou  <ebotcazou@adacore.com>
3935         PR ada/65319
3936         * c-ada-spec.c (print_destructor): Remove obsolete code.
3938 2015-03-01  Eric Botcazou  <ebotcazou@adacore.com>
3940         * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
3941         (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
3942         DECL_TEMPLATE_RESULT emulations.
3943         (dump_ada_template)): Add guard for TYPE_METHODS.
3945 2015-02-27  Marek Polacek  <polacek@redhat.com>
3947         PR c/65040
3948         * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
3950 2015-02-27  Kai Tietz  <ktietz@redhat.com>
3952         PR c/35330
3953         * c-pragma.c (handle_pragma_weak): Do not try to create
3954         weak/alias of declarations not being function, or variable
3955         declarations.
3957 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
3959         PR libgomp/64625
3960         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
3961         Remove macros.
3962         (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
3964 2015-02-16  Marek Polacek  <polacek@redhat.com>
3966         PR c/65066
3967         * c-format.c (check_format_types): Handle null param.
3969 2015-02-13  Marek Polacek  <polacek@redhat.com>
3971         PR c/65040
3972         * c-format.c (check_format_types): Don't warn about different
3973         signedness if the original value is in the range of WANTED_TYPE.
3975 2015-02-12  Jason Merrill  <jason@redhat.com>
3977         PR c++/64956
3978         * c-opts.c (c_common_post_options): Change flag_abi_version from 0
3979         to the current highest version.
3980         * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
3982 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
3984         PR c/64824
3985         PR c/64868
3986         * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
3987         instead of RDIV_EXPR.  Use build_binary_op instead of
3988         build2_loc.
3990 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
3992         * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
3993         to pass input_location as first argument.
3995 2015-01-23  Tom de Vries  <tom@codesourcery.com>
3997         PR libgomp/64672
3998         * c.opt (fopenacc): Mark as LTO option.
4000 2015-01-23  Tom de Vries  <tom@codesourcery.com>
4002         PR libgomp/64707
4003         * c.opt (fopenmp): Mark as LTO option.
4005 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
4007         PR c/63307
4008         * cilk.c (fill_decls_vec): Only put decls into vector v.
4009         (compare_decls): Fix up formatting.
4011 2015-01-21  Igor Zamyatin  <igor.zamyatin@intel.com>
4013         PR c/63307
4014         * cilk.c: Include vec.h.
4015         (struct cilk_decls): New structure.
4016         (wrapper_parm_cb): Split this function to...
4017         (fill_decls_vec): ...this...
4018         (create_parm_list): ...and this.
4019         (compare_decls): New function.
4020         (for_local_cb): Remove.
4021         (wrapper_local_cb): Ditto.
4022         (build_wrapper_type): For now first traverse and fill vector of
4023         declarations then sort it and then deal with sorted vector.
4024         (cilk_outline): Ditto.
4025         (declare_one_free_variable): Ditto.
4027 2015-01-21  Jason Merrill  <jason@redhat.com>
4029         PR c++/64629
4030         * c-format.c (check_format_arg): Call decl_constant_value.
4032 2015-01-19  Martin Liska  <mliska@suse.cz>
4034         * c-common.c (handle_noicf_attribute): New function.
4036 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
4037             Bernd Schmidt  <bernds@codesourcery.com>
4038             James Norris  <jnorris@codesourcery.com>
4039             Cesar Philippidis  <cesar@codesourcery.com>
4040             Ilmir Usmanov  <i.usmanov@samsung.com>
4041             Jakub Jelinek  <jakub@redhat.com>
4043         * c.opt (fopenacc): New option.
4044         * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
4045         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
4046         New macros.
4047         * c-common.h (c_finish_oacc_wait): New prototype.
4048         * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
4049         (c_finish_oacc_wait): New function.
4050         * c-pragma.c (oacc_pragmas): New variable.
4051         (c_pp_lookup_pragma, init_pragma): Handle it.
4052         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
4053         PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
4054         PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
4055         PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
4056         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
4057         PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
4058         PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
4059         PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
4060         PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
4061         PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
4062         PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
4063         PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
4064         PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
4065         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
4066         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
4067         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
4068         PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
4069         PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
4070         PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
4071         PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
4072         PRAGMA_OACC_CLAUSE_WORKER.
4074 2015-01-14  Marcos Diaz  <marcos.diaz@tallertechnologies.com>
4076         * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
4077         for the new option fstack-protector_explicit.
4078         * c-common.c (c_common_attribute_table): Add stack_protect attribute.
4079         (handle_stack_protect_attribute): New function.
4081 2015-01-13  Martin Uecker  <uecker@eecs.berkeley.edu>
4083         * c.opt: New option -Warray-bounds=.
4085 2015-01-09  Michael Collison  <michael.collison@linaro.org>
4087         * array-notation-common.c: Include hash-set.h, machmode.h,
4088         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4089         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
4090         * c-ada-spec.c: Ditto.
4091         * c-cilkplus.c: Ditto.
4092         * c-common.c: Include input.h due to flattening of tree.h.
4093         Define macro GCC_C_COMMON_C.
4094         * c-common.h: Flatten tree.h header files into c-common.h.
4095         Remove include of tree-core.h.
4096         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
4097         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4098         fold-const.h, wide-int.h, and inchash.h due to
4099         flattening of tree.h.
4100         * c-dump.c: Ditto.
4101         * c-format.c: Flatten tree.h header files into c-common.h.
4102         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
4103         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4104         fold-const.h, wide-int.h, and inchash.h due to
4105         flattening of tree.h.
4106         * c-dump.c: Include hash-set.h, machmode.h,
4107         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4108         fold-const.h, wide-int.h, and inchash.h due to
4109         flattening of tree.h.
4110         * c-format.c: Include hash-set.h, machmode.h,
4111         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4112         fold-const.h, wide-int.h, inchash.h and real.h due to
4113         flattening of tree.h.
4114         * c-gimplify.c: Include hash-set.h, machmode.h,
4115         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4116         fold-const.h, wide-int.h, and inchash.h due to
4117         flattening of tree.h.
4118         * cilk.c: Ditto.
4119         * c-lex.c: Ditto.
4120         * c-omp.c: Ditto.
4121         * c-opts.c: Ditto.
4122         * c-pch.c: Ditto.
4123         * c-ppoutput.c: Ditto.
4124         * c-pragma.c: Ditto.
4125         * c-pretty-print.c: Ditto.
4126         * c-semantics.c: Ditto.
4127         * c-ubsan.c: Ditto.
4128         * stub-objc.c: Ditto.
4130 2015-01-08  Jason Merrill  <jason@redhat.com>
4132         * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
4133         do_ubsan_in_current_function.
4134         (ubsan_maybe_instrument_reference_or_call): Likewise.
4135         * c-ubsan.h: Declare it.
4137 2015-01-08  Mike Stump  <mikestump@comcast.net>
4139         * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
4141 2015-01-07  Marek Polacek  <polacek@redhat.com>
4143         PR c/64440
4144         * c-common.c (c_fully_fold_internal): Warn for division and modulo
4145         if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
4147 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
4149         PR c++/31397
4150         * c.opt (Wsuggest-override): New option.
4152 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
4154         Update copyright years.
4156 2015-01-05  Marek Polacek  <polacek@redhat.com>
4158         PR c/64423
4159         * c-common.c (warn_array_subscript_with_type_char): Add location_t
4160         parameter.  Use it.
4161         * c-common.h (warn_array_subscript_with_type_char): Update
4162         declaration.
4164 2014-12-20  Edward Smith-Rowland  <3dw4rd@verizon.net>
4166         * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
4167         Control macro with flag_sized_deallocation.
4169 2014-12-20  Martin Uecker  <uecker@eecs.berkeley.edu>
4171         * c.opt (Wdiscarded-array-qualifiers): New option.
4173 2014-12-19  Jakub Jelinek  <jakub@redhat.com>
4175         PR preprocessor/63831
4176         * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
4177         and __has_cpp_attribute here.
4178         * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
4179         c_common_has_attribute.
4180         * c-common.h (c_common_has_attribute): New prototype.
4181         * c-lex.c (init_c_lex): Set cb->has_attribute to
4182         c_common_has_attribute instead of cb_has_attribute.
4183         (get_token_no_padding): New function.
4184         (cb_has_attribute): Renamed to ...
4185         (c_common_has_attribute): ... this.  No longer static.  Use
4186         get_token_no_padding, require ()s, don't build TREE_LIST
4187         unnecessarily, fix up formatting, adjust diagnostics, call
4188         init_attributes.
4190 2014-12-15  Jason Merrill  <jason@redhat.com>
4192         * c.opt (-fsized-deallocation, -Wc++14-compat): New.
4193         (-Wsized-deallocation): New.
4194         * c-opts.c (c_common_post_options): -fsized-deallocation defaults
4195         to on in C++14 and up.
4197 2014-12-11  Jason Merrill  <jason@redhat.com>
4199         * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
4201         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
4202         we aren't complaining about VLAs.
4204 2014-12-06  Marek Polacek  <polacek@redhat.com>
4206         PR tree-optimization/64183
4207         * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
4208         shift-expression if it is integer_type_node.  Use types_compatible_p.
4210 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
4212         * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
4213         last argument from create_tmp_var_raw and create_tmp_var calls.
4214         * cilk.c (gimplify_cilk_spawn): Likewise.
4215         * c-omp.c (c_finish_omp_atomic): Likewise.
4217 2014-11-28  Marek Polacek  <polacek@redhat.com>
4219         * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
4220         instead of unsigned_type_node.
4222 2014-11-28  Marek Polacek  <polacek@redhat.com>
4224         PR c/63862
4225         * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
4226         to op1_utype.
4227         * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
4228         expression to unsigned_type_node.
4230 2014-11-20  Mark Wielaard  <mjw@redhat.com>
4232         PR debug/38757
4233         * c-opts.c (set_std_c89): Set lang_hooks.name.
4234         (set_std_c99): Likewise.
4235         (set_std_c11): Likewise.
4236         (set_std_cxx98): Likewise.
4237         (set_std_cxx11): Likewise.
4238         (set_std_cxx14): Likewise.
4239         (set_std_cxx1z): Likewise.
4241 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
4243         PR target/63764
4244         * c-common.h (convert_vector_to_pointer_for_subscript): Change
4245         return type to bool.
4246         * c-common.c: Include gimple-expr.h.
4247         (convert_vector_to_pointer_for_subscript): Change return type to
4248         bool.  If *vecp is not lvalue_p and has VECTOR_TYPE, return true
4249         and copy it into a TARGET_EXPR and use that instead of *vecp
4250         directly.
4252 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
4254         Merger of git branch "gimple-classes-v2-option-3".
4255         * ChangeLog.gimple-classes: New.
4256         * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
4257         from being just a vec<gimple> to a vec<gbind *>.
4259 2014-11-18  Jakub Jelinek  <jakub@redhat.com>
4261         PR sanitizer/63813
4262         * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
4263         argument to ptype, set type to TREE_TYPE (ptype).  Don't call
4264         get_pointer_alignment for non-pointers.  Use ptype, or if it is
4265         reference type, corresponding pointer type, as type of kind
4266         argument.
4267         (ubsan_maybe_instrument_reference,
4268         ubsan_maybe_instrument_member_call): Adjust callers.
4270 2014-11-15  Marek Polacek  <polacek@redhat.com>
4272         PR middle-end/63884
4273         * array-notation-common.c (is_sec_implicit_index_fn): Return false
4274         for NULL fndecl.
4275         (extract_array_notation_exprs): Return for NULL node.
4277 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
4279         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
4280         undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
4282 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
4284         PR c/59708
4285         * c-common.c (check_builtin_function_arguments): Handle
4286         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
4288 2014-11-10  Andi Kleen  <ak@linux.intel.com>
4290         PR c/60804
4291         * c-common.h (check_no_cilk): Declare.
4292         * cilk.c (get_error_location): New function.
4293         (check_no_cilk): Dito.
4295 2014-11-10  Andi Kleen  <ak@linux.intel.com>
4297         * cilk.c (recognize_spawn): Use expression location
4298         for error message.
4300 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
4302         * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
4304 2014-11-10  Edward Smith-Rowland  <3dw4rd@verizon.net>
4306         * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
4307         (__cpp_rtti, __cpp_exceptions): New macros for C++98;
4308         (__cpp_range_based_for, __cpp_initializer_lists,
4309         __cpp_delegating_constructors, __cpp_nsdmi,
4310         __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
4311         for C++11; (__cpp_attribute_deprecated): Remove in favor of
4312         __has_cpp_attribute.
4313         * c-lex.c (cb_has_attribute): New callback CPP function;
4314         (init_c_lex): Set has_attribute callback.
4316 2014-11-04  Richard Biener  <rguenther@suse.de>
4318         * c-common.c (shorten_compare): Do not shorten mixed
4319         DFP and non-DFP compares.
4321 2014-11-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
4323         * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
4324         * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
4325         Commentary and rearrangement of tests.
4326         * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
4327         Commentary and rearrangement of tests.
4328         * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
4329         * g++.dg/cpp1y/feat-cxx98.C: Commentary.
4331 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
4333         * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
4334         enum from machine_mode.
4336 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
4338         * c-common.c: Adjust include files.
4339         * c-gimplify.c: Ditto.
4340         * cilk.c: Ditto.
4341         * c-pragma.c: Ditto.
4342         * c-ubsan.c: Ditto.
4344 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
4346         * c-gimplify.c: Adjust include files.
4348 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4350         PR c++/53061
4351         * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
4352         c_common_initialize_diagnostics.
4353         * c-common.h: Likewise.
4355 2014-10-24  Marek Polacek  <polacek@redhat.com>
4357         PR c/56980
4358         * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
4359         print "struct"/"union"/"enum" for typedefed names.
4361 2014-10-23  Marek Polacek  <polacek@redhat.com>
4363         * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
4364         in unsigned type.
4366 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
4367             Yury Gribov  <y.gribov@samsung.com>
4369         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4370         ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
4371         instead of flag_sanitize_recover as bool flag.
4373 2014-10-21  Kirill Yukhin  <kirill.yukhin@intel.com>
4375         * cilk.c: Revert previous change.
4377 2014-10-20  Igor Zamyatin  <igor.zamyatin@intel.com>
4379         PR c/63307
4380         * cilk.c: Include vec.h.
4381         (struct cilk_decls): New structure.
4382         (wrapper_parm_cb): Split this function to...
4383         (fill_decls_vec): ...this...
4384         (create_parm_list): ...and this.
4385         (compare_decls): New function.
4386         (for_local_cb): Remove.
4387         (wrapper_local_cb): Ditto.
4388         (build_wrapper_type): For now first traverse and fill vector of
4389         declarations then sort it and then deal with sorted vector.
4390         (cilk_outline): Ditto.
4391         (declare_one_free_variable): Ditto.
4393 2014-10-17  Marek Polacek  <polacek@redhat.com>
4395         * c-opts.c (c_common_post_options): Set warn_implicit_int.
4396         * c.opt (Wimplicit-int): Initialize to -1.
4398 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
4400         * c-pragma.c: Adjust include files.
4401         * c-semantics.c: Likewise.
4403 2014-10-16  DJ Delorie  <dj@redhat.com>
4405         * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
4406         multiples of bytes.
4408 2014-10-14  Jason Merrill  <jason@redhat.com>
4410         PR c++/63455
4411         * c-common.h (CPP_PREPARSED_EXPR): New.
4412         (N_CP_TTYPES): Adjust.
4414 2014-10-15  Marek Polacek  <polacek@redhat.com>
4416         * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
4418 2014-10-14  DJ Delorie  <dj@redhat.com>
4420         * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
4421         types, not just __int128.
4422         * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
4423         types, not just __int128.
4424         (cpp_atomic_builtins): Round pointer sizes up.
4425         (type_suffix): Use type precision, not specific types.
4426         * c-common.c (c_common_reswords): Remove __int128 special case.
4427         (c_common_type_for_size): Check for all __intN types, not just
4428         __int128.
4429         (c_common_type_for_mode): Likewise.
4430         (c_common_signed_or_unsigned_type): Likewise.
4431         (c_build_bitfield_integer_type): Likewise.
4432         (c_common_nodes_and_builtins): Likewise.
4433         (keyword_begins_type_specifier): Likewise.
4434         * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
4435         __intN variants.
4437 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
4439         * c-common.c: Use hash_table instead of hashtab.
4441 2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>
4443         * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
4444         C++11 section.
4446 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
4448         PR c++/54427
4449         PR c++/57198
4450         PR c++/58845
4451         * c-common.c (warn_logical_operator): Punt for vectors.
4453 2014-10-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
4455         Implement SD-6: SG10 Feature Test Recommendations
4456         * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
4457         macros and the __has_header macro.
4459 2014-09-30  Jason Merrill  <jason@redhat.com>
4461         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
4462         RID_IS_TRIVIALLY_CONSTRUCTIBLE.
4463         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4465         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
4466         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4468         * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
4469         * c-common.c (c_common_reswords): Remove __is_convertible_to.
4471 2014-09-24  Marek Polacek  <polacek@redhat.com>
4473         PR c/61405
4474         PR c/53874
4475         * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
4477 2014-09-23  Andi Kleen  <ak@linux.intel.com>
4479         * c-common.c (handle_no_reorder_attribute): New function.
4480         (c_common_attribute_table): Add no_reorder attribute.
4482 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
4484         * c-cppbuiltin.c (c_cpp_builtins): Define
4485         __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
4486         modes.
4488 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
4490         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
4491         for supported floating-point modes.
4493 2014-09-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4495         * c.opt (Wpsabi): Use LangEnabledBy.
4496         * c-opts.c (c_common_handle_option): Do not handle here.
4498 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
4500         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
4501         macros for floating-point modes.
4503 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
4505         PR target/58757
4506         * c-cppbuiltin.c (builtin_define_float_constants): Correct
4507         __*_DENORM_MIN__ without denormals.
4509 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
4511         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4512         ubsan_instrument_vla, ubsan_instrument_return): Adjust
4513         ubsan_create_data callers.
4514         (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
4515         index is constant or BIT_AND_EXPR with constant mask and is
4516         small enough for the bound.
4517         * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
4518         ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
4520 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4522         * c.opt: Add CppReason to various flags.
4523         (Wdate-time): Re-sort.
4524         * c-common.c: Include c-common.h earlier.
4525         (struct reason_option_codes_t): Delete.
4526         (c_option_controlling_cpp_error): Prefix global type and struct
4527         with cpp_.
4529 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4531         * c.opt (Wnormalized): New.
4532         (Wnormalized=): Use Enum and Reject Negative.
4533         * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
4535 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
4537         * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
4538         digits of floating-point modes if -fbuilding-libgcc.
4540 2014-09-05  Joseph Myers  <joseph@codesourcery.com>
4542         * c-cppbuiltin.c (c_cpp_builtins): Also define
4543         __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
4544         __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
4545         __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
4546         __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
4547         __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
4548         __LIBGCC_STACK_GROWS_DOWNWARD__,
4549         __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
4550         __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
4551         __LIBGCC_DWARF_FRAME_REGISTERS__,
4552         __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
4553         __LIBGCC_STACK_POINTER_REGNUM__ and
4554         __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
4555         (builtin_define_with_value): Handle backslash-escaping in string
4556         macro values.
4558 2014-09-05  Richard Biener  <rguenther@suse.de>
4560         PR middle-end/63148
4561         * c-format.c (check_format_arg): Properly handle
4562         effectively signed POINTER_PLUS_EXPR offset.
4564 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4566         * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
4567         Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
4568         (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
4569         and Init.
4570         * c-opts.c (c_common_handle_option): Do not handle here.
4571         (sanitize_cpp_opts): Likewise.
4572         * c-common.c (struct reason_option_codes_t): Handle
4573         CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
4575 2014-09-03  Marek Polacek  <polacek@redhat.com>
4577         * c.opt (Wlogical-not-parentheses): Enable by -Wall.
4579 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
4580             Balaji V. Iyer  <balaji.v.iyer@intel.com>
4581             Igor Zamyatin  <igor.zamyatin@intel.com>
4583         * c-cilkplus.c (cilk_for_number_of_iterations): New function.
4584         * c-common.c (c_common_reswords): Added _Cilk_for.
4585         * c-common.h (enum rid): Added RID_CILK_FOR.
4586         (cilk_for_number_of_iterations): Add declaration.
4587         * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
4588         CILK_FOR.
4589         * c-pragma.c (init_pragma): Register "grainsize" pragma.
4590         * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
4592 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4594         * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
4595         Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
4596         Wundef): Use CPP, Var and Init.
4597         * c-opts.c (c_common_handle_option): Do not handle the above flags here.
4599 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4601         * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
4602         * c-opts.c (c_common_handle_option): Do not handle here.
4604 2014-08-25  Jason Merrill  <jason@redhat.com>
4606         * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
4607         -std=c++14 and -std=gnu++14, rather than the reverse.
4608         * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
4609         OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
4610         * c-common.h (cxx_dialect): Remove cxx1y.
4612 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
4614         * c-common.h (enum cxx_dialect): Add cxx14.
4615         * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
4616         * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
4617         cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
4619 2014-08-22  Jason Merrill  <jason@redhat.com>
4621         * c.opt (std=gnu++17): Fix alias.
4623 2014-08-22  Marek Polacek  <polacek@redhat.com>
4625         PR c++/62199
4626         * c-common.c (warn_logical_not_parentheses): Don't check LHS.  Don't
4627         check for vector types.  Drop LHS argument.
4628         * c-common.h (warn_logical_not_parentheses): Adjust.
4630 2014-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4632         * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
4633         (Wmultichar): Likewise.
4634         (Wdate-time): Use C-family languages instead of Common. Use CPP
4635         and Var.
4636         * c-opts.c (c_common_handle_option): Do not handle the above
4637         options here.
4638         (sanitize_cpp_opts): Likewise.
4640 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4642         PR fortran/44054
4643         * c-opts.c: Include tree-diagnostics.h.
4644         (c_diagnostic_finalizer): New.
4645         (c_common_initialize_diagnostics): Use it.
4647 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4649         PR preprocessor/51303
4650         * c-common.c (struct reason_option_codes_t option_codes):
4651         Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
4653 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4655         PR c/60975
4656         PR c/53063
4657         * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
4658         * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
4659         (c_common_post_options): Call init_global_opts_from_cpp.
4660         (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
4662 2014-08-19  Marek Polacek  <polacek@redhat.com>
4664         PR c++/62153
4665         * c-common.c (maybe_warn_bool_compare): New function.
4666         * c-common.h (maybe_warn_bool_compare): Declare.
4667         * c.opt (Wbool-compare): New option.
4669 2014-08-19  Marek Polacek  <polacek@redhat.com>
4671         * c.opt (Wc99-c11-compat): New option.
4673 2014-08-19  Marek Polacek  <polacek@redhat.com>
4675         * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
4676         to warn_c90_c99_compat.
4677         * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
4678         to -1.
4680 2014-08-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4681             Steven Bosscher  <steven@gcc.gnu.org>
4683         PR c/52952
4684         * c-format.c: Add extra_arg_loc and format_string_loc to struct
4685         format_check_results.
4686         (check_function_format): Use true and add comment for boolean
4687         argument.
4688         (finish_dollar_format_checking): Use explicit location when warning.
4689         (check_format_info): Likewise.
4690         (check_format_arg): Set extra_arg_loc and format_string_loc.
4691         (check_format_info_main): Use explicit location when warning.
4692         (check_format_types): Pass explicit location.
4693         (format_type_warning): Likewise.
4695 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4697         PR fortran/44054
4698         * c-format.c: Handle Fortran flags.
4700 2014-08-12  Igor Zamyatin  <igor.zamyatin@intel.com>
4702         PR other/61962
4703         * array-notation-common.c (find_rank): Added handling for other
4704         types of references.
4706 2014-08-10  Marek Polacek  <polacek@redhat.com>
4708         PR c/51849
4709         * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
4710         * c.opt (Wc90-c99-compat): Add option.
4712 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
4714         * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
4716 2014-08-03  Marek Polacek  <polacek@redhat.com>
4718         * c-common.c (check_case_value):  Add location_t parameter.  Use it.
4719         (c_add_case_label): Pass loc to check_case_value.
4721 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
4723         * cilk.c: Use hash_map instead of pointer_map.
4725 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
4727         * c-gimplify.c: Use hash_set instead of pointer_set.
4729 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
4731         PR middle-end/61455
4732         * array-notation-common.c (extract_array_notation_exprs): Handling
4733         of DECL_EXPR added.
4735 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
4737         * c-common.h (min_align_of_type): Removed prototype.
4738         * c-common.c (min_align_of_type): Removed.
4739         * c-ubsan.h (ubsan_maybe_instrument_reference,
4740         ubsan_maybe_instrument_member_call): New prototypes.
4741         * c-ubsan.c: Include stor-layout.h and builtins.h.
4742         (ubsan_maybe_instrument_reference_or_call,
4743         ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
4744         functions.
4746 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
4748         PR c++/60517
4749         * c.opt (-Wreturn-local-addr): Move to common.opt.
4751 2014-07-30  Jason Merrill  <jason@redhat.com>
4753         PR c++/61659
4754         PR c++/61687
4755         Revert:
4756         * c.opt (-fuse-all-virtuals): New.
4758 2014-07-30  Tom Tromey  <tromey@redhat.com>
4760         PR c/59855
4761         * c.opt (Wdesignated-init): New option.
4762         * c-common.c (c_common_attribute_table): Add "designated_init".
4763         (handle_designated_init): New function.
4765 2014-07-24  Marek Polacek  <polacek@redhat.com>
4767         PR c/57653
4768         * c-opts.c (c_finish_options): If -imacros is in effect, return.
4770 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
4772         PR preprocessor/60723 - missing system-ness marks for macro tokens
4773         * c-ppoutput.c (struct print::prev_was_system_token): New data
4774         member.
4775         (init_pp_output): Initialize it.
4776         (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
4777         (do_line_change): Return a flag saying if a line marker was
4778         emitted or not.
4779         (scan_translation_unit): Detect if the system-ness of the token we
4780         are about to emit is different from the one of the previously
4781         emitted token.  If so, emit a line marker.  Avoid emitting useless
4782         adjacent line markers.  Avoid emitting line markers for tokens
4783         originating from the expansion of built-in macros.
4784         (scan_translation_unit_directives_only): Adjust.
4786 2014-07-15  Marek Polacek  <polacek@redhat.com>
4788         * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
4789         TYPE_MAX_VALUE is NULL.
4791 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
4793         PR middle-end/61294
4794         * c.opt (Wmemset-transposed-args): New warning.
4796 2014-07-10  Jason Merrill  <jason@redhat.com>
4798         PR c++/61659
4799         PR c++/61687
4800         * c.opt (-fuse-all-virtuals): New.
4802 2014-07-09  Richard Biener  <rguenther@suse.de>
4804         PR c-family/61741
4805         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4806         using unsigned arithmetic if overflow does not wrap instead of
4807         if overflow is undefined.
4809 2014-07-06  Marek Polacek  <polacek@redhat.com>
4811         PR c/6940
4812         * c.opt (Wsizeof-array-argument): New option.
4814 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
4816         * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
4817         comments->count <= 1, as comments->entries might be NULL.
4819 2014-07-01  Marek Polacek  <polacek@redhat.com>
4821         * c.opt (Wint-conversion): New option.
4823 2014-07-01  Marek Polacek  <polacek@redhat.com>
4825         PR c/58286
4826         * c.opt (Wincompatible-pointer-types): New option.
4828 2014-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
4830         PR c++/51400
4831         * c-common.c (handle_noreturn_attribute, handle_const_attribute):
4832         Do not discard TYPE_QUALS of type.
4834 2014-06-26  Jason Merrill  <jason@redhat.com>
4836         * c-common.h (enum cxx_dialect): Add cxx1z.
4837         * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
4838         * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
4840 2014-06-26  Teresa Johnson  <tejohnson@google.com>
4842         * c-common.h (get_dump_info): Declare.
4843         * c-gimplify.c (c_genericize): Use saved dump files.
4844         * c-opts.c (c_common_parse_file): Begin and end dumps
4845         once around parsing invocation.
4846         (get_dump_info): New function.
4848 2014-06-23  Marek Polacek  <polacek@redhat.com>
4849             Andrew MacLeod  <amacleod@redhat.com>
4851         PR c/61553
4852         * c-common.c (get_atomic_generic_size): Don't segfault if the
4853         type doesn't have a size.
4855 2014-06-20  Marek Polacek  <polacek@redhat.com>
4857         * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
4858         (ubsan_walk_array_refs_r): New function.
4859         (c_genericize): Instrument array bounds.
4860         * c-ubsan.c: Include "internal-fn.h".
4861         (ubsan_instrument_division): Mark instrumented arrays as having
4862         side effects.  Adjust ubsan_type_descriptor call.
4863         (ubsan_instrument_shift): Likewise.
4864         (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
4865         (ubsan_instrument_bounds): New function.
4866         (ubsan_array_ref_instrumented_p): New function.
4867         (ubsan_maybe_instrument_array_ref): New function.
4868         * c-ubsan.h (ubsan_instrument_bounds): Declare.
4869         (ubsan_array_ref_instrumented_p): Declare.
4870         (ubsan_maybe_instrument_array_ref): Declare.
4872 2014-06-20  Hale Wang  <hale.wang@arm.com>
4874         PR lto/61123
4875         * c.opt (fshort-enums): Add to LTO.
4876         * c.opt (fshort-wchar): Likewise.
4878 2014-06-16  Marek Polacek  <polacek@redhat.com>
4880         PR c/60439
4881         * c.opt (Wswitch-bool): Add Var.
4883 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
4885         PR middle-end/61486
4886         * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
4887         #pragma omp target teams or
4888         #pragma omp {,target }teams distribute simd.
4890 2014-06-12  Jason Merrill  <jason@redhat.com>
4892         * c.opt (Wabi=, fabi-compat-version): New.
4893         * c-opts.c (c_common_handle_option): Handle -Wabi=.
4894         (c_common_post_options): Handle flag_abi_compat_version default.
4895         Disallow -fabi-compat-version=1.
4896         * c-common.h (abi_version_crosses): New.
4898 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
4900         * c-common.c (handle_section_attribute): Update handling for
4901         section names that are no longer trees.
4903 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
4905         PR fortran/60928
4906         * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
4907         (omp_pragmas): ... back here.
4909 2014-06-05  Marek Polacek  <polacek@redhat.com>
4911         PR c/49706
4912         * c-common.c (warn_logical_not_parentheses): New function.
4913         * c-common.h (warn_logical_not_parentheses): Declare.
4914         * c.opt (Wlogical-not-parentheses): New option.
4916 2014-06-04  Marek Polacek  <polacek@redhat.com>
4918         PR c/30020
4919         * c-common.c (check_case_bounds): Add location parameter.
4920         Use it.
4921         (c_add_case_label): Pass loc to check_case_bounds.
4923 2014-06-03  Marek Polacek  <polacek@redhat.com>
4925         PR c/60439
4926         * c.opt (Wswitch-bool): New option.
4928 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
4930         * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
4931         Remove prototypes.
4932         (record_types_used_by_current_var_decl): Move prototype to where
4933         it belongs.
4935         * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
4936         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
4937         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
4939 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
4941         * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
4942         * c-common.c (c_common_nodes_and_builtins): Don't initialize
4943         void_zero_node.
4944         * c-pretty-print.c (pp_c_void_constant): New function.
4945         (c_pretty_printer::constant, c_pretty_printer::primary_expression)
4946         (c_pretty_printer::expression): Handle VOID_CST.
4947         * cilk.c (extract_free_variables): Likewise.
4948         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
4949         (ubsan_instrument_vla): Use void_node instead of void_zero_node.
4951 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
4953         * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
4954         * c-pragma.c (push_alignment): Adjust.
4955         (handle_pragma_push_options): Likewise.
4957 2014-05-09  Marek Polacek  <polacek@redhat.com>
4959         PR c/50459
4960         * c-common.c (check_user_alignment): Return -1 if alignment is error
4961         node.
4962         (handle_aligned_attribute): Don't call default_conversion on
4963         FUNCTION_DECLs.
4964         (handle_vector_size_attribute): Likewise.
4965         (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
4966         (handle_sentinel_attribute): Call default_conversion and allow even
4967         integral types as an argument.
4969 2014-05-08  Marek Polacek  <polacek@redhat.com>
4971         PR c/61053
4972         * c-common.c (min_align_of_type): New function factored out from...
4973         (c_sizeof_or_alignof_type): ...here.
4974         * c-common.h (min_align_of_type): Declare.
4976 2014-05-08  Marek Polacek  <polacek@redhat.com>
4978         PR c/61077
4979         * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
4980         parameter type of main.
4982 2014-05-07  DJ Delorie  <dj@redhat.com>
4984         * c-cppbuiltin.c (print_bits_of_hex): New.
4985         (builtin_define_type_minmax): Print values using hex so as not to
4986         require a pre-computed list of string values.
4988 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
4989             Mike Stump  <mikestump@comcast.net>
4990             Richard Sandiford  <rdsandiford@googlemail.com>
4992         * c-ada-spec.c: Include wide-int.h.
4993         (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
4994         (dump_generic_ada_node): Use wide-int interfaces.
4995         * c-common.c: Include wide-int-print.h.
4996         (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
4997         (pointer_int_sum): Use wide-int interfaces.
4998         (c_common_nodes_and_builtins): Use make_int_cst.
4999         (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
5000         (handle_alloc_size_attribute): Use wide-int interfaces.
5001         (get_nonnull_operand): Likewise.
5002         * c-format.c (get_constant): Use tree_fits_uhwi_p.
5003         * c-lex.c: Include wide-int.h.
5004         (narrowest_unsigned_type): Take a widest_int rather than two
5005         HOST_WIDE_INTs.
5006         (narrowest_signed_type): Likewise.
5007         (interpret_integer): Update accordingly.  Use wide-int interfaces.
5008         (lex_charconst): Use wide-int interfaces.
5009         * c-pretty-print.c: Include wide-int.h.
5010         (pp_c_integer_constant): Use wide-int interfaces.
5011         * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
5012         INT_CST_LT_UNSIGNED.
5014 2014-05-06  Richard Biener  <rguenther@suse.de>
5016         * c-opts.c (c_common_post_options): For -freestanding,
5017         -fno-hosted and -fno-builtin disable pattern recognition
5018         if not enabled explicitely.
5020 2014-05-02  Marek Polacek  <polacek@redhat.com>
5022         * c.opt (Wsizeof-pointer-memaccess): Describe option.
5024 2014-05-01  Marek Polacek  <polacek@redhat.com>
5026         PR c/43245
5027         * c.opt (Wdiscarded-qualifiers): Add.
5029 2014-04-30  Marek Polacek  <polacek@redhat.com>
5031         * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs.  Perform
5032         INT_MIN / -1 sanitization only for integer types.
5034 2014-04-25  Marek Polacek  <polacek@redhat.com>
5036         PR c/18079
5037         * c-common.c (handle_noinline_attribute): Warn if the attribute
5038         conflicts with always_inline attribute.
5039         (handle_always_inline_attribute): Warn if the attribute conflicts
5040         with noinline attribute.
5042 2014-04-25  Marek Polacek  <polacek@redhat.com>
5044         PR c/60156
5045         * c-common.c (check_main_parameter_types): Warn about variadic main.
5047 2014-04-24  Mike Stump  <mikestump@comcast.net>
5049         * c.opt (Wshadow-ivar): Default to on.
5051 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
5053         * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
5055 2014-04-23  Marek Polacek  <polacek@redhat.com>
5057         * c-common.c (handle_tm_wrap_attribute): Tweak error message.
5059 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
5061         PR sanitizer/60275
5062         * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
5063         if flag_sanitize_undefined_trap_on_error.
5064         (ubsan_instrument_division, ubsan_instrument_shift,
5065         ubsan_instrument_vla): Likewise.  Use __ubsan_handle_*_abort ()
5066         if !flag_sanitize_recover.
5068 2014-04-22  Marc Glisse  <marc.glisse@inria.fr>
5070         PR libstdc++/43622
5071         * c-common.c (registered_builtin_types): Make non-static.
5072         * c-common.h (registered_builtin_types): Declare.
5074 2014-04-14  Richard Biener  <rguenther@suse.de>
5075         Marc Glisse  <marc.glisse@inria.fr>
5077         PR c/60819
5078         * c-common.c (convert_vector_to_pointer_for_subscript): Properly
5079         apply may-alias the scalar pointer type when applicable.
5081 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
5083         PR middle-end/60467
5084         * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
5085         as possible argument for Cilk_spawn.
5087 2014-04-11  Tobias Burnus  <burnus@net-b.de>
5089         PR c/60194
5090         * c.opt (Wformat-signedness): Add
5091         * c-format.c(check_format_types): Use it.
5093 2014-04-11  Jason Merrill  <jason@redhat.com>
5095         PR c++/57926
5096         * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
5097         default_conversion for an array argument.
5099 2014-04-08  Marek Polacek  <polacek@redhat.com>
5101         PR sanitizer/60745
5102         * c-ubsan.c: Include asan.h.
5103         (ubsan_instrument_return): Call initialize_sanitizer_builtins.
5105 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
5107         * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
5109 2014-04-02  Marek Polacek  <polacek@redhat.com>
5111         * c-common.h (c_expand_expr): Remove declaration.
5113 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
5115         PR c++/60689
5116         * c-common.c (add_atomic_size_parameter): When creating new
5117         params vector, push the size argument first.
5119 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
5121         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
5122         ubsan_instrument_vla, ubsan_instrument_return): Adjust
5123         ubsan_create_data callers.
5125 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
5127         PR debug/60603
5128         * c-opts.c (c_finish_options): Restore cb_file_change call to
5129         <built-in>.
5131 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
5133         PR middle-end/36282
5134         * c-pragma.c (apply_pragma_weak): Only look at
5135         TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
5136         DECL_ASSEMBLER_NAME_SET_P (decl).
5137         (maybe_apply_pending_pragma_weaks): Exit early if
5138         vec_safe_is_empty (pending_weaks) rather than only when
5139         !pending_weaks.
5140         (maybe_apply_pragma_weak): Likewise.  If !DECL_ASSEMBLER_NAME_SET_P,
5141         set assembler name back to NULL afterwards.
5143 2014-03-11  Jason Merrill  <jason@redhat.com>
5145         * c.opt: Add -std=gnu++14.
5147 2014-03-11  Ian Bolton  <ian.bolton@arm.com>
5149         * c-opts.c (c_common_post_options): Don't override
5150         -ffp-contract=fast if unsafe-math-optimizations is on.
5152 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
5154         * c.opt: Enable LTO FE for fshort-double.
5156 2014-03-07  Jason Merrill  <jason@redhat.com>
5158         * c.opt: Add -std=c++14.
5160 2014-03-06  Marek Polacek  <polacek@redhat.com>
5162         PR c/60197
5163         * cilk.c (contains_cilk_spawn_stmt): New function.
5164         (contains_cilk_spawn_stmt_walker): Likewise.
5165         (recognize_spawn): Give error on invalid use of _Cilk_spawn.
5166         * c-common.h (contains_cilk_spawn_stmt): Add declaration.
5168 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
5170         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
5171         (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
5172         even when flag_preprocess_only.
5174 2014-02-26  Jason Merrill  <jason@redhat.com>
5176         PR c++/59231
5177         PR c++/11586
5178         * c-common.c (shorten_compare): Don't check
5179         c_inhibit_evaluation_warnings.
5181 2014-02-19  Jakub Jelinek  <jakub@redhat.com>
5183         PR c/37743
5184         * c-common.c (c_common_nodes_and_builtins): When initializing
5185         c_uint{16,32,64}_type_node, also set corresponding
5186         uint{16,32,64}_type_node to the same value.
5188         PR c++/60267
5189         * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
5190         for PRAGMA_IVDEP if flag_preprocess_only.
5192 2014-02-12  Jakub Jelinek  <jakub@redhat.com>
5194         PR c/60101
5195         * c-common.c (merge_tlist): If copy is true, call new_tlist,
5196         if false, add ADD itself, rather than vice versa.
5197         (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
5198         copy.  For SAVE_EXPR, only call merge_tlist once.
5200 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
5202         PR middle-end/60092
5203         * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
5204         and tree_to_uhwi.
5205         (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
5206         functions.
5207         (c_common_attribute_table): Add alloc_align and assume_aligned
5208         attributes.
5210 2014-02-06  Marek Polacek  <polacek@redhat.com>
5212         PR c/60087
5213         * c-common.c (warn_for_sign_compare): Call warning_at with location
5214         instead of warning.
5216 2014-02-05  Marek Polacek  <polacek@redhat.com>
5218         PR c/53123
5219         * c-omp.c (c_finish_omp_atomic): Remove unreachable return
5220         statement.
5222 2014-02-04  Marek Polacek  <polacek@redhat.com>
5224         PR c/60036
5225         * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
5226         SAVE_EXPR.
5228 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
5230         PR c++/53017
5231         PR c++/59211
5232         * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
5233         handle_vector_size_attribute, handle_nonnull_attribute): Call
5234         default_conversion on the attribute argument.
5235         (handle_nonnull_attribute): Increment the argument number.
5237 2014-01-31  Marek Polacek  <polacek@redhat.com>
5239         PR c/59963
5240         * c-common.c (add_atomic_size_parameter): Pass vNULL to
5241         build_function_call_vec.
5242         (resolve_overloaded_builtin): Likewise.
5243         * c-common.h (build_function_call_vec): Adjust declaration.
5245 2014-01-30  Marek Polacek  <polacek@redhat.com>
5247         PR c/59940
5248         * c-common.h (unsafe_conversion_p): Adjust declaration.
5249         (warnings_for_convert_and_check): Likewise.
5250         (convert_and_check): Likewise.
5251         * c-common.c (unsafe_conversion_p): Add location parameter.  Call
5252         expansion_point_location_if_in_system_header on it.
5253         (warnings_for_convert_and_check): Add location parameter.  Call
5254         expansion_point_location_if_in_system_header on it.  Use it.
5255         (convert_and_check): Add location parameter.  Use it.
5256         (conversion_warning): Likewise.
5257         (c_add_case_label): Adjust convert_and_check calls.
5258         (scalar_to_vector): Adjust unsafe_conversion_p calls.
5260 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5262         * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
5263         flag_cilkplus.
5264         * c-pragma.c (init_pragma): Likewise.
5265         * c.opt: Likewise.
5267 2014-01-23  Marek Polacek  <polacek@redhat.com>
5269         PR c/59846
5270         * c-common.c (shorten_compare): Add location_t parameter.
5271         * c-common.h (shorten_binary_op): Adjust declaration.
5273 2014-01-23  Marek Polacek  <polacek@redhat.com>
5275         PR c/58346
5276         * c-common.c (pointer_to_zero_sized_aggr_p): New function.
5277         * c-common.h: Declare it.
5279 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
5281         * c-ada-spec.h (dump_ada_specs): Revert prototype change.
5282         * c-ada-spec.c (dump_ads): Likewise.
5283         (cpp_check): Likewise.
5284         (dump_ada_specs): Likewise.
5286 2014-01-15  Laurent Alfonsi  <laurent.alfonsi@st.com>
5288         PR c++/49718
5289         * c-common.c (handle_no_instrument_function_attribute): Allow
5290         no_instrument_function attribute in class member
5291         definition/declaration.
5293 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
5295         PR c/58943
5296         * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
5297         build_modify_expr with non-NOP_EXPR opcode.  Handle return from it
5298         being COMPOUND_EXPR.
5299         (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
5300         operand a SAVE_EXPR and second MODIFY_EXPR.
5302 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
5304         PR target/58115
5305         * c-pch.c (c_common_write_pch): Call
5306         prepare_target_option_nodes_for_pch.
5308 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
5310         Update copyright years
5312 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
5314         * array-notation-common.c, c-cilkplus.c: Use the standard form for
5315         the copyright notice.
5317 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
5319         * c-ada-spec.c (print_constructor): New function.
5320         (print_destructor): Retrieve the origin of the destructor.
5321         (print_ada_declaration): Revamp handling of constructors/destructors.
5323 2013-12-23  Stuart Hastings  <stuart@apple.com>
5324             Bill Maddox  <maddox@google.com>
5325             Jason Merrill  <jason@redhat.com>
5327         * c.opt: Add -fdeclone-ctor-dtor.
5328         * c-opts.c (c_common_post_options): Default to on iff -Os.
5330 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5332         * c-common.c (c_common_attribute_table): Added "cilk simd function"
5333         attribute.
5334         * c-pragma.h (enum pragma_cilk_clause): Remove.
5335         (enum pragma_omp_clause):  Added the following fields:
5336         PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
5337         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
5338         PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
5339         PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
5340         PRAGMA_CILK_CLAUSE_UNIFORM.
5343 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5345         * cilk.c (cilk_outline): Made this function non-static.
5346         (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
5347         (create_cilk_wrapper): Added a new parameter: a function pointer.
5348         (c_install_body_w_frame_cleanup): Remove
5349         (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
5350         * c-common.h (cilk_outline): New prototype.
5351         (gimplify_cilk_spawn): Removed two parameters.
5352         (cilk_install_body_with_frame_cleanup): New prototype.
5353         * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
5354         CILK_SPAWN_STMT case.
5356 2013-12-11  Bernd Schmidt  <bernds@codesourcery.com>
5358         * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
5360         * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
5361         (int_array_type_node): Remove.
5362         * c-common.c (c_common_nodes_and_builtins): Don't build it.
5364 2013-12-05  Marek Polacek  <polacek@redhat.com>
5366         PR c/52023
5367         * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
5368         [ADJUST_FIELD_ALIGN].
5370 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
5372         PR c/52023
5373         * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
5374         and check field alignment if set.
5375         * c-common.h (c_sizeof_or_alignof_type): Update prototype.
5376         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
5378 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
5379             Marek Polacek  <polacek@redhat.com>
5381         * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
5382         sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
5384 2013-11-29   H.J. Lu  <hongjiu.lu@intel.com>
5386         PR c/59309
5387         * cilk.c (gimplify_cilk_spawn): Properly handle function without
5388         arguments.
5390 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
5392         PR c/59280
5393         * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
5394         goto invalid.  If it is error_mark_node, don't issue further
5395         diagnostics.
5397 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
5399         * c.opt (Wopenmp-simd): New.
5401 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
5403         * c-ubsan.h (ubsan_instrument_return): New prototype.
5404         * c-ubsan.c (ubsan_instrument_return): New function.
5406 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
5408         * c-common.c: Add required include files from gimple.h.
5409         * c-gimplify.c: Likewise
5410         * cilk.c: Likewise
5412 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
5414         * c-common.c (unsafe_conversion_p): Remove use of
5415         EXPR_LOC_OR_HERE macro.
5416         (conversion_warning): Likewise.
5417         (warnings_for_convert_and_check): Likewise.
5418         (warn_for_collisions_1): Likewise.
5419         (shorten_compare): Likewise, and remove use of in_system_header
5420         macro, using the location from the former.
5421         * c-lex.c (dump_one_header): Remove use of input_filename macro.
5422         (cb_def_pragma): Remove use of in_system_header macro.
5423         (lex_string): Likewise.
5424         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5426 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
5427             Mike Stump  <mikestump@comcast.net>
5428             Richard Sandiford  <rdsandiford@googlemail.com>
5430         * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
5431         instead of TREE_INT_CST_LOW, in cases where there is a protecting
5432         tree_fits_shwi_p or tree_fits_uhwi_p.
5433         (dump_generic_ada_node): Likewise.
5434         * c-format.c (check_format_arg): Likewise.
5435         * c-pretty-print.c (pp_c_integer_constant): Likewise.
5437 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
5439         * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
5441 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
5443         PR c/53001
5444         * c-common.c (unsafe_conversion_p): Make this function
5445         return an enumeration with more detail.
5446         (conversion_warning): Use the new return type of
5447         unsafe_conversion_p to separately warn either about conversions
5448         that lower floating point number precision or about the other
5449         kinds of conversions.
5450         * c-common.h (enum conversion_safety): New enumeration.
5451         (unsafe_conversion_p): switching return type to
5452         conversion_safety enumeration.
5453         * c.opt: Adding new warning -Wfloat-conversion and
5454         enabling it with -Wconversion.
5456 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
5458         * c-opts.c: Include plugin.h.
5459         (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
5461 2013-11-19  Marek Polacek  <polacek@redhat.com>
5463         * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
5464         call.
5465         (ubsan_instrument_shift): Likewise.
5466         (ubsan_instrument_vla): Likewise.
5468 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5470         * c-common.c (convert_vector_to_pointer_for_subscript): Remove
5471         cast to unsigned type.
5473 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5475         * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
5476         tree_low_cst.
5477         (complete_array_type): Update comment to refer to tree_to_[su]hwi
5478         rather than tree_low_cst.
5480 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5482         * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
5483         tree_to_uhwi throughout.
5485 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5487         * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
5488         tree_low_cst (..., 0) with tree_to_shwi throughout.
5490 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5492         * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
5493         host_integerp (..., 1) with tree_fits_uhwi_p throughout.
5495 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5497         * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
5498         host_integerp (..., 0) with tree_fits_shwi_p throughout.
5500 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
5502         * c-cilkplus.c: New file.
5503         * c-common.c (readonly_error): Add location argument.
5504         * c-common.h (readonly_error): Same.
5505         (c_finish_cilk_clauses): Protoize.
5506         (c_check_cilk_loop): Same.
5507         c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
5508         Do not fail on error_mark_node.
5509         Abstract increment canonicalization to here...
5510         (c_omp_for_incr_canonicalize_ptr): New.
5511         c-pragma.c (init_pragma): Register "simd" pragma.
5512         c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
5513         (enum pragma_cilk_clause): New.
5515 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
5517         * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
5518         wchar_type and host_integerp checks.
5520 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
5522         * c-common.c: Likewise.
5523         * c-gimplify.c: Likewise.
5524         * cilk.c: Likewise.
5526 2013-11-14  Diego Novillo  <dnovillo@google.com>
5528         * c-common.c: Include fold-const.h.
5529         Include stor-layout.h.
5530         Include calls.h.
5531         Include stringpool.h.
5532         Include attribs.h.
5533         Include varasm.h.
5534         Include trans-mem.h.
5535         * c-cppbuiltin.c: Include stor-layout.h.
5536         Include stringpool.h.
5537         * c-format.c: Include stringpool.h.
5538         * c-lex.c: Include stringpool.h.
5539         Include stor-layout.h.
5540         * c-pragma.c: Include stringpool.h.
5541         Include attribs.h.
5542         Include varasm.h.
5543         Include gcc-symtab.h.
5544         * c-pretty-print.c: Include stor-layout.h.
5545         Include attribs.h.
5546         * cilk.c: Include stringpool.h.
5547         Include calls.h.
5549 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
5551         * c-common.h (enum rid): Add RID_AUTO_TYPE.
5552         * c-common.c (c_common_reswords): Add __auto_type.
5553         (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
5555 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
5557         * c-common.c: Include gimplify.h.
5558         * c-gimplify.c: Likewise.
5559         * cilk.c: Likewise.
5560         * c-omp.c: Include gimple-expr.h instead of gimple.h.
5561         * c-ubsan.c: Don't include gimple.h.
5563 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
5565         * c-common.c (c_common_reswords): Add _Thread_local.
5567 2013-11-09  Joseph Myers  <joseph@codesourcery.com>
5569         * c-common.c (atomic_size_supported_p): New function.
5570         (resolve_overloaded_atomic_exchange)
5571         (resolve_overloaded_atomic_compare_exchange)
5572         (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
5573         Use it instead of comparing size with a local list of sizes.
5575 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
5576             Joseph Myers  <joseph@codesourcery.com>
5578         * c-common.h (enum rid): Add RID_ATOMIC.
5579         * c-common.c (c_common_reswords): Add _Atomic.
5580         (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
5581         (keyword_is_type_qualifier): Accept RID_ATOMIC.
5582         * c-format.c (check_format_types): Check for extra _Atomic
5583         qualifiers in format argument.
5584         * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
5585         (pp_c_type_qualifier_list): Mention _Atomic in comment.
5587 2013-11-06  Tobias Burnus  <burnus@net-b.de>
5589         * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
5591 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
5593         * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
5594         standards modes.
5595         * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
5596         to mean lack of IEEE 754 support.
5598 2013-11-05  Tobias Burnus  <burnus@net-b.de>
5600         * c.opt (-Wdate-time): New option
5601         * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
5603 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
5605         * c-cppbuiltin.c (cpp_iec_559_value): Test
5606         flag_excess_precision_cmdline not flag_excess_precision.
5608 2013-11-05  Tobias Burnus  <burnus@net-b.de>
5610         * c.opt (fopenmp-simd): New option.
5611         * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
5612         (omp_pragmas): ... this new struct.
5613         (c_pp_lookup_pragma): Also walk omp_pragmas.
5614         (init_pragma): Init pragmas for -fopenmp-simd.
5616 2013-11-04  Marek Polacek  <polacek@redhat.com>
5618         PR c++/58979
5619         * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
5621 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
5623         * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
5624         New functions.
5625         (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
5627 2013-11-04  Eric Botcazou  <ebotcazou@adacore.com>
5629         * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
5630         (dump_ada_specs): Adjust prototype of second callback.
5631         * c-ada-spec.c (cpp_check): New global variable.
5632         (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
5633         (print_generic_ada_decl): Likewise.
5634         (has_static_fields): Change return type to bool and add guard.
5635         (has_nontrivial_methods): New predicate.
5636         (is_tagged_type): Change return type to bool.
5637         (separate_class_package): Call has_nontrivial_methods.
5638         (pp_ada_tree_identifier): Minor tweaks.
5639         (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
5640         (dump_ada_array_domains): Likewise.
5641         (dump_ada_array_type): Likewise.
5642         (dump_template_types): Remove cpp_check parameter and do not pass it to
5643         dump_generic_ada_node.
5644         (dump_ada_template): Likewise.
5645         (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
5646         recursively.
5647         (print_ada_methods): Change return type to integer.  Remove cpp_check
5648         parameter and do not pass it down.
5649         (dump_nested_types): Remove cpp_check parameter and do not pass it to
5650         dump_generic_ada_node.
5651         (print_ada_declaration): Likewise.  Test RECORD_OR_UNION_TYPE_P before
5652         accessing methods.
5653         (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
5654         down.  Use has_nontrivial_methods to recognize C++ classes.  Use return
5655         value of print_ada_methods.
5656         (dump_ads): Rename cpp_check parameter to check and adjust prototype.
5657         Set cpp_check to it before invoking dump_ada_nodes.
5658         (dump_ada_specs): Likewise.
5660 2013-11-03  Marek Polacek  <polacek@redhat.com>
5662         * c-ubsan.c: Don't include hash-table.h.
5663         (ubsan_instrument_vla): New function.
5664         * c-ubsan.h: Declare it.
5666 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
5668         Automated part of renaming of symtab_node_base to symtab_node.
5670         Patch autogenerated by rename_symtab.py from
5671         https://github.com/davidmalcolm/gcc-refactoring-scripts
5672         revision 58bb219cc090b2f4516a9297d868c245495ee622
5674         * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
5675         symtab_node_base to symtab_node.
5677 2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
5679         Implement C++14 digit separators.
5680         * c-lex.c (interpret_float): Remove digit separators from scratch string
5681         before building real literal.
5683 2013-10-30  Jakub Jelinek  <jakub@redhat.com>
5685         * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
5687 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5689         * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
5690         fields.
5691         (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
5692         enabled.
5693         * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
5694         (insert_cilk_frame): New prototype.
5695         (cilk_init_builtins): Likewise.
5696         (gimplify_cilk_spawn): Likewise.
5697         (c_cilk_install_body_w_frame_cleanup): Likewise.
5698         (cilk_detect_spawn_and_unwrap): Likewise.
5699         (cilk_set_spawn_marker): Likewise.
5700         (build_cilk_sync): Likewise.
5701         (build_cilk_spawn): Likewise.
5702         * cilk.c: New file.
5704 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
5706         Patch autogenerated by refactor_symtab.py from
5707         https://github.com/davidmalcolm/gcc-refactoring-scripts
5708         revision 58bb219cc090b2f4516a9297d868c245495ee622
5710         * c-gimplify.c (c_genericize): Update for conversion of symtab types
5711         to a true class hierarchy.
5712         * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
5714 2013-10-27  Richard Sandiford  <rdsandiford@googlemail.com>
5716         * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
5718 2013-10-26  Jeff Law  <law@redhat.com>
5720         * c-common.c (c_define_builtins): Remove mudflap support.
5721         * c.opt: Ignore and warn for mudflap options.
5723 2013-10-24  Tobias Burnus  <burnus@net-b.de>
5725         PR other/33426
5726         * c-pragma.c (init_pragma) Add #pragma ivdep handling.
5727         * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
5729 2013-10-23  Jason Merrill  <jason@redhat.com>
5731         * c-format.c (gcc_cxxdiag_char_table): Add %X.
5733 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
5735         * c-common.h (omp_clause_mask::operator !=): New method.
5736         * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
5737         instead of if (mask & something) tests everywhere.
5739         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
5740         201307 instead of 201107.
5741         * c-common.c (DEF_FUNCTION_TYPE_8): Define.
5742         (c_common_attribute_table): Add "omp declare target" and
5743         "omp declare simd" attributes.
5744         (handle_omp_declare_target_attribute,
5745         handle_omp_declare_simd_attribute): New functions.
5746         * c-omp.c: Include c-pragma.h.
5747         (c_finish_omp_taskgroup): New function.
5748         (c_finish_omp_atomic): Add swapped argument, if true,
5749         build the operation first with rhs, lhs arguments and use NOP_EXPR
5750         build_modify_expr.
5751         (c_finish_omp_for): Add code argument, pass it down to make_code.
5752         (c_omp_split_clauses): New function.
5753         (c_split_parallel_clauses): Removed.
5754         (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
5755         c_omp_declare_simd_clauses_to_decls): New functions.
5756         * c-common.h (omp_clause_mask): New type.
5757         (OMP_CLAUSE_MASK_1): Define.
5758         (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
5759         omp_clause_mask::operator |=, omp_clause_mask::operator ~,
5760         omp_clause_mask::operator |, omp_clause_mask::operator &,
5761         omp_clause_mask::operator <<, omp_clause_mask::operator >>,
5762         omp_clause_mask::operator ==): New methods.
5763         (enum c_omp_clause_split): New.
5764         (c_finish_omp_taskgroup): New prototype.
5765         (c_finish_omp_atomic): Add swapped argument.
5766         (c_finish_omp_for): Add code argument.
5767         (c_omp_split_clauses): New prototype.
5768         (c_split_parallel_clauses): Removed.
5769         (c_omp_declare_simd_clauses_to_numbers,
5770         c_omp_declare_simd_clauses_to_decls): New prototypes.
5771         * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
5772         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
5773         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
5774         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
5775         PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
5776         Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
5777         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
5778         PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
5779         PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
5780         PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
5781         PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
5782         PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
5783         PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
5784         PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
5785         PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
5786         PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
5787         PRAGMA_OMP_CLAUSE_UNIFORM.
5789 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
5791         PR tree-optimization/20318
5792         * c-common.c (handle_returns_nonnull_attribute): New function.
5793         (c_common_attribute_table): Add returns_nonnull.
5795 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
5797         PR c++/19476
5798         * c.opt (fcheck-new): Move to common.opt.
5800 2013-09-25  Marek Polacek  <polacek@redhat.com>
5801             Jakub Jelinek  <jakub@redhat.com>
5803         PR sanitizer/58413
5804         * c-ubsan.c (ubsan_instrument_shift): Don't instrument
5805         an expression if we can prove it is correct.
5806         (ubsan_instrument_division): Likewise.  Remove unnecessary
5807         check.
5809 2013-09-18  Marek Polacek  <polacek@redhat.com>
5811         PR sanitizer/58411
5812         * c-common.c (handle_no_sanitize_undefined_attribute): New function.
5813         Declare it.
5814         (struct attribute_spec c_common_att): Add no_sanitize_undefined.
5816 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
5818         PR target/48094
5819         * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
5820         fobjc-gc, freplace-objc-classes): Accept for LTO.
5822 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
5824         * c-target.def: New hook
5826 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
5828         PR c++/43452
5829         * c.opt (Wdelete-incomplete): Add.
5831 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
5833         * c-common.c (same_scalar_type_ignoring_signedness): Delete.
5834         (vector_types_compatible_elements_p): New function.
5835         * c-common.h: (same_scalar_type_ignoring_signedness): Delete
5836         declaration.
5837         (vector_types_compatible_elements_p): Declare.
5839 2013-09-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5841         * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
5842         a virtual member function.
5843         (pp_simple_type_specifier): Remove.
5844         (pp_c_type_specifier): Likewise.
5845         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
5846         Rename from pp_c_type_specifier.  Adjust.
5847         (c_pretty_printer::c_pretty_printer): Do not assign to
5848         simple_type_specifier.
5850 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5852         * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
5853         member function.
5854         (c_pretty_printer::storage_class_specifier): Likewise.
5855         (c_pretty_printer::initializer): Likewise.
5856         (pp_declaration): Remove.
5857         (pp_declaration_specifiers): Likewise.
5858         (pp_abstract_declarator): Likewise.
5859         (pp_declarator): Likewise.
5860         (pp_type_id): Likewise.
5861         (pp_statement): Likewise.
5862         (pp_constant): Likewise.
5863         (pp_id_expression): Likewise.
5864         (pp_primary_expression): Likewise.
5865         (pp_unary_expression): Likewise.
5866         (pp_multiplicative_expression): Likewise.
5867         (pp_conditional_expression): Likewise.
5868         (pp_assignment_expression): Likewise.
5869         (pp_expression): Likewise.
5870         (pp_c_type_id): Likewise.
5871         (pp_c_storage_class_specifier): Likewise.
5872         * c-pretty-print.c (pp_c_type_cast): Tidy.
5873         (pp_c_pointer): Likewise.
5874         (pp_c_type_specifier): Likewise.
5875         (pp_c_parameter_type_list): Likewise.
5876         (pp_c_function_definition): Likewise.
5877         (pp_c_init_declarator): Likewise.
5878         (pp_c_initializer_list): Likewise.
5879         (pp_c_constructor_elts): Likewise.
5880         (c_pretty_printer::direct_abstract_declarator): Likewise.
5881         (c_pretty_printer::declaration_specifiers): Likewise.
5882         (c_pretty_printer::primary_expression): Likewise.
5883         (c_pretty_printer::postfix_expression): Likewise.
5884         (c_pretty_printer::type_id): Rename from pp_c_type_id.
5885         (c_pretty_printer::storage_class_specifier): Rename from
5886         pp_c_storage_class_specifier.
5887         (c_pretty_printer::initializer): Rename from pp_c_initializer.
5888         (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
5889         storage_class_specifier, initializer, offset_list, flags.
5891 2013-08-30  Marek Polacek  <polacek@redhat.com>
5893         * c-ubsan.c: New file.
5894         * c-ubsan.h: New file.
5896 2013-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5898         * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
5899         member function.
5900         (c_pretty_printer::declaration_specifiers): Likewise.
5901         (c_pretty_printer::declarator): Likewise.
5902         (c_pretty_printer::abstract_declarator): Likewise.
5903         (c_pretty_printer::direct_abstract_declarator): Likewise.
5904         (c_pretty_printer::direct_declarator): Likewise.
5905         (c_pretty_printer::function_specifier): Likewise.
5906         (pp_declaration): Adjust.
5907         (pp_declaration_specifiers): Likewise.
5908         (pp_abstract_declarator): Likewise.
5909         (pp_direct_declarator): Likewise.
5910         (pp_function_specifier): Likewise.
5911         (pp_direct_abstract_declarator): Remove as unused.
5912         (pp_c_declaration): Remove.
5913         (pp_c_declaration_specifiers): Likewise.
5914         (pp_c_declarator): Likewise.
5915         (pp_c_direct_declarator): Likewise.
5916         (pp_c_function_specifier): Likewise.
5917         (pp_c_direct_abstract_declarator): Likewise.
5918         * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
5919         from pp_c_abstract_declarator.  Adjust.
5920         (c_pretty_printer::direct_abstract_declarator):  Rename from
5921         pp_c_direct_abstract_declarator.  Adjust.
5922         (c_pretty_printer::function_specifier): Rename from
5923         pp_c_function_specifier.  Adjust.
5924         (c_pretty_printer::declaration_specifiers): Rename from
5925         pp_c_declaration_specifiers.  Adjust.
5926         (c_pretty_printer::direct_declarator): Rename from
5927         pp_c_direct_declarator.  Adjust.
5928         (c_pretty_printer::declarator): Rename from pp_c_declarator.  Adjust.
5929         (c_pretty_printer::declaration): Rename from pp_c_declaration.  Adjust.
5930         (c_pretty_printer::c_pretty_printer): Do not assign to
5931         declaration, declaration_specifiers, declarator,
5932         direct_declarator, direct_abstract_declarator, function_specifier.
5934 2013-08-26  Gabriel Dos Reis  <gdre@integrable-solutions.net>
5936         * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
5937         virtual member function.
5938         (c_pretty_printer::multiplicative_expression): Likewise.
5939         (c_pretty_printer::conditional_expression): Likewise.
5940         (c_pretty_printer::assignment_expression): Likewise.
5941         (c_pretty_printer::expression): Likewise.
5942         (pp_unary_expression): Adjust.
5943         (pp_multiplicative_expression): Likewise.
5944         (pp_assignment_expression): Likewise.
5945         (pp_conditional_expression): Likewise.
5946         (pp_expression): Likewise.
5947         * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
5948         from pp_c_unary_expression.  Adjust.
5949         (c_pretty_printer::multiplicative_expression): Rename from
5950         pp_c_multiplicative_expression.  Adjust.
5951         (c_pretty_printer::conditional_expression): Rename from
5952         pp_c_conditional_expression.  Adjust.
5953         (c_pretty_printer::assignment_expression): Rename from
5954         pp_c_assignment_expression.  Adjust.
5955         (c_pretty_printer::expression): Rename from pp_c_expression.  Adjust.
5956         (c_pretty_printer::c_pretty_printer): Do not assign to
5957         unary_expression, multiplicative_expression,
5958         conditional_expression, expression.
5960 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5962         * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
5963         virtual member function.
5964         (pp_postfix_expression): Adjust.
5965         (pp_c_postfix_expression): Remove.
5966         * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
5967         from pp_c_postfix_expression.  Adjust.
5968         (c_pretty_printer::c_pretty_printer): Do not assign to
5969         postfix_expression.
5971 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5973         * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
5974         virtua member function.
5975         (pp_primary_expression): Adjust.
5976         (pp_c_primary_expression): Remove.
5977         * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
5978         from pp_c_primary_expression.  Adjust.
5979         (pp_c_initializer_list): Use pp_primary_expression.
5980         (c_pretty_printer::c_pretty_printer): Do not assign to
5981         primary_expression.
5983 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5985         * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
5986         * c-pretty-print.c (M_): Remove.
5987         (c_pretty_printer::translate_string): Define.
5988         (pp_c_type_specifier): Use it.
5989         (pp_c_primary_expression): Likewise.
5990         (pp_c_expression): Likewise.
5992 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5994         * c-pretty-print.h (c_pretty_printer::id_expression): Now a
5995         virtual function.
5996         (pp_c_id_expression): Remove.
5997         (pp_id_expression): Adjust.
5998         * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
5999         pp_c_id_expression.  Adjust.
6000         (pp_c_postfix_expression): Use pp_id_expression.
6001         (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
6003 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6005         * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
6006         member function.
6007         (pp_constant): Adjust.
6008         (pp_c_constant): Remove.
6009         * c-pretty-print.c (c_pretty_printer::constant): Rename from
6010         pp_c_constant.  Adjust.
6011         (pp_c_constant)
6012         (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
6013         (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
6015 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6017         * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
6018         (c_pretty_printer::c_pretty_printer): Declare.
6019         * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
6020         c_pretty_printer_init.  Adjust.
6021         (print_c_tree): Do not call c_pretty_printer_init.
6022         * c-ada-spec.c (dump_ads): Remove call to pp_construct.
6024 2013-08-09  Arnaud Charlet  <charlet@adacore.com>
6026         * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
6028 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
6030         PR c++/58080
6031         * c-common.c (pointer_int_sum): Add bool parameter.
6032         * c-common.h (pointer_int_sum): Adjust declaration.
6034 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6036         * c-pretty-print.c (print_c_tree): Simplify.  Use non-static local
6037         c_pretty_printer variable.
6039 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6041         * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
6042         (pp_base): Remove.
6043         (pp_c_base): Likewise.  Adjust users.
6044         * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
6045         (pp_c_whitespace): Do not call pp_base.
6046         (pp_c_left_paren): Likewise.
6047         (pp_c_right_paren): Likewise.
6048         (pp_c_left_brace): Likewise.
6049         (pp_c_right_brace): Likewise.
6050         (pp_c_left_bracket): Likewise.
6051         (pp_c_right_bracket): Likewise.
6052         (pp_c_dot): Likewise.
6053         (pp_c_ampersand): Likewise.
6054         (pp_c_star): Likewise.
6055         (pp_c_arrow): Likewise.
6056         (pp_c_semicolon): Likewise.
6057         (pp_c_complement): Likewise.
6058         (pp_c_exclamation): Likewise.
6059         (pp_c_direct_declarator): Likewise.
6060         (pp_c_ws_string): Likewise.
6061         (pp_c_identifier): Likewise.
6062         (pp_c_statement): Likewise.
6063         (print_c_tree): Likewise.
6065 2013-08-04  Ed Smith-Rowland  <3dw4rd@verizon.net>
6067         PR c++/58072
6068         * c-common.c (c_parse_error): Catch user-defined literal tokens and
6069         provide useful error strings.
6071 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6073         * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
6074         printer functions instead of pp_string or operators and punctuators.
6075         (dump_generic_ada_node): Likewise.
6076         * c-pretty-print.c (pp_c_type_specifier): Likewise.
6077         (pp_c_relational_expression): Likewise.
6078         (pp_c_logical_or_expression): Likewise.
6080 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6082         * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
6083         functions instead of pp_character.
6084         (pp_ada_tree_identifier): Likewise.
6085         (dump_ada_double_name): Likewise.
6086         (dump_ada_function_declaration): Likewise.
6087         (dump_ada_array_domains): Likewise.
6088         (dump_template_types): Likewise.
6089         (dump_generic_ada_node): Likewise.
6090         (print_ada_declaration): Likewise.
6091         (print_ada_struct_decl): Likewise.
6092         * c-pretty-print.c (pp_c_integer_constant): Likewise.
6094 2013-07-23  Tom Tromey  <tromey@redhat.com>
6096         * c-common.h (enum rid) <RID_GENERIC>: New constant.
6097         * c-common.c (c_common_reswords): Add _Generic.
6099 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
6101         * c-common.c: Fix typos.
6102         * c-common.h: Likewise.
6104 2013-07-13  Lubos Lunak  <l.lunak@suse.cz>
6106         PR c++/55203
6107         * c-common.c (c_common_attribute_table): Add warn_unused.
6108         (handle_warn_unused_attribute): New.
6110 2013-07-10  Jakub Jelinek  <jakub@redhat.com>
6112         * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
6113         for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
6115 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
6117         PR c++/57869
6118         * c.opt: Add Wconditionally-supported.
6120 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
6122         * array-notation-common.c (length_mismatch_in_expr_p): Delete
6123         unused variables l_length and l_node.
6125 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
6127         PR c/57821
6128         * c-common.c (complete_array_type): Delay folding first index
6129         like other indices.  When folding, check for index overflow.
6131 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
6133         PR c++/57509
6134         * c-common.h (c_build_vec_perm_expr): New complain argument.
6135         * c-common.c (c_build_vec_perm_expr): Likewise.
6136         Use save_expr also in C++.
6138 2013-06-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6140         * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
6141         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
6142         * c-opts.c (c_common_post_options): Likewise.
6144 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6146         * array-notation-common.c (length_mismatch_in_expr): Changed the
6147         parameter type's from a dynamic array to a vec_tree.  Also removed
6148         the size parameters.
6149         * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
6150         the change above.
6152 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6154         * c-common.h (struct cilkplus_an_parts): New structure.
6155         (struct cilkplus_an_loop_parts): Likewise.
6156         (cilkplus_extract_an_triplets): New prototype.
6157         (fix_sec_implicit_args): Likewise.
6158         * array-notation-common.c (cilkplus_extract_an_triplets): New function.
6159         (fix_sec_implicit_args): Likewise.
6161 2013-06-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6163         * array-notation-common.c (find_inv_trees): Removed an unwanted
6164         typecasting.
6165         * c-common.h (struct inv_list::additional_tcodes): Changed type from
6166         enum rid to enum tree_code.
6168 2013-06-11  Jan Hubicka  <jh@suse.cz>
6170         * c-common.c (handle_alias_ifunc_attribute): Do not set
6171         DECL_EXTERNAL for weakref variables.
6172         * c-pragma.c (handle_pragma_weak): Make sure aliases
6173         are not declared as external.
6175 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6177         * array-notation-common.c (length_mismatch_in_expr_p): Moved this
6178         function from c/c-array-notation.c.
6179         (is_cilkplus_reduce_builtin): Likewise.
6180         (find_rank): Likewise.
6181         (extract_array_notation_exprs): Likewise.
6182         (replace_array_notations): Likewise.
6183         (find_inv_trees): Likewise.
6184         (replace_inv_trees): Likewise.
6185         (contains_array_notation_expr): Likewise.
6186         (find_correct_array_notation_type): Likewise.
6187         * c-common.h (struct inv_list): Moved this struct from the file
6188         c/c-array-notation.c and added a new field called additional tcodes.
6189         (length_mismatch_in_expr_p): New prototype.
6190         (is_cilkplus_reduce_builtin): Likewise.
6191         (find_rank): Likewise.
6192         (extract_array_notation_exprs): Likewise.
6193         (replace_array_notation): Likewise.
6194         (find_inv_trees): Likewise.
6195         (replace_inv_trees): Likewise.
6196         (find_correct_array_notation_type): Likewise.
6198 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6200         * c-common.c (c_define_builtins): When cilkplus is enabled, the
6201         function array_notation_init_builtins is called.
6202         (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
6203         * c-common.def (ARRAY_NOTATION_REF): New tree.
6204         * c-common.h (build_array_notation_expr): New function declaration.
6205         (build_array_notation_ref): Likewise.
6206         (extract_sec_implicit_index_arg): New extern declaration.
6207         (is_sec_implicit_index_fn): Likewise.
6208         (ARRAY_NOTATION_CHECK): New define.
6209         (ARRAY_NOTATION_ARRAY): Likewise.
6210         (ARRAY_NOTATION_START): Likewise.
6211         (ARRAY_NOTATION_LENGTH): Likewise.
6212         (ARRAY_NOTATION_STRIDE): Likewise.
6213         * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
6214         ARRAY_NOTATION_REF.
6215         (pp_c_expression): Likewise.
6216         * c.opt (flag_enable_cilkplus): New flag.
6217         * array-notation-common.c: New file.
6219 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
6221         PR c++/57274
6222         * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
6224 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
6226         * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
6227         vectors.
6229 2013-05-07  Han Shen  <shenhan@google.com>
6231         * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
6233 2013-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6235         * c-common.c (check_user_alignment): Emit error for negative values.
6237 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
6239         * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
6241 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
6243         * c-cppbuiltin.c (c_cpp_builtins): Do not define
6244         __GXX_EXPERIMENTAL_CXX1Y__.
6246 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
6247             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6249         * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
6250         * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
6251         to simply use OPT_Wpointer_arith.
6252         (c_sizeof_or_alignof_type): Likewise.
6254 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
6256         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
6258 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
6260         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
6261         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
6262         specifiers.
6264 2013-04-07  Steven Bosscher  <steven@gcc.gnu.org>
6266         * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
6268 2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
6270         * c-common.c (pointer_int_sum): Remove dead code.
6272 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
6274         PR middle-end/56524
6275         * c-common.c (handle_optimize_attribute): Don't call
6276         save_optabs_if_changed.
6278 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
6280         PR middle-end/56461
6281         * c-pch.c (pch_init): Free target_validity at the end.
6283 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
6285         * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
6287 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
6288             Jakub Jelinek  <jakub@redhat.com>
6290         PR sanitizer/56454
6291         * c-common.c (handle_no_sanitize_address_attribute): New function.
6292         (c_common_attribute_table): Add no_sanitize_address attribute.
6293         (handle_no_address_safety_analysis_attribute): Add
6294         no_sanitize_address attribute, not no_address_safety_analysis
6295         attribute.
6297 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
6299         PR target/52555
6300         * c-common.c (handle_optimize_attribute): Call
6301         save_optabs_if_changed.
6303 2013-02-18  Jakub Jelinek  <jakub@redhat.com>
6304             Steven Bosscher  <steven@gcc.gnu.org>
6306         PR pch/54117
6307         * c-opts.c (c_common_post_options): If debug info is enabled
6308         and non-dwarf*, refuse to load PCH files and when writing PCH
6309         file warn.
6311 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
6313         PR middle-end/56167
6314         * c-common.c (handle_error_attribute): Fix condition.
6316 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
6318         PR c++/55742
6319         * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
6321 2013-01-18  Jason Merrill  <jason@redhat.com>
6323         PR target/54908
6324         * c.opt (-fextern-tls-init): New.
6325         * c-opts.c (c_common_post_options): Handle it.
6327 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
6329         PR c/48418
6330         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
6331         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
6332         and is either negative or bigger or equal to type precision
6333         of the first operand.
6335 2012-12-03  Marek Polacek  <polacek@redhat.com>
6337         PR c/55570
6338         * c-common.c (check_user_alignment): Swap order of tests,
6339         check TREE_CODE first.
6341 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
6343         PR c++/52654
6344         * c-common.h (overflow_type): New enum.
6345         (build_userdef_literal): Add overflow_type argument.
6346         (tree_userdef_literal): Add overflow_type.
6347         (USERDEF_LITERAL_OVERFLOW): New access macro.
6348         * c-common.c (build_userdef_literal): Add overflow_type
6349         argument.
6350         * c-lex.c (c_lex_with_flags): Add overflow_type to
6351         build_userdef_literal calls.
6352         (interpret_integer, interpret_float): Add overflow_type argument.
6354 2012-11-28  Richard Biener  <rguenther@suse.de>
6356         PR c/35634
6357         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
6358         here and use a type with proper overflow behavior for types that would
6359         need to be promoted for the arithmetic.
6361 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
6363         PR sanitizer/55435
6364         * c-common.c (handle_no_address_safety_analysis_attribute): New
6365         function.
6366         (c_common_attribute_table): Add no_address_safety_analysis.
6368 2012-11-16  Simon Baldwin  <simonb@google.com>
6370         * c.opt: Add f[no-]canonical-system-headers.
6371         * c-opts.c (c_common_handle_option): Handle
6372         OPT_fcanonical_system_headers.
6374 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
6376         PR c++/54413
6377         * c-opts.c (c_common_handle_option): Set new flags.
6378         * c.opt: Describe new flags.
6380 2012-11-09  Jason Merrill  <jason@redhat.com>
6382         * c.opt (Wabi-tag): New.
6384 2012-11-09  Andi Kleen  <ak@linux.intel.com>
6386         PR 55139
6387         * c-common.c (get_atomic_generic_size): Mask with
6388         MEMMODEL_MASK
6390 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6392         PR c/53063
6393         * c.opt (Wformat): Make it Alias Wformat=1.
6394         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
6395         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
6396         LangEnabledBy.
6397         (Wformat=): RejectNegative. Use LangEnabledBy.
6398         (Wnonnull): Use LangEnabledBy.
6399         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
6400         * c-format.c (set_Wformat): Delete.
6401         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
6402         (maybe_read_dollar_number):  Likewise.
6403         (avoid_dollar_number):  Likewise.
6404         (finish_dollar_format_checking):  Likewise.
6405         (check_format_info):  Likewise.
6406         (check_format_info_main):  Likewise.
6407         (check_format_types):  Likewise.
6408         (format_type_warning):  Likewise.
6409         * c-common.c (int):  Likewise.
6410         (check_function_sentinel):  Likewise.
6411         * c-common.h (warn_format,set_Wformat): Do not declare here.
6413 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6415         PR c/53063
6416         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
6417         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
6418         Use LangEnabledBy.
6419         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
6420         common.opt.
6421         (Wvariadic-macros): Init(1).
6422         * c-opts.c (c_common_handle_option): Do not handle them
6423         explicitly.
6424         (c_common_post_options): Likewise.
6425         (sanitize_cpp_opts): warn_unused_macros is now
6426         cpp_warn_unused_macros.
6427         (push_command_line_include): Likewise.
6428         * c-common.c (warn_unknown_pragmas): Do not define.
6429         * c-common.h (warn_unknown_pragmas): Do not declare.
6431 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6433         PR c/51294
6434         * c-common.c (conversion_warning): Handle conditional expressions.
6436 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
6438         PR c++/54930
6439         * c.opt (Wreturn_local_addr): Define new option.
6441 2012-10-25  Jason Merrill  <jason@redhat.com>
6443         * c.opt (Wvirtual-move-assign): New.
6445         * c.opt (Winherited-variadic-ctor): New.
6447 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
6449         PR c++/54427
6450         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
6452 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
6454         * c-common.h (pch_cpp_save_state): Declare.
6455         * c-target.def (c_preinclude): New hook.
6456         * c-opts.c (done_preinclude): New.
6457         (push_command_line_include): Handle default preincluded header.
6458         (cb_file_change): Call pch_cpp_save_state when calling
6459         push_command_line_include.
6460         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
6461         (pch_cpp_save_state): New.
6462         (pch_init): Call pch_cpp_save_state conditionally, instead of
6463         calling cpp_save_state.
6465 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6467         PR c/53063
6468         PR c/40989
6469         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
6470         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
6471         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
6472         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
6473         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
6474         * c-opts.c (c_common_handle_option): Remove explicit handling from
6475         here.
6476         (c_common_post_options): Likewise.
6478 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
6480         * c-ada-spec.c (LOCATION_COL): Delete.
6481         (compare_location): New function.
6482         (compare_node): Use it.
6483         (compare_comment): Likewise.
6485 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6487         PR c/53063
6488         PR c/40989
6489         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
6490         * c-opts.c (c_common_handle_option): Do not set them here. Add
6491         comment.
6492         (c_common_post_options): Likewise.
6494 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
6496         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
6497         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
6498         Remove POINTER_TYPE handling, add large unsigned handling and use
6499         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
6501 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
6503         PR c/54381
6504         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
6505         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
6506         locs and array of 3 trees instead of just single loc and single
6507         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
6508         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
6509         For *cmp* builtins that take two sources strings report warnings
6510         about first and second source, not about destination and source.
6512 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
6514         PR c++/53055
6515         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
6517 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
6519         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
6520         declaring something coming from another file.
6522 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
6524         PR ada/54845
6525         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
6527 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
6529         PR c++/54194
6530         * c-common.c (warn_about_parentheses): Add location_t parameter;
6531         use EXPR_LOC_OR_LOC.
6532         * c-common.h: Update declaration.
6534 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
6536         PR c++/54427
6537         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
6538         more operations. Make error messages optional.
6539         * c-common.h (enum stv_conv): Moved from c-typeck.c.
6540         (scalar_to_vector): Declare.
6542 2012-10-08  Jason Merrill  <jason@redhat.com>
6544         * c-common.c (c_common_reswords): Add thread_local.
6546 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
6548         PR c++/53528 C++11 attribute support
6549         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
6550         new functions.
6551         * c-common.c (check_cxx_fundamental_alignment_constraints): New
6552         static function.
6553         (handle_aligned_attribute): In choose strictest alignment
6554         among many.  Use new check_cxx_fundamental_alignment_constraints.
6555         (handle_transparent_union_attribute): In c++11 attribute syntax,
6556         don't look through typedefs.
6558 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
6560         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
6561         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
6562         out of dumpfile.h.
6564 2012-09-25  Dehao Chen  <dehao@google.com>
6566         PR middle-end/54645
6567         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6568         map when read in the pch.
6570 2012-09-18  Arnaud Charlet  <charlet@adacore.com>
6572         * c-ada-spec.c: Style fixes.
6574 2012-09-18  Thomas Quinot  <quinot@adacore.com>
6576         * c.opt (-fada-spec-parent): Define new command line switch.
6577         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
6578         is specified, generate binding spec as a child of the specified unit.
6580 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
6581             Manuel López-Ibáñez  <manu@gcc.gnu.org>
6583         PR c++/53210
6584         * c.opt ([Winit-self]): Enabled by -Wall in C++.
6586 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
6588         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
6589         for pointers, and add missing Convention C pragma.
6590         (print_ada_struct_decl): Add missing aliased keyword.
6591         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
6593 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
6595         * c-common.c (sizeof_pointer_memaccess_warning): New function.
6596         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
6597         * c-opts.c (c_common_handle_option): Enable it for -Wall.
6598         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
6599         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
6601 2012-08-10  Richard Guenther  <rguenther@suse.de>
6603         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
6605 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
6607         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
6608         instead of separate pp_newline and pp_flush.
6609         (print_c_tree): Likewise.
6611 2012-07-26  Richard Henderson  <rth@redhat.com>
6613         * c-common.c (handle_hot_attribute): Allow labels.
6614         (handle_cold_attribute): Likewise.
6616 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
6618         PR c++/28656
6619         * c-common.c (check_function_nonnull): Handle multiple nonnull
6620         attributes properly.
6622 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
6624         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
6625         * c-ada-spec.c: Likewise.
6626         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
6628 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
6630         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
6631         Remove code conditional on it.
6633 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
6635         * c-gimplify.c: Do not include basic-block.h.
6636         * c-common.c: Do not include linfuncs.h.
6638 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
6640         * c-common.h: Include tree.h.
6642 2012-07-02  Jason Merrill  <jason@redhat.com>
6644         PR c++/53524
6645         * c-common.c (get_priority): Call default_conversion.
6647 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
6649         * c-pch.c (c_common_write_pch): Remove unused variables.
6651 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
6653         * cppspec.c: Moved from gcc/ to here.
6655 2012-06-27  Kai Tietz  <ktietz@redhat.com>
6657         PR preprocessor/37215
6658         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
6660 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
6662         * c-common.h (c_common_print_pch_checksum): Remove.
6663         * c-pch.c: Do not include output.h.
6664         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
6665         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
6666         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
6667         (struct c_pch_header): Remove.
6668         (get_ident): Update gpch version.
6669         (pch_init): Do not print executable_checksum to asm_out_file.
6670         Do not fail if there is no asm_out_file to read back from.  Set
6671         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
6672         (c_common_write_pch): Verify that nothing was written to asm_out_file
6673         since pch_init was called.  Do not write a c_pch_header, and do not
6674         copy from asm_out_file to the PCH.
6675         (c_common_read_pch): Do not read a c_pch_header, and do not restore
6676         the content of asm_out_file from the PCH.
6677         (c_common_print_pch_checksum): Remove.
6678         * c-opts.c (c_common_init): Print out executable_checksum directly.
6680 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
6682         * c-target.def (objc_declare_unresolved_class_reference,
6683         objc_declare_class_definition): Add new hooks.
6685 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
6687         * c-lex.c: Do not include output.h.
6688         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
6689         Remove uses of ASM_OUTPUT_IDENT.
6691 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
6693         PR c++/51033
6694         * c-common.h (c_build_vec_perm_expr): Move decl here.
6695         * c-common.c (c_build_vec_perm_expr): Move definition
6696         here.
6698 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
6700         * c.opt (fconserve-space): Turn into a no-op.
6702 2012-06-04  Sterling Augustine  <saugustine@google.com>
6704         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
6705         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
6706         both the start and end of the function.
6708 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
6710         * c-common.c: Do not include output.h.
6711         * c-pragma.c: Likewise.
6713 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
6715         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
6716         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
6717         (lang_decl_name): Handle namespace decls.
6719 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
6721         * c-ada-spec.c: Do not include output.h.
6722         * c-semantics.c: Likewise.
6724 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
6726         * c-common.c: Fix typo.
6728 2012-05-29  Michael Matz  <matz@suse.de>
6730         * c-common.h (c_expand_decl): Remove prototype.
6732 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6734         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
6735         * c-opts.c (c_common_handle_option): Remove code handling
6736         warn_missing_braces.
6738 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
6740         PR c++/25137
6741         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
6742         -Wmissing_braces.
6744 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
6746         PR c++/53322
6747         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
6749 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6751         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
6752         * c-opts.c (c_common_handle_option): Do not handle explicitly
6753         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
6755 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
6757         PR preprocessor/7263
6758         * c-lex.c (c_lex_with_flags):  Pass a virtual location to the call
6759         to cpp_classify_number.  For diagnostics, use the precise location
6760         instead of the global input_location.
6762 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
6764         PR c++/11856
6765         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
6767 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
6769         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
6771 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6773         PR 53063
6774         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
6775         Wreorder): Use LangEnabledBy.
6776         * c-opts.c (c_common_handle_option): Do not enable them
6777         explicitly. Call lang-specific generated functions.
6778         (c_common_post_options): Do not set them here.
6780 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6782         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
6783         Wmissing-field-initializers,Wmissing-parameter-type,
6784         Wold-style-declaration,Woverride-init): Use EnabledBy.
6785         * c-opts.c (c_common_post_options): Do not set here explicitly.
6787 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6789         PR 53063
6790         * c-opts.c (c_common_handle_option): Use handle_generated_option
6791         to enable sub-options.
6793 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
6795         PR c++/53158
6796         * c-common.c (warnings_for_convert_and_check): Use warning_at.
6798 2012-05-10  Richard Guenther  <rguenther@suse.de>
6800         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
6801         adjust commentary about TYPE_IS_SIZETYPE types.
6803 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6805         PR c++/53261
6806         * c-common.c (warn_logical_operator): Check that argument of
6807         integer_zerop is not NULL.
6809 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6811         PR c/43772
6812         * c-common.c (warn_logical_operator): Do not warn if either side
6813         is already true or false.
6815 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6817         PR c/51712
6818         * c-common.c (expr_original_type): New.
6819         (shorten_compare): Do not warn for enumeration types.
6821 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6823         * c.opt (fpermissive): Add Var(flag_permissive).
6825 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
6827         PR c++/51033
6828         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
6829         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
6831 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
6833         Add -Wvarargs option
6834         * c.opt (Wvarargs):  Define new option.
6836 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6838         * c-common.c (check_function_arguments): Replace
6839         Wmissing-format-attribute with Wsuggest-attribute=format.
6841 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6843         * c.opt (Wsuggest-attribute=format): New. Alias of
6844         Wmissing-format-attribute.
6845         * c-format.c (decode_format_type): Replace
6846         Wmissing-format-attribute with Wsuggest-attribute=format.
6847         (check_function_format): Likewise.
6849 2012-04-27  Ollie Wild  <aaw@google.com>
6851         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
6852         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
6853         * c.opt: Add Wliteral-suffix.
6855 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6857         PR c/44774
6858         * c.opt (Wpedantic): New.
6859         (pedantic): Alias Wpedantic.
6860         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
6861         (c_common_post_options): Likewise.
6862         (sanitize_cpp_opts): Likewise.
6863         * c-lex.c (interpret_float): Likewise.
6864         * c-format.c (check_format_types): Likewise.
6865         * c-common.c (pointer_int_sum): Likewise.
6866         (c_sizeof_or_alignof_type): Likewise.
6867         (c_add_case_label): Likewise.
6868         (c_do_switch_warnings): Likewise.
6869         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
6871 2012-04-15  Jason Merrill  <jason@redhat.com>
6873         PR c++/52818
6874         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
6875         (C_STD_NAME): Distinguish between C++98 and C++11.
6877 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6879         PR target/52624
6880         * c-common.h (uint16_type_node): Rename into...
6881         (c_uint16_type_node): ...this.
6882         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
6883         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
6885 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6887         * c-common.c (warn_if_unused_value): Move definition to here.
6888         * c-common.h (warn_if_unused_value): Move declaration to here.
6890 2012-03-23  William Bader  <williambader@hotmail.com>
6892         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
6894 2012-03-20  Jason Merrill  <jason@redhat.com>
6896         * c-common.h (enum cxx_dialect): Add cxx1y.
6897         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
6898         test.
6899         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
6900         * c-opts.c (c_common_post_options): Likewise.
6901         (set_std_cxx1y): New.
6902         (c_common_handle_option): Call it.
6903         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
6905 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
6907         PR c++/14710
6908         * c.opt ([Wuseless-cast]): Add.
6910 2012-03-16  Richard Guenther  <rguenther@suse.de>
6912         * c-pretty-print.c (pp_c_initializer_list): Adjust.
6914 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6916         PR c++/44783
6917         * c.opt (ftemplate-backtrace-limit) Add.
6919 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6921         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
6922         handling.
6923         * c-pragma.c (handle_pragma_extern_prefix): Remove.
6924         (init_pragma): Don't register extern_prefix.
6926 2012-03-12  Richard Guenther  <rguenther@suse.de>
6928         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
6929         (builtin_type_for_size): Likewise.
6931 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
6933         PR c++/52215
6934         * c-common.c (sync_resolve_params): Don't decide whether to convert
6935         or not based on TYPE_SIZE comparison, convert whenever arg_type
6936         is unsigned INTEGER_TYPE.
6938 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
6940         PR c/52118
6941         * c.opt ([Wunused-local-typedefs]): Fix description.
6943 2012-01-24  Mike Stump  <mikestump@comcast.net>
6945         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
6946         exactly.
6948 2012-01-18  Richard Guenther  <rguenther@suse.de>
6950         * c-opts.c (c_common_post_options): Reset LTO flags if
6951         we are about to generate a PCH.
6953 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
6955         PR c++/51777
6956         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
6957         use pp_unsigned_wide_integer.
6959 2012-01-10  Richard Guenther  <rguenther@suse.de>
6961         PR middle-end/51806
6962         * c-opts.c (c_common_handle_option): Move -Werror handling
6963         to language independent code.
6965 2012-01-05  Richard Guenther  <rguenther@suse.de>
6967         PR middle-end/51764
6968         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
6969         from common.opt.
6971 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
6973         PR c++/51316
6974         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
6975         of array types with an unknown bound.
6977 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
6979         * c-common.c (flag_isoc99): Update comment to refer to C11.
6980         (flag_isoc1x): Change to flag_isoc11.
6981         * c-common.h (flag_isoc99): Update comment to refer to C11.
6982         (flag_isoc1x): Change to flag_isoc11.
6983         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
6984         C11.
6985         * c-opts.c (set_std_c1x): Change to set_std_c11.
6986         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
6987         Call set_std_c11.
6988         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
6989         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
6990         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
6991         standard.
6992         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
6993         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
6994         (std=gnu1x): Make alias of std=gnu11.
6996 2011-12-19  Jason Merrill  <jason@redhat.com>
6998         PR c++/51228
6999         * c-common.c (handle_transparent_union_attribute): Check the first
7000         field if the type is complete.
7002 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
7004         PR libstdc++/51365
7005         * c-common.c (RID_IS_FINAL): Add.
7006         * c-common.h (RID_IS_FINAL): Add.
7008 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
7010         * c.opt (fgnu-runtime): Provide full description.
7011         (fnext-runtime): Likewise.
7012         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
7014 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
7016         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
7017         predefines in one place.  Add LOCK_FREE predefines.
7018         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
7019         new func.
7021 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
7023         PR c/51256
7024         * c-common.c (get_atomic_generic_size): Check for various error
7025         conditions
7026         (resolve_overloaded_atomic_exchange,
7027         resolve_overloaded_atomic_compare_exchange,
7028         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
7029         error_mark_node for error conditions.
7031 2011-11-08  Richard Guenther  <rguenther@suse.de>
7033         PR middle-end/51010
7034         c-family/
7036 2011-11-07  Richard Henderson  <rth@redhat.com>
7037             Aldy Hernandez  <aldyh@redhat.com>
7038             Torvald Riegel  <triegel@redhat.com>
7040         Merged from transactional-memory.
7042         * c-common.c (handle_tm_wrap_attribute,
7043         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
7044         (struct c_common_reswords): Added __transaction* keywords.
7045         (struct c_common_attribute_table): Added transaction* and tm_regparm
7046         attributes.
7047         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
7048         masks.
7049         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
7050         find_tm_attribute): Declare.
7052 2011-11-07  Jason Merrill  <jason@redhat.com>
7054         PR c++/35688
7055         * c-common.c, c-common.h: Revert yesterday's changes.
7057 2011-11-06  Jason Merrill  <jason@redhat.com>
7059         PR c++/35688
7060         * c-common.c (decl_has_visibility_attr): Split out from...
7061         (c_determine_visibility): ...here.
7062         * c-common.h: Declare it.
7064 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
7066         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
7067         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
7068         type.
7069         (check_user_alignment): New.  Split out of
7070         handle_aligned_attribute.  Disallow integer constants with
7071         noninteger types.  Conditionally allow zero.
7072         (handle_aligned_attribute): Use check_user_alignment.
7073         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
7075 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
7076             Richard Henderson  <rth@redhat.com>
7078         Merged from cxx-mem-model.
7080         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
7081         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
7082         parameters that are the same type size.
7083         (get_atomic_generic_size): New.  Find size of generic
7084         atomic function parameters and do typechecking.
7085         (add_atomic_size_parameter): New.  Insert size into parameter list.
7086         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
7087         either __atomic_exchange_n or external library call.
7088         (resolve_overloaded_atomic_compare_exchange): Restructure
7089         __atomic_compare_exchange to either _n variant or external library call.
7090         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
7091         __atomic_load_n or an external library call.
7092         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
7093         __atomic_store_n or an external library call.
7094         (resolve_overloaded_builtin): Handle new __atomic builtins.
7096 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
7098         PR c++/50608
7099         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
7100         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
7101         <INDIRECT_REF>: Return the argument.
7102         <ARRAY_REF>: Remove special code for negative offset.
7103         Call fold_build_pointer_plus instead of size_binop.
7104         (fold_offsetof): Remove STOP_REF argument and adjust.
7105         * c-common.h (fold_offsetof_1): Declare.
7106         (fold_offsetof): Remove STOP_REF argument.
7108 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
7110         PR c++/50810
7111         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7112         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7113         Wnarrowing for C++0x and C++98.
7114         * c.opt ([Wnarrowing]): Update.
7116 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
7118         PR c++/44277
7119         * c.opt: Add Wzero-as-null-pointer-constant.
7121 2011-10-31  Jason Merrill  <jason@redhat.com>
7123         * c.opt (-fdeduce-init-list): Off by default.
7125         PR c++/50920
7126         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
7127         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
7128         and -Wc++11-compat.
7129         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
7131 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
7133         PR c++/30066
7134         * c.opt (fvisibility-inlines-hidden): Description change.
7136 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
7138         Implement C++11 user-defined literals.
7139         * c-common.c (build_userdef_literal): New.
7140         * c-common.def: New tree code.
7141         * c-common.h (tree_userdef_literal): New tree struct and accessors.
7142         * c-lex.c (interpret_float): Add suffix parm.
7143         (c_lex_with_flags): Build literal tokens.
7145 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
7147         PR c++/50841
7148         Revert:
7149         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
7151         PR c++/50810
7152         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7153         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7154         Wnarrowing for C++0x and C++98.
7155         * c.opt ([Wnarrowing]): Update.
7157 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
7159         PR c++/50810
7160         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7161         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7162         Wnarrowing for C++0x and C++98.
7163         * c.opt ([Wnarrowing]): Update.
7165 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
7167         PR c++/45385
7168         * c-common.c (conversion_warning): Remove code looking for
7169         artificial operands.
7171 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
7173         PR bootstrap/50760
7174         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
7175         !NO_IMPLICIT_EXTERN_C.
7177 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
7179         * c-common.c (c_common_reswords): Add __bases,
7180         __direct_bases.
7181         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
7183 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
7185         PR c++/50757
7186         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
7188 2011-10-15  Tom Tromey  <tromey@redhat.com>
7189             Dodji Seketeli  <dodji@redhat.com>
7191         * c.opt (fdebug-cpp): New option.
7192         * c-opts.c (c_common_handle_option): Handle the option.
7193         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
7194         output stream in parameter. Factorized from ...
7195         (maybe_print_line): ... this. Dump location debug information when
7196         -fdebug-cpp is in effect.
7197         (print_line_1): New static function. Takes an output stream in
7198         parameter. Factorized from ...
7199         (print_line): ... here. Dump location information when -fdebug-cpp
7200         is in effect.
7201         (scan_translation_unit): Dump location information when
7202         -fdebug-cpp is in effect.
7204 2011-10-15  Tom Tromey  <tromey@redhat.com>
7205             Dodji Seketeli  <dodji@redhat.com>
7207         * c.opt (ftrack-macro-expansion): New option. Handle it with and
7208         without argument.
7209         * c-opts.c (c_common_handle_option)<case
7210         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
7211         cases. Handle -ftrack-macro-expansion with and without argument.
7213 2011-10-15  Tom Tromey  <tromey@redhat.com>
7214             Dodji Seketeli  <dodji@redhat.com>
7216         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
7217         (print_line, cb_define, do_line_change): Adjust to avoid touching
7218         the internals of struct line_map.  Use the public API instead.
7219         * c-pch.c (c_common_read_pch): Likewise.
7220         * c-lex.c (fe_file_change): Likewise.
7222 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
7224         PR c++/17212
7225         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
7227 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
7229         PR c++/33067
7230         * c-pretty-print.c (pp_c_floating_constant): Output
7231         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
7233 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
7235         * c-common.c (def_builtin_1): Delete old interface with two
7236         parallel arrays to hold standard builtin declarations, and replace
7237         it with a function based interface that can support creating
7238         builtins on the fly in the future.  Change all uses, and poison
7239         the old names.  Make sure 0 is not a legitimate builtin index.
7240         * c-omp.c (c_finish_omp_barrier): Ditto.
7241         (c_finish_omp_taskwait): Ditto.
7242         (c_finish_omp_flush): Ditto.
7244 2011-10-11  Tristan Gingold  <gingold@adacore.com>
7246         * c.opt: (fallow-parameterless-variadic-functions): New.
7248 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
7250         PR c++/33255 - Support -Wunused-local-typedefs warning
7251         * c-common.h (struct c_language_function::local_typedefs): New
7252         field.
7253         (record_locally_defined_typedef, maybe_record_typedef_use)
7254         (maybe_warn_unused_local_typedefs): Declare new functions.
7255         * c-common.c (record_locally_defined_typedef)
7256         (maybe_record_typedef_use)
7257         (maybe_warn_unused_local_typedefs): Define new functions.
7258         * c.opt: Declare new -Wunused-local-typedefs flag.
7260 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
7262         PR middle-end/50266
7263         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
7264         computations.
7266 2011-09-05  Richard Guenther  <rguenther@suse.de>
7268         * c-common.c (complete_array_type): Use ssize_int (-1) instead
7269         of integer_minus_one_node for empty array upper bounds.
7271 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
7273         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
7274         it's the first time it's being called on this main TU.
7276 2011-08-24  Richard Guenther  <rguenther@suse.de>
7278         PR c/49396
7279         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
7281 2011-08-22  Gabriel Charette  <gchare@google.com>
7283         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
7284         defined in cpp_init_builtins and c_cpp_builtins.
7286 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
7288         * c-common.c (c_common_reswords): Add __builtin_complex.
7289         * c-common.h (RID_BUILTIN_COMPLEX): New.
7291 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
7293         * c-common.c (c_common_reswords): Add _Noreturn.
7294         (keyword_is_function_specifier): Handle RID_NORETURN.
7295         * c-common.h (RID_NORETURN): New.
7297 2011-08-10  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
7299         * c-common.c (unsafe_conversion_p): New function. Check if it is
7300         unsafe to convert an expression to the type.
7301         (conversion_warning): Adjust, use unsafe_conversion_p.
7302         * c-common.h (unsafe_conversion_p): New function declaration.
7304 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
7306         * c-common.h (c_finish_omp_atomic): Adjust prototype.
7307         (c_finish_omp_taskyield): New prototype.
7308         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
7309         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
7310         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
7311         or RHS1 have side-effects, evaluate those too in the right spot,
7312         if it is a decl and LHS is also a decl, error out if they
7313         aren't the same.
7314         (c_finish_omp_taskyield): New function.
7315         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
7316         * c-pragma.c (omp_pragmas): Add taskyield.
7317         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
7318         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
7319         PRAGMA_OMP_CLAUSE_MERGEABLE.
7321 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
7323         * c-common.h (set_underlying_type): Remove parm name from
7324         declaration.
7326 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
7328         * c-pretty-print.h: Search c-common.h in c-family.
7330 2011-07-22  Jason Merrill  <jason@redhat.com>
7332         PR c++/49793
7333         * c.opt (Wnarrowing): New.
7335         PR c++/30112
7336         * c-common.h: Declare c_linkage_bindings.
7337         * c-pragma.c (handle_pragma_redefine_extname): Use it.
7339         PR c++/49813
7340         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
7341         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
7342         as flag_isoc99 for 'restrict'.
7343         (pp_c_specifier_qualifier_list): Likewise for _Complex.
7345 2011-07-21  Ian Lance Taylor  <iant@google.com>
7347         PR middle-end/49705
7348         * c-common.c (c_disable_warnings): New static function.
7349         (c_enable_warnings): New static function.
7350         (c_fully_fold_internal): Change local unused_p to bool.  Call
7351         c_disable_warnings and c_enable_warnings rather than change
7352         c_inhibit_evaluation_warnings.
7354 2011-07-20  Jason Merrill  <jason@redhat.com>
7356         PR c++/6709 (DR 743)
7357         PR c++/42603 (DR 950)
7358         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
7359         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
7360         (CPP_DECLTYPE): New.
7361         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
7363 2011-07-19  Richard Guenther  <rguenther@suse.de>
7365         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
7366         * c-omp.c (c_finish_omp_for): Likewise.
7368 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
7370         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
7371         body on the next line.
7373 2011-07-08  Jason Merrill  <jason@redhat.com>
7375         PR c++/45437
7376         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
7378         PR c++/49673
7379         * c-common.c (c_apply_type_quals_to_decl): Don't check
7380         TYPE_NEEDS_CONSTRUCTING.
7382 2011-07-06  Richard Guenther  <rguenther@suse.de>
7384         * c-common.c (c_common_nodes_and_builtins):
7385         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
7387 2011-07-05  Richard Guenther  <rguenther@suse.de>
7389         * c-common.c (c_common_nodes_and_builtins): Build all common
7390         tree nodes first.
7392 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
7394         * c-common.h (c_tree_chain_next): New static inline function.
7396         * c-common.c (check_builtin_function_arguments): Handle
7397         BUILT_IN_ASSUME_ALIGNED.
7399 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
7401         * c-common.c: Add sync_ or SYNC__ to builtin names.
7402         * c-omp.c: Add sync_ or SYNC__ to builtin names.
7404 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
7406         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
7407         handler.
7408         (gen_pragma_handler): New union.
7409         (internal_pragma_handler): New type.
7410         (c_register_pragma_with_data)
7411         (c_register_pragma_with_expansion_and_data): New functions.
7413         * c-pragma.c (registered_pragmas, c_register_pragma_1)
7414         (c_register_pragma, c_register_pragma_with_expansion)
7415         (c_invoke_pragma_handler): Changed to work with
7416         internal_pragma_handler.
7417         (c_register_pragma_with_data)
7418         (c_register_pragma_with_expansion_and_data): New functions.
7420 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
7422         * c-common.c: Include common/common-target.h.
7423         (handle_section_attribute): Use
7424         targetm_common.have_named_sections.
7425         * c-cppbuiltin.c: Include common/common-target.h.
7426         (c_cpp_builtins): Use targetm_common.except_unwind_info.
7428 2011-06-10  Richard Guenther  <rguenther@suse.de>
7430         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
7431         to print a IDENTIFIER_NODE.
7433 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7434             Joseph Myers  <joseph@codesourcery.com>
7436         * c.opt (fbuilding-libgcc): New option.
7437         * c-cppbuiltin.c (c_cpp_builtins): Define
7438         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
7440 2011-06-07  Jason Merrill  <jason@redhat.com>
7442         * c-common.c (max_tinst_depth): Lower default to 900.
7444         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
7446 2011-06-07  Richard Guenther  <rguenther@suse.de>
7448         * c-common.c (c_common_nodes_and_builtins): Do not set
7449         size_type_node or call set_sizetype.
7451 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
7453         PR debug/49130
7454         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
7455         type when using pointer comparison to compare types.
7457 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
7459         * c.opt: Add -Wdelete-non-virtual-dtor.
7460         * c-opts.c (c_common_handle_option): Include it in -Wall.
7462 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
7464         PR bootstrap/49190
7466         Revert:
7467         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
7469         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
7470         not tree_common.
7472 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
7474         PR c++/49165
7475         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
7476         C++ don't call c_common_truthvalue_conversion on void type arms.
7478 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
7480         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
7481         (stmt_list_stack): Define.
7482         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
7483         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
7485 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
7487         * c-common.c (warning_candidate_p): Check for BLOCKs.
7489 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
7491         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
7492         not tree_common.
7494 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
7496         * c-common.c (def_fn_type): Remove extra va_end.
7498 2011-05-23  Jason Merrill  <jason@redhat.com>
7500         PR c++/48106
7501         * c-common.c (c_common_get_narrower): New.
7502         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
7504 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
7506         * c-common.h (check_function_arguments): Tweak prototype of
7507         check_function_arguments.
7508         * c-common.c (check_function_arguments): Likewise.  Adjust
7509         calls to check_function_nonnull, check_function_format, and
7510         check_function_sentinel.
7511         (check_function_sentinel): Take a FUNCTION_TYPE rather than
7512         separate attributes and typelist arguments.  Use
7513         FOREACH_FUNCTION_ARGS to iterate over argument types.
7515 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
7517         * c-common.c (c_common_reswords): Reorder.
7518         * c-common.h (rid): Likewise.
7520 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
7522         * c-common.c (def_fn_type): Don't call build_function_type, call
7523         build_function_type_array or build_varargs_function_type_array
7524         instead.
7525         (c_common_nodes_and_builtins): Likewise.
7527 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
7529         * c-common.c (c_add_case_label): Omit the loc argument to
7530         build_case_label.
7531         * c-common.h (build_case_label): Remove.
7532         * c-semantics.c (build_case_label): Remove.
7534 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
7536         * c-objc.h (objc_start_method_definition): Update prototype.
7537         * stub-objc.c (objc_start_method_definition): Add extra parameter.
7539 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
7541         * c-common.c (check_main_parameter_types): Reindent.  Don't use
7542         TYPE_ARG_TYPES directly.
7543         (handle_nonnull_attribute): Likewise.
7544         (sync_resolve_params): Likewise.
7545         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
7546         to check_format_string.
7547         (handle_format_attribute): Likewise.
7548         (check_format_string): Take a function type to examine instead of
7549         a type list.  Use a function_arg_iterator to step through argument
7550         types.
7552 2011-05-04  Richard Guenther  <rguenther@suse.de>
7554         * c-common.c (fix_string_type): Use size_int for index type bounds.
7555         (start_fname_decls): Do not pass NULL to build_int_cst.
7556         (c_init_attributes): Likewise.
7557         * c-lex.c (c_lex_with_flags): Likewise.
7559 2011-04-27  Jason Merrill  <jason@redhat.com>
7561         * c-common.c (make_tree_vector_from_list): New.
7562         * c-common.h: Declare it.
7564 2011-04-26  Richard Guenther  <rguenther@suse.de>
7566         PR preprocessor/48248
7567         * c-ppoutput.c (maybe_print_line): Always optimize newlines
7568         for output size with -P.
7570 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
7572         * c-common.c (struct c_common_resword): Add __underlying_type.
7573         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
7575 2011-04-20  Jim Meyering  <meyering@redhat.com>
7577         * c-format.c (init_dollar_format_checking): Remove useless
7578         if-before-free.
7580 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
7582         * c-objc.h (objc_get_interface_ivars): Removed.
7583         (objc_detect_field_duplicates): New.
7584         * stub-objc.c: Likewise.
7586 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
7588         * stub-objc.c (objc_declare_protocols): Renamed to
7589         objc_declare_protocol.
7590         * c-objc.h: Likewise.
7592 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
7594         * stub-objc.c (objc_declare_class): Updated argument name.
7596 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
7598         * c-common.h (c_common_init_ts): Declare.
7599         * c-common.c (c_common_init_ts): Define.
7601 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
7603         * c-objc.h (objc_build_message_expr): Updated prototype.
7604         * stub-objc.c (objc_build_message_expr): Likewise.
7606 2011-04-12  Martin Jambor  <mjambor@suse.cz>
7608         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
7609         of cgraph_node.
7611 2011-04-11  Richard Guenther  <rguenther@suse.de>
7613         * c-common.c (complete_array_type): Build a range type of
7614         proper type.
7616 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
7618         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
7619         (handle_type_generic_attribute): Likewise.
7621 2011-04-07  Jason Merrill  <jason@redhat.com>
7623         PR c++/48450
7624         * c-common.c (c_common_truthvalue_conversion): Don't ignore
7625         conversion from C++0x scoped enum.
7627 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
7629         * c-target-def.h: New file.
7630         * c-target.def: New file.
7631         * c-target.h: New file.
7632         * c-common.c (targetcm): Don't define here.
7633         * c-common.h (default_handle_c_option): Declare.
7634         * c-format.c: Include c-target.h instead of target.h.
7635         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
7636         include tm.h.
7637         (default_handle_c_option): Move from targhooks.c.
7639 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
7641         PR preprocessor/48248
7642         * c-ppoutput.c (print): Add src_file field.
7643         (init_pp_output): Initialize it.
7644         (maybe_print_line): Don't optimize by adding up to 8 newlines
7645         if map->to_file and print.src_file are different file.
7646         (print_line): Update print.src_file.
7648 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7650         * c-ada-spec.c (compare_comment): Use filename_cmp
7651         instead of strcmp for filename.
7653 2011-03-25  Jeff Law  <law@redhat.com>
7655         * c-common.c (def_fn_type): Add missing va_end.
7657 2011-03-25  Jason Merrill  <jason@redhat.com>
7659         * c.opt: Add -std=c++03.
7661 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
7663         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
7665 2011-03-17  Kai Tietz  <ktietz@redhat.com>
7667         PR target/12171
7668         * c-pretty-print.c (pp_c_specifier_qualifier_list):
7669         Display allowed attributes for function pointer types.
7670         (pp_c_attributes_display): New function to display
7671         attributes having affects_type_identity flag set to true.
7672         * c-pretty-print.h (pp_c_attributes_display): New prototype.
7674         * c-common.c (c_common_attribute_table):
7675         Add new element.
7676         (c_common_format_attribute_table): Likewise.
7678 2011-03-18  Jason Merrill  <jason@redhat.com>
7680         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
7681         * c-common.h: Don't declare it here.
7682         * c-common.c: Or define it here.
7683         * c-opts.c (c_common_handle_option): Or set it here.
7685         PR c++/35315
7686         * c-common.c (handle_transparent_union_attribute): Don't
7687         make a duplicate type in C++.
7689 2011-03-15  Jason Merrill  <jason@redhat.com>
7691         * c-common.c (max_constexpr_depth): New.
7692         * c-common.h: Declare it.
7693         * c-opts.c (c_common_handle_option): Set it.
7694         * c.opt (fconstexpr-depth): New option.
7696 2011-03-11  Jason Merrill  <jason@redhat.com>
7698         * c-common.c (attribute_takes_identifier_p): Add missing const.
7700         PR c++/46803
7701         * c-common.c (attribute_takes_identifier_p): Assume that an
7702         unknown attribute takes an identifier.
7704 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
7706         PR c/47786
7707         * c-common.c (c_type_hash): Call list_length instead of iterating
7708         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
7710 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
7712         PR c/47809
7713         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
7715 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
7717         * c.opt (fobjc-abi-version=) New.
7718         (fobjc-nilcheck): New.
7720 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
7722         PR c++/46890
7723         * c-common.h (keyword_is_decl_specifier): Declare.
7724         * c-common.c (keyword_is_decl_specifier): Define.
7725         (keyword_is_function_specifier): New function.
7727 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
7729         PR c/47473
7730         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
7731         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
7732         REAL_TYPE.
7734 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
7736         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
7738 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
7740         PR pch/47430
7741         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
7742         after init_c_lex if pch_file is set.
7744 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
7746         PR c++/43601
7747         * c.opt (-fkeep-inline-dllexport): New switch.
7749 2011-01-12  Richard Guenther  <rguenther@suse.de>
7751         PR middle-end/32511
7752         * c-common.c (handle_weak_attribute): Warn instead of error
7753         on declaring an inline function weak.
7755 2011-01-05  Tom Tromey  <tromey@redhat.com>
7757         * c-common.h (lvalue_error): Update.
7758         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
7759         not error.
7761 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
7763         PR objc/47075
7764         * c-objc.h (objc_finish_message_expr): Added argument to
7765         prototype.
7767 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
7769         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
7770         Use prototype_p.
7772 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
7774         * c-objc.h (objc_maybe_warn_exceptions): New.
7775         * stub-objc.c (objc_maybe_warn_exceptions): New.
7777 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
7779         * c-common.h (readonly_error): Declare.
7780         * c-common.c (readonly_error): Define.
7782 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
7784         * c-common.h (invalid_indirection_error): Declare.
7785         * c-common.c (invalid_indirection_error): Define.
7787 2010-12-03  Richard Guenther  <rguenther@suse.de>
7789         PR c/46745
7790         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
7791         (pp_c_unary_expression): Likewise.
7792         (pp_c_expression): Likewise.
7794 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
7796         * c-common.h (objc_finish_function): New.
7797         (objc_non_volatilized_type): Removed.
7798         (objc_type_quals_match): Removed.
7799         * stub-objc.c (objc_finish_function): New.
7800         (objc_non_volatilized_type): Removed.
7801         (objc_type_quals_match): Removed.
7803 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
7805         * c-common.h (parse_optimize_options): Declare.
7806         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
7807         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
7809 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
7811         * c-opts.c (check_deps_environment_vars): Use getenv instead of
7812         GET_ENVIRONMENT.
7813         * c-pch.c (O_BINARY): Don't define here.
7814         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
7816 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
7818         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
7819         targetm.except_unwind_info.
7821 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
7823         * c-opts.c (c_common_handle_option): Pass location to
7824         set_struct_debug_option.
7826 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
7828         * c-common.c (visibility_options): Move from ../opts.c.
7829         * c-common.h (struct visibility_flags, visibility_options):
7830         Declare here.
7831         * c-opts.c (finish_options): Rename to c_finish_options.
7832         (c_common_init): Update call to finish_options.
7834 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
7836         PR objc/34033
7837         * c-lex.c (lex_string): Check that each string in an Objective-C
7838         string concat sequence starts with either one or zero '@', and
7839         that there are no spurious '@' signs at the end.
7841 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
7843         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
7844         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
7845         HANDLE_PRAGMA_VISIBILITY.
7846         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
7847         HANDLE_PRAGMA_VISIBILITY): Don't define.
7848         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
7850 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
7852         PR c++/16189
7853         PR c++/36888
7854         PR c++/45331
7855         * c-common.h (keyword_begins_type_specifier): Declare.
7856         (keyword_is_storage_class_specifier): Declare.
7857         (keyword_is_type_qualifier): Declare.
7858         * c-common.c (keyword_begins_type_specifier): New function.
7859         (keyword_is_storage_class_specifier): New function.
7860         (keyword_is_type_qualifier): Declare.
7862 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
7864         PR c/46547
7865         * c-common.c (in_late_binary_op): Define.
7866         (c_common_truthvalue_conversion): Check in_late_binary_op before
7867         calling c_save_expr.
7868         * c-common.h (in_late_binary_op): Declare.
7870 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
7872         * c-opts.c (c_common_handle_option): Update calls to
7873         set_struct_debug_option.
7875 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
7877         * c-common.h (objc_declare_protocols): Added additional argument.
7878         * stub-objc.c (objc_declare_protocol): Same change.
7880 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
7882         PR c/33193
7883         * c-common.h (build_real_imag_expr): Declare.
7884         * c-semantics.c (build_real_imag_expr): Define.
7886 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
7888         * c-opts.c (c_common_parse_file): Take no arguments.
7889         * c-common.h (c_common_parse_file): Update prototype.
7891 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
7893         PR c++/46401
7894         * c-common.c (warning_candidate_p): Don't track non-const calls
7895         or STRING_CSTs.
7897 2010-11-15  Ian Lance Taylor  <iant@google.com>
7899         * c-lex.c (init_c_lex): Set macro debug callbacks if
7900         flag_dump_go_spec is set.
7902 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
7904         * c-common.h (objc_build_incr_expr_for_property_ref): New.
7905         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
7907 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
7909         PR preprocessor/45038
7910         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
7911         dialects.
7913 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
7915         * c-common.h (c_family_lang_mask): Declare.
7916         * c-opts.c (c_family_lang_mask): Make extern.
7917         * c-pragma.c (handle_pragma_diagnostic): Use
7918         control_warning_option.
7920 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
7922         * c-common.c (parse_optimize_options): Update call to
7923         decode_options.
7924         * c-common.h (c_common_handle_option): Update prototype.
7925         * c-opts.c (c_common_handle_option): Take location_t parameter and
7926         pass it to other functions.
7928 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
7930         * c-opts.c (warning_as_error_callback): Remove.
7931         (c_common_initialize_diagnostics): Don't call
7932         register_warning_as_error_callback.
7933         (c_common_handle_option): Handle -Werror=normalized= here.
7935 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
7937         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
7938         in diagnostic.
7939         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
7940         letter.
7941         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
7942         Remove trailing '.' from diagnostics.
7943         * c.opt (Wwrite-strings_: Avoid '`' in help text.
7945 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
7947         * c-common.c (parse_optimize_options): Pass global_dc to
7948         decode_options.
7949         * c-opts.c (c_common_handle_option): Pass &global_options to
7950         set_Wstrict_aliasing.
7951         * c.opt (v): Don't mark Common or document here.
7953 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
7955         PR target/44981
7956         * c-format.c (format_type): New type gcc_objc_string_format_type.
7957         (valid_stringptr_type_p): New.
7958         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
7959         (check_format_string): Pass expected type, use
7960         valid_stringptr_type_p (), check that the format string types are
7961         consistent with the format specification.
7962         (decode_format_attr): Warn if NSString is used outside objective-c.
7963         (format_types_orig): Add NSString.
7964         (format_name): New.
7965         (format_flags): New.
7966         (check_format_arg): Handle format strings requiring an external parser.
7967         first_target_format_type: New variable.
7968         (handle_format_attribute): Set up first_target_format_type, pass the
7969         expected format arg string type to check_format_string().
7970         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL):  New flag.
7971         * stub-objc.c (objc_string_ref_type_p): New.
7972         (objc_check_format_arg): New.
7974 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
7976         Fixed using the Objective-C 2.0 dot-syntax with class names.
7977         * c-common.h (objc_build_class_component_ref): New.
7978         * stub-objc.c (objc_build_class_component_ref): New.
7980 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
7982         * c.opt (Wproperty-assign-default): New option.
7984 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
7986         Implemented -fobjc-std=objc1 flag.
7987         * c.opt (fobjc-std=objc1): New option.
7989 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
7991         Implemented format and noreturn attributes for Objective-C methods.
7992         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
7993         attribute for Objective-C methods.
7995 2010-10-31  Jason Merrill  <jason@redhat.com>
7997         * c-common.c (conversion_warning, warn_for_collisions_1): Use
7998         EXPR_LOC_OR_HERE.
8000 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
8002         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
8003         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
8004         (objc_add_property_declaration): Removed arguments for copies and
8005         ivar.
8006         (objc_build_getter_call): Renamed to
8007         objc_maybe_build_component_ref.
8008         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
8009         (objc_is_property_ref): New.
8010         * c-common.c (c_common_reswords): Removed copies and ivar.
8011         * stub-objc.c (objc_add_property_declaration): Removed arguments
8012         for copies and ivar.
8013         (objc_build_getter_call): Renamed to
8014         objc_maybe_build_component_ref.
8015         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
8016         (objc_is_property_ref): New.
8018 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
8019             Matthew Gingell  <gingell@adacore.com>
8021         * c-ada-spec.c (separate_class_package): New function.
8022         (pp_ada_tree_identifier): Prefix references to C++ classes with the
8023         name of their enclosing package.
8024         (print_ada_declaration): Use separate_class_package.
8026 2010-10-27  Jason Merrill  <jason@redhat.com>
8028         * c-common.c (c_common_reswords): Add __is_literal_type.
8029         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
8031         * c-common.c (check_case_value): Remove special C++ code.
8033 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
8035         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
8036         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
8037         and RID_LAST_PATTR.
8038         (objc_add_property_declaration): Added additional arguments.
8039         (objc_property_attribute_kind): Removed.
8040         (objc_set_property_attr): Removed.
8041         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
8042         copy and nonatomic.
8043         * stub-objc.c (objc_add_property_declaration): Added additional
8044         arguments.
8045         (objc_set_property_attr): Removed.
8047 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
8049         * c-common.h (objc_add_property_variable): Renamed to
8050         objc_add_property_declaration.  Added location argument.
8051         * stub-objc.c (objc_add_property_variable): Same change.
8053 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
8055         * c-common.h (objc_maybe_printable_name): New.
8056         * stub-objc.c (objc_maybe_printable_name): New.
8058 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
8059             Andrew Pinski  <pinskia@gmail.com>
8061         * c-common.h (c_common_mark_addressable_vec): Declare.
8062         * c-common.c (c_common_mark_addressable_vec): New function.
8064 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
8066         * c-common.h (objc_set_method_type): Removed.
8067         (objc_add_method_declaration): Added boolean argument.
8068         (objc_start_method_definition): Same change.
8069         (objc_build_method_signature): Same change.
8070         * stub-objc.c (objc_set_method_type): Removed.
8071         (objc_add_method_declaration): Added boolean argument.
8072         (objc_start_method_definition): Same change.
8073         (objc_build_method_signature): Same change.
8075 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
8077         * c-common.h (finish_file): Removed.
8078         (objc_write_global_declarations): New.
8079         * c-opts.c (c_common_parse_file): Do not call finish_file.
8080         * stub-objc.c (objc_write_global_declarations): New.
8082 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
8084         Implemented parsing @synthesize and @dynamic for
8085         Objective-C/Objective-C++.
8086         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
8087         (objc_add_synthesize_declaration): New.
8088         (objc_add_dynamic_declaration): New.
8089         * c-common.c (c_common_reswords): Add synthesize and dynamic.
8090         * stub-objc.c (objc_add_synthesize_declaration): New.
8091         (objc_add_dynamic_declaration): New.
8093 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
8095         PR target/46041
8096         * c-cppbuiltin.c (mode_has_fma): Move function here from
8097         builtins.c.  Don't use the fma optab, instead just use the
8098         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
8099         using -save-temps.
8101 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
8103         Merge from 'apple/trunk' branch on FSF servers.
8105         2005-11-08  Fariborz Jahanian  <fjahanian@apple.com>
8107         Radar 4330422
8108         * c-common.h (objc_non_volatilized_type): New declaration
8109         * stub-objc.c (objc_non_volatilized_type): New stub.
8111 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
8113         Merge from 'apple/trunk' branch on FSF servers.
8115         2006-03-27 Fariborz Jahanian  <fjahanian@apple.com>
8117         Radar 4133425
8118         * c-common.h (objc_diagnose_private_ivar): New decl.
8119         * stub-objc.c (objc_diagnose_private_ivar): New stub.
8121 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
8123         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
8124         * c-common.h (enum rid): Add RID_AT_PACKAGE.
8125         (objc_ivar_visibility_kind): New enum.
8126         (objc_set_visibility): Adjust prototype to use visibility enum.
8127         * stub-objc.c (objc_set_visibility): Adjust stub to use
8128         visibility enum.
8130 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
8132         * c-cppbuiltin.c (builtin_define_float_constants): Emit
8133         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
8134         has the appropriate fma builtins.
8135         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
8137 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
8139         merge from FSF apple 'trunk' branch.
8140         2006 Fariborz Jahanian  <fjahanian@apple.com>
8142         Radars 4436866, 4505126, 4506903, 4517826
8143         * c-common.c (c_common_resword): Define @property and its attributes.
8144         * c-common.h: Define property attribute enum entries.
8145         (OBJC_IS_PATTR_KEYWORD): New.
8146         (objc_property_attribute_kind): New enum.
8147         Declare objc_set_property_attr (), objc_add_property_variable (),
8148         objc_build_getter_call () and objc_build_setter_call ().
8149         * stub-objc.c (objc_set_property_attr): New stub.
8150         (objc_add_property_variable): Likewise.
8151         (objc_build_getter_call): Likewise.
8152         (objc_build_setter_call) Likewise.
8154 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
8156         merge from FSF apple 'trunk' branch.
8157         2006-04-26 Fariborz Jahanian  <fjahanian@apple.com>
8159         Radar 3803157 (method attributes)
8160         * c-common.c (handle_deprecated_attribute): Recognize
8161         objc methods as valid declarations.
8162         * c-common.h: Declare objc_method_decl ().
8163         * stub-objc.c (objc_method_decl): New stub.
8165 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
8167         * c-common.c (parse_optimize_options): Call
8168         decode_cmdline_options_to_array_default_mask before
8169         decode_options.  Update arguments to decode_options.
8170         * c-common.h (c_common_init_options_struct): Declare.
8171         * c-opts.c (c_common_init_options_struct): New.  Split out from
8172         c_common_init_options.
8174 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
8176         Implemented fast enumeration for Objective-C.
8177         * c-common.h (objc_finish_foreach_loop): New.
8178         * stub-objc.c (objc_finish_foreach_loop): New.
8180 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
8182         * c-common.h (struct diagnostic_context): Don't declare here.
8183         (c_common_initialize_diagnostics): Declare using
8184         diagnostic_context typedef.
8185         * c-opts.c (c_common_handle_option): Pass global_dc to
8186         handle_generated_option.
8188 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
8190         * c-opts.c (c_common_handle_option): Pass &global_options_set to
8191         handle_generated_option.
8193 2010-10-03  Ian Lance Taylor  <iant@google.com>
8195         * c.opt (-fplan9-extensions): New option.
8197 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8199         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
8200         Remove.
8201         (c_cpp_builtins): Call functions from cppbuiltin.c instead
8202         of duplicating code.
8204 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
8206         * c-common.c: Add two new entries for @optional
8207         and @required keywords.
8209         merge from FSF 'apple/trunk' branch.
8210         2006-01-30  Fariborz Jahanian  <fjahanian@apple.com>
8212         Radar 4386773
8213         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
8214         objective-c keywords.
8215         (objc_set_method_opt): New declaration.
8216         * stub-objc.c (objc_set_method_opt): New stub.
8218 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
8220         * c-common.c (handle_optimize_attribute): Pass &global_options to
8221         cl_optimization_save and cl_optimization_restore.
8222         * c-opts.c (c_common_handle_option): Pass &global_options to
8223         handle_generated_option.
8224         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
8225         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
8226         &global_options to cl_optimization_restore.
8228 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
8230         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
8231         Objective-C/Objective-C++ keywords.
8233 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
8235         Merge from 'apple/trunk' branch on FSF servers.
8237         2005-10-04  Fariborz Jahanian  <fjahanian@apple.com>
8239         Radar 4281748
8240         * c-common.h (objc_check_global_decl): New declaration.
8241         * stub-objc.c (objc_check_global_decl): New stub.
8243 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
8245         * c.opt: Don't use VarExists.
8247 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
8249         * c-common.c (c_cpp_error): Update names of diagnostic_context
8250         members.
8251         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
8252         cl_optimization members.
8253         * c-opts.c (warning_as_error_callback, c_common_handle_option,
8254         sanitize_cpp_opts, finish_options): Update names of cpp_options
8255         members.
8257 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
8259         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
8260         (objc_is_reserved_word): Removed.
8261         * c-common.c: Updated comments.
8262         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
8263         objc_is_reserved_word.
8264         * stub-objc.c (objc_is_reserved_word): Removed.
8266 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
8268         * c-common.h (objc_add_method_declaration): Adjust prototype to
8269         include attributes.
8270         (objc_start_method_definition): Likewise.
8271         (objc_build_keyword_decl): Likewise.
8272         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
8273         (objc_start_method_definition): Likewise.
8274         (objc_build_keyword_decl): Likewise.
8276 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
8278         * c-common.h (objc_start_class_interface): Adjust prototype.
8279         (objc_start_category_interface): Likewise.
8280         (objc_start_protocol): Likewise.
8281         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
8282         (objc_start_class_interface): Likewise.
8283         (objc_start_category_interface): Likewise.
8285 2010-09-27  Ian Lance Taylor  <iant@google.com>
8287         * c-common.c (c_common_attribute_table): Add no_split_stack.
8288         (handle_no_split_stack_attribute): New static function.
8290 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
8292         Merge from 'apple/trunk' branch on FSF servers.
8294         2005-12-15  Fariborz Jahanian  <fjahanian@apple.com>
8296         Radar 4229905
8297         * c-common.h (objc_have_common_type): New declaration.
8298         * stub-objc.c (objc_have_common_type): New stub.
8300         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
8302         Radar 4154928
8303         * c-common.h (objc_common_type): New prototype.
8304         * stub-objc.c (objc_common_type): New stub.
8306 2010-09-24  Jan Hubicka  <jh@suse.cz>
8308         * c-common.c (handle_leaf_attribute): New function.
8309         (struct attribute_spec c_common_att): Add leaf.
8311 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
8313         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
8314         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
8315         -dump, -dump=, -imacros, -imacros=, -include, -include=,
8316         -include-barrier, -include-directory, -include-directory=,
8317         -include-directory-after, -include-directory-after=,
8318         -include-prefix, -include-prefix=, -include-with-prefix,
8319         -include-with-prefix=, -include-with-prefix-after,
8320         -include-with-prefix-after=, -include-with-prefix-before,
8321         -include-with-prefix-before=, -no-integrated-cpp,
8322         -no-line-commands, -no-standard-includes, -no-warnings, -output,
8323         -output=, -pedantic, -pedantic-errors, -preprocess,
8324         -print-missing-file-dependencies, -trace-includes, -traditional,
8325         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
8326         -user-dependencies, -verbose, -write-dependencies,
8327         -write-user-dependencies, no-integrated-cpp, traditional): New.
8329 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8331         PR objc/23710
8332         * c-common.h (objc_start_method_definition): Return bool instead
8333         of void.
8334         * stub-objc.c (objc_start_method_definition): Return bool instead
8335         of void.
8337 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8339         PR objc/25965
8340         * c-common.h (objc_get_interface_ivars): New declaration.
8341         * stub-objc.c (objc_get_interface_ivars): New stub.
8343 2010-09-15  Ian Lance Taylor  <iant@google.com>
8345         * c-common.c (parse_optimize_options): Do not capitalize warning
8346         messages.  Remove period at end of warning message.
8348 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
8350         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
8351         (handle_alias_attribute): ... here.
8352         (handle_ifunc_attribute): New.
8354 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
8356         * c-common.h (do_warn_double_promotion): Declare.
8357         * c-common.c (do_warn_double_promotion): Define.
8359 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
8361         * c.opt (Wdouble-promotion): New.
8363 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
8365         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
8366         fvtable-thunks, fxref): Mark no longer supported in help text.
8368 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
8370         * c.opt (Wimport, fall-virtual, falt-external-templates,
8371         fdefault-inline, fenum-int-equiv, fexternal-templates,
8372         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
8373         fname-mangling-version-, fnew-abi, fnonnull-objects,
8374         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
8375         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
8376         applicable.
8377         (fhandle-exceptions): Mark with Alias and Warn.
8378         * c-opts.c (c_common_handle_option): Don't handle options marked
8379         as ignored.
8381 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
8383         * c.opt (Wcomments, Werror-implicit-function-declaration,
8384         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
8385         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
8386         aliases.
8387         * c-common.c (option_codes): Use OPT_Wcomment instead of
8388         OPT_Wcomments.
8389         * c-opts.c (warning_as_error_callback, c_common_handle_option):
8390         Don't handle options marked as aliases.
8392 2010-08-25  Richard Guenther  <rguenther@suse.de>
8394         * c-common.c (c_common_get_alias_set): Remove special
8395         handling for pointers.
8397 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
8399         * c-common.c: Use FOR_EACH_VEC_ELT.
8400         * c-gimplify.c: Likewise.
8401         * c-pragma.c: Likewise.
8403 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
8405         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
8406         RejectDriver.
8407         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
8408         RejectDriver.
8409         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
8410         instead of OPT_MDX and OPT_MMDX.
8412 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
8414         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
8416 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
8418         * c.opt (MD, MMD): Change to MDX and MMDX.
8419         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
8421 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
8423         * c-opts.c (c_common_handle_option): Call handle_generated_option
8424         instead of handle_option.
8426 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
8428         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
8429         (maybe_apply_renaming_pragma): Delete unneeded declarations.
8431 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
8433         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
8434         (pending_redefine_extname): Change type to a VEC.
8435         (add_to_renaming_pragma_list): Update for new type of
8436         pending_redefine_extname.
8437         (maybe_apply_renaming_pragma): Likewise.
8439 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
8441         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
8442         visited.
8443         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
8444         decide whether a type has already been declared/seen.
8445         Do not go to the original type.
8446         (dump_nested_types): New parameter forward.
8447         Generate forward declaration if needed and mark type as visited.
8448         (print_ada_declaration): Call dump_nested_types if not already done.
8449         Mark types as visited.
8451 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
8453         * c.opt (-print-pch-checksum): Remove option.
8454         * c-opts.c (c_common_handle_option): Don't handle
8455         OPT_print_pch_checksum.
8457 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8459         * c-common.h (c_common_handle_option): Update prototype and return
8460         value type.
8461         * c-opts.c (c_common_handle_option): Update prototype and return
8462         value type.  Update calls to handle_option and
8463         enable_warning_as_error.
8465 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
8467         PR c/45079
8468         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
8470 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8472         * c-common.h (c_common_missing_argument): Remove.
8473         * c-opts.c (c_common_missing_argument): Remove.
8474         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
8475         idirafter, imacros, include, isysroot, isystem, iquote): Add
8476         MissingArgError.
8477         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
8479 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8481         * c-common.h (c_common_option_lang_mask,
8482         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
8483         New.
8484         (c_common_init_options): Update prototype.
8485         * c-opts.c (c_common_option_lang_mask): New.
8486         (c_common_initialize_diagnostics): Split out of
8487         c_common_init_options.
8488         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
8489         New.
8490         (c_common_init_options): Update prototype.  Use decoded options in
8491         search for -lang-asm.
8493 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
8495         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
8496         * c-format.c: Likewise.
8498 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8500         * c-common.h: Include diagnostic-core.h. Error if already
8501         included.
8502         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
8504 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8506         * c-common.c (IN_GCC_FRONTEND): Do not undef.
8507         Do not include expr.h
8508         (vector_mode_valid_p): Move here.
8510 2010-06-21  DJ Delorie  <dj@redhat.com>
8512         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
8513         allow these pragmas anywhere.
8515 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
8517         PR bootstrap/44509
8518         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
8519         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
8520         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
8521         ggc_strdup instead of xstrdup.
8523 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
8525         * c-cppbuiltin.c: Include cpp-id-data.h.
8526         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
8527         (lazy_hex_fp_value): New function.
8528         (builtin_define_with_hex_fp_value): Provide definitions lazily.
8530 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8532         * c-gimplify.c: Do not include tree-flow.h
8534 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
8536         PR other/44034
8537         * c-common.c: Rename targetm member:
8538         targetm.enum_va_list -> targetm.enum_va_list_p
8540 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
8542         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
8544 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
8546         * c-cppbuiltin.c: Do not include except.h.
8548 2010-06-24  Andi Kleen  <ak@linux.intel.com>
8550         * c-common.c (warn_for_omitted_condop): New.
8551         * c-common.h (warn_for_omitted_condop): Add prototype.
8553 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
8555         * c.opt (lang-objc): Remove.
8556         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
8558 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
8560         * c-opts.c: Include "tm_p.h".
8562 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
8564         * c-common.c (parse_optimize_options): Update call to
8565         decode_options.
8567 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
8569         * c-common.c (record_types_used_by_current_var_decl): Adjust for
8570         new type of types_used_by_cur_var_decl.
8572 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
8574         PR bootstrap/44512
8575         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
8576         for C++ standard compliance.
8578 2010-06-16  Jason Merrill  <jason@redhat.com>
8580         * c.opt: Add -Wnoexcept.
8582 2010-06-16  Richard Guenther  <rguenther@suse.de>
8584         PR c/44555
8585         * c-common.c (c_common_truthvalue_conversion): Remove
8586         premature and wrong optimization concering ADDR_EXPRs.
8588 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
8590         * c-ada-spec.c (dump_sloc): Remove column info.
8591         (is_simple_enum): New function.
8592         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
8593         enum types when relevant.
8595 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8597         * c-common.c (conversion_warning): Warn at expression
8598         location.
8600 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
8602         * c-opts.c (c_common_handle_option): Don't handle
8603         OPT_fshow_column.
8605 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8607         * c-pragma.c (push_alignment): Use typed GC allocation.
8608         (handle_pragma_push_options): Likewise.
8610         * c-common.c (parse_optimize_options): Likewise.
8612         * c-common.h (struct sorted_fields_type): Add variable_size GTY
8613         option.
8615 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
8617         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
8618         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
8619         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
8620         flag_signed_bitfields, warn_strict_null_sentinel,
8621         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
8622         flag_gen_declaration, flag_no_gnu_keywords,
8623         flag_implement_inlines, flag_implicit_templates,
8624         flag_implicit_inline_templates, flag_optional_diags,
8625         flag_elide_constructors, flag_default_inline, flag_rtti,
8626         flag_conserve_space, flag_access_control, flag_check_new,
8627         flag_new_for_scope, flag_weak, flag_working_directory,
8628         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
8629         flag_enforce_eh_specs, flag_threadsafe_statics,
8630         flag_pretty_templates): Remove.
8631         * c-common.h (flag_preprocess_only, flag_nil_receivers,
8632         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
8633         flag_replace_objc_classes, flag_undef, flag_no_builtin,
8634         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
8635         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
8636         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
8637         flag_no_gnu_keywords, flag_implement_inlines,
8638         flag_implicit_templates, flag_implicit_inline_templates,
8639         flag_optional_diags, flag_elide_constructors, flag_default_inline,
8640         flag_rtti, flag_conserve_space, flag_access_control,
8641         flag_check_new, flag_new_for_scope, flag_weak,
8642         flag_working_directory, flag_use_cxa_atexit,
8643         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
8644         flag_threadsafe_statics, flag_pretty_templates,
8645         warn_strict_null_sentinel): Remove.
8646         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
8647         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
8648         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
8649         fimplicit-inline-templates, fimplicit-templates,
8650         flax-vector-conversions, fms-extensions, fnil-receivers,
8651         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
8652         frtti, fshort-double, fshort-enums, fshort-wchar,
8653         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
8654         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
8655         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
8656         gen-decls, undef): Use Var.
8657         (fdefault-inline, foptional-diags): Document as doing nothing.
8658         * c-opts.c (c_common_handle_option): Remove cases for options now
8659         using Var.  Mark ignored options as such.
8661 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
8663         * c-common.c: Moved to here from parent directory.
8664         * c-common.def: Likewise.
8665         * c-common.h: Likewise.
8666         * c-cppbuiltin.c: Likewise.
8667         * c-dump.c: Likewise.
8668         * c-format.c: Likewise.
8669         * c-format.h : Likewise.
8670         * c-gimplify.c: Likewise.
8671         * c-lex.c: Likewise.
8672         * c-omp.c: Likewise.
8673         * c.opt: Likewise.
8674         * c-opts.c: Likewise.
8675         * c-pch.c: Likewise.
8676         * c-ppoutput.c: Likewise.
8677         * c-pragma.c: Likewise.
8678         * c-pragma.h: Likewise.
8679         * c-pretty-print.c: Likewise.
8680         * c-pretty-print.h: Likewise.
8681         * c-semantics.c: Likewise.
8682         * stub-objc.c: Likewise.
8684         * c-common.c: Include gt-c-family-c-common.h.
8685         * c-pragma.c: Include gt-c-family-c-pragma.h.
8687 Copyright (C) 2010-2018 Free Software Foundation, Inc.
8689 Copying and distribution of this file, with or without modification,
8690 are permitted in any medium without royalty provided the copyright
8691 notice and this notice are preserved.