PR rtl-optimization/83496
[official-gcc.git] / gcc / c-family / ChangeLog
blob49cfea95b3d72d571da2434abee50b893eda4009
1 2018-02-21  Martin Liska  <mliska@suse.cz>
3         * c.opt (Wcatch-value=): Add IntegerRange.
5 2018-02-15  Jason Merrill  <jason@redhat.com>
7         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
9 2018-02-09  Nathan Sidwell  <nathan@acm.org>
11         PR c/84293
12         * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
13         arg.
14         * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
15         arg.  Adjust.
17 2018-02-09  Martin Sebor  <msebor@redhat.com>
19         PR lto/84212
20         * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
21         (-Walloc-size-larger-than, -Wformat-truncation=): Same.
22         (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
23         (-Wstrict-overflow, -Wsuggest-attribute): Same.
24         (-Wuninitialized): Same.
26 2018-02-09  Eric Botcazou  <ebotcazou@adacore.com>
28         * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
29         keyword for components.
31 2018-02-02  Paolo Carlini  <paolo.carlini@oracle.com>
33         * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
35 2018-02-02  Julia Koval  <julia.koval@intel.com>
37         * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
39 2018-01-29  Marek Polacek  <polacek@redhat.com>
41         PR c/83966
42         * c-format.c (check_function_format): Check current_function_decl.
44 2018-01-27  Jakub Jelinek  <jakub@redhat.com>
46         * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
47         argument.
48         (LAZY_HEX_FP_VALUES_CNT): Define.
49         (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
50         values rather than just 12.
51         (builtin_define_with_hex_fp_value): Likewise.
53 2018-01-18  Boris Kolpackov  <boris@codesynthesis.com>
55         PR other/70268
56         * c.opt (-fmacro-prefix-map): New option.
57         * c-opts.c (c_common_handle_option): Handle it.
58         * c-lex.c (init_c_lex): Set remap_filename cpp callback.
59         * c-ppoutput.c (init_pp_output): Likewise.
61 2018-01-17  David Malcolm  <dmalcolm@redhat.com>
63         PR c++/83814
64         * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
66 2018-01-10  Eric Botcazou  <ebotcazou@adacore.com>
68         * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
69         Skip 'f' and 'F' characters if it is true.
70         (store_ada_macro): Minor tweak.
71         (dump_ada_macros) <CPP_COMMENT>: Likewise.
72         <CPP_WSTRING>: Likewise.
73         <CPP_STRING>: Output '&' in the buffer if not the first string.
74         <CPP_NUMBER>: Adjust calls to dump_number.
76 2018-01-10  David Malcolm  <dmalcolm@redhat.com>
78         PR c++/43486
79         * c-common.c: Include "selftest.h".
80         (get_atomic_generic_size): Perform the test for integral type
81         before the range test for any integer constant, fixing indentation
82         of braces.  Call fold_for_warn before testing for an INTEGER_CST.
83         (reject_gcc_builtin): Strip any location wrapper from EXPR.
84         (selftest::test_fold_for_warn): New function.
85         (selftest::c_common_c_tests): New function.
86         (selftest::c_family_tests): Call it, and
87         selftest::c_pretty_print_c_tests.
88         * c-common.h (selftest::c_pretty_print_c_tests): New decl.
89         * c-format.c (check_format_arg): Convert VAR_P check to a
90         fold_for_warn.
91         * c-pretty-print.c: Include "selftest.h".
92         (pp_c_cast_expression): Don't print casts for location wrappers.
93         (selftest::assert_c_pretty_printer_output): New function.
94         (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
95         (selftest::test_location_wrappers): New function.
96         (selftest::c_pretty_print_c_tests): New function.
97         * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
99 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
100             Alan Hayward  <alan.hayward@arm.com>
101             David Sherwood  <david.sherwood@arm.com>
103         * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
105 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
106             Alan Hayward  <alan.hayward@arm.com>
107             David Sherwood  <david.sherwood@arm.com>
109         * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
110         as polynomial.
112 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
113             Alan Hayward  <alan.hayward@arm.com>
114             David Sherwood  <david.sherwood@arm.com>
116         * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
117         (convert_vector_to_array_for_subscript): Handle polynomial
118         TYPE_VECTOR_SUBPARTS.
119         (c_common_type_for_mode): Check valid_vector_subparts_p.
120         * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
121         VECTOR_CST_NELTS.
123 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
125         Update copyright years.
127 2017-12-22  Mike Stump  <mikestump@comcast.net>
128             Eric Botcazou  <ebotcazou@adacore.com>
130         * c-pragma.c (init_pragma): Register pragma GCC unroll.
131         * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
133 2017-12-22  Alexandre Oliva <aoliva@redhat.com>
135         PR debug/83527
136         PR debug/83419
137         * c-semantics.c (only_debug_stmts_after_p): New.
138         (pop_stmt_list): Clear side effects in debug-only stmt list.
139         Check for single nondebug stmt followed by debug stmts only.
141 2017-12-21  Alexandre Oliva  <aoliva@redhat.com>
143         PR debug/83419
144         * c-semantics.c (pop_stmt_list): Propagate side effects from
145         single nondebug stmt to container list.
147 2017-12-19  Jakub Jelinek  <jakub@redhat.com>
149         * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
150         conditions with typical order conditions.
152 2017-12-18  Marek Polacek  <polacek@redhat.com>
154         * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
155         not in effect.
157 2017-12-17  Martin Sebor  <msebor@redhat.com>
159         * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
160         an error for attribute warn_if_not_aligned.
162 2017-12-16  Martin Sebor  <msebor@redhat.com>
164         PR tree-optimization/78918
165         * c-common.c (check_function_restrict): Avoid checking built-ins.
166         * c.opt (-Wrestrict): Include in -Wall.
168 2017-12-15  Jakub Jelinek  <jakub@redhat.com>
170         * c-attribs.c (c_common_attribute_table,
171         c_common_format_attribute_table): Swap affects_type_identity
172         and handler fields, adjust comments.
174 2017-12-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
176         * c.opt (Wcast-function-type): New warning option.
177         * c-lex.c (get_fileinfo): Avoid warning.
178         * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
180 2017-12-14  Qing Zhao  <qing.zhao@oracle.com>
182         PR middle_end/79538
183         * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
184         Adjust the size of buf1 and buf2, add a new buf to avoid
185         format-overflow warning.
187 2017-12-12  Alexandre Oliva <aoliva@redhat.com>
189         * c-semantics.c (pop_stmt_list): Move begin stmt marker into
190         subsequent statement list.
192 2017-12-07  Martin Sebor  <msebor@redhat.com>
194         PR c/81544
195         PR c/81566
196         * c-attribs.c (attr_aligned_exclusions): New array.
197         (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
198         (attr_common_exclusions, attr_const_pure_exclusions): Same.
199         (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
200         (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
201         (attr_warn_unused_result_exclusions): Same.
202         (handle_hot_attribute, handle_cold_attribute): Simplify.
203         (handle_const_attribute): Warn on function returning void.
204         (handle_pure_attribute): Same.
205         (handle_aligned_attribute): Diagnose conflicting attribute
206         specifications.
207         * c-warn.c (diagnose_mismatched_attributes): Simplify.
209 2017-12-06  David Malcolm  <dmalcolm@redhat.com>
211         PR c/83236
212         * c-common.c (selftest::c_family_tests): Call
213         selftest::c_spellcheck_cc_tests.
214         * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
215         * c-spellcheck.cc: Include "selftest.h".
216         (name_reserved_for_implementation_p): New function.
217         (should_suggest_as_macro_p): New function.
218         (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
219         should_suggest_as_macro_p and call it.
220         (selftest::test_name_reserved_for_implementation_p): New function.
221         (selftest::c_spellcheck_cc_tests): New function.
222         * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
224 2017-12-06  David Malcolm  <dmalcolm@redhat.com>
226         * c-spellcheck.cc: New file, taken from macro-handling code in
227         spellcheck-tree.c.
228         * c-spellcheck.h: New file, taken from macro-handling code in
229         spellcheck-tree.h.
231 2017-12-01  Jakub Jelinek  <jakub@redhat.com>
233         * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
234         attribute.
235         (handle_simd_attribute): Don't check for "cilk simd function"
236         attribute.  Reindent, formatting changes.
238 2017-11-30  Julia Koval  <julia.koval@intel.com>
240         * c-common.h (inv_list): Remove.
242 2017-11-28  Jakub Jelinek  <jakub@redhat.com>
244         PR sanitizer/81275
245         * c-common.c (c_switch_covers_all_cases_p_1,
246         c_switch_covers_all_cases_p): New functions.
247         * c-common.h (c_switch_covers_all_cases_p): Declare.
249 2017-11-28  Julia Koval  <julia.koval@intel.com>
250             Sebastian Peryt  <sebastian.peryt@intel.com>
252         * array-notation-common.c: Delete.
253         * c-cilkplus.c: Ditto.
254         * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
255         * c-common.def (ARRAY_NOTATION_REF): Remove.
256         * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
257         build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
258         c_validate_cilk_plus_loop, cilkplus_an_parts,
259         cilk_ignorable_spawn_rhs_op,
260         cilk_recognize_spawn): Remove.
261         * c-gimplify.c (CILK_SPAWN_STMT): Remove.
262         * c-omp.c: Remove CILK_SIMD check.
263         * c-pragma.c: Ditto.
264         * c-pragma.h: Remove CILK related pragmas.
265         * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
266         ARRAY_NOTATION_REF condition.
267         (c_pretty_printer::expression): Ditto.
268         * c.opt (fcilkplus): Remove.
269         * cilk.c: Delete.
271 2017-11-21  Marc Glisse  <marc.glisse@inria.fr>
273         * c-pretty-print.c (pp_c_additive_expression,
274         c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
276 2017-11-21  Jakub Jelinek  <jakub@redhat.com>
278         * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
280         PR c++/83059
281         * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
282         instead of tree_to_uhwi, formatting fix.
284 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
286         PR c/81404
287         * known-headers.cc: New file, based on material from c/c-decl.c.
288         (suggest_missing_header): Copied as-is.
289         (get_stdlib_header_for_name): New, based on get_c_name_hint but
290         heavily edited to add C++ support.  Add some knowledge about
291         <limits.h>, <stdint.h>, and <wchar.h>.
292         * known-headers.h: Likewise.
294 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
296         * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
297         (lookup_name_fuzzy): Likewise.  Convert return type from
298         const char * to name_hint.  Add location_t param.
299         * name-hint.h: New header.
301 2017-11-19  Jakub Jelinek  <jakub@redhat.com>
303         PR c/66618
304         PR c/69960
305         * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
307 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
309         * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
310         expected publication date of C17.
311         (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
313 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
315         PR c/81156
316         * c-common.c (c_common_reswords): Add __builtin_tgmath.
317         * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
319 2017-11-10  Martin Sebor  <msebor@redhat.com>
321         PR c/81117
322         * c-common.c (catenate_strings): Use memcpy instead of strncpy.
323         * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
324         * c.opt (-Wstringop-truncation): New option.
326 2017-11-06  Martin Liska  <mliska@suse.cz>
328         PR middle-end/82404
329         * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
330         FE.
331         * c.opt: Set default value of warn_return_type.
333 2017-10-31  David Malcolm  <dmalcolm@redhat.com>
335         * c-common.c (binary_op_error): Update for renaming of
336         error_at_rich_loc.
337         (c_parse_error): Likewise.
338         * c-warn.c (warn_logical_not_parentheses): Likewise for
339         renaming of inform_at_rich_loc.
340         (warn_for_restrict): Likewise for renaming of
341         warning_at_rich_loc_n.
343 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
345         * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
346         * c-opts.c (set_std_c17): New function.
347         (c_common_init_options): Use gnu17 as default C version.
348         (c_common_handle_option): Handle -std=c17 and -std=gnu17.
350 2017-10-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
352         * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
353         (c_cpp_builtins): If a machine has a fast fma _Float<N> and
354         _Float<N>X variant, define __FP_FAST_FMA<N> and/or
355         __FP_FAST_FMA<N>X.
357 2017-10-23  Marek Polacek  <polacek@redhat.com>
359         PR c/82681
360         * c-warn.c (warnings_for_convert_and_check): Fix typos.
362 2017-10-19  Eric Botcazou  <ebotcazou@adacore.com>
364         * c-common.c (check_builtin_function_arguments): Also check arguments
365         of __builtin_alloca_with_align_and_max.
367 2017-10-17  David Malcolm  <dmalcolm@redhat.com>
369         * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
370         rather than NULL to format_warning_va.
371         (check_format_types): Likewise when calling format_type_warning.
372         Remove code to extract source_ranges and source_range * in favor
373         of just a location_t.
374         (format_type_warning): Convert source_range * param to a
375         location_t.
377 2017-10-13  Jakub Jelinek  <jakub@redhat.com>
379         * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
380         [LR]SHIFT_EXPR.
382 2017-10-12  David Malcolm  <dmalcolm@redhat.com>
384         * c-common.c (enum missing_token_insertion_kind): New enum.
385         (get_missing_token_insertion_kind): New function.
386         (maybe_suggest_missing_token_insertion): New function.
387         * c-common.h (maybe_suggest_missing_token_insertion): New decl.
389 2017-10-11  Nathan Sidwell  <nathan@acm.org>
391         * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
392         (c_common_handle_option): Update incpath_kind names.
394 2017-10-11  Martin Liska  <mliska@suse.cz>
396         PR sanitizer/82490
397         * c-attribs.c (handle_no_sanitize_attribute): Report directly
398         Wattributes warning.
400 2017-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
402         * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
403         operating on trees as wide_ints.
404         * c-common.c (pointer_int_sum): Likewise.
405         * c-pretty-print.c (pp_c_integer_constant): Likewise.
406         * c-warn.c (match_case_to_enum_1): Likewise.
407         (c_do_switch_warnings): Likewise.
408         (maybe_warn_shift_overflow): Likewise.
410 2017-10-10  Jakub Jelinek  <jakub@redhat.com>
412         PR c/82437
413         * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
414         instead of wide_int::from.
416 2017-10-06  Jakub Jelinek  <jakub@redhat.com>
418         PR c/82437
419         * c-warn.c (warn_tautological_bitwise_comparison): Instead of
420         using to_widest use wide_int with the larger of the two precisions.
422 2017-10-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
424         * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
425         functions.
427 2017-10-02  Richard Sandiford  <richard.sandiford@linaro.org>
429         * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
430         when combining the original unconverted comparison operands.
432 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
434         * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
435         attribute.
437 2017-09-29  Eric Botcazou  <ebotcazou@adacore.com>
439         * c-ada-spec.c (to_ada_name): Add index parameter.
440         (pp_ada_tree_identifier): Likewise.
441         (dump_ada_macros): Adjust call to to_ada_name.
442         (struct overloaded_name_hash): New type.
443         (struct overloaded_name_hasher): Likewise.
444         (overloaded_names): New hash table.
445         (compute_overloading_index): New function.
446         (dump_ada_decl_name): Call it and pass the result to
447         pp_ada_tree_identifier.
448         (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
449         (dump_ada_function_declaration): Likewise.
450         (dump_generic_ada_node): Likewise.
451         (print_constructor): Likewise.
452         (print_destructor): Likewise.
453         (dump_ada_specs): Delete overloaded_names table.
455 2017-09-29  Eric Botcazou  <ebotcazou@adacore.com>
457         * c-ada-spec.c (max_ada_macros): Move around.
458         (store_ada_macro_index): Likewise.
459         (source_file): Rename into...
460         (macro_source_file): ...this.
461         (count_ada_macro): Move around.
462         (store_ada_macro): Likewise.
463         (compare_macro): Likewise.
464         (print_ada_macros): Merge in...
465         (dump_ada_macros): ...this.
466         (source_file_base): Rename into...
467         (current_source_file): ...this.
468         (print_comment): Move around.
469         (dump_ada_nodes): Call dump_ada_declaration directly.
470         (struct with): Change type of limited field to bool.
471         (append_withs): Change type of limited_access parameter to bool.
472         (pp_ada_tree_identifie): Likewise.
473         (dump_ada_decl_nam): Likewise.
474         (dump_generic_ada_node): Likewise.  Do not print the return type.
475         (to_ada_name): Change type of space_found parameter to bool.
476         (dump_ada_function_declaration): Return void and change type of
477         parameters to bool.  Also print the return type for a function.
478         (print_ada_methods): Rename into...
479         (dump_ada_methods): ...this.
480         (print_ada_declaration): Rename into ...
481         (dump_ada_declaration): ...this.  Do not print the return type.
482         (print_ada_struct_decl): Rename into...
483         (dump_ada_struct_decl): ...this.
485 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
487         * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
488         rather than DECL_INITIAL.
489         (common_handle_aligned_attribute): Likewise.
491 2017-09-20  Alexandre Oliva <aoliva@redhat.com>
493         * c.opt (gen-decls): Add RejectNegative.
495 2017-09-15  Andrew Sutton  <andrew.n.sutton@gmail.com>
496             Jakub Jelinek  <jakub@redhat.com>
498         Add support for -std=c++2a.
499         * c-common.h (cxx_dialect): Add cxx2a as a dialect.
500         * opt.c: Add options for -std=c++2a and -std=gnu++2a.
501         * c-opts.c (set_std_cxx2a): New.
502         (c_common_handle_option): Set options when -std=c++2a is enabled.
503         (c_common_post_options): Adjust comments.
504         (set_std_cxx14, set_std_cxx17): Likewise.
506 2017-09-15  Eric Botcazou  <ebotcazou@adacore.com>
508         * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
509         message for non-uniform endianness and issue a warning in C++.
511 2017-09-15  Jakub Jelinek  <jakub@redhat.com>
513         * c.opt (Wc++1z-compat): Change from option to undocumented alias.
514         (Wc++17-compat): Change from undocumented alias to option.
515         (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
516         change C++1z to C++17 in description.
517         (std=c++1z, std=gnu++1z): Change from option to undocumented
518         deprecated alias.
519         (std=c++17, std=gnu++17): Change from undocumented alias to option.
520         Adjust description.
521         * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
522         * c-opts.c (set_std_cxx1z): Rename to ...
523         (set_std_cxx17): ... this.
524         (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
525         and OPT_std_gnu__1z to OPT_std_gnu__17.  Adjust set_std_cxx1z
526         caller.
527         (c_common_post_options): Use cxx17 instead of cxx1z.  Adjust
528         comments.
530 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
532         * c-attribs.c (common_handle_aligned_attribute): Don't warn
533         function alignment if warn_if_not_aligned_p is true.
535 2017-09-12  Nathan Sidwell  <nathan@acm.org>
537         * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
538         resort_sorted_fields): Move to c/c-decl.c.
539         * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
540         (struct sorted_fields_type): Move to c/c-lang.h.
542 2017-09-09  Jonathan Wakely  <jwakely@redhat.com>
544         PR c++/81852
545         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
547 2017-09-04  Marek Polacek  <polacek@redhat.com>
549         PR c/81783
550         * c-warn.c (warn_tautological_bitwise_comparison): New function.
551         (warn_tautological_cmp): Call it.
553 2017-09-01  Boris Kolpackov <boris@codesynthesis.com>
555         * c-opts.c (c_common_finish): Write dependency information even if
556         there are errors.
558 2017-09-01  Jakub Jelinek  <jakub@redhat.com>
560         PR c/81887
561         * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
562         (omp_pragmas_simd): ... here.
563         * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
564         create new clauses list containing just simd clause.
566 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
567             Alan Hayward  <alan.hayward@arm.com>
568             David Sherwood  <david.sherwood@arm.com>
570         * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
571         into scalar_mode_supported_p call.
572         (handle_mode_attribute): Update call to scalar_mode_supported_p.
574 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
575             Alan Hayward  <alan.hayward@arm.com>
576             David Sherwood  <david.sherwood@arm.com>
578         * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
579         for the mode iterator.
581 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
582             Alan Hayward  <alan.hayward@arm.com>
583             David Sherwood  <david.sherwood@arm.com>
585         * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
586         * c-common.c (c_build_vec_perm_expr): Likewise.
588 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
589             Alan Hayward  <alan.hayward@arm.com>
590             David Sherwood  <david.sherwood@arm.com>
592         * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
594 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
595             Alan Hayward  <alan.hayward@arm.com>
596             David Sherwood  <david.sherwood@arm.com>
598         * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
599         before calling targetm.addr_space.valid_pointer_mode.
601 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
602             Alan Hayward  <alan.hayward@arm.com>
603             David Sherwood  <david.sherwood@arm.com>
605         * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
607 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
608             Alan Hayward  <alan.hayward@arm.com>
609             David Sherwood  <david.sherwood@arm.com>
611         * c-common.c (c_common_fixed_point_type_for_size): Use new mode
612         iterators.
613         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
615 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
616             Alan Hayward  <alan.hayward@arm.com>
617             David Sherwood  <david.sherwood@arm.com>
619         * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
620         case statements.
622 2017-08-29  Martin Liska  <mliska@suse.cz>
624         PR other/39851
625         * c-common.c (parse_optimize_options): Add argument to function
626         call.
627         * c-pragma.c (handle_pragma_diagnostic): Likewise.
629 2017-08-24  David Malcolm  <dmalcolm@redhat.com>
631         * c-lex.c (interpret_float): Use token location
632         when building an EXCESS_PRECISION_EXPR.
634 2017-08-21  David Malcolm  <dmalcolm@redhat.com>
636         * c-common.c (check_function_arguments): Add "arglogs" param; pass
637         it to check_function_format.
638         * c-common.h (check_function_arguments): Add vec<location_t> *
639         param.
640         (check_function_format): Likewise.
641         * c-format.c (struct format_check_context): Add field "arglocs".
642         (check_function_format): Add param "arglocs"; pass it to
643         check_format_info.
644         (check_format_info):  Add param "arglocs"; use it to initialize
645         new field of format_ctx.
646         (check_format_arg): Pass format_ctx->arglocs to new param of
647         check_format_info_main.
648         (class argument_parser): New field "arglocs".
649         (argument_parser::argument_parser): Add "arglocs_" param and use
650         it to initialize new field.
651         (argument_parser::check_argument_type): Pass new arglocs field to
652         check_format_types.
653         (check_format_info_main): Add param "arglocs", and use it when
654         constructing arg_parser.
655         (check_format_types): Add param "arglocs"; use it if non-NULL when
656         !EXPR_HAS_LOCATION (cur_param) to get at location information.
658 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
660         PR c/53037
661         * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
662         (c_common_attribute_table): Add warn_if_not_aligned.
663         (handle_aligned_attribute): Renamed to ...
664         (common_handle_aligned_attribute): Remove argument, name, and add
665         argument, warn_if_not_aligned.  Handle warn_if_not_aligned.
666         (handle_aligned_attribute): New.
667         * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
669 2017-08-14  Martin Sebor  <msebor@redhat.com>
671         PR c/81117
672         * c-attribs.c (c_common_attribute_table): Add nonstring entry.
673         (handle_nonstring_attribute): New function.
675 2017-08-14  Martin Sebor  <msebor@redhat.com>
677         PR c/81117
678         * c-format.h (T89_G): New macro.
679         * c-format.c (local_gcall_ptr_node): New variable.
680         (init_dynamic_diag_info): Initialize it.
682 2017-08-11  Martin Liska  <mliska@suse.cz>
684         * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
685         TARGET_SUPPORTS_ALIASES.
687 2017-08-10  David Malcolm  <dmalcolm@redhat.com>
689         * c-common.c (c_parse_error): Add rich_location * param, using it
690         rather implicitly using input_location.
691         * c-common.h (c_parse_error): Add rich_location * param.
693 2017-08-09  Marek Polacek  <polacek@redhat.com>
695         * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
696         (c_common_truthvalue_conversion): Likewise.
697         * c-omp.c (c_finish_omp_atomic): Likewise.
698         * c-common.h (build_binary_op): Update declaration.
700 2017-08-08  Martin Liska  <mliska@suse.cz>
702         * c-ada-spec.c: Include header files.
703         * c-ubsan.c: Likewise.
704         * c-warn.c: Likewise.
706 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
708         PR c/69389
709         * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
711 2017-08-07  Eric Botcazou  <ebotcazou@adacore.com>
713         * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
714         (print_ada_methods): Likewise.
715         (print_ada_declaration): Likewise.
717 2017-08-07  Martin Liska  <mliska@suse.cz>
719         * array-notation-common.c: Add new includes.
720         * c-format.c( handle_format_attribute): Canonicalize a format
721         function name.
722         * c-lex.c (c_common_has_attribute): Canonicalize name of an
723         attribute.
724         * c-pretty-print.c: Add new include.
726 2017-08-05  Eric Botcazou  <ebotcazou@adacore.com>
728         * c-ada-spec.c (has_static_fields): Look only into variables.
729         (print_constructor): Add TYPE parameter and use it for the name.
730         (print_destructor): Likewise.
731         (print_ada_declaration): Adjust to new constructor/destructor names.
732         Adjust calls to print_constructor and print_destructor.
733         (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
734         Look only into variables in the final loop.
736 2017-08-01  Eric Botcazou  <ebotcazou@adacore.com>
738         * c-ada-spec.c (has_static_fields): Look only into fields.
739         (dump_generic_ada_node): Small tweak.
740         (dump_nested_types): Look only into fields.
741         (print_ada_declaration): Look only into methods.  Small tweak.
742         (print_ada_struct_decl): Look only into fields.  Use DECL_VIRTUAL_P.
744 2017-08-01  Eric Botcazou  <ebotcazou@adacore.com>
746         * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
747         (dump_ada_function_declaration): Likewise.
748         (dump_generic_ada_node): Likewise.
749         (print_ada_declaration): Add support for const-qualified variables.
751 2017-07-31  Martin Liska  <mliska@suse.cz>
753         PR sanitize/81530
754         * c-ubsan.c (ubsan_maybe_instrument_array_ref):
755         Guard condition with flag_sanitize_p also with current_function_decl
756         non-null equality.
757         (ubsan_maybe_instrument_reference_or_call): Likewise.
759 2017-07-30  Uros Bizjak  <ubizjak@gmail.com>
761         * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
763 2017-07-29  Eric Botcazou  <ebotcazou@adacore.com>
765         * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
766         for enumeral types.
767         (print_ada_declaration): Add missing guard for record types.
769 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
771         PR c/45784
772         * c-omp.c (c_finish_omp_for): If the condition is wrapped in
773         rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
774         new COMPOUND_EXPRs around the rhs of the comparison.
776 2017-07-27  Marek Polacek  <polacek@redhat.com>
778         PR c/81417
779         * c-warn.c (warn_for_sign_compare): Tweak the warning message.  Print
780         the types.
782 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
784         * c-attribs.c (c_common_attribute_table): Add noipa attribute.
785         (handle_noipa_attribute): New function.
787 2017-07-07  Torsten Duwe  <duwe@suse.de>
789         * c-attribs.c (c_common_attribute_table): Add entry for
790         "patchable_function_entry".
792 2017-07-20  Nathan Sidwell  <nathan@acm.org>
794         Remove TYPE_METHODS.
795         * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
796         dump_ada_template, print_ada_methods,
797         print_ada_declaration): Member fns are on TYPE_FIELDS.
799 2017-07-18  Nathan Sidwell  <nathan@acm.org>
801         * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
803 2017-07-14  David Malcolm  <dmalcolm@redhat.com>
805         * c-common.c (try_to_locate_new_include_insertion_point): New
806         function.
807         (per_file_includes_t): New typedef.
808         (added_includes_t): New typedef.
809         (added_includes): New variable.
810         (maybe_add_include_fixit): New function.
811         * c-common.h (maybe_add_include_fixit): New decl.
813 2017-07-10  Martin Sebor  <msebor@redhat.com>
815         PR other/81345
816         * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
818 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
820         * c-common.c (selftest::c_family_tests): New.
821         * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
822         (selftest::c_family_tests): New decl.
824 2017-07-04  Marek Polacek  <polacek@redhat.com>
826         PR c/81231
827         * c-common.c (sync_resolve_size): Give error for pointers to incomplete
828         types.
830 2017-07-04  Marek Polacek  <polacek@redhat.com>
832         * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
834 2017-06-28  Martin Liska  <mliska@suse.cz>
836         PR ipa/81128
837         * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
838         to a function declaration.
840 2017-06-28  Martin Liska  <mliska@suse.cz>
842         PR driver/79659
843         * c.opt: Add IntegerRange to various options.
845 2017-06-26  Marek Polacek  <polacek@redhat.com>
847         PR c/80116
848         * c-common.h (warn_for_multistatement_macros): Declare.
849         * c-warn.c: Include "c-family/c-indentation.h".
850         (warn_for_multistatement_macros): New function.
851         * c.opt (Wmultistatement-macros): New option.
852         * c-indentation.c (guard_tinfo_to_string): No longer static.
853         Change the parameter type to "enum rid".  Handle RID_SWITCH.
854         * c-indentation.h (guard_tinfo_to_string): Declare.
856 2017-06-23  Marc Glisse  <marc.glisse@inria.fr>
858         * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
860 2017-06-15  Martin Sebor  <msebor@redhat.com>
862         PR c++/80560
863         * c.opt (-Wclass-memaccess): New option.
865 2017-06-14  Boris Kolpackov  <boris@codesynthesis.com>
867         * c-opts.c (c_common_finish): Handle '-' special value to -MF.
869 2017-06-13  Marek Polacek  <polacek@redhat.com>
871         PR objc/80949
872         * c-warn.c (do_warn_duplicated_branches): Return if any of the
873         branches is null.
875 2017-06-13  Martin Liska  <mliska@suse.cz>
877         PR sanitize/78204
878         * c-attribs.c (add_no_sanitize_value): New function.
879         (handle_no_sanitize_attribute): Likewise.
880         (handle_no_sanitize_address_attribute): Use the function.
881         (handle_no_sanitize_thread_attribute): New function.
882         (handle_no_address_safety_analysis_attribute): Use
883         add_no_sanitize_value.
884         (handle_no_sanitize_undefined_attribute): Likewise.
885         * c-common.h: Declare new functions.
886         * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
887         (ubsan_instrument_shift): Likewise.
888         (ubsan_instrument_bounds): Likewise.
889         (ubsan_maybe_instrument_array_ref): Likewise.
890         (ubsan_maybe_instrument_reference_or_call): Likewise.
892 2017-06-11  Jason Merrill  <jason@redhat.com>
894         * c-ada-spec.c, c-pragma.c: Use id_equal.
896 2017-06-04  Marek Polacek  <polacek@redhat.com>
898         PR c/80919
899         * c-format.c (matching_type_p): Return false if any of the types
900         requires structural equality.
902 2017-06-02  Martin Sebor  <msebor@redhat.com>
904         PR c/80892
905         * c-warn.c (conversion_warning): Use -Wconversion for integer
906         conversion and -Wfloat-conversion for floating one.
908 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
910         * c.opt (Wsizeof-pointer-div): New warning option.
912 2017-06-01  Volker Reichelt  <v.reichelt@netcologne.de>
914         * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
915         (Wcatch-value=1): Enable by -Wall.
917 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
919         * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
920         format_chars.
921         * c.opt (fdiagnostics-show-template-tree): New option.
922         (felide-type): New option.
924 2017-05-25  Volker Reichelt  <v.reichelt@netcologne.de>
926         * c.opt (Wcatch-value=): New C++ warning flag.
928 2017-05-24  Nathan Sidwell  <nathan@acm.org>
930         * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
931         const casts to avoid warning.
933 2017-05-24  Martin Sebor  <msebor@redhat.com>
935         PR c/80731
936         * c-common.h (unsafe_conversion_p): Add a function argument.
937         * c-common.c (unsafe_conversion_p): Same.
938         Add type names and values to diagnostics.
939         (scalar_to_vector): Adjust.
940         * c-warn.c (constant_expression_error): Add a function argument.
941         Add type names and values to diagnostics.
942         (conversion_warning): Add a function argument.
943         Add type names and values to diagnostics.
944         (warnings_for_convert_and_check): Same.
946 2017-05-19  Jason Merrill  <jason@redhat.com>
948         * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
949         enumerators.
951 2017-05-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
953         * c-format.c (locus): Move out of function scope,
954         add GTY attribute.
956 2017-05-19  Nathan Sidwell  <nathan@acm.org>
958         * c-opts.c (class_dump_file, class_dump_flags): Delete.
959         (c_common_parse_file): Remove class dump handling.
960         (get_dump_info): Likewise.
962 2017-05-19  Richard Biener  <rguenther@suse.de>
964         PR c++/80593
965         * c-warn.c (strict_aliasing_warning): Do not warn for accesses
966         to alias-set zero memory.
968 2017-05-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
970         * c-format.c (local_tree_type_node): Add GTY attribute.
972 2017-05-18  Marek Polacek  <polacek@redhat.com>
974         * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
975         (c_common_fixed_point_type_for_size): Likewise.
976         (c_common_type_for_mode): Likewise.
977         (shorten_compare): Likewise.
978         (c_promoting_integer_type_p): Use false/true instead of 0/1.
979         * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
981 2017-05-18  Marek Polacek  <polacek@redhat.com>
983         * c-common.c (self_promoting_args_p): Change the return type to bool.
984         Use false/true instead of 0/1.
985         * c-common.h (self_promoting_args_p): Update.
987 2017-05-17  Marek Polacek  <polacek@redhat.com>
989         * c-common.c: Use NULL_TREE instead of 0 where appropriate.
990         * c-warn.c: Likewise.
992 2017-05-17  Ville Voutilainen  <ville.voutilainen@gmail.com>
994         Implement new C++ intrinsics __is_assignable and __is_constructible.
995         * c-common.c (__is_assignable, __is_constructible): New.
996         * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
998 2017-05-17  Martin Liska  <mliska@suse.cz>
1000         * c-common.h: Introduce dump_flags_t type and
1001         use it instead of int type.
1002         * c-gimplify.c (c_genericize): Likewise.
1003         * c-opts.c: Likewise.
1005 2017-05-17  Marek Polacek  <polacek@redhat.com>
1007         * c-common.c (c_save_expr): Remove.
1008         (c_common_truthvalue_conversion): Remove a call to c_save_expr.
1009         * c-common.h (c_save_expr): Remove declaration.
1011 2017-05-09  Volker Reichelt  <v.reichelt@netcologne.de>
1013         PR c/35441
1014         * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
1015         MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
1016         (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
1017         (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
1018         RDIV_EXPR.
1019         (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
1021 2017-05-09  Marek Polacek  <polacek@redhat.com>
1023         PR c/80525
1024         * c-warn.c (unwrap_c_maybe_const): New.
1025         (warn_logical_operator): Call it.
1027 2017-05-09  Nathan Sidwell  <nathan@acm.org>
1029         * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
1030         * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
1032 2017-05-08  Martin Sebor  <msebor@redhat.com>
1034         PR translation/80280
1035         * c-format.h (struct format_flag_spec): Add new member.
1036         (T89_T): New macro.
1037         * c-format.c (local_tree_type_node): New global.
1038         (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
1039         (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
1040         (strfmon_flag_specs): Likewise.
1041         (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
1042         with distinct quoting properties.
1043         (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
1044         (flag_chars_t::validate): Add argument and handle bad quoting.
1045         (check_format_info_main): Handle quoting problems.
1046         (init_dynamic_diag_info): Simplify.
1048 2017-05-08  Jason Merrill  <jason@redhat.com>
1050         * c-opts.c (c_common_post_options): Update defaults for
1051         flag_abi_version and flag_abi_compat_version.
1053 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
1055         * c-common.c (c_cpp_error): Replace report_diagnostic
1056         with diagnostic_report_diagnostic.
1058 2017-05-04  Martin Sebor  <msebor@redhat.com>
1060         PR translation/80280
1061         * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
1062         (handle_weakref_attribute): Same.
1064 2017-05-03  Nathan Sidwell  <nathan@acm.org>
1066         Canonicalize canonical type hashing
1067         * c-common.c (complete_array_type): Use type_hash_canon.
1069 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
1071         PR c++/80038
1072         * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
1073         prototype.
1074         (cilk_install_body_pedigree_operations): Likewise.
1075         * cilk.c (cilk_set_spawn_marker): Mark functions that should be
1076         detatched.
1077         (cilk_gimplify_call_params_in_spawned_fn): Remove.
1078         (cilk_install_body_pedigree_operations): Likewise.
1079         (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
1080         unwrapping.
1082 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
1084         PR c++/80534
1085         * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
1086         flag on non-aggregate element types.
1088 2017-04-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1090         * c-common.c (c_type_hasher, type_hash_table): Remove.
1091         (c_common_get_alias_set): Remove unreachable code.
1092         * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
1094 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
1096         * c.opt (Wextra-semi): New C++ warning flag.
1098 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
1100         PR middle-end/80423
1101         * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
1103 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
1105         PR middle-end/79788
1106         PR middle-end/80375
1107         * c-common.c (c_common_type_for_mode): Don't handle
1108         widest_*_literal_type_node here.
1109         c_common_signed_or_unsigned_type): Likewise.
1110         (c_common_nodes_and_builtins): Set widest_*_literal_type_node
1111         to *intTI_type_node or *intDI_type_node depending on whether
1112         TImode is supported by the target or not.
1114 2017-04-10  Martin Liska  <mliska@suse.cz>
1116         PR sanitizer/80350
1117         * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
1118         doing an UBSAN check.
1120 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
1122         * c-warn.c (do_warn_double_promotion): Fix typo in comment.
1124 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
1126         PR c++/79572
1127         * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
1128         tree *.
1129         * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise.  Handle
1130         not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
1131         REFERENCE_TYPE.
1133 2017-03-31  David Malcolm  <dmalcolm@redhat.com>
1135         PR documentation/78732
1136         * c.opt (Wendif-labels): Fix description to refer to
1137         #else rather than #elif.
1139 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
1141         PR libstdc++/80251
1142         * c-common.h (enum rid): Add RID_IS_AGGREGATE.
1143         * c-common.c (c_common_reswords): Add __is_aggregate trait.
1145 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
1147         PR middle-end/80162
1148         * c-common.c (c_common_mark_addressable_vec): Don't set
1149         TREE_ADDRESSABLE on DECL_HARD_REGISTER.
1151 2017-03-21  Martin Sebor  <msebor@redhat.com>
1153         PR c++/79548
1154         * c-common.c (set_underlying_type): Mark type used only when
1155         original del is declared unused.
1157 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
1159         PR translation/79848
1160         * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
1161         "%qs".
1163 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
1165         PR c/79921
1166         * c-indentation.c (warn_for_misleading_indentation): Remove parens
1167         from inform's message, so that xgettext can locate it.
1169 2017-03-09  Marek Polacek  <polacek@redhat.com>
1171         PR c++/79962
1172         PR c++/79984
1173         * c-attribs.c (handle_nonnull_attribute): Save the result of default
1174         conversion to the attribute list.
1176 2017-03-09  Martin Liska  <mliska@suse.cz>
1178         * c-ada-spec.c (macro_length): Increment value instead of a pointer.
1180 2017-03-03  Jason Merrill  <jason@redhat.com>
1182         * c.opt (Wnoexcept-type): New.
1184 2017-03-02  Richard Biener  <rguenther@suse.de>
1186         PR c/79756
1187         * c-common.c (c_common_mark_addressable_vec): Look through
1188         C_MAYBE_CONST_EXPR.
1190 2017-02-28  Martin Liska  <mliska@suse.cz>
1192         * c.opt: Replace space with tabular for options of <number>
1193         type.
1195 2017-02-28  Martin Liska  <mliska@suse.cz>
1197         * c.opt: Fix --help=option -Q for options which are of
1198         an enum type.
1200 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
1202         PR c++/79588
1203         * c-common.c (check_function_restrict): New function.
1204         (check_function_arguments): Add FNDECL argument.  Call
1205         check_function_restrict if -Wrestrict.
1206         * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
1207         and NARGS.  Use auto_vec for ARG_POSITIONS, simplify.
1208         * c-common.h (check_function_arguments): Add FNDECL argument.
1209         (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
1211 2017-02-24  Eric Botcazou  <ebotcazou@adacore.com>
1213         * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
1214         treatment of parameters with pointer-to-tagged type and tidy up.
1215         (print_ada_methods): Remove the special treatment of C++ static member
1216         functions.
1218 2017-02-22  Martin Liska  <mliska@suse.cz>
1220         * c.opt: Replace inequality signs with square brackets
1221         for -Wnornalized.
1223 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
1225         PR c++/79641
1226         * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
1227         preserve quals.
1229 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
1231         * c-cppbuiltin.c (builtin_define_float_constants): Define
1232         __DECIMAL_DIG__ to the value for long double.
1234 2017-02-15  Marek Polacek  <polacek@redhat.com>
1236         PR c/79515
1237         * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
1238         conversion has occured.
1240 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
1242         * c-common.c (c_common_reswords): Add "__RTL".
1243         * c-common.h (enum rid): Add RID_RTL.
1245 2017-01-20  Marek Polacek  <polacek@redhat.com>
1247         PR c/64279
1248         * c-common.h (do_warn_duplicated_branches_r): Declare.
1249         * c-gimplify.c (c_genericize): Walk the function tree calling
1250         do_warn_duplicated_branches_r.
1251         * c-warn.c (expr_from_macro_expansion_r): New.
1252         (do_warn_duplicated_branches): New.
1253         (do_warn_duplicated_branches_r): New.
1254         * c.opt (Wduplicated-branches): New option.
1256 2017-01-17  David Malcolm  <dmalcolm@redhat.com>
1258         PR c++/71497
1259         * c-indentation.c (warn_for_misleading_indentation): Use the past
1260         subjunctive in the note.
1262 2017-01-17  Aldy Hernandez  <aldyh@redhat.com>
1264         PR c/79116
1265         * array-notation-common.c (cilkplus_extract_an_triplets): Convert
1266         start type to integer_type.
1268 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
1270         PR driver/49726
1271         * c.opt (gen-decls): Add Driver flag.
1273 2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
1275         Revert:
1276         2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
1278         PR c++/71737
1279         * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
1281 2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
1283         PR c++/71737
1284         * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
1286 2017-01-12  Martin Sebor  <msebor@redhat.com>
1288         (-Wformat-overflow): ...to this.
1290 2017-01-11  Martin Sebor  <msebor@redhat.com>
1292         PR c/78768
1293         * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
1294         Also enable for LTO.
1296 2017-01-10  Jason Merrill  <jason@redhat.com>
1298         Implement P0195R2, C++17 variadic using.
1299         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
1301 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
1303         PR translation/79019
1304         PR translation/79020
1305         * c.opt (Wnormalized=): Fix typo in description.
1307 2017-01-08  Martin Sebor  <msebor@redhat.com>
1309         PR middle-end/77708
1310         * c.opt (-Wformat-truncation): New option.
1312 2017-01-06  Alexandre Oliva <aoliva@redhat.com>
1314         * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
1315         value to unsigned short to fit in 4 hex digits without
1316         warnings.
1318 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
1320         * c.opt (fsso-struct): Add 'native' value.
1322 2017-01-05  Martin Liska  <mliska@suse.cz>
1324         PR pch/78970
1325         * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
1326         header.
1328 2017-01-04  Marek Polacek  <polacek@redhat.com>
1330         PR c++/64767
1331         * c.opt (Wpointer-compare): New option.
1333 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
1335         PR driver/78957
1336         * c.opt (fsso-struct=): Add RejectNegative.
1338 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
1340         Update copyright years.
1342 2016-12-29  Martin Liska  <mliska@suse.cz>
1344         PR c/78933
1345         * c.opt (strong-eval-order): Add RejectNegative keyword.
1347 2016-12-22  Jason Merrill  <jason@redhat.com>
1349         Implement P0522R0, matching of template template arguments.
1350         * c-cppbuiltin.c (c_cpp_builtins): Define
1351         __cpp_template_template_args.
1353 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
1355         PR bootstrap/78817
1356         * c-common.c (struct nonnull_arg_ctx): New type.
1357         (check_function_nonnull): Return bool instead of void.  Use
1358         nonnull_arg_ctx as context rather than just location_t.
1359         (check_nonnull_arg): Adjust for the new context type, set
1360         warned_p to true if a warning has been diagnosed.
1361         (check_function_arguments): Return bool instead of void.
1362         * c-common.h (check_function_arguments): Adjust prototype.
1364 2016-12-21  Jason Merrill  <jason@redhat.com>
1366         * c.opt (-fnew-ttp-matching): New flag.
1367         * c-opts.c (c_common_post_options): Default on if -std=c++1z.
1369 2016-12-14  Martin Jambor  <mjambor@suse.cz>
1371         * c-omp.c: Include omp-general.h instead of omp-low.h.
1372         (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
1373         name.
1375 2016-12-14  Martin Sebor  <msebor@redhat.com>
1377         PR c/17308
1378         * c-common.c (check_nonnull_arg): Disable when optimization
1379         is enabled.
1381 2016-12-12  Marek Polacek  <polacek@redhat.com>
1383         PR c++/78647
1384         * c-common.c (attribute_fallthrough_p): Return false for
1385         error_mark_node.
1387 2016-12-08  Martin Sebor  <msebor@redhat.com>
1389         PR c/78284
1390         * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
1392 2016-12-08  Martin Sebor  <msebor@redhat.com>
1394         PR c/78165
1395         * c-pretty-print (pp_c_integer_constant): Avoid formatting type
1396         suffix.
1398 2016-12-07  Martin Sebor  <msebor@redhat.com>
1400         PR c/53562
1401         PR middle-end/77784
1402         PR middle-end/78149
1403         PR middle-end/78138
1404         * c.opt (-Wstringop-overflow): New option.
1406 2016-12-02  Maxim Ostapenko  <m.ostapenko@samsung.com>
1408         * c-attribs.c (asan odr indicator): New attribute.
1409         (handle_asan_odr_indicator_attribute): New function.
1411 2016-11-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1413         * c-common.c (c_common_nodes_and_builtins): Remove initialization of
1414         ptrdiff_type_node;
1416 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
1418         * c-common.c (excess_precision_mode_join): New.
1419         (c_ts18661_flt_eval_method): New.
1420         (c_c11_flt_eval_method): Likewise.
1421         (c_flt_eval_method): Likewise.
1422         * c-common.h (excess_precision_mode_join): New.
1423         (c_flt_eval_method): Likewise.
1424         * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
1425         (cpp_iec_559_value): Call it.
1426         (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
1427         call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
1428         __FLT_EVAL_METHOD_TS_18661_3__.
1430 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
1432         * c-opts.c (c_common_post_options): Add logic to handle the default
1433         case for -fpermitted-flt-eval-methods.
1435 2016-11-23  Paolo Bonzini  <bonzini@gnu.org>
1437         * c.opt (Wexpansion-to-defined): New.
1439 2016-11-23  Jakub Jelinek  <jakub@redhat.com>
1441         PR target/78451
1442         * c-pragma.c (handle_pragma_target): Don't replace
1443         current_target_pragma, but chainon the new args to the current one.
1445 2016-11-22  Nathan Sidwell  <nathan@acm.org>
1447         * array-notation-common.c (cilkplus_extract_an_trplets): Fix
1448         indentation and formatting.
1450 2016-11-21  Martin Sebor  <msebor@redhat.com>
1452         * c.opt (-fprintf-return-value): Enable by default.
1454 2016-11-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1456         PR c++/71973
1457         * c.opt (-Wbuiltin-declaration-mismatch): New warning.
1458         * c-common.c (c_common_nodes_and_builtins): Initialize
1459         const_tm_ptr_type_node.
1461 2016-11-16  Marek Polacek  <polacek@redhat.com>
1463         PR c/78285
1464         * c-common.c (c_add_case_label): Turn error_at calls into inform.
1466 2016-11-14  Jakub Jelinek  <jakub@redhat.com>
1468         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
1470 2016-11-14  Prasad Ghangal  <prasad.ghangal@gmail.com>
1471             Richard Biener  <rguenther@suse.de>
1473         * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
1474         * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
1475         * c.opt (fgimple): New option.
1477 2016-11-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1479         PR c/35503
1480         * c-common.h (warn_for_restrict): Declare.
1481         * c-warn.c: Include gcc-rich-location.h.
1482         (warn_for_restrict): New function.
1483         * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
1484         (gcc_cdiag_char_table): Likewise.
1485         (gcc_cxxdiag_char_table): Likewise.
1486         * c.opt (Wrestrict): New option.
1488 2016-11-13  Eric Botcazou  <ebotcazou@adacore.com>
1490         * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
1491         for nested types only if the type is a record or union and dump SLOC.
1493 2016-11-09  Jason Merrill  <jason@redhat.com>
1495         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
1497 2016-11-09  Jakub Jelinek  <jakub@redhat.com>
1499         * c-ubsan.c (ubsan_instrument_shift): Handle split
1500         -fsanitize=shift-base and -fsanitize=shift-exponent.
1502 2016-11-07  Jason Merrill  <jason@redhat.com>
1504         * c.opt (Wc++1z-compat): New.
1505         * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
1507 2016-11-07  Martin Liska  <mliska@suse.cz>
1509         * c-warn.c (warn_for_unused_label): Save all labels used
1510         in goto or in &label.
1512 2016-11-03  Jason Merrill  <jason@redhat.com>
1514         * c-cppbuiltin.c (c_cpp_builtins): Correct
1515         __cpp_inheriting_constructors.
1517 2016-11-01  Jason Merrill  <jason@redhat.com>
1519         * c-cppbuiltin.c (c_cpp_builtins): Update
1520         __cpp_inheriting_constructors.
1522         * c.opt (-fnew-inheriting-ctors): New.
1523         * c-opts.c: Default to on for ABI 11+.
1525 2016-10-31  Jakub Jelinek  <jakub@redhat.com>
1527         PR c++/77948
1528         * c.opt (fext-numeric-literals): Add Var and Init.
1529         * c-opts.c (c_common_handle_option): Don't clear
1530         cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
1531         (c_common_post_options): Clear it here if not set
1532         explicitly.
1534 2016-10-28  Aldy Hernandez  <aldyh@redhat.com>
1536         PR debug/77773
1537         * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
1538         if NULL.
1540 2016-10-25  Jakub Jelinek  <jakub@redhat.com>
1542         * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
1543         * c-common.c (c_common_reswords): Add __builtin_launder.
1545 2016-10-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1547         * c-common.c (c_common_truthvalue_conversion): Warn for
1548         multiplications in boolean context.  Fix the quoting of '<<' and '<'
1549         in the shift warning.
1551 2016-10-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1553         * c-common.c (c_common_truthvalue_conversion): Fix the comment.
1555 2016-10-20  Jason Merrill  <jason@redhat.com>
1557         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
1559 2016-10-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1561         * c-common.c (c_common_truthvalue_conversion): Warn only for signed
1562         integer shift ops in boolean context.
1564 2016-10-18  Aldy Hernandez  <aldyh@redhat.com>
1566         * c.opt (Walloca): New.
1567         (Walloca-larger-than=): New.
1568         (Wvla-larger-than=): New.
1570 2016-10-17  Marek Polacek  <polacek@redhat.com>
1572         * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
1573         Return immediately when finding a match.
1574         (warn_tautological_cmp): Remove a boolean variable that is no longer
1575         needed.
1577 2016-10-17  Marek Polacek  <polacek@redhat.com>
1579         * c-attribs.c: New file.
1580         * c-common.c: Move attributes handling to c-attribs.c.
1581         (get_nonnull_operand): No longer static.
1582         * c-common.h: Move the declarations from c-attribs.c to its own section.
1584 2016-10-14  Jason Merrill  <jason@redhat.com>
1586         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
1587         and __cpp_deduction_guides.
1589 2016-10-13  Jason Merrill  <jason@redhat.com>
1591         * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
1593 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1595         * c-cppbuiltin.c: Include memmodel.h.
1596         * c-opts.c: Likewise.
1597         * c-pragma.c: Likewise.
1598         * c-warn.c: Likewise.
1600 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
1602         * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
1603         (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
1604         * c-opts.c (sanitize_cpp_opts): Initialize
1605         cpp_opts->cpp_warn_implicit_fallthrough.
1607 2016-10-11  Marek Polacek  <polacek@redhat.com>
1609         * c-common.c (warning_candidate_p): Change the return type to bool
1610         and return true/false instead of 1/0.
1611         (vector_mode_valid_p): Likewise.
1613 2016-10-11  Marek Polacek  <polacek@redhat.com>
1615         * c-common.c (fold_for_warn): No longer static.
1616         (bool_promoted_to_int_p): Likewise.
1617         (c_common_get_narrower): Likewise.
1618         (constant_expression_warning): Move to c-warn.c.
1619         (constant_expression_error): Likewise.
1620         (overflow_warning): Likewise.
1621         (warn_logical_operator): Likewise.
1622         (find_array_ref_with_const_idx_r): Likewise.
1623         (warn_tautological_cmp): Likewise.
1624         (expr_has_boolean_operands_p): Likewise.
1625         (warn_logical_not_parentheses): Likewise.
1626         (warn_if_unused_value): Likewise.
1627         (strict_aliasing_warning): Likewise.
1628         (sizeof_pointer_memaccess_warning): Likewise.
1629         (check_main_parameter_types): Likewise.
1630         (conversion_warning): Likewise.
1631         (warnings_for_convert_and_check): Likewise.
1632         (match_case_to_enum_1): Likewise.
1633         (match_case_to_enum): Likewise.
1634         (c_do_switch_warnings): Likewise.
1635         (warn_for_omitted_condop): Likewise.
1636         (readonly_error): Likewise.
1637         (lvalue_error): Likewise.
1638         (invalid_indirection_error): Likewise.
1639         (warn_array_subscript_with_type_char): Likewise.
1640         (warn_about_parentheses): Likewise.
1641         (warn_for_unused_label): Likewise.
1642         (warn_for_div_by_zero): Likewise.
1643         (warn_for_memset): Likewise.
1644         (warn_for_sign_compare): Likewise.
1645         (do_warn_double_promotion): Likewise.
1646         (do_warn_unused_parameter): Likewise.
1647         (record_locally_defined_typedef): Likewise.
1648         (maybe_record_typedef_use): Likewise.
1649         (maybe_warn_unused_local_typedefs): Likewise.
1650         (maybe_warn_bool_compare): Likewise.
1651         (maybe_warn_shift_overflow): Likewise.
1652         (warn_duplicated_cond_add_or_warn): Likewise.
1653         (diagnose_mismatched_attributes): Likewise.
1654         * c-common.h: Move the declarations from c-warn.c to its own section.
1655         * c-warn.c: New file.
1657 2016-10-08  Jason Merrill  <jason@redhat.com>
1659         * c-common.c (c_common_truthvalue_conversion): Don't distribute
1660         into COND_EXPR in C++.
1662 2016-10-08  Jakub Jelinek  <jakub@redhat.com>
1664         * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
1665         token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
1666         CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
1668 2016-10-07  Jakub Jelinek  <jakub@redhat.com>
1670         Implement LWG2296 helper intrinsic
1671         * c-common.h (enum rid): Add RID_ADDRESSOF.
1672         * c-common.c (c_common_reswords): Add __builtin_addressof.
1674 2016-10-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1676         PR c++/77700
1677         * c-common.c (c_common_truthvalue_conversion): Warn also for
1678         suspicious enum values in boolean context.
1680 2016-10-06  Jakub Jelinek  <jakub@redhat.com>
1682         Implement P0258R2 - helper for C++17
1683         std::has_unique_object_representations trait
1684         * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
1685         * c-common.c (c_common_reswords): Add
1686         __has_unique_object_representations.
1688 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
1690         PR sanitizer/66343
1691         * c-ubsan.c (ubsan_instrument_return): Don't call
1692         initialize_sanitizer_builtins here.
1694 2016-10-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1696         * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
1697         conditional expression in boolean context when only one arm is
1698         non-boolean.
1700 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
1702         PR sanitizer/77823
1703         * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
1704         is not integral.
1706         * c-common.c (c_common_reswords): Update comment for C++11.
1708 2016-10-04  Jason Merrill  <jason@redhat.com>
1710         * c-common.c (make_tree_vector_from_ctor): New.
1711         * c-common.h: Declare it.
1713 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
1715         * c-cppbuiltin.c (c_cpp_builtins): Don't define
1716         __LIBGCC_JCR_SECTION_NAME__.
1718 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1720         * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
1721         left shift in boolean context.
1723 2016-09-29  Jakub Jelinek  <jakub@redhat.com>
1725         Implement P0001R1 - C++17 removal of register storage class specifier
1726         * c.opt (Wregister): New warning.
1727         * c-opts.c (c_common_post_options): Enable -Wregister by
1728         default for C++17.
1730 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
1732         * c-opts.c (c_common_post_options): Remove special case for
1733         TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
1734         in C++.
1736 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
1738         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
1739         -std=c++1z.
1741         * c-ada-spec.c (print_ada_declaration): Remove break after return.
1743 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1745         * c-common.c: Include memmodel.h.
1747 2016-09-26  Marek Polacek  <polacek@redhat.com>
1749         * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
1751 2016-09-26  Marek Polacek  <polacek@redhat.com>
1753         PR c/7652
1754         * c-common.c (c_common_attribute_table): Add fallthrough attribute.
1755         (handle_fallthrough_attribute): New function.
1756         (attribute_fallthrough_p): New function.
1757         * c-common.h (attribute_fallthrough_p): Declare.
1759 2016-09-24  Marek Polacek  <polacek@redhat.com>
1761         PR c/77490
1762         * c.opt (Wbool-operation): New.
1764 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1766         * c-common.c (c_common_truthvalue_conversion): Inhibit
1767         Wint-in-bool-context warning with from_macro_definition_at.
1768         Mention the expression will always evaluate to true.
1770 2016-09-21  Martin Sebor  <msebor@redhat.com>
1772         PR bootstrap/77676
1773         * c.opt (fprintf-return-value): Temporarily initialize to zero
1774         to unblock bootstrap failures.
1776 2016-09-21  Jakub Jelinek  <jakub@redhat.com>
1778         PR c++/77651
1779         * c.opt (Waligned-new=): Add RejectNegative.
1780         (faligned-new=): Likewise.  Spelling fix - change
1781         aligned_new_threshhold to aligned_new_threshold.
1782         * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
1783         to aligned_new_threshold.
1785 2016-09-20  Martin Sebor  <msebor@redhat.com>
1787         PR middle-end/49905
1788         * c.opt: Add -Wformat-length and -fprintf-return-value.
1790 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1792         PR c++/77434
1793         * c.opt (Wint-in-bool-context): New warning.
1794         * c-common.c (c_common_truthvalue_conversion): Warn on integer
1795         constants in boolean context.
1797 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
1799         * c-common.c (max_align_t_align): Also consider alignment of
1800         float128_type_node.
1802 2016-09-15  Jason Merrill  <jason@redhat.com>
1804         * c-common.c (check_cxx_fundamental_alignment_constraints): Check
1805         DECL_EXTERNAL.
1807 2016-09-14  Jason Merrill  <jason@redhat.com>
1809         * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
1810         limit FIELD_DECL, either.
1812 2016-09-14  Marek Polacek  <polacek@redhat.com>
1814         * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
1815         * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
1816         * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
1818 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
1820         * c-common.c (warn_logical_not_parentheses): Replace
1821         rich_location::add_fixit_insert calls with add_fixit_insert_before
1822         and add_fixit_insert_after, eliminating the "next_loc" calculation.
1824 2016-09-13  Jason Merrill  <jason@redhat.com>
1825             Tom de Vries  <tom@codesourcery.com>
1827         PR c++/77427
1828         * c-common.c (set_underlying_type): Don't treat array as builtin type.
1830 2016-09-13  Jason Merrill  <jason@redhat.com>
1832         * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
1833         limit types at all.
1835 2016-09-12  Jason Merrill  <jason@redhat.com>
1837         * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
1838         bit/byte confusion, allow large alignment for types.
1840 2016-09-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1842         PR c++/77496
1843         * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
1845 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
1847         PR c/72858
1848         * c-format.c (argument_parser::check_argument_type): Add params
1849         "type_start" and "conversion_char".  Use the former to generate
1850         offset_to_type_start and pass it and conversion_char to
1851         check_format_types.
1852         (check_format_info_main): Capture the start of the type
1853         information as "type_start", and pass it an format_char
1854         to arg_parser.check_argument_type.
1855         (check_format_types): Provide an example in the leading comment.
1856         Add params "offset_to_type_start" and "conversion_char"; pass
1857         them to format_type_warning calls.
1858         (test_get_modifier_for_format_len): Likewise.
1859         (matching_type_p): New function.
1860         (get_format_for_type): Add param "conversion_char" and move
1861         implementation into...
1862         (get_format_for_type_1): ...new function, called twice.
1863         Use new function matching_type_p rather than checking for
1864         TYPE_CANONICAL equality.
1865         (get_corrected_substring): New function.
1866         (format_type_warning): Provide an example in the leading comment.
1867         Add params "offset_to_type_start" and "conversion_char".  Replace
1868         call to get_format_for_type with call to get_corrected_substring
1869         and move rejection of hints for widths/precisions there.
1870         (assert_format_for_type_streq): Add param "conversion_char".
1871         (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
1872         (test_get_format_for_type_printf): Add conversion chars to the
1873         tests, adding coverage for various combinations of integer
1874         vs double conversions, and for preserving octal and hexadecimal
1875         conversions.
1876         (test_get_format_for_type_scanf): Add conversion chars to the
1877         tests.
1879 2016-09-10  Tom de Vries  <tom@codesourcery.com>
1881         PR C/71602
1882         * c-common.c (build_va_arg): Handle more strict
1883         targetm.canonical_va_list_type.  Replace first argument type error with
1884         assert.
1886 2016-09-09  Martin Sebor  <msebor@redhat.com>
1888         PR c/77520
1889         PR c/77521
1890         * c-format.c (argument_parser::find_format_char_info): Use %qc
1891         format directive unconditionally.
1893 2016-09-09  Jason Merrill  <jason@redhat.com>
1895         Implement C++17 new of over-aligned types.
1896         * c.opt: Add -faligned-new and -Waligned-new.
1897         * c-common.c (max_align_t_align): Split out from...
1898         (cxx_fundamental_alignment_p): ...here.
1899         * c-common.h: Declare it.
1900         * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
1902 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
1904         * c-cppbuiltin.c (builtin_define_type_width): New function.
1905         (builtin_define_stdint_macros, c_cpp_builtins): Define type width
1906         macros.
1908 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
1910         * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
1911         a POINTER_TYPE.
1912         (substring_loc::get_location): Move to substring-locations.c,
1913         keeping implementation as...
1914         (c_get_substring_location): New function, from the above, reworked
1915         to use accessors rather than member lookup.
1916         * c-common.h (class substring_loc): Move to substring-locations.h,
1917         replacing with a forward decl.
1918         (c_get_substring_location): New decl.
1919         * c-format.c: Include "substring-locations.h".
1920         (format_warning_va): Move to substring-locations.c.
1921         (format_warning_at_substring): Likewise.
1923 2016-09-06 Martin Sebor  <msebor@redhat.com>
1925         PR c/77336
1926         * c-format.c (check_function_format): Avoid issuing warnings for
1927         functions unless they call format functions with non-constant
1928         format strings.
1930 2016-09-06  Richard Biener  <rguenther@suse.de>
1932         PR c/77450
1933         * c-common.c (c_common_mark_addressable_vec): Handle
1934         COMPOUND_LITERAL_EXPR.
1936 2016-09-05  Marek Polacek  <polacek@redhat.com>
1938         PR c/77423
1939         * c-common.c (bool_promoted_to_int_p): New function.
1940         (expr_has_boolean_operands_p): New function.
1941         (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
1942         (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
1944 2016-09-04  Tom de Vries  <tom@codesourcery.com>
1946         revert:
1947         2016-08-29  Tom de Vries  <tom@codesourcery.com>
1949         * c-common.c (build_va_arg): Replace first argument type error
1950         with assert.
1952 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
1954         PR c/65467
1955         * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
1956         (c_finish_omp_for): Reject _Atomic qualified iterators.
1958 2016-09-01  Martin Sebor  <msebor@redhat.com>
1960         * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
1961         size to guarantee it fits the output of the formatted function
1962         regardless of its arguments.
1964 2016-09-01  Marek Polacek  <polacek@redhat.com>
1966         PR c/7652
1967         * c-common.c (resolve_overloaded_builtin): Fix formatting.  Add
1968         FALLTHRU comments.
1970 2016-08-29  Marek Polacek  <polacek@redhat.com>
1972         PR c/77292
1973         * c-common.c (warn_logical_not_parentheses): Don't warn for
1974         a comparison or a logical operator.
1976 2016-08-29  Tom de Vries  <tom@codesourcery.com>
1978         * c-common.c (build_va_arg): Fix type comparison assert.
1980 2016-08-29  Tom de Vries  <tom@codesourcery.com>
1982         * c-common.c (build_va_arg): Replace first argument type error
1983         with assert.
1985 2016-08-29  Tom de Vries  <tom@codesourcery.com>
1987         PR c/77398
1988         * c-common.c (build_va_arg): Add first argument error.  Build va_arg
1989         with error_mark_node as va_list instead of with illegal va_list.
1991 2016-08-25  Marek Polacek  <polacek@redhat.com>
1992             David Malcolm  <dmalcolm@redhat.com>
1994         * c-common.c (warn_logical_not_parentheses): Print fixit hints.
1995         * c-common.h (warn_logical_not_parentheses): Update declaration.
1997 2016-08-22  Marek Polacek  <polacek@redhat.com>
1999         PR c++/77321
2000         * c-common.c (warn_for_memset): Check type for null.
2002 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
2004         * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
2005         _FloatNx types for suffixes for built-in functions.
2007 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
2009         PR c/32187
2010         * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
2011         (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
2012         (RID_FLOAT128X): New enum rid values.
2013         (CASE_RID_FLOATN_NX): New macro.
2014         * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
2015         keywords.
2016         (c_common_type_for_mode): Check for _FloatN and _FloatNx and
2017         corresponding complex types.
2018         (c_common_nodes_and_builtins): For non-C++, register _FloatN and
2019         _FloatNx and corresponding complex types.
2020         (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
2021         * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
2022         and _FloatNx types for the widest type for determining
2023         DECIMAL_DIG.  Define __LDBL_DECIMAL_DIG__ as well as
2024         __DECIMAL_DIG__ for long double.  Handle FMA_SUFFIX being NULL.
2025         (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
2026         and _FloatNx types.
2027         * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
2028         constants.
2029         * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
2030         _FloatNx types.
2032 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
2034         * c-opts.c (c_diagnostic_finalizer): Update for change to
2035         diagnostic_show_locus.
2037 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
2039         * c-common.c: Include "spellcheck.h".
2040         (cb_get_suggestion): New function.
2041         * c-common.h (cb_get_suggestion): New decl.
2042         * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
2043         cb_get_suggestion.
2045 2016-08-18  Marek Polacek  <polacek@redhat.com>
2047         PR c/71514
2048         * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
2049         and pointer-to-VLA.
2051 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
2053         PR c/72857
2054         * c-common.c (substring_loc::get_range): Rename to...
2055         (substring_loc::get_location): ...this, converting param from a
2056         source_range * to a location_t *.  Call
2057         get_source_location_for_substring rather than
2058         get_source_range_for_substring, and pass in m_caret_idx.
2059         * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
2060         (substring_loc::get_range): Replace with...
2061         (substring_loc::get_location): ...this.
2062         (substring_loc::set_caret_index): New method.
2063         (substring_loc): Add field m_caret_idx.
2064         * c-format.c (format_warning_va): Update for above changes.
2065         Rename local "substring_loc" to "fmt_substring_loc" to avoid
2066         clashing with type name.
2067         (format_warning_at_char): Add caret_idx param to substring_loc ctor.
2068         (check_argument_type): Likewise.
2069         (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
2070         Use a copy when emitting warnings, setting the caret index from TYPE.
2072 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
2073             Arnaud Charlet  <charlet@adacore.com>
2075         * c-ada-spec.c (dump_number): New function.
2076         (handle_escape_character): Likewise.
2077         (print_ada_macros): Add handling of constant integers and strings.
2079 2016-08-12  Marek Polacek  <polacek@redhat.com>
2081         PR c/7652
2082         * c-common.c (scalar_to_vector): Adjust fall through comment.
2083         * c-opts.c (c_common_handle_option): Likewise.
2084         * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
2085         * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
2086         fall through comment.
2087         * cilk.c (extract_free_variables): Add FALLTHRU.
2089 2016-08-10  Jason Merrill  <jason@redhat.com>
2091         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
2093 2016-08-09  Jason Merrill  <jason@redhat.com>
2095         * c-common.c (c_common_attribute_table): vector_size affects type
2096         identity.
2098 2016-08-09  Marek Polacek  <polacek@redhat.com>
2100         PR c/7652
2101         * c-ada-spec.c (dump_generic_ada_node): Add return.
2103 2016-08-09  Jason Merrill  <jason@redhat.com>
2105         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
2106         C++17 constexpr lambdas.
2108 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
2110         PR c/64955
2111         * c-common.h (selftest::c_format_c_tests): New declaration.
2112         (selftest::run_c_tests): New declaration.
2113         * c-format.c: Include "selftest.h.
2114         (format_warning_va): Add param "corrected_substring" and use
2115         it to add a replacement fix-it hint.
2116         (format_warning_at_substring): Likewise.
2117         (format_warning_at_char): Update for new param of
2118         format_warning_va.
2119         (argument_parser::check_argument_type): Pass "fki" to
2120         check_format_types.
2121         (check_format_types): Add param "fki" and pass it to
2122         format_type_warning.
2123         (deref_n_times): New function.
2124         (get_modifier_for_format_len): New function.
2125         (selftest::test_get_modifier_for_format_len): New function.
2126         (get_format_for_type): New function.
2127         (format_type_warning): Add param "fki" and use it to attempt
2128         to provide hints for argument types when calling
2129         format_warning_at_substring.
2130         (selftest::get_info): New function.
2131         (selftest::assert_format_for_type_streq): New function.
2132         (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
2133         (selftest::test_get_format_for_type_printf): New function.
2134         (selftest::test_get_format_for_type_scanf): New function.
2135         (selftest::c_format_c_tests): New function.
2137 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
2139         PR c/52952
2140         * c-format.c: Include "diagnostic.h".
2141         (location_column_from_byte_offset): Delete.
2142         (location_from_offset): Delete.
2143         (format_warning_va): New function.
2144         (format_warning_at_substring): New function.
2145         (format_warning_at_char): New function.
2146         (check_format_arg): Capture location of format_tree and pass to
2147         check_format_info_main.
2148         (argument_parser): Add fields "start_of_this_format" and
2149         "format_string_cst".
2150         (flag_chars_t::validate): Add param "format_string_cst".  Convert
2151         warning_at call using location_from_offset to call to
2152         format_warning_at_char.
2153         (argument_parser::argument_parser): Add param "format_string_cst_"
2154         and use use it to initialize field "format_string_cst".
2155         Initialize new field "start_of_this_format".
2156         (argument_parser::read_format_flags): Convert warning_at call
2157         using location_from_offset to a call to format_warning_at_char.
2158         (argument_parser::read_any_format_left_precision): Likewise.
2159         (argument_parser::read_any_format_precision): Likewise.
2160         (argument_parser::read_any_other_modifier): Likewise.
2161         (argument_parser::find_format_char_info): Likewise, in three places.
2162         (argument_parser::parse_any_scan_set): Likewise, in one place.
2163         (argument_parser::handle_conversions): Likewise, in two places.
2164         (argument_parser::check_argument_type): Add param "fmt_param_loc"
2165         and use it to make a substring_loc.  Pass the latter to
2166         check_format_types.
2167         (check_format_info_main): Add params "fmt_param_loc" and
2168         "format_string_cst".  Convert warning_at calls using
2169         location_from_offset to calls to format_warning_at_char.  Pass the
2170         new params to the arg_parser ctor.  Pass "format_string_cst" to
2171         flag_chars.validate.  Pass "fmt_param_loc" to
2172         arg_parser.check_argument_type.
2173         (check_format_types): Convert first param from a location_t
2174         to a const substring_loc & and rename to "fmt_loc".  Attempt
2175         to extract the range of the relevant parameter and pass it
2176         to format_type_warning.
2177         (format_type_warning): Convert first param from a location_t
2178         to a const substring_loc & and rename to "fmt_loc".  Add
2179         params "param_range" and "type".  Replace calls to warning_at
2180         with calls to format_warning_at_substring.
2182 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
2184         * c-format.c (class flag_chars_t): New class.
2185         (struct length_modifier): New struct.
2186         (class argument_parser): New class.
2187         (flag_chars_t::flag_chars_t): New ctor.
2188         (flag_chars_t::has_char_p): New method.
2189         (flag_chars_t::add_char): New method.
2190         (flag_chars_t::validate): New method.
2191         (flag_chars_t::get_alloc_flag): New method.
2192         (flag_chars_t::assignment_suppression_p): New method.
2193         (argument_parser::argument_parser): New ctor.
2194         (argument_parser::read_any_dollar): New method.
2195         (argument_parser::read_format_flags): New method.
2196         (argument_parser::read_any_format_width): New method.
2197         (argument_parser::read_any_format_left_precision): New method.
2198         (argument_parser::read_any_format_precision): New method.
2199         (argument_parser::handle_alloc_chars): New method.
2200         (argument_parser::read_any_length_modifier): New method.
2201         (argument_parser::read_any_other_modifier): New method.
2202         (argument_parser::find_format_char_info): New method.
2203         (argument_parser::validate_flag_pairs): New method.
2204         (argument_parser::give_y2k_warnings): New method.
2205         (argument_parser::parse_any_scan_set): New method.
2206         (argument_parser::handle_conversions): New method.
2207         (argument_parser::check_argument_type): New method.
2208         (check_format_info_main): Introduce classes argument_parser
2209         and flag_chars_t, moving the code within the loop into methods
2210         of these classes.  Make various locals "const".
2212 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
2214         * c-common.c: Include "substring-locations.h".
2215         (get_cpp_ttype_from_string_type): New function.
2216         (g_string_concat_db): New global.
2217         (substring_loc::get_range): New method.
2218         * c-common.h (g_string_concat_db): New declaration.
2219         (class substring_loc): New class.
2220         * c-lex.c (lex_string): When concatenating strings, capture the
2221         locations of all tokens using a new obstack, and record the
2222         concatenation locations within g_string_concat_db.
2223         * c-opts.c (c_common_init_options): Construct g_string_concat_db
2224         on the ggc-heap.
2226 2016-07-29  Marek Polacek  <polacek@redhat.com>
2228         PR c/71926
2229         * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
2230         parentheses warning.
2232         PR c/71574
2233         * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
2235 2016-07-28  Martin Liska  <mliska@suse.cz>
2237         PR gcov-profile/68025
2238         * c-common.c (handle_no_profile_instrument_function_attribute):
2240 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2242         * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
2243         BITS_PER_UNIT_LOG.
2245 2016-07-25  Jason Merrill  <jason@redhat.com>
2247         PR c++/65970
2248         * c.opt (fconstexpr-loop-limit): New.
2250 2016-07-22  Martin Sebor  <msebor@redhat.com>
2252         PR c++/71675
2253         * c-common.c (resolve_overloaded_builtin): Avoid converting
2254         __atomic_compare_exchange_n return type to that of what its
2255         first argument points to.
2257 2016-07-22  Uros Bizjak  <ubizjak@gmail.com>
2259         * c-common.c: Use HOST_WIDE_INT_M1U instead of
2260         ~(unsigned HOST_WIDE_INT) 0.
2262 2016-07-22  Martin Liska  <mliska@suse.cz>
2264         PR gcov-profile/69028
2265         PR gcov-profile/62047
2266         * cilk.c (create_cilk_helper_decl): Set location of a new decl
2267         to the current_function_decl.
2269 2016-07-21  Jason Merrill  <jason@redhat.com>
2271         PR c++/65168
2272         * c-common.c (c_common_truthvalue_conversion): Check
2273         c_inhibit_evaluation_warnings for warning about address of
2274         reference.
2276 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
2278         * c-common.h (lookup_name_fuzzy): Convert return type from tree to
2279         const char *.
2281 2016-07-15  Jason Merrill  <jason@redhat.com>
2283         * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
2285 2016-07-15  Jakub Jelinek  <jakub@redhat.com>
2287         PR c/71858
2288         * c-common.h (enum lookup_name_fuzzy_kind): Add
2289         FUZZY_LOOKUP_FUNCTION_NAME.
2291 2016-07-08  Jason Merrill  <jason@redhat.com>
2293         P0145: Refining Expression Order for C++.
2294         * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
2295         * c-opts.c: Adjust.
2297 2016-07-05  Markus Trippelsdorf  <markus@trippelsdorf.de>
2299         PR c++/71214
2300         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
2302 2016-06-29  Thomas Schwinge  <thomas@codesourcery.com>
2304         * c-pragma.h (enum pragma_kind): Rename
2305         PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE.  Adjust all
2306         users.
2308 2016-06-29  Richard Biener  <rguenther@suse.de>
2310         PR middle-end/71002
2311         * c-common.c (c_common_get_alias_set): Remove union type punning case.
2313 2016-06-24  Jason Merrill  <jason@redhat.com>
2315         P0145R2: Refining Expression Order for C++.
2316         * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
2317         MODIFY_EXPR.
2319 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
2321         * c-common.c (check_builtin_function_arguments): Require last
2322         argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
2323         Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
2324         if the last argument is pointer to enumerated or boolean type.
2326 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
2328         PR c/70339
2329         * c-common.h (enum lookup_name_fuzzy_kind): New enum.
2330         (lookup_name_fuzzy): New prototype.
2332 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
2334         * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
2336 2016-06-14  Jason Merrill  <jason@redhat.com>
2338         P0145R2: Refining Expression Order for C++.
2339         * c.opt (fargs-in-order): New.
2340         * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
2342 2016-06-13  Jakub Jelinek  <jakub@redhat.com>
2344         PR sanitizer/71498
2345         * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
2346         all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
2348         PR preprocessor/71183
2349         * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
2350         to cb_get_source_date_epoch.
2352 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
2354         PR c/68657
2355         * c.opt (Wpsabi): Add Warning flag.
2357 2016-06-10  Martin Sebor  <msebor@redhat.com>
2359         PR c/71392
2360         * c-common.c (handle_nonnull_attribute): Accept
2361         the nonnull attribute in type-generic builtins.
2363 2016-06-09  Martin Sebor  <msebor@redhat.com>
2365         PR c/70883
2366         * c-common.c (builtin_function_validate_nargs): Make text of error
2367         message consistent with others like it.
2369 2016-06-08  Martin Sebor  <msebor@redhat.com>
2370             Jakub Jelinek  <jakub@redhat.com>
2372         PR c++/70507
2373         PR c/68120
2374         * c-common.c (check_builtin_function_arguments): Handle
2375         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
2377 2016-06-08  Richard Biener  <rguenther@suse.de>
2379         * c-common.c (parse_optimize_options): Improve diagnostic messages.
2381 2016-06-07  Richard Biener  <rguenther@suse.de>
2383         PR c/61564
2384         * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
2385         options and warn about others.
2387 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
2389         * c-common.c (get_source_date_epoch): Rename to
2390         cb_get_source_date_epoch.
2391         * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
2392         message when the parsing fails.  Use error_at instead of fatal_error.
2393         * c-common.h (get_source_date_epoch): Rename to
2394         cb_get_source_date_epoch.
2395         * c-common.h (cb_get_source_date_epoch): Prototype.
2396         * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
2397         * c-common.h (c_omp_region_type): Remove trailing comma.
2398         * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
2399         * c-lex.c (c_lex_with_flags): Remove initialization of
2400         pfile->source_date_epoch.
2402 2016-05-30  Jakub Jelinek  <jakub@redhat.com>
2404         PR c++/71349
2405         * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
2406         C_OMP_CLAUSE_SPLIT_TARGET.  Put OMP_CLAUSE_NOWAIT to
2407         C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
2408         instead of C_OMP_CLAUSE_SPLIT_FOR.
2410 2016-05-24  Richard Biener  <rguenther@suse.de>
2412         PR middle-end/70434
2413         PR c/69504
2414         * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
2415         (convert_vector_to_array_for_subscript): ... this.
2416         * c-common.c (convert_vector_to_pointer_for_subscript): Use a
2417         VIEW_CONVERT_EXPR to an array type.  Rename to ...
2418         (convert_vector_to_array_for_subscript): ... this.
2420 2016-05-12  Marek Polacek  <polacek@redhat.com>
2422         PR c/70756
2423         * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
2424         size_in_bytes and pass LOC to it.
2426 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
2428         PR c/43651
2429         * c.opt (Wduplicate-decl-specifier): New option.
2431 2016-05-11  Marek Polacek  <polacek@redhat.com>
2433         PR c++/71024
2434         * c-common.c (diagnose_mismatched_attributes): New function.
2435         * c-common.h (diagnose_mismatched_attributes): Declare.
2437 2016-05-04  Marek Polacek  <polacek@redhat.com>
2439         * c.opt (Wdangling-else): New option.
2441 2016-05-03  Marek Polacek  <polacek@redhat.com>
2443         PR c/70859
2444         * c-common.c (builtin_function_validate_nargs): Add location
2445         parameter.  Use it.
2446         (check_builtin_function_arguments): Add location and arguments
2447         parameters.  Use them.
2448         * c-common.h (check_builtin_function_arguments): Update declaration.
2450 2016-05-03  Richard Biener  <rguenther@suse.de>
2452         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
2453         allow call args to gimplify to SSA names.
2455 2016-05-03  Marek Polacek  <polacek@redhat.com>
2457         * c-common.h (enum c_omp_region_type): Remove stray comma.
2459 2016-05-02  Cesar Philippidis  <cesar@codesourcery.com>
2461         * c-common.h (enum c_omp_region_type): Define.
2463 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
2465         * c-common.c (shorten_compare): Use wi::to_wide.
2467 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
2469         PR middle-end/70626
2470         * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
2471         * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
2472         reduction clauses in acc parallel loops.
2474 2016-04-29  Marek Polacek  <polacek@redhat.com>
2476         PR c/70852
2477         * c-common.c (warn_for_memset): Check domain before accessing it.
2479 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2481         PR/69089
2482         * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
2483         "aligned" attribute.
2485 2016-04-28  Jason Merrill  <jason@redhat.com>
2487         * c-lex.c (c_common_has_attribute): Handle nodiscard.
2489 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
2490             Matthias Klose  <doko@debian.org>
2492         * c-common.c (get_source_date_epoch): New function, gets the environment
2493         variable SOURCE_DATE_EPOCH and parses it as long long with error
2494         handling.
2495         * c-common.h (get_source_date_epoch): Prototype.
2496         * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
2498 2015-04-27  Ryan Burn  <contact@rnburn.com>
2500         PR c++/69024
2501         PR c++/68997
2502         * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
2503         (cilk_recognize_spawn): Renamed from recognize_spawn and change to
2504         external linkage.
2505         (cilk_detect_and_unwrap): Corresponding changes.
2506         (extract_free_variables): Don't extract free variables from
2507         AGGR_INIT_EXPR slot.
2508         * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
2509         (cilk_recognize_spawn): Likewise.
2511 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
2513         * c.opt (Wmemset-elt-size): New option.
2514         * c-common.c (warn_for_memset): New function.
2515         * c-common.h (warn_for_memset): Declare.
2517 2016-04-25  Jason Merrill  <jason@redhat.com>
2519         * c-common.c (handle_unused_attribute): Accept CONST_DECL.
2520         No longer static.
2521         * c-common.h: Declare it.
2522         * c-lex.c (c_common_has_attribute): Add maybe_unused.
2524 2016-04-22  Jason Merrill  <jason@redhat.com>
2526         * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
2528 2016-04-20  Ilya Verbin  <ilya.verbin@intel.com>
2530         PR c++/69363
2531         * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
2532         * c-common.h (c_finish_cilk_clauses): Remove declaration.
2534 2016-04-18  Michael Matz  <matz@suse.de>
2536         * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
2537         and SET_DECL_ALIGN.
2539 2016-04-17  Eric Botcazou  <ebotcazou@adacore.com>
2541         * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
2542         (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
2543         to incomplete types.
2544         (dump_nested_type): Remove redundant tests and tidy up.
2545         (print_ada_declaration): Also set TREE_VISITED on the declaration of
2546         a type which is the typedef of an original type.
2548 2016-04-15  Marek Polacek  <polacek@redhat.com>
2550         PR c/70651
2551         * c-common.c (build_va_arg): Change two asserts into errors and return
2552         error_mark_node.
2554 2016-04-13  Marek Polacek  <polacek@redhat.com>
2556         PR c++/70639
2557         * c-indentation.c (should_warn_for_misleading_indentation): Bail out
2558         for switch statements, too.
2560 2016-03-28  Jason Merrill  <jason@redhat.com>
2562         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
2564 2016-03-23  Marek Polacek  <polacek@redhat.com>
2566         PR c++/69884
2567         * c.opt (Wignored-attributes): New option.
2569 2016-03-22  David Malcolm  <dmalcolm@redhat.com>
2571         PR c/69993
2572         * c-indentation.c (warn_for_misleading_indentation): Rewrite the
2573         diagnostic text, reversing the order of the warning and note so
2574         that they appear in source order.
2576 2016-03-17  Marek Polacek  <polacek@redhat.com>
2578         PR c/69407
2579         * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
2580         operations.
2582 2016-03-14  Jason Merrill  <jason@redhat.com>
2584         * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
2586         * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
2588 2016-03-09  Richard Biener  <rguenther@suse.de>
2590         PR c/70143
2591         * c-common.c (strict_aliasing_warning): Add back
2592         alias_sets_conflict_p check.
2594 2016-03-08  Jason Merrill  <jason@redhat.com>
2596         * c-opts.c (set_std_cxx1z): Don't enable concepts.
2598 2016-03-04  David Malcolm  <dmalcolm@redhat.com>
2600         PR c/68187
2601         * c-indentation.c (get_visual_column): Move code to determine next
2602         tab stop to...
2603         (next_tab_stop): ...this new function.
2604         (line_contains_hash_if): Delete function.
2605         (detect_preprocessor_logic): Delete function.
2606         (get_first_nws_vis_column): New function.
2607         (detect_intervening_unindent): New function.
2608         (should_warn_for_misleading_indentation): Replace call to
2609         detect_preprocessor_logic with a call to
2610         detect_intervening_unindent.
2612 2016-03-04  David Malcolm  <dmalcolm@redhat.com>
2614         PR c/68187
2615         * c-indentation.c (should_warn_for_misleading_indentation): When
2616         suppressing warnings about cases where the guard and body are on
2617         the same column, only use the first non-whitespace column in place
2618         of the guard token column when dealing with "else" clauses.
2619         When rejecting aligned BODY and NEXT, loosen the requirement
2620         from equality with the first non-whitespace of guard to simply
2621         that they not be indented relative to it.
2623 2016-03-04  Richard Biener  <rguenther@suse.de>
2625         PR c++/70054
2626         * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
2627         instead of alias_sets_conflict_p.
2629 2016-03-01  Marek Polacek  <polacek@redhat.com>
2631         PR c++/69795
2632         * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
2633         any DECL.
2635 2016-02-22  Martin Sebor  <msebor@redhat.com>
2637         PR middle-end/69780
2638         * c-common.c (check_builtin_function_arguments): Validate and
2639         reject invalid arguments to __builtin_alloca_with_align.
2641 2016-02-20  Mark Wielaard  <mjw@redhat.com>
2643         PR c/28901
2644         * c.opt (Wunused-const-variable): Turn into Alias for...
2645         (Wunused-const-variable=): New option.
2647 2016-02-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2649         PR c++/69865
2650         * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
2651         here...
2652         (c_common_init_options): ...to here.
2653         (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
2655 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
2657         PR c++/69826
2658         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
2659         (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
2660         flag_preprocess_only.
2662 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
2664         PR c/69835
2665         * c.opt (Wnonnull-compare): Enable for -Wall.
2667 2016-02-15  Jakub Jelinek  <jakub@redhat.com>
2669         PR c++/69797
2670         * c-common.c (sync_resolve_size): Diagnose too few arguments
2671         even when params is non-NULL empty vector.
2673 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
2675         PR target/60410
2676         * c.opt (fshort-double): Remove.
2678 2016-02-05  Martin Sebor  <msebor@redhat.com>
2680         PR c++/69662
2681         * c.opt (Warning options): Update -Wplacement-new to take
2682         an optional argument.
2684 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
2686         PR preprocessor/69543
2687         PR c/69558
2688         * c-pragma.c (handle_pragma_diagnostic): Pass input_location
2689         instead of loc to control_warning_option.
2691 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
2693         * c.opt (fopenacc-dim=): New option.
2695 2016-01-27  Ryan Burn  <contact@rnburn.com>
2697         PR cilkplus/69267
2698         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
2699         gimplify_arg. Removed superfluous post_p argument.
2700         * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
2701         superfluous post_p argument.
2702         * c-gimplify.c (c_gimplify_expr): Likewise.
2704 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
2706         PR other/69006
2707         * c-opts.c (c_diagnostic_finalizer): Replace invocation of
2708         pp_newline_and_flush with pp_flush.
2710 2016-01-20  Martin Sebor  <msebor@redhat.com>
2712         PR c/69405
2713         * c-common.c (sync_resolve_size): Avoid printing diagnostic about
2714         an incompatible argument when the argument isn't a valid tree node.
2716 2016-01-18  Jason Merrill  <jason@redhat.com>
2718         PR c++/68767
2719         * c-common.c (check_function_arguments_recurse): Fold the whole
2720         COND_EXPR, not just the condition.
2722 2016-01-18  Tom de Vries  <tom@codesourcery.com>
2724         * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
2725         classify as loop clause.
2727 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
2729         PR bootstrap/68271
2730         * c-pragma.c (c_register_pragma_1): Adjust comment to note that
2731         C++ FE no longer has limit on number of pragmas.
2733 2015-01-14  Ryan Burn  <contact@rnburn.com>
2735         PR c++/69048
2736         * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
2737         to add missing cleanup point.
2739 2016-01-14  David Malcolm  <dmalcolm@redhat.com>
2741         PR c++/68819
2742         * c-indentation.c (get_visual_column): Add location_t param.
2743         Handle the column number being zero by effectively disabling the
2744         warning, with an "inform".
2745         (should_warn_for_misleading_indentation): Add location_t argument
2746         for all uses of get_visual_column.
2748 2016-01-10  Patrick Palka  <ppalka@gcc.gnu.org>
2750         PR c++/69029
2751         * c-indentation.c (should_warn_for_misleading_indentation):
2752         Don't warn about do-while statements.
2754 2016-01-07  Martin Sebor  <msebor@redhat.com>
2756         PR c/68966
2757         * c-common.c (sync_resolve_size): Reject first argument when it's
2758         a pointer to _Bool.
2760 2016-01-05  David Malcolm  <dmalcolm@redhat.com>
2762         PR c/69122
2763         * c-indentation.c (get_visual_column): Remove default argument.
2764         (should_warn_for_misleading_indentation): For the multiline case,
2765         update call to get_visual_column for next_stmt_exploc so that it
2766         captures the location of the first non-whitespace character in the
2767         relevant line.  Don't issue warnings if there is non-whitespace
2768         before the next statement.
2770 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
2772         Update copyright years.
2774 2015-12-21  David Malcolm  <dmalcolm@redhat.com>
2776         * c-common.c (binary_op_error): Convert first param from
2777         location_t to rich_location * and use it when emitting an error.
2778         * c-common.h (binary_op_error): Convert first param from
2779         location_t to rich_location *.
2781 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
2783         * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
2784         * c-lex.c (conflict_marker_get_final_tok_kind): New function.
2786 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
2788         * c-common.c (c_common_attribute_table): Handle "omp declare target
2789         link" attribute.
2791 2015-12-14  Jakub Jelinek  <jakub@redhat.com>
2793         PR c/68833
2794         * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
2796 2014-12-12  Tobias Burnus  <burnus@net-b.de>
2798         PR fortran/68815
2799         * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
2800         specifiers (%d, %i,%u and %c).
2802 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
2804         * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
2806 2015-12-08  Jakub Jelinek  <jakub@redhat.com>
2808         PR c/48088
2809         PR c/68657
2810         * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
2811         * c-pragma.c (handle_pragma_diagnostic): Adjust
2812         control_warning_option caller.
2814 2015-12-07  David Malcolm  <dmalcolm@redhat.com>
2816         * c-common.c (c_cpp_error): Update for change to
2817         rich_location::set_range.
2819 2015-12-04  Paolo Bonzini  <bonzini@gnu.org>
2821         * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
2822         shifting 1 out of the sign bit.
2824 2015-12-04  Kirill Yukhin  <kirill.yukhin@intel.com>
2826         * c-common.c (c_common_attribute_table[]): Update max arguments
2827         count for "simd" attribute.
2828         (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
2830 2015-12-03  Jakub Jelinek  <jakub@redhat.com>
2832         PR preprocessor/57580
2833         * c-ppoutput.c (print): Change printed field to bool.
2834         Move src_file last for smaller padding.
2835         (init_pp_output): Set print.printed to false instead of 0.
2836         (scan_translation_unit): Fix up formatting.  Set print.printed
2837         to true after printing something other than newline.
2838         (scan_translation_unit_trad): Set print.printed to true instead of 1.
2839         (maybe_print_line_1): Set print.printed to false instead of 0.
2840         (print_line_1): Likewise.
2841         (do_line_change): Set print.printed to true instead of 1.
2842         (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
2843         dump_macro): Set print.printed to false after printing newline.
2845 2015-12-02  Jason Merrill  <jason@redhat.com>
2847         * c-common.c (fold_for_warn): New.
2848         (warn_logical_operator, warn_tautological_cmp)
2849         (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
2851         * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
2852         (c_fully_fold_internal, decl_constant_value_for_optimization):
2853         Move to c/c-fold.c.
2854         * c-common.h: Don't declare decl_constant_value_for_optimization.
2856 2015-12-02  Joseph Myers  <joseph@codesourcery.com>
2858         PR c/68162
2859         * c-common.h (c_build_qualified_type): Add extra default
2860         arguments.
2862 2015-12-01  Julian Brown  <julian@codesourcery.com>
2863             Cesar Philippidis  <cesar@codesourcery.com>
2864             James Norris  <James_Norris@mentor.com>
2866         * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
2867         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
2868         (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
2870 2015-11-30  Eric Botcazou  <ebotcazou@adacore.com>
2872         * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
2873         (decl_sloc_common): Delete and move bulk of processing to...
2874         (decl_sloc): ...here.
2875         (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
2876         (dump_ada_double_name): Remove S parameter and compute the suffix.
2877         (dump_ada_array_type): Add PARENT parameter.  Simplify computation of
2878         element type and deal with an anonymous one.
2879         (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
2880         (dump_generic_ada_node): Tweak.  Adjust call to dump_ada_array_type
2881         and remove reference to QUAL_UNION_TYPE.
2882         (dump_nested_types): Make 2 passes on the fields and move bulk to...
2883         (dump_nested_type): ...here.  New function extracted from above.
2884         Generate a full declaration for anonymous element type of arrays.
2885         (print_ada_declaration): Really skip anonymous declarations.  Remove
2886         references to QUAL_UNION_TYPE.  Adjust call to dump_ada_array_type.
2887         Clean up processing of declarations of array types and objects.
2888         (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
2889         Remove obsolete code and tidy up.
2891 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
2893         PR c/67581
2894         * c-common.c (handle_transparent_union_attribute): Update
2895         also type variants.
2897 2015-11-27  Martin Liska  <mliska@suse.cz>
2899         PR c++/68312
2900         * array-notation-common.c (cilkplus_extract_an_triplets):
2901         Release vector of vectors.
2902         * cilk.c (gimplify_cilk_spawn): Free allocated memory.
2904 2015-11-26  Eric Botcazou  <ebotcazou@adacore.com>
2906         PR c++/68527
2907         * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
2908         (print_ada_struct_decl): Likewise.
2910 2015-11-23  Igor Zamyatin  <igor.zamyatin@intel.com>
2912         PR c++/68001
2913         * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
2914         * cilk.c (recognize_spawn): Determine location in a more precise
2915         way.
2917 2015-11-19  Jason Merrill  <jason@redhat.com>
2919         * c-common.c (shorten_compare): But look through macros from
2920         system headers.
2922 2015-11-18  Jason Merrill  <jason@redhat.com>
2924         * c-common.c (shorten_compare): Don't -Wtype-limits if the
2925         non-constant operand comes from a macro.
2927 2015-11-17  Jason Merrill  <jason@redhat.com>
2929         PR bootstrap/68346
2930         * c-common.c (warn_tautological_cmp): Fold before checking for
2931         constants.
2933 2015-11-16  Marek Polacek  <polacek@redhat.com>
2935         PR c++/68362
2936         * c-common.c (check_case_bounds): Fold low and high cases.
2938 2015-11-16  Marek Polacek  <polacek@redhat.com>
2940         * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
2941         * c-common.c (c_common_get_alias_set): Likewise.
2942         (handle_visibility_attribute): Likewise.
2944 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
2946         * c-common.c (handle_simd_attribute): New.
2947         (struct attribute_spec): Add entry for "simd".
2948         (handle_simd_attribute): New.
2950 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
2952         * c-lex.c (interpret_float): Use fold_convert.
2954 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
2956         * c-common.c (c_fully_fold_internal): Capture existing souce_range,
2957         and store it on the result.
2958         * c-opts.c (c_common_init_options): Set
2959         global_dc->colorize_source_p.
2961 2015-11-12  James Norris  <jnorris@codesourcery.com>
2962             Joseph Myers  <joseph@codesourcery.com>
2964         * c-pragma.c (oacc_pragmas): Add entry for declare directive.
2965         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
2966         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
2967         PRAGMA_OACC_CLAUSE_LINK.
2969 2015-11-11  Marek Polacek  <polacek@redhat.com>
2971         PR c/68107
2972         PR c++/68266
2973         * c-common.c (valid_array_size_p): New function.
2974         * c-common.h (valid_array_size_p): Declare.
2976 2015-11-11  Dominique d'Humieres  <dominiq@lps.ens.fr>
2978         PR bootstrap/68271
2979         * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
2981 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
2983         * array-notation-common.c: Remove unused header files.
2984         * c-ada-spec.c: Likewise.
2985         * c-cilkplus.c: Likewise.
2986         * c-common.c: Likewise.
2987         * c-cppbuiltin.c: Likewise.
2988         * c-dump.c: Likewise.
2989         * c-format.c: Likewise.
2990         * c-gimplify.c: Likewise.
2991         * c-indentation.c: Likewise.
2992         * c-lex.c: Likewise.
2993         * c-omp.c: Likewise.
2994         * c-opts.c: Likewise.
2995         * c-pch.c: Likewise.
2996         * c-ppoutput.c: Likewise.
2997         * c-pragma.c: Likewise.
2998         * c-pretty-print.c: Likewise.
2999         * c-semantics.c: Likewise.
3000         * c-ubsan.c: Likewise.
3001         * cilk.c: Likewise.
3002         * stub-objc.c: Likewise.
3004 2015-11-09  Thomas Schwinge  <thomas@codesourcery.com>
3005             Cesar Philippidis  <cesar@codesourcery.com>
3006             James Norris  <jnorris@codesourcery.com>
3007             Julian Brown  <julian@codesourcery.com>
3008             Nathan Sidwell  <nathan@codesourcery.com>
3010         * c-pragma.c (oacc_pragmas): Add "routine".
3011         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
3013 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
3015         * c-common.c (c_common_attributes): Add scalar_storage_order.
3016         (handle_scalar_storage_order_attribute): New function.
3017         * c-pragma.c (global_sso): New variable.
3018         (maybe_apply_pragma_scalar_storage_order): New function.
3019         (handle_pragma_scalar_storage_order): Likewise.
3020         (init_pragma): Register scalar_storage_order.
3021         * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
3022         * c.opt (Wscalar-storage-order): New warning.
3023         (fsso-struct=): New option.
3025 2015-11-08  Martin Sebor  <msebor@redhat.com>
3027         * c.opt (Wplacement-new): Add a period to the end of a sentence.
3029 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3031         * c-common.c: Don't undef DEF_BUILTIN.
3033 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
3035         * c-common.c (c_cpp_error): Convert parameter from location_t to
3036         rich_location *.  Eliminate the "column_override" parameter and
3037         the call to diagnostic_override_column.
3038         Update the "done_lexing" clause to set range 0
3039         on the rich_location, rather than overwriting a location_t.
3040         * c-common.h (c_cpp_error): Convert parameter from location_t to
3041         rich_location *.  Eliminate the "column_override" parameter.
3043 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
3044             Thomas Schwinge  <thomas@codesourcery.com>
3045             James Norris  <jnorris@codesourcery.com>
3047         * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
3048         AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses.  Associate REDUCTION
3049         clauses with parallel and kernels and loops.
3050         * c-pragma.h (enum pragma_omp_clause): Add entries for
3051         PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
3052         * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
3053         NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
3054         INDEPENDENT,SEQ}.
3055         (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
3057 2015-11-05  Martin Sebor  <msebor@redhat.com>
3059         PR c++/67942
3060         * c.opt (-Wplacement-new): New option.
3062 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
3064         * c-common.h (c_finish_omp_atomic): Add TEST argument.
3065         (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
3066         * c-omp.c (c_finish_omp_atomic): Add TEST argument.  Don't call
3067         save_expr or create_tmp_var* if TEST is true.
3068         (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
3069         Don't call add_stmt here.
3070         (struct c_omp_check_loop_iv_data): New type.
3071         (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
3072         c_omp_check_loop_iv_exprs): New functions.
3073         (c_omp_split_clauses): Adjust for lastprivate being allowed on
3074         distribute.
3075         (c_omp_declare_simd_clauses_to_numbers): Change
3076         OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
3077         (c_omp_declare_simd_clauses_to_decls): Similarly change those
3078         from numbers to PARM_DECLs.
3080 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
3082         * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
3083         flag_checking.
3085 2015-11-03  Bernd Schmidt  <bschmidt@redhat.com>
3087         PR c++-common/67882
3088         * c-common.h (fold_offsetof_1): Add argument.
3089         * c-common.c (fold_offsetof_1): Diagnose more invalid
3090         offsetof expressions that reference elements past the end of
3091         an array.
3093 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
3094             Chung-Lin Tang  <cltang@codesourcery.com>
3096         * c-pragma.c (oacc_pragmas): Add "atomic".
3097         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
3099 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
3101         * c-common.c (handle_target_clones_attribute): New.
3102         (c_common_attribute_table): Add handle_target_clones_attribute.
3103         (handle_always_inline_attribute): Add check on target_clones attribute.
3104         (handle_target_attribute): Ditto.
3106 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
3108         * array-notation-common.c: Reorder #include's and remove duplicates.
3109         * c-ada-spec.c: Likewise.
3110         * c-cilkplus.c: Likewise.
3111         * c-common.c: Likewise.
3112         * c-cppbuiltin.c: Likewise.
3113         * c-dump.c: Likewise.
3114         * c-format.c: Likewise.
3115         * c-gimplify.c: Likewise.
3116         * c-indentation.c: Likewise.
3117         * c-lex.c: Likewise.
3118         * c-omp.c: Likewise.
3119         * c-opts.c: Likewise.
3120         * c-pch.c: Likewise.
3121         * c-ppoutput.c: Likewise.
3122         * c-pragma.c: Likewise.
3123         * c-pretty-print.c: Likewise.
3124         * c-semantics.c: Likewise.
3125         * c-ubsan.c: Likewise.
3126         * cilk.c: Likewise.
3127         * stub-objc.c: Likewise.
3129 2015-10-28  Jason Merrill  <jason@redhat.com>
3131         * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
3133 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
3134             James Norris  <jnorris@codesourcery.com>
3135             Cesar Philippidis  <cesar@codesourcery.com>
3137         PR c/64765
3138         PR c/64880
3139         * c-common.h (c_oacc_split_loop_clauses): Declare function.
3140         * c-omp.c (c_oacc_split_loop_clauses): New function.
3142 2015-10-21  Martin Sebor  <msebor@redhat.com>
3144         PR driver/68043
3145         * c.opt: End each sentence that describes an option with a period.
3147 2015-10-20  Marek Polacek  <polacek@redhat.com>
3149         * array-notation-common.c (is_cilkplus_vector_p): Define.
3150         * c-common.h (is_cilkplus_vector_p): Declare.
3152 2015-10-20  Marek Polacek  <polacek@redhat.com>
3154         * c.opt (std=gnu++11): Do not describe as experimental.
3155         (std=gnu++14): Likewise.
3157 2015-10-19  Jason Merrill  <jason@redhat.com>
3159         * c-cppbuiltin.c (c_cpp_builtins): Define
3160         __cpp_nontype_template_args.
3162 2015-10-19  Jason Merrill  <jason@redhat.com>
3164         * c-cppbuiltin.c (c_cpp_builtins): Define
3165         __cpp_enumerator_attributes, __cpp_fold_expressions,
3166         __cpp_unicode_characters.
3168 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
3169             Aldy Hernandez  <aldyh@redhat.com>
3171         * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
3172         DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
3173         (c_define_builtins): Likewise.
3174         * c-common.h (enum c_omp_clause_split): Add
3175         C_OMP_CLAUSE_SPLIT_TASKLOOP.
3176         (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
3177         (c_finish_omp_for): Add ORIG_DECLV argument.
3178         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
3179         201511 instead of 201307.
3180         * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
3181         OMP_CRITICAL_CLAUSES to it.
3182         (c_finish_omp_ordered): Add CLAUSES argument, set
3183         OMP_ORDERED_CLAUSES to it.
3184         (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
3185         to it if OMP_FOR.  Clear DECL_INITIAL on the IVs.
3186         (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
3187         constructs and new OpenMP 4.5 clauses.  Clear
3188         OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD.  Add
3189         verification code.
3190         * c-pragma.c (omp_pragmas_simd): Add taskloop.
3191         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
3192         (enum pragma_omp_clause): Add
3193         PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
3194         and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
3196 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3198         * c-lex.c (interpret_float): Use real_equal instead of
3199         REAL_VALUES_EQUAL.
3201 2015-10-04  Jason Merrill  <jason@redhat.com>
3203         Implement N4514, C++ Extensions for Transactional Memory.
3204         * c-common.c (c_common_reswords): Add C++ TM TS keywords.
3205         (c_common_attribute_table): Add transaction_safe_dynamic.
3206         transaction_safe now affects type identity.
3207         (handle_tm_attribute): Handle transaction_safe_dynamic.
3208         * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
3209         RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
3210         (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
3211         (D_TRANSMEM): New.
3212         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
3213         * c-pretty-print.c (pp_c_attributes_display): Don't print
3214         transaction_safe in C++.
3216 2015-10-02  Marek Polacek  <polacek@redhat.com>
3218         * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
3220 2015-10-02  Marek Polacek  <polacek@redhat.com>
3222         PR c/64249
3223         * c-common.c (warn_duplicated_cond_add_or_warn): New function.
3224         * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
3225         * c.opt (Wduplicated-cond): New option.
3227 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
3229         * c.opt (std=c11): Do not describe as experimental.
3230         (std=gnu11): Likewise.
3231         (std=iso9899:2011): Likewise.
3233 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
3235         * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
3236         (DEF_FUNCTION_TYPE_VAR_11): Delete.
3238 2015-09-25  Marek Polacek  <polacek@redhat.com>
3240         * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
3241         (ubsan_instrument_shift): Likewise.
3243 2015-09-25  Marek Polacek  <polacek@redhat.com>
3245         PR sanitizer/64906
3246         * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
3248 2015-09-24  Patrick Palka  <ppalka@gcc.gnu.org>
3250         * c-indentation.c (should_warn_for_misleading_indentation):
3251         Compare next_stmt_vis_column with guard_line_first_nws instead
3252         of with guard_line_vis_column.
3254 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3256         PR c/49654
3257         PR c/49655
3258         * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
3259         options and options not valid for the current language.
3261 2015-09-22  Patrick Palka  <ppalka@gcc.gnu.org>
3263         * c-indentation.c (should_warn_for_misleading_indentation):
3264         Float out and consolidate the calls to get_visual_column that
3265         are passed guard_exploc as an argument.  Compare
3266         next_stmt_vis_column with guard_line_first_nws instead of with
3267         body_line_first_nws.
3269 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
3271         * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
3272         Wnamespaces): New C++ warnings.
3274 2015-09-22  Jason Merrill  <jason@redhat.com>
3276         * c-common.h (abi_compat_version_crosses): New.
3277         (warn_abi_version): Declare.
3278         * c-common.c: Define it.
3279         * c-opts.c (c_common_post_options): Handle it.
3280         flag_abi_compat_version defaults to 8.
3282 2015-09-21  Ville Voutilainen  <ville.voutilainen@gmail.com>
3284         Complete the implementation of N4230, Nested namespace definition.
3285         * c-cppbuiltin.c: Add __cpp_namespace_attributes and
3286         __cpp_nested_namespace_definitions.
3288 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3290         * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
3292 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3294         * c-pragma.c (handle_pragma_diagnostic): Use explicit location
3295         when warning.
3296         * c-pragma.h (pragma_lex): Add optional loc argument.
3298 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
3300         * c-format.c (check_format_arg): Adjust to use common block size in all
3301         object pools.
3303 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
3305         * c-format.c (location_from_offset): Update for change in
3306         signature of location_get_source_line.
3307         * c-indentation.c (get_visual_column): Likewise.
3308         (line_contains_hash_if): Likewise.
3310 2015-09-14  Marek Polacek  <polacek@redhat.com>
3312         * c-opts.c (c_common_post_options): Set C++ standard earlier, before
3313         setting various warnings.
3315 2015-09-14  Marek Polacek  <polacek@redhat.com>
3317         * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
3318         a negative value.
3320 2015-09-11  Mark Wielaard  <mjw@redhat.com>
3322         PR c/28901
3323         * c.opt (Wunused-variable): Option from common.opt.
3324         (Wunused-const-variable): New option.
3326 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
3328         PR c++/53184
3329         * c.opt ([Wsubobject-linkage]): Add.
3331 2015-09-03  Martin Sebor  <msebor@redhat.com>
3333         PR c/66516
3334         * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
3335         functions.
3336         * c-common.c (reject_gcc_builtin): Define.
3338 2015-09-02  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3340         PR middle-end/60586
3341         * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
3342         prototype.
3343         * c-gimplify.c (c_gimplify_expr): Added a call to the function
3344         cilk_gimplify_call_params_in_spawned_fn.
3345         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
3346         (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
3347         unwrapping.
3349 2015-08-25  Marek Polacek  <polacek@redhat.com>
3351         PR middle-end/67330
3352         * c-common.c (handle_weak_attribute): Don't check whether the
3353         visibility can be changed here.
3355 2015-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3357         * c-lex.c (c_lex_with_flags): Use explicit locations.
3359 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
3361         * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
3362         c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
3364 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3366         PR middle-end/36757
3367         * c-common.c (check_builtin_function_arguments): Add check
3368         for BUILT_IN_SIGNBIT argument.
3370 2015-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
3372         PR c++/67160
3373         * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
3374         in c++1z mode.
3376 2015-08-17  Marek Polacek  <polacek@redhat.com>
3378         * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
3379         with whitespaces before qualifier names.
3381 2015-08-12  Marek Polacek  <polacek@redhat.com>
3383         PR c++/55095
3384         * c-common.c (maybe_warn_shift_overflow): Properly handle
3385         left-shifting 1 into the sign bit.
3387 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3389         * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
3391 2015-08-06  Andrew Sutton  <andrew.n.sutton@gmail.com>
3392             Braden Obrzut  <admin@maniacsvault.net>
3393             Jason Merrill  <jason@redhat.com>
3395         Add C++ Concepts TS support.
3396         * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
3397         * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
3398         (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
3399         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
3400         * c-opts.c (set_std_cxx1z): Set flag_concepts.
3401         * c.opt (fconcepts): New.
3403 2015-08-02  Martin Sebor  <msebor@redhat.com>
3405         * c.opt (-Wframe-address): New warning option.
3407 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
3409         * c-indentation.c (should_warn_for_misleading_indentation):
3410         Improve heuristics.
3412 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
3414         * c-indentation.c (get_visual_column): Add parameter first_nws,
3415         use it.  Update comment documenting the function.
3416         (is_first_nonwhitespace_on_line): Remove.
3417         (should_warn_for_misleading_indentation): Replace usage of
3418         of is_first_nonwhitespace_on_line with get_visual_column.
3420 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
3422         * c-indentation.h (struct token_indent_info): Define.
3423         (get_token_indent_info): Define.
3424         (warn_for_misleading_information): Declare.
3425         * c-common.h (warn_for_misleading_information): Remove.
3426         * c-identation.c (warn_for_misleading_indentation):
3427         Change declaration to take three token_indent_infos.  Adjust
3428         accordingly.
3429         * c-identation.c (should_warn_for_misleading_indentation):
3430         Likewise.  Bail out early if the body is a compound statement.
3431         (guard_tinfo_to_string): Define.
3433 2015-07-30  Jason Merrill  <jason@redhat.com>
3435         * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
3436         '*' for reference decay.
3438 2015-07-30  Marek Polacek  <polacek@redhat.com>
3440         * c-common.c (warn_tautological_cmp): Bail for float types.
3442 2015-07-27  Marek Polacek  <polacek@redhat.com>
3444         PR bootstrap/67030
3445         * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
3447 2015-07-27  Marek Polacek  <polacek@redhat.com>
3449         PR c++/66555
3450         PR c/54979
3451         * c-common.c (find_array_ref_with_const_idx_r): New function.
3452         (warn_tautological_cmp): New function.
3453         * c-common.h (warn_tautological_cmp): Declare.
3454         * c.opt (Wtautological-compare): New option.
3456 2015-07-23  Marek Polacek  <polacek@redhat.com>
3458         * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
3459         (ubsan_instrument_shift): Likewise.
3461 2015-07-23  Marek Polacek  <polacek@redhat.com>
3463         PR sanitizer/66908
3464         * c-ubsan.c: Include gimplify.h.
3465         (ubsan_instrument_division): Unshare OP0 and OP1.
3466         (ubsan_instrument_shift): Likewise.
3468 2015-07-20  Marek Polacek  <polacek@redhat.com>
3469             Richard Sandiford  <richard.sandiford@arm.com>
3471         PR c++/55095
3472         * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
3473         Use EXPR_LOC_OR_LOC.
3474         (maybe_warn_shift_overflow): New function.
3475         * c-common.h (maybe_warn_shift_overflow): Declare.
3476         * c-opts.c (c_common_post_options): Set warn_shift_overflow.
3477         * c.opt (Wshift-overflow): New option.
3479 2015-07-16  Martin Liska  <mliska@suse.cz>
3481         * c-format.c (static void check_format_info_main): Use
3482         object_allocator instead of pool_allocator.
3483         (check_format_arg): Likewise.
3484         (check_format_info_main): Likewise.
3486 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
3488         * c-opts.c: Remove multiline #include comment.
3490 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
3492         * c-common.c: Fix double word typos.
3494 2015-07-10  Eric Botcazou  <ebotcazou@adacore.com>
3496         * c-ada-spec.h (cpp_operation): Revert latest change.
3497         * c-ada-spec.c (print_ada_declaration): Likewise.  Skip implicit
3498         constructors and destructors.
3500 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
3502         * c-common.h: Adjust includes for flags.h changes.
3503         * stub-objc.c: Likewise.
3505 2015-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3507         * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
3508         * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
3510 2015-07-08  Jakub Jelinek  <jakub@redhat.com>
3512         * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
3513         are to be removed, return NULL rather than original clauses list.
3515 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
3517         * array-notation-common.c: Adjust includes.
3518         * c-ada-spec.c: Likewise.
3519         * c-cilkplus.c: Likewise.
3520         * c-common.h: Likewise.
3521         * c-cppbuiltin.c: Likewise.
3522         * c-dump.c: Likewise.
3523         * c-format.c: Likewise.
3524         * c-gimplify.c: Likewise.
3525         * c-indentation.c: Likewise.
3526         * c-lex.c: Likewise.
3527         * c-omp.c: Likewise.
3528         * c-opts.c: Likewise.
3529         * c-pch.c: Likewise.
3530         * c-ppoutput.c: Likewise.
3531         * c-pragma.c: Likewise.
3532         * c-pretty-print.c: Likewise.
3533         * c-semantics.c: Likewise.
3534         * c-ubsan.c: Likewise.
3535         * cilk.c: Likewise.
3536         * stub-objc.c: Likewise.
3538 2015-07-07  Eric Botcazou  <ebotcazou@adacore.com>
3540         * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
3541         * c-ada-spec.c (print_ada_declaration): Skip move constructors.
3543 2015-07-01  Jason Merrill  <jason@redhat.com>
3545         * c-common.h (D_CXX11): Rename from D_CXX0X.
3546         (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
3547         * c-common.c: Adjust.
3549         * c-opts.c (c_common_post_options): Default to C++14.
3551         * c-opts.c (c_common_post_options): Highest ABI level is now 10.
3553 2015-06-30  Edward Smith-Rowland  <3dw4rd@verizon.net>
3555         Implement N4197 - Adding u8 character literals
3556         * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
3557         CPP_CHAR.
3558         * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
3559         CPP_UTF8CHAR_USERDEF tokens.
3560         * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
3561         and CPP_UTF8CHAR tokens.
3562         (lex_charconst): Treat CPP_UTF8CHAR token.
3564 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3566         PR fortran/66605
3567         * c-common.c (do_warn_unused_parameter): Move here.
3568         * c-common.h (do_warn_unused_parameter): Declare.
3570 2015-06-29  Marek Polacek  <polacek@redhat.com>
3572         PR c/66322
3573         * c-common.c (check_case_bounds): Add bool * parameter.  Set
3574         OUTSIDE_RANGE_P.
3575         (c_add_case_label): Add bool * parameter.  Pass it down to
3576         check_case_bounds.
3577         (c_do_switch_warnings): Add bool parameters.  Implement -Wswitch-bool
3578         warning here.
3579         * c-common.h (c_add_case_label, c_do_switch_warnings): Update
3580         declarations.
3582 2015-06-27  Marek Polacek  <polacek@redhat.com>
3584         * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
3585         or VECTOR_INTEGER_TYPE_P throughout.
3586         * c-gimplify.c: Likewise.
3588 2015-06-26  Marek Polacek  <polacek@redhat.com>
3590         * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
3591         * c-common.c (c_fully_fold_internal): Likewise.
3592         (c_alignof_expr): Likewise.
3593         * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
3594         * c-ubsan.c (ubsan_instrument_bounds): Likewise.
3595         * cilk.c (create_parm_list): Likewise.
3597 2015-06-26  Marek Polacek  <polacek@redhat.com>
3599         * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
3601 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
3603         * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
3604         * c-gimplify.c: Likewise.
3605         * c-pragma.c: Likewise.
3606         * c-ubsan.c: Likewise.
3607         * cilk.c: Likewise.
3609 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3611         * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
3612         ggc_hasher.
3614 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
3616         * cilk.c: Move calls.h after tm.h in the include chain.
3618 2015-06-25  Marek Polacek  <polacek@redhat.com>
3620         * array-notation-common.c: Use VAR_P throughout.
3621         * c-ada-spec.c: Likewise.
3622         * c-common.c: Likewise.
3623         * c-format.c: Likewise.
3624         * c-gimplify.c: Likewise.
3625         * c-omp.c: Likewise.
3626         * c-pragma.c: Likewise.
3627         * c-pretty-print.c: Likewise.
3628         * cilk.c: Likewise.
3630 2015-06-25  Marek Polacek  <polacek@redhat.com>
3632         * cilk.c (extract_free_variables): Use is_global_var.
3634 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
3636         * c-common.c: Don't include target-def.h.
3638 2015-06-23  Marek Polacek  <polacek@redhat.com>
3640         * c-common.c (warn_logical_operator): Use tree_int_cst_equal
3641         when comparing INTEGER_CSTs.
3643 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
3645         * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
3646         * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
3647         (dump_ada_template): Skip partially specialized types.
3649 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
3651         * c-common.c (scalar_to_vector): Use std::swap instead of manually
3652         swapping.
3654 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
3656         * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
3657         * c-ada-spec.c: Likewise.
3658         * c-cilkplus.c: Likewise.
3659         * c-common.c: Likewise.
3660         * c-common.h: Likewise.
3661         * c-cppbuiltin.c: Likewise.
3662         * c-dump.c: Likewise.
3663         * c-format.c: Likewise.
3664         * c-gimplify.c: Likewise.
3665         * c-indentation.c: Likewise.
3666         * c-lex.c: Likewise.
3667         * c-omp.c: Likewise.
3668         * c-opts.c: Likewise.
3669         * c-pch.c: Likewise.
3670         * c-ppoutput.c: Likewise.
3671         * c-pragma.c: Likewise.
3672         * c-pretty-print.c: Likewise.
3673         * c-semantics.c: Likewise.
3674         * c-ubsan.c: Likewise.
3675         * cilk.c: Likewise.
3676         * stub-objc.c: Likewise.
3678 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
3680         PR c++/65168
3681         * c-common.c (c_common_truthvalue_conversion): Warn when
3682         converting an address of a reference to a truth value.
3684 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
3686         * array-notation-common.c : Adjust include files.
3687         * c-ada-spec.c : Likewise.
3688         * c-cilkplus.c : Likewise.
3689         * c-common.c : Likewise.
3690         * c-common.h : Likewise.
3691         * c-cppbuiltin.c : Likewise.
3692         * c-dump.c : Likewise.
3693         * c-format.c : Likewise.
3694         * c-gimplify.c : Likewise.
3695         * c-indentation.c : Likewise.
3696         * c-lex.c : Likewise.
3697         * c-omp.c : Likewise.
3698         * c-opts.c : Likewise.
3699         * c-pch.c : Likewise.
3700         * c-ppoutput.c : Likewise.
3701         * c-pragma.c : Likewise.
3702         * c-pretty-print.c : Likewise.
3703         * c-semantics.c : Likewise.
3704         * c-ubsan.c : Likewise.
3705         * cilk.c : Likewise.
3706         * stub-objc.c : Likewise.
3708 2015-06-08  Marek Polacek  <polacek@redhat.com>
3710         PR c/66415
3711         * c-format.c (location_from_offset): Return LOC if LINE is null.
3713 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
3715         * c-common.h (c_parse_final_cleanups): New prototype.
3716         * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
3718 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
3720         * c-common.c (noplt): New attribute.
3721         (handle_noplt_attribute): New handler.
3723 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
3725         * array-notation-common.c: Adjust includes for restructured coretypes.h.
3726         * c-ada-spec.c: Likewise.
3727         * c-cilkplus.c: Likewise.
3728         * c-common.c: Likewise.
3729         * c-common.h: Likewise.
3730         * c-cppbuiltin.c: Likewise.
3731         * c-dump.c: Likewise.
3732         * c-format.c: Likewise.
3733         * c-gimplify.c: Likewise.
3734         * c-indentation.c: Likewise.
3735         * c-lex.c: Likewise.
3736         * c-omp.c: Likewise.
3737         * c-opts.c: Likewise.
3738         * c-pch.c: Likewise.
3739         * c-ppoutput.c: Likewise.
3740         * c-pragma.c: Likewise.
3741         * c-pretty-print.c: Likewise.
3742         * c-semantics.c: Likewise.
3743         * c-ubsan.c: Likewise.
3744         * cilk.c: Likewise.
3745         * stub-objc.c: Likewise.
3747 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
3749         PR c/66220:
3750         * c-indentation.c (should_warn_for_misleading_indentation): Use
3751         expand_location rather than expand_location_to_spelling_point.
3752         Don't warn if the guarding statement is more indented than the
3753         next/body stmts.
3755 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
3757         * c-indentation.c (warn_for_misleading_indentation): Bail out
3758         immediately if -Wmisleading-indentation isn't enabled.
3760 2015-06-01  Martin Liska  <mliska@suse.cz>
3762         * c-format.c (check_format_arg):Use new type-based pool allocator.
3763         (check_format_info_main) Likewise.
3765 2015-05-31  Eric Botcazou  <ebotcazou@adacore.com>
3767         * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
3768         (has_nontrivial_methods): Likewise.
3770 2015-05-25  Marek Polacek  <polacek@redhat.com>
3772         * c-ubsan.c (ubsan_instrument_shift): Use type0.
3774 2015-05-22  Marek Polacek  <polacek@redhat.com>
3776         PR c/47043
3777         * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
3779 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3781         * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
3782         STACK_GROWS_DOWNWARD.
3784 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3786         * c-cppbuiltin.c (c_cpp_builtins): Check the value of
3787         STACK_GROWS_DOWNWARD rather than if it is defined.
3789 2015-05-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3791         PR c/52952
3792         * c-format.c (location_column_from_byte_offset): New.
3793         (location_from_offset): New.
3794         (struct format_wanted_type): Add offset_loc field.
3795         (check_format_info): Move handling of location for extra arguments
3796         closer to the point of warning.
3797         (check_format_info_main): Pass the result of location_from_offset
3798         to warning_at.
3799         (format_type_warning): Pass the result of location_from_offset
3800         to warning_at.
3802 2015-05-20  Marek Polacek  <polacek@redhat.com>
3804         * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
3806 2015-05-20  Marek Polacek  <polacek@redhat.com>
3808         * c-ada-spec.c (dump_sloc): Use DECL_P.
3810 2015-05-20  Marek Polacek  <polacek@redhat.com>
3812         * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
3813         * c-common.c: Likewise.
3815 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
3817         * c-common.h (fe_file_change): Strengthen param from
3818         const line_map * to const line_map_ordinary *.
3819         (pp_file_change): Likewise.
3820         * c-lex.c (fe_file_change): Likewise.
3821         (cb_define): Use linemap_check_ordinary when invoking
3822         SOURCE_LINE.
3823         (cb_undef): Likewise.
3824         * c-opts.c (c_finish_options): Use linemap_check_ordinary when
3825         invoking cb_file_change.
3826         (c_finish_options): Likewise.
3827         (push_command_line_include): Likewise.
3828         (cb_file_change): Strengthen param "new_map" from
3829         const line_map * to const line_map_ordinary *.
3830         * c-ppoutput.c (cb_define): Likewise for local "map".
3831         (pp_file_change): Likewise for param "map" and local "from".
3833 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
3835         * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
3837 2015-05-18  Tom de Vries  <tom@codesourcery.com>
3839         * c-common.c (build_va_arg_1): New function.
3840         (build_va_arg): Add address operator to va_list operand if necessary.
3842 2015-05-15  Mikhail Maltsev  <maltsevm@gmail.com>
3844         PR c/48956
3845         * c-common.c (int_safely_convertible_to_real_p): Define.
3846         (unsafe_conversion_p): Check conversions involving complex types.
3847         (conversion_warning): Add new warning message for conversions which
3848         discard imaginary component.
3849         * c-common.h: (enum conversion_safety): Add new enumerator for such
3850         conversions.
3852 2015-05-14  Marek Polacek  <polacek@redhat.com>
3854         PR c/66066
3855         PR c/66127
3856         * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
3857         (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
3858         C_MAYBE_CONST_EXPR_INT_OPERANDS set.  Add FOR_INT_CONST argument and
3859         use it.  If FOR_INT_CONST, require that all evaluated operands be
3860         INTEGER_CSTs.
3862 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
3864         * c-common.h (warn_for_misleading_indentation): New prototype.
3865         * c-indentation.c: New file.
3866         * c.opt (Wmisleading-indentation): New option.
3868 2015-05-12  Tom de Vries  <tom@codesourcery.com>
3870         PR tree-optimization/66010
3871         * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
3873 2015-05-09  Jason Merrill  <jason@redhat.com>
3875         * c-opts.c (c_common_post_options): Also clear
3876         cpp_opts->cpp_warn_cxx11_compat.
3878         * c-common.h (enum cxx_dialect): Add cxx_unset.
3879         * c-common.c (cxx_dialect): Initialize to cxx_unset.
3880         * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
3882         * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
3883         (std=gnu++0x): Mark as Undocumented.
3884         (std=gnu++1y): Add deprecated message.
3886 2015-05-08  Jason Merrill  <jason@redhat.com>
3888         * c.opt (Wc++11-compat): Make primary.  Rename var warn_cxx11_compat.
3889         * c-opts.c: Adjust.
3891         * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
3893 2015-05-08  Marek Polacek  <polacek@redhat.com>
3895         PR c/64918
3896         * c.opt (Woverride-init-side-effects): New option.
3898 2015-05-07  Marek Polacek  <polacek@redhat.com>
3900         PR c/65179
3901         * c-common.c (c_fully_fold_internal): Warn when left shifting a
3902         negative value.
3903         * c.opt (Wshift-negative-value): New option.
3904         * c-opts.c (c_common_post_options): Set warn_shift_negative_value
3905         when -Wextra and C99/C++11 mode.
3907 2015-05-07  Marek Polacek  <polacek@redhat.com>
3908             Martin Uecker  <uecker@eecs.berkeley.edu>
3910         * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
3911         flexible member array-like members if SANITIZE_BOUNDS_STRICT.
3913 2015-05-05  Jason Merrill  <jason@redhat.com>
3915         * c.opt (Wterminate): New.
3917 2015-04-30  Marek Polacek  <polacek@redhat.com>
3919         * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
3920         require that the non-constant be of a boolean type.
3922 2015-04-29  Josh Triplett  <josh@joshtriplett.org>
3924         * c-common.c (handle_section_attribute): Refactor to reduce
3925         nesting and distinguish between error cases.
3927 2015-04-29  Marek Polacek  <polacek@redhat.com>
3929         PR c/64610
3930         * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
3931         with 0/1.
3933 2015-04-29  Jakub Jelinek  <jakub@redhat.com>
3935         * c-common.h (omp_clause_mask): Unconditionally define as a class.
3936         Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
3937         HOST_BITS_PER_WIDE_INT.
3939 2015-04-28  Tom de Vries  <tom@codesourcery.com>
3941         PR tree-optimization/65887
3942         * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
3944 2015-04-28  Eric Botcazou  <ebotcazou@adacore.com>
3945             Pierre-Marie de Rodat  <derodat@adacore.com>
3947         * c-ada-spec.c (in_function): Delete.
3948         (dump_generic_ada_node): Do not change in_function and remove the
3949         redundant code dealing with it.
3950         (print_ada_declaration): Do not change in_function.  Use INDENT_INCR.
3951         (print_ada_methods): Output the static member functions in a nested
3952         package after the regular methods as well as associated renamings.
3954 2015-04-24  Marek Polacek  <polacek@redhat.com>
3956         PR c/65830
3957         * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
3958         and OPT_Wshift_count_overflow.
3960         PR c/63357
3961         * c-common.c (warn_logical_operator): Warn if the operands have the
3962         same expressions.
3964 2015-04-24  Marek Polacek  <polacek@redhat.com>
3966         PR c/61534
3967         * c-common.c (warn_logical_operator): Bail if either operand comes
3968         from a macro expansion.
3970 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3972         PR target/55143
3973         * c-common.c (c_default_pointer_mode): Add definition.
3974         * c-common.h (c_default_pointer_mode): Add declaration.
3976 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
3978         * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
3979         on record_builtin_type argument.
3981 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
3983         PR c/65120
3984         * c-common.c (warn_logical_not_parentheses): Don't warn for
3985         !x == 0 or !x != 0.
3987 2015-03-07  Marek Polacek  <polacek@redhat.com>
3989         PR sanitizer/65280
3990         * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
3991         before trying to figure out whether we have a flexible array member.
3993 2015-03-06  Eric Botcazou  <ebotcazou@adacore.com>
3994             Jonathan Wakely  <jwakely.gcc@gmail.com>
3996         * c-ada-spec.c (dump_ada_double_name): Fix pasto.
3998 2015-03-05  Eric Botcazou  <ebotcazou@adacore.com>
4000         PR ada/65319
4001         * c-ada-spec.c (print_destructor): Remove obsolete code.
4003 2015-03-01  Eric Botcazou  <ebotcazou@adacore.com>
4005         * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
4006         (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
4007         DECL_TEMPLATE_RESULT emulations.
4008         (dump_ada_template)): Add guard for TYPE_METHODS.
4010 2015-02-27  Marek Polacek  <polacek@redhat.com>
4012         PR c/65040
4013         * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
4015 2015-02-27  Kai Tietz  <ktietz@redhat.com>
4017         PR c/35330
4018         * c-pragma.c (handle_pragma_weak): Do not try to create
4019         weak/alias of declarations not being function, or variable
4020         declarations.
4022 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
4024         PR libgomp/64625
4025         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
4026         Remove macros.
4027         (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
4029 2015-02-16  Marek Polacek  <polacek@redhat.com>
4031         PR c/65066
4032         * c-format.c (check_format_types): Handle null param.
4034 2015-02-13  Marek Polacek  <polacek@redhat.com>
4036         PR c/65040
4037         * c-format.c (check_format_types): Don't warn about different
4038         signedness if the original value is in the range of WANTED_TYPE.
4040 2015-02-12  Jason Merrill  <jason@redhat.com>
4042         PR c++/64956
4043         * c-opts.c (c_common_post_options): Change flag_abi_version from 0
4044         to the current highest version.
4045         * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
4047 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
4049         PR c/64824
4050         PR c/64868
4051         * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
4052         instead of RDIV_EXPR.  Use build_binary_op instead of
4053         build2_loc.
4055 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
4057         * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
4058         to pass input_location as first argument.
4060 2015-01-23  Tom de Vries  <tom@codesourcery.com>
4062         PR libgomp/64672
4063         * c.opt (fopenacc): Mark as LTO option.
4065 2015-01-23  Tom de Vries  <tom@codesourcery.com>
4067         PR libgomp/64707
4068         * c.opt (fopenmp): Mark as LTO option.
4070 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
4072         PR c/63307
4073         * cilk.c (fill_decls_vec): Only put decls into vector v.
4074         (compare_decls): Fix up formatting.
4076 2015-01-21  Igor Zamyatin  <igor.zamyatin@intel.com>
4078         PR c/63307
4079         * cilk.c: Include vec.h.
4080         (struct cilk_decls): New structure.
4081         (wrapper_parm_cb): Split this function to...
4082         (fill_decls_vec): ...this...
4083         (create_parm_list): ...and this.
4084         (compare_decls): New function.
4085         (for_local_cb): Remove.
4086         (wrapper_local_cb): Ditto.
4087         (build_wrapper_type): For now first traverse and fill vector of
4088         declarations then sort it and then deal with sorted vector.
4089         (cilk_outline): Ditto.
4090         (declare_one_free_variable): Ditto.
4092 2015-01-21  Jason Merrill  <jason@redhat.com>
4094         PR c++/64629
4095         * c-format.c (check_format_arg): Call decl_constant_value.
4097 2015-01-19  Martin Liska  <mliska@suse.cz>
4099         * c-common.c (handle_noicf_attribute): New function.
4101 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
4102             Bernd Schmidt  <bernds@codesourcery.com>
4103             James Norris  <jnorris@codesourcery.com>
4104             Cesar Philippidis  <cesar@codesourcery.com>
4105             Ilmir Usmanov  <i.usmanov@samsung.com>
4106             Jakub Jelinek  <jakub@redhat.com>
4108         * c.opt (fopenacc): New option.
4109         * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
4110         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
4111         New macros.
4112         * c-common.h (c_finish_oacc_wait): New prototype.
4113         * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
4114         (c_finish_oacc_wait): New function.
4115         * c-pragma.c (oacc_pragmas): New variable.
4116         (c_pp_lookup_pragma, init_pragma): Handle it.
4117         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
4118         PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
4119         PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
4120         PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
4121         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
4122         PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
4123         PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
4124         PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
4125         PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
4126         PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
4127         PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
4128         PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
4129         PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
4130         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
4131         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
4132         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
4133         PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
4134         PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
4135         PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
4136         PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
4137         PRAGMA_OACC_CLAUSE_WORKER.
4139 2015-01-14  Marcos Diaz  <marcos.diaz@tallertechnologies.com>
4141         * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
4142         for the new option fstack-protector_explicit.
4143         * c-common.c (c_common_attribute_table): Add stack_protect attribute.
4144         (handle_stack_protect_attribute): New function.
4146 2015-01-13  Martin Uecker  <uecker@eecs.berkeley.edu>
4148         * c.opt: New option -Warray-bounds=.
4150 2015-01-09  Michael Collison  <michael.collison@linaro.org>
4152         * array-notation-common.c: Include hash-set.h, machmode.h,
4153         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4154         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
4155         * c-ada-spec.c: Ditto.
4156         * c-cilkplus.c: Ditto.
4157         * c-common.c: Include input.h due to flattening of tree.h.
4158         Define macro GCC_C_COMMON_C.
4159         * c-common.h: Flatten tree.h header files into c-common.h.
4160         Remove include of tree-core.h.
4161         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
4162         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4163         fold-const.h, wide-int.h, and inchash.h due to
4164         flattening of tree.h.
4165         * c-dump.c: Ditto.
4166         * c-format.c: Flatten tree.h header files into c-common.h.
4167         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
4168         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4169         fold-const.h, wide-int.h, and inchash.h due to
4170         flattening of tree.h.
4171         * c-dump.c: Include hash-set.h, machmode.h,
4172         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4173         fold-const.h, wide-int.h, and inchash.h due to
4174         flattening of tree.h.
4175         * c-format.c: Include hash-set.h, machmode.h,
4176         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4177         fold-const.h, wide-int.h, inchash.h and real.h due to
4178         flattening of tree.h.
4179         * c-gimplify.c: Include hash-set.h, machmode.h,
4180         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4181         fold-const.h, wide-int.h, and inchash.h due to
4182         flattening of tree.h.
4183         * cilk.c: Ditto.
4184         * c-lex.c: Ditto.
4185         * c-omp.c: Ditto.
4186         * c-opts.c: Ditto.
4187         * c-pch.c: Ditto.
4188         * c-ppoutput.c: Ditto.
4189         * c-pragma.c: Ditto.
4190         * c-pretty-print.c: Ditto.
4191         * c-semantics.c: Ditto.
4192         * c-ubsan.c: Ditto.
4193         * stub-objc.c: Ditto.
4195 2015-01-08  Jason Merrill  <jason@redhat.com>
4197         * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
4198         do_ubsan_in_current_function.
4199         (ubsan_maybe_instrument_reference_or_call): Likewise.
4200         * c-ubsan.h: Declare it.
4202 2015-01-08  Mike Stump  <mikestump@comcast.net>
4204         * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
4206 2015-01-07  Marek Polacek  <polacek@redhat.com>
4208         PR c/64440
4209         * c-common.c (c_fully_fold_internal): Warn for division and modulo
4210         if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
4212 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
4214         PR c++/31397
4215         * c.opt (Wsuggest-override): New option.
4217 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
4219         Update copyright years.
4221 2015-01-05  Marek Polacek  <polacek@redhat.com>
4223         PR c/64423
4224         * c-common.c (warn_array_subscript_with_type_char): Add location_t
4225         parameter.  Use it.
4226         * c-common.h (warn_array_subscript_with_type_char): Update
4227         declaration.
4229 2014-12-20  Edward Smith-Rowland  <3dw4rd@verizon.net>
4231         * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
4232         Control macro with flag_sized_deallocation.
4234 2014-12-20  Martin Uecker  <uecker@eecs.berkeley.edu>
4236         * c.opt (Wdiscarded-array-qualifiers): New option.
4238 2014-12-19  Jakub Jelinek  <jakub@redhat.com>
4240         PR preprocessor/63831
4241         * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
4242         and __has_cpp_attribute here.
4243         * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
4244         c_common_has_attribute.
4245         * c-common.h (c_common_has_attribute): New prototype.
4246         * c-lex.c (init_c_lex): Set cb->has_attribute to
4247         c_common_has_attribute instead of cb_has_attribute.
4248         (get_token_no_padding): New function.
4249         (cb_has_attribute): Renamed to ...
4250         (c_common_has_attribute): ... this.  No longer static.  Use
4251         get_token_no_padding, require ()s, don't build TREE_LIST
4252         unnecessarily, fix up formatting, adjust diagnostics, call
4253         init_attributes.
4255 2014-12-15  Jason Merrill  <jason@redhat.com>
4257         * c.opt (-fsized-deallocation, -Wc++14-compat): New.
4258         (-Wsized-deallocation): New.
4259         * c-opts.c (c_common_post_options): -fsized-deallocation defaults
4260         to on in C++14 and up.
4262 2014-12-11  Jason Merrill  <jason@redhat.com>
4264         * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
4266         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
4267         we aren't complaining about VLAs.
4269 2014-12-06  Marek Polacek  <polacek@redhat.com>
4271         PR tree-optimization/64183
4272         * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
4273         shift-expression if it is integer_type_node.  Use types_compatible_p.
4275 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
4277         * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
4278         last argument from create_tmp_var_raw and create_tmp_var calls.
4279         * cilk.c (gimplify_cilk_spawn): Likewise.
4280         * c-omp.c (c_finish_omp_atomic): Likewise.
4282 2014-11-28  Marek Polacek  <polacek@redhat.com>
4284         * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
4285         instead of unsigned_type_node.
4287 2014-11-28  Marek Polacek  <polacek@redhat.com>
4289         PR c/63862
4290         * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
4291         to op1_utype.
4292         * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
4293         expression to unsigned_type_node.
4295 2014-11-20  Mark Wielaard  <mjw@redhat.com>
4297         PR debug/38757
4298         * c-opts.c (set_std_c89): Set lang_hooks.name.
4299         (set_std_c99): Likewise.
4300         (set_std_c11): Likewise.
4301         (set_std_cxx98): Likewise.
4302         (set_std_cxx11): Likewise.
4303         (set_std_cxx14): Likewise.
4304         (set_std_cxx1z): Likewise.
4306 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
4308         PR target/63764
4309         * c-common.h (convert_vector_to_pointer_for_subscript): Change
4310         return type to bool.
4311         * c-common.c: Include gimple-expr.h.
4312         (convert_vector_to_pointer_for_subscript): Change return type to
4313         bool.  If *vecp is not lvalue_p and has VECTOR_TYPE, return true
4314         and copy it into a TARGET_EXPR and use that instead of *vecp
4315         directly.
4317 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
4319         Merger of git branch "gimple-classes-v2-option-3".
4320         * ChangeLog.gimple-classes: New.
4321         * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
4322         from being just a vec<gimple> to a vec<gbind *>.
4324 2014-11-18  Jakub Jelinek  <jakub@redhat.com>
4326         PR sanitizer/63813
4327         * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
4328         argument to ptype, set type to TREE_TYPE (ptype).  Don't call
4329         get_pointer_alignment for non-pointers.  Use ptype, or if it is
4330         reference type, corresponding pointer type, as type of kind
4331         argument.
4332         (ubsan_maybe_instrument_reference,
4333         ubsan_maybe_instrument_member_call): Adjust callers.
4335 2014-11-15  Marek Polacek  <polacek@redhat.com>
4337         PR middle-end/63884
4338         * array-notation-common.c (is_sec_implicit_index_fn): Return false
4339         for NULL fndecl.
4340         (extract_array_notation_exprs): Return for NULL node.
4342 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
4344         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
4345         undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
4347 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
4349         PR c/59708
4350         * c-common.c (check_builtin_function_arguments): Handle
4351         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
4353 2014-11-10  Andi Kleen  <ak@linux.intel.com>
4355         PR c/60804
4356         * c-common.h (check_no_cilk): Declare.
4357         * cilk.c (get_error_location): New function.
4358         (check_no_cilk): Dito.
4360 2014-11-10  Andi Kleen  <ak@linux.intel.com>
4362         * cilk.c (recognize_spawn): Use expression location
4363         for error message.
4365 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
4367         * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
4369 2014-11-10  Edward Smith-Rowland  <3dw4rd@verizon.net>
4371         * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
4372         (__cpp_rtti, __cpp_exceptions): New macros for C++98;
4373         (__cpp_range_based_for, __cpp_initializer_lists,
4374         __cpp_delegating_constructors, __cpp_nsdmi,
4375         __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
4376         for C++11; (__cpp_attribute_deprecated): Remove in favor of
4377         __has_cpp_attribute.
4378         * c-lex.c (cb_has_attribute): New callback CPP function;
4379         (init_c_lex): Set has_attribute callback.
4381 2014-11-04  Richard Biener  <rguenther@suse.de>
4383         * c-common.c (shorten_compare): Do not shorten mixed
4384         DFP and non-DFP compares.
4386 2014-11-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
4388         * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
4389         * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
4390         Commentary and rearrangement of tests.
4391         * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
4392         Commentary and rearrangement of tests.
4393         * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
4394         * g++.dg/cpp1y/feat-cxx98.C: Commentary.
4396 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
4398         * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
4399         enum from machine_mode.
4401 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
4403         * c-common.c: Adjust include files.
4404         * c-gimplify.c: Ditto.
4405         * cilk.c: Ditto.
4406         * c-pragma.c: Ditto.
4407         * c-ubsan.c: Ditto.
4409 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
4411         * c-gimplify.c: Adjust include files.
4413 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4415         PR c++/53061
4416         * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
4417         c_common_initialize_diagnostics.
4418         * c-common.h: Likewise.
4420 2014-10-24  Marek Polacek  <polacek@redhat.com>
4422         PR c/56980
4423         * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
4424         print "struct"/"union"/"enum" for typedefed names.
4426 2014-10-23  Marek Polacek  <polacek@redhat.com>
4428         * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
4429         in unsigned type.
4431 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
4432             Yury Gribov  <y.gribov@samsung.com>
4434         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4435         ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
4436         instead of flag_sanitize_recover as bool flag.
4438 2014-10-21  Kirill Yukhin  <kirill.yukhin@intel.com>
4440         * cilk.c: Revert previous change.
4442 2014-10-20  Igor Zamyatin  <igor.zamyatin@intel.com>
4444         PR c/63307
4445         * cilk.c: Include vec.h.
4446         (struct cilk_decls): New structure.
4447         (wrapper_parm_cb): Split this function to...
4448         (fill_decls_vec): ...this...
4449         (create_parm_list): ...and this.
4450         (compare_decls): New function.
4451         (for_local_cb): Remove.
4452         (wrapper_local_cb): Ditto.
4453         (build_wrapper_type): For now first traverse and fill vector of
4454         declarations then sort it and then deal with sorted vector.
4455         (cilk_outline): Ditto.
4456         (declare_one_free_variable): Ditto.
4458 2014-10-17  Marek Polacek  <polacek@redhat.com>
4460         * c-opts.c (c_common_post_options): Set warn_implicit_int.
4461         * c.opt (Wimplicit-int): Initialize to -1.
4463 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
4465         * c-pragma.c: Adjust include files.
4466         * c-semantics.c: Likewise.
4468 2014-10-16  DJ Delorie  <dj@redhat.com>
4470         * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
4471         multiples of bytes.
4473 2014-10-14  Jason Merrill  <jason@redhat.com>
4475         PR c++/63455
4476         * c-common.h (CPP_PREPARSED_EXPR): New.
4477         (N_CP_TTYPES): Adjust.
4479 2014-10-15  Marek Polacek  <polacek@redhat.com>
4481         * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
4483 2014-10-14  DJ Delorie  <dj@redhat.com>
4485         * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
4486         types, not just __int128.
4487         * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
4488         types, not just __int128.
4489         (cpp_atomic_builtins): Round pointer sizes up.
4490         (type_suffix): Use type precision, not specific types.
4491         * c-common.c (c_common_reswords): Remove __int128 special case.
4492         (c_common_type_for_size): Check for all __intN types, not just
4493         __int128.
4494         (c_common_type_for_mode): Likewise.
4495         (c_common_signed_or_unsigned_type): Likewise.
4496         (c_build_bitfield_integer_type): Likewise.
4497         (c_common_nodes_and_builtins): Likewise.
4498         (keyword_begins_type_specifier): Likewise.
4499         * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
4500         __intN variants.
4502 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
4504         * c-common.c: Use hash_table instead of hashtab.
4506 2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>
4508         * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
4509         C++11 section.
4511 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
4513         PR c++/54427
4514         PR c++/57198
4515         PR c++/58845
4516         * c-common.c (warn_logical_operator): Punt for vectors.
4518 2014-10-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
4520         Implement SD-6: SG10 Feature Test Recommendations
4521         * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
4522         macros and the __has_header macro.
4524 2014-09-30  Jason Merrill  <jason@redhat.com>
4526         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
4527         RID_IS_TRIVIALLY_CONSTRUCTIBLE.
4528         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4530         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
4531         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4533         * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
4534         * c-common.c (c_common_reswords): Remove __is_convertible_to.
4536 2014-09-24  Marek Polacek  <polacek@redhat.com>
4538         PR c/61405
4539         PR c/53874
4540         * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
4542 2014-09-23  Andi Kleen  <ak@linux.intel.com>
4544         * c-common.c (handle_no_reorder_attribute): New function.
4545         (c_common_attribute_table): Add no_reorder attribute.
4547 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
4549         * c-cppbuiltin.c (c_cpp_builtins): Define
4550         __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
4551         modes.
4553 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
4555         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
4556         for supported floating-point modes.
4558 2014-09-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4560         * c.opt (Wpsabi): Use LangEnabledBy.
4561         * c-opts.c (c_common_handle_option): Do not handle here.
4563 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
4565         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
4566         macros for floating-point modes.
4568 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
4570         PR target/58757
4571         * c-cppbuiltin.c (builtin_define_float_constants): Correct
4572         __*_DENORM_MIN__ without denormals.
4574 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
4576         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4577         ubsan_instrument_vla, ubsan_instrument_return): Adjust
4578         ubsan_create_data callers.
4579         (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
4580         index is constant or BIT_AND_EXPR with constant mask and is
4581         small enough for the bound.
4582         * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
4583         ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
4585 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4587         * c.opt: Add CppReason to various flags.
4588         (Wdate-time): Re-sort.
4589         * c-common.c: Include c-common.h earlier.
4590         (struct reason_option_codes_t): Delete.
4591         (c_option_controlling_cpp_error): Prefix global type and struct
4592         with cpp_.
4594 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4596         * c.opt (Wnormalized): New.
4597         (Wnormalized=): Use Enum and Reject Negative.
4598         * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
4600 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
4602         * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
4603         digits of floating-point modes if -fbuilding-libgcc.
4605 2014-09-05  Joseph Myers  <joseph@codesourcery.com>
4607         * c-cppbuiltin.c (c_cpp_builtins): Also define
4608         __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
4609         __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
4610         __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
4611         __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
4612         __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
4613         __LIBGCC_STACK_GROWS_DOWNWARD__,
4614         __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
4615         __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
4616         __LIBGCC_DWARF_FRAME_REGISTERS__,
4617         __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
4618         __LIBGCC_STACK_POINTER_REGNUM__ and
4619         __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
4620         (builtin_define_with_value): Handle backslash-escaping in string
4621         macro values.
4623 2014-09-05  Richard Biener  <rguenther@suse.de>
4625         PR middle-end/63148
4626         * c-format.c (check_format_arg): Properly handle
4627         effectively signed POINTER_PLUS_EXPR offset.
4629 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4631         * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
4632         Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
4633         (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
4634         and Init.
4635         * c-opts.c (c_common_handle_option): Do not handle here.
4636         (sanitize_cpp_opts): Likewise.
4637         * c-common.c (struct reason_option_codes_t): Handle
4638         CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
4640 2014-09-03  Marek Polacek  <polacek@redhat.com>
4642         * c.opt (Wlogical-not-parentheses): Enable by -Wall.
4644 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
4645             Balaji V. Iyer  <balaji.v.iyer@intel.com>
4646             Igor Zamyatin  <igor.zamyatin@intel.com>
4648         * c-cilkplus.c (cilk_for_number_of_iterations): New function.
4649         * c-common.c (c_common_reswords): Added _Cilk_for.
4650         * c-common.h (enum rid): Added RID_CILK_FOR.
4651         (cilk_for_number_of_iterations): Add declaration.
4652         * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
4653         CILK_FOR.
4654         * c-pragma.c (init_pragma): Register "grainsize" pragma.
4655         * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
4657 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4659         * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
4660         Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
4661         Wundef): Use CPP, Var and Init.
4662         * c-opts.c (c_common_handle_option): Do not handle the above flags here.
4664 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4666         * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
4667         * c-opts.c (c_common_handle_option): Do not handle here.
4669 2014-08-25  Jason Merrill  <jason@redhat.com>
4671         * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
4672         -std=c++14 and -std=gnu++14, rather than the reverse.
4673         * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
4674         OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
4675         * c-common.h (cxx_dialect): Remove cxx1y.
4677 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
4679         * c-common.h (enum cxx_dialect): Add cxx14.
4680         * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
4681         * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
4682         cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
4684 2014-08-22  Jason Merrill  <jason@redhat.com>
4686         * c.opt (std=gnu++17): Fix alias.
4688 2014-08-22  Marek Polacek  <polacek@redhat.com>
4690         PR c++/62199
4691         * c-common.c (warn_logical_not_parentheses): Don't check LHS.  Don't
4692         check for vector types.  Drop LHS argument.
4693         * c-common.h (warn_logical_not_parentheses): Adjust.
4695 2014-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4697         * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
4698         (Wmultichar): Likewise.
4699         (Wdate-time): Use C-family languages instead of Common. Use CPP
4700         and Var.
4701         * c-opts.c (c_common_handle_option): Do not handle the above
4702         options here.
4703         (sanitize_cpp_opts): Likewise.
4705 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4707         PR fortran/44054
4708         * c-opts.c: Include tree-diagnostics.h.
4709         (c_diagnostic_finalizer): New.
4710         (c_common_initialize_diagnostics): Use it.
4712 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4714         PR preprocessor/51303
4715         * c-common.c (struct reason_option_codes_t option_codes):
4716         Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
4718 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4720         PR c/60975
4721         PR c/53063
4722         * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
4723         * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
4724         (c_common_post_options): Call init_global_opts_from_cpp.
4725         (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
4727 2014-08-19  Marek Polacek  <polacek@redhat.com>
4729         PR c++/62153
4730         * c-common.c (maybe_warn_bool_compare): New function.
4731         * c-common.h (maybe_warn_bool_compare): Declare.
4732         * c.opt (Wbool-compare): New option.
4734 2014-08-19  Marek Polacek  <polacek@redhat.com>
4736         * c.opt (Wc99-c11-compat): New option.
4738 2014-08-19  Marek Polacek  <polacek@redhat.com>
4740         * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
4741         to warn_c90_c99_compat.
4742         * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
4743         to -1.
4745 2014-08-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4746             Steven Bosscher  <steven@gcc.gnu.org>
4748         PR c/52952
4749         * c-format.c: Add extra_arg_loc and format_string_loc to struct
4750         format_check_results.
4751         (check_function_format): Use true and add comment for boolean
4752         argument.
4753         (finish_dollar_format_checking): Use explicit location when warning.
4754         (check_format_info): Likewise.
4755         (check_format_arg): Set extra_arg_loc and format_string_loc.
4756         (check_format_info_main): Use explicit location when warning.
4757         (check_format_types): Pass explicit location.
4758         (format_type_warning): Likewise.
4760 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4762         PR fortran/44054
4763         * c-format.c: Handle Fortran flags.
4765 2014-08-12  Igor Zamyatin  <igor.zamyatin@intel.com>
4767         PR other/61962
4768         * array-notation-common.c (find_rank): Added handling for other
4769         types of references.
4771 2014-08-10  Marek Polacek  <polacek@redhat.com>
4773         PR c/51849
4774         * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
4775         * c.opt (Wc90-c99-compat): Add option.
4777 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
4779         * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
4781 2014-08-03  Marek Polacek  <polacek@redhat.com>
4783         * c-common.c (check_case_value):  Add location_t parameter.  Use it.
4784         (c_add_case_label): Pass loc to check_case_value.
4786 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
4788         * cilk.c: Use hash_map instead of pointer_map.
4790 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
4792         * c-gimplify.c: Use hash_set instead of pointer_set.
4794 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
4796         PR middle-end/61455
4797         * array-notation-common.c (extract_array_notation_exprs): Handling
4798         of DECL_EXPR added.
4800 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
4802         * c-common.h (min_align_of_type): Removed prototype.
4803         * c-common.c (min_align_of_type): Removed.
4804         * c-ubsan.h (ubsan_maybe_instrument_reference,
4805         ubsan_maybe_instrument_member_call): New prototypes.
4806         * c-ubsan.c: Include stor-layout.h and builtins.h.
4807         (ubsan_maybe_instrument_reference_or_call,
4808         ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
4809         functions.
4811 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
4813         PR c++/60517
4814         * c.opt (-Wreturn-local-addr): Move to common.opt.
4816 2014-07-30  Jason Merrill  <jason@redhat.com>
4818         PR c++/61659
4819         PR c++/61687
4820         Revert:
4821         * c.opt (-fuse-all-virtuals): New.
4823 2014-07-30  Tom Tromey  <tromey@redhat.com>
4825         PR c/59855
4826         * c.opt (Wdesignated-init): New option.
4827         * c-common.c (c_common_attribute_table): Add "designated_init".
4828         (handle_designated_init): New function.
4830 2014-07-24  Marek Polacek  <polacek@redhat.com>
4832         PR c/57653
4833         * c-opts.c (c_finish_options): If -imacros is in effect, return.
4835 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
4837         PR preprocessor/60723 - missing system-ness marks for macro tokens
4838         * c-ppoutput.c (struct print::prev_was_system_token): New data
4839         member.
4840         (init_pp_output): Initialize it.
4841         (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
4842         (do_line_change): Return a flag saying if a line marker was
4843         emitted or not.
4844         (scan_translation_unit): Detect if the system-ness of the token we
4845         are about to emit is different from the one of the previously
4846         emitted token.  If so, emit a line marker.  Avoid emitting useless
4847         adjacent line markers.  Avoid emitting line markers for tokens
4848         originating from the expansion of built-in macros.
4849         (scan_translation_unit_directives_only): Adjust.
4851 2014-07-15  Marek Polacek  <polacek@redhat.com>
4853         * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
4854         TYPE_MAX_VALUE is NULL.
4856 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
4858         PR middle-end/61294
4859         * c.opt (Wmemset-transposed-args): New warning.
4861 2014-07-10  Jason Merrill  <jason@redhat.com>
4863         PR c++/61659
4864         PR c++/61687
4865         * c.opt (-fuse-all-virtuals): New.
4867 2014-07-09  Richard Biener  <rguenther@suse.de>
4869         PR c-family/61741
4870         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4871         using unsigned arithmetic if overflow does not wrap instead of
4872         if overflow is undefined.
4874 2014-07-06  Marek Polacek  <polacek@redhat.com>
4876         PR c/6940
4877         * c.opt (Wsizeof-array-argument): New option.
4879 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
4881         * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
4882         comments->count <= 1, as comments->entries might be NULL.
4884 2014-07-01  Marek Polacek  <polacek@redhat.com>
4886         * c.opt (Wint-conversion): New option.
4888 2014-07-01  Marek Polacek  <polacek@redhat.com>
4890         PR c/58286
4891         * c.opt (Wincompatible-pointer-types): New option.
4893 2014-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
4895         PR c++/51400
4896         * c-common.c (handle_noreturn_attribute, handle_const_attribute):
4897         Do not discard TYPE_QUALS of type.
4899 2014-06-26  Jason Merrill  <jason@redhat.com>
4901         * c-common.h (enum cxx_dialect): Add cxx1z.
4902         * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
4903         * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
4905 2014-06-26  Teresa Johnson  <tejohnson@google.com>
4907         * c-common.h (get_dump_info): Declare.
4908         * c-gimplify.c (c_genericize): Use saved dump files.
4909         * c-opts.c (c_common_parse_file): Begin and end dumps
4910         once around parsing invocation.
4911         (get_dump_info): New function.
4913 2014-06-23  Marek Polacek  <polacek@redhat.com>
4914             Andrew MacLeod  <amacleod@redhat.com>
4916         PR c/61553
4917         * c-common.c (get_atomic_generic_size): Don't segfault if the
4918         type doesn't have a size.
4920 2014-06-20  Marek Polacek  <polacek@redhat.com>
4922         * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
4923         (ubsan_walk_array_refs_r): New function.
4924         (c_genericize): Instrument array bounds.
4925         * c-ubsan.c: Include "internal-fn.h".
4926         (ubsan_instrument_division): Mark instrumented arrays as having
4927         side effects.  Adjust ubsan_type_descriptor call.
4928         (ubsan_instrument_shift): Likewise.
4929         (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
4930         (ubsan_instrument_bounds): New function.
4931         (ubsan_array_ref_instrumented_p): New function.
4932         (ubsan_maybe_instrument_array_ref): New function.
4933         * c-ubsan.h (ubsan_instrument_bounds): Declare.
4934         (ubsan_array_ref_instrumented_p): Declare.
4935         (ubsan_maybe_instrument_array_ref): Declare.
4937 2014-06-20  Hale Wang  <hale.wang@arm.com>
4939         PR lto/61123
4940         * c.opt (fshort-enums): Add to LTO.
4941         * c.opt (fshort-wchar): Likewise.
4943 2014-06-16  Marek Polacek  <polacek@redhat.com>
4945         PR c/60439
4946         * c.opt (Wswitch-bool): Add Var.
4948 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
4950         PR middle-end/61486
4951         * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
4952         #pragma omp target teams or
4953         #pragma omp {,target }teams distribute simd.
4955 2014-06-12  Jason Merrill  <jason@redhat.com>
4957         * c.opt (Wabi=, fabi-compat-version): New.
4958         * c-opts.c (c_common_handle_option): Handle -Wabi=.
4959         (c_common_post_options): Handle flag_abi_compat_version default.
4960         Disallow -fabi-compat-version=1.
4961         * c-common.h (abi_version_crosses): New.
4963 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
4965         * c-common.c (handle_section_attribute): Update handling for
4966         section names that are no longer trees.
4968 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
4970         PR fortran/60928
4971         * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
4972         (omp_pragmas): ... back here.
4974 2014-06-05  Marek Polacek  <polacek@redhat.com>
4976         PR c/49706
4977         * c-common.c (warn_logical_not_parentheses): New function.
4978         * c-common.h (warn_logical_not_parentheses): Declare.
4979         * c.opt (Wlogical-not-parentheses): New option.
4981 2014-06-04  Marek Polacek  <polacek@redhat.com>
4983         PR c/30020
4984         * c-common.c (check_case_bounds): Add location parameter.
4985         Use it.
4986         (c_add_case_label): Pass loc to check_case_bounds.
4988 2014-06-03  Marek Polacek  <polacek@redhat.com>
4990         PR c/60439
4991         * c.opt (Wswitch-bool): New option.
4993 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
4995         * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
4996         Remove prototypes.
4997         (record_types_used_by_current_var_decl): Move prototype to where
4998         it belongs.
5000         * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
5001         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
5002         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
5004 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
5006         * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
5007         * c-common.c (c_common_nodes_and_builtins): Don't initialize
5008         void_zero_node.
5009         * c-pretty-print.c (pp_c_void_constant): New function.
5010         (c_pretty_printer::constant, c_pretty_printer::primary_expression)
5011         (c_pretty_printer::expression): Handle VOID_CST.
5012         * cilk.c (extract_free_variables): Likewise.
5013         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
5014         (ubsan_instrument_vla): Use void_node instead of void_zero_node.
5016 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
5018         * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
5019         * c-pragma.c (push_alignment): Adjust.
5020         (handle_pragma_push_options): Likewise.
5022 2014-05-09  Marek Polacek  <polacek@redhat.com>
5024         PR c/50459
5025         * c-common.c (check_user_alignment): Return -1 if alignment is error
5026         node.
5027         (handle_aligned_attribute): Don't call default_conversion on
5028         FUNCTION_DECLs.
5029         (handle_vector_size_attribute): Likewise.
5030         (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
5031         (handle_sentinel_attribute): Call default_conversion and allow even
5032         integral types as an argument.
5034 2014-05-08  Marek Polacek  <polacek@redhat.com>
5036         PR c/61053
5037         * c-common.c (min_align_of_type): New function factored out from...
5038         (c_sizeof_or_alignof_type): ...here.
5039         * c-common.h (min_align_of_type): Declare.
5041 2014-05-08  Marek Polacek  <polacek@redhat.com>
5043         PR c/61077
5044         * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
5045         parameter type of main.
5047 2014-05-07  DJ Delorie  <dj@redhat.com>
5049         * c-cppbuiltin.c (print_bits_of_hex): New.
5050         (builtin_define_type_minmax): Print values using hex so as not to
5051         require a pre-computed list of string values.
5053 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
5054             Mike Stump  <mikestump@comcast.net>
5055             Richard Sandiford  <rdsandiford@googlemail.com>
5057         * c-ada-spec.c: Include wide-int.h.
5058         (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
5059         (dump_generic_ada_node): Use wide-int interfaces.
5060         * c-common.c: Include wide-int-print.h.
5061         (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
5062         (pointer_int_sum): Use wide-int interfaces.
5063         (c_common_nodes_and_builtins): Use make_int_cst.
5064         (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
5065         (handle_alloc_size_attribute): Use wide-int interfaces.
5066         (get_nonnull_operand): Likewise.
5067         * c-format.c (get_constant): Use tree_fits_uhwi_p.
5068         * c-lex.c: Include wide-int.h.
5069         (narrowest_unsigned_type): Take a widest_int rather than two
5070         HOST_WIDE_INTs.
5071         (narrowest_signed_type): Likewise.
5072         (interpret_integer): Update accordingly.  Use wide-int interfaces.
5073         (lex_charconst): Use wide-int interfaces.
5074         * c-pretty-print.c: Include wide-int.h.
5075         (pp_c_integer_constant): Use wide-int interfaces.
5076         * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
5077         INT_CST_LT_UNSIGNED.
5079 2014-05-06  Richard Biener  <rguenther@suse.de>
5081         * c-opts.c (c_common_post_options): For -freestanding,
5082         -fno-hosted and -fno-builtin disable pattern recognition
5083         if not enabled explicitely.
5085 2014-05-02  Marek Polacek  <polacek@redhat.com>
5087         * c.opt (Wsizeof-pointer-memaccess): Describe option.
5089 2014-05-01  Marek Polacek  <polacek@redhat.com>
5091         PR c/43245
5092         * c.opt (Wdiscarded-qualifiers): Add.
5094 2014-04-30  Marek Polacek  <polacek@redhat.com>
5096         * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs.  Perform
5097         INT_MIN / -1 sanitization only for integer types.
5099 2014-04-25  Marek Polacek  <polacek@redhat.com>
5101         PR c/18079
5102         * c-common.c (handle_noinline_attribute): Warn if the attribute
5103         conflicts with always_inline attribute.
5104         (handle_always_inline_attribute): Warn if the attribute conflicts
5105         with noinline attribute.
5107 2014-04-25  Marek Polacek  <polacek@redhat.com>
5109         PR c/60156
5110         * c-common.c (check_main_parameter_types): Warn about variadic main.
5112 2014-04-24  Mike Stump  <mikestump@comcast.net>
5114         * c.opt (Wshadow-ivar): Default to on.
5116 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
5118         * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
5120 2014-04-23  Marek Polacek  <polacek@redhat.com>
5122         * c-common.c (handle_tm_wrap_attribute): Tweak error message.
5124 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
5126         PR sanitizer/60275
5127         * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
5128         if flag_sanitize_undefined_trap_on_error.
5129         (ubsan_instrument_division, ubsan_instrument_shift,
5130         ubsan_instrument_vla): Likewise.  Use __ubsan_handle_*_abort ()
5131         if !flag_sanitize_recover.
5133 2014-04-22  Marc Glisse  <marc.glisse@inria.fr>
5135         PR libstdc++/43622
5136         * c-common.c (registered_builtin_types): Make non-static.
5137         * c-common.h (registered_builtin_types): Declare.
5139 2014-04-14  Richard Biener  <rguenther@suse.de>
5140         Marc Glisse  <marc.glisse@inria.fr>
5142         PR c/60819
5143         * c-common.c (convert_vector_to_pointer_for_subscript): Properly
5144         apply may-alias the scalar pointer type when applicable.
5146 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
5148         PR middle-end/60467
5149         * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
5150         as possible argument for Cilk_spawn.
5152 2014-04-11  Tobias Burnus  <burnus@net-b.de>
5154         PR c/60194
5155         * c.opt (Wformat-signedness): Add
5156         * c-format.c(check_format_types): Use it.
5158 2014-04-11  Jason Merrill  <jason@redhat.com>
5160         PR c++/57926
5161         * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
5162         default_conversion for an array argument.
5164 2014-04-08  Marek Polacek  <polacek@redhat.com>
5166         PR sanitizer/60745
5167         * c-ubsan.c: Include asan.h.
5168         (ubsan_instrument_return): Call initialize_sanitizer_builtins.
5170 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
5172         * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
5174 2014-04-02  Marek Polacek  <polacek@redhat.com>
5176         * c-common.h (c_expand_expr): Remove declaration.
5178 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
5180         PR c++/60689
5181         * c-common.c (add_atomic_size_parameter): When creating new
5182         params vector, push the size argument first.
5184 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
5186         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
5187         ubsan_instrument_vla, ubsan_instrument_return): Adjust
5188         ubsan_create_data callers.
5190 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
5192         PR debug/60603
5193         * c-opts.c (c_finish_options): Restore cb_file_change call to
5194         <built-in>.
5196 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
5198         PR middle-end/36282
5199         * c-pragma.c (apply_pragma_weak): Only look at
5200         TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
5201         DECL_ASSEMBLER_NAME_SET_P (decl).
5202         (maybe_apply_pending_pragma_weaks): Exit early if
5203         vec_safe_is_empty (pending_weaks) rather than only when
5204         !pending_weaks.
5205         (maybe_apply_pragma_weak): Likewise.  If !DECL_ASSEMBLER_NAME_SET_P,
5206         set assembler name back to NULL afterwards.
5208 2014-03-11  Jason Merrill  <jason@redhat.com>
5210         * c.opt: Add -std=gnu++14.
5212 2014-03-11  Ian Bolton  <ian.bolton@arm.com>
5214         * c-opts.c (c_common_post_options): Don't override
5215         -ffp-contract=fast if unsafe-math-optimizations is on.
5217 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
5219         * c.opt: Enable LTO FE for fshort-double.
5221 2014-03-07  Jason Merrill  <jason@redhat.com>
5223         * c.opt: Add -std=c++14.
5225 2014-03-06  Marek Polacek  <polacek@redhat.com>
5227         PR c/60197
5228         * cilk.c (contains_cilk_spawn_stmt): New function.
5229         (contains_cilk_spawn_stmt_walker): Likewise.
5230         (recognize_spawn): Give error on invalid use of _Cilk_spawn.
5231         * c-common.h (contains_cilk_spawn_stmt): Add declaration.
5233 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
5235         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
5236         (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
5237         even when flag_preprocess_only.
5239 2014-02-26  Jason Merrill  <jason@redhat.com>
5241         PR c++/59231
5242         PR c++/11586
5243         * c-common.c (shorten_compare): Don't check
5244         c_inhibit_evaluation_warnings.
5246 2014-02-19  Jakub Jelinek  <jakub@redhat.com>
5248         PR c/37743
5249         * c-common.c (c_common_nodes_and_builtins): When initializing
5250         c_uint{16,32,64}_type_node, also set corresponding
5251         uint{16,32,64}_type_node to the same value.
5253         PR c++/60267
5254         * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
5255         for PRAGMA_IVDEP if flag_preprocess_only.
5257 2014-02-12  Jakub Jelinek  <jakub@redhat.com>
5259         PR c/60101
5260         * c-common.c (merge_tlist): If copy is true, call new_tlist,
5261         if false, add ADD itself, rather than vice versa.
5262         (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
5263         copy.  For SAVE_EXPR, only call merge_tlist once.
5265 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
5267         PR middle-end/60092
5268         * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
5269         and tree_to_uhwi.
5270         (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
5271         functions.
5272         (c_common_attribute_table): Add alloc_align and assume_aligned
5273         attributes.
5275 2014-02-06  Marek Polacek  <polacek@redhat.com>
5277         PR c/60087
5278         * c-common.c (warn_for_sign_compare): Call warning_at with location
5279         instead of warning.
5281 2014-02-05  Marek Polacek  <polacek@redhat.com>
5283         PR c/53123
5284         * c-omp.c (c_finish_omp_atomic): Remove unreachable return
5285         statement.
5287 2014-02-04  Marek Polacek  <polacek@redhat.com>
5289         PR c/60036
5290         * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
5291         SAVE_EXPR.
5293 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
5295         PR c++/53017
5296         PR c++/59211
5297         * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
5298         handle_vector_size_attribute, handle_nonnull_attribute): Call
5299         default_conversion on the attribute argument.
5300         (handle_nonnull_attribute): Increment the argument number.
5302 2014-01-31  Marek Polacek  <polacek@redhat.com>
5304         PR c/59963
5305         * c-common.c (add_atomic_size_parameter): Pass vNULL to
5306         build_function_call_vec.
5307         (resolve_overloaded_builtin): Likewise.
5308         * c-common.h (build_function_call_vec): Adjust declaration.
5310 2014-01-30  Marek Polacek  <polacek@redhat.com>
5312         PR c/59940
5313         * c-common.h (unsafe_conversion_p): Adjust declaration.
5314         (warnings_for_convert_and_check): Likewise.
5315         (convert_and_check): Likewise.
5316         * c-common.c (unsafe_conversion_p): Add location parameter.  Call
5317         expansion_point_location_if_in_system_header on it.
5318         (warnings_for_convert_and_check): Add location parameter.  Call
5319         expansion_point_location_if_in_system_header on it.  Use it.
5320         (convert_and_check): Add location parameter.  Use it.
5321         (conversion_warning): Likewise.
5322         (c_add_case_label): Adjust convert_and_check calls.
5323         (scalar_to_vector): Adjust unsafe_conversion_p calls.
5325 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5327         * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
5328         flag_cilkplus.
5329         * c-pragma.c (init_pragma): Likewise.
5330         * c.opt: Likewise.
5332 2014-01-23  Marek Polacek  <polacek@redhat.com>
5334         PR c/59846
5335         * c-common.c (shorten_compare): Add location_t parameter.
5336         * c-common.h (shorten_binary_op): Adjust declaration.
5338 2014-01-23  Marek Polacek  <polacek@redhat.com>
5340         PR c/58346
5341         * c-common.c (pointer_to_zero_sized_aggr_p): New function.
5342         * c-common.h: Declare it.
5344 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
5346         * c-ada-spec.h (dump_ada_specs): Revert prototype change.
5347         * c-ada-spec.c (dump_ads): Likewise.
5348         (cpp_check): Likewise.
5349         (dump_ada_specs): Likewise.
5351 2014-01-15  Laurent Alfonsi  <laurent.alfonsi@st.com>
5353         PR c++/49718
5354         * c-common.c (handle_no_instrument_function_attribute): Allow
5355         no_instrument_function attribute in class member
5356         definition/declaration.
5358 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
5360         PR c/58943
5361         * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
5362         build_modify_expr with non-NOP_EXPR opcode.  Handle return from it
5363         being COMPOUND_EXPR.
5364         (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
5365         operand a SAVE_EXPR and second MODIFY_EXPR.
5367 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
5369         PR target/58115
5370         * c-pch.c (c_common_write_pch): Call
5371         prepare_target_option_nodes_for_pch.
5373 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
5375         Update copyright years
5377 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
5379         * array-notation-common.c, c-cilkplus.c: Use the standard form for
5380         the copyright notice.
5382 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
5384         * c-ada-spec.c (print_constructor): New function.
5385         (print_destructor): Retrieve the origin of the destructor.
5386         (print_ada_declaration): Revamp handling of constructors/destructors.
5388 2013-12-23  Stuart Hastings  <stuart@apple.com>
5389             Bill Maddox  <maddox@google.com>
5390             Jason Merrill  <jason@redhat.com>
5392         * c.opt: Add -fdeclone-ctor-dtor.
5393         * c-opts.c (c_common_post_options): Default to on iff -Os.
5395 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5397         * c-common.c (c_common_attribute_table): Added "cilk simd function"
5398         attribute.
5399         * c-pragma.h (enum pragma_cilk_clause): Remove.
5400         (enum pragma_omp_clause):  Added the following fields:
5401         PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
5402         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
5403         PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
5404         PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
5405         PRAGMA_CILK_CLAUSE_UNIFORM.
5408 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5410         * cilk.c (cilk_outline): Made this function non-static.
5411         (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
5412         (create_cilk_wrapper): Added a new parameter: a function pointer.
5413         (c_install_body_w_frame_cleanup): Remove
5414         (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
5415         * c-common.h (cilk_outline): New prototype.
5416         (gimplify_cilk_spawn): Removed two parameters.
5417         (cilk_install_body_with_frame_cleanup): New prototype.
5418         * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
5419         CILK_SPAWN_STMT case.
5421 2013-12-11  Bernd Schmidt  <bernds@codesourcery.com>
5423         * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
5425         * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
5426         (int_array_type_node): Remove.
5427         * c-common.c (c_common_nodes_and_builtins): Don't build it.
5429 2013-12-05  Marek Polacek  <polacek@redhat.com>
5431         PR c/52023
5432         * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
5433         [ADJUST_FIELD_ALIGN].
5435 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
5437         PR c/52023
5438         * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
5439         and check field alignment if set.
5440         * c-common.h (c_sizeof_or_alignof_type): Update prototype.
5441         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
5443 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
5444             Marek Polacek  <polacek@redhat.com>
5446         * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
5447         sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
5449 2013-11-29   H.J. Lu  <hongjiu.lu@intel.com>
5451         PR c/59309
5452         * cilk.c (gimplify_cilk_spawn): Properly handle function without
5453         arguments.
5455 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
5457         PR c/59280
5458         * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
5459         goto invalid.  If it is error_mark_node, don't issue further
5460         diagnostics.
5462 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
5464         * c.opt (Wopenmp-simd): New.
5466 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
5468         * c-ubsan.h (ubsan_instrument_return): New prototype.
5469         * c-ubsan.c (ubsan_instrument_return): New function.
5471 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
5473         * c-common.c: Add required include files from gimple.h.
5474         * c-gimplify.c: Likewise
5475         * cilk.c: Likewise
5477 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
5479         * c-common.c (unsafe_conversion_p): Remove use of
5480         EXPR_LOC_OR_HERE macro.
5481         (conversion_warning): Likewise.
5482         (warnings_for_convert_and_check): Likewise.
5483         (warn_for_collisions_1): Likewise.
5484         (shorten_compare): Likewise, and remove use of in_system_header
5485         macro, using the location from the former.
5486         * c-lex.c (dump_one_header): Remove use of input_filename macro.
5487         (cb_def_pragma): Remove use of in_system_header macro.
5488         (lex_string): Likewise.
5489         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5491 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
5492             Mike Stump  <mikestump@comcast.net>
5493             Richard Sandiford  <rdsandiford@googlemail.com>
5495         * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
5496         instead of TREE_INT_CST_LOW, in cases where there is a protecting
5497         tree_fits_shwi_p or tree_fits_uhwi_p.
5498         (dump_generic_ada_node): Likewise.
5499         * c-format.c (check_format_arg): Likewise.
5500         * c-pretty-print.c (pp_c_integer_constant): Likewise.
5502 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
5504         * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
5506 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
5508         PR c/53001
5509         * c-common.c (unsafe_conversion_p): Make this function
5510         return an enumeration with more detail.
5511         (conversion_warning): Use the new return type of
5512         unsafe_conversion_p to separately warn either about conversions
5513         that lower floating point number precision or about the other
5514         kinds of conversions.
5515         * c-common.h (enum conversion_safety): New enumeration.
5516         (unsafe_conversion_p): switching return type to
5517         conversion_safety enumeration.
5518         * c.opt: Adding new warning -Wfloat-conversion and
5519         enabling it with -Wconversion.
5521 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
5523         * c-opts.c: Include plugin.h.
5524         (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
5526 2013-11-19  Marek Polacek  <polacek@redhat.com>
5528         * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
5529         call.
5530         (ubsan_instrument_shift): Likewise.
5531         (ubsan_instrument_vla): Likewise.
5533 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5535         * c-common.c (convert_vector_to_pointer_for_subscript): Remove
5536         cast to unsigned type.
5538 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5540         * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
5541         tree_low_cst.
5542         (complete_array_type): Update comment to refer to tree_to_[su]hwi
5543         rather than tree_low_cst.
5545 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5547         * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
5548         tree_to_uhwi throughout.
5550 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5552         * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
5553         tree_low_cst (..., 0) with tree_to_shwi throughout.
5555 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5557         * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
5558         host_integerp (..., 1) with tree_fits_uhwi_p throughout.
5560 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
5562         * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
5563         host_integerp (..., 0) with tree_fits_shwi_p throughout.
5565 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
5567         * c-cilkplus.c: New file.
5568         * c-common.c (readonly_error): Add location argument.
5569         * c-common.h (readonly_error): Same.
5570         (c_finish_cilk_clauses): Protoize.
5571         (c_check_cilk_loop): Same.
5572         c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
5573         Do not fail on error_mark_node.
5574         Abstract increment canonicalization to here...
5575         (c_omp_for_incr_canonicalize_ptr): New.
5576         c-pragma.c (init_pragma): Register "simd" pragma.
5577         c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
5578         (enum pragma_cilk_clause): New.
5580 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
5582         * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
5583         wchar_type and host_integerp checks.
5585 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
5587         * c-common.c: Likewise.
5588         * c-gimplify.c: Likewise.
5589         * cilk.c: Likewise.
5591 2013-11-14  Diego Novillo  <dnovillo@google.com>
5593         * c-common.c: Include fold-const.h.
5594         Include stor-layout.h.
5595         Include calls.h.
5596         Include stringpool.h.
5597         Include attribs.h.
5598         Include varasm.h.
5599         Include trans-mem.h.
5600         * c-cppbuiltin.c: Include stor-layout.h.
5601         Include stringpool.h.
5602         * c-format.c: Include stringpool.h.
5603         * c-lex.c: Include stringpool.h.
5604         Include stor-layout.h.
5605         * c-pragma.c: Include stringpool.h.
5606         Include attribs.h.
5607         Include varasm.h.
5608         Include gcc-symtab.h.
5609         * c-pretty-print.c: Include stor-layout.h.
5610         Include attribs.h.
5611         * cilk.c: Include stringpool.h.
5612         Include calls.h.
5614 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
5616         * c-common.h (enum rid): Add RID_AUTO_TYPE.
5617         * c-common.c (c_common_reswords): Add __auto_type.
5618         (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
5620 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
5622         * c-common.c: Include gimplify.h.
5623         * c-gimplify.c: Likewise.
5624         * cilk.c: Likewise.
5625         * c-omp.c: Include gimple-expr.h instead of gimple.h.
5626         * c-ubsan.c: Don't include gimple.h.
5628 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
5630         * c-common.c (c_common_reswords): Add _Thread_local.
5632 2013-11-09  Joseph Myers  <joseph@codesourcery.com>
5634         * c-common.c (atomic_size_supported_p): New function.
5635         (resolve_overloaded_atomic_exchange)
5636         (resolve_overloaded_atomic_compare_exchange)
5637         (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
5638         Use it instead of comparing size with a local list of sizes.
5640 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
5641             Joseph Myers  <joseph@codesourcery.com>
5643         * c-common.h (enum rid): Add RID_ATOMIC.
5644         * c-common.c (c_common_reswords): Add _Atomic.
5645         (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
5646         (keyword_is_type_qualifier): Accept RID_ATOMIC.
5647         * c-format.c (check_format_types): Check for extra _Atomic
5648         qualifiers in format argument.
5649         * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
5650         (pp_c_type_qualifier_list): Mention _Atomic in comment.
5652 2013-11-06  Tobias Burnus  <burnus@net-b.de>
5654         * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
5656 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
5658         * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
5659         standards modes.
5660         * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
5661         to mean lack of IEEE 754 support.
5663 2013-11-05  Tobias Burnus  <burnus@net-b.de>
5665         * c.opt (-Wdate-time): New option
5666         * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
5668 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
5670         * c-cppbuiltin.c (cpp_iec_559_value): Test
5671         flag_excess_precision_cmdline not flag_excess_precision.
5673 2013-11-05  Tobias Burnus  <burnus@net-b.de>
5675         * c.opt (fopenmp-simd): New option.
5676         * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
5677         (omp_pragmas): ... this new struct.
5678         (c_pp_lookup_pragma): Also walk omp_pragmas.
5679         (init_pragma): Init pragmas for -fopenmp-simd.
5681 2013-11-04  Marek Polacek  <polacek@redhat.com>
5683         PR c++/58979
5684         * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
5686 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
5688         * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
5689         New functions.
5690         (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
5692 2013-11-04  Eric Botcazou  <ebotcazou@adacore.com>
5694         * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
5695         (dump_ada_specs): Adjust prototype of second callback.
5696         * c-ada-spec.c (cpp_check): New global variable.
5697         (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
5698         (print_generic_ada_decl): Likewise.
5699         (has_static_fields): Change return type to bool and add guard.
5700         (has_nontrivial_methods): New predicate.
5701         (is_tagged_type): Change return type to bool.
5702         (separate_class_package): Call has_nontrivial_methods.
5703         (pp_ada_tree_identifier): Minor tweaks.
5704         (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
5705         (dump_ada_array_domains): Likewise.
5706         (dump_ada_array_type): Likewise.
5707         (dump_template_types): Remove cpp_check parameter and do not pass it to
5708         dump_generic_ada_node.
5709         (dump_ada_template): Likewise.
5710         (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
5711         recursively.
5712         (print_ada_methods): Change return type to integer.  Remove cpp_check
5713         parameter and do not pass it down.
5714         (dump_nested_types): Remove cpp_check parameter and do not pass it to
5715         dump_generic_ada_node.
5716         (print_ada_declaration): Likewise.  Test RECORD_OR_UNION_TYPE_P before
5717         accessing methods.
5718         (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
5719         down.  Use has_nontrivial_methods to recognize C++ classes.  Use return
5720         value of print_ada_methods.
5721         (dump_ads): Rename cpp_check parameter to check and adjust prototype.
5722         Set cpp_check to it before invoking dump_ada_nodes.
5723         (dump_ada_specs): Likewise.
5725 2013-11-03  Marek Polacek  <polacek@redhat.com>
5727         * c-ubsan.c: Don't include hash-table.h.
5728         (ubsan_instrument_vla): New function.
5729         * c-ubsan.h: Declare it.
5731 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
5733         Automated part of renaming of symtab_node_base to symtab_node.
5735         Patch autogenerated by rename_symtab.py from
5736         https://github.com/davidmalcolm/gcc-refactoring-scripts
5737         revision 58bb219cc090b2f4516a9297d868c245495ee622
5739         * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
5740         symtab_node_base to symtab_node.
5742 2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
5744         Implement C++14 digit separators.
5745         * c-lex.c (interpret_float): Remove digit separators from scratch string
5746         before building real literal.
5748 2013-10-30  Jakub Jelinek  <jakub@redhat.com>
5750         * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
5752 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5754         * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
5755         fields.
5756         (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
5757         enabled.
5758         * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
5759         (insert_cilk_frame): New prototype.
5760         (cilk_init_builtins): Likewise.
5761         (gimplify_cilk_spawn): Likewise.
5762         (c_cilk_install_body_w_frame_cleanup): Likewise.
5763         (cilk_detect_spawn_and_unwrap): Likewise.
5764         (cilk_set_spawn_marker): Likewise.
5765         (build_cilk_sync): Likewise.
5766         (build_cilk_spawn): Likewise.
5767         * cilk.c: New file.
5769 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
5771         Patch autogenerated by refactor_symtab.py from
5772         https://github.com/davidmalcolm/gcc-refactoring-scripts
5773         revision 58bb219cc090b2f4516a9297d868c245495ee622
5775         * c-gimplify.c (c_genericize): Update for conversion of symtab types
5776         to a true class hierarchy.
5777         * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
5779 2013-10-27  Richard Sandiford  <rdsandiford@googlemail.com>
5781         * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
5783 2013-10-26  Jeff Law  <law@redhat.com>
5785         * c-common.c (c_define_builtins): Remove mudflap support.
5786         * c.opt: Ignore and warn for mudflap options.
5788 2013-10-24  Tobias Burnus  <burnus@net-b.de>
5790         PR other/33426
5791         * c-pragma.c (init_pragma) Add #pragma ivdep handling.
5792         * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
5794 2013-10-23  Jason Merrill  <jason@redhat.com>
5796         * c-format.c (gcc_cxxdiag_char_table): Add %X.
5798 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
5800         * c-common.h (omp_clause_mask::operator !=): New method.
5801         * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
5802         instead of if (mask & something) tests everywhere.
5804         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
5805         201307 instead of 201107.
5806         * c-common.c (DEF_FUNCTION_TYPE_8): Define.
5807         (c_common_attribute_table): Add "omp declare target" and
5808         "omp declare simd" attributes.
5809         (handle_omp_declare_target_attribute,
5810         handle_omp_declare_simd_attribute): New functions.
5811         * c-omp.c: Include c-pragma.h.
5812         (c_finish_omp_taskgroup): New function.
5813         (c_finish_omp_atomic): Add swapped argument, if true,
5814         build the operation first with rhs, lhs arguments and use NOP_EXPR
5815         build_modify_expr.
5816         (c_finish_omp_for): Add code argument, pass it down to make_code.
5817         (c_omp_split_clauses): New function.
5818         (c_split_parallel_clauses): Removed.
5819         (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
5820         c_omp_declare_simd_clauses_to_decls): New functions.
5821         * c-common.h (omp_clause_mask): New type.
5822         (OMP_CLAUSE_MASK_1): Define.
5823         (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
5824         omp_clause_mask::operator |=, omp_clause_mask::operator ~,
5825         omp_clause_mask::operator |, omp_clause_mask::operator &,
5826         omp_clause_mask::operator <<, omp_clause_mask::operator >>,
5827         omp_clause_mask::operator ==): New methods.
5828         (enum c_omp_clause_split): New.
5829         (c_finish_omp_taskgroup): New prototype.
5830         (c_finish_omp_atomic): Add swapped argument.
5831         (c_finish_omp_for): Add code argument.
5832         (c_omp_split_clauses): New prototype.
5833         (c_split_parallel_clauses): Removed.
5834         (c_omp_declare_simd_clauses_to_numbers,
5835         c_omp_declare_simd_clauses_to_decls): New prototypes.
5836         * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
5837         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
5838         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
5839         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
5840         PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
5841         Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
5842         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
5843         PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
5844         PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
5845         PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
5846         PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
5847         PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
5848         PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
5849         PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
5850         PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
5851         PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
5852         PRAGMA_OMP_CLAUSE_UNIFORM.
5854 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
5856         PR tree-optimization/20318
5857         * c-common.c (handle_returns_nonnull_attribute): New function.
5858         (c_common_attribute_table): Add returns_nonnull.
5860 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
5862         PR c++/19476
5863         * c.opt (fcheck-new): Move to common.opt.
5865 2013-09-25  Marek Polacek  <polacek@redhat.com>
5866             Jakub Jelinek  <jakub@redhat.com>
5868         PR sanitizer/58413
5869         * c-ubsan.c (ubsan_instrument_shift): Don't instrument
5870         an expression if we can prove it is correct.
5871         (ubsan_instrument_division): Likewise.  Remove unnecessary
5872         check.
5874 2013-09-18  Marek Polacek  <polacek@redhat.com>
5876         PR sanitizer/58411
5877         * c-common.c (handle_no_sanitize_undefined_attribute): New function.
5878         Declare it.
5879         (struct attribute_spec c_common_att): Add no_sanitize_undefined.
5881 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
5883         PR target/48094
5884         * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
5885         fobjc-gc, freplace-objc-classes): Accept for LTO.
5887 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
5889         * c-target.def: New hook
5891 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
5893         PR c++/43452
5894         * c.opt (Wdelete-incomplete): Add.
5896 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
5898         * c-common.c (same_scalar_type_ignoring_signedness): Delete.
5899         (vector_types_compatible_elements_p): New function.
5900         * c-common.h: (same_scalar_type_ignoring_signedness): Delete
5901         declaration.
5902         (vector_types_compatible_elements_p): Declare.
5904 2013-09-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5906         * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
5907         a virtual member function.
5908         (pp_simple_type_specifier): Remove.
5909         (pp_c_type_specifier): Likewise.
5910         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
5911         Rename from pp_c_type_specifier.  Adjust.
5912         (c_pretty_printer::c_pretty_printer): Do not assign to
5913         simple_type_specifier.
5915 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5917         * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
5918         member function.
5919         (c_pretty_printer::storage_class_specifier): Likewise.
5920         (c_pretty_printer::initializer): Likewise.
5921         (pp_declaration): Remove.
5922         (pp_declaration_specifiers): Likewise.
5923         (pp_abstract_declarator): Likewise.
5924         (pp_declarator): Likewise.
5925         (pp_type_id): Likewise.
5926         (pp_statement): Likewise.
5927         (pp_constant): Likewise.
5928         (pp_id_expression): Likewise.
5929         (pp_primary_expression): Likewise.
5930         (pp_unary_expression): Likewise.
5931         (pp_multiplicative_expression): Likewise.
5932         (pp_conditional_expression): Likewise.
5933         (pp_assignment_expression): Likewise.
5934         (pp_expression): Likewise.
5935         (pp_c_type_id): Likewise.
5936         (pp_c_storage_class_specifier): Likewise.
5937         * c-pretty-print.c (pp_c_type_cast): Tidy.
5938         (pp_c_pointer): Likewise.
5939         (pp_c_type_specifier): Likewise.
5940         (pp_c_parameter_type_list): Likewise.
5941         (pp_c_function_definition): Likewise.
5942         (pp_c_init_declarator): Likewise.
5943         (pp_c_initializer_list): Likewise.
5944         (pp_c_constructor_elts): Likewise.
5945         (c_pretty_printer::direct_abstract_declarator): Likewise.
5946         (c_pretty_printer::declaration_specifiers): Likewise.
5947         (c_pretty_printer::primary_expression): Likewise.
5948         (c_pretty_printer::postfix_expression): Likewise.
5949         (c_pretty_printer::type_id): Rename from pp_c_type_id.
5950         (c_pretty_printer::storage_class_specifier): Rename from
5951         pp_c_storage_class_specifier.
5952         (c_pretty_printer::initializer): Rename from pp_c_initializer.
5953         (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
5954         storage_class_specifier, initializer, offset_list, flags.
5956 2013-08-30  Marek Polacek  <polacek@redhat.com>
5958         * c-ubsan.c: New file.
5959         * c-ubsan.h: New file.
5961 2013-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5963         * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
5964         member function.
5965         (c_pretty_printer::declaration_specifiers): Likewise.
5966         (c_pretty_printer::declarator): Likewise.
5967         (c_pretty_printer::abstract_declarator): Likewise.
5968         (c_pretty_printer::direct_abstract_declarator): Likewise.
5969         (c_pretty_printer::direct_declarator): Likewise.
5970         (c_pretty_printer::function_specifier): Likewise.
5971         (pp_declaration): Adjust.
5972         (pp_declaration_specifiers): Likewise.
5973         (pp_abstract_declarator): Likewise.
5974         (pp_direct_declarator): Likewise.
5975         (pp_function_specifier): Likewise.
5976         (pp_direct_abstract_declarator): Remove as unused.
5977         (pp_c_declaration): Remove.
5978         (pp_c_declaration_specifiers): Likewise.
5979         (pp_c_declarator): Likewise.
5980         (pp_c_direct_declarator): Likewise.
5981         (pp_c_function_specifier): Likewise.
5982         (pp_c_direct_abstract_declarator): Likewise.
5983         * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
5984         from pp_c_abstract_declarator.  Adjust.
5985         (c_pretty_printer::direct_abstract_declarator):  Rename from
5986         pp_c_direct_abstract_declarator.  Adjust.
5987         (c_pretty_printer::function_specifier): Rename from
5988         pp_c_function_specifier.  Adjust.
5989         (c_pretty_printer::declaration_specifiers): Rename from
5990         pp_c_declaration_specifiers.  Adjust.
5991         (c_pretty_printer::direct_declarator): Rename from
5992         pp_c_direct_declarator.  Adjust.
5993         (c_pretty_printer::declarator): Rename from pp_c_declarator.  Adjust.
5994         (c_pretty_printer::declaration): Rename from pp_c_declaration.  Adjust.
5995         (c_pretty_printer::c_pretty_printer): Do not assign to
5996         declaration, declaration_specifiers, declarator,
5997         direct_declarator, direct_abstract_declarator, function_specifier.
5999 2013-08-26  Gabriel Dos Reis  <gdre@integrable-solutions.net>
6001         * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
6002         virtual member function.
6003         (c_pretty_printer::multiplicative_expression): Likewise.
6004         (c_pretty_printer::conditional_expression): Likewise.
6005         (c_pretty_printer::assignment_expression): Likewise.
6006         (c_pretty_printer::expression): Likewise.
6007         (pp_unary_expression): Adjust.
6008         (pp_multiplicative_expression): Likewise.
6009         (pp_assignment_expression): Likewise.
6010         (pp_conditional_expression): Likewise.
6011         (pp_expression): Likewise.
6012         * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
6013         from pp_c_unary_expression.  Adjust.
6014         (c_pretty_printer::multiplicative_expression): Rename from
6015         pp_c_multiplicative_expression.  Adjust.
6016         (c_pretty_printer::conditional_expression): Rename from
6017         pp_c_conditional_expression.  Adjust.
6018         (c_pretty_printer::assignment_expression): Rename from
6019         pp_c_assignment_expression.  Adjust.
6020         (c_pretty_printer::expression): Rename from pp_c_expression.  Adjust.
6021         (c_pretty_printer::c_pretty_printer): Do not assign to
6022         unary_expression, multiplicative_expression,
6023         conditional_expression, expression.
6025 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6027         * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
6028         virtual member function.
6029         (pp_postfix_expression): Adjust.
6030         (pp_c_postfix_expression): Remove.
6031         * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
6032         from pp_c_postfix_expression.  Adjust.
6033         (c_pretty_printer::c_pretty_printer): Do not assign to
6034         postfix_expression.
6036 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6038         * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
6039         virtua member function.
6040         (pp_primary_expression): Adjust.
6041         (pp_c_primary_expression): Remove.
6042         * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
6043         from pp_c_primary_expression.  Adjust.
6044         (pp_c_initializer_list): Use pp_primary_expression.
6045         (c_pretty_printer::c_pretty_printer): Do not assign to
6046         primary_expression.
6048 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6050         * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
6051         * c-pretty-print.c (M_): Remove.
6052         (c_pretty_printer::translate_string): Define.
6053         (pp_c_type_specifier): Use it.
6054         (pp_c_primary_expression): Likewise.
6055         (pp_c_expression): Likewise.
6057 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6059         * c-pretty-print.h (c_pretty_printer::id_expression): Now a
6060         virtual function.
6061         (pp_c_id_expression): Remove.
6062         (pp_id_expression): Adjust.
6063         * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
6064         pp_c_id_expression.  Adjust.
6065         (pp_c_postfix_expression): Use pp_id_expression.
6066         (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
6068 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6070         * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
6071         member function.
6072         (pp_constant): Adjust.
6073         (pp_c_constant): Remove.
6074         * c-pretty-print.c (c_pretty_printer::constant): Rename from
6075         pp_c_constant.  Adjust.
6076         (pp_c_constant)
6077         (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
6078         (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
6080 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6082         * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
6083         (c_pretty_printer::c_pretty_printer): Declare.
6084         * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
6085         c_pretty_printer_init.  Adjust.
6086         (print_c_tree): Do not call c_pretty_printer_init.
6087         * c-ada-spec.c (dump_ads): Remove call to pp_construct.
6089 2013-08-09  Arnaud Charlet  <charlet@adacore.com>
6091         * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
6093 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
6095         PR c++/58080
6096         * c-common.c (pointer_int_sum): Add bool parameter.
6097         * c-common.h (pointer_int_sum): Adjust declaration.
6099 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6101         * c-pretty-print.c (print_c_tree): Simplify.  Use non-static local
6102         c_pretty_printer variable.
6104 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6106         * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
6107         (pp_base): Remove.
6108         (pp_c_base): Likewise.  Adjust users.
6109         * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
6110         (pp_c_whitespace): Do not call pp_base.
6111         (pp_c_left_paren): Likewise.
6112         (pp_c_right_paren): Likewise.
6113         (pp_c_left_brace): Likewise.
6114         (pp_c_right_brace): Likewise.
6115         (pp_c_left_bracket): Likewise.
6116         (pp_c_right_bracket): Likewise.
6117         (pp_c_dot): Likewise.
6118         (pp_c_ampersand): Likewise.
6119         (pp_c_star): Likewise.
6120         (pp_c_arrow): Likewise.
6121         (pp_c_semicolon): Likewise.
6122         (pp_c_complement): Likewise.
6123         (pp_c_exclamation): Likewise.
6124         (pp_c_direct_declarator): Likewise.
6125         (pp_c_ws_string): Likewise.
6126         (pp_c_identifier): Likewise.
6127         (pp_c_statement): Likewise.
6128         (print_c_tree): Likewise.
6130 2013-08-04  Ed Smith-Rowland  <3dw4rd@verizon.net>
6132         PR c++/58072
6133         * c-common.c (c_parse_error): Catch user-defined literal tokens and
6134         provide useful error strings.
6136 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6138         * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
6139         printer functions instead of pp_string or operators and punctuators.
6140         (dump_generic_ada_node): Likewise.
6141         * c-pretty-print.c (pp_c_type_specifier): Likewise.
6142         (pp_c_relational_expression): Likewise.
6143         (pp_c_logical_or_expression): Likewise.
6145 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6147         * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
6148         functions instead of pp_character.
6149         (pp_ada_tree_identifier): Likewise.
6150         (dump_ada_double_name): Likewise.
6151         (dump_ada_function_declaration): Likewise.
6152         (dump_ada_array_domains): Likewise.
6153         (dump_template_types): Likewise.
6154         (dump_generic_ada_node): Likewise.
6155         (print_ada_declaration): Likewise.
6156         (print_ada_struct_decl): Likewise.
6157         * c-pretty-print.c (pp_c_integer_constant): Likewise.
6159 2013-07-23  Tom Tromey  <tromey@redhat.com>
6161         * c-common.h (enum rid) <RID_GENERIC>: New constant.
6162         * c-common.c (c_common_reswords): Add _Generic.
6164 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
6166         * c-common.c: Fix typos.
6167         * c-common.h: Likewise.
6169 2013-07-13  Lubos Lunak  <l.lunak@suse.cz>
6171         PR c++/55203
6172         * c-common.c (c_common_attribute_table): Add warn_unused.
6173         (handle_warn_unused_attribute): New.
6175 2013-07-10  Jakub Jelinek  <jakub@redhat.com>
6177         * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
6178         for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
6180 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
6182         PR c++/57869
6183         * c.opt: Add Wconditionally-supported.
6185 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
6187         * array-notation-common.c (length_mismatch_in_expr_p): Delete
6188         unused variables l_length and l_node.
6190 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
6192         PR c/57821
6193         * c-common.c (complete_array_type): Delay folding first index
6194         like other indices.  When folding, check for index overflow.
6196 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
6198         PR c++/57509
6199         * c-common.h (c_build_vec_perm_expr): New complain argument.
6200         * c-common.c (c_build_vec_perm_expr): Likewise.
6201         Use save_expr also in C++.
6203 2013-06-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6205         * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
6206         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
6207         * c-opts.c (c_common_post_options): Likewise.
6209 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6211         * array-notation-common.c (length_mismatch_in_expr): Changed the
6212         parameter type's from a dynamic array to a vec_tree.  Also removed
6213         the size parameters.
6214         * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
6215         the change above.
6217 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6219         * c-common.h (struct cilkplus_an_parts): New structure.
6220         (struct cilkplus_an_loop_parts): Likewise.
6221         (cilkplus_extract_an_triplets): New prototype.
6222         (fix_sec_implicit_args): Likewise.
6223         * array-notation-common.c (cilkplus_extract_an_triplets): New function.
6224         (fix_sec_implicit_args): Likewise.
6226 2013-06-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6228         * array-notation-common.c (find_inv_trees): Removed an unwanted
6229         typecasting.
6230         * c-common.h (struct inv_list::additional_tcodes): Changed type from
6231         enum rid to enum tree_code.
6233 2013-06-11  Jan Hubicka  <jh@suse.cz>
6235         * c-common.c (handle_alias_ifunc_attribute): Do not set
6236         DECL_EXTERNAL for weakref variables.
6237         * c-pragma.c (handle_pragma_weak): Make sure aliases
6238         are not declared as external.
6240 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6242         * array-notation-common.c (length_mismatch_in_expr_p): Moved this
6243         function from c/c-array-notation.c.
6244         (is_cilkplus_reduce_builtin): Likewise.
6245         (find_rank): Likewise.
6246         (extract_array_notation_exprs): Likewise.
6247         (replace_array_notations): Likewise.
6248         (find_inv_trees): Likewise.
6249         (replace_inv_trees): Likewise.
6250         (contains_array_notation_expr): Likewise.
6251         (find_correct_array_notation_type): Likewise.
6252         * c-common.h (struct inv_list): Moved this struct from the file
6253         c/c-array-notation.c and added a new field called additional tcodes.
6254         (length_mismatch_in_expr_p): New prototype.
6255         (is_cilkplus_reduce_builtin): Likewise.
6256         (find_rank): Likewise.
6257         (extract_array_notation_exprs): Likewise.
6258         (replace_array_notation): Likewise.
6259         (find_inv_trees): Likewise.
6260         (replace_inv_trees): Likewise.
6261         (find_correct_array_notation_type): Likewise.
6263 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6265         * c-common.c (c_define_builtins): When cilkplus is enabled, the
6266         function array_notation_init_builtins is called.
6267         (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
6268         * c-common.def (ARRAY_NOTATION_REF): New tree.
6269         * c-common.h (build_array_notation_expr): New function declaration.
6270         (build_array_notation_ref): Likewise.
6271         (extract_sec_implicit_index_arg): New extern declaration.
6272         (is_sec_implicit_index_fn): Likewise.
6273         (ARRAY_NOTATION_CHECK): New define.
6274         (ARRAY_NOTATION_ARRAY): Likewise.
6275         (ARRAY_NOTATION_START): Likewise.
6276         (ARRAY_NOTATION_LENGTH): Likewise.
6277         (ARRAY_NOTATION_STRIDE): Likewise.
6278         * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
6279         ARRAY_NOTATION_REF.
6280         (pp_c_expression): Likewise.
6281         * c.opt (flag_enable_cilkplus): New flag.
6282         * array-notation-common.c: New file.
6284 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
6286         PR c++/57274
6287         * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
6289 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
6291         * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
6292         vectors.
6294 2013-05-07  Han Shen  <shenhan@google.com>
6296         * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
6298 2013-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6300         * c-common.c (check_user_alignment): Emit error for negative values.
6302 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
6304         * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
6306 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
6308         * c-cppbuiltin.c (c_cpp_builtins): Do not define
6309         __GXX_EXPERIMENTAL_CXX1Y__.
6311 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
6312             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6314         * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
6315         * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
6316         to simply use OPT_Wpointer_arith.
6317         (c_sizeof_or_alignof_type): Likewise.
6319 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
6321         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
6323 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
6325         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
6326         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
6327         specifiers.
6329 2013-04-07  Steven Bosscher  <steven@gcc.gnu.org>
6331         * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
6333 2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
6335         * c-common.c (pointer_int_sum): Remove dead code.
6337 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
6339         PR middle-end/56524
6340         * c-common.c (handle_optimize_attribute): Don't call
6341         save_optabs_if_changed.
6343 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
6345         PR middle-end/56461
6346         * c-pch.c (pch_init): Free target_validity at the end.
6348 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
6350         * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
6352 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
6353             Jakub Jelinek  <jakub@redhat.com>
6355         PR sanitizer/56454
6356         * c-common.c (handle_no_sanitize_address_attribute): New function.
6357         (c_common_attribute_table): Add no_sanitize_address attribute.
6358         (handle_no_address_safety_analysis_attribute): Add
6359         no_sanitize_address attribute, not no_address_safety_analysis
6360         attribute.
6362 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
6364         PR target/52555
6365         * c-common.c (handle_optimize_attribute): Call
6366         save_optabs_if_changed.
6368 2013-02-18  Jakub Jelinek  <jakub@redhat.com>
6369             Steven Bosscher  <steven@gcc.gnu.org>
6371         PR pch/54117
6372         * c-opts.c (c_common_post_options): If debug info is enabled
6373         and non-dwarf*, refuse to load PCH files and when writing PCH
6374         file warn.
6376 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
6378         PR middle-end/56167
6379         * c-common.c (handle_error_attribute): Fix condition.
6381 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
6383         PR c++/55742
6384         * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
6386 2013-01-18  Jason Merrill  <jason@redhat.com>
6388         PR target/54908
6389         * c.opt (-fextern-tls-init): New.
6390         * c-opts.c (c_common_post_options): Handle it.
6392 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
6394         PR c/48418
6395         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
6396         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
6397         and is either negative or bigger or equal to type precision
6398         of the first operand.
6400 2012-12-03  Marek Polacek  <polacek@redhat.com>
6402         PR c/55570
6403         * c-common.c (check_user_alignment): Swap order of tests,
6404         check TREE_CODE first.
6406 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
6408         PR c++/52654
6409         * c-common.h (overflow_type): New enum.
6410         (build_userdef_literal): Add overflow_type argument.
6411         (tree_userdef_literal): Add overflow_type.
6412         (USERDEF_LITERAL_OVERFLOW): New access macro.
6413         * c-common.c (build_userdef_literal): Add overflow_type
6414         argument.
6415         * c-lex.c (c_lex_with_flags): Add overflow_type to
6416         build_userdef_literal calls.
6417         (interpret_integer, interpret_float): Add overflow_type argument.
6419 2012-11-28  Richard Biener  <rguenther@suse.de>
6421         PR c/35634
6422         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
6423         here and use a type with proper overflow behavior for types that would
6424         need to be promoted for the arithmetic.
6426 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
6428         PR sanitizer/55435
6429         * c-common.c (handle_no_address_safety_analysis_attribute): New
6430         function.
6431         (c_common_attribute_table): Add no_address_safety_analysis.
6433 2012-11-16  Simon Baldwin  <simonb@google.com>
6435         * c.opt: Add f[no-]canonical-system-headers.
6436         * c-opts.c (c_common_handle_option): Handle
6437         OPT_fcanonical_system_headers.
6439 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
6441         PR c++/54413
6442         * c-opts.c (c_common_handle_option): Set new flags.
6443         * c.opt: Describe new flags.
6445 2012-11-09  Jason Merrill  <jason@redhat.com>
6447         * c.opt (Wabi-tag): New.
6449 2012-11-09  Andi Kleen  <ak@linux.intel.com>
6451         PR 55139
6452         * c-common.c (get_atomic_generic_size): Mask with
6453         MEMMODEL_MASK
6455 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6457         PR c/53063
6458         * c.opt (Wformat): Make it Alias Wformat=1.
6459         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
6460         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
6461         LangEnabledBy.
6462         (Wformat=): RejectNegative. Use LangEnabledBy.
6463         (Wnonnull): Use LangEnabledBy.
6464         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
6465         * c-format.c (set_Wformat): Delete.
6466         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
6467         (maybe_read_dollar_number):  Likewise.
6468         (avoid_dollar_number):  Likewise.
6469         (finish_dollar_format_checking):  Likewise.
6470         (check_format_info):  Likewise.
6471         (check_format_info_main):  Likewise.
6472         (check_format_types):  Likewise.
6473         (format_type_warning):  Likewise.
6474         * c-common.c (int):  Likewise.
6475         (check_function_sentinel):  Likewise.
6476         * c-common.h (warn_format,set_Wformat): Do not declare here.
6478 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6480         PR c/53063
6481         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
6482         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
6483         Use LangEnabledBy.
6484         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
6485         common.opt.
6486         (Wvariadic-macros): Init(1).
6487         * c-opts.c (c_common_handle_option): Do not handle them
6488         explicitly.
6489         (c_common_post_options): Likewise.
6490         (sanitize_cpp_opts): warn_unused_macros is now
6491         cpp_warn_unused_macros.
6492         (push_command_line_include): Likewise.
6493         * c-common.c (warn_unknown_pragmas): Do not define.
6494         * c-common.h (warn_unknown_pragmas): Do not declare.
6496 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6498         PR c/51294
6499         * c-common.c (conversion_warning): Handle conditional expressions.
6501 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
6503         PR c++/54930
6504         * c.opt (Wreturn_local_addr): Define new option.
6506 2012-10-25  Jason Merrill  <jason@redhat.com>
6508         * c.opt (Wvirtual-move-assign): New.
6510         * c.opt (Winherited-variadic-ctor): New.
6512 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
6514         PR c++/54427
6515         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
6517 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
6519         * c-common.h (pch_cpp_save_state): Declare.
6520         * c-target.def (c_preinclude): New hook.
6521         * c-opts.c (done_preinclude): New.
6522         (push_command_line_include): Handle default preincluded header.
6523         (cb_file_change): Call pch_cpp_save_state when calling
6524         push_command_line_include.
6525         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
6526         (pch_cpp_save_state): New.
6527         (pch_init): Call pch_cpp_save_state conditionally, instead of
6528         calling cpp_save_state.
6530 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6532         PR c/53063
6533         PR c/40989
6534         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
6535         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
6536         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
6537         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
6538         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
6539         * c-opts.c (c_common_handle_option): Remove explicit handling from
6540         here.
6541         (c_common_post_options): Likewise.
6543 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
6545         * c-ada-spec.c (LOCATION_COL): Delete.
6546         (compare_location): New function.
6547         (compare_node): Use it.
6548         (compare_comment): Likewise.
6550 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6552         PR c/53063
6553         PR c/40989
6554         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
6555         * c-opts.c (c_common_handle_option): Do not set them here. Add
6556         comment.
6557         (c_common_post_options): Likewise.
6559 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
6561         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
6562         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
6563         Remove POINTER_TYPE handling, add large unsigned handling and use
6564         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
6566 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
6568         PR c/54381
6569         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
6570         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
6571         locs and array of 3 trees instead of just single loc and single
6572         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
6573         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
6574         For *cmp* builtins that take two sources strings report warnings
6575         about first and second source, not about destination and source.
6577 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
6579         PR c++/53055
6580         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
6582 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
6584         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
6585         declaring something coming from another file.
6587 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
6589         PR ada/54845
6590         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
6592 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
6594         PR c++/54194
6595         * c-common.c (warn_about_parentheses): Add location_t parameter;
6596         use EXPR_LOC_OR_LOC.
6597         * c-common.h: Update declaration.
6599 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
6601         PR c++/54427
6602         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
6603         more operations. Make error messages optional.
6604         * c-common.h (enum stv_conv): Moved from c-typeck.c.
6605         (scalar_to_vector): Declare.
6607 2012-10-08  Jason Merrill  <jason@redhat.com>
6609         * c-common.c (c_common_reswords): Add thread_local.
6611 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
6613         PR c++/53528 C++11 attribute support
6614         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
6615         new functions.
6616         * c-common.c (check_cxx_fundamental_alignment_constraints): New
6617         static function.
6618         (handle_aligned_attribute): In choose strictest alignment
6619         among many.  Use new check_cxx_fundamental_alignment_constraints.
6620         (handle_transparent_union_attribute): In c++11 attribute syntax,
6621         don't look through typedefs.
6623 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
6625         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
6626         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
6627         out of dumpfile.h.
6629 2012-09-25  Dehao Chen  <dehao@google.com>
6631         PR middle-end/54645
6632         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6633         map when read in the pch.
6635 2012-09-18  Arnaud Charlet  <charlet@adacore.com>
6637         * c-ada-spec.c: Style fixes.
6639 2012-09-18  Thomas Quinot  <quinot@adacore.com>
6641         * c.opt (-fada-spec-parent): Define new command line switch.
6642         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
6643         is specified, generate binding spec as a child of the specified unit.
6645 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
6646             Manuel López-Ibáñez  <manu@gcc.gnu.org>
6648         PR c++/53210
6649         * c.opt ([Winit-self]): Enabled by -Wall in C++.
6651 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
6653         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
6654         for pointers, and add missing Convention C pragma.
6655         (print_ada_struct_decl): Add missing aliased keyword.
6656         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
6658 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
6660         * c-common.c (sizeof_pointer_memaccess_warning): New function.
6661         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
6662         * c-opts.c (c_common_handle_option): Enable it for -Wall.
6663         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
6664         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
6666 2012-08-10  Richard Guenther  <rguenther@suse.de>
6668         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
6670 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
6672         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
6673         instead of separate pp_newline and pp_flush.
6674         (print_c_tree): Likewise.
6676 2012-07-26  Richard Henderson  <rth@redhat.com>
6678         * c-common.c (handle_hot_attribute): Allow labels.
6679         (handle_cold_attribute): Likewise.
6681 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
6683         PR c++/28656
6684         * c-common.c (check_function_nonnull): Handle multiple nonnull
6685         attributes properly.
6687 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
6689         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
6690         * c-ada-spec.c: Likewise.
6691         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
6693 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
6695         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
6696         Remove code conditional on it.
6698 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
6700         * c-gimplify.c: Do not include basic-block.h.
6701         * c-common.c: Do not include linfuncs.h.
6703 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
6705         * c-common.h: Include tree.h.
6707 2012-07-02  Jason Merrill  <jason@redhat.com>
6709         PR c++/53524
6710         * c-common.c (get_priority): Call default_conversion.
6712 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
6714         * c-pch.c (c_common_write_pch): Remove unused variables.
6716 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
6718         * cppspec.c: Moved from gcc/ to here.
6720 2012-06-27  Kai Tietz  <ktietz@redhat.com>
6722         PR preprocessor/37215
6723         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
6725 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
6727         * c-common.h (c_common_print_pch_checksum): Remove.
6728         * c-pch.c: Do not include output.h.
6729         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
6730         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
6731         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
6732         (struct c_pch_header): Remove.
6733         (get_ident): Update gpch version.
6734         (pch_init): Do not print executable_checksum to asm_out_file.
6735         Do not fail if there is no asm_out_file to read back from.  Set
6736         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
6737         (c_common_write_pch): Verify that nothing was written to asm_out_file
6738         since pch_init was called.  Do not write a c_pch_header, and do not
6739         copy from asm_out_file to the PCH.
6740         (c_common_read_pch): Do not read a c_pch_header, and do not restore
6741         the content of asm_out_file from the PCH.
6742         (c_common_print_pch_checksum): Remove.
6743         * c-opts.c (c_common_init): Print out executable_checksum directly.
6745 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
6747         * c-target.def (objc_declare_unresolved_class_reference,
6748         objc_declare_class_definition): Add new hooks.
6750 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
6752         * c-lex.c: Do not include output.h.
6753         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
6754         Remove uses of ASM_OUTPUT_IDENT.
6756 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
6758         PR c++/51033
6759         * c-common.h (c_build_vec_perm_expr): Move decl here.
6760         * c-common.c (c_build_vec_perm_expr): Move definition
6761         here.
6763 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
6765         * c.opt (fconserve-space): Turn into a no-op.
6767 2012-06-04  Sterling Augustine  <saugustine@google.com>
6769         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
6770         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
6771         both the start and end of the function.
6773 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
6775         * c-common.c: Do not include output.h.
6776         * c-pragma.c: Likewise.
6778 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
6780         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
6781         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
6782         (lang_decl_name): Handle namespace decls.
6784 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
6786         * c-ada-spec.c: Do not include output.h.
6787         * c-semantics.c: Likewise.
6789 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
6791         * c-common.c: Fix typo.
6793 2012-05-29  Michael Matz  <matz@suse.de>
6795         * c-common.h (c_expand_decl): Remove prototype.
6797 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6799         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
6800         * c-opts.c (c_common_handle_option): Remove code handling
6801         warn_missing_braces.
6803 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
6805         PR c++/25137
6806         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
6807         -Wmissing_braces.
6809 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
6811         PR c++/53322
6812         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
6814 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6816         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
6817         * c-opts.c (c_common_handle_option): Do not handle explicitly
6818         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
6820 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
6822         PR preprocessor/7263
6823         * c-lex.c (c_lex_with_flags):  Pass a virtual location to the call
6824         to cpp_classify_number.  For diagnostics, use the precise location
6825         instead of the global input_location.
6827 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
6829         PR c++/11856
6830         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
6832 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
6834         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
6836 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6838         PR 53063
6839         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
6840         Wreorder): Use LangEnabledBy.
6841         * c-opts.c (c_common_handle_option): Do not enable them
6842         explicitly. Call lang-specific generated functions.
6843         (c_common_post_options): Do not set them here.
6845 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6847         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
6848         Wmissing-field-initializers,Wmissing-parameter-type,
6849         Wold-style-declaration,Woverride-init): Use EnabledBy.
6850         * c-opts.c (c_common_post_options): Do not set here explicitly.
6852 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6854         PR 53063
6855         * c-opts.c (c_common_handle_option): Use handle_generated_option
6856         to enable sub-options.
6858 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
6860         PR c++/53158
6861         * c-common.c (warnings_for_convert_and_check): Use warning_at.
6863 2012-05-10  Richard Guenther  <rguenther@suse.de>
6865         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
6866         adjust commentary about TYPE_IS_SIZETYPE types.
6868 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6870         PR c++/53261
6871         * c-common.c (warn_logical_operator): Check that argument of
6872         integer_zerop is not NULL.
6874 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6876         PR c/43772
6877         * c-common.c (warn_logical_operator): Do not warn if either side
6878         is already true or false.
6880 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6882         PR c/51712
6883         * c-common.c (expr_original_type): New.
6884         (shorten_compare): Do not warn for enumeration types.
6886 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6888         * c.opt (fpermissive): Add Var(flag_permissive).
6890 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
6892         PR c++/51033
6893         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
6894         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
6896 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
6898         Add -Wvarargs option
6899         * c.opt (Wvarargs):  Define new option.
6901 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6903         * c-common.c (check_function_arguments): Replace
6904         Wmissing-format-attribute with Wsuggest-attribute=format.
6906 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6908         * c.opt (Wsuggest-attribute=format): New. Alias of
6909         Wmissing-format-attribute.
6910         * c-format.c (decode_format_type): Replace
6911         Wmissing-format-attribute with Wsuggest-attribute=format.
6912         (check_function_format): Likewise.
6914 2012-04-27  Ollie Wild  <aaw@google.com>
6916         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
6917         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
6918         * c.opt: Add Wliteral-suffix.
6920 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6922         PR c/44774
6923         * c.opt (Wpedantic): New.
6924         (pedantic): Alias Wpedantic.
6925         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
6926         (c_common_post_options): Likewise.
6927         (sanitize_cpp_opts): Likewise.
6928         * c-lex.c (interpret_float): Likewise.
6929         * c-format.c (check_format_types): Likewise.
6930         * c-common.c (pointer_int_sum): Likewise.
6931         (c_sizeof_or_alignof_type): Likewise.
6932         (c_add_case_label): Likewise.
6933         (c_do_switch_warnings): Likewise.
6934         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
6936 2012-04-15  Jason Merrill  <jason@redhat.com>
6938         PR c++/52818
6939         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
6940         (C_STD_NAME): Distinguish between C++98 and C++11.
6942 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6944         PR target/52624
6945         * c-common.h (uint16_type_node): Rename into...
6946         (c_uint16_type_node): ...this.
6947         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
6948         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
6950 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6952         * c-common.c (warn_if_unused_value): Move definition to here.
6953         * c-common.h (warn_if_unused_value): Move declaration to here.
6955 2012-03-23  William Bader  <williambader@hotmail.com>
6957         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
6959 2012-03-20  Jason Merrill  <jason@redhat.com>
6961         * c-common.h (enum cxx_dialect): Add cxx1y.
6962         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
6963         test.
6964         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
6965         * c-opts.c (c_common_post_options): Likewise.
6966         (set_std_cxx1y): New.
6967         (c_common_handle_option): Call it.
6968         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
6970 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
6972         PR c++/14710
6973         * c.opt ([Wuseless-cast]): Add.
6975 2012-03-16  Richard Guenther  <rguenther@suse.de>
6977         * c-pretty-print.c (pp_c_initializer_list): Adjust.
6979 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6981         PR c++/44783
6982         * c.opt (ftemplate-backtrace-limit) Add.
6984 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6986         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
6987         handling.
6988         * c-pragma.c (handle_pragma_extern_prefix): Remove.
6989         (init_pragma): Don't register extern_prefix.
6991 2012-03-12  Richard Guenther  <rguenther@suse.de>
6993         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
6994         (builtin_type_for_size): Likewise.
6996 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
6998         PR c++/52215
6999         * c-common.c (sync_resolve_params): Don't decide whether to convert
7000         or not based on TYPE_SIZE comparison, convert whenever arg_type
7001         is unsigned INTEGER_TYPE.
7003 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
7005         PR c/52118
7006         * c.opt ([Wunused-local-typedefs]): Fix description.
7008 2012-01-24  Mike Stump  <mikestump@comcast.net>
7010         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
7011         exactly.
7013 2012-01-18  Richard Guenther  <rguenther@suse.de>
7015         * c-opts.c (c_common_post_options): Reset LTO flags if
7016         we are about to generate a PCH.
7018 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
7020         PR c++/51777
7021         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
7022         use pp_unsigned_wide_integer.
7024 2012-01-10  Richard Guenther  <rguenther@suse.de>
7026         PR middle-end/51806
7027         * c-opts.c (c_common_handle_option): Move -Werror handling
7028         to language independent code.
7030 2012-01-05  Richard Guenther  <rguenther@suse.de>
7032         PR middle-end/51764
7033         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
7034         from common.opt.
7036 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
7038         PR c++/51316
7039         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
7040         of array types with an unknown bound.
7042 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
7044         * c-common.c (flag_isoc99): Update comment to refer to C11.
7045         (flag_isoc1x): Change to flag_isoc11.
7046         * c-common.h (flag_isoc99): Update comment to refer to C11.
7047         (flag_isoc1x): Change to flag_isoc11.
7048         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
7049         C11.
7050         * c-opts.c (set_std_c1x): Change to set_std_c11.
7051         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
7052         Call set_std_c11.
7053         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
7054         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
7055         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
7056         standard.
7057         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
7058         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
7059         (std=gnu1x): Make alias of std=gnu11.
7061 2011-12-19  Jason Merrill  <jason@redhat.com>
7063         PR c++/51228
7064         * c-common.c (handle_transparent_union_attribute): Check the first
7065         field if the type is complete.
7067 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
7069         PR libstdc++/51365
7070         * c-common.c (RID_IS_FINAL): Add.
7071         * c-common.h (RID_IS_FINAL): Add.
7073 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
7075         * c.opt (fgnu-runtime): Provide full description.
7076         (fnext-runtime): Likewise.
7077         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
7079 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
7081         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
7082         predefines in one place.  Add LOCK_FREE predefines.
7083         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
7084         new func.
7086 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
7088         PR c/51256
7089         * c-common.c (get_atomic_generic_size): Check for various error
7090         conditions
7091         (resolve_overloaded_atomic_exchange,
7092         resolve_overloaded_atomic_compare_exchange,
7093         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
7094         error_mark_node for error conditions.
7096 2011-11-08  Richard Guenther  <rguenther@suse.de>
7098         PR middle-end/51010
7099         c-family/
7101 2011-11-07  Richard Henderson  <rth@redhat.com>
7102             Aldy Hernandez  <aldyh@redhat.com>
7103             Torvald Riegel  <triegel@redhat.com>
7105         Merged from transactional-memory.
7107         * c-common.c (handle_tm_wrap_attribute,
7108         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
7109         (struct c_common_reswords): Added __transaction* keywords.
7110         (struct c_common_attribute_table): Added transaction* and tm_regparm
7111         attributes.
7112         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
7113         masks.
7114         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
7115         find_tm_attribute): Declare.
7117 2011-11-07  Jason Merrill  <jason@redhat.com>
7119         PR c++/35688
7120         * c-common.c, c-common.h: Revert yesterday's changes.
7122 2011-11-06  Jason Merrill  <jason@redhat.com>
7124         PR c++/35688
7125         * c-common.c (decl_has_visibility_attr): Split out from...
7126         (c_determine_visibility): ...here.
7127         * c-common.h: Declare it.
7129 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
7131         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
7132         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
7133         type.
7134         (check_user_alignment): New.  Split out of
7135         handle_aligned_attribute.  Disallow integer constants with
7136         noninteger types.  Conditionally allow zero.
7137         (handle_aligned_attribute): Use check_user_alignment.
7138         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
7140 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
7141             Richard Henderson  <rth@redhat.com>
7143         Merged from cxx-mem-model.
7145         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
7146         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
7147         parameters that are the same type size.
7148         (get_atomic_generic_size): New.  Find size of generic
7149         atomic function parameters and do typechecking.
7150         (add_atomic_size_parameter): New.  Insert size into parameter list.
7151         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
7152         either __atomic_exchange_n or external library call.
7153         (resolve_overloaded_atomic_compare_exchange): Restructure
7154         __atomic_compare_exchange to either _n variant or external library call.
7155         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
7156         __atomic_load_n or an external library call.
7157         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
7158         __atomic_store_n or an external library call.
7159         (resolve_overloaded_builtin): Handle new __atomic builtins.
7161 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
7163         PR c++/50608
7164         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
7165         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
7166         <INDIRECT_REF>: Return the argument.
7167         <ARRAY_REF>: Remove special code for negative offset.
7168         Call fold_build_pointer_plus instead of size_binop.
7169         (fold_offsetof): Remove STOP_REF argument and adjust.
7170         * c-common.h (fold_offsetof_1): Declare.
7171         (fold_offsetof): Remove STOP_REF argument.
7173 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
7175         PR c++/50810
7176         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7177         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7178         Wnarrowing for C++0x and C++98.
7179         * c.opt ([Wnarrowing]): Update.
7181 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
7183         PR c++/44277
7184         * c.opt: Add Wzero-as-null-pointer-constant.
7186 2011-10-31  Jason Merrill  <jason@redhat.com>
7188         * c.opt (-fdeduce-init-list): Off by default.
7190         PR c++/50920
7191         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
7192         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
7193         and -Wc++11-compat.
7194         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
7196 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
7198         PR c++/30066
7199         * c.opt (fvisibility-inlines-hidden): Description change.
7201 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
7203         Implement C++11 user-defined literals.
7204         * c-common.c (build_userdef_literal): New.
7205         * c-common.def: New tree code.
7206         * c-common.h (tree_userdef_literal): New tree struct and accessors.
7207         * c-lex.c (interpret_float): Add suffix parm.
7208         (c_lex_with_flags): Build literal tokens.
7210 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
7212         PR c++/50841
7213         Revert:
7214         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
7216         PR c++/50810
7217         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7218         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7219         Wnarrowing for C++0x and C++98.
7220         * c.opt ([Wnarrowing]): Update.
7222 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
7224         PR c++/50810
7225         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7226         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7227         Wnarrowing for C++0x and C++98.
7228         * c.opt ([Wnarrowing]): Update.
7230 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
7232         PR c++/45385
7233         * c-common.c (conversion_warning): Remove code looking for
7234         artificial operands.
7236 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
7238         PR bootstrap/50760
7239         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
7240         !NO_IMPLICIT_EXTERN_C.
7242 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
7244         * c-common.c (c_common_reswords): Add __bases,
7245         __direct_bases.
7246         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
7248 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
7250         PR c++/50757
7251         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
7253 2011-10-15  Tom Tromey  <tromey@redhat.com>
7254             Dodji Seketeli  <dodji@redhat.com>
7256         * c.opt (fdebug-cpp): New option.
7257         * c-opts.c (c_common_handle_option): Handle the option.
7258         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
7259         output stream in parameter. Factorized from ...
7260         (maybe_print_line): ... this. Dump location debug information when
7261         -fdebug-cpp is in effect.
7262         (print_line_1): New static function. Takes an output stream in
7263         parameter. Factorized from ...
7264         (print_line): ... here. Dump location information when -fdebug-cpp
7265         is in effect.
7266         (scan_translation_unit): Dump location information when
7267         -fdebug-cpp is in effect.
7269 2011-10-15  Tom Tromey  <tromey@redhat.com>
7270             Dodji Seketeli  <dodji@redhat.com>
7272         * c.opt (ftrack-macro-expansion): New option. Handle it with and
7273         without argument.
7274         * c-opts.c (c_common_handle_option)<case
7275         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
7276         cases. Handle -ftrack-macro-expansion with and without argument.
7278 2011-10-15  Tom Tromey  <tromey@redhat.com>
7279             Dodji Seketeli  <dodji@redhat.com>
7281         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
7282         (print_line, cb_define, do_line_change): Adjust to avoid touching
7283         the internals of struct line_map.  Use the public API instead.
7284         * c-pch.c (c_common_read_pch): Likewise.
7285         * c-lex.c (fe_file_change): Likewise.
7287 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
7289         PR c++/17212
7290         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
7292 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
7294         PR c++/33067
7295         * c-pretty-print.c (pp_c_floating_constant): Output
7296         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
7298 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
7300         * c-common.c (def_builtin_1): Delete old interface with two
7301         parallel arrays to hold standard builtin declarations, and replace
7302         it with a function based interface that can support creating
7303         builtins on the fly in the future.  Change all uses, and poison
7304         the old names.  Make sure 0 is not a legitimate builtin index.
7305         * c-omp.c (c_finish_omp_barrier): Ditto.
7306         (c_finish_omp_taskwait): Ditto.
7307         (c_finish_omp_flush): Ditto.
7309 2011-10-11  Tristan Gingold  <gingold@adacore.com>
7311         * c.opt: (fallow-parameterless-variadic-functions): New.
7313 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
7315         PR c++/33255 - Support -Wunused-local-typedefs warning
7316         * c-common.h (struct c_language_function::local_typedefs): New
7317         field.
7318         (record_locally_defined_typedef, maybe_record_typedef_use)
7319         (maybe_warn_unused_local_typedefs): Declare new functions.
7320         * c-common.c (record_locally_defined_typedef)
7321         (maybe_record_typedef_use)
7322         (maybe_warn_unused_local_typedefs): Define new functions.
7323         * c.opt: Declare new -Wunused-local-typedefs flag.
7325 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
7327         PR middle-end/50266
7328         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
7329         computations.
7331 2011-09-05  Richard Guenther  <rguenther@suse.de>
7333         * c-common.c (complete_array_type): Use ssize_int (-1) instead
7334         of integer_minus_one_node for empty array upper bounds.
7336 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
7338         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
7339         it's the first time it's being called on this main TU.
7341 2011-08-24  Richard Guenther  <rguenther@suse.de>
7343         PR c/49396
7344         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
7346 2011-08-22  Gabriel Charette  <gchare@google.com>
7348         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
7349         defined in cpp_init_builtins and c_cpp_builtins.
7351 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
7353         * c-common.c (c_common_reswords): Add __builtin_complex.
7354         * c-common.h (RID_BUILTIN_COMPLEX): New.
7356 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
7358         * c-common.c (c_common_reswords): Add _Noreturn.
7359         (keyword_is_function_specifier): Handle RID_NORETURN.
7360         * c-common.h (RID_NORETURN): New.
7362 2011-08-10  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
7364         * c-common.c (unsafe_conversion_p): New function. Check if it is
7365         unsafe to convert an expression to the type.
7366         (conversion_warning): Adjust, use unsafe_conversion_p.
7367         * c-common.h (unsafe_conversion_p): New function declaration.
7369 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
7371         * c-common.h (c_finish_omp_atomic): Adjust prototype.
7372         (c_finish_omp_taskyield): New prototype.
7373         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
7374         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
7375         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
7376         or RHS1 have side-effects, evaluate those too in the right spot,
7377         if it is a decl and LHS is also a decl, error out if they
7378         aren't the same.
7379         (c_finish_omp_taskyield): New function.
7380         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
7381         * c-pragma.c (omp_pragmas): Add taskyield.
7382         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
7383         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
7384         PRAGMA_OMP_CLAUSE_MERGEABLE.
7386 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
7388         * c-common.h (set_underlying_type): Remove parm name from
7389         declaration.
7391 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
7393         * c-pretty-print.h: Search c-common.h in c-family.
7395 2011-07-22  Jason Merrill  <jason@redhat.com>
7397         PR c++/49793
7398         * c.opt (Wnarrowing): New.
7400         PR c++/30112
7401         * c-common.h: Declare c_linkage_bindings.
7402         * c-pragma.c (handle_pragma_redefine_extname): Use it.
7404         PR c++/49813
7405         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
7406         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
7407         as flag_isoc99 for 'restrict'.
7408         (pp_c_specifier_qualifier_list): Likewise for _Complex.
7410 2011-07-21  Ian Lance Taylor  <iant@google.com>
7412         PR middle-end/49705
7413         * c-common.c (c_disable_warnings): New static function.
7414         (c_enable_warnings): New static function.
7415         (c_fully_fold_internal): Change local unused_p to bool.  Call
7416         c_disable_warnings and c_enable_warnings rather than change
7417         c_inhibit_evaluation_warnings.
7419 2011-07-20  Jason Merrill  <jason@redhat.com>
7421         PR c++/6709 (DR 743)
7422         PR c++/42603 (DR 950)
7423         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
7424         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
7425         (CPP_DECLTYPE): New.
7426         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
7428 2011-07-19  Richard Guenther  <rguenther@suse.de>
7430         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
7431         * c-omp.c (c_finish_omp_for): Likewise.
7433 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
7435         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
7436         body on the next line.
7438 2011-07-08  Jason Merrill  <jason@redhat.com>
7440         PR c++/45437
7441         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
7443         PR c++/49673
7444         * c-common.c (c_apply_type_quals_to_decl): Don't check
7445         TYPE_NEEDS_CONSTRUCTING.
7447 2011-07-06  Richard Guenther  <rguenther@suse.de>
7449         * c-common.c (c_common_nodes_and_builtins):
7450         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
7452 2011-07-05  Richard Guenther  <rguenther@suse.de>
7454         * c-common.c (c_common_nodes_and_builtins): Build all common
7455         tree nodes first.
7457 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
7459         * c-common.h (c_tree_chain_next): New static inline function.
7461         * c-common.c (check_builtin_function_arguments): Handle
7462         BUILT_IN_ASSUME_ALIGNED.
7464 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
7466         * c-common.c: Add sync_ or SYNC__ to builtin names.
7467         * c-omp.c: Add sync_ or SYNC__ to builtin names.
7469 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
7471         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
7472         handler.
7473         (gen_pragma_handler): New union.
7474         (internal_pragma_handler): New type.
7475         (c_register_pragma_with_data)
7476         (c_register_pragma_with_expansion_and_data): New functions.
7478         * c-pragma.c (registered_pragmas, c_register_pragma_1)
7479         (c_register_pragma, c_register_pragma_with_expansion)
7480         (c_invoke_pragma_handler): Changed to work with
7481         internal_pragma_handler.
7482         (c_register_pragma_with_data)
7483         (c_register_pragma_with_expansion_and_data): New functions.
7485 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
7487         * c-common.c: Include common/common-target.h.
7488         (handle_section_attribute): Use
7489         targetm_common.have_named_sections.
7490         * c-cppbuiltin.c: Include common/common-target.h.
7491         (c_cpp_builtins): Use targetm_common.except_unwind_info.
7493 2011-06-10  Richard Guenther  <rguenther@suse.de>
7495         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
7496         to print a IDENTIFIER_NODE.
7498 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7499             Joseph Myers  <joseph@codesourcery.com>
7501         * c.opt (fbuilding-libgcc): New option.
7502         * c-cppbuiltin.c (c_cpp_builtins): Define
7503         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
7505 2011-06-07  Jason Merrill  <jason@redhat.com>
7507         * c-common.c (max_tinst_depth): Lower default to 900.
7509         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
7511 2011-06-07  Richard Guenther  <rguenther@suse.de>
7513         * c-common.c (c_common_nodes_and_builtins): Do not set
7514         size_type_node or call set_sizetype.
7516 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
7518         PR debug/49130
7519         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
7520         type when using pointer comparison to compare types.
7522 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
7524         * c.opt: Add -Wdelete-non-virtual-dtor.
7525         * c-opts.c (c_common_handle_option): Include it in -Wall.
7527 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
7529         PR bootstrap/49190
7531         Revert:
7532         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
7534         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
7535         not tree_common.
7537 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
7539         PR c++/49165
7540         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
7541         C++ don't call c_common_truthvalue_conversion on void type arms.
7543 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
7545         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
7546         (stmt_list_stack): Define.
7547         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
7548         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
7550 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
7552         * c-common.c (warning_candidate_p): Check for BLOCKs.
7554 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
7556         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
7557         not tree_common.
7559 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
7561         * c-common.c (def_fn_type): Remove extra va_end.
7563 2011-05-23  Jason Merrill  <jason@redhat.com>
7565         PR c++/48106
7566         * c-common.c (c_common_get_narrower): New.
7567         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
7569 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
7571         * c-common.h (check_function_arguments): Tweak prototype of
7572         check_function_arguments.
7573         * c-common.c (check_function_arguments): Likewise.  Adjust
7574         calls to check_function_nonnull, check_function_format, and
7575         check_function_sentinel.
7576         (check_function_sentinel): Take a FUNCTION_TYPE rather than
7577         separate attributes and typelist arguments.  Use
7578         FOREACH_FUNCTION_ARGS to iterate over argument types.
7580 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
7582         * c-common.c (c_common_reswords): Reorder.
7583         * c-common.h (rid): Likewise.
7585 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
7587         * c-common.c (def_fn_type): Don't call build_function_type, call
7588         build_function_type_array or build_varargs_function_type_array
7589         instead.
7590         (c_common_nodes_and_builtins): Likewise.
7592 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
7594         * c-common.c (c_add_case_label): Omit the loc argument to
7595         build_case_label.
7596         * c-common.h (build_case_label): Remove.
7597         * c-semantics.c (build_case_label): Remove.
7599 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
7601         * c-objc.h (objc_start_method_definition): Update prototype.
7602         * stub-objc.c (objc_start_method_definition): Add extra parameter.
7604 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
7606         * c-common.c (check_main_parameter_types): Reindent.  Don't use
7607         TYPE_ARG_TYPES directly.
7608         (handle_nonnull_attribute): Likewise.
7609         (sync_resolve_params): Likewise.
7610         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
7611         to check_format_string.
7612         (handle_format_attribute): Likewise.
7613         (check_format_string): Take a function type to examine instead of
7614         a type list.  Use a function_arg_iterator to step through argument
7615         types.
7617 2011-05-04  Richard Guenther  <rguenther@suse.de>
7619         * c-common.c (fix_string_type): Use size_int for index type bounds.
7620         (start_fname_decls): Do not pass NULL to build_int_cst.
7621         (c_init_attributes): Likewise.
7622         * c-lex.c (c_lex_with_flags): Likewise.
7624 2011-04-27  Jason Merrill  <jason@redhat.com>
7626         * c-common.c (make_tree_vector_from_list): New.
7627         * c-common.h: Declare it.
7629 2011-04-26  Richard Guenther  <rguenther@suse.de>
7631         PR preprocessor/48248
7632         * c-ppoutput.c (maybe_print_line): Always optimize newlines
7633         for output size with -P.
7635 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
7637         * c-common.c (struct c_common_resword): Add __underlying_type.
7638         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
7640 2011-04-20  Jim Meyering  <meyering@redhat.com>
7642         * c-format.c (init_dollar_format_checking): Remove useless
7643         if-before-free.
7645 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
7647         * c-objc.h (objc_get_interface_ivars): Removed.
7648         (objc_detect_field_duplicates): New.
7649         * stub-objc.c: Likewise.
7651 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
7653         * stub-objc.c (objc_declare_protocols): Renamed to
7654         objc_declare_protocol.
7655         * c-objc.h: Likewise.
7657 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
7659         * stub-objc.c (objc_declare_class): Updated argument name.
7661 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
7663         * c-common.h (c_common_init_ts): Declare.
7664         * c-common.c (c_common_init_ts): Define.
7666 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
7668         * c-objc.h (objc_build_message_expr): Updated prototype.
7669         * stub-objc.c (objc_build_message_expr): Likewise.
7671 2011-04-12  Martin Jambor  <mjambor@suse.cz>
7673         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
7674         of cgraph_node.
7676 2011-04-11  Richard Guenther  <rguenther@suse.de>
7678         * c-common.c (complete_array_type): Build a range type of
7679         proper type.
7681 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
7683         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
7684         (handle_type_generic_attribute): Likewise.
7686 2011-04-07  Jason Merrill  <jason@redhat.com>
7688         PR c++/48450
7689         * c-common.c (c_common_truthvalue_conversion): Don't ignore
7690         conversion from C++0x scoped enum.
7692 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
7694         * c-target-def.h: New file.
7695         * c-target.def: New file.
7696         * c-target.h: New file.
7697         * c-common.c (targetcm): Don't define here.
7698         * c-common.h (default_handle_c_option): Declare.
7699         * c-format.c: Include c-target.h instead of target.h.
7700         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
7701         include tm.h.
7702         (default_handle_c_option): Move from targhooks.c.
7704 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
7706         PR preprocessor/48248
7707         * c-ppoutput.c (print): Add src_file field.
7708         (init_pp_output): Initialize it.
7709         (maybe_print_line): Don't optimize by adding up to 8 newlines
7710         if map->to_file and print.src_file are different file.
7711         (print_line): Update print.src_file.
7713 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7715         * c-ada-spec.c (compare_comment): Use filename_cmp
7716         instead of strcmp for filename.
7718 2011-03-25  Jeff Law  <law@redhat.com>
7720         * c-common.c (def_fn_type): Add missing va_end.
7722 2011-03-25  Jason Merrill  <jason@redhat.com>
7724         * c.opt: Add -std=c++03.
7726 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
7728         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
7730 2011-03-17  Kai Tietz  <ktietz@redhat.com>
7732         PR target/12171
7733         * c-pretty-print.c (pp_c_specifier_qualifier_list):
7734         Display allowed attributes for function pointer types.
7735         (pp_c_attributes_display): New function to display
7736         attributes having affects_type_identity flag set to true.
7737         * c-pretty-print.h (pp_c_attributes_display): New prototype.
7739         * c-common.c (c_common_attribute_table):
7740         Add new element.
7741         (c_common_format_attribute_table): Likewise.
7743 2011-03-18  Jason Merrill  <jason@redhat.com>
7745         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
7746         * c-common.h: Don't declare it here.
7747         * c-common.c: Or define it here.
7748         * c-opts.c (c_common_handle_option): Or set it here.
7750         PR c++/35315
7751         * c-common.c (handle_transparent_union_attribute): Don't
7752         make a duplicate type in C++.
7754 2011-03-15  Jason Merrill  <jason@redhat.com>
7756         * c-common.c (max_constexpr_depth): New.
7757         * c-common.h: Declare it.
7758         * c-opts.c (c_common_handle_option): Set it.
7759         * c.opt (fconstexpr-depth): New option.
7761 2011-03-11  Jason Merrill  <jason@redhat.com>
7763         * c-common.c (attribute_takes_identifier_p): Add missing const.
7765         PR c++/46803
7766         * c-common.c (attribute_takes_identifier_p): Assume that an
7767         unknown attribute takes an identifier.
7769 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
7771         PR c/47786
7772         * c-common.c (c_type_hash): Call list_length instead of iterating
7773         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
7775 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
7777         PR c/47809
7778         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
7780 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
7782         * c.opt (fobjc-abi-version=) New.
7783         (fobjc-nilcheck): New.
7785 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
7787         PR c++/46890
7788         * c-common.h (keyword_is_decl_specifier): Declare.
7789         * c-common.c (keyword_is_decl_specifier): Define.
7790         (keyword_is_function_specifier): New function.
7792 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
7794         PR c/47473
7795         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
7796         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
7797         REAL_TYPE.
7799 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
7801         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
7803 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
7805         PR pch/47430
7806         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
7807         after init_c_lex if pch_file is set.
7809 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
7811         PR c++/43601
7812         * c.opt (-fkeep-inline-dllexport): New switch.
7814 2011-01-12  Richard Guenther  <rguenther@suse.de>
7816         PR middle-end/32511
7817         * c-common.c (handle_weak_attribute): Warn instead of error
7818         on declaring an inline function weak.
7820 2011-01-05  Tom Tromey  <tromey@redhat.com>
7822         * c-common.h (lvalue_error): Update.
7823         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
7824         not error.
7826 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
7828         PR objc/47075
7829         * c-objc.h (objc_finish_message_expr): Added argument to
7830         prototype.
7832 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
7834         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
7835         Use prototype_p.
7837 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
7839         * c-objc.h (objc_maybe_warn_exceptions): New.
7840         * stub-objc.c (objc_maybe_warn_exceptions): New.
7842 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
7844         * c-common.h (readonly_error): Declare.
7845         * c-common.c (readonly_error): Define.
7847 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
7849         * c-common.h (invalid_indirection_error): Declare.
7850         * c-common.c (invalid_indirection_error): Define.
7852 2010-12-03  Richard Guenther  <rguenther@suse.de>
7854         PR c/46745
7855         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
7856         (pp_c_unary_expression): Likewise.
7857         (pp_c_expression): Likewise.
7859 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
7861         * c-common.h (objc_finish_function): New.
7862         (objc_non_volatilized_type): Removed.
7863         (objc_type_quals_match): Removed.
7864         * stub-objc.c (objc_finish_function): New.
7865         (objc_non_volatilized_type): Removed.
7866         (objc_type_quals_match): Removed.
7868 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
7870         * c-common.h (parse_optimize_options): Declare.
7871         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
7872         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
7874 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
7876         * c-opts.c (check_deps_environment_vars): Use getenv instead of
7877         GET_ENVIRONMENT.
7878         * c-pch.c (O_BINARY): Don't define here.
7879         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
7881 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
7883         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
7884         targetm.except_unwind_info.
7886 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
7888         * c-opts.c (c_common_handle_option): Pass location to
7889         set_struct_debug_option.
7891 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
7893         * c-common.c (visibility_options): Move from ../opts.c.
7894         * c-common.h (struct visibility_flags, visibility_options):
7895         Declare here.
7896         * c-opts.c (finish_options): Rename to c_finish_options.
7897         (c_common_init): Update call to finish_options.
7899 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
7901         PR objc/34033
7902         * c-lex.c (lex_string): Check that each string in an Objective-C
7903         string concat sequence starts with either one or zero '@', and
7904         that there are no spurious '@' signs at the end.
7906 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
7908         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
7909         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
7910         HANDLE_PRAGMA_VISIBILITY.
7911         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
7912         HANDLE_PRAGMA_VISIBILITY): Don't define.
7913         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
7915 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
7917         PR c++/16189
7918         PR c++/36888
7919         PR c++/45331
7920         * c-common.h (keyword_begins_type_specifier): Declare.
7921         (keyword_is_storage_class_specifier): Declare.
7922         (keyword_is_type_qualifier): Declare.
7923         * c-common.c (keyword_begins_type_specifier): New function.
7924         (keyword_is_storage_class_specifier): New function.
7925         (keyword_is_type_qualifier): Declare.
7927 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
7929         PR c/46547
7930         * c-common.c (in_late_binary_op): Define.
7931         (c_common_truthvalue_conversion): Check in_late_binary_op before
7932         calling c_save_expr.
7933         * c-common.h (in_late_binary_op): Declare.
7935 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
7937         * c-opts.c (c_common_handle_option): Update calls to
7938         set_struct_debug_option.
7940 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
7942         * c-common.h (objc_declare_protocols): Added additional argument.
7943         * stub-objc.c (objc_declare_protocol): Same change.
7945 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
7947         PR c/33193
7948         * c-common.h (build_real_imag_expr): Declare.
7949         * c-semantics.c (build_real_imag_expr): Define.
7951 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
7953         * c-opts.c (c_common_parse_file): Take no arguments.
7954         * c-common.h (c_common_parse_file): Update prototype.
7956 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
7958         PR c++/46401
7959         * c-common.c (warning_candidate_p): Don't track non-const calls
7960         or STRING_CSTs.
7962 2010-11-15  Ian Lance Taylor  <iant@google.com>
7964         * c-lex.c (init_c_lex): Set macro debug callbacks if
7965         flag_dump_go_spec is set.
7967 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
7969         * c-common.h (objc_build_incr_expr_for_property_ref): New.
7970         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
7972 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
7974         PR preprocessor/45038
7975         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
7976         dialects.
7978 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
7980         * c-common.h (c_family_lang_mask): Declare.
7981         * c-opts.c (c_family_lang_mask): Make extern.
7982         * c-pragma.c (handle_pragma_diagnostic): Use
7983         control_warning_option.
7985 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
7987         * c-common.c (parse_optimize_options): Update call to
7988         decode_options.
7989         * c-common.h (c_common_handle_option): Update prototype.
7990         * c-opts.c (c_common_handle_option): Take location_t parameter and
7991         pass it to other functions.
7993 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
7995         * c-opts.c (warning_as_error_callback): Remove.
7996         (c_common_initialize_diagnostics): Don't call
7997         register_warning_as_error_callback.
7998         (c_common_handle_option): Handle -Werror=normalized= here.
8000 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
8002         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
8003         in diagnostic.
8004         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
8005         letter.
8006         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
8007         Remove trailing '.' from diagnostics.
8008         * c.opt (Wwrite-strings_: Avoid '`' in help text.
8010 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
8012         * c-common.c (parse_optimize_options): Pass global_dc to
8013         decode_options.
8014         * c-opts.c (c_common_handle_option): Pass &global_options to
8015         set_Wstrict_aliasing.
8016         * c.opt (v): Don't mark Common or document here.
8018 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
8020         PR target/44981
8021         * c-format.c (format_type): New type gcc_objc_string_format_type.
8022         (valid_stringptr_type_p): New.
8023         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
8024         (check_format_string): Pass expected type, use
8025         valid_stringptr_type_p (), check that the format string types are
8026         consistent with the format specification.
8027         (decode_format_attr): Warn if NSString is used outside objective-c.
8028         (format_types_orig): Add NSString.
8029         (format_name): New.
8030         (format_flags): New.
8031         (check_format_arg): Handle format strings requiring an external parser.
8032         first_target_format_type: New variable.
8033         (handle_format_attribute): Set up first_target_format_type, pass the
8034         expected format arg string type to check_format_string().
8035         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL):  New flag.
8036         * stub-objc.c (objc_string_ref_type_p): New.
8037         (objc_check_format_arg): New.
8039 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
8041         Fixed using the Objective-C 2.0 dot-syntax with class names.
8042         * c-common.h (objc_build_class_component_ref): New.
8043         * stub-objc.c (objc_build_class_component_ref): New.
8045 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
8047         * c.opt (Wproperty-assign-default): New option.
8049 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
8051         Implemented -fobjc-std=objc1 flag.
8052         * c.opt (fobjc-std=objc1): New option.
8054 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
8056         Implemented format and noreturn attributes for Objective-C methods.
8057         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
8058         attribute for Objective-C methods.
8060 2010-10-31  Jason Merrill  <jason@redhat.com>
8062         * c-common.c (conversion_warning, warn_for_collisions_1): Use
8063         EXPR_LOC_OR_HERE.
8065 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
8067         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
8068         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
8069         (objc_add_property_declaration): Removed arguments for copies and
8070         ivar.
8071         (objc_build_getter_call): Renamed to
8072         objc_maybe_build_component_ref.
8073         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
8074         (objc_is_property_ref): New.
8075         * c-common.c (c_common_reswords): Removed copies and ivar.
8076         * stub-objc.c (objc_add_property_declaration): Removed arguments
8077         for copies and ivar.
8078         (objc_build_getter_call): Renamed to
8079         objc_maybe_build_component_ref.
8080         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
8081         (objc_is_property_ref): New.
8083 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
8084             Matthew Gingell  <gingell@adacore.com>
8086         * c-ada-spec.c (separate_class_package): New function.
8087         (pp_ada_tree_identifier): Prefix references to C++ classes with the
8088         name of their enclosing package.
8089         (print_ada_declaration): Use separate_class_package.
8091 2010-10-27  Jason Merrill  <jason@redhat.com>
8093         * c-common.c (c_common_reswords): Add __is_literal_type.
8094         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
8096         * c-common.c (check_case_value): Remove special C++ code.
8098 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
8100         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
8101         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
8102         and RID_LAST_PATTR.
8103         (objc_add_property_declaration): Added additional arguments.
8104         (objc_property_attribute_kind): Removed.
8105         (objc_set_property_attr): Removed.
8106         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
8107         copy and nonatomic.
8108         * stub-objc.c (objc_add_property_declaration): Added additional
8109         arguments.
8110         (objc_set_property_attr): Removed.
8112 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
8114         * c-common.h (objc_add_property_variable): Renamed to
8115         objc_add_property_declaration.  Added location argument.
8116         * stub-objc.c (objc_add_property_variable): Same change.
8118 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
8120         * c-common.h (objc_maybe_printable_name): New.
8121         * stub-objc.c (objc_maybe_printable_name): New.
8123 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
8124             Andrew Pinski  <pinskia@gmail.com>
8126         * c-common.h (c_common_mark_addressable_vec): Declare.
8127         * c-common.c (c_common_mark_addressable_vec): New function.
8129 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
8131         * c-common.h (objc_set_method_type): Removed.
8132         (objc_add_method_declaration): Added boolean argument.
8133         (objc_start_method_definition): Same change.
8134         (objc_build_method_signature): Same change.
8135         * stub-objc.c (objc_set_method_type): Removed.
8136         (objc_add_method_declaration): Added boolean argument.
8137         (objc_start_method_definition): Same change.
8138         (objc_build_method_signature): Same change.
8140 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
8142         * c-common.h (finish_file): Removed.
8143         (objc_write_global_declarations): New.
8144         * c-opts.c (c_common_parse_file): Do not call finish_file.
8145         * stub-objc.c (objc_write_global_declarations): New.
8147 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
8149         Implemented parsing @synthesize and @dynamic for
8150         Objective-C/Objective-C++.
8151         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
8152         (objc_add_synthesize_declaration): New.
8153         (objc_add_dynamic_declaration): New.
8154         * c-common.c (c_common_reswords): Add synthesize and dynamic.
8155         * stub-objc.c (objc_add_synthesize_declaration): New.
8156         (objc_add_dynamic_declaration): New.
8158 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
8160         PR target/46041
8161         * c-cppbuiltin.c (mode_has_fma): Move function here from
8162         builtins.c.  Don't use the fma optab, instead just use the
8163         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
8164         using -save-temps.
8166 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
8168         Merge from 'apple/trunk' branch on FSF servers.
8170         2005-11-08  Fariborz Jahanian  <fjahanian@apple.com>
8172         Radar 4330422
8173         * c-common.h (objc_non_volatilized_type): New declaration
8174         * stub-objc.c (objc_non_volatilized_type): New stub.
8176 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
8178         Merge from 'apple/trunk' branch on FSF servers.
8180         2006-03-27 Fariborz Jahanian  <fjahanian@apple.com>
8182         Radar 4133425
8183         * c-common.h (objc_diagnose_private_ivar): New decl.
8184         * stub-objc.c (objc_diagnose_private_ivar): New stub.
8186 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
8188         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
8189         * c-common.h (enum rid): Add RID_AT_PACKAGE.
8190         (objc_ivar_visibility_kind): New enum.
8191         (objc_set_visibility): Adjust prototype to use visibility enum.
8192         * stub-objc.c (objc_set_visibility): Adjust stub to use
8193         visibility enum.
8195 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
8197         * c-cppbuiltin.c (builtin_define_float_constants): Emit
8198         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
8199         has the appropriate fma builtins.
8200         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
8202 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
8204         merge from FSF apple 'trunk' branch.
8205         2006 Fariborz Jahanian  <fjahanian@apple.com>
8207         Radars 4436866, 4505126, 4506903, 4517826
8208         * c-common.c (c_common_resword): Define @property and its attributes.
8209         * c-common.h: Define property attribute enum entries.
8210         (OBJC_IS_PATTR_KEYWORD): New.
8211         (objc_property_attribute_kind): New enum.
8212         Declare objc_set_property_attr (), objc_add_property_variable (),
8213         objc_build_getter_call () and objc_build_setter_call ().
8214         * stub-objc.c (objc_set_property_attr): New stub.
8215         (objc_add_property_variable): Likewise.
8216         (objc_build_getter_call): Likewise.
8217         (objc_build_setter_call) Likewise.
8219 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
8221         merge from FSF apple 'trunk' branch.
8222         2006-04-26 Fariborz Jahanian  <fjahanian@apple.com>
8224         Radar 3803157 (method attributes)
8225         * c-common.c (handle_deprecated_attribute): Recognize
8226         objc methods as valid declarations.
8227         * c-common.h: Declare objc_method_decl ().
8228         * stub-objc.c (objc_method_decl): New stub.
8230 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
8232         * c-common.c (parse_optimize_options): Call
8233         decode_cmdline_options_to_array_default_mask before
8234         decode_options.  Update arguments to decode_options.
8235         * c-common.h (c_common_init_options_struct): Declare.
8236         * c-opts.c (c_common_init_options_struct): New.  Split out from
8237         c_common_init_options.
8239 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
8241         Implemented fast enumeration for Objective-C.
8242         * c-common.h (objc_finish_foreach_loop): New.
8243         * stub-objc.c (objc_finish_foreach_loop): New.
8245 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
8247         * c-common.h (struct diagnostic_context): Don't declare here.
8248         (c_common_initialize_diagnostics): Declare using
8249         diagnostic_context typedef.
8250         * c-opts.c (c_common_handle_option): Pass global_dc to
8251         handle_generated_option.
8253 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
8255         * c-opts.c (c_common_handle_option): Pass &global_options_set to
8256         handle_generated_option.
8258 2010-10-03  Ian Lance Taylor  <iant@google.com>
8260         * c.opt (-fplan9-extensions): New option.
8262 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8264         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
8265         Remove.
8266         (c_cpp_builtins): Call functions from cppbuiltin.c instead
8267         of duplicating code.
8269 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
8271         * c-common.c: Add two new entries for @optional
8272         and @required keywords.
8274         merge from FSF 'apple/trunk' branch.
8275         2006-01-30  Fariborz Jahanian  <fjahanian@apple.com>
8277         Radar 4386773
8278         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
8279         objective-c keywords.
8280         (objc_set_method_opt): New declaration.
8281         * stub-objc.c (objc_set_method_opt): New stub.
8283 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
8285         * c-common.c (handle_optimize_attribute): Pass &global_options to
8286         cl_optimization_save and cl_optimization_restore.
8287         * c-opts.c (c_common_handle_option): Pass &global_options to
8288         handle_generated_option.
8289         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
8290         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
8291         &global_options to cl_optimization_restore.
8293 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
8295         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
8296         Objective-C/Objective-C++ keywords.
8298 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
8300         Merge from 'apple/trunk' branch on FSF servers.
8302         2005-10-04  Fariborz Jahanian  <fjahanian@apple.com>
8304         Radar 4281748
8305         * c-common.h (objc_check_global_decl): New declaration.
8306         * stub-objc.c (objc_check_global_decl): New stub.
8308 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
8310         * c.opt: Don't use VarExists.
8312 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
8314         * c-common.c (c_cpp_error): Update names of diagnostic_context
8315         members.
8316         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
8317         cl_optimization members.
8318         * c-opts.c (warning_as_error_callback, c_common_handle_option,
8319         sanitize_cpp_opts, finish_options): Update names of cpp_options
8320         members.
8322 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
8324         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
8325         (objc_is_reserved_word): Removed.
8326         * c-common.c: Updated comments.
8327         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
8328         objc_is_reserved_word.
8329         * stub-objc.c (objc_is_reserved_word): Removed.
8331 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
8333         * c-common.h (objc_add_method_declaration): Adjust prototype to
8334         include attributes.
8335         (objc_start_method_definition): Likewise.
8336         (objc_build_keyword_decl): Likewise.
8337         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
8338         (objc_start_method_definition): Likewise.
8339         (objc_build_keyword_decl): Likewise.
8341 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
8343         * c-common.h (objc_start_class_interface): Adjust prototype.
8344         (objc_start_category_interface): Likewise.
8345         (objc_start_protocol): Likewise.
8346         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
8347         (objc_start_class_interface): Likewise.
8348         (objc_start_category_interface): Likewise.
8350 2010-09-27  Ian Lance Taylor  <iant@google.com>
8352         * c-common.c (c_common_attribute_table): Add no_split_stack.
8353         (handle_no_split_stack_attribute): New static function.
8355 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
8357         Merge from 'apple/trunk' branch on FSF servers.
8359         2005-12-15  Fariborz Jahanian  <fjahanian@apple.com>
8361         Radar 4229905
8362         * c-common.h (objc_have_common_type): New declaration.
8363         * stub-objc.c (objc_have_common_type): New stub.
8365         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
8367         Radar 4154928
8368         * c-common.h (objc_common_type): New prototype.
8369         * stub-objc.c (objc_common_type): New stub.
8371 2010-09-24  Jan Hubicka  <jh@suse.cz>
8373         * c-common.c (handle_leaf_attribute): New function.
8374         (struct attribute_spec c_common_att): Add leaf.
8376 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
8378         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
8379         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
8380         -dump, -dump=, -imacros, -imacros=, -include, -include=,
8381         -include-barrier, -include-directory, -include-directory=,
8382         -include-directory-after, -include-directory-after=,
8383         -include-prefix, -include-prefix=, -include-with-prefix,
8384         -include-with-prefix=, -include-with-prefix-after,
8385         -include-with-prefix-after=, -include-with-prefix-before,
8386         -include-with-prefix-before=, -no-integrated-cpp,
8387         -no-line-commands, -no-standard-includes, -no-warnings, -output,
8388         -output=, -pedantic, -pedantic-errors, -preprocess,
8389         -print-missing-file-dependencies, -trace-includes, -traditional,
8390         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
8391         -user-dependencies, -verbose, -write-dependencies,
8392         -write-user-dependencies, no-integrated-cpp, traditional): New.
8394 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8396         PR objc/23710
8397         * c-common.h (objc_start_method_definition): Return bool instead
8398         of void.
8399         * stub-objc.c (objc_start_method_definition): Return bool instead
8400         of void.
8402 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8404         PR objc/25965
8405         * c-common.h (objc_get_interface_ivars): New declaration.
8406         * stub-objc.c (objc_get_interface_ivars): New stub.
8408 2010-09-15  Ian Lance Taylor  <iant@google.com>
8410         * c-common.c (parse_optimize_options): Do not capitalize warning
8411         messages.  Remove period at end of warning message.
8413 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
8415         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
8416         (handle_alias_attribute): ... here.
8417         (handle_ifunc_attribute): New.
8419 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
8421         * c-common.h (do_warn_double_promotion): Declare.
8422         * c-common.c (do_warn_double_promotion): Define.
8424 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
8426         * c.opt (Wdouble-promotion): New.
8428 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
8430         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
8431         fvtable-thunks, fxref): Mark no longer supported in help text.
8433 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
8435         * c.opt (Wimport, fall-virtual, falt-external-templates,
8436         fdefault-inline, fenum-int-equiv, fexternal-templates,
8437         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
8438         fname-mangling-version-, fnew-abi, fnonnull-objects,
8439         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
8440         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
8441         applicable.
8442         (fhandle-exceptions): Mark with Alias and Warn.
8443         * c-opts.c (c_common_handle_option): Don't handle options marked
8444         as ignored.
8446 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
8448         * c.opt (Wcomments, Werror-implicit-function-declaration,
8449         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
8450         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
8451         aliases.
8452         * c-common.c (option_codes): Use OPT_Wcomment instead of
8453         OPT_Wcomments.
8454         * c-opts.c (warning_as_error_callback, c_common_handle_option):
8455         Don't handle options marked as aliases.
8457 2010-08-25  Richard Guenther  <rguenther@suse.de>
8459         * c-common.c (c_common_get_alias_set): Remove special
8460         handling for pointers.
8462 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
8464         * c-common.c: Use FOR_EACH_VEC_ELT.
8465         * c-gimplify.c: Likewise.
8466         * c-pragma.c: Likewise.
8468 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
8470         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
8471         RejectDriver.
8472         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
8473         RejectDriver.
8474         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
8475         instead of OPT_MDX and OPT_MMDX.
8477 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
8479         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
8481 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
8483         * c.opt (MD, MMD): Change to MDX and MMDX.
8484         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
8486 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
8488         * c-opts.c (c_common_handle_option): Call handle_generated_option
8489         instead of handle_option.
8491 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
8493         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
8494         (maybe_apply_renaming_pragma): Delete unneeded declarations.
8496 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
8498         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
8499         (pending_redefine_extname): Change type to a VEC.
8500         (add_to_renaming_pragma_list): Update for new type of
8501         pending_redefine_extname.
8502         (maybe_apply_renaming_pragma): Likewise.
8504 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
8506         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
8507         visited.
8508         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
8509         decide whether a type has already been declared/seen.
8510         Do not go to the original type.
8511         (dump_nested_types): New parameter forward.
8512         Generate forward declaration if needed and mark type as visited.
8513         (print_ada_declaration): Call dump_nested_types if not already done.
8514         Mark types as visited.
8516 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
8518         * c.opt (-print-pch-checksum): Remove option.
8519         * c-opts.c (c_common_handle_option): Don't handle
8520         OPT_print_pch_checksum.
8522 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8524         * c-common.h (c_common_handle_option): Update prototype and return
8525         value type.
8526         * c-opts.c (c_common_handle_option): Update prototype and return
8527         value type.  Update calls to handle_option and
8528         enable_warning_as_error.
8530 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
8532         PR c/45079
8533         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
8535 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8537         * c-common.h (c_common_missing_argument): Remove.
8538         * c-opts.c (c_common_missing_argument): Remove.
8539         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
8540         idirafter, imacros, include, isysroot, isystem, iquote): Add
8541         MissingArgError.
8542         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
8544 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8546         * c-common.h (c_common_option_lang_mask,
8547         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
8548         New.
8549         (c_common_init_options): Update prototype.
8550         * c-opts.c (c_common_option_lang_mask): New.
8551         (c_common_initialize_diagnostics): Split out of
8552         c_common_init_options.
8553         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
8554         New.
8555         (c_common_init_options): Update prototype.  Use decoded options in
8556         search for -lang-asm.
8558 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
8560         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
8561         * c-format.c: Likewise.
8563 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8565         * c-common.h: Include diagnostic-core.h. Error if already
8566         included.
8567         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
8569 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8571         * c-common.c (IN_GCC_FRONTEND): Do not undef.
8572         Do not include expr.h
8573         (vector_mode_valid_p): Move here.
8575 2010-06-21  DJ Delorie  <dj@redhat.com>
8577         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
8578         allow these pragmas anywhere.
8580 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
8582         PR bootstrap/44509
8583         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
8584         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
8585         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
8586         ggc_strdup instead of xstrdup.
8588 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
8590         * c-cppbuiltin.c: Include cpp-id-data.h.
8591         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
8592         (lazy_hex_fp_value): New function.
8593         (builtin_define_with_hex_fp_value): Provide definitions lazily.
8595 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8597         * c-gimplify.c: Do not include tree-flow.h
8599 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
8601         PR other/44034
8602         * c-common.c: Rename targetm member:
8603         targetm.enum_va_list -> targetm.enum_va_list_p
8605 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
8607         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
8609 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
8611         * c-cppbuiltin.c: Do not include except.h.
8613 2010-06-24  Andi Kleen  <ak@linux.intel.com>
8615         * c-common.c (warn_for_omitted_condop): New.
8616         * c-common.h (warn_for_omitted_condop): Add prototype.
8618 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
8620         * c.opt (lang-objc): Remove.
8621         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
8623 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
8625         * c-opts.c: Include "tm_p.h".
8627 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
8629         * c-common.c (parse_optimize_options): Update call to
8630         decode_options.
8632 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
8634         * c-common.c (record_types_used_by_current_var_decl): Adjust for
8635         new type of types_used_by_cur_var_decl.
8637 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
8639         PR bootstrap/44512
8640         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
8641         for C++ standard compliance.
8643 2010-06-16  Jason Merrill  <jason@redhat.com>
8645         * c.opt: Add -Wnoexcept.
8647 2010-06-16  Richard Guenther  <rguenther@suse.de>
8649         PR c/44555
8650         * c-common.c (c_common_truthvalue_conversion): Remove
8651         premature and wrong optimization concering ADDR_EXPRs.
8653 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
8655         * c-ada-spec.c (dump_sloc): Remove column info.
8656         (is_simple_enum): New function.
8657         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
8658         enum types when relevant.
8660 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8662         * c-common.c (conversion_warning): Warn at expression
8663         location.
8665 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
8667         * c-opts.c (c_common_handle_option): Don't handle
8668         OPT_fshow_column.
8670 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8672         * c-pragma.c (push_alignment): Use typed GC allocation.
8673         (handle_pragma_push_options): Likewise.
8675         * c-common.c (parse_optimize_options): Likewise.
8677         * c-common.h (struct sorted_fields_type): Add variable_size GTY
8678         option.
8680 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
8682         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
8683         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
8684         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
8685         flag_signed_bitfields, warn_strict_null_sentinel,
8686         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
8687         flag_gen_declaration, flag_no_gnu_keywords,
8688         flag_implement_inlines, flag_implicit_templates,
8689         flag_implicit_inline_templates, flag_optional_diags,
8690         flag_elide_constructors, flag_default_inline, flag_rtti,
8691         flag_conserve_space, flag_access_control, flag_check_new,
8692         flag_new_for_scope, flag_weak, flag_working_directory,
8693         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
8694         flag_enforce_eh_specs, flag_threadsafe_statics,
8695         flag_pretty_templates): Remove.
8696         * c-common.h (flag_preprocess_only, flag_nil_receivers,
8697         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
8698         flag_replace_objc_classes, flag_undef, flag_no_builtin,
8699         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
8700         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
8701         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
8702         flag_no_gnu_keywords, flag_implement_inlines,
8703         flag_implicit_templates, flag_implicit_inline_templates,
8704         flag_optional_diags, flag_elide_constructors, flag_default_inline,
8705         flag_rtti, flag_conserve_space, flag_access_control,
8706         flag_check_new, flag_new_for_scope, flag_weak,
8707         flag_working_directory, flag_use_cxa_atexit,
8708         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
8709         flag_threadsafe_statics, flag_pretty_templates,
8710         warn_strict_null_sentinel): Remove.
8711         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
8712         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
8713         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
8714         fimplicit-inline-templates, fimplicit-templates,
8715         flax-vector-conversions, fms-extensions, fnil-receivers,
8716         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
8717         frtti, fshort-double, fshort-enums, fshort-wchar,
8718         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
8719         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
8720         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
8721         gen-decls, undef): Use Var.
8722         (fdefault-inline, foptional-diags): Document as doing nothing.
8723         * c-opts.c (c_common_handle_option): Remove cases for options now
8724         using Var.  Mark ignored options as such.
8726 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
8728         * c-common.c: Moved to here from parent directory.
8729         * c-common.def: Likewise.
8730         * c-common.h: Likewise.
8731         * c-cppbuiltin.c: Likewise.
8732         * c-dump.c: Likewise.
8733         * c-format.c: Likewise.
8734         * c-format.h : Likewise.
8735         * c-gimplify.c: Likewise.
8736         * c-lex.c: Likewise.
8737         * c-omp.c: Likewise.
8738         * c.opt: Likewise.
8739         * c-opts.c: Likewise.
8740         * c-pch.c: Likewise.
8741         * c-ppoutput.c: Likewise.
8742         * c-pragma.c: Likewise.
8743         * c-pragma.h: Likewise.
8744         * c-pretty-print.c: Likewise.
8745         * c-pretty-print.h: Likewise.
8746         * c-semantics.c: Likewise.
8747         * stub-objc.c: Likewise.
8749         * c-common.c: Include gt-c-family-c-common.h.
8750         * c-pragma.c: Include gt-c-family-c-pragma.h.
8752 Copyright (C) 2010-2018 Free Software Foundation, Inc.
8754 Copying and distribution of this file, with or without modification,
8755 are permitted in any medium without royalty provided the copyright
8756 notice and this notice are preserved.