Daily bump.
[official-gcc.git] / gcc / c-family / ChangeLog
blob78b7dbe7f89f408a8d92ab91abc20b88c1c57d56
1 2024-03-19  Jakub Jelinek  <jakub@redhat.com>
3         PR c/114364
4         * c-omp.cc (enum check_loop_binding_expr_ctx): New type.
5         (check_loop_binding_expr): Remove context argument, add ctx
6         argument with check_loop_binding_expr_ctx type at the end.  Don't
7         create diagnostic message from multiple pieces.
8         (c_omp_check_loop_binding_exprs): Adjust callers.
10 2024-03-08  Jakub Jelinek  <jakub@redhat.com>
12         * c-common.cc (resolve_overloaded_atomic_exchange): Instead of setting
13         p1 to VIEW_CONVERT_EXPR<I_type> (*p1), set it to MEM_REF with p1 and
14         (typeof (p1)) 0 operands and I_type type.
15         (resolve_overloaded_atomic_compare_exchange): Similarly for p2.
17 2024-03-05  Mark Wielaard  <mark@klomp.org>
19         * c.opt.urls: Regenerate.
21 2024-03-05  Patrick Palka  <ppalka@redhat.com>
23         * c.opt (Wglobal-module): New warning.
25 2024-03-04  Mark Wielaard  <mark@klomp.org>
27         * c.opt.urls: Regenerate.
29 2024-02-22  Jakub Jelinek  <jakub@redhat.com>
31         PR c/114007
32         * c-lex.cc (c_common_has_attribute): Parse 2 CPP_COLONs with
33         the first one with COLON_SCOPE flag the same as CPP_SCOPE.
35 2024-02-10  Marek Polacek  <polacek@redhat.com>
37         DR 2237
38         PR c++/107126
39         PR c++/97202
40         * c-opts.cc (c_common_post_options): In C++20 or with -Wc++20-compat,
41         turn on -Wtemplate-id-cdtor.
42         * c.opt (Wtemplate-id-cdtor): New.
44 2024-02-10  Jakub Jelinek  <jakub@redhat.com>
46         * c-format.cc (gcc_diag_length_specs): Add t and z modifiers.
47         (PP_FORMAT_CHAR_TABLE, gcc_gfc_char_table): Add entries for t and
48         z modifiers.
50 2024-02-10  Jakub Jelinek  <jakub@redhat.com>
52         * c-ada-spec.cc (dump_template_types): Use HOST_SIZE_T_PRINT_UNSIGNED
53         and casts to fmt_size_t instead of "%lu" and casts to unsigned long.
55 2024-02-01  Lewis Hyatt  <lhyatt@gmail.com>
57         PR preprocessor/105608
58         * c-pch.cc (c_common_read_pch): Adjust line map so that libcpp
59         assigns a location to restored macros which is the same location
60         that triggered the PCH include.
62 2024-01-31  Marek Polacek  <polacek@redhat.com>
64         * c-opts.cc (c_common_post_options): Add an inform saying that
65         -fconcepts-ts is deprecated and will be removed in GCC 15.
67 2024-01-27  Lewis Hyatt  <lhyatt@gmail.com>
69         PR preprocessor/105608
70         * c-pch.cc (c_common_read_pch): Start a new line map before asking
71         libcpp to restore macros defined prior to reading the PCH, instead
72         of afterward.
74 2024-01-23  Jakub Jelinek  <jakub@redhat.com>
76         PR c/113518
77         * c-common.cc (atomic_bitint_fetch_using_cas_loop): Call c_fully_fold
78         on lhs_addr, val and model for C.
80 2024-01-23  Sandra Loosemore  <sandra@codesourcery.com>
82         * c.opt: Improve sorting of warning options.
84 2024-01-16  Eric Botcazou  <ebotcazou@adacore.com>
86         PR ada/113397
87         * c-ada-spec.cc (check_type_name_conflict): Add guard for the
88         presence of DECL_NAME on a TYPE_DECL.
90 2024-01-11  Julian Brown  <julian@codesourcery.com>
92         * c-pretty-print.cc (c_pretty_printer::postfix_expression,
93         c_pretty_printer::expression): Add OMP_ARRAY_SECTION support.
95 2024-01-09  waffl3x  <waffl3x@protonmail.com>
97         PR c++/102609
98         PR c++/102609
99         C++23 P0847R7 (deducing this) - diagnostics.
100         * c-cppbuiltin.cc (c_cpp_builtins): Define
101         __cpp_explicit_this_parameter=202110L feature test macro.
103 2024-01-09  Jakub Jelinek  <jakub@redhat.com>
105         PR c/113262
106         * c-attribs.cc (handle_copy_attribute): Don't use
107         DECL_SOURCE_LOCATION (decl) if decl is not DECL_P, use input_location
108         instead.  Formatting fixes.
110 2024-01-09  Julian Brown  <julian@codesourcery.com>
112         * c-common.h (c_omp_address_inspector): Remove static from get_origin
113         and maybe_unconvert_ref methods.
114         * c-omp.cc (c_omp_split_clauses): Support OMP_ARRAY_SECTION.
115         (c_omp_address_inspector::map_supported_p): Handle OMP_ARRAY_SECTION.
116         (c_omp_address_inspector::get_origin): Avoid dereferencing possibly
117         NULL type when processing template decls.
118         (c_omp_address_inspector::maybe_unconvert_ref): Likewise.
120 2024-01-04  David Malcolm  <dmalcolm@redhat.com>
122         * c.opt.urls: New file, autogenerated by regenerate-opt-urls.py.
124 2023-12-21  Jakub Jelinek  <jakub@redhat.com>
126         * c.opt (Walloc-size): Enable also for C++ and ObjC++.
128 2023-12-21  Jakub Jelinek  <jakub@redhat.com>
130         PR sanitizer/113092
131         * c-ubsan.cc (ubsan_instrument_shift): Workaround for missing
132         ubsan _BitInt support for the shift count.
134 2023-12-20  Florian Weimer  <fweimer@redhat.com>
136         PR c/113050
137         * c-common.cc (get_atomic_generic_size): Use
138         OPT_Wdiscarded_qualifiers instead of
139         OPT_Wincompatible_pointer_types.
141 2023-12-20  Jakub Jelinek  <jakub@redhat.com>
143         * c.opt (Wcalloc-transposed-args): New warning.
144         * c-common.h (warn_for_calloc, warn_for_alloc_size): Declare.
145         * c-warn.cc (warn_for_calloc, warn_for_alloc_size): New functions.
147 2023-12-16  Andrew Carlotti  <andrew.carlotti@arm.com>
149         * c-attribs.cc (attr_target_exclusions): Make
150         target/target_clones exclusion target-dependent.
151         (attr_target_clones_exclusions): Ditto, and add target_version.
152         (attr_target_version_exclusions): New.
153         (c_common_attribute_table): Add target_version.
154         (handle_target_version_attribute): New.
155         (handle_target_attribute): Amend comment.
156         (handle_target_clones_attribute): Ditto.
158 2023-12-16  Andrew Carlotti  <andrew.carlotti@arm.com>
160         * c-attribs.cc (attr_always_inline_exclusions): New.
161         (attr_target_exclusions): Ditto.
162         (attr_target_clones_exclusions): Ditto.
163         (c_common_attribute_table): Add new exclusion lists.
164         (handle_noinline_attribute): Remove custom exclusion handling.
165         (handle_always_inline_attribute): Ditto.
166         (handle_target_attribute): Ditto.
167         (handle_target_clones_attribute): Ditto.
169 2023-12-13  Patrick Palka  <ppalka@redhat.com>
171         * c.opt: Add -fdiagnostics-all-candidates.
173 2023-12-13  Jason Merrill  <jason@redhat.com>
175         * c-warn.cc (check_address_or_pointer_of_packed_member):
176         Rename to check_address_of_packed_member.
177         (check_and_warn_address_or_pointer_of_packed_member):
178         Rename to check_and_warn_address_of_packed_member.
179         (warn_for_address_or_pointer_of_packed_member):
180         Rename to warn_for_address_of_packed_member.
181         * c-common.h: Adjust.
183 2023-12-13  Jason Merrill  <jason@redhat.com>
185         * c-warn.cc (check_address_or_pointer_of_packed_member):
186         Remove warning based on TYPE_PACKED.
188 2023-12-13  Julian Brown  <julian@codesourcery.com>
190         * c-common.h (c_omp_region_type): Add C_ORT_EXIT_DATA,
191         C_ORT_OMP_EXIT_DATA and C_ORT_ACC_TARGET.
192         (omp_addr_token): Add forward declaration.
193         (c_omp_address_inspector): New class.
194         * c-omp.cc (c_omp_adjust_map_clauses): Mark decls addressable here, but
195         do not change any mapping node types.
196         (c_omp_address_inspector::unconverted_ref_origin,
197         c_omp_address_inspector::component_access_p,
198         c_omp_address_inspector::check_clause,
199         c_omp_address_inspector::get_root_term,
200         c_omp_address_inspector::map_supported_p,
201         c_omp_address_inspector::get_origin,
202         c_omp_address_inspector::maybe_unconvert_ref,
203         c_omp_address_inspector::maybe_zero_length_array_section,
204         c_omp_address_inspector::expand_array_base,
205         c_omp_address_inspector::expand_component_selector,
206         c_omp_address_inspector::expand_map_clause): New methods.
207         (omp_expand_access_chain): New function.
209 2023-12-12  Richard Biener  <rguenther@suse.de>
211         PR ipa/92606
212         * c-attribs.cc (handle_noicf_attribute): Also allow the
213         attribute on global variables.
215 2023-12-10  Ken Matsui  <kmatsui@gcc.gnu.org>
216             Patrick Palka  <ppalka@redhat.com>
218         * c-common.cc (c_common_reswords): Remove all mappings of
219         built-in traits.
220         * c-common.h (enum rid): Remove all RID values for built-in
221         traits.
223 2023-12-07  Andrew Pinski  <pinskia@gmail.com>
224             Jakub Jelinek  <jakub@redhat.com>
226         PR preprocessor/111965
227         * c-opts.cc (c_common_handle_option) <case OPT_fdebug_cpp>: Set
228         cpp_opts->debug to value rather than 1.
230 2023-12-06  David Malcolm  <dmalcolm@redhat.com>
232         * c-opts.cc (c_diagnostic_finalizer): Make "diagnostic" param
233         const.
235 2023-12-06  Alexandre Oliva  <oliva@adacore.com>
237         * c-attribs.cc: Include ipa-strub.h.
238         (handle_strub_attribute): New.
239         (c_common_attribute_table): Add strub.
241 2023-12-05  Richard Sandiford  <richard.sandiford@arm.com>
243         * c-attribs.cc (c_common_gnu_attribute_table): Add extra
244         braces to work around PR 16333 in older compilers.
246 2023-12-05  Richard Biener  <rguenther@suse.de>
248         PR c/89270
249         * c-common.cc (c_common_type_for_size): Consider
250         registered_builtin_types.
252 2023-12-05  Marek Polacek  <polacek@redhat.com>
254         PR c++/107687
255         PR c++/110997
256         * c-cppbuiltin.cc (c_cpp_builtins): Update __cpp_consteval.
257         * c-opts.cc (c_common_post_options): Pre-C++20, unset
258         flag_immediate_escalation.
259         * c.opt (fimmediate-escalation): New option.
261 2023-12-02  Richard Sandiford  <richard.sandiford@arm.com>
263         * c-common.h (c_common_attribute_table): Replace with...
264         (c_common_gnu_attribute_table): ...this.
265         (c_common_format_attribute_table): Change type to
266         scoped_attribute_specs.
267         * c-attribs.cc (c_common_attribute_table): Replace with...
268         (c_common_gnu_attributes, c_common_gnu_attribute_table): ...these
269         new globals.
270         (c_common_format_attribute_table): Change type to
271         scoped_attribute_specs, using...
272         (c_common_format_attributes): ...this as the underlying array.
274 2023-12-01  Florian Weimer  <fweimer@redhat.com>
276         * c.opt (Wdeclaration-missing-parameter-type): New.
278 2023-11-30  Jakub Jelinek  <jakub@redhat.com>
280         PR c++/110349
281         * c-cppbuiltin.cc (c_cpp_builtins): Predefine
282         __cpp_placeholder_variables=202306L for C++26.
284 2023-11-29  Alexandre Oliva  <oliva@adacore.com>
286         * c-attribs.cc (c_common_attribute_table): Add hardbool.
287         (handle_hardbool_attribute): New.
288         (type_valid_for_vector_size): Reject hardbool.
289         * c-common.cc (convert_and_check): Skip warnings for convert
290         and check for hardbool.
291         (c_hardbool_type_attr_1): New.
292         * c-common.h (c_hardbool_type_attr): New.
294 2023-11-27  Alex Coplan  <alex.coplan@arm.com>
295             Iain Sandoe  <iain@sandoe.co.uk>
297         PR c++/60512
298         * c-common.cc (struct hf_feature_info): New.
299         (c_common_register_feature): New.
300         (init_has_feature): New.
301         (has_feature_p): New.
302         * c-common.h (c_common_has_feature): New.
303         (c_family_register_lang_features): New.
304         (c_common_register_feature): New.
305         (has_feature_p): New.
306         * c-lex.cc (init_c_lex): Plumb through has_feature callback.
307         (c_common_has_builtin): Generalize and move common part ...
308         (c_common_lex_availability_macro): ... here.
309         (c_common_has_feature): New.
310         * c-ppoutput.cc (init_pp_output): Plumb through has_feature.
312 2023-11-24  Lewis Hyatt  <lhyatt@gmail.com>
314         PR pch/112319
315         * c-ppoutput.cc (cb_read_pch): Reinitialize the frontend parser
316         after loading a PCH.
318 2023-11-24  Tobias Burnus  <tobias@codesourcery.com>
320         * c.opt (-Wopenmp): Add missing tailing '.'.
322 2023-11-24  Tobias Burnus  <tobias@codesourcery.com>
324         * c.opt (Wopenmp): Add, enable by default.
326 2023-11-23  Marek Polacek  <polacek@redhat.com>
328         * c-opts.cc: Include "target.h".
329         (c_finish_options): Maybe cpp_define _FORTIFY_SOURCE
330         and _GLIBCXX_ASSERTIONS.
332 2023-11-23  Jakub Jelinek  <jakub@redhat.com>
334         * c-common.h (enum rid): Add RID_BUILTIN_STDC: New.
335         * c-common.cc (c_common_reswords): Add __builtin_stdc_bit_ceil,
336         __builtin_stdc_bit_floor, __builtin_stdc_bit_width,
337         __builtin_stdc_count_ones, __builtin_stdc_count_zeros,
338         __builtin_stdc_first_leading_one, __builtin_stdc_first_leading_zero,
339         __builtin_stdc_first_trailing_one, __builtin_stdc_first_trailing_zero,
340         __builtin_stdc_has_single_bit, __builtin_stdc_leading_ones,
341         __builtin_stdc_leading_zeros, __builtin_stdc_trailing_ones and
342         __builtin_stdc_trailing_zeros.  Move __builtin_assoc_barrier
343         alphabetically earlier.
345 2023-11-23  Jakub Jelinek  <jakub@redhat.com>
347         PR c++/110348
348         * c.opt (Wc++26-extensions): New option.
349         * c-cppbuiltin.cc (c_cpp_builtins): For C++26 predefine
350         __cpp_static_assert to 202306L rather than 201411L.
352 2023-11-19  David Malcolm  <dmalcolm@redhat.com>
354         * c-lex.cc: Include "rich-location.h".
356 2023-11-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
358         * c-cppbuiltin.cc (c_cpp_builtins):  Define
359         __LIBGCC_HAVE_LIBATOMIC for libgcov.
361 2023-11-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
363         Revert:
364         2021-08-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
366         * c-cppbuiltin.c (c_cpp_builtins): Define
367         __LIBGCC_GCOV_TYPE_SIZE if flag_building_libgcc is true.
369 2023-11-17  Jakub Jelinek  <jakub@redhat.com>
371         PR c++/107571
372         * c-gimplify.cc (genericize_c_loop): For C++ mark IFN_FALLTHROUGH
373         call at the end of loop body as TREE_NOTHROW.
375 2023-11-14  Lewis Hyatt  <lhyatt@gmail.com>
377         PR pch/9471
378         PR pch/47857
379         * c-opts.cc (c_common_post_options): Set cpp_opts->main_search
380         so libcpp knows it is compiling a header file separately.
382 2023-11-14  David Malcolm  <dmalcolm@redhat.com>
384         * c-warn.cc (conversion_warning): Update call to
385         global_dc->m_option_enabled to use option_enabled_p.
387 2023-11-14  David Malcolm  <dmalcolm@redhat.com>
389         * c-common.cc (c_get_substring_location): Use global_dc's
390         file_cache.
391         * c-format.cc (get_corrected_substring): Likewise.
392         * c-indentation.cc (get_visual_column): Add file_cache param.
393         (get_first_nws_vis_column): Likewise.
394         (detect_intervening_unindent): Likewise.
395         (should_warn_for_misleading_indentation): Use global_dc's
396         file_cache.
397         (assert_get_visual_column_succeeds): Add file_cache param.
398         (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): Likewise.
399         (assert_get_visual_column_fails): Likewise.
400         (define ASSERT_GET_VISUAL_COLUMN_FAILS): Likewise.
401         (selftest::test_get_visual_column): Create and use a temporary
402         file_cache.
404 2023-11-14  Jakub Jelinek  <jakub@redhat.com>
406         PR c/111309
407         * c-common.cc (check_builtin_function_arguments): Handle
408         BUILT_IN_{CLZ,CTZ,CLRSB,FFS,PARITY,POPCOUNT}G.
409         * c-gimplify.cc (c_gimplify_expr): If __builtin_c[lt]zg second
410         argument hasn't been folded into constant yet, transform it to one
411         argument call inside of a COND_EXPR which for first argument 0
412         returns the second argument.
414 2023-11-11  Martin Uecker  <uecker@tugraz.at>
416         PR c/110815
417         PR c/112428
418         * c-attribs.cc (build_attr_access_from_parms): Synthesize
419         nonnull attribute for parameters declared with `static`.
421 2023-11-09  Florian Weimer  <fweimer@redhat.com>
423         * c.opt (Wreturn-mismatch): New.
425 2023-11-08  Florian Weimer  <fweimer@redhat.com>
427         * c.opt (fpermissive): Enable for C and ObjC.
428         * c-opts.cc (c_common_post_options): Enable -fpermissive.
430 2023-11-07  Joseph Myers  <joseph@codesourcery.com>
432         * c-format.h (T2X_UI): Rename to T23_UI.
433         (T2X_UL): Rename to T23_UL.
434         (T2X_ULL): Rename to T23_ULL.
435         (T2X_US): Rename to T23_US.
436         (T2X_UC): Rename to T23_UC.
437         (T2X_ST): Rename to T23_ST.
438         (T2X_UPD): Rename to T23_UPD.
439         (T2X_UIM): Rename to T23_UIM.
440         (T2X_D32): Rename to T23_D32.
441         (T2X_D64): Rename to T23_D64.
442         (T2X_D128): Rename to T23_D128.
443         (T2X_I8): Rename to T23_I8.
444         (T2X_I16): Rename to T23_I16.
445         (T2X_I32): Rename to T23_I32.
446         (T2X_I64): Rename to T23_I64.
447         (T2X_U8): Rename to T23_U8.
448         (T2X_U16): Rename to T23_U16.
449         (T2X_U32): Rename to T23_U32.
450         (T2X_U64): Rename to T23_U64.
451         (T2X_IF8): Rename to T23_IF8.
452         (T2X_IF16): Rename to T23_IF16.
453         (T2X_IF32): Rename to T23_IF32.
454         (T2X_IF64): Rename to T23_IF64.
455         (T2X_UF8): Rename to T23_UF8.
456         (T2X_UF16): Rename to T23_UF16.
457         (T2X_UF32): Rename to T23_UF32.
458         (T2X_UF64): Rename to T23_UF64.
459         * c-format.cc: Update all uses of T2X_* macros to use T23_*.
461 2023-11-07  Kwok Cheung Yeung  <kcy@codesourcery.com>
463         * c-attribs.cc (c_common_attribute_table): Add attribute for
464         indirect functions.
465         * c-pragma.h (enum parma_omp_clause): Add entry for indirect clause.
467 2023-11-07  Joseph Myers  <joseph@codesourcery.com>
469         * c-common.cc (flag_isoc2x): Rename to flag_isoc23.
470         (c_common_reswords): Use D_C23 instead of D_C2X.
471         * c-common.h: Refer throughout to C23 instead of C2X in comments.
472         (D_C2X): Rename to D_C23.
473         (flag_isoc2x): Rename to flag_isoc23.
474         * c-cppbuiltin.cc (builtin_define_float_constants): Use
475         flag_isoc23 instead of flag_isoc2x.  Refer to C23 instead of C2x
476         in comments.
477         * c-format.cc: Use STD_C23 instead of STD_C2X and flag_isoc23
478         instead of flag_isoc2x.  Refer to C23 instead of C2X in comments.
479         * c-format.h: Use STD_C23 instead of STD_C2X.
480         * c-lex.cc: Use warn_c11_c23_compat instead of warn_c11_c2x_compat
481         and flag_isoc23 instead of flag_isoc2x.  Refer to C23 instead of
482         C2X in diagnostics.
483         * c-opts.cc: Use flag_isoc23 instead of flag_isoc2x.  Refer to C23
484         instead of C2X in comments.
485         (set_std_c2x): Rename to set_std_c23.
486         * c.opt (Wc11-c23-compat): Use CPP(cpp_warn_c11_c23_compat)
487         CppReason(CPP_W_C11_C23_COMPAT) Var(warn_c11_c23_compat) instead
488         of CPP(cpp_warn_c11_c2x_compat) CppReason(CPP_W_C11_C2X_COMPAT)
489         Var(warn_c11_c2x_compat).
491 2023-11-06  Joseph Myers  <joseph@codesourcery.com>
493         PR c/107954
494         * c.opt (Wc11-c2x-compat): Rename to Wc11-c23-compat and make into
495         a deprecated alias of Wc11-c23-compat.
496         (std=c2x): Rename to std=c23 and make into a deprecated alias of
497         std=c23.
498         (std=gnu2x): Rename to std=gnu23 and make into a deprecated alias
499         of std=gnu23.
500         (std=iso9899:2024): New option.  Alias of std=c23.
501         * c-lex.cc (interpret_float): Use OPT_Wc11_c23_compat instead of
502         OPT_Wc11_c2x_compat.
503         * c-opts.cc (c_common_handle_option): Use OPT_std_c23 instead of
504         OPT_std_c2x and OPT_std_gnu23 instead of OPT_std_gnu2x.
506 2023-11-05  Jakub Jelinek  <jakub@redhat.com>
508         * c-lex.cc (c_common_has_attribute): Return 1 for omp::directive
509         and omp::sequence with -fopenmp or -fopenmp-simd also for C, not
510         just for C++.  Return 1 for omp::decl with -fopenmp or -fopenmp-simd
511         for both C and C++.
513 2023-11-04  David Malcolm  <dmalcolm@redhat.com>
515         * c-pragma.cc:: (handle_pragma_push_options): Fix missing "GCC" in
516         name of pragma in "junk" message.
517         (handle_pragma_pop_options): Likewise.
519 2023-11-04  David Malcolm  <dmalcolm@redhat.com>
521         * c-common.cc: Update for changes to diagnostic_context.
522         * c-indentation.cc: Likewise.
523         * c-opts.cc: Likewise.
524         * c-warn.cc: Likewise.
526 2023-11-01  Martin Uecker  <uecker@tugraz.at>
528         PR c/71219
529         * c.opt (Walloc-size): New option.
531 2023-10-31  David Malcolm  <dmalcolm@redhat.com>
533         * c-warn.cc (warn_for_multistatement_macros): Update for removal
534         of MACRO_MAP_EXPANSION_POINT_LOCATION.
536 2023-10-27  Lewis Hyatt  <lhyatt@gmail.com>
538         PR preprocessor/87299
539         * c-pragma.cc (init_pragma): Register `#pragma GCC target' and
540         related pragmas in preprocess-only mode, and enable early handling.
541         (c_reset_target_pragmas): New function refactoring code from...
542         (handle_pragma_reset_options): ...here.
543         * c-pragma.h (c_reset_target_pragmas): Declare.
545 2023-10-26  David Malcolm  <dmalcolm@redhat.com>
547         * c-attribs.cc (c_common_attribute_table): Add
548         "null_terminated_string_arg".
549         (handle_null_terminated_string_arg_attribute): New.
551 2023-10-23  Lewis Hyatt  <lhyatt@gmail.com>
553         PR preprocessor/36887
554         * c-opts.cc (c_common_init_options): Pass new extra hash map
555         argument to cpp_create_reader().
557 2023-10-20  Marek Polacek  <polacek@redhat.com>
559         PR c/111884
560         * c-common.cc (c_common_get_alias_set): Return -1 for char8_t only
561         in C++.
563 2023-10-20  Patrick Palka  <ppalka@redhat.com>
565         * c-warn.cc (check_address_or_pointer_of_packed_member): Handle
566         type-dependent callee of CALL_EXPR.
568 2023-10-20  Alexandre Oliva  <oliva@adacore.com>
570         * c-attribs.cc (handle_expected_throw_attribute): New.
571         (c_common_attribute_table): Add expected_throw.
573 2023-10-19  Lewis Hyatt  <lhyatt@gmail.com>
575         PR c++/89038
576         * c-pragma.cc (handle_pragma_diagnostic_impl):  Handle
577         -Wunknown-pragmas during early processing.
579 2023-10-15  Jakub Jelinek  <jakub@redhat.com>
581         PR tree-optimization/111800
582         * c-warn.cc (match_case_to_enum_1): Assert w.get_precision ()
583         is smaller or equal to WIDE_INT_MAX_INL_PRECISION rather than
584         w.get_len () is smaller or equal to WIDE_INT_MAX_INL_ELTS.
586 2023-10-12  Jakub Jelinek  <jakub@redhat.com>
588         PR c/102989
589         * c-warn.cc (match_case_to_enum_1): Use wi::to_wide just once instead
590         of 3 times, assert get_len () is smaller than WIDE_INT_MAX_INL_ELTS.
592 2023-10-02  David Malcolm  <dmalcolm@redhat.com>
594         * c-common.cc (maybe_add_include_fixit): Update for renaming of
595         diagnostic_context's show_caret to m_source_printing.enabled.
596         * c-opts.cc (c_common_init_options): Update for renaming of
597         diagnostic_context's colorize_source_p to
598         m_source_printing.colorize_source_p.
600 2023-09-20  Jakub Jelinek  <jakub@redhat.com>
602         PR c++/111392
603         * c-omp.cc (c_omp_directives): Add commented out groupprivate
604         directive entry.
606 2023-09-19  Ben Boeckel  <ben.boeckel@kitware.com>
608         * c-opts.cc (c_common_handle_option): Add fdeps_file variable and
609         -fdeps-format=, -fdeps-file=, and -fdeps-target= parsing.
610         * c.opt: Add -fdeps-format=, -fdeps-file=, and -fdeps-target=
611         flags.
613 2023-09-19  Javier Martinez  <javier.martinez.bugzilla@gmail.com>
615         * c-attribs.cc (handle_hot_attribute): remove warning on
616         RECORD_TYPE and UNION_TYPE when in c_dialect_xx.
617         (handle_cold_attribute): Likewise.
619 2023-09-19  Jakub Jelinek  <jakub@redhat.com>
621         * c-common.cc (c_common_signed_or_unsigned_type): Return INTEGER_TYPE
622         for signed variant of unsigned _BitInt(1).
624 2023-09-06  Jakub Jelinek  <jakub@redhat.com>
626         PR c/102989
627         * c-attribs.cc (type_valid_for_vector_size): Reject vector types
628         with BITINT_TYPE elements even if they have mode precision and
629         suitable size.
631 2023-09-06  Jakub Jelinek  <jakub@redhat.com>
633         PR c/102989
634         * c-common.cc (c_common_reswords): Add _BitInt as keyword.
635         (unsafe_conversion_p): Handle BITINT_TYPE like INTEGER_TYPE.
636         (c_common_signed_or_unsigned_type): Handle BITINT_TYPE.
637         (c_common_truthvalue_conversion, c_common_get_alias_set,
638         check_builtin_function_arguments): Handle BITINT_TYPE like
639         INTEGER_TYPE.
640         (sync_resolve_size): Add ORIG_FORMAT argument.  If
641         FETCH && !ORIG_FORMAT, type is BITINT_TYPE, return -1 if size isn't
642         one of 1, 2, 4, 8 or 16 or if it is 16 but TImode is not supported.
643         (atomic_bitint_fetch_using_cas_loop): New function.
644         (resolve_overloaded_builtin): Adjust sync_resolve_size caller.  If
645         -1 is returned, use atomic_bitint_fetch_using_cas_loop to lower it.
646         Formatting fix.
647         (keyword_begins_type_specifier): Handle RID_BITINT.
648         * c-common.h (enum rid): Add RID_BITINT enumerator.
649         * c-cppbuiltin.cc (c_cpp_builtins): For C call
650         targetm.c.bitint_type_info and predefine __BITINT_MAXWIDTH__
651         and for -fbuilding-libgcc also __LIBGCC_BITINT_LIMB_WIDTH__ and
652         __LIBGCC_BITINT_ORDER__ macros if _BitInt is supported.
653         * c-lex.cc (interpret_integer): Handle CPP_N_BITINT.
654         * c-pretty-print.cc (c_pretty_printer::simple_type_specifier,
655         c_pretty_printer::direct_abstract_declarator,
656         c_pretty_printer::direct_declarator, c_pretty_printer::declarator):
657         Handle BITINT_TYPE.
658         (pp_c_integer_constant): Handle printing of large precision wide_ints
659         which would buffer overflow digit_buffer.
660         * c-warn.cc (conversion_warning, warnings_for_convert_and_check,
661         warnings_for_convert_and_check): Handle BITINT_TYPE like
662         INTEGER_TYPE.
664 2023-09-06  Jakub Jelinek  <jakub@redhat.com>
666         PR c/102989
667         * c-ubsan.cc (ubsan_instrument_shift): Use UBSAN_PRINT_FORCE_INT
668         for type0 type descriptor.
670 2023-09-06  Jakub Jelinek  <jakub@redhat.com>
672         * c-lex.cc (interpret_float): For C diagnostics on FN and FNx suffixes
673         append " before C2X" to diagnostics text and follow behavior of
674         pedwarn_c11.
676 2023-09-01  Jakub Jelinek  <jakub@redhat.com>
678         PR c++/111069
679         * c-opts.cc (c_common_post_options): Change latest_abi_version to 19.
681 2023-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
683         * c.opt: Change spelling to macOS.
685 2023-08-31  Richard Biener  <rguenther@suse.de>
687         PR middle-end/111253
688         * c-pretty-print.cc (c_pretty_printer::primary_expression):
689         Only dump gimple_assign_single_p SSA def RHS.
691 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
693         * c-common.h (c_omp_check_loop_binding_exprs): Declare.
694         * c-omp.cc: Include tree-iterator.h.
695         (find_binding_in_body): New.
696         (check_loop_binding_expr_r): New.
697         (LOCATION_OR): New.
698         (check_looop_binding_expr): New.
699         (c_omp_check_loop_binding_exprs): New.
701 2023-08-25  Uros Bizjak  <ubizjak@gmail.com>
703         * c-format.cc (read_any_format_width):
704         Rename TRUE/FALSE to true/false.
706 2023-08-20  Martin Uecker  <uecker@tugraz.at>
708         * c-format.cc: Fix identation.
710 2023-08-20  Tomas Kalibera  <tomas.kalibera@gmail.com>
712         PR c/95130
713         * c-format.cc: skip default format for printf symbol if
714         explicitly declared by prototype.
716 2023-08-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
718         PR c/106537
719         * c.opt (Wcompare-distinct-pointer-types): New option.
721 2023-08-14  Jason Merrill  <jason@redhat.com>
723         * c-cppbuiltin.cc (c_cpp_builtins): Adjust __cpp_concepts.
725 2023-08-11  Jakub Jelinek  <jakub@redhat.com>
727         * c-common.cc (c_common_reswords): Add __typeof_unqual
728         and __typeof_unqual__ spellings of typeof_unqual.
730 2023-08-11  Martin Uecker  <uecker@tugraz.at>
732         PR c/84510
733         * c.opt: Enable warning for C and ObjC.
735 2023-08-05  Martin Uecker  <uecker@tugraz.at>
737         PR c/98536
738         * c-warn.cc (warn_parm_array_mismatch): Do not warn if more
739         bounds are specified.
741 2023-08-04  Tamar Christina  <tamar.christina@arm.com>
743         * c-pragma.h (enum pragma_kind): Add PRAGMA_NOVECTOR.
744         * c-pragma.cc (init_pragma): Use it.
746 2023-08-01  Lewis Hyatt  <lhyatt@gmail.com>
748         * c-common.h (c_init_preprocess): Declare new function.
749         * c-opts.cc (c_common_init): Call it.
750         * c-lex.cc (cb_def_pragma): Add a comment.
751         (get_token): New function wrapping cpp_get_token.
752         (c_lex_with_flags): Use the new wrapper function to support
753         obtaining tokens in preprocess_only mode.
754         (lex_string): Likewise.
755         * c-pragma.cc (pragma_diagnostic_lex_normal): Rename to...
756         (pragma_diagnostic_lex): ...this.
757         (pragma_diagnostic_lex_pp): Remove.
758         (handle_pragma_diagnostic_impl): Call pragma_diagnostic_lex () in
759         all modes.
760         (c_pp_invoke_early_pragma_handler): Adapt to support pragma_lex ()
761         usage.
762         * c-pragma.h (pragma_lex_discard_to_eol): Declare.
764 2023-07-31  Hamza Mahfooz  <someguy@effective-light.com>
766         PR c/65213
767         * c.opt (-Wmissing-variable-declarations): New option.
769 2023-07-20  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
771         PR middle-end/77928
772         * c-common.cc (check_builtin_function_arguments):
773         Handle BUILT_IN_ISEQSIG.
775 2023-07-05  Robin Dapp  <rdapp@ventanamicro.com>
776             Juzhe-Zhong  <juzhe.zhong@rivai.ai>
778         * c-common.cc (c_common_type_for_mode): Use GET_MODE_PRECISION.
780 2023-06-29  Qing Zhao  <qing.zhao@oracle.com>
782         PR c/77650
783         * c.opt: New option -Wflex-array-member-not-at-end.
785 2023-06-28  Jason Merrill  <jason@redhat.com>
787         PR c++/110344
788         * c-cppbuiltin.cc (c_cpp_builtins): Update __cpp_constexpr.
790 2023-06-26  Richard Biener  <rguenther@suse.de>
792         * c-common.cc (shorten_binary_op): Exit early for VECTOR_TYPE
793         operations.
795 2023-06-23  Marek Polacek  <polacek@redhat.com>
797         * c-common.h (cxx_dialect): Add cxx26 as a dialect.
798         * c-opts.cc (set_std_cxx26): New.
799         (c_common_handle_option): Set options when -std={c,gnu}++2{c,6} is
800         enabled.
801         (c_common_post_options): Adjust comments.
802         * c.opt: Add options for -std=c++26, std=c++2c, -std=gnu++26,
803         and -std=gnu++2c.
804         (std=c++2b): Mark as Undocumented.
805         (std=c++23): No longer Undocumented.
807 2023-06-21  Alexander Monakov  <amonakov@ispras.ru>
809         * c-gimplify.cc (fma_supported_p): New helper.
810         (c_gimplify_expr) [PLUS_EXPR, MINUS_EXPR]: Implement FMA
811         contraction.
813 2023-06-16  Alex Coplan  <alex.coplan@arm.com>
815         * c.opt (Welaborated-enum-base): New.
817 2023-06-13  David Malcolm  <dmalcolm@redhat.com>
819         PR c/84890
820         * known-headers.cc
821         (suggest_missing_header::~suggest_missing_header): Reword note to
822         avoid negative tone of "forgetting".
824 2023-06-07  Jason Merrill  <jason@redhat.com>
826         PR c++/58487
827         * c.opt: Add -Wnrvo.
829 2023-05-26  Martin Uecker  <uecker@tugraz.at>
831         * c-attribs.cc (build_attr_access_from_parms): Split loop to first
832         record all parameters.
834 2023-05-18  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
836         * c-ada-spec.cc (has_static_fields): Use _P() defines from tree.h.
837         (dump_ada_declaration): Ditto.
838         (dump_ada_structure): Ditto.
839         * c-common.cc (unsafe_conversion_p): Ditto.
840         (shorten_compare): Ditto.
841         (pointer_int_sum): Ditto.
842         (c_common_truthvalue_conversion): Ditto.
843         (scalar_to_vector): Ditto.
844         * c-common.h (gnu_vector_type_p): Ditto.
845         * c-omp.cc (c_omp_depend_t_p): Ditto.
846         (c_omp_split_clauses): Ditto.
847         * c-ubsan.cc (ubsan_instrument_division): Ditto.
848         * c-warn.cc (conversion_warning): Ditto.
849         (warnings_for_convert_and_check): Ditto.
851 2023-05-18  Joseph Myers  <joseph@codesourcery.com>
853         * c-format.cc (print_char_table): Handle %B like %b.
855 2023-05-15  Joseph Myers  <joseph@codesourcery.com>
857         * c-lex.cc (c_common_has_attribute): Use 202311 as
858         __has_c_attribute return for all C2x attributes.
860 2023-05-15  Patrick Palka  <ppalka@redhat.com>
862         * c-cppbuiltin.cc (c_cpp_builtins): Predefine __cpp_auto_cast
863         for C++23.
865 2023-05-01  Marek Polacek  <polacek@redhat.com>
867         * c-ubsan.cc (ubsan_maybe_instrument_array_ref): Don't copy_node.
869 2023-03-28  David Malcolm  <dmalcolm@redhat.com>
871         PR c/107002
872         * c-common.h (check_for_xor_used_as_pow): Add "rhs_loc" param.
873         * c-warn.cc (check_for_xor_used_as_pow): Add "rhs_loc" param.
874         Reject cases where involving macro expansions.
876 2023-03-28  Jason Merrill  <jason@redhat.com>
878         PR c++/107163
879         * c-common.cc (verify_tree): Don't use sequenced handling
880         for COMPONENT_REF.
882 2023-03-17  Jakub Jelinek  <jakub@redhat.com>
884         PR c/109151
885         * c-ubsan.cc (ubsan_instrument_division): Handle all scalar integral
886         types rather than just INTEGER_TYPE.
888 2023-03-10  Marek Polacek  <polacek@redhat.com>
890         PR sanitizer/108060
891         PR sanitizer/109050
892         * c-gimplify.cc (ubsan_walk_array_refs_r): For a MODIFY_EXPR, instrument
893         the RHS before the LHS.
895 2023-03-04  Jakub Jelinek  <jakub@redhat.com>
897         PR c/107465
898         * c-warn.cc (warn_for_sign_compare): Don't warn for unset bits
899         above innermost zero extension of BIT_NOT_EXPR result.
901 2023-03-04  Jakub Jelinek  <jakub@redhat.com>
903         PR c/107465
904         * c-warn.cc (warn_for_sign_compare): If c_common_get_narrower
905         doesn't return a narrower result, use TYPE_UNSIGNED to set unsignedp0
906         and unsignedp1.  For the one BIT_NOT_EXPR case vs. one without,
907         only check for constant in the non-BIT_NOT_EXPR operand, use std::swap
908         to simplify the code, only warn if BIT_NOT_EXPR operand is extended
909         from narrower unsigned, fix up computation of mask for the constant
910         cases and for unsigned other operand case handle differently
911         BIT_NOT_EXPR result being sign vs. zero extended.
913 2023-03-04  Jakub Jelinek  <jakub@redhat.com>
915         PR c/107846
916         * c-warn.cc: Include langhooks.h.
917         (maybe_warn_shift_overflow): Set type0 to what TREE_TYPE (op0)
918         promotes to rather than TREE_TYPE (op0) itself, if TREE_TYPE (op0)
919         is narrower than type0 and unsigned, use wi::min_precision with
920         UNSIGNED and fold_convert op0 to type0 before emitting the warning.
922 2023-03-03  Alexandre Oliva  <oliva@adacore.com>
924         * c-common.cc (c_common_nodes_and_builtins): Take
925         wchar_type_node for wint_type_node when aliased.
926         (c_stddef_cpp_builtins): Define __WINT_TYPE__, when aliased to
927         wchar_t, to the underlying type rather than wchar_t in
928         non-C++.
929         * c-cppbuiltin.cc (type_suffix): Handle wchar_type_node.
931 2023-02-28  Marek Polacek  <polacek@redhat.com>
933         PR c++/107938
934         * c-warn.cc (check_address_or_pointer_of_packed_member): Check
935         POINTER_TYPE_P.
937 2023-02-28  Jakub Jelinek  <jakub@redhat.com>
939         PR sanitizer/108894
940         * c-common.h (c_strict_flex_array_level_of): Declare.
941         * c-common.cc (c_strict_flex_array_level_of): New function,
942         moved and renamed from c-decl.cc's strict_flex_array_level_of.
943         * c-ubsan.cc (ubsan_instrument_bounds): Fix comment typo.  For
944         C check c_strict_flex_array_level_of whether a trailing array
945         should be treated as flexible member like.  Handle C [0] arrays.
946         Add 1 + index_off_by_one rather than index_off_by_one to bounds
947         and use tree_int_cst_lt rather than tree_int_cst_le for idx vs.
948         bounds comparison.
950 2023-02-23  Jakub Jelinek  <jakub@redhat.com>
952         PR translation/108890
953         * c.opt (fcontracts): Fix description.
955 2023-02-22  Marek Polacek  <polacek@redhat.com>
957         PR c/108880
958         * c-gimplify.cc (c_genericize_control_stmt) <case STATEMENT_LIST>: Pass
959         pset to walk_tree_1.
960         (c_genericize): Call walk_tree with an explicit pset.
962 2023-02-18  Martin Uecker  <uecker@tugraz.at>
964         PR c/105660
965         * c-attribs.cc (append_access_attr): Use order of arguments when
966         construction string.
967         (append_access_attr_idxs): Rename and make static.
968         * c-warn.cc (warn_parm_array_mismatch): Add assertion.
970 2023-02-16  Patrick Palka  <ppalka@redhat.com>
972         * c-common.h: Mechanically drop static from static inline
973         functions via s/^static inline/inline/g.
975 2023-02-01  Jason Merrill  <jason@redhat.com>
977         * c.opt: Add -Wno-changes-meaning.
979 2023-01-31  Marek Polacek  <polacek@redhat.com>
981         PR c++/107593
982         PR c++/108597
983         * c-common.h (instantiation_dependent_expression_p): Declare.
984         * c-warn.cc (warn_duplicated_cond_add_or_warn): If the condition
985         is dependent, invalidate the chain.
987 2023-01-26  Marek Polacek  <polacek@redhat.com>
989         PR c++/105300
990         * c-pragma.cc (handle_pragma_message): Warn for CPP_STRING_USERDEF.
992 2023-01-18  Marek Polacek  <polacek@redhat.com>
994         PR c/108424
995         * c-common.cc (check_case_value): Check INTEGRAL_TYPE_P.
997 2023-01-14  Jakub Jelinek  <jakub@redhat.com>
999         PR c++/108365
1000         * c-common.h (may_shorten_divmod): New static inline function.
1002 2023-01-13  Eric Botcazou  <ebotcazou@adacore.com>
1004         * c-ada-spec.cc (is_float32): New function.
1005         (is_float64): Likewise.
1006         (is_float128): Tweak.
1007         (dump_ada_node) <REAL_TYPE>: Call them to recognize more types.
1009 2023-01-12  Lewis Hyatt  <lhyatt@gmail.com>
1011         PR preprocessor/108244
1012         * c-pragma.cc (c_register_pragma_1): Don't attempt to register any
1013         deferred pragmas if -fdirectives-only.
1014         (init_pragma): Likewise.
1016 2023-01-09  Martin Liska  <mliska@suse.cz>
1018         PR c/107993
1019         * c-attribs.cc (handle_target_clones_attribute): Check for
1020         string constant for all target_clone attribute values.
1022 2023-01-03  Florian Weimer  <fweimer@redhat.com>
1024         * c-cppbuiltin.cc (c_cpp_builtins): Define
1025         __LIBGCC_DWARF_CIE_DATA_ALIGNMENT__.
1027 2023-01-03  Florian Weimer  <fweimer@redhat.com>
1029         Revert:
1030         2023-01-03  Florian Weimer  <fweimer@redhat.com>
1032         * c-cppbuiltin.cc (__LIBGCC_DWARF_REG_SIZES_CONSTANT__):
1033         Define if constant is known.
1035 2023-01-03  Florian Weimer  <fweimer@redhat.com>
1037         Revert:
1038         2023-01-02  Florian Weimer  <fweimer@redhat.com>
1040         * c-cppbuiltin.cc (c_cpp_builtins): Define
1041         __LIBGCC_DWARF_CIE_DATA_ALIGNMENT__.
1043 2023-01-02  Florian Weimer  <fweimer@redhat.com>
1045         * c-cppbuiltin.cc (c_cpp_builtins): Define
1046         __LIBGCC_DWARF_CIE_DATA_ALIGNMENT__.
1048 2023-01-02  Florian Weimer  <fweimer@redhat.com>
1050         * c-cppbuiltin.cc (__LIBGCC_DWARF_REG_SIZES_CONSTANT__):
1051         Define if constant is known.
1053 2022-12-19  Marek Polacek  <polacek@redhat.com>
1055         PR c/98487
1056         * c-format.cc (check_function_format): Use get_attribute_name.
1058 2022-12-16  Qing Zhao  <qing.zhao@oracle.com>
1060         * c.opt (Wstrict-flex-arrays): New option.
1062 2022-12-02  Andrew MacLeod  <amacleod@redhat.com>
1064         * c-attribs.cc (handle_deprecated_attribute): Use type when
1065         using TYPE_NAME.
1067 2022-12-02  Jakub Jelinek  <jakub@redhat.com>
1069         PR c++/84469
1070         * c-omp.cc (c_omp_is_loop_iterator): For range for with structured
1071         binding return TREE_VEC_LENGTH (d->declv) even if decl is equal
1072         to any of the structured binding decls.
1074 2022-11-30  Iskander Shakirzyanov  <iskander@ispras.ru>
1075             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1077         PR driver/107787
1078         * c-common.cc (fold_offsetof,
1079         convert_vector_to_array_for_subscript): Use OPT_Warray_bounds_
1080         instead of OPT_Warray_bounds.
1082 2022-11-24  Jakub Jelinek  <jakub@redhat.com>
1084         * c.opt (fcontract-role=, fcontract-semantic=): Terminate descriptions
1085         with a dot.
1087 2022-11-23  Andrew Pinski  <apinski@marvell.com>
1088             Jakub Jelinek  <jakub@redhat.com>
1090         PR c/107127
1091         * c-gimplify.cc (c_genericize): Use walk_tree_without_duplicates
1092         instead of walk_tree for c_genericize_control_r.
1094 2022-11-23  Jakub Jelinek  <jakub@redhat.com>
1096         * c.opt (fcontract-assumption-mode=, fcontract-continuation-mode=,
1097         fcontract-role=, fcontract-semantic=): Add RejectNegative.
1098         (fcontract-build-level=): Terminate description with dot.
1100 2022-11-19  Jakub Jelinek  <jakub@redhat.com>
1102         * c-cppbuiltin.cc (c_cpp_builtins): Bump __cpp_constexpr
1103         value from 202207L to 202211L.
1105 2022-11-19  Jeff Chapman II  <jchapman@lock3software.com>
1106             Andrew Sutton   <asutton@lock3software.com>
1107             Andrew Marmaduke  <amarmaduke@lock3software.com>
1108             Michael Lopez  <mlopez@lock3software.com>
1109             Jason Merrill   <jason@redhat.com>
1111         * c.opt: Add contracts flags.
1112         * c-cppbuiltin.cc (c_cpp_builtins): Add contracts feature-test
1113         macros.
1115 2022-11-16  Marek Polacek  <polacek@redhat.com>
1117         PR c++/106649
1118         * c-cppbuiltin.cc (c_cpp_builtins): Update value of __cpp_constexpr for
1119         C++23.
1120         * c-opts.cc (c_common_post_options): Set warn_invalid_constexpr
1121         depending on cxx_dialect.
1122         * c.opt (Winvalid-constexpr): New option.
1124 2022-11-16  Jakub Jelinek  <jakub@redhat.com>
1126         * c-common.def (CONCEPT_DECL): New tree, moved here from
1127         cp-tree.def.
1128         * c-common.cc (c_common_init_ts): Handle CONCEPT_DECL.
1129         * c-attribs.cc (handle_deprecated_attribute): Allow deprecated
1130         attribute on CONCEPT_DECL.
1132 2022-11-15  Lewis Hyatt  <lhyatt@gmail.com>
1134         * c-opts.cc (c_finish_options): Use special_fname_builtin () rather
1135         than a hard-coded string.
1137 2022-11-15  Jakub Jelinek  <jakub@redhat.com>
1139         * c-cppbuiltin.cc (c_cpp_builtins): Bump C++23
1140         __cpp_multidimensional_subscript macro value to 202211L.
1142 2022-11-15  Patrick Palka  <ppalka@redhat.com>
1144         PR c++/107638
1145         * c-lex.cc (c_common_has_attribute): Return 1 for init_priority
1146         iff SUPPORTS_INIT_PRIORITY.
1148 2022-11-14  Martin Liska  <mliska@suse.cz>
1150         Revert:
1151         2022-11-09  Martin Liska  <mliska@suse.cz>
1153         * c-target.def: Port to RST.
1155 2022-11-12  Joseph Myers  <joseph@codesourcery.com>
1157         * c-common.cc (c_common_reswords): Use D_C2X instead of D_CXXONLY.
1159 2022-11-11  Jonathan Wakely  <jwakely@redhat.com>
1161         PR c/85487
1162         * c-pragma.cc (handle_pragma_ignore): New function.
1163         (init_pragma): Register region and endregion pragmas.
1165 2022-11-09  Martin Liska  <mliska@suse.cz>
1167         * c-target.def: Port to RST.
1169 2022-11-05  Lewis Hyatt  <lhyatt@gmail.com>
1171         PR preprocessor/55971
1172         * c-ppoutput.cc (adjust_for_newlines): Update comment.
1174 2022-11-03  Jason Merrill  <jason@redhat.com>
1176         * c-opts.cc (c_common_post_options): -fconcepts no longer implies
1177         -fconcepts-ts before C++20.
1179 2022-10-28  Joseph Myers  <joseph@codesourcery.com>
1181         * c-common.cc (def_fn_type): Call build_function_type for
1182         zero-argument variable-argument function.
1183         (c_common_nodes_and_builtins): Build default_function_type with
1184         build_function_type.
1185         * c.opt (fallow-parameterless-variadic-functions): Mark as ignored
1186         option.
1188 2022-10-28  Joseph Myers  <joseph@codesourcery.com>
1190         PR c/61469
1191         * c-common.h (ENUM_UNDERLYING_TYPE, ENUM_FIXED_UNDERLYING_TYPE_P):
1192         New.  Moved from cp/cp-tree.h.
1193         * c-warn.cc (warnings_for_convert_and_check): Do not consider
1194         conversions to enum with underlying type bool to overflow.
1196 2022-10-26  Marek Polacek  <polacek@redhat.com>
1198         PR c++/106393
1199         * c.opt (Wdangling-reference): New.
1201 2022-10-19  Joseph Myers  <joseph@codesourcery.com>
1203         * c-format.h (enum format_lengths): Add FMT_LEN_w8, FMT_LEN_w16,
1204         FMT_LEN_w32, FMT_LEN_w64, FMT_LEN_wf8, FMT_LEN_wf16, FMT_LEN_wf32
1205         and FMT_LEN_wf64.
1206         (NOARGUMENTS, NOLENGTHS): Update definitions.
1207         (T_I8, T2X_I8, T_I16, T2X_I16, T_I32, T2X_I32, T_I64, T2X_I64)
1208         (T_U8, T2X_U8, T_U16, T2X_U16, T_U32, T2X_U32, T_U64, T2X_U64)
1209         (T_IF8, T2X_IF8, T_IF16, T2X_IF16, T_IF32, T2X_IF32, T_IF64)
1210         (T2X_IF64, T_UF8, T2X_UF8, T_UF16, T2X_UF16, T_UF32, T2X_UF32)
1211         (T_UF64, T2X_UF64): New macros.
1212         * c-format.cc (printf_length_specs, scanf_length_specs): Add wN
1213         and wfN length modifiers.
1214         (print_char_table, scan_char_table): Add entries using wN and wfN
1215         length modifiers.
1217 2022-10-18  Joseph Myers  <joseph@codesourcery.com>
1219         PR c/36113
1220         * c-common.cc (c_common_type_for_size): Add fallback to
1221         widest_unsigned_literal_type_node or
1222         widest_integer_literal_type_node for precision that may not
1223         exactly match the precision of those types.
1225 2022-10-14  Jakub Jelinek  <jakub@redhat.com>
1227         * c-cppbuiltin.cc (c_cpp_builtins): If bfloat16_type_node,
1228         predefine __BFLT16_*__ macros and for C++23 also
1229         __STDCPP_BFLOAT16_T__.  Predefine bfloat16_type_node related
1230         macros for -fbuilding-libgcc.
1231         * c-lex.cc (interpret_float): Handle CPP_N_BFLOAT16.
1233 2022-10-14  Jakub Jelinek  <jakub@redhat.com>
1235         PR middle-end/323
1236         PR c++/107097
1237         * c-common.def (EXCESS_PRECISION_EXPR): Remove comment part about
1238         the tree being specific to C/ObjC.
1239         * c-opts.cc (c_common_post_options): Handle flag_excess_precision
1240         in C++ the same as in C.
1241         * c-lex.cc (interpret_float): Set const_type to excess_precision ()
1242         even for C++.
1244 2022-10-13  Joseph Myers  <joseph@codesourcery.com>
1246         * c-cppbuiltin.cc (builtin_define_float_constants): Do not use
1247         value 2 for *_IS_IEC_60559.
1249 2022-10-12  Lewis Hyatt  <lhyatt@gmail.com>
1251         PR preprocessor/60014
1252         PR preprocessor/60723
1253         * c-ppoutput.cc (class token_streamer): Remove member
1254         line_marker_emitted to...
1255         (token_streamer::stream): ...a local variable here. Set
1256         print.prev_was_system_token on all code paths.
1258 2022-10-10  Nathan Sidwell  <nathan@acm.org>
1260         * c-opts.cc (c_common_post_options): Bump abi to 18.
1262 2022-10-10  Marek Polacek  <polacek@redhat.com>
1264         PR c++/106937
1265         * c-pretty-print.cc (pp_c_specifier_qualifier_list): Print only GNU
1266         attributes here.
1267         (c_pretty_printer::direct_abstract_declarator): Print the standard [[]]
1268         attributes here.
1269         (pp_c_attributes): Remove.
1270         (pp_c_attributes_display): Print the [[]] form if appropriate.  Use
1271         get_attribute_name.  Don't print a trailing space when printing the
1272         [[]] form.
1273         * c-pretty-print.h (pp_c_attributes): Remove.
1275 2022-10-07  Qing Zhao  <qing.zhao@oracle.com>
1277         * c-attribs.cc (handle_strict_flex_array_attribute): New function.
1278         (c_common_attribute_table): New item for strict_flex_array.
1279         * c.opt: (fstrict-flex-arrays): New option.
1280         (fstrict-flex-arrays=): New option.
1282 2022-10-07  Martin Liska  <mliska@suse.cz>
1284         * name-hint.h: Use std::move.
1286 2022-10-07  Jakub Jelinek  <jakub@redhat.com>
1288         * c-common.cc (attribute_fallthrough_p): Lookup fallthrough attribute
1289         only in gnu namespace or as standard attribute, treat fallthrough
1290         attributes in other namespaces like any other unknown attribute.
1292 2022-10-06  Joseph Myers  <joseph@codesourcery.com>
1294         * c-common.cc (c_common_reswords): Mark typeof as D_EXT11.  Add
1295         typeof_unqual.
1296         * c-common.h (enum rid): Add RID_TYPEOF_UNQUAL.
1297         (D_EXT11): New macro.  Values of subsequent macros updated.
1299 2022-10-06  Jakub Jelinek  <jakub@redhat.com>
1301         PR c++/106654
1302         * c-attribs.cc (handle_assume_attribute): New function.
1303         (c_common_attribute_table): Add entry for assume attribute.
1304         * c-lex.cc (c_common_has_attribute): Handle
1305         __have_cpp_attribute (assume).
1307 2022-10-04  Jakub Jelinek  <jakub@redhat.com>
1309         * c-omp.cc (c_omp_directives): Uncomment begin declare target
1310         entry.
1312 2022-10-03  Patrick Palka  <ppalka@redhat.com>
1314         * c-common.cc (c_common_reswords): Use RID_IS_SAME instead of
1315         RID_IS_SAME_AS.
1317 2022-10-03  Joseph Myers  <joseph@codesourcery.com>
1319         * c-cppbuiltin.cc (builtin_define_float_constants): Do not
1320         special-case __*_EPSILON__ setting for IBM long double for C2x.
1322 2022-09-30  Patrick Palka  <ppalka@redhat.com>
1324         * c-common.cc (c_common_reswords): Use cp/cp-trait.def to handle
1325         C++ traits.
1326         * c-common.h (enum rid): Likewise.
1328 2022-09-29  Joseph Myers  <joseph@codesourcery.com>
1330         * c-lex.cc (c_common_has_attribute): Handle noreturn attribute for
1331         C.
1333 2022-09-29  Patrick Palka  <ppalka@redhat.com>
1335         * c-common.cc (c_common_reswords): Add __remove_cv,
1336         __remove_reference and __remove_cvref.
1337         * c-common.h (enum rid): Add RID_REMOVE_CV, RID_REMOVE_REFERENCE
1338         and RID_REMOVE_CVREF.
1340 2022-09-27  Marek Polacek  <polacek@redhat.com>
1342         PR c++/101165
1343         PR c++/106882
1344         * c-cppbuiltin.cc (c_cpp_builtins): Define __cpp_implicit_move.
1346 2022-09-27  Marek Polacek  <polacek@redhat.com>
1348         * c-format.cc (c_keywords): Drop nothrow.
1350 2022-09-27  Jakub Jelinek  <jakub@redhat.com>
1352         PR c++/106651
1353         * c-cppbuiltin.cc (c_cpp_builtins): Predefine
1354         __cpp_static_call_operator=202207L for C++23.
1356 2022-09-27  Jakub Jelinek  <jakub@redhat.com>
1358         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ASSUME,
1359         PRAGMA_OMP_ASSUMES and PRAGMA_OMP_BEGIN.  Rename
1360         PRAGMA_OMP_END_DECLARE_TARGET to PRAGMA_OMP_END.
1361         * c-pragma.cc (omp_pragmas): Add assumes and begin.
1362         For end rename PRAGMA_OMP_END_DECLARE_TARGET to PRAGMA_OMP_END.
1363         (omp_pragmas_simd): Add assume.
1364         * c-common.h (c_omp_directives): Declare.
1365         * c-omp.cc (omp_directives): Rename to ...
1366         (c_omp_directives): ... this.  No longer static.  Uncomment
1367         assume, assumes, begin assumes and end assumes entries.
1368         In end declare target entry rename PRAGMA_OMP_END_DECLARE_TARGET
1369         to PRAGMA_OMP_END.
1370         (c_omp_categorize_directive): Adjust for omp_directives to
1371         c_omp_directives renaming.
1373 2022-09-27  Jakub Jelinek  <jakub@redhat.com>
1375         PR c++/106652
1376         PR c++/85518
1377         * c-common.cc (c_common_reswords): Change _Float{16,32,64,128} and
1378         _Float{32,64,128}x flags from D_CONLY to 0.
1379         (shorten_binary_op): Punt if common_type returns error_mark_node.
1380         (shorten_compare): Likewise.
1381         (c_common_nodes_and_builtins): For C++ record _Float{16,32,64,128}
1382         and _Float{32,64,128}x builtin types if available.  For C++
1383         clear float128t_type_node.
1384         * c-cppbuiltin.cc (c_cpp_builtins): Predefine
1385         __STDCPP_FLOAT{16,32,64,128}_T__ for C++23 if supported.
1386         * c-lex.cc (interpret_float): For q/Q suffixes prefer
1387         float128t_type_node over float128_type_node.  Allow
1388         {f,F}{16,32,64,128} suffixes for C++ if supported with pedwarn
1389         for C++20 and older.  Allow {f,F}{32,64,128}x suffixes for C++
1390         with pedwarn.  Don't call excess_precision_type for C++.
1392 2022-09-26  Marek Polacek  <polacek@redhat.com>
1394         PR c++/106656
1395         * c-cppbuiltin.cc (c_cpp_builtins): Update value of __cpp_char8_t
1396         for C++20.
1398 2022-09-23  Marek Polacek  <polacek@redhat.com>
1400         PR c++/106784
1401         * c-common.cc (c_common_reswords): Add __is_convertible and
1402         __is_nothrow_convertible.
1403         * c-common.h (enum rid): Add RID_IS_CONVERTIBLE and
1404         RID_IS_NOTHROW_CONVERTIBLE.
1406 2022-09-22  David Malcolm  <dmalcolm@redhat.com>
1408         PR c/106830
1409         * c-warn.cc (check_for_xor_used_as_pow): Don't try checking
1410         values that don't fit in uhwi.
1412 2022-09-15  Richard Biener  <rguenther@suse.de>
1414         * c-common.h (build_void_list_node): Remove.
1415         * c-common.cc (c_common_nodes_and_builtins): Do not initialize
1416         void_list_node.
1418 2022-09-09  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1420         * c-format.cc (convert_format_name_to_system_name): Fix warning.
1422 2022-09-07  Joseph Myers  <joseph@codesourcery.com>
1424         * c-common.cc (c_common_reswords): Use D_C2X instead of D_CXXONLY
1425         for alignas, alignof, bool, false, static_assert, thread_local and
1426         true.
1428 2022-09-07  Jakub Jelinek  <jakub@redhat.com>
1430         * c.opt (Winvalid-utf8): Use ObjC instead of objC.  Remove
1431         " in comments" from description.
1432         (Wunicode): New option.
1434 2022-09-06  Jakub Jelinek  <jakub@redhat.com>
1436         PR c/106836
1437         * c-omp.cc (c_omp_split_clauses): Handle OMP_CLAUSE_DOACROSS.
1439 2022-09-03  Jakub Jelinek  <jakub@redhat.com>
1441         * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_DOACROSS.
1442         * c-omp.cc (c_finish_omp_depobj): Check also for OMP_CLAUSE_DOACROSS
1443         clause and diagnose it.  Don't handle OMP_CLAUSE_DEPEND_SOURCE and
1444         OMP_CLAUSE_DEPEND_SINK.  Assert kind is not OMP_CLAUSE_DEPEND_INVALID.
1446 2022-09-02  David Malcolm  <dmalcolm@redhat.com>
1448         PR c/90885
1449         * c-common.h (check_for_xor_used_as_pow): New decl.
1450         * c-lex.cc (c_lex_with_flags): Add DECIMAL_INT to flags as appropriate.
1451         * c-warn.cc (check_for_xor_used_as_pow): New.
1452         * c.opt (Wxor-used-as-pow): New.
1454 2022-09-01  Jason Merrill  <jason@redhat.com>
1456         * c-common.cc (c_common_nodes_and_builtins): Set TREE_STRING_FLAG on
1457         char8_t.
1458         (braced_list_to_string): Check for char-sized elements.
1460 2022-09-01  Jakub Jelinek  <jakub@redhat.com>
1462         PR c++/106655
1463         * c.opt (-Winvalid-utf8): New warning.
1464         * c-opts.cc (c_common_handle_option) <case OPT_finput_charset_>:
1465         Set cpp_opts->cpp_input_charset_explicit.
1466         (c_common_post_options): If -finput-charset=UTF-8 is explicit
1467         in C++23, enable -Winvalid-utf8 by default and if -pedantic
1468         or -pedantic-errors, make it a pedwarn.
1470 2022-08-31  Joseph Myers  <joseph@codesourcery.com>
1472         * c-attribs.cc (handle_deprecated_attribute): Check and pedwarn
1473         for LABEL_DECL.
1474         * c-common.cc (c_add_case_label): Add argument ATTRS.  Call
1475         decl_attributes.
1476         * c-common.h (do_case, c_add_case_label): Update declarations.
1477         * c-lex.cc (c_common_has_attribute): For C, produce a result of
1478         201910 for fallthrough and 202106 for maybe_unused.
1480 2022-08-26  Marek Polacek  <polacek@redhat.com>
1482         PR c++/81159
1483         * c.opt (Wself-move): New option.
1485 2022-08-26  Jakub Jelinek  <jakub@redhat.com>
1487         * c-common.cc (check_builtin_function_arguments): Handle
1488         BUILT_IN_ISSIGNALING.
1490 2022-08-26  Jakub Jelinek  <jakub@redhat.com>
1492         PR c++/106648
1493         * c-cppbuiltin.cc (c_cpp_builtins): Predefine
1494         __cpp_named_character_escapes to 202207L.
1496 2022-08-25  Marek Polacek  <polacek@redhat.com>
1498         * c-common.cc (c_common_reswords): Enable nullptr in C2X.
1499         (c_common_nodes_and_builtins): Create the built-in node for nullptr.
1500         * c-common.h (enum c_tree_index): Add CTI_NULLPTR, CTI_NULLPTR_TYPE.
1501         (struct c_common_resword): Resize the disable member.
1502         (D_C2X): Add.
1503         (nullptr_node): Define.
1504         (nullptr_type_node): Define.
1505         (NULLPTR_TYPE_P): Define.
1506         * c-pretty-print.cc (c_pretty_printer::simple_type_specifier): Handle
1507         NULLPTR_TYPE.
1508         (c_pretty_printer::direct_abstract_declarator): Likewise.
1509         (c_pretty_printer::constant): Likewise.
1511 2022-08-16  Tom Honermann  <tom@honermann.net>
1513         PR c++/106423
1514         * c-opts.cc (c_common_post_options): Disable -Wc++20-compat
1515         diagnostics in C++20 and later.
1516         * c.opt (Wc++20-compat): Enable hooks for the preprocessor.
1518 2022-08-11  Marek Polacek  <polacek@redhat.com>
1520         PR middle-end/102633
1521         * c-gimplify.cc (c_gimplify_expr) <case DECL_EXPR>: Don't call
1522         suppress_warning here.
1524 2022-08-08  Tom Honermann  <tom@honermann.net>
1526         PR preprocessor/106426
1527         * c-opts.cc (c_common_post_options): Assign cpp_opts->unsigned_utf8char
1528         subject to -fchar8_t, -fsigned-char, and/or -funsigned-char.
1530 2022-08-08  Tom Honermann  <tom@honermann.net>
1532         * c-lex.cc (lex_string, lex_charconst): Use char8_t as the type
1533         of CPP_UTF8CHAR and CPP_UTF8STRING when char8_t support is
1534         enabled.
1535         * c-opts.cc (c_common_post_options): Set flag_char8_t if
1536         targeting C2x.
1538 2022-07-31  Lewis Hyatt  <lhyatt@gmail.com>
1540         PR c++/66290
1541         * c-common.h: Rename global done_lexing to
1542         override_libcpp_locations.
1543         * c-common.cc (c_cpp_diagnostic): Likewise.
1544         * c-opts.cc (c_common_finish): Set override_libcpp_locations
1545         (formerly done_lexing) immediately prior to calling cpp_finish ().
1547 2022-07-27  Lewis Hyatt  <lhyatt@gmail.com>
1549         * c-ppoutput.cc (token_streamer::stream): Update input_location
1550         prior to streaming each token.
1552 2022-07-23  Immad Mir  <mirimmad@outlook.com>
1554         * c-attribs.cc: (c_common_attribute_table): add three new attributes
1555         namely: fd_arg, fd_arg_read and fd_arg_write.
1556         (handle_fd_arg_attribute): New.
1558 2022-07-15  Marek Polacek  <polacek@redhat.com>
1560         PR c++/104477
1561         * c-common.cc (c_common_reswords): Add
1562         __reference_constructs_from_temporary and
1563         __reference_converts_from_temporary.
1564         * c-common.h (enum rid): Add RID_REF_CONSTRUCTS_FROM_TEMPORARY and
1565         RID_REF_CONVERTS_FROM_TEMPORARY.
1567 2022-07-15  Jonathan Wakely  <jwakely@redhat.com>
1569         * c-format.cc (class range_label_for_format_type_mismatch):
1570         Adjust to new label_text API.
1572 2022-07-11  Lewis Hyatt  <lhyatt@gmail.com>
1574         PR preprocessor/106252
1575         * c-pragma.cc (handle_pragma_diagnostic_impl): Don't look up the
1576         option argument prior to verifying the option was found.
1578 2022-07-07  David Malcolm  <dmalcolm@redhat.com>
1580         * c-format.cc (range_label_for_format_type_mismatch::get_text):
1581         Update for removal of label_text::maybe_free in favor of automatic
1582         memory management.
1584 2022-07-06  Lewis Hyatt  <lhyatt@gmail.com>
1586         PR preprocessor/53920
1587         PR c++/53431
1588         * c-common.cc (c_option_is_from_cpp_diagnostics): New function.
1589         * c-common.h (c_option_is_from_cpp_diagnostics): Declare.
1590         (c_pp_stream_token): Declare.
1591         * c-ppoutput.cc (init_pp_output): Refactor logic about skipping
1592         pragmas to...
1593         (should_output_pragmas): ...here. New function.
1594         (token_streamer::stream): Support handling early pragmas.
1595         (do_line_change): Likewise.
1596         (c_pp_stream_token): New function.
1597         * c-pragma.cc (struct pragma_diagnostic_data): New helper class.
1598         (pragma_diagnostic_lex_normal): New function. Moved logic for
1599         interpreting GCC diagnostic pragmas here.
1600         (pragma_diagnostic_lex_pp): New function for parsing diagnostic pragmas
1601         directly from libcpp.
1602         (handle_pragma_diagnostic): Refactor into helper function...
1603         (handle_pragma_diagnostic_impl): ...here.  New function.
1604         (handle_pragma_diagnostic_early): New function.
1605         (handle_pragma_diagnostic_early_pp): New function.
1606         (struct pragma_ns_name): Renamed to...
1607         (struct pragma_pp_data): ...this.  Add new "early_handler" member.
1608         (c_register_pragma_1): Support early pragmas in the preprocessor.
1609         (c_register_pragma_with_early_handler): New function.
1610         (c_register_pragma): Support the new early handlers in struct
1611         internal_pragma_handler.
1612         (c_register_pragma_with_data): Likewise.
1613         (c_register_pragma_with_expansion): Likewise.
1614         (c_register_pragma_with_expansion_and_data): Likewise.
1615         (c_invoke_early_pragma_handler): New function.
1616         (c_pp_invoke_early_pragma_handler): New function.
1617         (init_pragma): Add early pragma support for diagnostic pragmas.
1618         * c-pragma.h (struct internal_pragma_handler): Add new early handler
1619         members.
1620         (c_register_pragma_with_early_handler): Declare.
1621         (c_invoke_early_pragma_handler): Declare.
1622         (c_pp_invoke_early_pragma_handler): Declare.
1624 2022-07-05  Marek Polacek  <polacek@redhat.com>
1626         PR c++/105626
1627         * c-format.cc (check_format_arg): Don't emit -Wformat warnings with
1628         u8 strings.
1630 2022-07-01  Marek Polacek  <polacek@redhat.com>
1632         PR c++/106111
1633         * c-common.h (enum rid): Update RID_LAST_CXX20.
1635 2022-06-30  Jonathan Wakely  <jwakely@redhat.com>
1637         * known-headers.cc (get_stdlib_header_for_name): Add <time.h>
1638         names.
1640 2022-06-24  Jason Merrill  <jason@redhat.com>
1642         PR c++/87729
1643         PR c++/20423
1644         * c.opt (Woverloaded-virtual): Add levels, include in -Wall.
1646 2022-06-18  Jakub Jelinek  <jakub@redhat.com>
1648         * c-ubsan.cc (ubsan_instrument_division, ubsan_instrument_shift):
1649         Use flag_sanitize_trap & SANITIZE_??? instead of
1650         flag_sanitize_undefined_trap_on_error.  If 2 sanitizers are involved
1651         and flag_sanitize_trap differs for them, emit __builtin_trap only
1652         for the comparison where trap is requested.
1653         (ubsan_instrument_vla, ubsan_instrument_return): Use
1654         lag_sanitize_trap & SANITIZE_??? instead of
1655         flag_sanitize_undefined_trap_on_error.
1657 2022-06-13  Jason Merrill  <jason@redhat.com>
1659         * c-ubsan.cc (ubsan_instrument_return): Use BUILTINS_LOCATION.
1661 2022-05-27  Marek Polacek  <polacek@redhat.com>
1663         PR c/90658
1664         * c-attribs.cc (get_priority): Check FUNCTION_DECL.
1666 2022-05-27  Jakub Jelinek  <jakub@redhat.com>
1668         * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ENTER.
1670 2022-05-20  David Malcolm  <dmalcolm@redhat.com>
1672         * c-format.cc: Replace uses of "FINAL" and "OVERRIDE" with "final"
1673         and "override".
1674         * c-pretty-print.h: Likewise.
1676 2022-05-18  Marek Polacek  <polacek@redhat.com>
1678         PR c/105131
1679         * c.opt (Wenum-int-mismatch): New.
1681 2022-05-18  Marek Polacek  <polacek@redhat.com>
1683         PR c++/105497
1684         * c-warn.cc (c_do_switch_warnings): Don't warn about unhandled
1685         enumerator when it was marked with attribute unused.
1687 2022-05-18  Eric Botcazou  <ebotcazou@adacore.com>
1689         * c-ada-spec.cc (dump_ada_node) <COMPLEX_TYPE>: Deal with usual
1690         floating-point complex types.
1691         <POINTER_TYPE>: Do not use limited_with clause if the designated
1692         type is a scalar type.
1694 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
1696         * c-omp.cc (c_finish_omp_depobj): Handle
1697         OMP_CLAUSE_DEPEND_INOUTSET.
1699 2022-05-16  Jason Merrill  <jason@redhat.com>
1701         PR c/105492
1702         * c-attribs.cc (handle_mode_attribute): Don't fix broken typedefs
1703         here.
1705 2022-05-16  Martin Liska  <mliska@suse.cz>
1707         * c-common.cc (ARRAY_SIZE): Use ARRAY_SIZE.
1708         (c_common_nodes_and_builtins): Likewise.
1709         * c-format.cc (check_tokens): Likewise.
1710         (check_plain): Likewise.
1711         * c-pragma.cc (c_pp_lookup_pragma): Likewise.
1712         (init_pragma): Likewise.
1713         * known-headers.cc (get_string_macro_hint): Likewise.
1714         (get_stdlib_header_for_name): Likewise.
1715         * c-attribs.cc: Likewise.
1717 2022-05-13  Richard Biener  <rguenther@suse.de>
1719         * c-omp.cc: Remove gimple-fold.h include.
1721 2022-05-12  Jakub Jelinek  <jakub@redhat.com>
1723         * c-common.h (enum rid): Add RID_OMP_ALL_MEMORY.
1724         * c-omp.cc (c_finish_omp_depobj): Don't build_fold_addr_expr
1725         if null_pointer_node.
1727 2022-05-11  Martin Liska  <mliska@suse.cz>
1729         PR target/105355
1730         * c-opts.cc (c_common_handle_option): Change option name.
1731         * c.opt: Remove Joined and use Separate option.
1733 2022-05-09  Alex Coplan  <alex.coplan@arm.com>
1735         * c-common.h (get_dump_info): Delete.
1736         * c-gimplify.cc (c_genericize): Get TDI_original dump file info
1737         from the global dump_manager instead of the (now obsolete)
1738         get_dump_info.
1739         * c-opts.cc (original_dump_file): Delete.
1740         (original_dump_flags): Delete.
1741         (c_common_parse_file): Switch to using global dump_manager to
1742         manage the original dump file; fix leak of dump file.
1743         (get_dump_info): Delete.
1745 2022-05-07  Marek Polacek  <polacek@redhat.com>
1747         PR c++/101833
1748         PR c++/47634
1749         * c-attribs.cc (positional_argument): Pass POS by reference.  Deal
1750         with FN being either a function declaration or function type.  Use
1751         maybe_adjust_arg_pos_for_attribute.
1752         * c-common.cc (check_function_arguments): Maybe pass FNDECL down to
1753         check_function_format.
1754         * c-common.h (maybe_adjust_arg_pos_for_attribute): Declare.
1755         (positional_argument): Adjust.
1756         * c-format.cc (get_constant): Rename to ...
1757         (validate_constant): ... this.  Take EXPR by reference.  Return bool
1758         instead of tree.
1759         (handle_format_arg_attribute): Don't overwrite FORMAT_NUM_EXPR by the
1760         return value of validate_constant.
1761         (decode_format_attr): Don't overwrite FORMAT_NUM_EXPR and
1762         FIRST_ARG_NUM_EXPR by the return value of validate_constant.
1763         (check_function_format): Adjust a parameter name.
1764         (handle_format_attribute): Maybe pass FNDECL down to decode_format_attr.
1766 2022-05-04  Marek Polacek  <polacek@redhat.com>
1768         * c-warn.cc (warnings_for_convert_and_check): Convert constants of type
1769         char to int.
1771 2022-04-30  Jason Merrill  <jason@redhat.com>
1773         PR c/100545
1774         * c-attribs.cc (handle_mode_attribute): Copy attributes, aligned,
1775         and typedef.
1776         * c-common.cc (set_underlying_type): Add assert.
1778 2022-04-26  Patrick Palka  <ppalka@redhat.com>
1780         PR c++/105304
1781         * c-common.cc (verify_tree) [restart]: Move up to before the
1782         NULL test.
1784 2022-04-11  Jakub Jelinek  <jakub@redhat.com>
1786         PR c++/105186
1787         * c-common.cc (c_common_nodes_and_builtins): After registering __int%d
1788         and __int%d__ builtin types, initialize corresponding ridpointers
1789         entry.
1791 2022-03-30  Marek Polacek  <polacek@redhat.com>
1793         PR c++/101030
1794         * c-warn.cc (conversion_warning) <case COND_EXPR>: Don't call
1795         conversion_warning when OP1 is null.
1797 2022-03-30  Thomas Schwinge  <thomas@codesourcery.com>
1799         * c.opt (Wc++11-extensions, Wc++14-extensions, Wc++17-extensions)
1800         (Wc++20-extensions, Wc++23-extensions): Remove 'LangEnabledBy'
1801         option properties.
1803 2022-03-30  Thomas Schwinge  <thomas@codesourcery.com>
1805         * c.opt (Wuse-after-free): Remove.
1807 2022-03-30  Thomas Schwinge  <thomas@codesourcery.com>
1809         * c.opt (Warray-bounds): Remove.
1811 2022-03-26  Thomas Schwinge  <thomas@codesourcery.com>
1813         * c.opt: Properly quote comment.
1815 2022-03-25  Eric Botcazou  <ebotcazou@adacore.com>
1817         * c-ada-spec.cc (dump_ada_import): Deal with the "section" attribute
1818         (dump_ada_node) <POINTER_TYPE>: Do not modify and pass the name, but
1819         the referenced type instead.  Deal with the anonymous original type
1820         of a typedef'ed type.  In the actual access case, follow the chain
1821         of external subtypes.
1822         <TYPE_DECL>: Tidy up control flow.
1824 2022-03-21  Qian Jianhua  <qianjh@cn.fujitsu.com>
1826         * c-ada-spec.cc: Change array length
1828 2022-03-19  Arthur Cohen  <arthur.cohen@embecosm.com>
1830         * c-common.cc (c_family_tests): Call the new tests.
1831         * c-common.h (c_diagnostic_tests): Declare.
1832         (c_opt_problem_cc_tests): Likewise.
1834 2022-03-19  Jakub Jelinek  <jakub@redhat.com>
1836         PR c++/101515
1837         * c-pretty-print.cc (c_fold_indirect_ref_for_warn): For C++ don't
1838         return COMPONENT_REFs with FIELD_DECLs whose containing scope can't
1839         be printed.
1841 2022-03-16  Christophe Lyon  <christophe.lyon@arm.com>
1842             Roger Sayle  <roger@nextmovesoftware.com>
1844         PR c/98198
1845         * c-attribs.cc (decl_or_type_attrs): Add error_mark_node check.
1847 2022-03-16  Patrick Palka  <ppalka@redhat.com>
1849         PR c++/96780
1850         * c.opt: Add -ffold-simple-inlines.
1852 2022-03-13  Tobias Burnus  <tobias@codesourcery.com>
1854         * c-target.def (check_string_object_format_arg): Fix description typo.
1856 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
1858         PR other/65095
1859         * c-common.h (c_omp_map_clause_name): Remove.
1860         * c-omp.cc (c_omp_map_clause_name): Remove.
1862 2022-03-09  Jakub Jelinek  <jakub@redhat.com>
1864         PR c/104711
1865         * c-opts.cc (c_common_post_options): Don't enable
1866         -Wshift-negative-value from -Wextra for C++20 or later.
1867         * c-ubsan.cc (ubsan_instrument_shift): Adjust comments.
1868         * c-warn.cc (maybe_warn_shift_overflow): Use TYPE_OVERFLOW_WRAPS
1869         instead of TYPE_UNSIGNED.
1871 2022-03-07  Jakub Jelinek  <jakub@redhat.com>
1873         * c-attribs.cc: Fix up duplicated word issue in a comment.
1875 2022-03-01  Martin Liska  <mliska@suse.cz>
1877         PR ipa/104533
1878         * c-attribs.cc (handle_target_clones_attribute): Use
1879         get_target_clone_attr_len and report warning soon.
1881 2022-02-17  Jonathan Wakely  <jwakely@redhat.com>
1883         * c-pragma.cc (handle_pragma_pack): Remove parameter name.
1884         (handle_pragma_weak): Likewise.
1885         (handle_pragma_scalar_storage_order): Likewise.
1886         (handle_pragma_redefine_extname): Likewise.
1887         (handle_pragma_visibility): Likewise.
1888         (handle_pragma_diagnostic): Likewise.
1889         (handle_pragma_target): Likewise.
1890         (handle_pragma_optimize): Likewise.
1891         (handle_pragma_push_options): Likewise.
1892         (handle_pragma_pop_options): Likewise.
1893         (handle_pragma_reset_options): Likewise.
1894         (handle_pragma_message): Likewise.
1895         (handle_pragma_float_const_decimal64): Likewise.
1897 2022-02-16  Jakub Jelinek  <jakub@redhat.com>
1899         PR c/104531
1900         * c-omp.cc (c_finish_omp_atomic): For MIN_EXPR/MAX_EXPR, try first
1901         build_binary_op with LT_EXPR and only if that doesn't return
1902         error_mark_node call build_modify_expr.
1904 2022-02-16  Jakub Jelinek  <jakub@redhat.com>
1906         PR c/104510
1907         * c-common.cc (shorten_compare): Convert original arguments to
1908         the original *restype_ptr when mixing binary and decimal float.
1910 2022-02-14  Richard Biener  <rguenther@suse.de>
1912         PR c/104505
1913         * c-pretty-print.cc (c_pretty_printer::postfix_expression): Handle
1914         internal function calls.
1916 2022-02-11  Richard Biener  <rguenther@suse.de>
1918         * c-attribs.cc (c_common_attribute_table): Add entry for
1919         vector_mask.
1920         (handle_vector_mask_attribute): New.
1922 2022-02-10  Marcel Vollweiler  <marcel@codesourcery.com>
1924         * c-omp.cc (c_omp_split_clauses): Added OMP_CLAUSE_HAS_DEVICE_ADDR case.
1925         * c-pragma.h (enum pragma_kind): Added 5.1 in comment.
1926         (enum pragma_omp_clause): Added PRAGMA_OMP_CLAUSE_HAS_DEVICE_ADDR.
1928 2022-02-09  Jason Merrill  <jason@redhat.com>
1930         * c-cppbuiltin.cc (c_cpp_builtins): Update values
1931         of __cpp_constexpr and __cpp_concepts for C++20.
1933 2022-01-24  Marek Polacek  <polacek@redhat.com>
1935         PR preprocessor/104030
1936         * c.opt (Wbidi-chars): Mark as EnumSet.  Also accept =ucn.
1938 2022-01-21  Jakub Jelinek  <jakub@redhat.com>
1940         PR c++/104148
1941         * c-common.h (check_function_arguments_recurse): Add for_format
1942         arg.
1943         * c-common.cc (check_function_nonnull): Pass false to
1944         check_function_arguments_recurse's last argument.
1945         (check_function_arguments_recurse): Add for_format argument,
1946         if true, don't stop on warning_suppressed_p.
1947         * c-format.cc (check_format_info): Pass true to
1948         check_function_arguments_recurse's last argument.
1950 2022-01-19  David Malcolm  <dmalcolm@redhat.com>
1952         * c-common.cc (c_common_c_tests): Rename to...
1953         (c_common_cc_tests): ...this.
1954         (c_family_tests): Update calls for .c to .cc renaming.
1955         * c-common.h (c_format_c_tests): Rename to...
1956         (c_format_cc_tests): ...this.
1957         (c_indentation_c_tests): Rename to...
1958         (c_indentation_cc_tests): ...this.
1959         (c_pretty_print_c_tests): Rename to...
1960         (c_pretty_print_cc_tests): ...this.
1961         * c-format.cc (c_format_c_tests): Rename to...
1962         (c_format_cc_tests): ...this.
1963         * c-indentation.cc (c_indentation_c_tests): Rename to...
1964         (c_indentation_cc_tests): ...this.
1965         * c-pretty-print.cc (c_pretty_print_c_tests): Rename to...
1966         (c_pretty_print_cc_tests): ...this.
1968 2022-01-17  Martin Liska  <mliska@suse.cz>
1970         * c-ada-spec.cc: Rename .c names to .cc.
1971         * c-ada-spec.h: Likewise.
1972         * c-common.cc (c_build_vec_convert): Likewise.
1973         (warning_candidate_p): Likewise.
1974         * c-common.h (enum rid): Likewise.
1975         (build_real_imag_expr): Likewise.
1976         (finish_label_address_expr): Likewise.
1977         (c_get_substring_location): Likewise.
1978         (c_build_bind_expr): Likewise.
1979         (conflict_marker_get_final_tok_kind): Likewise.
1980         (c_parse_error): Likewise.
1981         (check_missing_format_attribute): Likewise.
1982         (invalid_array_size_error): Likewise.
1983         (warn_for_multistatement_macros): Likewise.
1984         (build_attr_access_from_parms): Likewise.
1985         * c-cppbuiltin.cc (c_cpp_builtins): Likewise.
1986         * c-format.cc: Likewise.
1987         * c-gimplify.cc (c_gimplify_expr): Likewise.
1988         * c-indentation.h: Likewise.
1989         * c-objc.h (objc_prop_attr_kind_for_rid): Likewise.
1990         * c-omp.cc (c_omp_predetermined_mapping): Likewise.
1991         * c-opts.cc (c_common_post_options): Likewise.
1992         (set_std_cxx23): Likewise.
1993         * c-pragma.cc (handle_pragma_redefine_extname): Likewise.
1994         * c-pretty-print.h: Likewise.
1996 2022-01-17  Martin Liska  <mliska@suse.cz>
1998         * c-ada-spec.c: Moved to...
1999         * c-ada-spec.cc: ...here.
2000         * c-attribs.c: Moved to...
2001         * c-attribs.cc: ...here.
2002         * c-common.c: Moved to...
2003         * c-common.cc: ...here.
2004         * c-cppbuiltin.c: Moved to...
2005         * c-cppbuiltin.cc: ...here.
2006         * c-dump.c: Moved to...
2007         * c-dump.cc: ...here.
2008         * c-format.c: Moved to...
2009         * c-format.cc: ...here.
2010         * c-gimplify.c: Moved to...
2011         * c-gimplify.cc: ...here.
2012         * c-indentation.c: Moved to...
2013         * c-indentation.cc: ...here.
2014         * c-lex.c: Moved to...
2015         * c-lex.cc: ...here.
2016         * c-omp.c: Moved to...
2017         * c-omp.cc: ...here.
2018         * c-opts.c: Moved to...
2019         * c-opts.cc: ...here.
2020         * c-pch.c: Moved to...
2021         * c-pch.cc: ...here.
2022         * c-ppoutput.c: Moved to...
2023         * c-ppoutput.cc: ...here.
2024         * c-pragma.c: Moved to...
2025         * c-pragma.cc: ...here.
2026         * c-pretty-print.c: Moved to...
2027         * c-pretty-print.cc: ...here.
2028         * c-semantics.c: Moved to...
2029         * c-semantics.cc: ...here.
2030         * c-ubsan.c: Moved to...
2031         * c-ubsan.cc: ...here.
2032         * c-warn.c: Moved to...
2033         * c-warn.cc: ...here.
2034         * cppspec.c: Moved to...
2035         * cppspec.cc: ...here.
2036         * stub-objc.c: Moved to...
2037         * stub-objc.cc: ...here.
2039 2022-01-15  Martin Sebor  <msebor@redhat.com>
2041         PR c/63272
2042         * c.opt (-Wdangling-pointer): New option.
2044 2022-01-15  Martin Sebor  <msebor@redhat.com>
2046         PR tree-optimization/80532
2047         * c.opt (-Wuse-after-free): New options.
2049 2022-01-14  David Malcolm  <dmalcolm@redhat.com>
2051         * c-attribs.c (c_common_attribute_table): Add "tainted_args".
2052         (handle_tainted_args_attribute): New.
2054 2022-01-13  Anthony Sharp  <anthonysharp15@gmail.com>
2055             Jason Merrill  <jason@redhat.com>
2057         PR c++/70417
2058         * c.opt: Added -Wmissing-template-keyword.
2060 2022-01-13  Richard Biener  <rguenther@suse.de>
2062         PR c/104002
2063         * c-common.c (c_common_mark_addressable_vec): Handle TARGET_EXPR.
2065 2022-01-12  Martin Liska  <mliska@suse.cz>
2067         PR target/103804
2068         * c-attribs.c (handle_optimize_attribute): Do not call
2069         cl_optimization_compare if we seen an error.
2071 2022-01-11  Jakub Jelinek  <jakub@redhat.com>
2073         PR c/101537
2074         PR c/103881
2075         * c-warn.c (conversion_warning): Handle BIT_AND_EXPR, BIT_IOR_EXPR
2076         and BIT_XOR_EXPR.
2078 2022-01-10  Richard Biener  <rguenther@suse.de>
2080         PR middle-end/101530
2081         * c-common.c (c_build_shufflevector): Wrap the BIT_FIELD_REF
2082         in a TARGET_EXPR to force a temporary.
2084 2022-01-06  Marek Polacek  <polacek@redhat.com>
2086         PR c++/103758
2087         * c-pragma.c (handle_pragma_scalar_storage_order): Use %< %> in
2088         diagnostic messages.
2089         (handle_pragma_diagnostic): Likewise.
2091 2022-01-03  Marek Polacek  <polacek@redhat.com>
2093         PR c++/103758
2094         * c-format.c (check_tokens): Accept "decl-specifier*".
2096 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
2098         PR c++/103600
2099         * c-attribs.c (handle_non_overlapping_attribute): New function.
2100         (c_common_attribute_table): Add "non overlapping" attribute.
2102 2021-12-30  Jakub Jelinek  <jakub@redhat.com>
2104         PR c++/103012
2105         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Perform
2106         cpp_define_unused/cpp_undef calls with forced token locations
2107         BUILTINS_LOCATION.
2109 2021-12-27  Patrick Palka  <ppalka@redhat.com>
2111         PR c++/103700
2112         * c-common.c (pointer_int_sum): When quiet, return
2113         error_mark_node for an incomplete pointed-to type and don't
2114         call size_in_bytes_loc.
2116 2021-12-17  Jason Merrill  <jason@redhat.com>
2118         PR c++/103681
2119         * c-opts.c (c_common_post_options): Update defaults.
2121 2021-12-16  Martin Liska  <mliska@suse.cz>
2123         PR target/103709
2124         * c-pragma.c (handle_pragma_pop_options): Do not check
2125         global options modification when an error is seen in parsing
2126         of options (pragmas or attributes).
2128 2021-12-12  Jonathan Wakely  <jwakely@redhat.com>
2130         * known-headers.cc: Define INCLUDE_MEMORY instead of
2131         INCLUDE_UNIQUE_PTR.
2132         * name-hint.h: Likewise.
2133         (class name_hint): Use std::unique_ptr instead of gnu::unique_ptr.
2135 2021-12-09  Jakub Jelinek  <jakub@redhat.com>
2137         PR pch/71934
2138         * c-pch.c (c_common_no_more_pch): Pass a temporary void * var
2139         with NULL value instead of NULL to host_hooks.gt_pch_use_address.
2141 2021-12-03  Jakub Jelinek  <jakub@redhat.com>
2143         PR pch/71934
2144         * c-pch.c (struct c_pch_validity): Remove pch_init member.
2145         (pch_init): Don't initialize v.pch_init.
2146         (c_common_valid_pch): Don't warn and punt if .text addresses change.
2148 2021-12-01  Jason Merrill  <jason@redhat.com>
2150         PR c++/103310
2151         * c.opt: Add -fconstexpr-fp-except.
2153 2021-11-29  Richard Biener  <rguenther@suse.de>
2155         * c-format.c (check_format_string): Remove spurious
2156         gcc_unreachable.
2158 2021-11-29  Richard Biener  <rguenther@suse.de>
2160         * c-opts.c (c_common_post_options): Remove unreachable return.
2161         * c-pragma.c (handle_pragma_target): Likewise.
2162         (handle_pragma_optimize): Likewise.
2164 2021-11-25  Jakub Jelinek  <jakub@redhat.com>
2166         PR c++/102611
2167         * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by
2168         default for C++23 regardless of warn_deprecated.
2169         * c-cppbuiltin.c (c_cpp_builtins): Predefine
2170         __cpp_multidimensional_subscript=202110L for C++23.
2172 2021-11-23  Martin Sebor  <msebor@redhat.com>
2174         PR middle-end/88232
2175         * c.opt: Add -Winfinite-recursion.
2177 2021-11-19  Martin Sebor  <msebor@redhat.com>
2179         PR c++/33925
2180         PR c/102867
2181         * c-common.c (decl_with_nonnull_addr_p): Call maybe_nonzero_address
2182         and improve handling tof defined symbols.
2184 2021-11-19  Martin Liska  <mliska@suse.cz>
2186         Revert:
2187         2021-11-18  Martin Liska  <mliska@suse.cz>
2189         * c-gimplify.c (genericize_c_loop): Use option directly.
2191 2021-11-18  Matthias Kretz  <m.kretz@gsi.de>
2193         * c-common.c (c_common_reswords): Add __builtin_assoc_barrier.
2194         * c-common.h (enum rid): Add RID_BUILTIN_ASSOC_BARRIER.
2196 2021-11-18  Martin Liska  <mliska@suse.cz>
2198         * c-gimplify.c (genericize_c_loop): Use option directly.
2200 2021-11-17  Martin Uecker  <uecker@gcc.gnu.org>
2202         PR c/91038
2203         PR c/29970
2204         * c-common.c (pointer_int_sum): Make sure pointer expressions
2205         are evaluated first when the size expression depends on for
2206         variably-modified types.
2208 2021-11-17  Marek Polacek  <polacek@redhat.com>
2210         PR preprocessor/103026
2211         * c.opt (Wbidi-chars, Wbidi-chars=): New option.
2213 2021-11-16  Jason Merrill  <jason@redhat.com>
2215         * c-common.c (release_tree_vector): Only cache vecs smaller than
2216         16 elements.
2218 2021-11-15  Jason Merrill  <jason@redhat.com>
2220         * c.opt: Add -fimplicit-constexpr.
2221         * c-cppbuiltin.c: Define __cpp_implicit_constexpr.
2222         * c-opts.c (c_common_post_options): Disable below C++14.
2224 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
2226         * c-omp.c (c_omp_split_clauses) <case OMP_CLAUSE_THREAD_LIMIT>:
2227         Duplicate to both OMP_TARGET and OMP_TEAMS.
2229 2021-11-10  Marek Polacek  <polacek@redhat.com>
2231         PR c++/101940
2232         * c-pragma.c (handle_pragma_diagnostic): Handle #pragma GCC diagnostic
2233         ignored_attributes.
2235 2021-11-09  David Malcolm  <dmalcolm@redhat.com>
2237         * c-pragma.c (GCC_BAD_AT): New macro.
2238         (GCC_BAD2_AT): New macro.
2239         (handle_pragma_pack): Use the location of the pertinent token when
2240         issuing diagnostics about invalid constants/actions, and trailing
2241         junk.
2242         (handle_pragma_target): Likewise for non-string "GCC option".
2243         (handle_pragma_message): Likewise for trailing junk.
2245 2021-11-03  Joseph Myers  <joseph@codesourcery.com>
2247         PR c/103031
2248         * c-common.c (convert_and_check): Add argument init_const.  Call
2249         convert_init if init_const.
2250         * c-common.h (convert_and_check): Update prototype.
2251         (convert_init): New prototype.
2253 2021-11-01  David Malcolm  <dmalcolm@redhat.com>
2255         * c-lex.c (c_lex_with_flags): When complaining about non-printable
2256         CPP_OTHER tokens, set the "escape on output" flag.
2258 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
2260         * c-omp.c (c_omp_check_loop_iv_r): Don't clear 3rd bit for
2261         POINTER_PLUS_EXPR.
2262         (c_omp_check_nonrect_loop_iv): Handle POINTER_PLUS_EXPR.
2263         (c_omp_check_loop_iv): Set kind even if the iterator is non-integral.
2265 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
2267         PR c++/102854
2268         * c-common.h (c_omp_check_loop_iv_exprs): Add enum tree_code argument.
2269         * c-omp.c (c_omp_check_loop_iv_r): For trees other than decls,
2270         TREE_VEC, PLUS_EXPR, MINUS_EXPR, MULT_EXPR, POINTER_PLUS_EXPR or
2271         conversions temporarily clear the 3rd bit from d->kind while walking
2272         subtrees.
2273         (c_omp_check_loop_iv_exprs): Add CODE argument.  Or in 4 into data.kind
2274         if possibly non-rectangular.
2276 2021-10-21  Jakub Jelinek  <jakub@redhat.com>
2278         PR middle-end/64888
2279         * c-omp.c (c_omp_predefined_variable): Return true also for
2280         ubsan_create_data created artificial variables.
2282 2021-10-14  Joseph Myers  <joseph@codesourcery.com>
2284         * c-format.c (printf_length_specs, scanf_length_specs)
2285         (print_char_table, scan_char_table): Support DFP formats for C2X.
2286         * c-format.h (TEX_D32, TEX_D64, TEX_D128): Remove.
2287         (T2X_D32, T2X_D64, T2X_D128): New macros.
2289 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
2291         * c-omp.c (c_omp_check_context_selector): Rename to
2292         omp_check_context_selector and move to omp-general.c.
2293         (c_omp_mark_declare_variant): Rename to omp_mark_declare_variant and
2294         move to omp-general.c.
2296 2021-10-12  Joseph Myers  <joseph@codesourcery.com>
2298         * c-format.c (print_char_table): Add %b and %B formats.
2299         (scan_char_table): Add %b format.
2300         * c-format.h (T2X_UI, T2X_UL, T2X_ULL, T2X_US, T2X_UC, T2X_ST)
2301         (T2X_UPD, T2X_UIM): New macros.
2303 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
2305         * c-omp.c (c_finish_omp_atomic): Use
2306         clear_padding_type_may_have_padding_p.
2308 2021-10-08  Martin Liska  <mliska@suse.cz>
2310         * c-opts.c (c_common_post_options): Use new macro
2311         OPTION_SET_P.
2313 2021-10-07  Martin Liska  <mliska@suse.cz>
2315         * c-common.c (parse_optimize_options): Make
2316         save_opt_decoded_options a pointer type.
2318 2021-10-06  Jakub Jelinek  <jakub@redhat.com>
2320         PR tree-optimization/102571
2321         * c-omp.c (c_finish_omp_atomic): Optimize the case where type has
2322         padding, but the non-padding bits are contiguous set of bytes
2323         by adjusting the memcmp call arguments instead of emitting
2324         __builtin_clear_padding and then comparing all the type's bytes.
2326 2021-10-06  Jakub Jelinek  <jakub@redhat.com>
2328         PR c++/102612
2329         * c-cppbuiltin.c (c_cpp_builtins): For -std=c++23 predefine
2330         __cpp_constexpr to 202110L rather than 201907L.
2332 2021-10-04  Marek Polacek  <polacek@redhat.com>
2334         PR c++/97573
2335         * c-common.h (do_warn_array_compare): Declare.
2336         * c-warn.c (do_warn_array_compare): New.
2337         * c.opt (Warray-compare): New option.
2339 2021-10-02  Iain Sandoe  <iain@sandoe.co.uk>
2341         * c-format.c: Remove a test of TARGET_FORMAT_TYPES with
2342         NULL, this is not needed.
2344 2021-10-01  Martin Sebor  <msebor@redhat.com>
2346         PR c/102103
2347         * c-common.c (decl_with_nonnull_addr_p): Handle members.
2348         Check and perform warning suppression.
2349         (c_common_truthvalue_conversion): Enhance warning suppression.
2351 2021-10-01  Martin Liska  <mliska@suse.cz>
2353         PR target/102552
2354         * c-common.c (parse_optimize_options): decoded_options[0] is
2355         used for program name, so merged_decoded_options should also
2356         respect that.
2358 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
2359             Richard Biener  <rguenther@suse.de>
2361         PR sanitizer/102515
2362         * c-ubsan.c (ubsan_instrument_division): Check the right
2363         flag_sanitize_recover bit, depending on which sanitization
2364         is done.  Sanitize INT_MIN / -1 under SANITIZE_SI_OVERFLOW
2365         rather than SANITIZE_DIVIDE.  If both SANITIZE_SI_OVERFLOW
2366         and SANITIZE_DIVIDE is enabled, neither check is known
2367         to be false and flag_sanitize_recover bits for those two
2368         aren't the same, emit both __ubsan_handle_divrem_overflow
2369         and __ubsan_handle_divrem_overflow_abort calls.
2371 2021-10-01  Martin Liska  <mliska@suse.cz>
2373         * c-common.c (parse_optimize_options): Combine optimize
2374         options with what was provided on the command line.
2376 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
2378         * c-omp.c (c_omp_split_clauses): Also copy
2379         OMP_CLAUSE_ORDER_REPRODUCIBLE.
2381 2021-09-27  Martin Liska  <mliska@suse.cz>
2383         * c-opts.c (c_common_init_options_struct): Set also
2384         x_flag_default_complex_method.
2386 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
2388         * c-omp.c (c_omp_split_clauses): Copy over OMP_CLAUSE_ALLOCATE_ALIGN.
2390 2021-09-20  Matthias Kretz  <m.kretz@gsi.de>
2392         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define or
2393         undefine __RECIPROCAL_MATH__, __NO_SIGNED_ZEROS__,
2394         __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__, and
2395         __ROUNDING_MATH__ according to the new optimization flags.
2397 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
2399         * c-omp.c (c_omp_split_clauses): Split order clause also to
2400         distribute construct.  Copy over OMP_CLAUSE_ORDER_UNCONSTRAINED.
2402 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
2404         * c-omp.c (c_finish_omp_atomic): Avoid creating
2405         TARGET_EXPR if test is true, use create_tmp_var_raw instead of
2406         create_tmp_var and add a zero initializer to TARGET_EXPRs that
2407         had NULL initializer.  When omitting operands after v = x,
2408         use type of v rather than type of x.  Fix type of vtmp
2409         TARGET_EXPR.
2411 2021-09-13  Jason Merrill  <jason@redhat.com>
2413         * c.opt: Add -Winterference-size.
2414         * c-cppbuiltin.c (cpp_atomic_builtins): Add __GCC_DESTRUCTIVE_SIZE
2415         and __GCC_CONSTRUCTIVE_SIZE.
2417 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
2419         * c-common.h (c_finish_omp_atomic): Add r and weak arguments.
2420         * c-omp.c: Include gimple-fold.h.
2421         (c_finish_omp_atomic): Add r and weak arguments.  Add support for
2422         OpenMP 5.1 atomics.
2424 2021-09-09  qing zhao  <qing.zhao@oracle.com>
2426         * c-attribs.c (handle_uninitialized_attribute): New function.
2427         (c_common_attribute_table): Add "uninitialized" attribute.
2429 2021-09-08  liuhongt  <hongtao.liu@intel.com>
2431         * c-common.c (excess_precision_mode_join): Update below comments.
2432         (c_ts18661_flt_eval_method): Set excess_precision_type to
2433         EXCESS_PRECISION_TYPE_FLOAT16 when -fexcess-precision=16.
2434         * c-cppbuiltin.c (cpp_atomic_builtins): Update below comments.
2435         (c_cpp_flt_eval_method_iec_559): Set excess_precision_type to
2436         EXCESS_PRECISION_TYPE_FLOAT16 when -fexcess-precision=16.
2438 2021-09-07  Marcel Vollweiler  <marcel@codesourcery.com>
2440         * c-omp.c (c_finish_omp_flush): Handle MEMMODEL_SEQ_CST.
2442 2021-09-03  Eric Botcazou  <ebotcazou@adacore.com>
2444         * c-ada-spec.c (dump_ads): Generate pragmas to disable style checks
2445         and -gnatwu warning for the package specification.
2447 2021-09-01  Iain Sandoe  <iain@sandoe.co.uk>
2449         * c-attribs.c (handle_unavailable_attribute): New.
2451 2021-08-30  Jason Merrill  <jason@redhat.com>
2453         * c.opt: Add -Wmissing-requires.
2455 2021-08-25  Lewis Hyatt  <lhyatt@gmail.com>
2457         PR other/93067
2458         * c-opts.c (c_common_input_charset_cb): New function.
2459         (c_common_post_options): Call new function
2460         diagnostic_initialize_input_context().
2462 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
2464         * c-format.c (gcc_gfc_length_specs): Add 'll' and 'w'.
2465         (gcc_gfc_char_table): Add T9L_LL and T9L_ULL to
2466         "di" and "u", respecitively; fill with BADLEN to match
2467         size of 'types'.
2468         (get_init_dynamic_hwi): Split off from ...
2469         (init_dynamic_diag_info): ... here. Call it.
2470         (init_dynamic_gfc_info): Call it.
2472 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
2474         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ERROR.
2475         * c-pragma.c (omp_pragmas): Add error directive.
2476         * c-omp.c (omp_directives): Uncomment error directive entry.
2478 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
2480         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_NOTHING.
2481         * c-pragma.c (omp_pragmas): Add nothing directive.
2482         * c-omp.c (omp_directives): Uncomment nothing directive entry.
2484 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
2486         PR c++/101539
2487         * c-common.h (enum rid): Add RID_IS_LAYOUT_COMPATIBLE.
2488         * c-common.c (c_common_reswords): Add __is_layout_compatible.
2490 2021-08-17  Matt Jacobson  <mhjacobson@me.com>
2492         * c-opts.c (c_common_post_options): Default to
2493         flag_objc_sjlj_exceptions = 1 only when flag_objc_abi < 2.
2495 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
2497         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCOPE.
2498         * c-pragma.c (omp_pragmas): Add scope construct.
2499         * c-omp.c (omp_directives): Uncomment scope directive entry.
2501 2021-08-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2503         * c-cppbuiltin.c (c_cpp_builtins): Define
2504         __LIBGCC_GCOV_TYPE_SIZE if flag_building_libgcc is true.
2506 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
2508         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_MASKED.
2509         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FILTER.
2510         * c-pragma.c (omp_pragmas_simd): Add masked construct.
2511         * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_MASKED
2512         enumerator.
2513         (c_finish_omp_masked): Declare.
2514         * c-omp.c (c_finish_omp_masked): New function.
2515         (c_omp_split_clauses): Handle combined masked constructs.
2517 2021-07-30  Jakub Jelinek  <jakub@redhat.com>
2519         PR c++/101539
2520         * c-common.h (enum rid): Add RID_IS_POINTER_INTERCONVERTIBLE_BASE_OF.
2521         * c-common.c (c_common_reswords): Add
2522         __is_pointer_interconvertible_base_of.
2524 2021-07-29  Richard Biener  <rguenther@suse.de>
2526         PR c/101512
2527         * c-common.c (c_common_mark_addressable_vec): Look through
2528         C_MAYBE_CONST_EXPR even if not at the toplevel.
2530 2021-07-27  Martin Sebor  <msebor@redhat.com>
2532         PR c/101585
2533         * c-warn.c (warn_parm_ptrarray_mismatch): Use OEP_DECL_NAME.
2535 2021-07-23  Jakub Jelinek  <jakub@redhat.com>
2537         * c-lex.c (c_common_has_attribute): Call canonicalize_attr_name also
2538         on attr_id.  Return 1 for omp::directive or omp::sequence in C++11
2539         and later.
2541 2021-07-23  Jakub Jelinek  <jakub@redhat.com>
2543         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP__START_ and
2544         PRAGMA_OMP__LAST_ enumerators.
2546 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
2547             Joseph Myers  <joseph@codesourcery.com>
2548             Cesar Philippidis  <cesar@codesourcery.com>
2550         * c-pragma.h (pragma_omp_clause): Add 'PRAGMA_OACC_CLAUSE_NOHOST'.
2552 2021-07-20  Martin Sebor  <msebor@redhat.com>
2554         * c-common.c (c_build_shufflevector): Adjust by-value argument to
2555         by-const-reference.
2556         * c-common.h (c_build_shufflevector): Same.
2558 2021-07-16  Andrew Pinski  <apinski@marvell.com>
2560         PR c/101453
2561         * c-common.c (parse_optimize_options): Use the correct
2562         size for buffer.
2564 2021-07-15  Martin Sebor  <msebor@redhat.com>
2566         PR c/101289
2567         PR c/97548
2568         * c-warn.c (warn_parm_array_mismatch): Use OEP_DECL_NAME.
2570 2021-07-14  Jason Merrill  <jason@redhat.com>
2572         * c-opts.c (c_common_post_options): Set -fdelete-dead-exceptions.
2574 2021-07-06  Martin Sebor  <msebor@redhat.com>
2576         * c-format.c (gcc_tdiag_char_table): Remove support for %G and %K.
2577         (gcc_cdiag_char_table): Same.
2578         (gcc_cxxdiag_char_table): Same.
2580 2021-07-02  Jakub Jelinek  <jakub@redhat.com>
2582         * c-common.h (enum c_omp_directive_kind): New enum.
2583         (struct c_omp_directive): New type.
2584         (c_omp_categorize_directive): Declare.
2585         * c-omp.c (omp_directives): New variable.
2586         (c_omp_categorize_directive): New function.
2588 2021-07-01  Eric Botcazou  <ebotcazou@adacore.com>
2590         * c-ada-spec.c (packed_layout): New global variable.
2591         (dump_ada_declaration): Set it upon seeing a packed record type.
2592         Do not put the "aliased" keyword if it is set.
2593         (dump_ada_structure): Add Pack aspect if it is set and clear it.
2595 2021-07-01  Eric Botcazou  <ebotcazou@adacore.com>
2597         * c-ada-spec.c (check_name): Rename into...
2598         (check_type_name_conflict): ...this.  Minor tweak.
2599         (dump_ada_function_declaration): Adjust to above renaming.
2600         (dump_ada_array_domains): Fix oversight.
2601         (dump_ada_declaration): Call check_type_name_conflict for variables.
2603 2021-06-25  Martin Sebor  <msebor@redhat.com>
2605         * c-common.c (c_wrap_maybe_const): Remove TREE_NO_WARNING.
2606         (c_common_truthvalue_conversion): Replace direct uses of
2607         TREE_NO_WARNING with warning_suppressed_p, suppress_warning, and
2608         copy_no_warning.
2609         (check_function_arguments_recurse): Same.
2610         * c-gimplify.c (c_gimplify_expr): Same.
2611         * c-warn.c (overflow_warning): Same.
2612         (warn_logical_operator): Same.
2613         (warn_if_unused_value): Same.
2614         (do_warn_unused_parameter): Same.
2616 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
2618         * c-common.h (enum c_omp_region_type): Add C_ORT_TARGET and
2619         C_ORT_OMP_TARGET.
2620         * c-omp.c (c_omp_split_clauses): For OMP_CLAUSE_IN_REDUCTION on
2621         combined target constructs also add map (always, tofrom:) clause.
2623 2021-06-15  Robin Dapp  <rdapp@linux.ibm.com>
2625         * c-attribs.c (common_handle_aligned_attribute): Remove short
2626         circuit and dead code.
2628 2021-06-14  Jonathan Wakely  <jwakely@redhat.com>
2630         PR c++/101052
2631         * known-headers.cc (get_stdlib_header_for_name): Add known
2632         headers for EXIT_FAILURE, EXIT_SUCCESS, abort, atexit, calloc,
2633         exit, and getenv.
2635 2021-06-12  Jason Merrill  <jason@redhat.com>
2637         * c-attribs.c (handle_unused_attribute): Handle FIELD_DECL.
2639 2021-06-11  Jakub Jelinek  <jakub@redhat.com>
2641         PR c++/100974
2642         * c-cppbuiltin.c (c_cpp_builtins): Predefine __cpp_if_consteval for
2643         -std=c++2b for P1938R3 consteval if support.
2645 2021-06-09  Jason Merrill  <jason@redhat.com>
2647         PR c++/100879
2648         * c-warn.c (warn_for_sign_compare): Remove C++ enum mismatch
2649         warning.
2651 2021-06-07  Martin Liska  <mliska@suse.cz>
2653         * c-target.def: Split long lines and replace them
2654         with '\n\'.
2656 2021-06-04  Martin Sebor  <msebor@redhat.com>
2658         PR c/100783
2659         * c-attribs.c (positional_argument): Bail on erroneous types.
2661 2021-06-04  Martin Sebor  <msebor@redhat.com>
2663         * c-warn.c (warn_parm_array_mismatch): Check TREE_PURPOSE to test
2664         for element presence.
2666 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
2668         * c-ada-spec.c (dump_ada_macros): Minor tweaks.
2669         (dump_ada_decl_name): Likewise.
2670         (dump_anonymous_type_name): Remove parent parameter and adjust.
2671         (dump_sloc): Minor tweak.
2672         (dump_ada_array_type): Remove type parameter and adjust.
2673         (dump_ada_enum_type): Remove parent parameter and adjust.
2674         (dump_ada_node): Adjust calls to above functions.
2675         (dumped_anonymous_types): New global variable.
2676         (dump_nested_types_1): Rename into...
2677         (dump_nested_types): ...this.
2678         (dump_nested_type): Remove parent and dumped_types parameters.
2679         <ARRAY_TYPE>: Replace dumped_types with dumped_anonymous_types.
2680         Adjust calls to dump_anonymous_type_name and dump_ada_array_type.
2681         (dump_ada_specs): Initialize and free dumped_anonymous_types.
2683 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
2685         * c-ada-spec.c (pp_ada_tree_identifier): Tidy up.
2686         (dump_ada_node) <POINTER_TYPE>: Deal specially with external subtypes.
2688 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
2690         * c-ada-spec.c (dump_ada_enum_type): Dump a prefix for constants.
2691         (htable_t): New typedef.
2692         (overloaded_names): Use it.
2693         (add_name): New function.
2694         (init_overloaded_names): Use add_name to populate the table and add
2695         special cases for sigaction and stat.
2696         (overloaded_name_p): Rename into...
2697         (overloading_index): ...this.  Do not initialize overloaded_names table
2698         here.  Return the index or zero.
2699         (dump_ada_declaration): Minor tweaks.  Do not skip overloaded functions
2700         but add an overloading suffix instead.
2701         (dump_ada_specs): Initialize overloaded_names tables here.
2703 2021-06-01  Martin Liska  <mliska@suse.cz>
2705         PR other/100759
2706         * c-attribs.c (handle_optimize_attribute): Limit sanity check
2707         to a situation where we are not in processing of an optimize
2708         pragma.
2709         * c-pragma.c (handle_pragma_pop_options): Restore target
2710         options.
2712 2021-05-31  Indu Bhagat  <indu.bhagat@oracle.com>
2714         PR testsuite/100749
2715         * c-pch.c (c_common_valid_pch): Use xstrdup for debug format set names.
2717 2021-05-31  Richard Biener  <rguenther@suse.de>
2719         PR c++/88601
2720         * c-common.c: Include tree-vector-builder.h and
2721         vec-perm-indices.h.
2722         (c_common_reswords): Add __builtin_shufflevector.
2723         (c_build_shufflevector): New funtion.
2724         * c-common.h (enum rid): Add RID_BUILTIN_SHUFFLEVECTOR.
2725         (c_build_shufflevector): Declare.
2727 2021-05-28  Jakub Jelinek  <jakub@redhat.com>
2729         PR middle-end/99928
2730         * c-omp.c (c_omp_split_clauses): For reduction clause if combined with
2731         target add a map tofrom clause with OMP_CLAUSE_MAP_IMPLICIT.
2733 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
2735         * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_AFFINITY.
2737 2021-05-25  Martin Liska  <mliska@suse.cz>
2739         PR tree-optimization/92860
2740         PR target/99592
2741         * c-attribs.c (handle_optimize_attribute): Save target node
2742         before calling parse_optimize_options and save it in case
2743         it changes.
2744         * c-pragma.c (handle_pragma_target): Similarly for pragma.
2745         (handle_pragma_pop_options): Likewise here.
2747 2021-05-25  Martin Liska  <mliska@suse.cz>
2749         * c-attribs.c (handle_no_sanitize_coverage_attribute): New.
2751 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
2753         PR middle-end/99928
2754         * c-omp.c (c_omp_split_clauses): Copy reduction to teams when teams is
2755         combined with simd and not with taskloop or for.
2757 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
2759         PR middle-end/99928
2760         * c-omp.c (c_omp_split_clauses): Set OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT
2761         on firstprivate clause copy going to target construct, and for
2762         target simd set also OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET bit.
2764 2021-05-20  Jonathan Wakely  <jwakely@redhat.com>
2766         * c.opt (Wc++11-extensions, Wc++14-extensions)
2767         (Wc++17-extensions, Wc++20-extensions, Wc++23-extensions): New
2768         options.
2770 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
2772         * c-lex.c (init_c_lex): Use dwarf_debuginfo_p.
2774 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
2776         * c-opts.c (c_common_post_options): Adjust access to debug_type_names.
2777         * c-pch.c (struct c_pch_validity): Use type uint32_t.
2778         (pch_init): Renamed member.
2779         (c_common_valid_pch): Adjust access to debug_type_names.
2781 2021-05-19  Martin Sebor  <msebor@redhat.com>
2783         PR c/100619
2784         * c-attribs.c (build_attr_access_from_parms): Handle arbitrarily many
2785         bounds.
2787 2021-05-18  Richard Biener  <rguenther@suse.de>
2789         PR c/100547
2790         * c-attribs.c (type_valid_for_vector_size): Reject too large nunits.
2791         Reword existing nunit diagnostic.
2793 2021-05-17  Joern Rennecke  <joern.rennecke@embecosm.com>
2795         * c-common.c (braced_list_to_string): Return CTOR unchanged
2796         if host and target character sizes don't match.
2798 2021-05-14  Martin Liska  <mliska@suse.cz>
2800         * c.opt: Add Warning keyword for 2 options.
2802 2021-05-13  Martin Liska  <mliska@suse.cz>
2804         PR middle-end/100504
2805         * c-attribs.c (handle_target_clones_attribute): Expect a string
2806         argument to target_clone argument.
2808 2021-05-11  Joseph Myers  <joseph@codesourcery.com>
2810         * c-lex.c (interpret_float): Handle digit separators for C2X.
2812 2021-05-10  Martin Liska  <mliska@suse.cz>
2814         * c-ada-spec.c (print_destructor): Use startswith
2815         function instead of strncmp.
2816         (dump_ada_declaration): Likewise.
2817         * c-common.c (disable_builtin_function): Likewise.
2818         (def_builtin_1): Likewise.
2819         * c-format.c (check_tokens): Likewise.
2820         (check_plain): Likewise.
2821         (convert_format_name_to_system_name): Likewise.
2823 2021-04-28  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
2825         * c-cppbuiltin.c (c_cpp_builtins): Add supporting macros for new
2826         complex divide
2828 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
2829             Nathan Sidwell  <nathan@codesourcery.com>
2830             Tom de Vries  <vries@codesourcery.com>
2831             Julian Brown  <julian@codesourcery.com>
2832             Kwok Cheung Yeung  <kcy@codesourcery.com>
2834         * c.opt (Wopenacc-parallelism): New.
2836 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
2838         * c.opt (fopenacc-kernels=): Remove.
2840 2021-04-08  Jakub Jelinek  <jakub@redhat.com>
2842         * c-warn.c (do_warn_double_promotion): Fix comment typo,
2843         occured -> occurred.
2844         (check_alignment_of_packed_member): Fix a comment typo,
2845         memeber -> member.
2846         (warn_parm_ptrarray_mismatch): Fix comment typos, os -> of
2847         and onless -> unless.
2848         (warn_parm_array_mismatch): Fix comment typos, declaratation
2849         -> declaration and woud -> would.  Fix up comment indentation.
2851 2021-04-08  Martin Sebor  <msebor@redhat.com>
2853         PR middle-end/99883
2854         * c.opt (Wmismatched-new-delete): Correct spelling.
2856 2021-04-05  Eric Botcazou  <ebotcazou@adacore.com>
2858         * c-ada-spec.c (is_simple_enum): Minor tweaks.
2859         (dump_ada_enum_type): Add TYPE and PARENT parameters.  For non-simple
2860         enumeral types use again the type name for the enumeration constants.
2861         (dump_ada_node): Adjust call to dump_ada_enum_type.
2862         (dump_nested_type): Likewise.
2864 2021-04-01  Jason Merrill  <jason@redhat.com>
2866         PR c++/98481
2867         * c-opts.c (c_common_post_options): Bump latest_abi_version.
2869 2021-03-25  Jakub Jelinek  <jakub@redhat.com>
2871         PR c++/99565
2872         * c-warn.c (do_warn_duplicated_branches): Pass also
2873         OEP_ADDRESS_OF_SAME_FIELD to operand_equal_p.
2875 2021-03-20  Jakub Jelinek  <jakub@redhat.com>
2877         PR debug/99230
2878         * c-gimplify.c (c_genericize_control_stmt): Handle STATEMENT_LIST.
2880 2021-03-05  Eric Botcazou  <ebotcazou@adacore.com>
2882         * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Dump nested types
2883         after entering the separate class package, if any.
2885 2021-03-04  Richard Biener  <rguenther@suse.de>
2887         * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator):
2888         Handle ERROR_MARK.
2890 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
2892         PR c/99325
2893         * c-ppoutput.c (print): Change src_line type from int to unsigned.
2894         (token_streamer::stream) Likewise.
2895         (maybe_print_line_1): Likewise.  Don't strcmp src_file if src_loc is
2896         UNKNOWN_LOCATION.
2898 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
2900         PR c/99324
2901         * c-common.c (build_va_arg): Call c_common_mark_addressable_vec
2902         instead of mark_addressable.  Fix a comment typo -
2903         neutrallly -> neutrally.
2905 2021-02-28  Jakub Jelinek  <jakub@redhat.com>
2907         PR c/99304
2908         * c-attribs.c (handle_malloc_attribute): Fix a typo in inform
2909         message - refernced -> referenced.  Remove superfluous space before
2910         closing paren of function calls.
2912 2021-02-25  Nathan Sidwell  <nathan@acm.org>
2914         PR c++/99166
2915         * c.opt (-flang-info-module-cmi): Renamed option.
2917 2021-02-19  Nathan Sidwell  <nathan@acm.org>
2919         * c.opt (flang-info-module-read, flang-info-module-read=): New.
2921 2021-02-18  H.J. Lu  <hjl.tools@gmail.com>
2923         PR target/99113
2924         * c-attribs.c (c_common_attribute_table): Add the "retain"
2925         attribute.
2926         (handle_retain_attribute): New function.
2928 2021-02-16  Marek Polacek  <polacek@redhat.com>
2930         PR c++/99062
2931         * c-attribs.c (handle_assume_aligned_attribute): Check that the
2932         alignment argument is non-negative.  Tweak a warning message.
2934 2021-02-12  Martin Sebor  <msebor@redhat.com>
2936         PR c/99055
2937         * c-warn.c (warn_parm_array_mismatch): Free strings returned from
2938         print_generic_expr_to_str.
2940 2021-02-10  Richard Biener  <rguenther@suse.de>
2942         * c-common.c (parse_optimize_options): Free decoded_options.
2944 2021-02-04  emsr  <3dw4rd@verizon.net>
2946         * c-cppbuiltin.c (c_cpp_builtins): __cpp_size_t_suffix=202011L.
2948 2021-02-03  Ed Smith-Rowland  <3dw4rd@verizon.net>
2950         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_size_t_suffix.
2951         * c-lex.c (interpret_integer): Set node type for size literal.
2953 2021-01-28  Jakub Jelinek  <jakub@redhat.com>
2955         * c.opt (-std=c++2a, -std=c++20, -std=gnu++2a, -std=gnu++20): Remove
2956         draft from description.
2957         (-std=c++2b): Fix a pasto, 2020 -> 2023.
2959 2021-01-26  Paul Fee  <paul.f.fee@gmail.com>
2961         * c-common.h (cxx_dialect): Add cxx23 as a dialect.
2962         * c.opt: Add options for -std=c++23, std=c++2b, -std=gnu++23
2963         and -std=gnu++2b
2964         * c-opts.c (set_std_cxx23): New.
2965         (c_common_handle_option): Set options when -std=c++23 is enabled.
2966         (c_common_post_options): Adjust comments.
2967         (set_std_cxx20): Likewise.
2969 2021-01-25  Martin Sebor  <msebor@redhat.com>
2971         PR c++/98646
2972         * c-common.c (check_nonnull_arg): Adjust warning text.
2974 2021-01-17  Martin Sebor  <msebor@redhat.com>
2976         * c-pretty-print.c (c_pretty_printer::primary_expression): Don't
2977         assume SSA_NAME_IDENTIFIER evaluates to nonzero.
2979 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
2981         * c-pragma.h (pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_DETACH.
2982         Redefine PRAGMA_OACC_CLAUSE_DETACH.
2984 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
2986         PR tree-optimization/98597
2987         * c-pretty-print.c: Include options.h.
2988         (c_fold_indirect_ref_for_warn): New function.
2989         (print_mem_ref): Use it.  If it returns something that has compatible
2990         type and is TBAA compatible with zero offset, print it and return,
2991         otherwise print it using offsetof syntax or array ref syntax.  Fix up
2992         printing if MEM_REFs first operand is ADDR_EXPR, or when the first
2993         argument has pointer to array type.  Print pointers using the standard
2994         formatting.
2996 2021-01-12  Martin Sebor  <msebor@redhat.com>
2998         PR c/98597
2999         PR c/98592
3000         * c-pretty-print.c (print_mem_ref): Avoid assuming MEM_REF operand
3001         has pointer type.  Remove redundant code.  Avoid calling
3002         gimple_canonical_types_compatible_p.
3004 2021-01-07  Martin Sebor  <msebor@redhat.com>
3006         PR middle-end/98578
3007         * c-pretty-print.c (print_mem_ref): Strip array from access type.
3008         Avoid assuming acces type's size is constant.  Correct condition
3009         guarding the printing of a parenthesis.
3011 2021-01-06  Martin Sebor  <msebor@redhat.com>
3013         PR c++/95768
3014         * c-pretty-print.c (c_pretty_printer::primary_expression): For
3015         SSA_NAMEs print VLA names and GIMPLE defining statements.
3016         (print_mem_ref): New function.
3017         (c_pretty_printer::unary_expression): Call it.
3019 2021-01-06  Richard Biener  <rguenther@suse.de>
3021         PR tree-optimization/95582
3022         * c-attribs.c (c_common_attribute_table): Add entry for
3023         signed_bool_precision.
3024         (handle_signed_bool_precision_attribute): New.
3026 2020-12-24  Iain Sandoe  <iain@sandoe.co.uk>
3028         * c.opt: Add -stdlib= option and enumerations for
3029         libstdc++ and libc++.
3031 2020-12-16  Martin Liska  <mliska@suse.cz>
3033         * c.opt: Remove usage of Report.
3035 2020-12-14  Martin Sebor  <msebor@redhat.com>
3037         PR middle-end/98166
3038         PR c++/57111
3039         PR middle-end/98160
3040         * c-attribs.c (maybe_add_noinline): New function.
3041         (handle_malloc_attribute): Call it.  Use ATTR_FLAG_INTERNAL.
3042         Implicitly add attribute noinline to functions not declared inline
3043         and warn on those.
3045 2020-12-09  Tobias Burnus  <tobias@codesourcery.com>
3047         * c-pragma.c (omp_pragmas): Add 'allocate'.
3048         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ALLOCATE.
3050 2020-12-08  Jakub Jelinek  <jakub@redhat.com>
3052         PR c++/98187
3053         * c-pragma.c (omp_pragmas): Remove "master".
3054         (omp_pragmas_simd): Add "master".
3056 2020-12-07  Marek Polacek  <polacek@redhat.com>
3058         PR c++/98126
3059         * c-common.c (verify_tree_lim_r): New function.
3060         (verify_sequence_points): Use it.  Use nullptr instead of 0.
3062 2020-12-03  Martin Sebor  <msebor@redhat.com>
3064         PR c++/90629
3065         PR middle-end/94527
3066         * c-attribs.c (handle_dealloc_attribute): New function.
3067         (handle_malloc_attribute): Handle argument forms of attribute.
3068         * c.opt (-Wmismatched-dealloc): New option.
3069         (-Wmismatched-new-delete): New option.
3071 2020-12-03  Jakub Jelinek  <jakub@redhat.com>
3073         PR libstdc++/93121
3074         * c-common.h (enum rid): Add RID_BUILTIN_BIT_CAST.
3075         * c-common.c (c_common_reswords): Add __builtin_bit_cast.
3077 2020-12-01  JeanHeyd Meneide  <phdofthehouse@gmail.com>
3079         * c-cppbuiltin.c (c_cpp_builtins): Add predefined
3080         {__GNUC_EXECUTION_CHARSET_NAME} and
3081         _WIDE_EXECUTION_CHARSET_NAME} macros.
3083 2020-12-01  Nathan Sidwell  <nathan@acm.org>
3085         * c-common.c (module, import, export): New internal tokens (with
3086         trailing space).
3087         * c-common.h (RID__MODULE, RID__IMPORT & RID__EXPORT): Enumerate
3088         them.
3089         (D_CXX_MODULES, D_CXX_MODULES_FLAGS): Enable them.
3090         * c-cppbuiltin.c (c_cpp_builtins): Feature macro.
3092 2020-12-01  Nathan Sidwell  <nathan@acm.org>
3094         * c-opts.c (c_common_init_options): Ask for module dependencies.
3095         (c_common_handle_option): Handle -Mmodules -Mno-modules.
3096         * c-pch.c (c_common_valid_pch): ... does not play with C++
3097         modules.
3098         * c.opt (Mmodules, Mno-modules): New preprocessor dependency
3099         options.
3100         (fmodules-ts, fmodule-header, fmodule-implicit-inline)
3101         (fmodule-only, fmodule-mapper, fmodule-lazy)
3102         (fmodule-version-ignore, Winvalid-imported-macros)
3103         (flang-info-include-translate, flang-info-include-translate-not):
3104         New options
3106 2020-11-28  Eric Botcazou  <ebotcazou@adacore.com>
3108         * c-ada-spec.c (dump_nested_type) <RECORD_TYPE>: Remove obsolete code.
3109         (dump_ada_structure): Also deal with convention, unchecked union and
3110         bit-field for nested types.  In the latter case, print an Alignment
3111         aspect along with the Pack aspect.
3113 2020-11-25  Martin Sebor  <msebor@redhat.com>
3115         PR bootstrap/94982
3116         * c-attribs.c (handle_patchable_function_entry_attribute): Avoid
3117         -Wformat-diag.
3119 2020-11-24  Martin Sebor  <msebor@redhat.com>
3121         * c-warn.c (warn_parm_array_mismatch): Avoid invalid redeclarations.
3123 2020-11-23  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
3125         * c-attribs.c (handle_special_var_sec_attribute): New.
3126         (handle_noinit_attribute): Remove.
3127         (attr_noinit_exclusions): Rename to...
3128         (attr_section_exclusions): ...this, and add "persistent" attribute
3129         exclusion.
3130         (c_common_attribute_table): Add "persistent" attribute.
3132 2020-11-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
3134         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
3135         Treat opaque types like other types.
3136         (c_pretty_printer::direct_abstract_declarator): Opaque types are
3137         supported types.
3139 2020-11-20  Martin Sebor  <msebor@redhat.com>
3141         * c-warn.c (warn_parm_array_mismatch): Bail on invalid redeclarations
3142         with fewer arguments.
3144 2020-11-20  Martin Sebor  <msebor@redhat.com>
3146         PR middle-end/97879
3147         * c-attribs.c (handle_access_attribute): Handle ATTR_FLAG_INTERNAL.
3148         Error out on invalid modes.
3150 2020-11-20  Jakub Jelinek  <jakub@redhat.com>
3152         PR libstdc++/88101
3153         * c-common.c (check_builtin_function_arguments): Handle
3154         BUILT_IN_CLEAR_PADDING.
3156 2020-11-18  Nathan Sidwell  <nathan@acm.org>
3158         * c-lex.c (c_lex_with_flags): CPP_HEADER_NAMEs can now be seen.
3160 2020-11-17  Nathan Sidwell  <nathan@acm.org>
3162         * c-common.h (enum c_tree_index): Reorder to place lazy fields
3163         after newly-added CTI_MODULE_HWM.
3165 2020-11-17  Joseph Myers  <joseph@codesourcery.com>
3167         * c-cppbuiltin.c (builtin_define_float_constants): Define
3168         "*_IS_IEC_60559__" macros.
3170 2020-11-17  Nathan Sidwell  <nathan@acm.org>
3172         * c-lex.c: #include "langhooks.h".
3173         (cb_undef): Maybe call preprocess_undef lang hook.
3174         * c-opts.c (c_common_post_options): Maybe call preprocess_options
3175         lang hook.
3176         (push_command_line_include): Maybe call preprocess_main_file lang
3177         hook.
3178         (cb_file_change): Likewise.
3179         * c-ppoutput.c: #include "langhooks.h.
3180         (scan_translation_unit): Maybe call preprocess_token lang hook.
3181         (class do_streamer): New, derive from token_streamer.
3182         (directives_only_cb): Data pointer is do_streamer, call
3183         preprocess_token lang hook.
3184         (scan_translation_unit_directives_only): Use do_streamer.
3185         (print_line_1): Move src_line recording to after string output.
3186         (cb_undef): Maybe call preprocess_undef lang hook.
3188 2020-11-17  Nathan Sidwell  <nathan@acm.org>
3190         * c-ppoutput.c (scan_translation_unit): Use token_streamer, remove
3191         code duplicating that functionality.
3193 2020-11-17  Jakub Jelinek  <jakub@redhat.com>
3195         PR c/90628
3196         * c-common.c (check_builtin_function_arguments)
3197         <case BUILT_IN_ADD_OVERFLOW>: Diagnose when last argument is pointer
3198         to _Atomic.  For the TYPE_READONLY case, adjust message to be usable
3199         for more builtins and argument positions.
3201 2020-11-16  Iain Sandoe  <iain@sandoe.co.uk>
3203         PR objc/97854
3204         * stub-objc.c: Include c-common.h to declare enum rid.
3206 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
3208         PR c++/63287
3209         * c-cppbuiltin.c: Include configargs.h.
3210         (c_cpp_builtins): For C++11 and later if THREAD_MODEL_SPEC is not
3211         defined, predefine __STDCPP_THREADS__ to 1 unless thread_model is
3212         "single".
3214 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
3215             Thomas Schwinge  <thomas@codesourcery.com>
3217         * c.opt (fopenacc-kernels): Add.
3219 2020-11-13  Jason Merrill  <jason@redhat.com>
3221         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_using_enum.
3223 2020-11-13  Piotr H. Dabrowski  <phd@phd.re>
3225         PR c++/91318
3226         * c-cppbuiltin.c: c_cpp_builtins_optimize_pragma(): use cpp_define_unused()
3228 2020-11-13  Martin Liska  <mliska@suse.cz>
3230         * c-attribs.c (build_attr_access_from_parms): Format properly.
3232 2020-11-13  Iain Sandoe  <iain@sandoe.co.uk>
3234         PR objc/90707
3235         * c-common.c (c_common_reswords): null_unspecified, nullable,
3236         nonnull, null_resettable: New keywords.
3237         * c-common.h (enum rid): RID_NULL_UNSPECIFIED, RID_NULLABLE,
3238         RID_NONNULL, RID_NULL_RESETTABLE: New.
3239         (OBJC_IS_PATTR_KEYWORD): Include nullability keywords in the
3240         ranges accepted for property attributes.
3241         * c-attribs.c (handle_objc_nullability_attribute): New.
3242         * c-objc.h (enum objc_property_attribute_group): Add
3243         OBJC_PROPATTR_GROUP_NULLABLE.
3244         (enum objc_property_attribute_kind):Add
3245         OBJC_PROPERTY_ATTR_NULL_UNSPECIFIED, OBJC_PROPERTY_ATTR_NULLABLE,
3246         OBJC_PROPERTY_ATTR_NONNULL, OBJC_PROPERTY_ATTR_NULL_RESETTABLE.
3248 2020-11-13  Iain Sandoe  <iain@sandoe.co.uk>
3250         PR objc/77404
3251         * c-attribs.c (handle_objc_root_class_attribute): New
3252         * c-objc.h (objc_start_class_interface): Add a location
3253         value for the position of the class name.
3254         * c.opt: Add Wobjc-root-class.
3255         * stub-objc.c (objc_start_class_interface): Add a location
3256         value for the position of the class name.
3258 2020-11-12  Joseph Myers  <joseph@codesourcery.com>
3260         * c-lex.c (c_common_has_attribute): Take argument std_syntax.
3261         Allow scope for C.  Handle standard attributes for C.  Do not
3262         accept unscoped attributes if std_syntax and not handled as
3263         standard attributes.
3264         * c-common.h (c_common_has_attribute): Update prototype.
3266 2020-11-12  Nicholas Guriev  <guriev-ns@ya.ru>
3268         PR pch/86674
3269         * c-pch.c (c_common_valid_pch): Use cpp_warning with CPP_W_INVALID_PCH
3270         reason to fix -Werror=invalid-pch and -Wno-error=invalid-pch switches.
3272 2020-11-11  Patrick Palka  <ppalka@redhat.com>
3274         PR c++/88115
3275         * c-opts.c (c_common_post_options): Update latest_abi_version.
3277 2020-11-10  Jakub Jelinek  <jakub@redhat.com>
3279         PR c/97748
3280         * c-common.h (warn_if_unused_value): Add quiet argument defaulted
3281         to false.
3282         * c-warn.c (warn_if_unused_value): Likewise.  Pass it down
3283         recursively and just return true instead of warning if it is true.
3284         Handle COMPLEX_EXPR.
3286 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
3288         * c-common.h (c_omp_adjust_map_clauses): New declaration.
3289         * c-omp.c (struct map_clause): Helper type for c_omp_adjust_map_clauses.
3290         (c_omp_adjust_map_clauses): New function.
3292 2020-11-09  Marek Polacek  <polacek@redhat.com>
3294         DR 1914
3295         * c-common.c (attribute_fallthrough_p): Tweak the warning
3296         message.
3298 2020-11-09  Patrick Palka  <ppalka@redhat.com>
3300         * c-pragma.c (handle_pragma_diagnostic): Split the
3301         unknown-option -Wpragmas diagnostic into a warning and a
3302         subsequent note containing a spelling suggestion.  Avoid
3303         computing the suggestion if -Wpragmas warnings are being
3304         suppressed.
3306 2020-11-09  Patrick Palka  <ppalka@redhat.com>
3308         PR testsuite/97117
3309         * c-indentation.c (get_visual_column): Remove location_t
3310         parameter.  Move the column-tracking diagnostic code from here
3311         to ...
3312         (should_warn_for_misleading_indentation): ... here, before the
3313         early exit for when the loci are not all distinct.  Don't pass a
3314         location_t argument to get_visual_column.
3315         (assert_get_visual_column_succeeds): Don't pass a location_t
3316         argument to get_visual_column.
3317         (assert_get_visual_column_fails): Likewise.
3319 2020-11-08  Iain Sandoe  <iain@sandoe.co.uk>
3321         * c-common.h (OBJC_IS_PATTR_KEYWORD): Add class to the list
3322         of keywords accepted in @property attribute contexts.
3323         * c-objc.h (enum objc_property_attribute_group): Add
3324         OBJC_PROPATTR_GROUP_CLASS.
3325         (enum objc_property_attribute_kind): Add
3326         OBJC_PROPERTY_ATTR_CLASS.
3328 2020-11-07  Iain Sandoe  <iain@sandoe.co.uk>
3330         * c-common.c (c_common_reswords): Add 'atomic' property
3331         attribute.
3332         * c-common.h (enum rid): Add RID_PROPATOMIC for atomic
3333         property attributes.
3335 2020-11-07  Iain Sandoe  <iain@sandoe.co.uk>
3337         * c-attribs.c (handle_nsobject_attribute): New.
3338         * c.opt: Add WNSObject-attribute.
3340 2020-11-06  Iain Sandoe  <iain@sandoe.co.uk>
3342         * c-objc.h (enum objc_property_attribute_group): New
3343         (enum objc_property_attribute_kind): New.
3344         (OBJC_PROPATTR_GROUP_MASK): New.
3345         (struct property_attribute_info): Small class encapsulating
3346         parser output from property attributes.
3347         (objc_prop_attr_kind_for_rid): New
3348         (objc_add_property_declaration): Simplify interface.
3349         * stub-objc.c (enum rid): Dummy type.
3350         (objc_add_property_declaration): Simplify interface.
3351         (objc_prop_attr_kind_for_rid): New.
3353 2020-11-06  Nathan Sidwell  <nathan@acm.org>
3355         * c-ada-spec.c (collect_ada_nodes): Rename
3356         DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
3357         (collect_ada_node): Likewise.
3358         (dump_forward_type): Likewise.
3359         * c-common.c (set_underlying_type): Rename
3360         DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
3361         (user_facing_original_type, c_common_finalize_early_debug): Likewise.
3363 2020-11-06  Jakub Jelinek  <jakub@redhat.com>
3365         * c-common.c (verify_sequence_points): Remove DEBUG_FUNCTION.
3367 2020-11-05  Marek Polacek  <polacek@redhat.com>
3369         PR c++/97675
3370         * c.opt (Wexceptions): New option.
3372 2020-11-05  Marek Polacek  <polacek@redhat.com>
3374         PR c++/25814
3375         * c.opt (Wvexing-parse): New option.
3377 2020-11-04  Jakub Jelinek  <jakub@redhat.com>
3379         PR c++/97670
3380         * c-omp.c (c_omp_split_clauses): Look through array reductions to find
3381         underlying decl to clear in the allocate_head bitmap.
3383 2020-11-04  Iain Sandoe  <iain@sandoe.co.uk>
3385         * c-objc.h (objc_non_constant_expr_p): New.
3386         * stub-objc.c (objc_non_constant_expr_p): New.
3388 2020-11-03  Nathan Sidwell  <nathan@acm.org>
3390         * c.opt (MQ,MT): Reword description to be make-agnostic.
3392 2020-11-02  Nathan Sidwell  <nathan@acm.org>
3394         * c-opts.c (c_common_post_options): Move var decl to its
3395         initialization point.
3397 2020-11-01  Iain Sandoe  <iain@sandoe.co.uk>
3399         * c-lex.c (c_lex_with_flags): When combining '@' with a
3400         keyword for Objective-C, combine the location ranges too.
3402 2020-10-30  Qing Zhao  <qing.zhao@oracle.com>
3403             H.J.Lu  <hjl.tools@gmail.com>
3405         * c-attribs.c (c_common_attribute_table): Add new attribute
3406         zero_call_used_regs.
3407         (handle_zero_call_used_regs_attribute): New function.
3409 2020-10-28  Marek Polacek  <polacek@redhat.com>
3411         PR c++/97573
3412         * c-opts.c (c_common_post_options): In C++20, turn on
3413         -Wdeprecated-enum-enum-conversion and
3414         -Wdeprecated-enum-float-conversion.
3415         * c.opt (Wdeprecated-enum-enum-conversion,
3416         Wdeprecated-enum-float-conversion): New options.
3417         (Wenum-conversion): Allow for C++ too.
3419 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
3421         * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALLOCATE.
3422         * c-omp.c: Include bitmap.h.
3423         (c_omp_split_clauses): Handle OMP_CLAUSE_ALLOCATE.
3425 2020-10-26  Ville Voutilainen  <ville.voutilainen@gmail.com>
3427         * c-common.c (__is_nothrow_assignable): New.
3428         (__is_nothrow_constructible): Likewise.
3429         * c-common.h (RID_IS_NOTHROW_ASSIGNABLE): New.
3430         (RID_IS_NOTHROW_CONSTRUCTIBLE): Likewise.
3432 2020-10-23  Jan Hubicka  <hubicka@ucw.cz>
3434         * c-common.c (c_common_finalize_early_debug): Update for new thunk api.
3436 2020-10-23  Marek Polacek  <polacek@redhat.com>
3438         PR c++/91741
3439         * c-common.c (verify_tree): Handle PAREN_SIZEOF_EXPR.
3440         (c_common_init_ts): Likewise.
3441         * c-common.def (PAREN_SIZEOF_EXPR): New tree code.
3442         * c-common.h (maybe_warn_sizeof_array_div): Declare.
3443         * c-warn.c (sizeof_pointer_memaccess_warning): Unwrap NOP_EXPRs.
3444         (maybe_warn_sizeof_array_div): New function.
3445         * c.opt (Wsizeof-array-div): New option.
3447 2020-10-23  Martin Sebor  <msebor@redhat.com>
3449         PR c/97463
3450         * c-warn.c (warn_parm_ptrarray_mismatch): Move null test earlier.
3452 2020-10-22  Martin Liska  <mliska@suse.cz>
3454         PR c/94722
3455         * c-attribs.c (handle_no_stack_protect_function_attribute): New.
3456         (handle_stack_protect_attribute): Add error message for a
3457         no_stack_protector function.
3459 2020-10-22  Martin Liska  <mliska@suse.cz>
3461         * c-cppbuiltin.c (c_cpp_builtins): Use the stack_protector enum.
3463 2020-10-22  Jan Hubicka  <hubicka@ucw.cz>
3465         * c-gimplify.c: Include tree-nested.h
3466         (c_genericize): Update for new nested function info.
3468 2020-10-14  Martin Sebor  <msebor@redhat.com>
3470         PR c/97413
3471         * c-attribs.c (build_attr_access_from_parms): Wrap chain of VLA
3472         bounds in an extra list.
3474 2020-10-05  Richard Biener  <rguenther@suse.de>
3475             Jakub Jelinek  <jakub@redhat.com>
3477         PR c++/97197
3478         * c-pretty-print.c: Include langhooks.h.
3479         (c_pretty_printer::postfix_expression): Handle TARGET_MEM_REF as
3480         expression.
3481         (c_pretty_printer::expression): Handle TARGET_MEM_REF as
3482         unary_expression.
3483         (c_pretty_printer::unary_expression): Handle TARGET_MEM_REF.
3485 2020-09-30  Martin Sebor  <msebor@redhat.com>
3487         PR middle-end/97189
3488         * c-attribs.c (append_access_attr): Use the function declaration
3489         location for a warning about an attribute access argument.
3491 2020-09-29  Marek Polacek  <polacek@redhat.com>
3493         PR c++/94695
3494         * c.opt (Wrange-loop-construct): New option.
3496 2020-09-23  Martin Sebor  <msebor@redhat.com>
3498         PR c/97131
3499         * c-warn.c (warn_parm_ptrarray_mismatch): Handle more invalid input.
3501 2020-09-23  Marek Polacek  <polacek@redhat.com>
3503         PR c/97125
3504         * c-gimplify.c (c_genericize): Only call do_warn_duplicated_branches_r
3505         after loops and other structured control constructs have been lowered.
3507 2020-09-22  Jakub Jelinek  <jakub@redhat.com>
3509         * c.opt (Wbuiltin-declaration-mismatch): Fix typo in variable name:
3510         warn_builtin_declaraion_mismatch -> warn_builtin_declaration_mismatch.
3512 2020-09-21  Marek Polacek  <polacek@redhat.com>
3514         * c.opt (Wctad-maybe-unsupported): New option.
3516 2020-09-19  Martin Sebor  <msebor@redhat.com>
3518         PR c/50584
3519         * c-common.h (warn_parm_array_mismatch): Declare new function.
3520         (has_attribute): Move declaration of an existing function.
3521         (build_attr_access_from_parms): Declare new function.
3522         * c-warn.c (parm_array_as_string): Define new function.
3523         (plus_one):  Define new function.
3524         (warn_parm_ptrarray_mismatch): Define new function.
3525         (warn_parm_array_mismatch):  Define new function.
3526         (vla_bound_parm_decl): New function.
3527         * c.opt (-Warray-parameter, -Wvla-parameter): New options.
3528         * c-pretty-print.c (pp_c_type_qualifier_list): Don't print array type
3529         qualifiers here...
3530         (c_pretty_printer::direct_abstract_declarator): ...but instead print
3531         them in brackets here.  Also print [static].  Strip extraneous
3532         expressions from VLA bounds.
3534 2020-09-19  Martin Sebor  <msebor@redhat.com>
3536         PR c/50584
3537         * c-attribs.c (c_common_attribute_table): Add "arg spec" attribute.
3538         (handle_argspec_attribute): New function.
3539         (get_argument, get_argument_type): New functions.
3540         (append_access_attrs): Add overload.  Handle internal attribute
3541         representation in addition to external.
3542         (handle_access_attribute): Handle internal attribute representation
3543         in addition to external.
3544         (build_attr_access_from_parms): New function.
3546 2020-09-19  Sandra Loosemore  <sandra@codesourcery.com>
3548         * c-gimplify.c (genericize_c_loop): Rewrite to match
3549         c_finish_loop in c-typeck.c.
3551 2020-09-19  Sandra Loosemore  <sandra@codesourcery.com>
3553         * c-common.c (c_block_may_fallthrough): New, split from
3554         cxx_block_may_fallthrough in the cp front end.
3555         (c_common_init_ts): Move handling of loop and switch-related
3556         statements here from the cp front end.
3557         * c-common.def (FOR_STMT, WHILE_STMT, DO_STMT): Move here from
3558         cp front end.
3559         (BREAK_STMT, CONTINUE_STMT, SWITCH_STMT): Likewise.
3560         * c-common.h (c_block_may_fallthru): Declare.
3561         (bc_state_t): Move here from cp front end.
3562         (save_bc_state, restore_bc_state): Declare.
3563         (c_genericize_control_stmt): Declare.
3564         (WHILE_COND, WHILE_BODY): Likewise.
3565         (DO_COND, DO_BODY): Likewise.
3566         (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY, FOR_SCOPE): Likewise.
3567         (SWITCH_STMT_COND, SWITCH_STMT_BODY): Likewise.
3568         (SWITCH_STMT_TYPE, SWITCH_STMT_SCOPE): Likewise.
3569         (SWITCH_STMT_ALL_CASES_P, SWITCH_STMT_NO_BREAK_P): Likewise.
3570         (LABEL_DECL_BREAK, LABEL_DECL_CONTINUE): Likewise.
3571         * c-dump.c (dump_stmt): Copy from cp front end.
3572         (c_dump_tree): Move code to handle structured loop and switch
3573         tree nodes here from cp front end.
3574         * c-gimplify.c: Adjust includes.
3575         (enum bc_t, bc_label, begin_bc_block, finish_bc_block): Move from
3576         cp front end.
3577         (save_bc_state, restore_bc_state): New functions using old code
3578         from cp front end.
3579         (get_bc_label, expr_loc_or_loc): Move from cp front end.
3580         (genericize_c_loop): Move from cp front end.
3581         (genericize_for_stmt, genericize_while_stmt): Likewise.
3582         (genericize_do_stmt, genericize_switch_stmt): Likewise.
3583         (genericize_continue_stmt, genericize_break_stmt): Likewise.
3584         (genericize_omp_for_stmt): Likewise.
3585         (c_genericize_control_stmt): New function using code split from
3586         cp front end.
3587         (c_genericize_control_r): New.
3588         (c_genericize): Call walk_tree with c_genericize_control_r.
3589         * c-pretty-print.c (c_pretty_printer::statement): Move code to handle
3590         structured loop and switch tree nodes here from cp front end.
3592 2020-09-17  Patrick Palka  <ppalka@redhat.com>
3594         PR c/80076
3595         * c-indentation.c (should_warn_for_misleading_indentation): Move
3596         declarations of local variables closer to their first use.
3597         Handle virtual token locations by resolving them to their
3598         respective macro expansion points.  If all three tokens are
3599         produced from the same macro expansion, then instead use their
3600         loci within the macro definition.
3602 2020-09-16  Martin Sebor  <msebor@redhat.com>
3604         PR c/78666
3605         PR c/96126
3606         * c-attribs.c (validate_attr_args): New function.
3607         (validate_attr_arg): Same.
3608         (handle_section_attribute): Call it.  Introduce a local variable.
3609         (handle_alloc_size_attribute):  Same.
3610         (handle_alloc_align_attribute): Same.
3612 2020-09-14  Jakub Jelinek  <jakub@redhat.com>
3614         * c-attribs.c (handle_optimize_attribute): Adjust
3615         cl_optimization_save, cl_optimization_restore and
3616         build_optimization_node callers.
3617         * c-pragma.c (handle_pragma_optimize): Adjust
3618         build_optimization_node caller.
3619         (handle_pragma_push_options): Adjust
3620         build_optimization_node and build_target_option_node callers.
3621         (handle_pragma_pop_options, handle_pragma_reset_options):
3622         Adjust cl_optimization_restore callers.
3624 2020-08-28  Martin Sebor  <msebor@redhat.com>
3626         * c.opt (Wstringop-overread): New option.
3628 2020-08-11  Jakub Jelinek  <jakub@redhat.com>
3630         PR c/96545
3631         * c-common.c (get_atomic_generic_size): Require that first argument's
3632         type points to a complete type and use tree_fits_uhwi_p instead of
3633         just INTEGER_CST TREE_CODE check for the TYPE_SIZE_UNIT.
3635 2020-07-31  Martin Sebor  <msebor@redhat.com>
3637         PR c++/96003
3638         * c-common.c (check_function_arguments_recurse): Return early when
3639         no-warning bit is set.
3641 2020-07-31  Richard Biener  <rguenther@suse.de>
3643         PR debug/96383
3644         * c-common.h (c_common_finalize_early_debug): Declare.
3645         * c-common.c: Include debug.h.
3646         (c_common_finalize_early_debug): finalize_early_debug langhook
3647         implementation generating debug for extern declarations.
3649 2020-07-27  Nathan Sidwell  <nathan@acm.org>
3651         * c-common.c (try_to_locate_new_include_insertion_point): Use
3652         strcmp, not pointer equality.
3654 2020-07-25  Martin Sebor  <msebor@redhat.com>
3656         PR c++/96310
3657         * c-common.c (check_nonnull_arg): Print note only when warning was
3658         issued.
3660 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
3662         * c-omp.c (c_finish_omp_critical): Check for no name but
3663         nonzero hint provided.
3665 2020-07-20  Jason Merrill  <jason@redhat.com>
3667         * c-cppbuiltin.c (c_cpp_builtins): Update
3668         __cpp_nontype_template_args for C++20.
3670 2020-07-20  Martin Sebor  <msebor@redhat.com>
3672         PR c/96249
3673         * c.opt: Remove stray text.
3675 2020-07-14  Lewis Hyatt  <lhyatt@gmail.com>
3677         PR other/86904
3678         * c-indentation.c (should_warn_for_misleading_indentation): Get
3679         global tabstop from the new source.
3680         * c-opts.c (c_common_handle_option): Remove handling of -ftabstop, which
3681         is now a common option.
3682         * c.opt: Likewise.
3684 2020-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3686         * c.opt (Wscalar-storage-order): Add explicit variable.
3688 2020-07-07  Nathan Sidwell  <nathan@acm.org>
3690         * c-opts.c (c_common_post_options): Add 'injecting' arg to
3691         cpp_read_main_file.
3692         (c_finish_options): Add linemap_line_start calls for builtin and cmd
3693         maps.  Force token position to line_table's highest line.
3694         * c-ppoutput.c (print_line_1): Refactor, print line zero.
3695         (cb_define): Always increment source line.
3697 2020-07-06  Martin Sebor  <msebor@redhat.com>
3699         PR c++/95984
3700         * c-common.c (check_function_nonnull): Avoid checking syntesized calls
3701         to stub lambda objects with null this pointer.
3702         (check_nonnull_arg): Handle C++ nullptr.
3704 2020-07-02  Jason Merrill  <jason@redhat.com>
3705             Jakub Jelinek  <jakub@redhat.com>
3707         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_consteval.
3709 2020-06-30  Jakub Jelinek  <jakub@redhat.com>
3711         PR c++/95963
3712         * c-common.c (check_function_arguments_recurse): Don't crash on
3713         calls to internal functions.
3715 2020-06-28  Martin Sebor  <msebor@redhat.com>
3717         PR c++/86568
3718         * c-common.c (struct nonnull_arg_ctx): Add members.
3719         (check_function_nonnull): Use nonnull_arg_ctx as argument.  Handle
3720         C++ member functions specially.  Consider the this pointer implicitly
3721         nonnull.
3722         (check_nonnull_arg): Use location of argument when available.
3723         (check_function_arguments): Use nonnull_arg_ctx as argument.
3725 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
3727         PR middle-end/95903
3728         * c-common.c (pointer_int_sum): Use TYPE_OVERFLOW_UNDEFINED instead of
3729         !TYPE_UNSIGNED check to see if we can apply distributive law and handle
3730         smaller precision intop operands separately.
3732 2020-06-26  Marek Polacek  <polacek@redhat.com>
3734         * c-opts.c (c_common_init_options): Default to gnu++17.
3736 2020-06-17  Jonathan Wakely  <jwakely@redhat.com>
3738         PR c/95378
3739         * c-common.c (get_atomic_generic_size): Check cv-qualifiers in
3740         pointer arguments.
3742 2020-06-16  Jakub Jelinek  <jakub@redhat.com>
3744         * c-common.h (c_omp_check_loop_iv_exprs): Add an int argument.
3745         * c-omp.c (struct c_omp_check_loop_iv_data): Add maybe_nonrect and
3746         idx members.
3747         (c_omp_is_loop_iterator): New function.
3748         (c_omp_check_loop_iv_r): Use it.  Add support for silent scanning
3749         if outer loop iterator is present.  Perform duplicate checking through
3750         hash_set in the function rather than expecting caller to do that.
3751         Pass NULL instead of d->ppset to walk_tree_1.
3752         (c_omp_check_nonrect_loop_iv): New function.
3753         (c_omp_check_loop_iv): Use it.  Fill in new members, allow
3754         non-rectangular loop forms, diagnose multiple associated loops with
3755         the same iterator.  Pass NULL instead of &pset to walk_tree_1.
3756         (c_omp_check_loop_iv_exprs): Likewise.
3758 2020-06-10  Martin Liska  <mliska@suse.cz>
3760         PR tree-optimization/92860
3761         * c-attribs.c (handle_optimize_attribute):
3762         Save global options and compare it after parsing of function
3763         attribute.
3764         * c-pragma.c (opt_stack::saved_global_options): New field.
3765         (handle_pragma_push_options): Save global_options.
3766         (handle_pragma_pop_options): Compare them after pop.
3768 2020-06-09  Jakub Jelinek  <jakub@redhat.com>
3770         PR c/95580
3771         * c-pretty-print.c (c_pretty_printer::unary_expression): Handle the
3772         case when MEM_REF's first argument has type pointer to incomplete type.
3774 2020-06-05  Jason Merrill  <jason@redhat.com>
3776         * c-pretty-print.c (pp_c_additive_expression): Handle negative
3777         operand to POINTER_PLUS_EXPR.
3779 2020-06-04  Martin Sebor  <msebor@redhat.com>
3781         PR middle-end/10138
3782         PR middle-end/95136
3783         * c-attribs.c (append_access_attrs): Handle attr_access::none.
3784         (handle_access_attribute): Same.
3786 2020-06-03  Mark Wielaard  <mark@klomp.org>
3788         * known-headers.cc (get_cp_stdlib_header_for_string_macro_name):
3789         New function.
3790         * known-headers.h (get_cp_stdlib_header_for_string_macro_name):
3791         New function declaration.
3793 2020-06-03  Mark Wielaard  <mark@klomp.org>
3795         * known-headers.cc (get_string_macro_hint): New function.
3796         (get_stdlib_header_for_name): Use get_string_macro_hint.
3797         (get_c_stdlib_header_for_string_macro_name): New function.
3798         * known-headers.h (get_c_stdlib_header_for_string_macro_name):
3799         New function declaration.
3801 2020-06-03  Tobias Burnus  <tobias@codesourcery.com>
3803         * c-common.h (c_omp_predetermined_mapping): Declare.
3804         * c-omp.c (c_omp_predetermined_mapping): New.
3806 2020-05-22  Mark Wielaard  <mark@klomp.org>
3808         * known-headers.cc (get_stdlib_header_for_name): Add a new
3809         stdlib_hint array for stdbool and stdint.
3811 2020-05-22  Mark Wielaard  <mark@klomp.org>
3813         * known-headers.cc (get_stdlib_header_for_name): Return
3814         "<stdbool.h>" for "bool", "true" or "false" when STDLIB_C and
3815         flag_isoc99.
3817 2020-05-20  Nathan Sidwell  <nathan@acm.org>
3819         * c-common.c (try_to_locate_new_include_insertion_point): Revert change.
3821         * c-common.c (try_to_locate_new_include_insertion_point): Use
3822         strcmp to compare filenames.
3823         * c-lex.c (init_c_lex): Move declaration to initialization.
3824         * c-opts.c (handle_deferred_opts): Move cpp_get_deps call into
3825         deferred count loop.
3827 2020-05-15  Jason Merrill  <jason@redhat.com>
3829         * c-opts.c (set_std_cxx20): Set flag_coroutines.
3831 2020-05-13  Jason Merrill  <jason@redhat.com>
3833         * c.opt (std=c++20): Make c++2a the alias.
3834         (std=gnu++20): Likewise.
3835         * c-common.h (cxx_dialect): Change cxx2a to cxx20.
3836         * c-opts.c: Adjust.
3837         * c-cppbuiltin.c: Adjust.
3838         * c-ubsan.c: Adjust.
3839         * c-warn.c: Adjust.
3841 2020-05-12  Eric Botcazou  <ebotcazou@adacore.com>
3843         * c-ada-spec.c (dump_ads): Output pragma Warnings ("U"); on entry.
3845 2020-05-08  Nathan Sidwell  <nathan@acm.org>
3847         Reimplement directives only processing.
3848         * c-ppoutput.c (token_streamer): Ne.
3849         (directives_only_cb): New.  Swallow ...
3850         (print_lines_directives_only): ... this.
3851         (scan_translation_unit_directives_only): Reimplment using the
3852         published interface.
3854 2020-05-07  Marek Polacek  <polacek@redhat.com>
3856         * c-format.c (badwords): Add "nonstatic".
3858 202-05-07  Jakub Jelinek  <jakub@redhat.com>
3860         PR c/94968
3861         * c-common.c (speculation_safe_value_resolve_params): Return false if
3862         error_operand_p (val2).
3863         (resolve_overloaded_builtin) <case BUILT_IN_SPECULATION_SAFE_VALUE_N>:
3864         Remove extraneous semicolon.
3866 2020-05-06  qing zhao  <qing.zhao@oracle.com>
3868         PR c/94230
3869         * c-indentation.c (get_visual_column): Add a hint to use the new
3870         -flarge-source-files option.
3872 2020-05-05  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
3874         * c-attribs.c (handle_vector_size_attribute): Add attribute
3875         nonnull for argument args in order to silence warning of
3876         uninitialized variable usage.  Since this is local to the
3877         compilation unit and thus cannot be checked at call sides by the
3878         compiler, added an assert statement in order to verify this.
3880 2020-05-01  H.J. Lu  <hongjiu.lu@intel.com>
3882         PR target/93492
3883         * c-attribs.c (handle_patchable_function_entry_attribute): Limit
3884         value to USHRT_MAX (65535).
3886 2020-04-29  Jakub Jelinek  <jakub@redhat.com>
3888         * c-format.c (PP_FORMAT_CHAR_TABLE): Add %{ and %}.
3890 2020-04-27  Jakub Jelinek  <jakub@redhat.com>
3892         PR c/94755
3893         * c-common.c (resolve_overloaded_builtin): Return error_mark_node for
3894         fncode == BUILT_IN_NONE before initialization of first_param.
3896 2020-04-23  Marek Polacek  <polacek@redhat.com>
3898         PR c++/94733
3899         * c-attribs.c (find_tm_attribute): Use get_attribute_name instead of
3900         TREE_PURPOSE.
3902 2020-04-14  Patrick Palka  <ppalka@redhat.com>
3904         PR c++/85278
3905         * c-pretty-print.c (pp_c_pointer) <case REFERENCE_TYPE>: Print a double
3906         ampersand if it's an rvalue reference type.
3908 2020-04-13  Martin Sebor  <msebor@redhat.com>
3910         PR c/92326
3911         * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator): Avoid
3912         printing array bound for flexible array members.
3914 2020-04-13  Iain Sandoe  <iain@sandoe.co.uk>
3916         * c-cppbuiltin.c (c_cpp_builtins): Update coroutines builtin
3917         define, per n4861.
3919 2020-04-02  Richard Biener  <rguenther@suse.de>
3921         PR c/94392
3922         * c-opts.c (c_common_post_options): Enable -ffinite-loops
3923         for -O2 and C++11 or newer.
3925 2020-03-28  Patrick Palka  <ppalka@redhat.com>
3927         * c.opt: Add -fconcepts-diagnostics-depth.
3929 2020-03-27  Martin Sebor  <msebor@redhat.com>
3931         PR c++/94346
3932         * c-attribs.c (handle_copy_attribute): Avoid passing expressions
3933         to decl_attributes.  Make handling of different kinds of entities
3934         more robust.
3936 2020-03-27  Martin Sebor  <msebor@redhat.com>
3938         PR c++/94098
3939         * c-attribs.c (handle_access_attribute): Avoid setting TYPE_ATTRIBUTES
3940         here.
3942 2020-03-23  Jakub Jelinek  <jakub@redhat.com>
3944         PR c++/91993
3945         * c-warn.c (warnings_for_convert_and_check): For expr and/or
3946         result being COMPOUND_EXPRs, skip to ultimate rhs.
3948 2020-03-20  Richard Sandiford  <richard.sandiford@arm.com>
3950         PR middle-end/94072
3951         * c-common.c (c_common_type_for_mode): Before using a registered
3952         built-in type, check that the vectorness of the type matches
3953         the vectorness of the mode.
3955 2020-03-17  Jakub Jelinek  <jakub@redhat.com>
3957         * c-common.c (resolve_overloaded_builtin): Fix up duplicated word
3958         issue in a diagnostic message.
3960 2020-03-15  Lewis Hyatt  <lhyatt@gmail.com>
3962         * c.opt: Avoid redundancy in the help text.
3964 2020-03-02  Marek Polacek  <polacek@redhat.com>
3966         PR c++/93958 - add missing -std=gnu++20.
3967         * c.opt: Add -std=gnu++20.
3969 2020-03-01  Martin Sebor  <msebor@redhat.com>
3971         PR c++/92721
3972         * c-attribs.c (append_access_attrs): Correctly handle attribute.
3973         (handle_access_attribute): Same.
3975 2020-02-25  Jakub Jelinek  <jakub@redhat.com>
3977         PR c/93858
3978         * c-pragma.c (handle_pragma_diagnostic): Add missing ? after
3979         "did you mean" hint in diagnostics.
3981 2020-02-15  Jason Merrill  <jason@redhat.com>
3983         * c.opt: Add -std=c++20.
3985 2020-02-14  Eric Botcazou  <ebotcazou@adacore.com>
3987         * c-ada-spec.c: Include bitmap.h.
3988         (dump_ada_double_name): Rename into...
3989         (dump_anonymous_type_name): ...this.  Always use the TYPE_UID.
3990         (dump_ada_array_type): Adjust to above renaming.  Robustify.
3991         (dump_nested_types_1): New function copied from...  Add dumped_types
3992         parameter and pass it down to dump_nested_type.
3993         (dump_nested_types): ...this.  Remove parent parameter.  Just call
3994         dump_nested_types_1 on an automatic bitmap.
3995         (dump_nested_type): Add dumped_types parameter.
3996         <ARRAY_TYPE>: Do not dump it if already present in dumped_types.
3997         Adjust recursive calls and adjust to above renaming.
3998         (dump_ada_declaration): Adjust call to dump_nested_types.
3999         Tidy up and adjust to above renaming.
4000         (dump_ada_specs): Initialize and release bitmap obstack.
4002 2020-02-10  Martin Sebor  <msebor@redhat.com>
4004         PR c/93640
4005         * c-attribs.c (handle_access_attribute): Correct off-by-one mistakes.
4007 2020-02-10  Jakub Jelinek  <jakub@redhat.com>
4009         PR other/93641
4010         * c-format.c (check_plain): Fix up last argument of strncasecmp.
4011         Remove useless extra test.
4013 2020-02-03  Julian Brown  <julian@codesourcery.com>
4014             Tobias Burnus  <tobias@codesourcery.com>
4016         * c-cppbuiltin.c (c_cpp_builtins): Update _OPENACC define to 201711.
4018 2020-01-29  Jason Merrill  <jason@redhat.com>
4020         PR c++/89357
4021         * c-attribs.c (check_cxx_fundamental_alignment_constraints): Remove.
4023 2020-01-23  Jason Merrill  <jason@redhat.com>
4025         * c-warn.c (conversion_warning): Change -Wsign-conversion handling.
4027 2020-01-23  Martin Sebor  <msebor@redhat.com>
4029         PR c/84919
4030         * c-common.c (check_function_arguments): Avoid overlap checking
4031         of sprintf functions.
4033 2020-01-22  Jason Merrill  <jason@redhat.com>
4035         PR testsuite/93391 - PR 40752 test fails with unsigned plain char.
4036         PR c++/40752
4037         * c-warn.c (conversion_warning): Check operands only after checking
4038         the whole expression.  Don't check second operand of + for sign.
4040 2020-01-21  Jason Merrill  <jason@redhat.com>
4041             Manuel López-Ibáñez  <manu@gcc.gnu.org>
4043         PR c++/40752 - useless -Wconversion with short +=.
4044         * c.opt (-Warith-conversion): New.
4045         * c-warn.c (conversion_warning): Recurse for operands of
4046         operators.  Only warn about the whole expression with
4047         -Warith-conversion.
4049 2020-01-21  Jason Merrill  <jason@redhat.com>
4051         * c-common.c (unsafe_conversion_p): Don't warn, return UNSAFE_SIGN.
4052         * c-warn.c (conversion_warning): Warn about UNSAFE_SIGN.
4054 2020-01-20  Nathan Sidwell  <nathan@acm.org>
4056         PR preprocessor/80005
4057         * c-cppbuiltins.c (c_cpp_builtins): Don't define __has_include{,_next}.
4059 2020-01-18  Iain Sandoe  <iain@sandoe.co.uk>
4061         * c-common.c (co_await, co_yield, co_return): New.
4062         * c-common.h (RID_CO_AWAIT, RID_CO_YIELD,
4063         RID_CO_RETURN): New enumeration values.
4064         (D_CXX_COROUTINES): Bit to identify coroutines are active.
4065         (D_CXX_COROUTINES_FLAGS): Guard for coroutine keywords.
4066         * c-cppbuiltin.c (__cpp_coroutines): New cpp define.
4067         * c.opt (fcoroutines): New command-line switch.
4069 2020-01-10  David Malcolm  <dmalcolm@redhat.com>
4071         * c-format.c (local_event_ptr_node): New.
4072         (PP_FORMAT_CHAR_TABLE): Add entry for "%@".
4073         (init_dynamic_diag_info): Initialize local_event_ptr_node.
4074         * c-format.h (T_EVENT_PTR): New define.
4076 2020-01-10  Martin Sebor  <msebor@redhat.com>
4078         PR c/93132
4079         * c-attribs.c (append_access_attrs): Validate against the translated
4080         access string rather than the human-readable representation.
4082 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
4084         Update copyright years.
4086 2019-12-20  Eric Botcazou  <ebotcazou@adacore.com>
4088         * c-ada-spec.h (decl_sloc): Delete.
4089         * c-ada-spec.c (decl_sloc): Make static.
4091 2019-12-19  Julian Brown  <julian@codesourcery.com>
4093         * c-common.h (c_omp_map_clause_name): Add prototype.
4094         * c-omp.c (c_omp_map_clause_name): New function.
4095         * c-pragma.h (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ATTACH and
4096         PRAGMA_OACC_CLAUSE_DETACH.
4098 2019-12-19  Julian Brown  <julian@codesourcery.com>
4099             Maciej W. Rozycki  <macro@codesourcery.com>
4100             Tobias Burnus  <tobias@codesourcery.com>
4101             Thomas Schwinge  <thomas@codesourcery.com>
4103         * c-pragma.h (pragma_omp_clause): Add
4104         PRAGMA_OACC_CLAUSE_NO_CREATE.
4106 2019-12-17  Martin Sebor  <msebor@redhat.com>
4108         PR c++/61339
4109         * c.opt (-Wmismatched-tags, -Wredundant-tags): New options.
4111 2019-12-11  David Malcolm  <dmalcolm@redhat.com>
4113         * c-pretty-print.c (c_pretty_printer::clone): New vfunc
4114         implementation.
4115         * c-pretty-print.h (c_pretty_printer::clone): New vfunc decl.
4117 2019-12-09  David Malcolm  <dmalcolm@redhat.com>
4119         * c-format.c (range_label_for_format_type_mismatch::get_text):
4120         Replace label_text ctor called with true with label_text::take.
4122 2019-12-09  David Malcolm  <dmalcolm@redhat.com>
4124         * c-format.c (selftest::test_type_mismatch_range_labels): Remove
4125         initial newline from expected outputs.
4126         * c-opts.c (c_diagnostic_finalizer): Add pp_newline call before
4127         call to diagnostic_show_locus.
4129 2019-12-06  Jakub Jelinek  <jakub@redhat.com>
4131         * c-cppbuiltin.c (c_cpp_builtins): Don't define __cpp_consteval for
4132         now.
4134 2019-12-05  Marek Polacek  <polacek@redhat.com>
4135             Jakub Jelinek  <jakub@redhat.com>
4137         PR c++/91353 - P1331R2: Allow trivial default init in constexpr contexts.
4138         * c-cppbuiltin.c (c_cpp_builtins): Adjust the value of __cpp_constexpr.
4140 2019-12-05  Marek Polacek  <polacek@redhat.com>
4142         PR c++/92271 - make __is_same alias for __is_same_as.
4143         * c-common.c: Add __is_same, an alias for __is_same_as.
4145 2019-12-03  Marek Polacek  <polacek@redhat.com>
4147         PR c++/91363 - P0960R3: Parenthesized initialization of aggregates.
4148         * c-cppbuiltin.c (c_cpp_builtins): Predefine
4149         __cpp_aggregate_paren_init=201902 for -std=c++2a.
4151 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
4153         * c-attribs.c (handle_symver_attribute): New function
4154         (c_common_attributes): Add symver.
4156 2019-11-30  Richard Sandiford  <richard.sandiford@arm.com>
4158         * c-common.c (pointer_int_sum): Use verify_type_context to check
4159         whether the target allows pointer arithmetic for the types involved.
4160         (c_sizeof_or_alignof_type, c_alignof_expr): Use verify_type_context
4161         to check whether the target allows sizeof and alignof operations
4162         for the types involved.
4164 2019-11-27  Jason Merrill  <jason@redhat.com>
4166         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
4168 2019-11-26  Jakub Jelinek  <jakub@redhat.com>
4170         PR c++/61414
4171         * c-attribs.c (handle_mode_attribute): Add mode attribute to
4172         ENUMERAL_TYPEs.
4174 2019-11-25  Joseph Myers  <joseph@codesourcery.com>
4176         PR c/91985
4177         * c-common.c (c_common_type_for_mode): Handle decimal
4178         floating-point types being NULL_TREE.
4179         * c-format.c (get_format_for_type_1): Handle specified types being
4180         NULL_TREE.
4181         * c-lex.c (interpret_float): Give an error for decimal
4182         floating-point constants when decimal floating-point not
4183         supported.
4185 2019-11-23  Jakub Jelinek  <jakub@redhat.com>
4187         PR middle-end/83859
4188         * c-attribs.c (append_access_attrs): Avoid buffer overflow.  Avoid
4189         memory leak.  Use XNEWVEC macro.  Use auto_diagnostic_group to
4190         group warning with inform together.
4191         (handle_access_attribute): Formatting fix.
4193 2019-11-22  Jakub Jelinek  <jakub@redhat.com>
4195         PR c/90677
4196         * c-common.h (identifier_global_tag): Declare.
4197         * c-format.c (get_pointer_to_named_type): Renamed to ...
4198         (get_named_type): ... this.  Use identifier_global_tag instead of
4199         identifier_global_value, handle the return value being a TYPE_P.
4200         (init_dynamic_diag_info): Adjust get_pointer_to_named_type callers
4201         to call get_named_type instead.  Formatting fixes.
4203         Implement P1902R1, Missing feature-test macros 2017-2019.
4204         * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_init_captures
4205         and __cpp_generic_lambdas for -std=c++2a.  Define
4206         __cpp_designated_initializers, __cpp_constexpr_in_decltype and
4207         __cpp_consteval for -std=c++2a.  Remove a FIXME comment about
4208         __cpp_concepts for -std=c++2a.
4210 2019-11-22  Martin Sebor  <msebor@redhat.com>
4212         PR middle-end/83859
4213         * c-attribs.c (handle_access_attribute): New function.
4214         (c_common_attribute_table): Add new attribute.
4215         (get_argument_type): New function.
4216         (append_access_attrs): New function.
4217         (get_nonnull_operand): Rename...
4218         (get_attribute_operand): ...to this.
4219         * c-common.c (get_nonnull_operand): Rename...
4220         (get_attribute_operand): ...to this.
4222 2019-11-21  Joseph Myers  <joseph@codesourcery.com>
4224         * c-attribs.c (handle_fallthrough_attribute): Use pedwarn instead
4225         of warning.
4227 2019-11-19  Joseph Myers  <joseph@codesourcery.com>
4229         * c-common.c (attribute_fallthrough_p): In C, use pedwarn not
4230         warning for standard attributes mixed with fallthrough attributes.
4232 2019-11-15  Joseph Myers  <joseph@codesourcery.com>
4234         * c-attribs.c (handle_fallthrough_attribute): Remove static.
4235         * c-common.h (handle_fallthrough_attribute): Declare.
4237 2019-11-15  Joseph Myers  <joseph@codesourcery.com>
4239         * c-attribs.c (handle_deprecated_attribute): Remove static.
4240         * c-common.h (handle_deprecated_attribute): Declare.
4242 2019-11-14  Joseph Myers  <joseph@codesourcery.com>
4244         * c-lex.c (lex_charconst): Make CPP_UTF8CHAR constants unsigned
4245         char for C.
4247 2019-11-14  Jakub Jelinek  <jakub@redhat.com>
4249         * c-omp.c (c_omp_check_context_selector): Add nvidia to the list of
4250         valid vendors.
4252         * c-omp.c (c_omp_check_context_selector): Handle name lists
4253         containing string literals.  Don't diagnose atomic_default_mem_order
4254         with multiple props.
4256 2019-11-13  Joseph Myers  <joseph@codesourcery.com>
4258         * c-cppbuiltin.c (builtin_define_float_constants): Also define
4259         NORM_MAX constants.  Update call to get_max_float.
4260         (LAZY_HEX_FP_VALUES_CNT): Update value to include NORM_MAX
4261         constants.
4263 2019-11-13  Eric Botcazou  <ebotcazou@adacore.com>
4265         * c-ada-spec.c (get_underlying_decl): Do not look through typedefs.
4266         (dump_forward_type): Do not generate a declaration for function types.
4267         (dump_nested_type) <ARRAY_TYPE>: Do not generate a nested declaration
4268         of the component type if it is declared in another file.
4270 2019-11-12  Martin Liska  <mliska@suse.cz>
4272         * c-opts.c (c_common_post_options):
4273         Use SET_OPTION_IF_UNSET.
4275 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
4276             Frederik Harwath  <frederik@codesourcery.com>
4278         gcc/c-family/
4279         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_SERIAL enumeration
4280         constant.
4281         * c-pragma.c (oacc_pragmas): Add "serial" entry.
4283 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
4285         * c-common.h (gnu_vector_type_p): New function.
4286         * c-common.c (c_build_vec_perm_expr): Require __builtin_shuffle
4287         vectors to satisfy gnu_vector_type_p.
4288         (c_build_vec_convert): Likewise __builtin_convertvector.
4289         (convert_vector_to_array_for_subscript): Likewise when applying
4290         implicit vector to array conversion.
4291         (scalar_to_vector): Likewise when converting vector-scalar
4292         operations to vector-vector operations.
4294 2019-11-08  Joseph Myers  <joseph@codesourcery.com>
4296         * c.opt (Wold-style-definition): Initialize to -1.
4297         * c-opts.c (c_common_post_options): Set warn_old_style_definition
4298         to flag_isoc2x if not set explicitly.
4300 2019-11-07  Joseph Myers  <joseph@codesourcery.com>
4302         * c-attribs.c (parse_tm_stmt_attr): Handle scoped attributes.
4304 2019-11-05  Jason Merrill  <jason@redhat.com>
4306         * c-opts.c (c_common_post_options): -fconcepts-ts implies
4307         -fconcepts.
4309 2019-11-04  Kamlesh Kumar  <kamleshbhalui@gmail.com>
4311         * c-opts.c (c_common_post_options): Update
4312         latest_abi_version.
4314 2019-11-02  Jakub Jelinek  <jakub@redhat.com>
4316         * c-common.h (c_omp_get_context_selector): Remove.
4317         * c-omp.c (c_omp_get_context_selector): Moved to omp-general.c
4318         and renamed to omp_get_context_selector.
4320         * c-omp.c (c_omp_mark_declare_variant): Use
4321         omp_context_selector_set_compare.
4323         PR c++/88335 - Implement P1073R3: Immediate functions
4324         * c-common.h (enum rid): Add RID_CONSTEVAL.
4325         * c-common.c (c_common_reswords): Add consteval.
4327 2019-11-01  Martin Sebor  <msebor@redhat.com>
4329         PR middle-end/91679
4330         PR middle-end/91647
4331         PR middle-end/91463
4332         PR middle-end/92312
4333         * c-pretty-print.c (direct_abstract_declarator): Print
4334         bound in zero-length arrays.
4335         * c.opt (-Wzero-length-bounds): New option.
4337 2019-10-30  Nathan Sidwell  <nathan@acm.org>
4339         * c-cppbuiltin.c (c_cpp_builtins): Add 'L' suffix to feature
4340         macros.
4342 2019-10-28  Martin Sebor  <msebor@redhat.com>
4344         PR c/66970
4345         * c-common.c (c_common_nodes_and_builtins): Call c_define_builtins
4346         even when only preprocessing.
4347         * c-common.h (names_builtin_p): Declare new function.
4348         * c-lex.c (init_c_lex): Set has_builtin.
4349         (c_common_has_builtin): Define a new function.
4350         * c-ppoutput.c (init_pp_output): Set has_builtin.
4352 2019-10-24  Jakub Jelinek  <jakub@redhat.com>
4354         * c-common.h (c_omp_context_selector_matches): Remove.
4355         * c-omp.c (c_omp_context_selector_matches): Remove.
4356         * c-attribs.c (c_common_attribute_table): Add
4357         "omp declare target {host,nohost,block}" attributes.
4359 2019-10-17  JeanHeyd Meneide  <phdofthehouse@gmail.com>
4361         * c-lex.c (c_common_has_attribute): Update nodiscard value.
4363 2019-10-14  Richard Sandiford  <richard.sandiford@arm.com>
4365         * c-common.h (user_facing_original_type_p): Declare.
4366         * c-common.c: Include c-spellcheck.h.
4367         (user_facing_original_type_p): New function.
4369 2019-10-12  Jakub Jelinek  <jakub@redhat.com>
4371         * c-common.h (c_omp_mark_declare_variant,
4372         c_omp_context_selector_matches): Declare.
4373         * c-omp.c: Include attribs.h, gimplify.h, cgraph.h, symbol-summary.h
4374         and hsa-common.h.
4375         (c_omp_get_context_selector): Support second argument NULL.
4376         (c_omp_mark_declare_variant, c_omp_context_selector_matches): New
4377         functions.
4378         * c-attribs.c (c_common_attribute_table): Remove "omp declare variant"
4379         attribute, add "omp declare variant base" and
4380         "omp declare variant variant" attributes.
4382 2019-10-11  Joseph Myers  <joseph@codesourcery.com>
4384         * c.opt (Wc11-c2x-compat): Add CPP(cpp_warn_c11_c2x_compat)
4385         CppReason(CPP_W_C11_C2X_COMPAT).
4387 2019-10-11  Joseph Myers  <joseph@codesourcery.com>
4389         * c-common.c (c_common_reswords): Do not use D_EXT for _Decimal32,
4390         _Decimal64 and _Decimal128.
4392 2019-10-10  Joseph Myers  <joseph@codesourcery.com>
4394         * c-cppbuiltin.c (c_cpp_builtins): Do not define macros for DFP
4395         types if DFP not supported.
4397 2019-10-10  Jakub Jelinek  <jakub@redhat.com>
4399         * c-common.h (c_omp_check_context_selector,
4400         c_omp_get_context_selector): Declare.
4401         * c-omp.c (c_omp_declare_simd_clauses_to_numbers): Fix spelling
4402         in diagnostic message.
4403         (c_omp_check_context_selector, c_omp_get_context_selector): New
4404         functions.
4405         * c-attribs.c (c_common_attribute_table): Add "omp declare variant"
4406         attribute.
4407         (handle_omp_declare_variant_attribute): New function.
4409 2019-10-09  Martin Sebor  <msebor@redhat.com>
4411         PR tree-optimization/90879
4412         * c.opt (-Wstring-compare): New option.
4414 2019-10-08  Andrew Sutton  <asutton@lock3software.com>
4415             Jason Merrill  <jason@redhat.com>
4417         Update the concepts implementation to conform to the C++20
4418         specification, improve compile times, and generally clean up
4419         the implementation.
4421         * c-cppbuiltin.c (c_cpp_builtins): Use new feature test values for
4422         concepts when -std=c++2a. Bump __cpp_concepts to 201907.
4423         * c.opt: Add -Wconcepts-ts.
4424         * c-opts.c (c_common_post_options): Warn when -fconcepts is used
4425         with -std=c++2a. Disable warning for -fconcepts in C++20 mode.
4426         (set_std_cxx2a): Enable concepts by default.
4428 2019-10-08  Joseph Myers  <joseph@codesourcery.com>
4430         * c-opts.c (c_common_post_options): Set
4431         -fno-fp-int-builtin-inexact for C2X.
4433 2019-10-05  Jakub Jelinek  <jakub@redhat.com>
4435         PR c++/91369 - Implement P0784R7: constexpr new
4436         * c-cppbuiltin.c (c_cpp_builtins): Predefine
4437         __cpp_constexpr_dynamic_alloc=201907 for -std=c++2a.
4439 2019-10-04  Joseph Myers  <joseph@codesourcery.com>
4441         PR c/82752
4442         * c-format.c (C_STD_VER): Handle C2x.
4443         (C_STD_NAME): Likewise.
4444         (strftime_flag_specs): Add 'O' modifier with 'p' flag.
4445         (time_char_table): Use separate entry for 'B' and 'b', with 'O'
4446         modifier allowed and 'p' flag.
4447         * c-format.h (enum format_std_version): Add STD_C2X.
4448         (struct format_char_info): Mention 'p' in comment on flags2.
4450 2019-10-01  David Malcolm  <dmalcolm@redhat.com>
4452         * c-opts.c (c_diagnostic_finalizer): Temporarily clear prefix when
4453         calling diagnostic_show_locus, rather than destroying it afterwards.
4455 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
4457         PR c++/91925
4458         * c-warn.c (check_alignment_of_packed_member): Ignore FIELD_DECLs
4459         with NULL DECL_FIELD_OFFSET.
4461 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
4463         * c-pretty-print.c (pp_c_specifier_qualifier_list): If a vector type
4464         has a type name, use it in preference to the __vector syntax.
4466 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
4468         * c-pretty-print.c (pp_c_parameter_type_list): Avoid printing
4469         two spaces between a comma and "...".
4471 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
4473         PR c++/88203
4474         * c-common.h (c_omp_predefined_variable): Declare.
4475         * c-omp.c (c_omp_predefined_variable): New function.
4476         (c_omp_predetermined_sharing): Return OMP_CLAUSE_DEFAULT_SHARED
4477         for predefined variables.
4479 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
4481         * c-common.h (build_function_call_vec): Take the original
4482         function decl as an optional final parameter.
4483         (check_builtin_function_arguments): Take the original function decl.
4484         * c-common.c (check_builtin_function_arguments): Likewise.
4485         Handle all built-in functions, not just BUILT_IN_NORMAL ones.
4486         Use targetm.check_builtin_call to check BUILT_IN_MD functions.
4488 2019-09-15  Jason Merrill  <jason@redhat.com>
4490         * c-warn.c (warn_logical_operator): Strip location wrappers.  Don't
4491         fold_for_warn in "|| mask" warning.
4493 2019-09-10  Martin Liska  <mliska@suse.cz>
4495         * c.opt: Use newly added WarnRemoved.
4497 2019-09-09  Martin Liska  <mliska@suse.cz>
4499         * c.opt: Update comment of removed
4500         options that are preserved only for backward
4501         compatibility.
4503 2019-09-06  Martin Liska  <mliska@suse.cz>
4505         PR c++/91125
4506         * c-common.c: Remove definition of flag_use_repository.
4507         * c-common.h: Likewise.
4508         * c-opts.c (c_common_handle_option):
4509         Do not handle OPT_frepo option.
4510         * c.opt: Mark the option with Deprecated.
4512 2019-09-04  Marek Polacek  <polacek@redhat.com>
4514         * c.opt (fdeduce-init-list): Ignored.
4516 2019-09-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4518         PR c/78736
4519         * c.opt (Wenum-conversion): New option.
4521 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
4523         * c-attribs.c (handle_section_attribute): Call the
4524         handle_generic_attribute target hook after performing target
4525         independent processing.
4526         (handle_noinit_attribute): Likewise.
4528 2019-09-03  Ian Lance Taylor  <iant@golang.org>
4530         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Always expand
4531         when using -fgo-dump-spec.
4533 2019-09-02  Martin Liska  <mliska@suse.cz>
4535         PR c++/91155
4536         * c-common.c (fname_as_string): Use cxx_printable_name for
4537         __PRETTY_FUNCTION__ same as was used before r265711.
4539 2019-08-28  Marek Polacek  <polacek@redhat.com>
4541         Implement P1152R4: Deprecating some uses of volatile.
4542         PR c++/91361
4543         * c-opts.c (c_common_post_options): Enable -Wvolatile by
4544         default for C++2a, unless -Wno-deprecated.
4545         * c.opt (Wvolatile): New warning.
4547 2019-08-28  Marek Polacek  <polacek@redhat.com>
4549         PR c++/91360 - Implement C++20 P1143R2: constinit.
4550         * c-common.c (c_common_reswords): Add constinit and __constinit.
4551         (keyword_is_decl_specifier): Handle RID_CONSTINIT.
4552         * c-common.h (enum rid): Add RID_CONSTINIT, RID_FIRST_CXX20, and
4553         RID_LAST_CXX20.
4554         (D_CXX20): Define.
4555         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_constinit.
4556         * c-format.c (cxx_keywords): Add "constinit".
4557         * c.opt (Wc++2a-compat, Wc++20-compat): New options.
4559 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
4561         PR c++/91415
4562         * c-common.c (verify_tree): For LSHIFT_EXPR, RSHIFT_EXPR,
4563         COMPONENT_REF and ARRAY_REF in cxx_dialect >= cxx17 mode handle it
4564         like COMPOUND_EXPR rather than normal expression.
4566 2019-08-23  Iain Sandoe  <iain@sandoe.co.uk>
4568         PR pch/61250
4569         * c-lex.c (c_lex_with_flags):  Don't call
4570         c_common_no_more_pch () from here.
4572 2019-08-23  Jakub Jelinek  <jakub@redhat.com>
4574         PR middle-end/91283
4575         * c-common.c (c_ts18661_flt_eval_method): Use flag_excess_precision
4576         instead of flag_excess_precision_cmdline.
4577         * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): Likewise.
4578         * c-opts.c (c_common_post_options): Likewise.
4580 2019-08-22  Martin Sebor  <msebor@redhat.com>
4582         PR middle-end/91490
4583         * c-common.c (braced_list_to_string): Add argument and overload.
4584         Handle flexible length arrays and unions.
4586 2019-08-21  Eric Botcazou  <ebotcazou@adacore.com>
4588         * c-ada-spec.c (dump_ada_function_declaration): Be prepared for broken
4589         function declarations where arguments are missing.  Rename variables.
4591 2019-08-15  Richard Biener  <rguenther@suse.de>
4593         * c-common.c (c_stddef_cpp_builtins): When the GIMPLE FE is
4594         enabled, define __SIZETYPE__.
4596 2019-08-14  Christophe Lyon  <christophe.lyon@linaro.org>
4598         * c-attribs.c (c_common_attribute_table): Add "noinit" entry. Add
4599         exclusion with "section" attribute.
4600         (attr_noinit_exclusions): New table.
4601         (handle_noinit_attribute): New function.
4603 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
4605         PR middle-end/91421
4606         * c-common.c (resolve_overloaded_builtin): Use
4607         copy_decl_built_in_function.
4609 2019-08-13  Martin Sebor  <msebor@redhat.com>
4611         PR c/80619
4612         * c-format.c (printf_length_specs): Set FMT_LEN_w for "w".
4613         (asm_fprintf_length_spec): Same.
4614         * c-format.h (format_lengths): Add FMT_LEN_w.
4616 2019-08-10  Jakub Jelinek  <jakub@redhat.com>
4618         * c-pragma.h (enum pragma_omp_clause): Add
4619         PRAGMA_OMP_CLAUSE_DEVICE_TYPE.
4621 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
4623         * c-pragma.h (enum pragma_omp_clause): Add
4624         PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR.  Set PRAGMA_OACC_CLAUSE_USE_DEVICE
4625         equal to PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR instead of being a separate
4626         enumeration value.
4628 2019-08-05  Marek Polacek  <polacek@redhat.com>
4630         PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
4631         * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by
4632         default for C++2a, unless -Wno-deprecated.
4633         * c.opt (Wcomma-subscript): New warning.
4635 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
4637         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_LOOP.
4638         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_BIND.
4639         * c-pragma.c (omp_pragmas_simd): Add PRAGMA_OMP_LOOP entry.
4640         * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_LOOP.
4641         * c-omp.c (c_omp_split_clauses): Add support for 4 new combined
4642         constructs with the loop construct.
4644 2019-07-13  Jakub Jelinek  <jakub@redhat.com>
4646         PR c/91149
4647         * c-omp.c (c_omp_split_clauses): Fix a pasto in
4648         OMP_CLAUSE_REDUCTION_TASK handling.
4650 2019-07-12  Jakub Jelinek  <jakub@redhat.com>
4652         * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ORDER.
4653         * c-omp.c (c_omp_split_clauses): Handle splitting of OMP_CLAUSE_ORDER.
4655 2019-07-09  Martin Sebor  <msebor@redhat.com>
4657         PR c++/61339
4658         * c-opts.c (handle_deferred_opts): Change class-key of PODs to struct
4659         and others to class.
4660         * c-pretty-print.h: Same.
4662 2019-07-09  Martin Sebor  <msebor@redhat.com>
4664         PR c++/61339
4665         * c-format.c (check_argument_type): Change class-key from class to
4666         struct and vice versa to match convention and avoid -Wclass-is-pod
4667         and -Wstruct-no-pod.
4668         * c-pretty-print.h: Same.
4670 2019-07-03  Martin Liska  <mliska@suse.cz>
4672         * c-common.c (try_to_locate_new_include_insertion_point): Remove
4673         dead assignemts.
4675 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
4677         * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_REDUCTION_INSCAN
4678         clauses on OMP_FOR rather than OMP_PARALLEL when OMP_FOR is combined
4679         with OMP_PARALLEL.
4681 2019-07-02  qing zhao  <qing.zhao@oracle.com>
4683         PR preprocessor/90581
4684         * c-opts.c (c_common_handle_option): Handle -fmax-include-depth.
4685         * c.opt: Add new option -fmax-include-depth.
4687 2019-06-26  Jason Merrill  <jason@redhat.com>
4689         PR c++/55442 - memory-hog with highly recursive constexpr.
4690         * c.opt (fconstexpr-loop-limit): New.
4692 2019-06-25  Jakub Jelinek  <jakub@redhat.com>
4694         PR sanitizer/90954
4695         * c-omp.c (c_finish_omp_atomic): Allow tree_invariant_p in addition
4696         to SAVE_EXPR in first operand of a COMPOUND_EXPR.
4698 2019-06-25  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
4700         * c-common.c (c_common_nodes_and_builtins): Define
4701         alternate "__intN__" name for "__intN" types.
4703 2019-06-24  Jan Hubicka  <jh@suse.cz>
4705         * c-common.c (braced_lists_to_strings): Check that
4706         type is array or integer prior checking string flag.
4708 2019-06-21  Matthew Beliveau  <mbelivea@redhat.com>
4710         PR c++/90875 - added -Wswitch-outside-range option
4711         * c.opt (Wswitch-outside-range): Added new option.
4712         * c-warn.c (c_do_switch_warnings): Use OPT_Wswitch-outside-range.
4714 2019-06-21  Marek Polacek  <polacek@redhat.com>
4716         PR c++/90953 - ICE with -Wmissing-format-attribute.
4717         * c-common.c (check_function_arguments_recurse): Use
4718         get_attribute_name.
4719         (check_missing_format_attribute): Likewise.
4721 2019-06-19  Marek Polacek  <polacek@redhat.com>
4723         PR c++/60364 - noreturn after first decl not diagnosed.
4724         * c-attribs.c (handle_noreturn_attribute): No longer static.
4725         * c-common.h (handle_noreturn_attribute, attr_noreturn_exclusions):
4726         Declare.
4727         * c-format.c (check_function_format): Use get_attribute_name.
4729 2019-06-19  Martin Sebor  <msebor@redhat.com>
4731         PR translation/90156
4732         * c-format.c (function_format_info::format_type): Adjust type.
4733         (function_format_info::is_raw): New member.
4734         (decode_format_type): Adjust signature.  Handle "raw" diag attributes.
4735         (decode_format_attr): Adjust call to decode_format_type.
4736         Avoid a redundant call to convert_format_name_to_system_name.
4737         Avoid abbreviating the word "arguments" in a diagnostic.
4738         (format_warning_substr): New function.
4739         (avoid_dollar_number): Quote dollar sign in a diagnostic.
4740         (finish_dollar_format_checking): Same.
4741         (check_format_info): Same.
4742         (struct baltoks_t): New.
4743         (c_opers, c_keywords, cxx_keywords, badwords, contrs): New arrays.
4744         (maybe_diag_unbalanced_tokens, check_tokens, check_plain): New
4745         functions.
4746         (check_format_info_main): Call check_plain.  Use baltoks_t.  Call
4747         maybe_diag_unbalanced_tokens.
4748         (handle_format_attribute): Spell out the word "arguments" in
4749         a diagnostic.
4751 2019-06-11  Matthew Beliveau  <mbelivea@redhat.com>
4753         PR c++/90449 - add -Winaccessible-base option.
4754         * c.opt (Winaccessible-base): New option.
4756 2019-06-10  Jakub Jelinek  <jakub@redhat.com>
4758         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCAN.
4759         * c-pragma.c (omp_pragmas_simd): Add #pragma omp scan.
4760         * c-omp.c (c_omp_split_clauses): Diagnose inscan reductions on
4761         combined/composite constructs where it is not allowed.  Copy over
4762         OMP_CLAUSE_REDUCTION_INSCAN.
4764 2019-06-05  Martin Sebor  <msebor@redhat.com>
4766         * c-attribs.c (handle_mode_attribute): Adjust quoting and hyphenation.
4767         (handle_alias_ifunc_attribute): Same.
4768         (handle_copy_attribute): Same.
4769         (handle_weakref_attribute): Same.
4770         (handle_nonnull_attribute): Same.
4771         * c-warn.c (warn_for_sign_compare): Same.
4772         (warn_for_restrict): Same.
4773         * c.opt: Same.
4775 2019-06-05  Martin Sebor  <msebor@redhat.com>
4777         * c-pragma.c (handle_pragma_weak): Adjust quoting in a diagnostic.
4778         * c.opt (-Wformat-diag): Remove a spurious period.
4780 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
4782         PR c/90628
4783         * c-common.c (check_builtin_function_arguments)
4784         <case BUILTIN_*_OVERFLOW>: Diagnose pointer to const qualified integer
4785         as last argument.
4787 2019-05-23  Eric Botcazou  <ebotcazou@adacore.com>
4789         * c-ada-spec.c (compare_node): Compare the DECL_UIDs as a last resort.
4791 2019-05-22  Martin Liska  <mliska@suse.cz>
4793         PR lto/90500
4794         * c-attribs.c (handle_copy_attribute): Do not copy
4795         target_clones attribute.
4797 2019-05-21  Eric Botcazou  <ebotcazou@adacore.com>
4799         * c-ada-spec.h (enum cpp_operation): Add IS_ASSIGNMENT_OPERATOR.
4800         * c-ada-spec.c (print_assignment_operator): New function.
4801         (dump_ada_declaration) <FUNCTION_DECL>: Call it do dump explicit copy
4802         assignment operators declared as methods and filter out the others.
4804 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
4806         PR c/89433
4807         * c-attribs.c (c_common_attribute_table): Set min_len to -1 for
4808         "omp declare target".
4810 2019-05-16  Martin Sebor  <msebor@redhat.com>
4812         * c-attribs.c (handle_no_sanitize_attribute): Quote identifiers,
4813         keywords, operators, and types in diagnostics.
4814         (handle_scalar_storage_order_attribute): Same.
4815         (handle_mode_attribute): Same.
4816         (handle_visibility_attribute): Same.
4817         (handle_assume_aligned_attribute): Same.
4818         (handle_no_split_stack_attribute): Same.
4819         * c-common.c (shorten_compare): Same.
4820         (c_common_truthvalue_conversion): Same.
4821         (cb_get_source_date_epoch): Same.
4822         * c-lex.c (cb_def_pragma): Quote keywords, operators, and types
4823         in diagnostics.
4824         (interpret_float): Same.
4825         * c-omp.c (c_finish_omp_for): Same.
4826         * c-opts.c (c_common_post_options): Same.
4827         * c-pch.c (c_common_pch_pragma): Same.
4828         * c-pragma.c (pop_alignment): Same.
4829         (handle_pragma_pack): Same.
4830         (apply_pragma_weak): Same.
4831         (handle_pragma_weak): Same.
4832         (handle_pragma_scalar_storage_order): Same.
4833         (handle_pragma_redefine_extname): Same.
4834         (add_to_renaming_pragma_list): Same.
4835         (maybe_apply_renaming_pragma): Same.
4836         (push_visibility): Same.
4837         (handle_pragma_visibility): Same.
4838         (handle_pragma_optimize): Same.
4839         (handle_pragma_message): Same.
4840         * c-warn.c (warn_for_omitted_condop): Same.
4841         (lvalue_error): Same.
4843 2019-05-15  Richard Biener  <rguenther@suse.de>
4845         PR c/90474
4846         * c-common.c (c_common_mark_addressable_vec): Also mark
4847         a COMPOUND_LITERAL_EXPR_DECL addressable similar to
4848         c_mark_addressable.
4850 2019-05-06  Nathan Sidwell  <nathan@acm.org>
4852         * c-opts.c (handle_defered_opts): Rename struct deps to struc mkdeps.
4854 2019-04-30  Nathan Sidwell  <nathan@acm.org>
4856         * c-common.c (c_common_init_ts): Use MARK_TS_EXP.  Mark SIZEOF_EXPR.
4858 2019-04-30  Martin Liska  <mliska@suse.cz>
4860         * c-pragma.c (handle_pragma_diagnostic): Provide hints
4861         for unknown options.
4863 2019-04-26  Richard Sandiford  <richard.sandiford@arm.com>
4865         * c-warn.c (strict_aliasing_warning): Apply COMPLETE_TYPE_P to
4866         the pointer target rather than the pointer itself.
4868 2019-04-19  Jakub Jelinek  <jakub@redhat.com>
4870         PR c/89888
4871         * c-common.h (c_add_case_label): Remove orig_type and outside_range_p
4872         arguments.
4873         (c_do_switch_warnings): Remove outside_range_p argument.
4874         * c-common.c (check_case_bounds): Removed.
4875         (c_add_case_label): Remove orig_type and outside_range_p arguments.
4876         Don't call check_case_bounds.  Fold low_value as well as high_value.
4877         * c-warn.c (c_do_switch_warnings): Remove outside_range_p argument.
4878         Check for case labels outside of range of original type here and
4879         adjust them.
4881 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
4883         PR translation/90041
4884         * c.opt (-fhandle-exceptions): Use %< and %> around option names
4885         in the Warn diagnostics.
4887         PR c/89946
4888         * c-attribs.c (handle_patchable_function_entry_attribute): Add
4889         function comment.  Warn if arguments of the attribute are not positive
4890         integer constants.
4892 2019-04-09  Eric Botcazou  <ebotcazou@adacore.com>
4894         * c-ada-spec.c (print_destructor): Deal with deleting destructors.
4895         (dump_ada_declaration) <FUNCTION_DECL>: Likewise.
4897 2019-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4899         * c-ada-spec.c (is_float128): New predicate extracted from...
4900         (dump_ada_node) <COMPLEX_TYPE>: Use it to recognize __cfloat128.
4901         <REAL_TYPE>: ...here.  Call it.
4903 2019-04-05  David Malcolm  <dmalcolm@redhat.com>
4905         PR c/89985
4906         * c-warn.c (check_address_or_pointer_of_packed_member): Add
4907         auto_diagnostic_group.  Guard inform calls by result of
4908         warning_at call.
4910 2019-04-05  Marek Polacek  <polacek@redhat.com>
4912         PR c++/89973 - -Waddress-of-packed-member ICE with invalid conversion.
4913         * c-warn.c (check_address_or_pointer_of_packed_member): Check the type
4914         of RHS.
4916 2019-04-03  Jason Merrill  <jason@redhat.com>
4918         PR c++/86586 - -fcompare-debug=-Wsign-compare.
4919         * c-warn.c (warn_for_sign_compare): Call fold_for_warn.
4921 2019-04-01  Martin Sebor  <msebor@redhat.com>
4923         PR c/89685
4924         * c-attribs.c (handle_copy_attribute): Handle references and
4925         non-constant expressions.
4927 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
4929         PR c++/87481
4930         * c.opt (-fconstexpr-ops-limit=): New option.
4932 2019-03-21  Jakub Jelinek  <jakub@redhat.com>
4934         * c-common.c (per_file_includes_t): Use false as Lazy in hash_set
4935         template param.
4937 2019-03-19  Martin Sebor  <msebor@redhat.com>
4939         PR tree-optimization/89688
4940         * c-common.c (braced_list_to_string): Make static.
4941         (braced_lists_to_strings): Define new function.
4942         * c-common.h (braced_list_to_string): Remove.
4943         (braced_lists_to_strings): Declare.
4945 2019-03-12  Martin Liska  <mliska@suse.cz>
4947         * c-opts.c (c_common_handle_option): Wrap option with %< and %>.
4949 2019-03-11  Martin Liska  <mliska@suse.cz>
4951         * c-opts.c (c_common_post_options): Wrap apostrophes
4952         in gcc internal format with %'.
4954 2019-03-11  Martin Liska  <mliska@suse.cz>
4956         * c-attribs.c (handle_nocf_check_attribute): Wrap an option name
4957         in a string format message and fix GNU coding style.
4958         * c-common.c (vector_types_convertible_p): Likewise.
4959         (c_build_vec_perm_expr): Likewise.
4960         * c-indentation.c (get_visual_column): Likewise.
4961         * c-opts.c (c_common_handle_option): Likewise.
4962         (c_common_post_options): Likewise.
4963         (sanitize_cpp_opts): Likewise.
4964         * c-pch.c (c_common_pch_pragma): Likewise.
4965         * c-pragma.c (handle_pragma_pack): Likewise.
4967 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
4969         PR tree-optimization/89550
4970         * c-common.c (c_common_truthvalue_conversion): Only set
4971         TREE_NO_WARNING if warning_at returned true.
4972         * c-warn.c (overflow_warning, warn_logical_operator): Likewise.
4974 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
4975             Martin Sebor  <msebor@gmail.com>
4977         * c.opt (Wmissing-attributes): Clean up doc string.
4979 2019-02-25  Jakub Jelinek  <jakub@redhat.com>
4981         PR c/89495
4982         * c-format.c (maybe_read_dollar_number): Compute nargnum in
4983         HOST_WIDE_INT type to avoid overflows and change overflow_flag
4984         checking.
4986 2019-02-22  Richard Biener  <rguenther@suse.de>
4988         * c-pch.c (no_checksum): Remove.
4989         (pch_init): Remove assertion that executable_checksum is not
4990         all zero.
4991         (c_common_valid_pch): Likewise.
4993 2019-02-18  Martin Sebor  <msebor@redhat.com>
4995         PR middle-end/89294
4996         * c-common.c (invalid_array_size_error): Handle cst_size_not_constant.
4998 2019-02-16  David Malcolm  <dmalcolm@redhat.com>
5000         PR c++/88680
5001         * c-common.c (shorten_compare): Call fold_for_warn on op0 when
5002         implementing -Wtype-limits.
5004 2019-02-11  Martin Sebor  <msebor@redhat.com>
5006         PR c++/87996
5007         * c-common.c (invalid_array_size_error): New function.
5008         (valid_array_size_p): Call it.  Handle size as well as type.
5009         * c-common.h (valid_constant_size_p): New function.
5010         (enum cst_size_error): New type.
5012 2019-01-31  David Malcolm  <dmalcolm@redhat.com>
5014         PR c/89122
5015         * known-headers.cc (get_stdlib_header_for_name): Add
5016         {FLT|DBL|LDBL}_{MAX|MIN} to "hints" array.
5018 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
5020         PR libstdc++/88170
5021         * c-pretty-print.c (pp_c_enumeration_constant): Print always as
5022         a C cast in pp_c_flag_gnu_v3 mode.
5024 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
5026         PR c/86125
5027         * c-common.c (c_common_nodes_and_builtins): Build type variants for
5028         builtin_structptr_types types even for C.
5030 2019-01-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5032         * c-warn.c (check_address_or_pointer_of_packed_member): Handle the case
5033         when rhs is of array type correctly.  Fix handling of nested structures.
5034         Fix handling of indirect_ref together with nop_expr and/or addr_expr.
5035         (check_and_warn_address_or_pointer_of_packed_member): Fix handling of
5036         type casts within nested compound expressions.
5038 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
5040         PR middle-end/88968
5041         * c-omp.c (c_finish_omp_atomic): For bitfield atomics, update type
5042         variable after using BIT_FIELD_REF.
5044 2019-01-18  H.J. Lu  <hongjiu.lu@intel.com>
5046         PR c/51628
5047         PR c/88664
5048         * c-common.h (warn_for_address_or_pointer_of_packed_member):
5049         Remove the boolean argument.
5050         * c-warn.c (check_address_of_packed_member): Renamed to ...
5051         (check_address_or_pointer_of_packed_member): This.  Also
5052         warn pointer conversion.
5053         (check_and_warn_address_of_packed_member): Renamed to ...
5054         (check_and_warn_address_or_pointer_of_packed_member): This.
5055         Also warn pointer conversion.
5056         (warn_for_address_or_pointer_of_packed_member): Remove the
5057         boolean argument.  Don't check pointer conversion here.
5059 2019-01-15  Richard Sandiford  <richard.sandiford@arm.com>
5061         PR inline-asm/52813
5062         * c.opt (Wdeprecated): Move documentation and variable to common.opt.
5064 2019-01-14  Jakub Jelinek  <jakub@redhat.com>
5066         * c-cppbuiltin.c (c_cpp_builtin): Define __cpp_guaranteed_copy_elision
5067         and __cpp_nontype_template_parameter_auto.  Add a comment that
5068         __cpp_template_auto is deprecated.
5070 2019-01-14  Tom Honermann  <tom@honermann.net>
5072         Implement P0482R5, char8_t: A type for UTF-8 characters and strings
5073         * c-common.c (c_common_reswords): Add char8_t.
5074         (fix_string_type): Use char8_t for the type of u8 string literals.
5075         (c_common_get_alias_set): char8_t doesn't alias.
5076         (c_common_nodes_and_builtins): Define char8_t as a builtin type in
5077         C++.
5078         (c_stddef_cpp_builtins): Add __CHAR8_TYPE__.
5079         (keyword_begins_type_specifier): Add RID_CHAR8.
5080         * c-common.h (rid): Add RID_CHAR8.
5081         (c_tree_index): Add CTI_CHAR8_TYPE and CTI_CHAR8_ARRAY_TYPE.
5082         Define D_CXX_CHAR8_T and D_CXX_CHAR8_T_FLAGS.
5083         Define char8_type_node and char8_array_type_node.
5084         * c-cppbuiltin.c (cpp_atomic_builtins): Predefine
5085         __GCC_ATOMIC_CHAR8_T_LOCK_FREE.
5086         (c_cpp_builtins): Predefine __cpp_char8_t.
5087         * c-lex.c (lex_string): Use char8_array_type_node as the type of
5088         CPP_UTF8STRING.
5089         (lex_charconst): Use char8_type_node as the type of CPP_UTF8CHAR.
5090         * c-opts.c: If not otherwise specified, enable -fchar8_t when
5091         targeting C++2a.
5092         * c.opt: Add the -fchar8_t command line option.
5094 2019-01-14  Martin Sebor  <msebor@redhat.com>
5096         PR target/88638
5097         * c-attribs.c (positional_argument): Call valid_format_string_type_p
5098         and issue errors if it fails.
5099         * c-common.h (valid_format_string_type_p): Declare.
5100         * c-format.c (valid_stringptr_type_p): Rename...
5101         (valid_format_string_type_p): ...to this and make extern.
5102         (handle_format_arg_attribute): Adjust to new name.
5103         (check_format_string): Same.
5105 2019-01-13  H.J. Lu  <hongjiu.lu@intel.com>
5107         * c-warn.c (warn_for_address_or_pointer_of_packed_member):
5108         Replace "may may" with "may" in warning message.
5110 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
5112         PR c++/85052
5113         * c-common.h (enum rid): Add RID_BUILTIN_CONVERTVECTOR.
5114         (c_build_vec_convert): Declare.
5115         * c-common.c (c_build_vec_convert): New function.
5117 2019-01-04  Martin Sebor  <msebor@redhat.com>
5119         PR c/88546
5120         * c-attribs.c (handle_copy_attribute): Avoid copying attribute leaf.
5121         Handle C++ empty throw specification and C11 _Noreturn.
5122         (has_attribute): Also handle C11 _Noreturn.
5124 2019-01-04  Martin Sebor  <msebor@redhat.com>
5126         PR c/88363
5127         * c-attribs.c (positional_argument): Also accept enumerated types.
5129 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
5131         Update copyright years.
5133 2018-12-20  H.J. Lu  <hongjiu.lu@intel.com>
5135         PR c/51628
5136         * c-common.h (warn_for_address_or_pointer_of_packed_member): New.
5137         * c-warn.c (check_alignment_of_packed_member): New function.
5138         (check_address_of_packed_member): Likewise.
5139         (check_and_warn_address_of_packed_member): Likewise.
5140         (warn_for_address_or_pointer_of_packed_member): Likewise.
5141         * c.opt: Add -Wno-address-of-packed-member.
5143 2018-12-20  David Malcolm  <dmalcolm@redhat.com>
5145         PR c++/87504
5146         * c-warn.c (get_outermost_macro_expansion): New function.
5147         (spelled_the_same_p): Use it to unwind the macro expansions, and
5148         compare the outermost macro in each nested expansion, rather than
5149         the innermost.
5151 2018-12-19  David Malcolm  <dmalcolm@redhat.com>
5153         PR c++/87504
5154         * c-common.h (warn_tautological_cmp): Convert 1st param from
5155         location_t to const op_location_t &.
5156         * c-warn.c (find_array_ref_with_const_idx_r): Call fold_for_warn
5157         when testing for INTEGER_CST.
5158         (warn_tautological_bitwise_comparison): Convert 1st param from
5159         location_t to const op_location_t &; use it to build a
5160         binary_op_rich_location, and use this.
5161         (spelled_the_same_p): New function.
5162         (warn_tautological_cmp): Convert 1st param from location_t to
5163         const op_location_t &.  Warn for macro expansions if
5164         spelled_the_same_p.  Use binary_op_rich_location.
5166 2018-12-19  David Malcolm  <dmalcolm@redhat.com>
5168         PR c++/43064
5169         PR c++/43486
5170         * c-common.c (unsafe_conversion_p): Fold any location wrapper.
5171         (verify_tree): Handle location wrappers.
5172         (c_common_truthvalue_conversion): Strip any location wrapper.
5173         Handle CONST_DECL.
5174         (fold_offsetof): Strip any location wrapper.
5175         (complete_array_type): Likewise for initial_value.
5176         (convert_vector_to_array_for_subscript): Call fold_for_warn on the
5177         index before checking for INTEGER_CST.
5178         * c-pretty-print.c (c_pretty_printer::primary_expression): Don't
5179         print parentheses around location wrappers.
5180         * c-warn.c (warn_logical_operator): Call fold_for_warn on op_right
5181         before checking for INTEGER_CST.
5182         (warn_tautological_bitwise_comparison): Call
5183         tree_strip_any_location_wrapper on lhs, rhs, and bitop's operand
5184         before checking for INTEGER_CST.
5185         (readonly_error): Strip any location wrapper.
5186         (warn_array_subscript_with_type_char): Strip location wrappers
5187         before checking for INTEGER_CST.  Use the location of the index if
5188         available.
5190 2018-12-06  Jason Merrill  <jason@redhat.com>
5192         PR c++/88136 - -Wdeprecated-copy false positives
5193         * c.opt (Wdeprecated-copy-dtor): New.
5194         (Wdeprecated-copy): Move to -Wextra.
5196 2018-11-29  Martin Sebor  <msebor@redhat.com>
5198         PR c/88172
5199         PR testsuite/88208
5200         * c-attribs.c (common_handle_aligned_attribute): Silently avoid setting
5201         alignments to values less than the target requires.
5202         (has_attribute): For attribute aligned consider both the attribute
5203         and the alignment bits.
5204         * c-common.c (c_init_attributes): Optionally issue a warning for
5205         zero alignment.
5207 2018-11-28  Martin Sebor  <msebor@redhat.com>
5209         PR c/88065
5210         PR c/87297
5211         * c-warn.c (sizeof_pointer_memaccess_warning): Bail if source
5212         or destination is an error.
5214 2018-11-28  Jakub Jelinek  <jakub@redhat.com>
5216         PR c++/88215
5217         * c-ubsan.c: Include langhooks.h.
5218         (ubsan_instrument_division): Change gcc_assert that main variants
5219         of op0 and op1 types are equal to gcc_checking_assert that the
5220         main variants are compatible types.
5222 2018-11-27  Eric Botcazou  <ebotcazou@adacore.com>
5224         * c-ada-spec.c: Include stringpool.h.
5225         (has_static_fields): Return false for incomplete types.
5226         (is_tagged_type): Likewise.
5227         (has_nontrivial_methods): Likewise.
5228         (dump_ada_node) <INTEGER_TYPE>: Deal specifically with __int128.
5229         (struct overloaded_name_hash): New structure.
5230         (struct overloaded_name_hasher): Likewise.
5231         (overloaded_names): New global variable.
5232         (init_overloaded_names): New static function.
5233         (overloaded_name_p): New predicate.
5234         (dump_ada_declaration) <TYPE_DECL>: Tidy up and set TREE_VISITED
5235         on the TYPE_STUB_DECL of the original type of a typedef, if any.
5236         <FUNCTION_DECL>: Bail out for an unsupported overloaded name.
5237         Remove always-true condition and dump forward types.
5238         (dump_ada_specs): Delete overloaded_names.
5240 2018-11-20  Martin Sebor  <msebor@redhat.com>
5242         * c-attribs.c (type_for_vector_size): New function.
5243         (type_valid_for_vector_size): Same.
5244         (handle_vector_size_attribute): Move code to the functions above
5245         and call them.
5246         (validate_attribute, has_attribute): New functions.
5247         * c-common.h (has_attribute): Declare.
5248         (rid): Add RID_HAS_ATTRIBUTE_EXPRESSION.
5249         * c-common.c (c_common_resword): Same.
5251 2018-11-16  Jason Merrill  <jason@redhat.com>
5253         * c-lex.c (c_common_has_attribute): Handle likely/unlikely.
5254         * c-attribs.c (attr_cold_hot_exclusions): Make public.
5256 2018-11-16  Jakub Jelinek  <jakub@redhat.com>
5258         PR middle-end/87854
5259         * c-common.c (fix_string_type): Reject string literals larger than
5260         TYPE_MAX_VALUE (ssizetype) bytes.
5262 2018-11-15  Martin Sebor  <msebor@redhat.com>
5264         PR c++/87541
5265         PR c++/87542
5266         * c-attribs.c (positional_argument): New function.
5267         (handle_alloc_size_attribute): Use it and simplify.
5268         (handle_alloc_align_attribute): Same.
5269         (handle_assume_aligned_attribute): Same.
5270         (handle_nonnull_attribute): Same.
5271         * c-common.c (check_function_arguments): Pass fntype to
5272         check_function_format.
5273         * c-common.h (check_function_format): Add an argument.
5274         (PosArgFlags, positional_argument): Declare new type and function.
5275         * c-format.c (decode_format_attr): Add arguments.
5276         (check_format_string, get_constant): Same.
5277         (convert_format_name_to_system_name): Adjust.
5279 2018-11-15  David Malcolm  <dmalcolm@redhat.com>
5281         PR other/19165
5282         * c-opts.c (c_diagnostic_finalizer): Add diagnostic_t param.
5284 2018-11-14  Jakub Jelinek  <jakub@redhat.com>
5286         P1236R1 - Signed integers are two's complement
5287         * c-warn.c (maybe_warn_shift_overflow): Don't warn for c++2a.
5288         * c-ubsan.c (ubsan_instrument_shift): Make signed shifts
5289         with in-range second operand well defined for -std=c++2a.
5291         PR other/88007
5292         * c-common.c (parse_optimize_options): Allocate option string from
5293         opts_obstack rather than as GC memory.  Move the allocation after
5294         warning for invalid option.
5296 2018-11-13  David Malcolm  <dmalcolm@redhat.com>
5298         * c-common.c (c_get_substring_location): Update for renaming of
5299         get_source_location_for_substring to get_location_within_string.
5300         * c-lex.c: Replace "source_location" with "location_t".
5301         * c-opts.c: Likewise.
5302         * c-ppoutput.c: Likewise.
5304 2018-11-13  Martin Sebor  <msebor@redhat.com>
5306         PR middle-end/81824
5307         * c-attribs.c (handle_copy_attribute): Exclude inlining attributes.
5308         (handle_tls_model_attribute): Improve diagnostics.
5310 2018-11-12  Jason Merrill  <jason@redhat.com>
5312         * c-cppbuiltin.c (c_cpp_builtins): Define
5313         __cpp_impl_destroying_delete.
5315         * c-cppbuiltin.c (c_cpp_builtins): Change __cpp_explicit_bool to
5316         __cpp_conditional_explicit.
5318 2018-11-09  Martin Sebor  <msebor@redhat.com>
5320         PR middle-end/81824
5321         * c-attribs.c (handle_copy_attribute): New function.
5323 2018-11-09  Martin Sebor  <msebor@redhat.com>
5325         PR c/87795
5326         * c-common.c (check_user_alignment): Use MAX_OFILE_ALIGNMENT.
5328 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
5330         * c-common.h (c_finish_omp_taskgroup): Add CLAUSES argument.
5331         (c_finish_omp_atomic): Replace bool SEQ_CST argument with
5332         enum omp_memory_order MEMORY_ORDER.
5333         (c_finish_omp_flush): Add MO argument.
5334         (c_omp_depend_t_p, c_finish_omp_depobj): Declare.
5335         (c_finish_omp_for): Add FINAL_P argument.
5336         * c-omp.c: Include memmodel.h.
5337         (c_finish_omp_taskgroup): Add CLAUSES argument.  Set
5338         OMP_TASKGROUP_CLAUSES to it.
5339         (c_finish_omp_atomic): Replace bool SEQ_CST argument with
5340         enum omp_memory_order MEMORY_ORDER.  Set OMP_ATOMIC_MEMORY_ORDER
5341         instead of OMP_ATOMIC_SEQ_CST.
5342         (c_omp_depend_t_p, c_finish_omp_depobj): New functions.
5343         (c_finish_omp_flush): Add MO argument, if not MEMMODEL_LAST, emit
5344         __atomic_thread_fence call with the given value.
5345         (check_omp_for_incr_expr): Formatting fixes.
5346         (c_finish_omp_for): Add FINAL_P argument.  Allow NE_EXPR
5347         even in OpenMP loops, diagnose if NE_EXPR and incr expression
5348         is not constant expression 1 or -1.  Transform NE_EXPR loops
5349         with iterators pointers to VLA into LT_EXPR or GT_EXPR loops.
5350         (c_omp_check_loop_iv_r): Look for orig decl of C++ range for
5351         loops too.
5352         (c_omp_split_clauses): Add support for combined
5353         #pragma omp parallel master and
5354         #pragma omp {,parallel }master taskloop{, simd} constructs.
5355         Handle OMP_CLAUSE_IN_REDUCTION.  Handle OMP_CLAUSE_REDUCTION_TASK.
5356         Handle OMP_CLAUSE_NONTEMPORAL.  Handle splitting OMP_CLAUSE_IF
5357         also to OMP_SIMD.  Copy OMP_CLAUSE_LASTPRIVATE_CONDITIONAL.
5358         (c_omp_predetermined_sharing): Don't return
5359         OMP_CLAUSE_DEFAULT_SHARED for const qualified decls.
5360         * c-pragma.c (omp_pragmas): Add PRAGMA_OMP_DEPOBJ and
5361         PRAGMA_OMP_REQUIRES.
5362         * c-pragma.h (enum pragma_kind): Likewise.
5363         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_NONTEMPORAL
5364         and PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION.
5366 2018-11-08  David Malcolm  <dmalcolm@redhat.com>
5368         * c-format.c (gcc_dump_printf_char_table): Add entry for %f.
5370 2018-11-08  David Malcolm  <dmalcolm@redhat.com>
5372         * c-format.c (local_cgraph_node_ptr_node): New variable.
5373         (gcc_dump_printf_char_table): Add entry for %C.
5374         (get_pointer_to_named_type): New function, taken from the handling
5375         code for "gimple *" from...
5376         (init_dynamic_diag_info): ...here.  Add handling for
5377         "cgraph_node *".
5378         * c-format.h (T_CGRAPH_NODE): New.
5380 2018-10-19  Jason Merrill  <jason@redhat.com>
5382         * c-cppbuiltin.c (c_cpp_builtins): Add
5383         __cpp_nontype_template_parameter_class.
5385 2018-10-31  Nathan Sidwell  <nathan@acm.org>
5387         * c-opts.c (c_finish_options): Force command line macro
5388         location.  Refactor to avoid repeating main debug hook.
5389         (push_command_line_include): Clarify comment.
5391         * c-opts.c (c_finish_options): Adjust cpp_force_token_locations call.
5393 2018-10-30  Martin Sebor  <msebor@redhat.com>
5395         PR middle-end/87041
5396         * c-format.c (check_format_types): Avoid diagnosing null pointer
5397         arguments to printf-family of functions.
5399 2018-10-30  Marek Polacek  <polacek@redhat.com>
5401         Implement P0892R2, explicit(bool).
5402         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_explicit_bool.
5404 2018-10-29  David Malcolm  <dmalcolm@redhat.com>
5406         * name-hint.h (name_hint::take_deferred): New member function.
5408 2018-10-29  David Malcolm  <dmalcolm@redhat.com>
5410         PR c++/56856
5411         * c-common.c (check_function_sentinel): Call fold_for_warn on the
5412         argument.
5413         (check_function_restrict): Rename param "argarray" to
5414         "unfolded_argarray", and make a copy named "argarray", calling
5415         fold_for_warn on each argument.
5416         (check_function_arguments): Add note about responsibility for
5417         folding the arguments.
5419 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
5421         * c-common.c (flag_isoc2x): New variable.
5422         * c-common.h (clk_c): Update comment to reference C2X.
5423         (flag_isoc99, flag_isoc11): Update comments to reference future
5424         standard versions in general.
5425         (flag_isoc2x): Declare.
5426         * c-opts.c (set_std_c2x): New function.
5427         (c_common_handle_option): Handle -std=c2x and -std=gnu2x.
5428         (set_std_c89, set_std_c99, set_std_c11, set_std_c17): Set
5429         flag_isoc2x to 0.
5430         * c.opt (Wc11-c2x-compat, std=c2x, std=gnu2x): New options.
5432 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
5434         * c.opt (std=c17, std=c18, std=gnu17, std=gnu18, std=iso9899:2017)
5435         (std=iso9899:2018): Document C17 as published in 2018.
5437 2018-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
5439         PR c++/87364
5440         * c-pretty-print.c (c_pretty_printer::constant): Fix typo.
5442 2018-10-11  Will Wray  <wjwray@gmail.com>
5444         PR c++/87364
5445         * c-pretty-print.h (pp_c_type_cast): Prototype.
5446         (pp_c_integer_constant): Likewise.
5447         * c-pretty-print.c (pp_c_type_cast): No longer static.
5448         (pp_c_integer_constant): Likewise.
5449         (pp_c_enumeration_constant): Fix loop termination when finding
5450         name of constant.  No longer returns a value.  Call
5451         pp_c_integer_constant.
5452         (c_pretty_printer::constant): Update for changes to
5453         pp_c_enumeration_constant.
5455 2018-10-11  Jakub Jelinek  <jakub@redhat.com>
5457         * c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312
5458         for no_unique_address.
5460 2018-10-09  David Malcolm  <dmalcolm@redhat.com>
5462         * c-common.c (c_option_controlling_cpp_error): Rename to...
5463         (c_option_controlling_cpp_diagnostic): ...this, and convert
5464         "reason" from int to enum.
5465         (c_cpp_error): Rename to...
5466         (c_cpp_diagnostic): ...this, converting level and reason to enums.
5467         * c-common.h (c_cpp_error): Rename to...
5468         (c_cpp_diagnostic): ...this, converting level and reason to enums.
5469         * c-opts.c (c_common_init_options): Update for renaming.
5471 2018-10-08  Richard Sandiford  <richard.sandiford@arm.com>
5473         PR c/87286
5474         * c-common.c (vector_types_compatible_elements_p): Use
5475         INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE.
5477 2018-10-04  Vinay Kumar  <vinay.kumar@blackfigtech.com>
5479         * c-attribs.c (get_priority): Add a warning flag warn_prio_ctor_dtor
5480         to generate constructor destructor priority warning.
5481         * c.opt (-Wprio-ctor-dtor): New option.
5483 2018-10-01  Jason Merrill  <jason@redhat.com>
5485         * c-lex.c (c_common_has_attribute): Add no_unique_address.
5487 2018-10-01  Eric Botcazou  <ebotcazou@adacore.com>
5489         * c-ada-spec.c (get_underlying_decl): Get to the main type variant.
5490         (dump_ada_node): Add const keyword.
5492 2018-09-25  Martin Liska  <mliska@suse.cz>
5494         * c-common.c (c_common_truthvalue_conversion):
5495         Remove Pascal from documentation.
5497 2018-09-21  Eric Botcazou  <ebotcazou@adacore.com>
5499         * c-ada-spec.c: Include diagnostic.h.
5500         (dump_ada_declaration) <RECORD_TYPE>: Issue a warning on packed layout.
5502 2018-09-19  Marek Polacek  <polacek@redhat.com>
5504         * c.opt (Wclass-conversion): New.
5506 2018-09-17  David Malcolm  <dmalcolm@redhat.com>
5508         * c-format.c (range_label_for_format_type_mismatch::get_text):
5509         Update for new param.
5511 2018-09-17  David Malcolm  <dmalcolm@redhat.com>
5513         * c-format.c (format_warning_at_char): Update for introduction of
5514         format_string_diagnostic_t.
5515         (format_type_warning): Likewise.
5517 2018-09-17  Martin Jambor  <mjambor@suse.cz>
5519         PR c/63886
5520         * c.opt (Wabsolute-value): New.
5522 2018-09-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5524         * c-common.c (complete_flexible_array_elts): New helper function.
5525         * c-common.h (complete_flexible_array_elts): Declare.
5527 2018-09-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5529         * c-common.c (braced_list_to_string): Remove eval parameter.
5530         Add some more checks.  Always create zero-terminated STRING_CST.
5531         * c-common.h (braced_list_to_string): Adjust prototype.
5533 2018-08-27  David Malcolm  <dmalcolm@redhat.com>
5535         PR 87091
5536         * c-common.c (c_cpp_error): Update for conversion of show_caret_p
5537         to a tri-state.
5538         (maybe_suggest_missing_token_insertion): Likewise.
5539         (maybe_add_include_fixit): Add param "override_location".  If set,
5540         and source-printing is enabled, then override the rich_location's
5541         primary location with that of the insertion point for the fix-it
5542         hint, marking it with SHOW_LINES_WITHOUT_RANGE.
5543         * c-common.h (extern void maybe_add_include_fixit): Add bool
5544         param.
5545         * c-format.c (selftest::test_type_mismatch_range_labels): Update
5546         for conversion of show_caret_p to a tri-state.
5547         * c-warn.c (warn_for_restrict): Likewise.
5548         * known-headers.cc
5549         (suggest_missing_header::~suggest_missing_header): Update call to
5550         maybe_add_include_fixit to suggest overriding the location, as it
5551         is for a note.
5553 2018-08-27  Martin Liska  <mliska@suse.cz>
5555         * c-common.c (check_function_restrict): Use new function
5556         fndecl_built_in_p and remove check for FUNCTION_DECL if
5557         possible.
5558         (check_builtin_function_arguments): Likewise.
5559         (reject_gcc_builtin): Likewise.
5560         * c-warn.c (sizeof_pointer_memaccess_warning): Likewise.
5562 2018-08-26  Marek Polacek  <polacek@redhat.com>
5564         PR c++/87029, Implement -Wredundant-move.
5565         * c.opt (Wredundant-move): New option.
5567 2018-08-21  Marek Polacek  <polacek@redhat.com>
5569         PR c++/86981, Implement -Wpessimizing-move.
5570         * c.opt (Wpessimizing-move): New option.
5572 2018-08-20  David Malcolm  <dmalcolm@redhat.com>
5574         PR other/84889
5575         * c-attribs.c (common_handle_aligned_attribute): Add
5576         auto_diagnostic_group instance.
5577         * c-indentation.c (warn_for_misleading_indentation): Likewise.
5578         * c-opts.c (c_common_post_options): Likewise.
5579         * c-warn.c (warn_logical_not_parentheses): Likewise.
5580         (warn_duplicated_cond_add_or_warn): Likewise.
5581         (warn_for_multistatement_macros): Likewise.
5583 2018-08-20  Nathan Sidwell  <nathan@acm.org>
5585         * c-ada-spec.c (macro_length, dump_ada_macros): Adjust macro parm
5586         access.
5588 2018-08-17  Nathan Sidwell  <nathan@acm.org>
5590         * c-cppbuiltin.c (struct lazy_hex_fp_value_struct): Remove macro
5591         field.
5592         (laxy_hex_fp_value_count): Make unsigned.
5593         (lazy_hex_fp_value): Provided with macro & lazy number.  Directly
5594         manipulate the macro.
5595         (builtin_defin_with_hex_fp_value): Adjust callback name, use
5596         cpp_define_lazily.
5598 2018-08-17  David Malcolm  <dmalcolm@redhat.com>
5600         * c-format.c (enum format_type): Add gcc_dump_printf_format_type.
5601         (gcc_dump_printf_length_specs): New.
5602         (gcc_dump_printf_flag_pairs): New.
5603         (gcc_dump_printf_flag_specs): New.
5604         (gcc_dump_printf_char_table): New.
5605         (format_types_orig): Add entry for "gcc_dump_printf".
5606         (init_dynamic_diag_info): Set up length_char_specs and
5607         conversion_specs for gcc_dump_printf_format_type.
5608         (handle_format_attribute): Handle gcc_dump_printf_format_type.
5610 2018-08-17  Nathan Sidwell  <nathan@acm.org>
5612         * c-ada-spec.c (macro_length, dump_ada_macros): Constify.
5614         * c-ada-spec.c: Don't #include "cpp-id-data.h"
5615         * c-cppbuiltin.c: Likewise.
5617 2018-08-17  Martin Liska  <mliska@suse.cz>
5619         * c.opt: Remove Warn, Init and Report for options with
5620         Ignore/Deprecated flag. Warning is done automatically for
5621         Deprecated flags.
5623 2018-08-16  David Malcolm  <dmalcolm@redhat.com>
5625         PR c++/70693
5626         * c-common.c (selftest::c_family_tests): Call
5627         selftest::c_indentation_c_tests.
5628         * c-common.h (selftest::c_indentation_c_tests): New decl.
5629         * c-indentation.c: Include "selftest.h".
5630         (next_tab_stop): Add "tab_width" param, rather than accessing
5631         cpp_opts.
5632         (get_visual_column): Likewise.  Clarify comment.  Bulletproof
5633         against reading past the end of the line.
5634         (get_first_nws_vis_column): Add "tab_width" param.
5635         (detect_intervening_unindent): Likewise.
5636         (should_warn_for_misleading_indentation): Read tab width from
5637         cpp_opts and pass around.
5638         (selftest::test_next_tab_stop): New test.
5639         (selftest::assert_get_visual_column_succeeds): New function.
5640         (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro.
5641         (selftest::assert_get_visual_column_fails): New function.
5642         (ASSERT_GET_VISUAL_COLUMN_FAILS): New macro.
5643         (selftest::test_get_visual_column): New test.
5644         (selftest::c_indentation_c_tests): New function.
5646 2018-08-16  Nathan Sidwell  <nathan@acm.org>
5648         * c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p.
5649         (store_ada_macro): Likewise.
5650         * c-ppoutput.c (cb_used_define, dump_macro): Likewise.
5651         * c-spellcheck.cc (should-suggest_as_macro_p): Likewise,
5653 2018-08-15  David Malcolm  <dmalcolm@redhat.com>
5655         * c-format.c: Include "selftest-diagnostic.h" and
5656         "gcc-rich-location.h".
5657         (format_warning_at_char): Pass NULL for new label params of
5658         format_warning_va.
5659         (class indirection_suffix): New class.
5660         (class range_label_for_format_type_mismatch): New class.
5661         (format_type_warning): Move logic for generating "*" suffix to
5662         class indirection_suffix.  Create "fmt_label" and "param_label"
5663         to show their types, and pass them to the
5664         format_warning_at_substring calls.
5665         (selftest::test_type_mismatch_range_labels): New test.
5666         (selftest::c_format_c_tests): Call it.
5668 2018-08-13  Martin Sebor  <msebor@redhat.com>
5670         PR tree-optimization/71625
5671         * c-common.c (braced_list_to_string): New function.
5672         * c-common.h (braced_list_to_string): Declare it.
5674 2018-08-08  Nathan Sidwell  <nathan@acm.org>
5676         * c-common.c (try_to_locate_new_include_inertion_point): Use
5677         linemap_included_from_linemap.
5678         * c-lex.c (fe_file_change): Use linemap_included_from.
5679         * c-ppoutput.c (pp_file_change): Likewise.
5681 2018-08-01  Martin Sebor  <msebor@redhat.com>
5683         PR tree-optimization/86650
5684         * c-format.c (gcc_tdiag_char_table): Update comment for "%G".
5685         (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same.
5686         (init_dynamic_diag_info): Update from "gcall *" to "gimple *".
5687         * c-format.h (T89_G): Update to be "gimple *" rather than
5688         "gcall *".
5689         (local_gcall_ptr_node): Rename...
5690         (local_gimple_ptr_node): ...to this.
5692 2018-07-31  David Malcolm  <dmalcolm@redhat.com>
5694         * c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing
5695         table entries for gcc_diag_char_table, and the 'Z' entry from
5696         gcc_tdiag_char_table, changing the "chain" entry for 'Z' from
5697         &gcc_tdiag_char_table[0] to &gcc_diag_char_table[0].
5698         (gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly
5699         adding missing "Z" for this table.  Remove erroneous "G" and "K"
5700         entries.
5701         (gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE.  Remove "v".
5702         (gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE.
5703         (gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE.  Remove "v".
5705 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
5707         * c-common.c (speculation_safe_resolve_call): New function.
5708         (speculation_safe_resolve_params): New function.
5709         (speculation_safe_resolve_return): New function.
5710         (resolve_overloaded_builtin): Handle __builtin_speculation_safe_value.
5711         * c-cppbuiltin.c (c_cpp_builtins): Add pre-define for
5712         __HAVE_SPECULATION_SAFE_VALUE.
5714 2018-07-20  David Malcolm  <dmalcolm@redhat.com>
5716         * c-common.c (c_cpp_error): Remove redundant "line_table"
5717         parameter from call to rich_location::set_range.
5718         (maybe_suggest_missing_token_insertion): Likewise.
5720 2018-07-20  Martin Sebor  <msebor@redhat.com>
5722         PR middle-end/82063
5723         * c.opt (-Warray-bounds): Remove redundant -Wall.
5725 2018-07-20  Martin Sebor  <msebor@redhat.com>
5727         PR middle-end/82063
5728         * c-common.h (c_common_handle_option): Change function argument
5729         to HOST_WIDE_INT.
5730         * c-opts.c (c_common_init_options): Same.
5731         (c_common_handle_option): Same.  Remove special handling of
5732         OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_.
5733         * c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change
5734         options to take a HOST_WIDE_INT argument and accept a byte-size
5735         suffix.  Initialize.
5736         (-Wvla-larger-than): Same.
5737         (-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New.
5738         (-Wno-vla-larger-than): Same.
5740 2018-07-12  Jakub Jelinek  <jakub@redhat.com>
5742         * c-attribs.c (c_common_attribute_table): Add
5743         "omp declare target implicit" attribute.
5745 2018-07-12  Richard Biener  <rguenther@suse.de>
5747         PR c/86453
5748         * c-attribs.c (handle_packed_attribute): Do not build a variant
5749         type with TYPE_PACKED, instead ignore the attribute if we may
5750         not apply to the original type.
5752 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
5754         PR c++/86443
5755         * c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv
5756         to contain TREE_LIST for both the original class iterator and the
5757         "last" helper var.
5759 2018-07-07  Eric Botcazou  <ebotcazou@adacore.com>
5761         * c-ada-spec.c (to_ada_name): Remove index parameter.
5762         (pp_ada_tree_identifier): Likewise.
5763         (dump_ada_macros): Adjust call to to_ada_name.
5764         (struct overloaded_name_hash): Delete.
5765         (struct overloaded_name_hasher): Likewise.
5766         (overloaded_names): Likewise.
5767         (compute_overloading_index): Likewise.
5768         (dump_ada_decl_name): Do not call compute_overloading_index and
5769         adjust calls to pp_ada_tree_identifier.
5770         (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
5771         (dump_ada_import): Add spc parameter and switch to aspect syntax.
5772         (dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier.
5773         (dump_ada_enum_type): Remove type and display_convention parameters.
5774         Adjust calls to pp_ada_tree_identifier.
5775         (dump_ada_node): Likewise and for dump_ada_structure.
5776         (dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type
5777         and tidy up.
5778         <RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect
5779         syntax.
5780         (print_constructor): Adjust call to pp_ada_tree_identifier.
5781         (print_destructor): Likewise.
5782         (dump_ada_declaration): Switch to aspect syntax.
5783         (dump_ada_structure): Likewise and tidy up.  Replace display_convention
5784         parameter with nested parameter.
5785         (dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005.
5786         (dump_ada_specs): Do not delete overloaded_names table.
5788 2018-07-06  Peter Bergner  <bergner@linux.ibm.com>
5790         PR target/86324
5791         * c-attribs.c (handle_mode_attribute): Call translate_mode_attribute
5792         target hook.
5794 2018-07-05  Nathan Sidwell  <nathan@acm.org>
5796         * c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not
5797         NO_IMPLICIT_EXTERN_C.
5799 2018-06-28  Martin Liska  <mliska@suse.cz>
5801         * cppspec.c: Include opt-suggestions.h.
5803 2018-06-20  Chung-Lin Tang  <cltang@codesourcery.com>
5804             Thomas Schwinge  <thomas@codesourcery.com>
5805             Cesar Philippidis  <cesar@codesourcery.com>
5807         * c-pragma.h (enum pragma_omp_clause): Add
5808         PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove
5809         PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}.
5811 2018-06-20  Jakub Jelinek  <jakub@redhat.com>
5813         PR c++/86210
5814         * c-common.c (check_nonnull_arg): Use fold_for_warn.  Adjust obsolete
5815         comment.
5817 2018-06-18  Martin Sebor  <msebor@redhat.com>
5819         PR middle-end/85602
5820         * c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute
5821         nonstring.
5823 2018-06-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
5825         * c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR.
5827 2018-06-13  Jason Merrill  <jason@redhat.com>
5829         * c-opts.c (c_common_post_options): Warn about useless -Wabi.
5830         (c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version
5831         handling.
5833         PR c++/86094 - wrong code with defaulted move ctor.
5834         * c-opts.c (c_common_post_options): Bump the current ABI version to
5835         13.  Set warn_abi_version and flag_abi_compat_version to the current
5836         version rather than 0.  Fix defaulting flag_abi_compat_version from
5837         warn_abi_version.
5839 2018-06-12  Martin Sebor  <msebor@redhat.com>
5841         PR c/85931
5842         * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when
5843         sizeof source and destination yields the same value.
5845 2018-06-12  Martin Liska  <mliska@suse.cz>
5847         * c.opt: Make MPX-related options as Deprecated.
5849 2018-06-08  David Malcolm  <dmalcolm@redhat.com>
5851         * c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE
5852         rather than 0.
5854 2018-06-08  Martin Liska  <mliska@suse.cz>
5856         * c-attribs.c (handle_bnd_variable_size_attribute): Remove support
5857         for MPX (macros, related functions, fields in cgraph_node, ...).
5858         (handle_bnd_legacy): Likewise.
5859         (handle_bnd_instrument): Likewise.
5860         * c.opt: Likewise.
5862 2018-06-06  Jakub Jelinek  <jakub@redhat.com>
5864         PR c++/86068
5865         * c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set
5866         __cpp_transactional_memory to 201500 instead of 210500.
5868 2018-06-06  Jason Merrill  <jason@redhat.com>
5870         PR c++/85710 - ICE with -Wmemset-elt-size.
5871         * c-warn.c (warn_for_memset): Don't crash on incomplete element type.
5873 2018-06-01  Jason Merrill  <jason@redhat.com>
5875         * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to
5876         201703.
5878 2018-06-01  Eric Botcazou  <ebotcazou@adacore.com>
5880         * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward
5881         declaration for a typedef independently of whether the declaration of
5882         the subtype is generated.
5884 2018-05-31  Martin Sebor  <msebor@redhat.com>
5886         PR c/82063
5887         * c.opt (-Wno-alloc-size-larger-than): New option.
5889 2018-04-22  David Pagan  <dave.pagan@oracle.com>
5891         PR c/55976
5892         * c-opts.c (c_common_post_options): Set default for warn_return_type
5893         for C++/C++ with ObjC extensions only. For C, makes it possible to
5894         differentiate between default (no option), -Wreturn-type, and
5895         -Wno-return-type.
5897 2018-05-29  Jason Merrill  <jason@redhat.com>
5899         * c.opt (Winit-list-lifetime): New flag.
5901 2018-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5903         * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and
5904         splay_tree_delete_pointers.
5906 2018-05-26  Jakub Jelinek  <jakub@redhat.com>
5908         PR bootstrap/85921
5909         * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary
5910         noinline variable to workaround broken kernel headers.
5912 2018-05-18  Jason Merrill  <jason@redhat.com>
5914         * c.opt (Wdeprecated-copy): New flag.
5916 2018-05-17  Martin Liska  <mliska@suse.cz>
5918         * c-warn.c (overflow_warning): Do not use
5919         space in between 'G_' and '('.
5921 2018-05-09  Jason Merrill  <jason@redhat.com>
5923         * c-common.c (valid_array_size_p): Add complain parameter.
5924         * c-common.h: ...which defaults to true.
5926 2018-05-11  Jakub Jelinek  <jakub@redhat.com>
5928         PR c/85696
5929         * c-omp.c (c_omp_predetermined_sharing): Return
5930         OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.
5932 2018-05-11  Martin Liska  <mliska@suse.cz>
5934         PR sanitizer/85556
5935         * c-attribs.c (handle_no_sanitize_attribute): Iterate all
5936         TREE_LIST values.
5938 2018-05-10  Jakub Jelinek  <jakub@redhat.com>
5940         PR c++/85662
5941         * c-common.h (fold_offsetof_1): Removed.
5942         (fold_offsetof): Add TYPE argument defaulted to size_type_node and
5943         CTX argument defaulted to ERROR_MARK.
5944         * c-common.c (fold_offsetof_1): Renamed to ...
5945         (fold_offsetof): ... this.  Remove wrapper function.  Add TYPE
5946         argument, convert the pointer constant to TYPE and use size_binop
5947         with PLUS_EXPR instead of fold_build_pointer_plus if type is not
5948         a pointer type.  Adjust recursive calls.
5950 2018-05-10  Eric Botcazou  <ebotcazou@adacore.com>
5952         PR c++/85400
5953         * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs.
5955 2018-05-07  Nathan Sidwell  <nathan@acm.org>
5957         * c.opt (ffor-scope): Remove functionality, issue warning.
5959 2018-05-03  Nathan Sidwell  <nathan@acm.org>
5961         * c.opt (ffriend-injection): Remove functionality, issue warning.
5963 2018-05-01  David Malcolm  <dmalcolm@redhat.com>
5965         PR c/84258
5966         * c-format.c (struct format_check_results): Add field
5967         "number_non_char".
5968         (check_format_info): Initialize it, and warn if encountered.
5969         (check_format_arg): Distinguish between wide char and
5970         everything else when detecting arrays of non-char.
5972 2018-04-30  David Malcolm  <dmalcolm@redhat.com>
5974         * c-format.c (get_corrected_substring): Update for
5975         location_get_source_line returning a char_span.  Use a char_span
5976         when handling the prefix of the correction.
5977         * c-indentation.c (get_visual_column): Update for
5978         location_get_source_line returning a char_span.
5979         (get_first_nws_vis_column): Likewise.
5981 2018-03-29  David Malcolm  <dmalcolm@redhat.com>
5983         PR c++/84269
5984         * known-headers.cc (get_stdlib_header_for_name): Add various names
5985         from <assert.h>, <string.h>, and <memory.h>; add more names from
5986         <stdio.h>.
5988 2018-03-27  Jakub Jelinek  <jakub@redhat.com>
5990         PR c++/85061
5991         * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that
5992         get_base_address of the second operand is a VAR_P, rather than the
5993         operand itself, and use gcc_checking_assert instead of gcc_assert.
5995 2018-03-23  Marek Polacek  <polacek@redhat.com>
5997         PR c++/85045
5998         * c-pretty-print.c (c_pretty_printer::multiplicative_expression)
5999         <case RDIV_EXPR>: Tweak condition.
6001 2018-03-20  Eric Botcazou  <ebotcazou@adacore.com>
6003         * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool.
6005 2018-03-16  Jakub Jelinek  <jakub@redhat.com>
6007         PR c/84909
6008         * c-warn.c (conversion_warning): Replace "to to" with "to" in
6009         diagnostics.
6011         PR c/84910
6012         * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
6013         diagnostics.
6015 2018-03-16  Richard Biener  <rguenther@suse.de>
6017         PR c/84873
6018         * c-gimplify.c (c_gimplify_expr): Revert previous change.  Instead
6019         unshare the possibly folded expression.
6021 2018-03-15  Richard Biener  <rguenther@suse.de>
6023         PR c/84873
6024         * c-gimplify.c (c_gimplify_expr): Do not fold expressions.
6026 2018-03-13  Martin Sebor  <msebor@redhat.com>
6028         PR tree-optimization/84725
6029         * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring
6030         with all three narrow character types, including their qualified forms.
6032 2018-03-12  Martin Sebor  <msebor@redhat.com>
6034         PR tree-optimization/83456
6035         * c-common.c (check_function_restrict): Return bool.
6036         Restore checking of bounded built-in functions.
6037         (check_function_arguments): Also return the result
6038         of warn_for_restrict.
6039         * c-common.c (check_function_restrict): Return bool.
6040         * c-warn.c (warn_for_restrict): Return bool.
6042 2018-03-02  Marek Polacek  <polacek@redhat.com>
6044         PR c++/84171
6045         * c-warn.c (warn_for_sign_compare): Bail out if any of the operands
6046         is erroneous.
6048 2018-03-02  Thomas Schwinge  <thomas@codesourcery.com>
6050         * c-attribs.c (c_common_attribute_table): Remove "cilk simd
6051         function".
6053 2018-03-01  Marek Polacek  <polacek@redhat.com>
6055         PR c++/84639
6056         * c-attribs.c (common_handle_aligned_attribute): Don't use invalid
6057         alignment in computation.
6059 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
6061         * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case.
6062         <REAL_TYPE>: Deal specifically with _Float128/__float128.
6064 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
6066         * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case.
6067         (is_char_array): Take a type instead of a declaration.
6068         (dump_ada_array_type): Likewise.
6069         (is_simple_enum): Minor tweak.
6070         (dump_ada_enum_type): New function extracted from...
6071         (dump_ada_node) <ENUMERAL_TYPE>: ...here.  Invoke it.
6072         <INTEGER_TYPE>: Remove unreachable code.
6073         <RECORD_TYPE>: Likewise.  Minor tweaks.
6074         (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes.
6075         <ENUMERAL_TYPE>: New case.
6076         <RECORD_TYPE>: Factor out common code.
6077         (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes.
6078         Minor tweaks.  Deal with enumeral types.
6079         (dump_ada_structure): Minor tweaks.
6081 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
6083         * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic
6084         address for incomplete structures.
6085         (dump_forward_type): Do not bail out for incomplete structures.
6086         (dump_ada_declaration): Do not special-case incomplete structures
6087         for subtypes.  Dump them as null records for types.
6089 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
6091         * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
6092         (is_char_array): Fix formatting.
6093         (dump_template_types): Likewise.
6094         (dump_generic_ada_node): Rename into...
6095         (dump_ada_node): ...this.
6096         <POINTER_TYPE>: Remove superfluous space.  Use generic address for
6097         incomplete structures and not for empty structures.  Do not use it
6098         when forward declarations are needed.
6099         (dump_forward_type): New function.
6100         (dump_nested_types): Remove FORWARD parameter.  Do not consider
6101         TREE_VISITED and do not generate a forward declaration.  Only dump
6102         original nested types for nested declaration.
6103         (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
6104         <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
6105         <RECORD_TYPE>: Do not consider TREE_VISITED.
6106         (dump_ada_declaration): Use booleans and fix formatting throughout.
6107         <TYPE_DECL>: Skip incomplete structures and not empty structures.
6108         Call dump_forward_type instead of dump_nested_types for a typedef.
6109         Remove superfluous check and adjust call to dump_nested_types.
6110         <POINTER_TYPE>: Call dump_forward_type and fall through.
6111         (dump_ada_struct_decl): Rename into...
6112         (dump_ada_structure): ...this.  Do not special-case empty structures.
6114 2018-02-27  Martin Sebor  <msebor@redhat.com>
6116         PR c++/83871
6117         * c.opt (-Wmissing-attributes): New option.
6119 2018-02-21  Martin Liska  <mliska@suse.cz>
6121         * c.opt (Wcatch-value=): Add IntegerRange.
6123 2018-02-15  Jason Merrill  <jason@redhat.com>
6125         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
6127 2018-02-09  Nathan Sidwell  <nathan@acm.org>
6129         PR c/84293
6130         * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
6131         arg.
6132         * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
6133         arg.  Adjust.
6135 2018-02-09  Martin Sebor  <msebor@redhat.com>
6137         PR lto/84212
6138         * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
6139         (-Walloc-size-larger-than, -Wformat-truncation=): Same.
6140         (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
6141         (-Wstrict-overflow, -Wsuggest-attribute): Same.
6142         (-Wuninitialized): Same.
6144 2018-02-09  Eric Botcazou  <ebotcazou@adacore.com>
6146         * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
6147         keyword for components.
6149 2018-02-02  Paolo Carlini  <paolo.carlini@oracle.com>
6151         * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
6153 2018-02-02  Julia Koval  <julia.koval@intel.com>
6155         * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
6157 2018-01-29  Marek Polacek  <polacek@redhat.com>
6159         PR c/83966
6160         * c-format.c (check_function_format): Check current_function_decl.
6162 2018-01-27  Jakub Jelinek  <jakub@redhat.com>
6164         * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
6165         argument.
6166         (LAZY_HEX_FP_VALUES_CNT): Define.
6167         (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
6168         values rather than just 12.
6169         (builtin_define_with_hex_fp_value): Likewise.
6171 2018-01-18  Boris Kolpackov  <boris@codesynthesis.com>
6173         PR other/70268
6174         * c.opt (-fmacro-prefix-map): New option.
6175         * c-opts.c (c_common_handle_option): Handle it.
6176         * c-lex.c (init_c_lex): Set remap_filename cpp callback.
6177         * c-ppoutput.c (init_pp_output): Likewise.
6179 2018-01-17  David Malcolm  <dmalcolm@redhat.com>
6181         PR c++/83814
6182         * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
6184 2018-01-10  Eric Botcazou  <ebotcazou@adacore.com>
6186         * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
6187         Skip 'f' and 'F' characters if it is true.
6188         (store_ada_macro): Minor tweak.
6189         (dump_ada_macros) <CPP_COMMENT>: Likewise.
6190         <CPP_WSTRING>: Likewise.
6191         <CPP_STRING>: Output '&' in the buffer if not the first string.
6192         <CPP_NUMBER>: Adjust calls to dump_number.
6194 2018-01-10  David Malcolm  <dmalcolm@redhat.com>
6196         PR c++/43486
6197         * c-common.c: Include "selftest.h".
6198         (get_atomic_generic_size): Perform the test for integral type
6199         before the range test for any integer constant, fixing indentation
6200         of braces.  Call fold_for_warn before testing for an INTEGER_CST.
6201         (reject_gcc_builtin): Strip any location wrapper from EXPR.
6202         (selftest::test_fold_for_warn): New function.
6203         (selftest::c_common_c_tests): New function.
6204         (selftest::c_family_tests): Call it, and
6205         selftest::c_pretty_print_c_tests.
6206         * c-common.h (selftest::c_pretty_print_c_tests): New decl.
6207         * c-format.c (check_format_arg): Convert VAR_P check to a
6208         fold_for_warn.
6209         * c-pretty-print.c: Include "selftest.h".
6210         (pp_c_cast_expression): Don't print casts for location wrappers.
6211         (selftest::assert_c_pretty_printer_output): New function.
6212         (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
6213         (selftest::test_location_wrappers): New function.
6214         (selftest::c_pretty_print_c_tests): New function.
6215         * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
6217 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
6218             Alan Hayward  <alan.hayward@arm.com>
6219             David Sherwood  <david.sherwood@arm.com>
6221         * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
6223 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
6224             Alan Hayward  <alan.hayward@arm.com>
6225             David Sherwood  <david.sherwood@arm.com>
6227         * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
6228         as polynomial.
6230 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
6231             Alan Hayward  <alan.hayward@arm.com>
6232             David Sherwood  <david.sherwood@arm.com>
6234         * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
6235         (convert_vector_to_array_for_subscript): Handle polynomial
6236         TYPE_VECTOR_SUBPARTS.
6237         (c_common_type_for_mode): Check valid_vector_subparts_p.
6238         * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
6239         VECTOR_CST_NELTS.
6241 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
6243         Update copyright years.
6245 2017-12-22  Mike Stump  <mikestump@comcast.net>
6246             Eric Botcazou  <ebotcazou@adacore.com>
6248         * c-pragma.c (init_pragma): Register pragma GCC unroll.
6249         * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
6251 2017-12-22  Alexandre Oliva  <aoliva@redhat.com>
6253         PR debug/83527
6254         PR debug/83419
6255         * c-semantics.c (only_debug_stmts_after_p): New.
6256         (pop_stmt_list): Clear side effects in debug-only stmt list.
6257         Check for single nondebug stmt followed by debug stmts only.
6259 2017-12-21  Alexandre Oliva  <aoliva@redhat.com>
6261         PR debug/83419
6262         * c-semantics.c (pop_stmt_list): Propagate side effects from
6263         single nondebug stmt to container list.
6265 2017-12-19  Jakub Jelinek  <jakub@redhat.com>
6267         * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
6268         conditions with typical order conditions.
6270 2017-12-18  Marek Polacek  <polacek@redhat.com>
6272         * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
6273         not in effect.
6275 2017-12-17  Martin Sebor  <msebor@redhat.com>
6277         * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
6278         an error for attribute warn_if_not_aligned.
6280 2017-12-16  Martin Sebor  <msebor@redhat.com>
6282         PR tree-optimization/78918
6283         * c-common.c (check_function_restrict): Avoid checking built-ins.
6284         * c.opt (-Wrestrict): Include in -Wall.
6286 2017-12-15  Jakub Jelinek  <jakub@redhat.com>
6288         * c-attribs.c (c_common_attribute_table,
6289         c_common_format_attribute_table): Swap affects_type_identity
6290         and handler fields, adjust comments.
6292 2017-12-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6294         * c.opt (Wcast-function-type): New warning option.
6295         * c-lex.c (get_fileinfo): Avoid warning.
6296         * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
6298 2017-12-14  Qing Zhao  <qing.zhao@oracle.com>
6300         PR middle_end/79538
6301         * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
6302         Adjust the size of buf1 and buf2, add a new buf to avoid
6303         format-overflow warning.
6305 2017-12-12  Alexandre Oliva  <aoliva@redhat.com>
6307         * c-semantics.c (pop_stmt_list): Move begin stmt marker into
6308         subsequent statement list.
6310 2017-12-07  Martin Sebor  <msebor@redhat.com>
6312         PR c/81544
6313         PR c/81566
6314         * c-attribs.c (attr_aligned_exclusions): New array.
6315         (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
6316         (attr_common_exclusions, attr_const_pure_exclusions): Same.
6317         (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
6318         (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
6319         (attr_warn_unused_result_exclusions): Same.
6320         (handle_hot_attribute, handle_cold_attribute): Simplify.
6321         (handle_const_attribute): Warn on function returning void.
6322         (handle_pure_attribute): Same.
6323         (handle_aligned_attribute): Diagnose conflicting attribute
6324         specifications.
6325         * c-warn.c (diagnose_mismatched_attributes): Simplify.
6327 2017-12-06  David Malcolm  <dmalcolm@redhat.com>
6329         PR c/83236
6330         * c-common.c (selftest::c_family_tests): Call
6331         selftest::c_spellcheck_cc_tests.
6332         * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
6333         * c-spellcheck.cc: Include "selftest.h".
6334         (name_reserved_for_implementation_p): New function.
6335         (should_suggest_as_macro_p): New function.
6336         (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
6337         should_suggest_as_macro_p and call it.
6338         (selftest::test_name_reserved_for_implementation_p): New function.
6339         (selftest::c_spellcheck_cc_tests): New function.
6340         * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
6342 2017-12-06  David Malcolm  <dmalcolm@redhat.com>
6344         * c-spellcheck.cc: New file, taken from macro-handling code in
6345         spellcheck-tree.c.
6346         * c-spellcheck.h: New file, taken from macro-handling code in
6347         spellcheck-tree.h.
6349 2017-12-01  Jakub Jelinek  <jakub@redhat.com>
6351         * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
6352         attribute.
6353         (handle_simd_attribute): Don't check for "cilk simd function"
6354         attribute.  Reindent, formatting changes.
6356 2017-11-30  Julia Koval  <julia.koval@intel.com>
6358         * c-common.h (inv_list): Remove.
6360 2017-11-28  Jakub Jelinek  <jakub@redhat.com>
6362         PR sanitizer/81275
6363         * c-common.c (c_switch_covers_all_cases_p_1,
6364         c_switch_covers_all_cases_p): New functions.
6365         * c-common.h (c_switch_covers_all_cases_p): Declare.
6367 2017-11-28  Julia Koval  <julia.koval@intel.com>
6368             Sebastian Peryt  <sebastian.peryt@intel.com>
6370         * array-notation-common.c: Delete.
6371         * c-cilkplus.c: Ditto.
6372         * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
6373         * c-common.def (ARRAY_NOTATION_REF): Remove.
6374         * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
6375         build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
6376         c_validate_cilk_plus_loop, cilkplus_an_parts,
6377         cilk_ignorable_spawn_rhs_op,
6378         cilk_recognize_spawn): Remove.
6379         * c-gimplify.c (CILK_SPAWN_STMT): Remove.
6380         * c-omp.c: Remove CILK_SIMD check.
6381         * c-pragma.c: Ditto.
6382         * c-pragma.h: Remove CILK related pragmas.
6383         * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
6384         ARRAY_NOTATION_REF condition.
6385         (c_pretty_printer::expression): Ditto.
6386         * c.opt (fcilkplus): Remove.
6387         * cilk.c: Delete.
6389 2017-11-21  Marc Glisse  <marc.glisse@inria.fr>
6391         * c-pretty-print.c (pp_c_additive_expression,
6392         c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
6394 2017-11-21  Jakub Jelinek  <jakub@redhat.com>
6396         * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
6398         PR c++/83059
6399         * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
6400         instead of tree_to_uhwi, formatting fix.
6402 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
6404         PR c/81404
6405         * known-headers.cc: New file, based on material from c/c-decl.c.
6406         (suggest_missing_header): Copied as-is.
6407         (get_stdlib_header_for_name): New, based on get_c_name_hint but
6408         heavily edited to add C++ support.  Add some knowledge about
6409         <limits.h>, <stdint.h>, and <wchar.h>.
6410         * known-headers.h: Likewise.
6412 2017-11-20  David Malcolm  <dmalcolm@redhat.com>
6414         * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
6415         (lookup_name_fuzzy): Likewise.  Convert return type from
6416         const char * to name_hint.  Add location_t param.
6417         * name-hint.h: New header.
6419 2017-11-19  Jakub Jelinek  <jakub@redhat.com>
6421         PR c/66618
6422         PR c/69960
6423         * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
6425 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
6427         * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
6428         expected publication date of C17.
6429         (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
6431 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
6433         PR c/81156
6434         * c-common.c (c_common_reswords): Add __builtin_tgmath.
6435         * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
6437 2017-11-10  Martin Sebor  <msebor@redhat.com>
6439         PR c/81117
6440         * c-common.c (catenate_strings): Use memcpy instead of strncpy.
6441         * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
6442         * c.opt (-Wstringop-truncation): New option.
6444 2017-11-06  Martin Liska  <mliska@suse.cz>
6446         PR middle-end/82404
6447         * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
6448         FE.
6449         * c.opt: Set default value of warn_return_type.
6451 2017-10-31  David Malcolm  <dmalcolm@redhat.com>
6453         * c-common.c (binary_op_error): Update for renaming of
6454         error_at_rich_loc.
6455         (c_parse_error): Likewise.
6456         * c-warn.c (warn_logical_not_parentheses): Likewise for
6457         renaming of inform_at_rich_loc.
6458         (warn_for_restrict): Likewise for renaming of
6459         warning_at_rich_loc_n.
6461 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
6463         * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
6464         * c-opts.c (set_std_c17): New function.
6465         (c_common_init_options): Use gnu17 as default C version.
6466         (c_common_handle_option): Handle -std=c17 and -std=gnu17.
6468 2017-10-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
6470         * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
6471         (c_cpp_builtins): If a machine has a fast fma _Float<N> and
6472         _Float<N>X variant, define __FP_FAST_FMA<N> and/or
6473         __FP_FAST_FMA<N>X.
6475 2017-10-23  Marek Polacek  <polacek@redhat.com>
6477         PR c/82681
6478         * c-warn.c (warnings_for_convert_and_check): Fix typos.
6480 2017-10-19  Eric Botcazou  <ebotcazou@adacore.com>
6482         * c-common.c (check_builtin_function_arguments): Also check arguments
6483         of __builtin_alloca_with_align_and_max.
6485 2017-10-17  David Malcolm  <dmalcolm@redhat.com>
6487         * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
6488         rather than NULL to format_warning_va.
6489         (check_format_types): Likewise when calling format_type_warning.
6490         Remove code to extract source_ranges and source_range * in favor
6491         of just a location_t.
6492         (format_type_warning): Convert source_range * param to a
6493         location_t.
6495 2017-10-13  Jakub Jelinek  <jakub@redhat.com>
6497         * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
6498         [LR]SHIFT_EXPR.
6500 2017-10-12  David Malcolm  <dmalcolm@redhat.com>
6502         * c-common.c (enum missing_token_insertion_kind): New enum.
6503         (get_missing_token_insertion_kind): New function.
6504         (maybe_suggest_missing_token_insertion): New function.
6505         * c-common.h (maybe_suggest_missing_token_insertion): New decl.
6507 2017-10-11  Nathan Sidwell  <nathan@acm.org>
6509         * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
6510         (c_common_handle_option): Update incpath_kind names.
6512 2017-10-11  Martin Liska  <mliska@suse.cz>
6514         PR sanitizer/82490
6515         * c-attribs.c (handle_no_sanitize_attribute): Report directly
6516         Wattributes warning.
6518 2017-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
6520         * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
6521         operating on trees as wide_ints.
6522         * c-common.c (pointer_int_sum): Likewise.
6523         * c-pretty-print.c (pp_c_integer_constant): Likewise.
6524         * c-warn.c (match_case_to_enum_1): Likewise.
6525         (c_do_switch_warnings): Likewise.
6526         (maybe_warn_shift_overflow): Likewise.
6528 2017-10-10  Jakub Jelinek  <jakub@redhat.com>
6530         PR c/82437
6531         * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
6532         instead of wide_int::from.
6534 2017-10-06  Jakub Jelinek  <jakub@redhat.com>
6536         PR c/82437
6537         * c-warn.c (warn_tautological_bitwise_comparison): Instead of
6538         using to_widest use wide_int with the larger of the two precisions.
6540 2017-10-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6542         * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
6543         functions.
6545 2017-10-02  Richard Sandiford  <richard.sandiford@linaro.org>
6547         * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
6548         when combining the original unconverted comparison operands.
6550 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
6552         * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
6553         attribute.
6555 2017-09-29  Eric Botcazou  <ebotcazou@adacore.com>
6557         * c-ada-spec.c (to_ada_name): Add index parameter.
6558         (pp_ada_tree_identifier): Likewise.
6559         (dump_ada_macros): Adjust call to to_ada_name.
6560         (struct overloaded_name_hash): New type.
6561         (struct overloaded_name_hasher): Likewise.
6562         (overloaded_names): New hash table.
6563         (compute_overloading_index): New function.
6564         (dump_ada_decl_name): Call it and pass the result to
6565         pp_ada_tree_identifier.
6566         (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
6567         (dump_ada_function_declaration): Likewise.
6568         (dump_generic_ada_node): Likewise.
6569         (print_constructor): Likewise.
6570         (print_destructor): Likewise.
6571         (dump_ada_specs): Delete overloaded_names table.
6573 2017-09-29  Eric Botcazou  <ebotcazou@adacore.com>
6575         * c-ada-spec.c (max_ada_macros): Move around.
6576         (store_ada_macro_index): Likewise.
6577         (source_file): Rename into...
6578         (macro_source_file): ...this.
6579         (count_ada_macro): Move around.
6580         (store_ada_macro): Likewise.
6581         (compare_macro): Likewise.
6582         (print_ada_macros): Merge in...
6583         (dump_ada_macros): ...this.
6584         (source_file_base): Rename into...
6585         (current_source_file): ...this.
6586         (print_comment): Move around.
6587         (dump_ada_nodes): Call dump_ada_declaration directly.
6588         (struct with): Change type of limited field to bool.
6589         (append_withs): Change type of limited_access parameter to bool.
6590         (pp_ada_tree_identifie): Likewise.
6591         (dump_ada_decl_nam): Likewise.
6592         (dump_generic_ada_node): Likewise.  Do not print the return type.
6593         (to_ada_name): Change type of space_found parameter to bool.
6594         (dump_ada_function_declaration): Return void and change type of
6595         parameters to bool.  Also print the return type for a function.
6596         (print_ada_methods): Rename into...
6597         (dump_ada_methods): ...this.
6598         (print_ada_declaration): Rename into ...
6599         (dump_ada_declaration): ...this.  Do not print the return type.
6600         (print_ada_struct_decl): Rename into...
6601         (dump_ada_struct_decl): ...this.
6603 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
6605         * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
6606         rather than DECL_INITIAL.
6607         (common_handle_aligned_attribute): Likewise.
6609 2017-09-20  Alexandre Oliva  <aoliva@redhat.com>
6611         * c.opt (gen-decls): Add RejectNegative.
6613 2017-09-15  Andrew Sutton  <andrew.n.sutton@gmail.com>
6614             Jakub Jelinek  <jakub@redhat.com>
6616         Add support for -std=c++2a.
6617         * c-common.h (cxx_dialect): Add cxx2a as a dialect.
6618         * opt.c: Add options for -std=c++2a and -std=gnu++2a.
6619         * c-opts.c (set_std_cxx2a): New.
6620         (c_common_handle_option): Set options when -std=c++2a is enabled.
6621         (c_common_post_options): Adjust comments.
6622         (set_std_cxx14, set_std_cxx17): Likewise.
6624 2017-09-15  Eric Botcazou  <ebotcazou@adacore.com>
6626         * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
6627         message for non-uniform endianness and issue a warning in C++.
6629 2017-09-15  Jakub Jelinek  <jakub@redhat.com>
6631         * c.opt (Wc++1z-compat): Change from option to undocumented alias.
6632         (Wc++17-compat): Change from undocumented alias to option.
6633         (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
6634         change C++1z to C++17 in description.
6635         (std=c++1z, std=gnu++1z): Change from option to undocumented
6636         deprecated alias.
6637         (std=c++17, std=gnu++17): Change from undocumented alias to option.
6638         Adjust description.
6639         * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
6640         * c-opts.c (set_std_cxx1z): Rename to ...
6641         (set_std_cxx17): ... this.
6642         (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
6643         and OPT_std_gnu__1z to OPT_std_gnu__17.  Adjust set_std_cxx1z
6644         caller.
6645         (c_common_post_options): Use cxx17 instead of cxx1z.  Adjust
6646         comments.
6648 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
6650         * c-attribs.c (common_handle_aligned_attribute): Don't warn
6651         function alignment if warn_if_not_aligned_p is true.
6653 2017-09-12  Nathan Sidwell  <nathan@acm.org>
6655         * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
6656         resort_sorted_fields): Move to c/c-decl.c.
6657         * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
6658         (struct sorted_fields_type): Move to c/c-lang.h.
6660 2017-09-09  Jonathan Wakely  <jwakely@redhat.com>
6662         PR c++/81852
6663         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
6665 2017-09-04  Marek Polacek  <polacek@redhat.com>
6667         PR c/81783
6668         * c-warn.c (warn_tautological_bitwise_comparison): New function.
6669         (warn_tautological_cmp): Call it.
6671 2017-09-01  Boris Kolpackov  <boris@codesynthesis.com>
6673         * c-opts.c (c_common_finish): Write dependency information even if
6674         there are errors.
6676 2017-09-01  Jakub Jelinek  <jakub@redhat.com>
6678         PR c/81887
6679         * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
6680         (omp_pragmas_simd): ... here.
6681         * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
6682         create new clauses list containing just simd clause.
6684 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
6685             Alan Hayward  <alan.hayward@arm.com>
6686             David Sherwood  <david.sherwood@arm.com>
6688         * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
6689         into scalar_mode_supported_p call.
6690         (handle_mode_attribute): Update call to scalar_mode_supported_p.
6692 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
6693             Alan Hayward  <alan.hayward@arm.com>
6694             David Sherwood  <david.sherwood@arm.com>
6696         * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
6697         for the mode iterator.
6699 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
6700             Alan Hayward  <alan.hayward@arm.com>
6701             David Sherwood  <david.sherwood@arm.com>
6703         * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
6704         * c-common.c (c_build_vec_perm_expr): Likewise.
6706 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
6707             Alan Hayward  <alan.hayward@arm.com>
6708             David Sherwood  <david.sherwood@arm.com>
6710         * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
6712 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
6713             Alan Hayward  <alan.hayward@arm.com>
6714             David Sherwood  <david.sherwood@arm.com>
6716         * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
6717         before calling targetm.addr_space.valid_pointer_mode.
6719 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
6720             Alan Hayward  <alan.hayward@arm.com>
6721             David Sherwood  <david.sherwood@arm.com>
6723         * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
6725 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
6726             Alan Hayward  <alan.hayward@arm.com>
6727             David Sherwood  <david.sherwood@arm.com>
6729         * c-common.c (c_common_fixed_point_type_for_size): Use new mode
6730         iterators.
6731         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
6733 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
6734             Alan Hayward  <alan.hayward@arm.com>
6735             David Sherwood  <david.sherwood@arm.com>
6737         * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
6738         case statements.
6740 2017-08-29  Martin Liska  <mliska@suse.cz>
6742         PR other/39851
6743         * c-common.c (parse_optimize_options): Add argument to function
6744         call.
6745         * c-pragma.c (handle_pragma_diagnostic): Likewise.
6747 2017-08-24  David Malcolm  <dmalcolm@redhat.com>
6749         * c-lex.c (interpret_float): Use token location
6750         when building an EXCESS_PRECISION_EXPR.
6752 2017-08-21  David Malcolm  <dmalcolm@redhat.com>
6754         * c-common.c (check_function_arguments): Add "arglogs" param; pass
6755         it to check_function_format.
6756         * c-common.h (check_function_arguments): Add vec<location_t> *
6757         param.
6758         (check_function_format): Likewise.
6759         * c-format.c (struct format_check_context): Add field "arglocs".
6760         (check_function_format): Add param "arglocs"; pass it to
6761         check_format_info.
6762         (check_format_info): Add param "arglocs"; use it to initialize
6763         new field of format_ctx.
6764         (check_format_arg): Pass format_ctx->arglocs to new param of
6765         check_format_info_main.
6766         (class argument_parser): New field "arglocs".
6767         (argument_parser::argument_parser): Add "arglocs_" param and use
6768         it to initialize new field.
6769         (argument_parser::check_argument_type): Pass new arglocs field to
6770         check_format_types.
6771         (check_format_info_main): Add param "arglocs", and use it when
6772         constructing arg_parser.
6773         (check_format_types): Add param "arglocs"; use it if non-NULL when
6774         !EXPR_HAS_LOCATION (cur_param) to get at location information.
6776 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
6778         PR c/53037
6779         * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
6780         (c_common_attribute_table): Add warn_if_not_aligned.
6781         (handle_aligned_attribute): Renamed to ...
6782         (common_handle_aligned_attribute): Remove argument, name, and add
6783         argument, warn_if_not_aligned.  Handle warn_if_not_aligned.
6784         (handle_aligned_attribute): New.
6785         * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
6787 2017-08-14  Martin Sebor  <msebor@redhat.com>
6789         PR c/81117
6790         * c-attribs.c (c_common_attribute_table): Add nonstring entry.
6791         (handle_nonstring_attribute): New function.
6793 2017-08-14  Martin Sebor  <msebor@redhat.com>
6795         PR c/81117
6796         * c-format.h (T89_G): New macro.
6797         * c-format.c (local_gcall_ptr_node): New variable.
6798         (init_dynamic_diag_info): Initialize it.
6800 2017-08-11  Martin Liska  <mliska@suse.cz>
6802         * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
6803         TARGET_SUPPORTS_ALIASES.
6805 2017-08-10  David Malcolm  <dmalcolm@redhat.com>
6807         * c-common.c (c_parse_error): Add rich_location * param, using it
6808         rather implicitly using input_location.
6809         * c-common.h (c_parse_error): Add rich_location * param.
6811 2017-08-09  Marek Polacek  <polacek@redhat.com>
6813         * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
6814         (c_common_truthvalue_conversion): Likewise.
6815         * c-omp.c (c_finish_omp_atomic): Likewise.
6816         * c-common.h (build_binary_op): Update declaration.
6818 2017-08-08  Martin Liska  <mliska@suse.cz>
6820         * c-ada-spec.c: Include header files.
6821         * c-ubsan.c: Likewise.
6822         * c-warn.c: Likewise.
6824 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
6826         PR c/69389
6827         * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
6829 2017-08-07  Eric Botcazou  <ebotcazou@adacore.com>
6831         * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
6832         (print_ada_methods): Likewise.
6833         (print_ada_declaration): Likewise.
6835 2017-08-07  Martin Liska  <mliska@suse.cz>
6837         * array-notation-common.c: Add new includes.
6838         * c-format.c( handle_format_attribute): Canonicalize a format
6839         function name.
6840         * c-lex.c (c_common_has_attribute): Canonicalize name of an
6841         attribute.
6842         * c-pretty-print.c: Add new include.
6844 2017-08-05  Eric Botcazou  <ebotcazou@adacore.com>
6846         * c-ada-spec.c (has_static_fields): Look only into variables.
6847         (print_constructor): Add TYPE parameter and use it for the name.
6848         (print_destructor): Likewise.
6849         (print_ada_declaration): Adjust to new constructor/destructor names.
6850         Adjust calls to print_constructor and print_destructor.
6851         (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
6852         Look only into variables in the final loop.
6854 2017-08-01  Eric Botcazou  <ebotcazou@adacore.com>
6856         * c-ada-spec.c (has_static_fields): Look only into fields.
6857         (dump_generic_ada_node): Small tweak.
6858         (dump_nested_types): Look only into fields.
6859         (print_ada_declaration): Look only into methods.  Small tweak.
6860         (print_ada_struct_decl): Look only into fields.  Use DECL_VIRTUAL_P.
6862 2017-08-01  Eric Botcazou  <ebotcazou@adacore.com>
6864         * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
6865         (dump_ada_function_declaration): Likewise.
6866         (dump_generic_ada_node): Likewise.
6867         (print_ada_declaration): Add support for const-qualified variables.
6869 2017-07-31  Martin Liska  <mliska@suse.cz>
6871         PR sanitize/81530
6872         * c-ubsan.c (ubsan_maybe_instrument_array_ref):
6873         Guard condition with flag_sanitize_p also with current_function_decl
6874         non-null equality.
6875         (ubsan_maybe_instrument_reference_or_call): Likewise.
6877 2017-07-30  Uros Bizjak  <ubizjak@gmail.com>
6879         * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
6881 2017-07-29  Eric Botcazou  <ebotcazou@adacore.com>
6883         * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
6884         for enumeral types.
6885         (print_ada_declaration): Add missing guard for record types.
6887 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
6889         PR c/45784
6890         * c-omp.c (c_finish_omp_for): If the condition is wrapped in
6891         rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
6892         new COMPOUND_EXPRs around the rhs of the comparison.
6894 2017-07-27  Marek Polacek  <polacek@redhat.com>
6896         PR c/81417
6897         * c-warn.c (warn_for_sign_compare): Tweak the warning message.  Print
6898         the types.
6900 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
6902         * c-attribs.c (c_common_attribute_table): Add noipa attribute.
6903         (handle_noipa_attribute): New function.
6905 2017-07-07  Torsten Duwe  <duwe@suse.de>
6907         * c-attribs.c (c_common_attribute_table): Add entry for
6908         "patchable_function_entry".
6910 2017-07-20  Nathan Sidwell  <nathan@acm.org>
6912         Remove TYPE_METHODS.
6913         * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
6914         dump_ada_template, print_ada_methods,
6915         print_ada_declaration): Member fns are on TYPE_FIELDS.
6917 2017-07-18  Nathan Sidwell  <nathan@acm.org>
6919         * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
6921 2017-07-14  David Malcolm  <dmalcolm@redhat.com>
6923         * c-common.c (try_to_locate_new_include_insertion_point): New
6924         function.
6925         (per_file_includes_t): New typedef.
6926         (added_includes_t): New typedef.
6927         (added_includes): New variable.
6928         (maybe_add_include_fixit): New function.
6929         * c-common.h (maybe_add_include_fixit): New decl.
6931 2017-07-10  Martin Sebor  <msebor@redhat.com>
6933         PR other/81345
6934         * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
6936 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
6938         * c-common.c (selftest::c_family_tests): New.
6939         * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
6940         (selftest::c_family_tests): New decl.
6942 2017-07-04  Marek Polacek  <polacek@redhat.com>
6944         PR c/81231
6945         * c-common.c (sync_resolve_size): Give error for pointers to incomplete
6946         types.
6948 2017-07-04  Marek Polacek  <polacek@redhat.com>
6950         * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
6952 2017-06-28  Martin Liska  <mliska@suse.cz>
6954         PR ipa/81128
6955         * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
6956         to a function declaration.
6958 2017-06-28  Martin Liska  <mliska@suse.cz>
6960         PR driver/79659
6961         * c.opt: Add IntegerRange to various options.
6963 2017-06-26  Marek Polacek  <polacek@redhat.com>
6965         PR c/80116
6966         * c-common.h (warn_for_multistatement_macros): Declare.
6967         * c-warn.c: Include "c-family/c-indentation.h".
6968         (warn_for_multistatement_macros): New function.
6969         * c.opt (Wmultistatement-macros): New option.
6970         * c-indentation.c (guard_tinfo_to_string): No longer static.
6971         Change the parameter type to "enum rid".  Handle RID_SWITCH.
6972         * c-indentation.h (guard_tinfo_to_string): Declare.
6974 2017-06-23  Marc Glisse  <marc.glisse@inria.fr>
6976         * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
6978 2017-06-15  Martin Sebor  <msebor@redhat.com>
6980         PR c++/80560
6981         * c.opt (-Wclass-memaccess): New option.
6983 2017-06-14  Boris Kolpackov  <boris@codesynthesis.com>
6985         * c-opts.c (c_common_finish): Handle '-' special value to -MF.
6987 2017-06-13  Marek Polacek  <polacek@redhat.com>
6989         PR objc/80949
6990         * c-warn.c (do_warn_duplicated_branches): Return if any of the
6991         branches is null.
6993 2017-06-13  Martin Liska  <mliska@suse.cz>
6995         PR sanitize/78204
6996         * c-attribs.c (add_no_sanitize_value): New function.
6997         (handle_no_sanitize_attribute): Likewise.
6998         (handle_no_sanitize_address_attribute): Use the function.
6999         (handle_no_sanitize_thread_attribute): New function.
7000         (handle_no_address_safety_analysis_attribute): Use
7001         add_no_sanitize_value.
7002         (handle_no_sanitize_undefined_attribute): Likewise.
7003         * c-common.h: Declare new functions.
7004         * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
7005         (ubsan_instrument_shift): Likewise.
7006         (ubsan_instrument_bounds): Likewise.
7007         (ubsan_maybe_instrument_array_ref): Likewise.
7008         (ubsan_maybe_instrument_reference_or_call): Likewise.
7010 2017-06-11  Jason Merrill  <jason@redhat.com>
7012         * c-ada-spec.c, c-pragma.c: Use id_equal.
7014 2017-06-04  Marek Polacek  <polacek@redhat.com>
7016         PR c/80919
7017         * c-format.c (matching_type_p): Return false if any of the types
7018         requires structural equality.
7020 2017-06-02  Martin Sebor  <msebor@redhat.com>
7022         PR c/80892
7023         * c-warn.c (conversion_warning): Use -Wconversion for integer
7024         conversion and -Wfloat-conversion for floating one.
7026 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7028         * c.opt (Wsizeof-pointer-div): New warning option.
7030 2017-06-01  Volker Reichelt  <v.reichelt@netcologne.de>
7032         * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
7033         (Wcatch-value=1): Enable by -Wall.
7035 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
7037         * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
7038         format_chars.
7039         * c.opt (fdiagnostics-show-template-tree): New option.
7040         (felide-type): New option.
7042 2017-05-25  Volker Reichelt  <v.reichelt@netcologne.de>
7044         * c.opt (Wcatch-value=): New C++ warning flag.
7046 2017-05-24  Nathan Sidwell  <nathan@acm.org>
7048         * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
7049         const casts to avoid warning.
7051 2017-05-24  Martin Sebor  <msebor@redhat.com>
7053         PR c/80731
7054         * c-common.h (unsafe_conversion_p): Add a function argument.
7055         * c-common.c (unsafe_conversion_p): Same.
7056         Add type names and values to diagnostics.
7057         (scalar_to_vector): Adjust.
7058         * c-warn.c (constant_expression_error): Add a function argument.
7059         Add type names and values to diagnostics.
7060         (conversion_warning): Add a function argument.
7061         Add type names and values to diagnostics.
7062         (warnings_for_convert_and_check): Same.
7064 2017-05-19  Jason Merrill  <jason@redhat.com>
7066         * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
7067         enumerators.
7069 2017-05-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7071         * c-format.c (locus): Move out of function scope,
7072         add GTY attribute.
7074 2017-05-19  Nathan Sidwell  <nathan@acm.org>
7076         * c-opts.c (class_dump_file, class_dump_flags): Delete.
7077         (c_common_parse_file): Remove class dump handling.
7078         (get_dump_info): Likewise.
7080 2017-05-19  Richard Biener  <rguenther@suse.de>
7082         PR c++/80593
7083         * c-warn.c (strict_aliasing_warning): Do not warn for accesses
7084         to alias-set zero memory.
7086 2017-05-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7088         * c-format.c (local_tree_type_node): Add GTY attribute.
7090 2017-05-18  Marek Polacek  <polacek@redhat.com>
7092         * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
7093         (c_common_fixed_point_type_for_size): Likewise.
7094         (c_common_type_for_mode): Likewise.
7095         (shorten_compare): Likewise.
7096         (c_promoting_integer_type_p): Use false/true instead of 0/1.
7097         * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
7099 2017-05-18  Marek Polacek  <polacek@redhat.com>
7101         * c-common.c (self_promoting_args_p): Change the return type to bool.
7102         Use false/true instead of 0/1.
7103         * c-common.h (self_promoting_args_p): Update.
7105 2017-05-17  Marek Polacek  <polacek@redhat.com>
7107         * c-common.c: Use NULL_TREE instead of 0 where appropriate.
7108         * c-warn.c: Likewise.
7110 2017-05-17  Ville Voutilainen  <ville.voutilainen@gmail.com>
7112         Implement new C++ intrinsics __is_assignable and __is_constructible.
7113         * c-common.c (__is_assignable, __is_constructible): New.
7114         * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
7116 2017-05-17  Martin Liska  <mliska@suse.cz>
7118         * c-common.h: Introduce dump_flags_t type and
7119         use it instead of int type.
7120         * c-gimplify.c (c_genericize): Likewise.
7121         * c-opts.c: Likewise.
7123 2017-05-17  Marek Polacek  <polacek@redhat.com>
7125         * c-common.c (c_save_expr): Remove.
7126         (c_common_truthvalue_conversion): Remove a call to c_save_expr.
7127         * c-common.h (c_save_expr): Remove declaration.
7129 2017-05-09  Volker Reichelt  <v.reichelt@netcologne.de>
7131         PR c/35441
7132         * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
7133         MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
7134         (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
7135         (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
7136         RDIV_EXPR.
7137         (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
7139 2017-05-09  Marek Polacek  <polacek@redhat.com>
7141         PR c/80525
7142         * c-warn.c (unwrap_c_maybe_const): New.
7143         (warn_logical_operator): Call it.
7145 2017-05-09  Nathan Sidwell  <nathan@acm.org>
7147         * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
7148         * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
7150 2017-05-08  Martin Sebor  <msebor@redhat.com>
7152         PR translation/80280
7153         * c-format.h (struct format_flag_spec): Add new member.
7154         (T89_T): New macro.
7155         * c-format.c (local_tree_type_node): New global.
7156         (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
7157         (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
7158         (strfmon_flag_specs): Likewise.
7159         (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
7160         with distinct quoting properties.
7161         (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
7162         (flag_chars_t::validate): Add argument and handle bad quoting.
7163         (check_format_info_main): Handle quoting problems.
7164         (init_dynamic_diag_info): Simplify.
7166 2017-05-08  Jason Merrill  <jason@redhat.com>
7168         * c-opts.c (c_common_post_options): Update defaults for
7169         flag_abi_version and flag_abi_compat_version.
7171 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
7173         * c-common.c (c_cpp_error): Replace report_diagnostic
7174         with diagnostic_report_diagnostic.
7176 2017-05-04  Martin Sebor  <msebor@redhat.com>
7178         PR translation/80280
7179         * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
7180         (handle_weakref_attribute): Same.
7182 2017-05-03  Nathan Sidwell  <nathan@acm.org>
7184         Canonicalize canonical type hashing
7185         * c-common.c (complete_array_type): Use type_hash_canon.
7187 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
7189         PR c++/80038
7190         * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
7191         prototype.
7192         (cilk_install_body_pedigree_operations): Likewise.
7193         * cilk.c (cilk_set_spawn_marker): Mark functions that should be
7194         detatched.
7195         (cilk_gimplify_call_params_in_spawned_fn): Remove.
7196         (cilk_install_body_pedigree_operations): Likewise.
7197         (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
7198         unwrapping.
7200 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
7202         PR c++/80534
7203         * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
7204         flag on non-aggregate element types.
7206 2017-04-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7208         * c-common.c (c_type_hasher, type_hash_table): Remove.
7209         (c_common_get_alias_set): Remove unreachable code.
7210         * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
7212 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
7214         * c.opt (Wextra-semi): New C++ warning flag.
7216 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
7218         PR middle-end/80423
7219         * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
7221 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
7223         PR middle-end/79788
7224         PR middle-end/80375
7225         * c-common.c (c_common_type_for_mode): Don't handle
7226         widest_*_literal_type_node here.
7227         c_common_signed_or_unsigned_type): Likewise.
7228         (c_common_nodes_and_builtins): Set widest_*_literal_type_node
7229         to *intTI_type_node or *intDI_type_node depending on whether
7230         TImode is supported by the target or not.
7232 2017-04-10  Martin Liska  <mliska@suse.cz>
7234         PR sanitizer/80350
7235         * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
7236         doing an UBSAN check.
7238 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
7240         * c-warn.c (do_warn_double_promotion): Fix typo in comment.
7242 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
7244         PR c++/79572
7245         * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
7246         tree *.
7247         * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise.  Handle
7248         not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
7249         REFERENCE_TYPE.
7251 2017-03-31  David Malcolm  <dmalcolm@redhat.com>
7253         PR documentation/78732
7254         * c.opt (Wendif-labels): Fix description to refer to
7255         #else rather than #elif.
7257 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
7259         PR libstdc++/80251
7260         * c-common.h (enum rid): Add RID_IS_AGGREGATE.
7261         * c-common.c (c_common_reswords): Add __is_aggregate trait.
7263 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
7265         PR middle-end/80162
7266         * c-common.c (c_common_mark_addressable_vec): Don't set
7267         TREE_ADDRESSABLE on DECL_HARD_REGISTER.
7269 2017-03-21  Martin Sebor  <msebor@redhat.com>
7271         PR c++/79548
7272         * c-common.c (set_underlying_type): Mark type used only when
7273         original del is declared unused.
7275 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
7277         PR translation/79848
7278         * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
7279         "%qs".
7281 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
7283         PR c/79921
7284         * c-indentation.c (warn_for_misleading_indentation): Remove parens
7285         from inform's message, so that xgettext can locate it.
7287 2017-03-09  Marek Polacek  <polacek@redhat.com>
7289         PR c++/79962
7290         PR c++/79984
7291         * c-attribs.c (handle_nonnull_attribute): Save the result of default
7292         conversion to the attribute list.
7294 2017-03-09  Martin Liska  <mliska@suse.cz>
7296         * c-ada-spec.c (macro_length): Increment value instead of a pointer.
7298 2017-03-03  Jason Merrill  <jason@redhat.com>
7300         * c.opt (Wnoexcept-type): New.
7302 2017-03-02  Richard Biener  <rguenther@suse.de>
7304         PR c/79756
7305         * c-common.c (c_common_mark_addressable_vec): Look through
7306         C_MAYBE_CONST_EXPR.
7308 2017-02-28  Martin Liska  <mliska@suse.cz>
7310         * c.opt: Replace space with tabular for options of <number>
7311         type.
7313 2017-02-28  Martin Liska  <mliska@suse.cz>
7315         * c.opt: Fix --help=option -Q for options which are of
7316         an enum type.
7318 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
7320         PR c++/79588
7321         * c-common.c (check_function_restrict): New function.
7322         (check_function_arguments): Add FNDECL argument.  Call
7323         check_function_restrict if -Wrestrict.
7324         * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
7325         and NARGS.  Use auto_vec for ARG_POSITIONS, simplify.
7326         * c-common.h (check_function_arguments): Add FNDECL argument.
7327         (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
7329 2017-02-24  Eric Botcazou  <ebotcazou@adacore.com>
7331         * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
7332         treatment of parameters with pointer-to-tagged type and tidy up.
7333         (print_ada_methods): Remove the special treatment of C++ static member
7334         functions.
7336 2017-02-22  Martin Liska  <mliska@suse.cz>
7338         * c.opt: Replace inequality signs with square brackets
7339         for -Wnornalized.
7341 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
7343         PR c++/79641
7344         * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
7345         preserve quals.
7347 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
7349         * c-cppbuiltin.c (builtin_define_float_constants): Define
7350         __DECIMAL_DIG__ to the value for long double.
7352 2017-02-15  Marek Polacek  <polacek@redhat.com>
7354         PR c/79515
7355         * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
7356         conversion has occured.
7358 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
7360         * c-common.c (c_common_reswords): Add "__RTL".
7361         * c-common.h (enum rid): Add RID_RTL.
7363 2017-01-20  Marek Polacek  <polacek@redhat.com>
7365         PR c/64279
7366         * c-common.h (do_warn_duplicated_branches_r): Declare.
7367         * c-gimplify.c (c_genericize): Walk the function tree calling
7368         do_warn_duplicated_branches_r.
7369         * c-warn.c (expr_from_macro_expansion_r): New.
7370         (do_warn_duplicated_branches): New.
7371         (do_warn_duplicated_branches_r): New.
7372         * c.opt (Wduplicated-branches): New option.
7374 2017-01-17  David Malcolm  <dmalcolm@redhat.com>
7376         PR c++/71497
7377         * c-indentation.c (warn_for_misleading_indentation): Use the past
7378         subjunctive in the note.
7380 2017-01-17  Aldy Hernandez  <aldyh@redhat.com>
7382         PR c/79116
7383         * array-notation-common.c (cilkplus_extract_an_triplets): Convert
7384         start type to integer_type.
7386 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
7388         PR driver/49726
7389         * c.opt (gen-decls): Add Driver flag.
7391 2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
7393         Revert:
7394         2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
7396         PR c++/71737
7397         * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
7399 2017-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
7401         PR c++/71737
7402         * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
7404 2017-01-12  Martin Sebor  <msebor@redhat.com>
7406         (-Wformat-overflow): ...to this.
7408 2017-01-11  Martin Sebor  <msebor@redhat.com>
7410         PR c/78768
7411         * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
7412         Also enable for LTO.
7414 2017-01-10  Jason Merrill  <jason@redhat.com>
7416         Implement P0195R2, C++17 variadic using.
7417         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
7419 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
7421         PR translation/79019
7422         PR translation/79020
7423         * c.opt (Wnormalized=): Fix typo in description.
7425 2017-01-08  Martin Sebor  <msebor@redhat.com>
7427         PR middle-end/77708
7428         * c.opt (-Wformat-truncation): New option.
7430 2017-01-06  Alexandre Oliva  <aoliva@redhat.com>
7432         * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
7433         value to unsigned short to fit in 4 hex digits without
7434         warnings.
7436 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
7438         * c.opt (fsso-struct): Add 'native' value.
7440 2017-01-05  Martin Liska  <mliska@suse.cz>
7442         PR pch/78970
7443         * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
7444         header.
7446 2017-01-04  Marek Polacek  <polacek@redhat.com>
7448         PR c++/64767
7449         * c.opt (Wpointer-compare): New option.
7451 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
7453         PR driver/78957
7454         * c.opt (fsso-struct=): Add RejectNegative.
7456 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
7458         Update copyright years.
7460 2016-12-29  Martin Liska  <mliska@suse.cz>
7462         PR c/78933
7463         * c.opt (strong-eval-order): Add RejectNegative keyword.
7465 2016-12-22  Jason Merrill  <jason@redhat.com>
7467         Implement P0522R0, matching of template template arguments.
7468         * c-cppbuiltin.c (c_cpp_builtins): Define
7469         __cpp_template_template_args.
7471 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
7473         PR bootstrap/78817
7474         * c-common.c (struct nonnull_arg_ctx): New type.
7475         (check_function_nonnull): Return bool instead of void.  Use
7476         nonnull_arg_ctx as context rather than just location_t.
7477         (check_nonnull_arg): Adjust for the new context type, set
7478         warned_p to true if a warning has been diagnosed.
7479         (check_function_arguments): Return bool instead of void.
7480         * c-common.h (check_function_arguments): Adjust prototype.
7482 2016-12-21  Jason Merrill  <jason@redhat.com>
7484         * c.opt (-fnew-ttp-matching): New flag.
7485         * c-opts.c (c_common_post_options): Default on if -std=c++1z.
7487 2016-12-14  Martin Jambor  <mjambor@suse.cz>
7489         * c-omp.c: Include omp-general.h instead of omp-low.h.
7490         (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
7491         name.
7493 2016-12-14  Martin Sebor  <msebor@redhat.com>
7495         PR c/17308
7496         * c-common.c (check_nonnull_arg): Disable when optimization
7497         is enabled.
7499 2016-12-12  Marek Polacek  <polacek@redhat.com>
7501         PR c++/78647
7502         * c-common.c (attribute_fallthrough_p): Return false for
7503         error_mark_node.
7505 2016-12-08  Martin Sebor  <msebor@redhat.com>
7507         PR c/78284
7508         * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
7510 2016-12-08  Martin Sebor  <msebor@redhat.com>
7512         PR c/78165
7513         * c-pretty-print (pp_c_integer_constant): Avoid formatting type
7514         suffix.
7516 2016-12-07  Martin Sebor  <msebor@redhat.com>
7518         PR c/53562
7519         PR middle-end/77784
7520         PR middle-end/78149
7521         PR middle-end/78138
7522         * c.opt (-Wstringop-overflow): New option.
7524 2016-12-02  Maxim Ostapenko  <m.ostapenko@samsung.com>
7526         * c-attribs.c (asan odr indicator): New attribute.
7527         (handle_asan_odr_indicator_attribute): New function.
7529 2016-11-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7531         * c-common.c (c_common_nodes_and_builtins): Remove initialization of
7532         ptrdiff_type_node;
7534 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
7536         * c-common.c (excess_precision_mode_join): New.
7537         (c_ts18661_flt_eval_method): New.
7538         (c_c11_flt_eval_method): Likewise.
7539         (c_flt_eval_method): Likewise.
7540         * c-common.h (excess_precision_mode_join): New.
7541         (c_flt_eval_method): Likewise.
7542         * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
7543         (cpp_iec_559_value): Call it.
7544         (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
7545         call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
7546         __FLT_EVAL_METHOD_TS_18661_3__.
7548 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
7550         * c-opts.c (c_common_post_options): Add logic to handle the default
7551         case for -fpermitted-flt-eval-methods.
7553 2016-11-23  Paolo Bonzini  <bonzini@gnu.org>
7555         * c.opt (Wexpansion-to-defined): New.
7557 2016-11-23  Jakub Jelinek  <jakub@redhat.com>
7559         PR target/78451
7560         * c-pragma.c (handle_pragma_target): Don't replace
7561         current_target_pragma, but chainon the new args to the current one.
7563 2016-11-22  Nathan Sidwell  <nathan@acm.org>
7565         * array-notation-common.c (cilkplus_extract_an_trplets): Fix
7566         indentation and formatting.
7568 2016-11-21  Martin Sebor  <msebor@redhat.com>
7570         * c.opt (-fprintf-return-value): Enable by default.
7572 2016-11-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7574         PR c++/71973
7575         * c.opt (-Wbuiltin-declaration-mismatch): New warning.
7576         * c-common.c (c_common_nodes_and_builtins): Initialize
7577         const_tm_ptr_type_node.
7579 2016-11-16  Marek Polacek  <polacek@redhat.com>
7581         PR c/78285
7582         * c-common.c (c_add_case_label): Turn error_at calls into inform.
7584 2016-11-14  Jakub Jelinek  <jakub@redhat.com>
7586         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
7588 2016-11-14  Prasad Ghangal  <prasad.ghangal@gmail.com>
7589             Richard Biener  <rguenther@suse.de>
7591         * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
7592         * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
7593         * c.opt (fgimple): New option.
7595 2016-11-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7597         PR c/35503
7598         * c-common.h (warn_for_restrict): Declare.
7599         * c-warn.c: Include gcc-rich-location.h.
7600         (warn_for_restrict): New function.
7601         * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
7602         (gcc_cdiag_char_table): Likewise.
7603         (gcc_cxxdiag_char_table): Likewise.
7604         * c.opt (Wrestrict): New option.
7606 2016-11-13  Eric Botcazou  <ebotcazou@adacore.com>
7608         * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
7609         for nested types only if the type is a record or union and dump SLOC.
7611 2016-11-09  Jason Merrill  <jason@redhat.com>
7613         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
7615 2016-11-09  Jakub Jelinek  <jakub@redhat.com>
7617         * c-ubsan.c (ubsan_instrument_shift): Handle split
7618         -fsanitize=shift-base and -fsanitize=shift-exponent.
7620 2016-11-07  Jason Merrill  <jason@redhat.com>
7622         * c.opt (Wc++1z-compat): New.
7623         * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
7625 2016-11-07  Martin Liska  <mliska@suse.cz>
7627         * c-warn.c (warn_for_unused_label): Save all labels used
7628         in goto or in &label.
7630 2016-11-03  Jason Merrill  <jason@redhat.com>
7632         * c-cppbuiltin.c (c_cpp_builtins): Correct
7633         __cpp_inheriting_constructors.
7635 2016-11-01  Jason Merrill  <jason@redhat.com>
7637         * c-cppbuiltin.c (c_cpp_builtins): Update
7638         __cpp_inheriting_constructors.
7640         * c.opt (-fnew-inheriting-ctors): New.
7641         * c-opts.c: Default to on for ABI 11+.
7643 2016-10-31  Jakub Jelinek  <jakub@redhat.com>
7645         PR c++/77948
7646         * c.opt (fext-numeric-literals): Add Var and Init.
7647         * c-opts.c (c_common_handle_option): Don't clear
7648         cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
7649         (c_common_post_options): Clear it here if not set
7650         explicitly.
7652 2016-10-28  Aldy Hernandez  <aldyh@redhat.com>
7654         PR debug/77773
7655         * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
7656         if NULL.
7658 2016-10-25  Jakub Jelinek  <jakub@redhat.com>
7660         * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
7661         * c-common.c (c_common_reswords): Add __builtin_launder.
7663 2016-10-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7665         * c-common.c (c_common_truthvalue_conversion): Warn for
7666         multiplications in boolean context.  Fix the quoting of '<<' and '<'
7667         in the shift warning.
7669 2016-10-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7671         * c-common.c (c_common_truthvalue_conversion): Fix the comment.
7673 2016-10-20  Jason Merrill  <jason@redhat.com>
7675         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
7677 2016-10-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7679         * c-common.c (c_common_truthvalue_conversion): Warn only for signed
7680         integer shift ops in boolean context.
7682 2016-10-18  Aldy Hernandez  <aldyh@redhat.com>
7684         * c.opt (Walloca): New.
7685         (Walloca-larger-than=): New.
7686         (Wvla-larger-than=): New.
7688 2016-10-17  Marek Polacek  <polacek@redhat.com>
7690         * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
7691         Return immediately when finding a match.
7692         (warn_tautological_cmp): Remove a boolean variable that is no longer
7693         needed.
7695 2016-10-17  Marek Polacek  <polacek@redhat.com>
7697         * c-attribs.c: New file.
7698         * c-common.c: Move attributes handling to c-attribs.c.
7699         (get_nonnull_operand): No longer static.
7700         * c-common.h: Move the declarations from c-attribs.c to its own section.
7702 2016-10-14  Jason Merrill  <jason@redhat.com>
7704         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
7705         and __cpp_deduction_guides.
7707 2016-10-13  Jason Merrill  <jason@redhat.com>
7709         * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
7711 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7713         * c-cppbuiltin.c: Include memmodel.h.
7714         * c-opts.c: Likewise.
7715         * c-pragma.c: Likewise.
7716         * c-warn.c: Likewise.
7718 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
7720         * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
7721         (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
7722         * c-opts.c (sanitize_cpp_opts): Initialize
7723         cpp_opts->cpp_warn_implicit_fallthrough.
7725 2016-10-11  Marek Polacek  <polacek@redhat.com>
7727         * c-common.c (warning_candidate_p): Change the return type to bool
7728         and return true/false instead of 1/0.
7729         (vector_mode_valid_p): Likewise.
7731 2016-10-11  Marek Polacek  <polacek@redhat.com>
7733         * c-common.c (fold_for_warn): No longer static.
7734         (bool_promoted_to_int_p): Likewise.
7735         (c_common_get_narrower): Likewise.
7736         (constant_expression_warning): Move to c-warn.c.
7737         (constant_expression_error): Likewise.
7738         (overflow_warning): Likewise.
7739         (warn_logical_operator): Likewise.
7740         (find_array_ref_with_const_idx_r): Likewise.
7741         (warn_tautological_cmp): Likewise.
7742         (expr_has_boolean_operands_p): Likewise.
7743         (warn_logical_not_parentheses): Likewise.
7744         (warn_if_unused_value): Likewise.
7745         (strict_aliasing_warning): Likewise.
7746         (sizeof_pointer_memaccess_warning): Likewise.
7747         (check_main_parameter_types): Likewise.
7748         (conversion_warning): Likewise.
7749         (warnings_for_convert_and_check): Likewise.
7750         (match_case_to_enum_1): Likewise.
7751         (match_case_to_enum): Likewise.
7752         (c_do_switch_warnings): Likewise.
7753         (warn_for_omitted_condop): Likewise.
7754         (readonly_error): Likewise.
7755         (lvalue_error): Likewise.
7756         (invalid_indirection_error): Likewise.
7757         (warn_array_subscript_with_type_char): Likewise.
7758         (warn_about_parentheses): Likewise.
7759         (warn_for_unused_label): Likewise.
7760         (warn_for_div_by_zero): Likewise.
7761         (warn_for_memset): Likewise.
7762         (warn_for_sign_compare): Likewise.
7763         (do_warn_double_promotion): Likewise.
7764         (do_warn_unused_parameter): Likewise.
7765         (record_locally_defined_typedef): Likewise.
7766         (maybe_record_typedef_use): Likewise.
7767         (maybe_warn_unused_local_typedefs): Likewise.
7768         (maybe_warn_bool_compare): Likewise.
7769         (maybe_warn_shift_overflow): Likewise.
7770         (warn_duplicated_cond_add_or_warn): Likewise.
7771         (diagnose_mismatched_attributes): Likewise.
7772         * c-common.h: Move the declarations from c-warn.c to its own section.
7773         * c-warn.c: New file.
7775 2016-10-08  Jason Merrill  <jason@redhat.com>
7777         * c-common.c (c_common_truthvalue_conversion): Don't distribute
7778         into COND_EXPR in C++.
7780 2016-10-08  Jakub Jelinek  <jakub@redhat.com>
7782         * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
7783         token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
7784         CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
7786 2016-10-07  Jakub Jelinek  <jakub@redhat.com>
7788         Implement LWG2296 helper intrinsic
7789         * c-common.h (enum rid): Add RID_ADDRESSOF.
7790         * c-common.c (c_common_reswords): Add __builtin_addressof.
7792 2016-10-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7794         PR c++/77700
7795         * c-common.c (c_common_truthvalue_conversion): Warn also for
7796         suspicious enum values in boolean context.
7798 2016-10-06  Jakub Jelinek  <jakub@redhat.com>
7800         Implement P0258R2 - helper for C++17
7801         std::has_unique_object_representations trait
7802         * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
7803         * c-common.c (c_common_reswords): Add
7804         __has_unique_object_representations.
7806 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
7808         PR sanitizer/66343
7809         * c-ubsan.c (ubsan_instrument_return): Don't call
7810         initialize_sanitizer_builtins here.
7812 2016-10-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7814         * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
7815         conditional expression in boolean context when only one arm is
7816         non-boolean.
7818 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
7820         PR sanitizer/77823
7821         * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
7822         is not integral.
7824         * c-common.c (c_common_reswords): Update comment for C++11.
7826 2016-10-04  Jason Merrill  <jason@redhat.com>
7828         * c-common.c (make_tree_vector_from_ctor): New.
7829         * c-common.h: Declare it.
7831 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
7833         * c-cppbuiltin.c (c_cpp_builtins): Don't define
7834         __LIBGCC_JCR_SECTION_NAME__.
7836 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7838         * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
7839         left shift in boolean context.
7841 2016-09-29  Jakub Jelinek  <jakub@redhat.com>
7843         Implement P0001R1 - C++17 removal of register storage class specifier
7844         * c.opt (Wregister): New warning.
7845         * c-opts.c (c_common_post_options): Enable -Wregister by
7846         default for C++17.
7848 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
7850         * c-opts.c (c_common_post_options): Remove special case for
7851         TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
7852         in C++.
7854 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
7856         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
7857         -std=c++1z.
7859         * c-ada-spec.c (print_ada_declaration): Remove break after return.
7861 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7863         * c-common.c: Include memmodel.h.
7865 2016-09-26  Marek Polacek  <polacek@redhat.com>
7867         * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
7869 2016-09-26  Marek Polacek  <polacek@redhat.com>
7871         PR c/7652
7872         * c-common.c (c_common_attribute_table): Add fallthrough attribute.
7873         (handle_fallthrough_attribute): New function.
7874         (attribute_fallthrough_p): New function.
7875         * c-common.h (attribute_fallthrough_p): Declare.
7877 2016-09-24  Marek Polacek  <polacek@redhat.com>
7879         PR c/77490
7880         * c.opt (Wbool-operation): New.
7882 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7884         * c-common.c (c_common_truthvalue_conversion): Inhibit
7885         Wint-in-bool-context warning with from_macro_definition_at.
7886         Mention the expression will always evaluate to true.
7888 2016-09-21  Martin Sebor  <msebor@redhat.com>
7890         PR bootstrap/77676
7891         * c.opt (fprintf-return-value): Temporarily initialize to zero
7892         to unblock bootstrap failures.
7894 2016-09-21  Jakub Jelinek  <jakub@redhat.com>
7896         PR c++/77651
7897         * c.opt (Waligned-new=): Add RejectNegative.
7898         (faligned-new=): Likewise.  Spelling fix - change
7899         aligned_new_threshhold to aligned_new_threshold.
7900         * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
7901         to aligned_new_threshold.
7903 2016-09-20  Martin Sebor  <msebor@redhat.com>
7905         PR middle-end/49905
7906         * c.opt: Add -Wformat-length and -fprintf-return-value.
7908 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7910         PR c++/77434
7911         * c.opt (Wint-in-bool-context): New warning.
7912         * c-common.c (c_common_truthvalue_conversion): Warn on integer
7913         constants in boolean context.
7915 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
7917         * c-common.c (max_align_t_align): Also consider alignment of
7918         float128_type_node.
7920 2016-09-15  Jason Merrill  <jason@redhat.com>
7922         * c-common.c (check_cxx_fundamental_alignment_constraints): Check
7923         DECL_EXTERNAL.
7925 2016-09-14  Jason Merrill  <jason@redhat.com>
7927         * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
7928         limit FIELD_DECL, either.
7930 2016-09-14  Marek Polacek  <polacek@redhat.com>
7932         * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
7933         * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
7934         * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
7936 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
7938         * c-common.c (warn_logical_not_parentheses): Replace
7939         rich_location::add_fixit_insert calls with add_fixit_insert_before
7940         and add_fixit_insert_after, eliminating the "next_loc" calculation.
7942 2016-09-13  Jason Merrill  <jason@redhat.com>
7943             Tom de Vries  <tom@codesourcery.com>
7945         PR c++/77427
7946         * c-common.c (set_underlying_type): Don't treat array as builtin type.
7948 2016-09-13  Jason Merrill  <jason@redhat.com>
7950         * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
7951         limit types at all.
7953 2016-09-12  Jason Merrill  <jason@redhat.com>
7955         * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
7956         bit/byte confusion, allow large alignment for types.
7958 2016-09-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7960         PR c++/77496
7961         * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
7963 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
7965         PR c/72858
7966         * c-format.c (argument_parser::check_argument_type): Add params
7967         "type_start" and "conversion_char".  Use the former to generate
7968         offset_to_type_start and pass it and conversion_char to
7969         check_format_types.
7970         (check_format_info_main): Capture the start of the type
7971         information as "type_start", and pass it an format_char
7972         to arg_parser.check_argument_type.
7973         (check_format_types): Provide an example in the leading comment.
7974         Add params "offset_to_type_start" and "conversion_char"; pass
7975         them to format_type_warning calls.
7976         (test_get_modifier_for_format_len): Likewise.
7977         (matching_type_p): New function.
7978         (get_format_for_type): Add param "conversion_char" and move
7979         implementation into...
7980         (get_format_for_type_1): ...new function, called twice.
7981         Use new function matching_type_p rather than checking for
7982         TYPE_CANONICAL equality.
7983         (get_corrected_substring): New function.
7984         (format_type_warning): Provide an example in the leading comment.
7985         Add params "offset_to_type_start" and "conversion_char".  Replace
7986         call to get_format_for_type with call to get_corrected_substring
7987         and move rejection of hints for widths/precisions there.
7988         (assert_format_for_type_streq): Add param "conversion_char".
7989         (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
7990         (test_get_format_for_type_printf): Add conversion chars to the
7991         tests, adding coverage for various combinations of integer
7992         vs double conversions, and for preserving octal and hexadecimal
7993         conversions.
7994         (test_get_format_for_type_scanf): Add conversion chars to the
7995         tests.
7997 2016-09-10  Tom de Vries  <tom@codesourcery.com>
7999         PR C/71602
8000         * c-common.c (build_va_arg): Handle more strict
8001         targetm.canonical_va_list_type.  Replace first argument type error with
8002         assert.
8004 2016-09-09  Martin Sebor  <msebor@redhat.com>
8006         PR c/77520
8007         PR c/77521
8008         * c-format.c (argument_parser::find_format_char_info): Use %qc
8009         format directive unconditionally.
8011 2016-09-09  Jason Merrill  <jason@redhat.com>
8013         Implement C++17 new of over-aligned types.
8014         * c.opt: Add -faligned-new and -Waligned-new.
8015         * c-common.c (max_align_t_align): Split out from...
8016         (cxx_fundamental_alignment_p): ...here.
8017         * c-common.h: Declare it.
8018         * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
8020 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
8022         * c-cppbuiltin.c (builtin_define_type_width): New function.
8023         (builtin_define_stdint_macros, c_cpp_builtins): Define type width
8024         macros.
8026 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
8028         * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
8029         a POINTER_TYPE.
8030         (substring_loc::get_location): Move to substring-locations.c,
8031         keeping implementation as...
8032         (c_get_substring_location): New function, from the above, reworked
8033         to use accessors rather than member lookup.
8034         * c-common.h (class substring_loc): Move to substring-locations.h,
8035         replacing with a forward decl.
8036         (c_get_substring_location): New decl.
8037         * c-format.c: Include "substring-locations.h".
8038         (format_warning_va): Move to substring-locations.c.
8039         (format_warning_at_substring): Likewise.
8041 2016-09-06  Martin Sebor  <msebor@redhat.com>
8043         PR c/77336
8044         * c-format.c (check_function_format): Avoid issuing warnings for
8045         functions unless they call format functions with non-constant
8046         format strings.
8048 2016-09-06  Richard Biener  <rguenther@suse.de>
8050         PR c/77450
8051         * c-common.c (c_common_mark_addressable_vec): Handle
8052         COMPOUND_LITERAL_EXPR.
8054 2016-09-05  Marek Polacek  <polacek@redhat.com>
8056         PR c/77423
8057         * c-common.c (bool_promoted_to_int_p): New function.
8058         (expr_has_boolean_operands_p): New function.
8059         (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
8060         (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
8062 2016-09-04  Tom de Vries  <tom@codesourcery.com>
8064         revert:
8065         2016-08-29  Tom de Vries  <tom@codesourcery.com>
8067         * c-common.c (build_va_arg): Replace first argument type error
8068         with assert.
8070 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
8072         PR c/65467
8073         * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
8074         (c_finish_omp_for): Reject _Atomic qualified iterators.
8076 2016-09-01  Martin Sebor  <msebor@redhat.com>
8078         * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
8079         size to guarantee it fits the output of the formatted function
8080         regardless of its arguments.
8082 2016-09-01  Marek Polacek  <polacek@redhat.com>
8084         PR c/7652
8085         * c-common.c (resolve_overloaded_builtin): Fix formatting.  Add
8086         FALLTHRU comments.
8088 2016-08-29  Marek Polacek  <polacek@redhat.com>
8090         PR c/77292
8091         * c-common.c (warn_logical_not_parentheses): Don't warn for
8092         a comparison or a logical operator.
8094 2016-08-29  Tom de Vries  <tom@codesourcery.com>
8096         * c-common.c (build_va_arg): Fix type comparison assert.
8098 2016-08-29  Tom de Vries  <tom@codesourcery.com>
8100         * c-common.c (build_va_arg): Replace first argument type error
8101         with assert.
8103 2016-08-29  Tom de Vries  <tom@codesourcery.com>
8105         PR c/77398
8106         * c-common.c (build_va_arg): Add first argument error.  Build va_arg
8107         with error_mark_node as va_list instead of with illegal va_list.
8109 2016-08-25  Marek Polacek  <polacek@redhat.com>
8110             David Malcolm  <dmalcolm@redhat.com>
8112         * c-common.c (warn_logical_not_parentheses): Print fixit hints.
8113         * c-common.h (warn_logical_not_parentheses): Update declaration.
8115 2016-08-22  Marek Polacek  <polacek@redhat.com>
8117         PR c++/77321
8118         * c-common.c (warn_for_memset): Check type for null.
8120 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
8122         * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
8123         _FloatNx types for suffixes for built-in functions.
8125 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
8127         PR c/32187
8128         * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
8129         (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
8130         (RID_FLOAT128X): New enum rid values.
8131         (CASE_RID_FLOATN_NX): New macro.
8132         * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
8133         keywords.
8134         (c_common_type_for_mode): Check for _FloatN and _FloatNx and
8135         corresponding complex types.
8136         (c_common_nodes_and_builtins): For non-C++, register _FloatN and
8137         _FloatNx and corresponding complex types.
8138         (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
8139         * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
8140         and _FloatNx types for the widest type for determining
8141         DECIMAL_DIG.  Define __LDBL_DECIMAL_DIG__ as well as
8142         __DECIMAL_DIG__ for long double.  Handle FMA_SUFFIX being NULL.
8143         (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
8144         and _FloatNx types.
8145         * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
8146         constants.
8147         * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
8148         _FloatNx types.
8150 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
8152         * c-opts.c (c_diagnostic_finalizer): Update for change to
8153         diagnostic_show_locus.
8155 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
8157         * c-common.c: Include "spellcheck.h".
8158         (cb_get_suggestion): New function.
8159         * c-common.h (cb_get_suggestion): New decl.
8160         * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
8161         cb_get_suggestion.
8163 2016-08-18  Marek Polacek  <polacek@redhat.com>
8165         PR c/71514
8166         * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
8167         and pointer-to-VLA.
8169 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
8171         PR c/72857
8172         * c-common.c (substring_loc::get_range): Rename to...
8173         (substring_loc::get_location): ...this, converting param from a
8174         source_range * to a location_t *.  Call
8175         get_source_location_for_substring rather than
8176         get_source_range_for_substring, and pass in m_caret_idx.
8177         * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
8178         (substring_loc::get_range): Replace with...
8179         (substring_loc::get_location): ...this.
8180         (substring_loc::set_caret_index): New method.
8181         (substring_loc): Add field m_caret_idx.
8182         * c-format.c (format_warning_va): Update for above changes.
8183         Rename local "substring_loc" to "fmt_substring_loc" to avoid
8184         clashing with type name.
8185         (format_warning_at_char): Add caret_idx param to substring_loc ctor.
8186         (check_argument_type): Likewise.
8187         (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
8188         Use a copy when emitting warnings, setting the caret index from TYPE.
8190 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
8191             Arnaud Charlet  <charlet@adacore.com>
8193         * c-ada-spec.c (dump_number): New function.
8194         (handle_escape_character): Likewise.
8195         (print_ada_macros): Add handling of constant integers and strings.
8197 2016-08-12  Marek Polacek  <polacek@redhat.com>
8199         PR c/7652
8200         * c-common.c (scalar_to_vector): Adjust fall through comment.
8201         * c-opts.c (c_common_handle_option): Likewise.
8202         * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
8203         * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
8204         fall through comment.
8205         * cilk.c (extract_free_variables): Add FALLTHRU.
8207 2016-08-10  Jason Merrill  <jason@redhat.com>
8209         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
8211 2016-08-09  Jason Merrill  <jason@redhat.com>
8213         * c-common.c (c_common_attribute_table): vector_size affects type
8214         identity.
8216 2016-08-09  Marek Polacek  <polacek@redhat.com>
8218         PR c/7652
8219         * c-ada-spec.c (dump_generic_ada_node): Add return.
8221 2016-08-09  Jason Merrill  <jason@redhat.com>
8223         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
8224         C++17 constexpr lambdas.
8226 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
8228         PR c/64955
8229         * c-common.h (selftest::c_format_c_tests): New declaration.
8230         (selftest::run_c_tests): New declaration.
8231         * c-format.c: Include "selftest.h.
8232         (format_warning_va): Add param "corrected_substring" and use
8233         it to add a replacement fix-it hint.
8234         (format_warning_at_substring): Likewise.
8235         (format_warning_at_char): Update for new param of
8236         format_warning_va.
8237         (argument_parser::check_argument_type): Pass "fki" to
8238         check_format_types.
8239         (check_format_types): Add param "fki" and pass it to
8240         format_type_warning.
8241         (deref_n_times): New function.
8242         (get_modifier_for_format_len): New function.
8243         (selftest::test_get_modifier_for_format_len): New function.
8244         (get_format_for_type): New function.
8245         (format_type_warning): Add param "fki" and use it to attempt
8246         to provide hints for argument types when calling
8247         format_warning_at_substring.
8248         (selftest::get_info): New function.
8249         (selftest::assert_format_for_type_streq): New function.
8250         (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
8251         (selftest::test_get_format_for_type_printf): New function.
8252         (selftest::test_get_format_for_type_scanf): New function.
8253         (selftest::c_format_c_tests): New function.
8255 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
8257         PR c/52952
8258         * c-format.c: Include "diagnostic.h".
8259         (location_column_from_byte_offset): Delete.
8260         (location_from_offset): Delete.
8261         (format_warning_va): New function.
8262         (format_warning_at_substring): New function.
8263         (format_warning_at_char): New function.
8264         (check_format_arg): Capture location of format_tree and pass to
8265         check_format_info_main.
8266         (argument_parser): Add fields "start_of_this_format" and
8267         "format_string_cst".
8268         (flag_chars_t::validate): Add param "format_string_cst".  Convert
8269         warning_at call using location_from_offset to call to
8270         format_warning_at_char.
8271         (argument_parser::argument_parser): Add param "format_string_cst_"
8272         and use use it to initialize field "format_string_cst".
8273         Initialize new field "start_of_this_format".
8274         (argument_parser::read_format_flags): Convert warning_at call
8275         using location_from_offset to a call to format_warning_at_char.
8276         (argument_parser::read_any_format_left_precision): Likewise.
8277         (argument_parser::read_any_format_precision): Likewise.
8278         (argument_parser::read_any_other_modifier): Likewise.
8279         (argument_parser::find_format_char_info): Likewise, in three places.
8280         (argument_parser::parse_any_scan_set): Likewise, in one place.
8281         (argument_parser::handle_conversions): Likewise, in two places.
8282         (argument_parser::check_argument_type): Add param "fmt_param_loc"
8283         and use it to make a substring_loc.  Pass the latter to
8284         check_format_types.
8285         (check_format_info_main): Add params "fmt_param_loc" and
8286         "format_string_cst".  Convert warning_at calls using
8287         location_from_offset to calls to format_warning_at_char.  Pass the
8288         new params to the arg_parser ctor.  Pass "format_string_cst" to
8289         flag_chars.validate.  Pass "fmt_param_loc" to
8290         arg_parser.check_argument_type.
8291         (check_format_types): Convert first param from a location_t
8292         to a const substring_loc & and rename to "fmt_loc".  Attempt
8293         to extract the range of the relevant parameter and pass it
8294         to format_type_warning.
8295         (format_type_warning): Convert first param from a location_t
8296         to a const substring_loc & and rename to "fmt_loc".  Add
8297         params "param_range" and "type".  Replace calls to warning_at
8298         with calls to format_warning_at_substring.
8300 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
8302         * c-format.c (class flag_chars_t): New class.
8303         (struct length_modifier): New struct.
8304         (class argument_parser): New class.
8305         (flag_chars_t::flag_chars_t): New ctor.
8306         (flag_chars_t::has_char_p): New method.
8307         (flag_chars_t::add_char): New method.
8308         (flag_chars_t::validate): New method.
8309         (flag_chars_t::get_alloc_flag): New method.
8310         (flag_chars_t::assignment_suppression_p): New method.
8311         (argument_parser::argument_parser): New ctor.
8312         (argument_parser::read_any_dollar): New method.
8313         (argument_parser::read_format_flags): New method.
8314         (argument_parser::read_any_format_width): New method.
8315         (argument_parser::read_any_format_left_precision): New method.
8316         (argument_parser::read_any_format_precision): New method.
8317         (argument_parser::handle_alloc_chars): New method.
8318         (argument_parser::read_any_length_modifier): New method.
8319         (argument_parser::read_any_other_modifier): New method.
8320         (argument_parser::find_format_char_info): New method.
8321         (argument_parser::validate_flag_pairs): New method.
8322         (argument_parser::give_y2k_warnings): New method.
8323         (argument_parser::parse_any_scan_set): New method.
8324         (argument_parser::handle_conversions): New method.
8325         (argument_parser::check_argument_type): New method.
8326         (check_format_info_main): Introduce classes argument_parser
8327         and flag_chars_t, moving the code within the loop into methods
8328         of these classes.  Make various locals "const".
8330 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
8332         * c-common.c: Include "substring-locations.h".
8333         (get_cpp_ttype_from_string_type): New function.
8334         (g_string_concat_db): New global.
8335         (substring_loc::get_range): New method.
8336         * c-common.h (g_string_concat_db): New declaration.
8337         (class substring_loc): New class.
8338         * c-lex.c (lex_string): When concatenating strings, capture the
8339         locations of all tokens using a new obstack, and record the
8340         concatenation locations within g_string_concat_db.
8341         * c-opts.c (c_common_init_options): Construct g_string_concat_db
8342         on the ggc-heap.
8344 2016-07-29  Marek Polacek  <polacek@redhat.com>
8346         PR c/71926
8347         * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
8348         parentheses warning.
8350         PR c/71574
8351         * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
8353 2016-07-28  Martin Liska  <mliska@suse.cz>
8355         PR gcov-profile/68025
8356         * c-common.c (handle_no_profile_instrument_function_attribute):
8358 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8360         * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
8361         BITS_PER_UNIT_LOG.
8363 2016-07-25  Jason Merrill  <jason@redhat.com>
8365         PR c++/65970
8366         * c.opt (fconstexpr-loop-limit): New.
8368 2016-07-22  Martin Sebor  <msebor@redhat.com>
8370         PR c++/71675
8371         * c-common.c (resolve_overloaded_builtin): Avoid converting
8372         __atomic_compare_exchange_n return type to that of what its
8373         first argument points to.
8375 2016-07-22  Uros Bizjak  <ubizjak@gmail.com>
8377         * c-common.c: Use HOST_WIDE_INT_M1U instead of
8378         ~(unsigned HOST_WIDE_INT) 0.
8380 2016-07-22  Martin Liska  <mliska@suse.cz>
8382         PR gcov-profile/69028
8383         PR gcov-profile/62047
8384         * cilk.c (create_cilk_helper_decl): Set location of a new decl
8385         to the current_function_decl.
8387 2016-07-21  Jason Merrill  <jason@redhat.com>
8389         PR c++/65168
8390         * c-common.c (c_common_truthvalue_conversion): Check
8391         c_inhibit_evaluation_warnings for warning about address of
8392         reference.
8394 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
8396         * c-common.h (lookup_name_fuzzy): Convert return type from tree to
8397         const char *.
8399 2016-07-15  Jason Merrill  <jason@redhat.com>
8401         * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
8403 2016-07-15  Jakub Jelinek  <jakub@redhat.com>
8405         PR c/71858
8406         * c-common.h (enum lookup_name_fuzzy_kind): Add
8407         FUZZY_LOOKUP_FUNCTION_NAME.
8409 2016-07-08  Jason Merrill  <jason@redhat.com>
8411         P0145: Refining Expression Order for C++.
8412         * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
8413         * c-opts.c: Adjust.
8415 2016-07-05  Markus Trippelsdorf  <markus@trippelsdorf.de>
8417         PR c++/71214
8418         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
8420 2016-06-29  Thomas Schwinge  <thomas@codesourcery.com>
8422         * c-pragma.h (enum pragma_kind): Rename
8423         PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE.  Adjust all
8424         users.
8426 2016-06-29  Richard Biener  <rguenther@suse.de>
8428         PR middle-end/71002
8429         * c-common.c (c_common_get_alias_set): Remove union type punning case.
8431 2016-06-24  Jason Merrill  <jason@redhat.com>
8433         P0145R2: Refining Expression Order for C++.
8434         * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
8435         MODIFY_EXPR.
8437 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
8439         * c-common.c (check_builtin_function_arguments): Require last
8440         argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
8441         Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
8442         if the last argument is pointer to enumerated or boolean type.
8444 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
8446         PR c/70339
8447         * c-common.h (enum lookup_name_fuzzy_kind): New enum.
8448         (lookup_name_fuzzy): New prototype.
8450 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
8452         * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
8454 2016-06-14  Jason Merrill  <jason@redhat.com>
8456         P0145R2: Refining Expression Order for C++.
8457         * c.opt (fargs-in-order): New.
8458         * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
8460 2016-06-13  Jakub Jelinek  <jakub@redhat.com>
8462         PR sanitizer/71498
8463         * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
8464         all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
8466         PR preprocessor/71183
8467         * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
8468         to cb_get_source_date_epoch.
8470 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
8472         PR c/68657
8473         * c.opt (Wpsabi): Add Warning flag.
8475 2016-06-10  Martin Sebor  <msebor@redhat.com>
8477         PR c/71392
8478         * c-common.c (handle_nonnull_attribute): Accept
8479         the nonnull attribute in type-generic builtins.
8481 2016-06-09  Martin Sebor  <msebor@redhat.com>
8483         PR c/70883
8484         * c-common.c (builtin_function_validate_nargs): Make text of error
8485         message consistent with others like it.
8487 2016-06-08  Martin Sebor  <msebor@redhat.com>
8488             Jakub Jelinek  <jakub@redhat.com>
8490         PR c++/70507
8491         PR c/68120
8492         * c-common.c (check_builtin_function_arguments): Handle
8493         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
8495 2016-06-08  Richard Biener  <rguenther@suse.de>
8497         * c-common.c (parse_optimize_options): Improve diagnostic messages.
8499 2016-06-07  Richard Biener  <rguenther@suse.de>
8501         PR c/61564
8502         * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
8503         options and warn about others.
8505 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
8507         * c-common.c (get_source_date_epoch): Rename to
8508         cb_get_source_date_epoch.
8509         * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
8510         message when the parsing fails.  Use error_at instead of fatal_error.
8511         * c-common.h (get_source_date_epoch): Rename to
8512         cb_get_source_date_epoch.
8513         * c-common.h (cb_get_source_date_epoch): Prototype.
8514         * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
8515         * c-common.h (c_omp_region_type): Remove trailing comma.
8516         * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
8517         * c-lex.c (c_lex_with_flags): Remove initialization of
8518         pfile->source_date_epoch.
8520 2016-05-30  Jakub Jelinek  <jakub@redhat.com>
8522         PR c++/71349
8523         * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
8524         C_OMP_CLAUSE_SPLIT_TARGET.  Put OMP_CLAUSE_NOWAIT to
8525         C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
8526         instead of C_OMP_CLAUSE_SPLIT_FOR.
8528 2016-05-24  Richard Biener  <rguenther@suse.de>
8530         PR middle-end/70434
8531         PR c/69504
8532         * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
8533         (convert_vector_to_array_for_subscript): ... this.
8534         * c-common.c (convert_vector_to_pointer_for_subscript): Use a
8535         VIEW_CONVERT_EXPR to an array type.  Rename to ...
8536         (convert_vector_to_array_for_subscript): ... this.
8538 2016-05-12  Marek Polacek  <polacek@redhat.com>
8540         PR c/70756
8541         * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
8542         size_in_bytes and pass LOC to it.
8544 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
8546         PR c/43651
8547         * c.opt (Wduplicate-decl-specifier): New option.
8549 2016-05-11  Marek Polacek  <polacek@redhat.com>
8551         PR c++/71024
8552         * c-common.c (diagnose_mismatched_attributes): New function.
8553         * c-common.h (diagnose_mismatched_attributes): Declare.
8555 2016-05-04  Marek Polacek  <polacek@redhat.com>
8557         * c.opt (Wdangling-else): New option.
8559 2016-05-03  Marek Polacek  <polacek@redhat.com>
8561         PR c/70859
8562         * c-common.c (builtin_function_validate_nargs): Add location
8563         parameter.  Use it.
8564         (check_builtin_function_arguments): Add location and arguments
8565         parameters.  Use them.
8566         * c-common.h (check_builtin_function_arguments): Update declaration.
8568 2016-05-03  Richard Biener  <rguenther@suse.de>
8570         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
8571         allow call args to gimplify to SSA names.
8573 2016-05-03  Marek Polacek  <polacek@redhat.com>
8575         * c-common.h (enum c_omp_region_type): Remove stray comma.
8577 2016-05-02  Cesar Philippidis  <cesar@codesourcery.com>
8579         * c-common.h (enum c_omp_region_type): Define.
8581 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
8583         * c-common.c (shorten_compare): Use wi::to_wide.
8585 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
8587         PR middle-end/70626
8588         * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
8589         * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
8590         reduction clauses in acc parallel loops.
8592 2016-04-29  Marek Polacek  <polacek@redhat.com>
8594         PR c/70852
8595         * c-common.c (warn_for_memset): Check domain before accessing it.
8597 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8599         PR/69089
8600         * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
8601         "aligned" attribute.
8603 2016-04-28  Jason Merrill  <jason@redhat.com>
8605         * c-lex.c (c_common_has_attribute): Handle nodiscard.
8607 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
8608             Matthias Klose  <doko@debian.org>
8610         * c-common.c (get_source_date_epoch): New function, gets the environment
8611         variable SOURCE_DATE_EPOCH and parses it as long long with error
8612         handling.
8613         * c-common.h (get_source_date_epoch): Prototype.
8614         * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
8616 2015-04-27  Ryan Burn  <contact@rnburn.com>
8618         PR c++/69024
8619         PR c++/68997
8620         * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
8621         (cilk_recognize_spawn): Renamed from recognize_spawn and change to
8622         external linkage.
8623         (cilk_detect_and_unwrap): Corresponding changes.
8624         (extract_free_variables): Don't extract free variables from
8625         AGGR_INIT_EXPR slot.
8626         * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
8627         (cilk_recognize_spawn): Likewise.
8629 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
8631         * c.opt (Wmemset-elt-size): New option.
8632         * c-common.c (warn_for_memset): New function.
8633         * c-common.h (warn_for_memset): Declare.
8635 2016-04-25  Jason Merrill  <jason@redhat.com>
8637         * c-common.c (handle_unused_attribute): Accept CONST_DECL.
8638         No longer static.
8639         * c-common.h: Declare it.
8640         * c-lex.c (c_common_has_attribute): Add maybe_unused.
8642 2016-04-22  Jason Merrill  <jason@redhat.com>
8644         * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
8646 2016-04-20  Ilya Verbin  <ilya.verbin@intel.com>
8648         PR c++/69363
8649         * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
8650         * c-common.h (c_finish_cilk_clauses): Remove declaration.
8652 2016-04-18  Michael Matz  <matz@suse.de>
8654         * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
8655         and SET_DECL_ALIGN.
8657 2016-04-17  Eric Botcazou  <ebotcazou@adacore.com>
8659         * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
8660         (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
8661         to incomplete types.
8662         (dump_nested_type): Remove redundant tests and tidy up.
8663         (print_ada_declaration): Also set TREE_VISITED on the declaration of
8664         a type which is the typedef of an original type.
8666 2016-04-15  Marek Polacek  <polacek@redhat.com>
8668         PR c/70651
8669         * c-common.c (build_va_arg): Change two asserts into errors and return
8670         error_mark_node.
8672 2016-04-13  Marek Polacek  <polacek@redhat.com>
8674         PR c++/70639
8675         * c-indentation.c (should_warn_for_misleading_indentation): Bail out
8676         for switch statements, too.
8678 2016-03-28  Jason Merrill  <jason@redhat.com>
8680         * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
8682 2016-03-23  Marek Polacek  <polacek@redhat.com>
8684         PR c++/69884
8685         * c.opt (Wignored-attributes): New option.
8687 2016-03-22  David Malcolm  <dmalcolm@redhat.com>
8689         PR c/69993
8690         * c-indentation.c (warn_for_misleading_indentation): Rewrite the
8691         diagnostic text, reversing the order of the warning and note so
8692         that they appear in source order.
8694 2016-03-17  Marek Polacek  <polacek@redhat.com>
8696         PR c/69407
8697         * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
8698         operations.
8700 2016-03-14  Jason Merrill  <jason@redhat.com>
8702         * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
8704         * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
8706 2016-03-09  Richard Biener  <rguenther@suse.de>
8708         PR c/70143
8709         * c-common.c (strict_aliasing_warning): Add back
8710         alias_sets_conflict_p check.
8712 2016-03-08  Jason Merrill  <jason@redhat.com>
8714         * c-opts.c (set_std_cxx1z): Don't enable concepts.
8716 2016-03-04  David Malcolm  <dmalcolm@redhat.com>
8718         PR c/68187
8719         * c-indentation.c (get_visual_column): Move code to determine next
8720         tab stop to...
8721         (next_tab_stop): ...this new function.
8722         (line_contains_hash_if): Delete function.
8723         (detect_preprocessor_logic): Delete function.
8724         (get_first_nws_vis_column): New function.
8725         (detect_intervening_unindent): New function.
8726         (should_warn_for_misleading_indentation): Replace call to
8727         detect_preprocessor_logic with a call to
8728         detect_intervening_unindent.
8730 2016-03-04  David Malcolm  <dmalcolm@redhat.com>
8732         PR c/68187
8733         * c-indentation.c (should_warn_for_misleading_indentation): When
8734         suppressing warnings about cases where the guard and body are on
8735         the same column, only use the first non-whitespace column in place
8736         of the guard token column when dealing with "else" clauses.
8737         When rejecting aligned BODY and NEXT, loosen the requirement
8738         from equality with the first non-whitespace of guard to simply
8739         that they not be indented relative to it.
8741 2016-03-04  Richard Biener  <rguenther@suse.de>
8743         PR c++/70054
8744         * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
8745         instead of alias_sets_conflict_p.
8747 2016-03-01  Marek Polacek  <polacek@redhat.com>
8749         PR c++/69795
8750         * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
8751         any DECL.
8753 2016-02-22  Martin Sebor  <msebor@redhat.com>
8755         PR middle-end/69780
8756         * c-common.c (check_builtin_function_arguments): Validate and
8757         reject invalid arguments to __builtin_alloca_with_align.
8759 2016-02-20  Mark Wielaard  <mjw@redhat.com>
8761         PR c/28901
8762         * c.opt (Wunused-const-variable): Turn into Alias for...
8763         (Wunused-const-variable=): New option.
8765 2016-02-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8767         PR c++/69865
8768         * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
8769         here...
8770         (c_common_init_options): ...to here.
8771         (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
8773 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
8775         PR c++/69826
8776         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
8777         (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
8778         flag_preprocess_only.
8780 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
8782         PR c/69835
8783         * c.opt (Wnonnull-compare): Enable for -Wall.
8785 2016-02-15  Jakub Jelinek  <jakub@redhat.com>
8787         PR c++/69797
8788         * c-common.c (sync_resolve_size): Diagnose too few arguments
8789         even when params is non-NULL empty vector.
8791 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
8793         PR target/60410
8794         * c.opt (fshort-double): Remove.
8796 2016-02-05  Martin Sebor  <msebor@redhat.com>
8798         PR c++/69662
8799         * c.opt (Warning options): Update -Wplacement-new to take
8800         an optional argument.
8802 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
8804         PR preprocessor/69543
8805         PR c/69558
8806         * c-pragma.c (handle_pragma_diagnostic): Pass input_location
8807         instead of loc to control_warning_option.
8809 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
8811         * c.opt (fopenacc-dim=): New option.
8813 2016-01-27  Ryan Burn  <contact@rnburn.com>
8815         PR cilkplus/69267
8816         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
8817         gimplify_arg. Removed superfluous post_p argument.
8818         * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
8819         superfluous post_p argument.
8820         * c-gimplify.c (c_gimplify_expr): Likewise.
8822 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
8824         PR other/69006
8825         * c-opts.c (c_diagnostic_finalizer): Replace invocation of
8826         pp_newline_and_flush with pp_flush.
8828 2016-01-20  Martin Sebor  <msebor@redhat.com>
8830         PR c/69405
8831         * c-common.c (sync_resolve_size): Avoid printing diagnostic about
8832         an incompatible argument when the argument isn't a valid tree node.
8834 2016-01-18  Jason Merrill  <jason@redhat.com>
8836         PR c++/68767
8837         * c-common.c (check_function_arguments_recurse): Fold the whole
8838         COND_EXPR, not just the condition.
8840 2016-01-18  Tom de Vries  <tom@codesourcery.com>
8842         * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
8843         classify as loop clause.
8845 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
8847         PR bootstrap/68271
8848         * c-pragma.c (c_register_pragma_1): Adjust comment to note that
8849         C++ FE no longer has limit on number of pragmas.
8851 2015-01-14  Ryan Burn  <contact@rnburn.com>
8853         PR c++/69048
8854         * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
8855         to add missing cleanup point.
8857 2016-01-14  David Malcolm  <dmalcolm@redhat.com>
8859         PR c++/68819
8860         * c-indentation.c (get_visual_column): Add location_t param.
8861         Handle the column number being zero by effectively disabling the
8862         warning, with an "inform".
8863         (should_warn_for_misleading_indentation): Add location_t argument
8864         for all uses of get_visual_column.
8866 2016-01-10  Patrick Palka  <ppalka@gcc.gnu.org>
8868         PR c++/69029
8869         * c-indentation.c (should_warn_for_misleading_indentation):
8870         Don't warn about do-while statements.
8872 2016-01-07  Martin Sebor  <msebor@redhat.com>
8874         PR c/68966
8875         * c-common.c (sync_resolve_size): Reject first argument when it's
8876         a pointer to _Bool.
8878 2016-01-05  David Malcolm  <dmalcolm@redhat.com>
8880         PR c/69122
8881         * c-indentation.c (get_visual_column): Remove default argument.
8882         (should_warn_for_misleading_indentation): For the multiline case,
8883         update call to get_visual_column for next_stmt_exploc so that it
8884         captures the location of the first non-whitespace character in the
8885         relevant line.  Don't issue warnings if there is non-whitespace
8886         before the next statement.
8888 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
8890         Update copyright years.
8892 2015-12-21  David Malcolm  <dmalcolm@redhat.com>
8894         * c-common.c (binary_op_error): Convert first param from
8895         location_t to rich_location * and use it when emitting an error.
8896         * c-common.h (binary_op_error): Convert first param from
8897         location_t to rich_location *.
8899 2015-12-16  David Malcolm  <dmalcolm@redhat.com>
8901         * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
8902         * c-lex.c (conflict_marker_get_final_tok_kind): New function.
8904 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
8906         * c-common.c (c_common_attribute_table): Handle "omp declare target
8907         link" attribute.
8909 2015-12-14  Jakub Jelinek  <jakub@redhat.com>
8911         PR c/68833
8912         * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
8914 2014-12-12  Tobias Burnus  <burnus@net-b.de>
8916         PR fortran/68815
8917         * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
8918         specifiers (%d, %i,%u and %c).
8920 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
8922         * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
8924 2015-12-08  Jakub Jelinek  <jakub@redhat.com>
8926         PR c/48088
8927         PR c/68657
8928         * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
8929         * c-pragma.c (handle_pragma_diagnostic): Adjust
8930         control_warning_option caller.
8932 2015-12-07  David Malcolm  <dmalcolm@redhat.com>
8934         * c-common.c (c_cpp_error): Update for change to
8935         rich_location::set_range.
8937 2015-12-04  Paolo Bonzini  <bonzini@gnu.org>
8939         * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
8940         shifting 1 out of the sign bit.
8942 2015-12-04  Kirill Yukhin  <kirill.yukhin@intel.com>
8944         * c-common.c (c_common_attribute_table[]): Update max arguments
8945         count for "simd" attribute.
8946         (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
8948 2015-12-03  Jakub Jelinek  <jakub@redhat.com>
8950         PR preprocessor/57580
8951         * c-ppoutput.c (print): Change printed field to bool.
8952         Move src_file last for smaller padding.
8953         (init_pp_output): Set print.printed to false instead of 0.
8954         (scan_translation_unit): Fix up formatting.  Set print.printed
8955         to true after printing something other than newline.
8956         (scan_translation_unit_trad): Set print.printed to true instead of 1.
8957         (maybe_print_line_1): Set print.printed to false instead of 0.
8958         (print_line_1): Likewise.
8959         (do_line_change): Set print.printed to true instead of 1.
8960         (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
8961         dump_macro): Set print.printed to false after printing newline.
8963 2015-12-02  Jason Merrill  <jason@redhat.com>
8965         * c-common.c (fold_for_warn): New.
8966         (warn_logical_operator, warn_tautological_cmp)
8967         (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
8969         * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
8970         (c_fully_fold_internal, decl_constant_value_for_optimization):
8971         Move to c/c-fold.c.
8972         * c-common.h: Don't declare decl_constant_value_for_optimization.
8974 2015-12-02  Joseph Myers  <joseph@codesourcery.com>
8976         PR c/68162
8977         * c-common.h (c_build_qualified_type): Add extra default
8978         arguments.
8980 2015-12-01  Julian Brown  <julian@codesourcery.com>
8981             Cesar Philippidis  <cesar@codesourcery.com>
8982             James Norris  <James_Norris@mentor.com>
8984         * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
8985         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
8986         (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
8988 2015-11-30  Eric Botcazou  <ebotcazou@adacore.com>
8990         * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
8991         (decl_sloc_common): Delete and move bulk of processing to...
8992         (decl_sloc): ...here.
8993         (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
8994         (dump_ada_double_name): Remove S parameter and compute the suffix.
8995         (dump_ada_array_type): Add PARENT parameter.  Simplify computation of
8996         element type and deal with an anonymous one.
8997         (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
8998         (dump_generic_ada_node): Tweak.  Adjust call to dump_ada_array_type
8999         and remove reference to QUAL_UNION_TYPE.
9000         (dump_nested_types): Make 2 passes on the fields and move bulk to...
9001         (dump_nested_type): ...here.  New function extracted from above.
9002         Generate a full declaration for anonymous element type of arrays.
9003         (print_ada_declaration): Really skip anonymous declarations.  Remove
9004         references to QUAL_UNION_TYPE.  Adjust call to dump_ada_array_type.
9005         Clean up processing of declarations of array types and objects.
9006         (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
9007         Remove obsolete code and tidy up.
9009 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
9011         PR c/67581
9012         * c-common.c (handle_transparent_union_attribute): Update
9013         also type variants.
9015 2015-11-27  Martin Liska  <mliska@suse.cz>
9017         PR c++/68312
9018         * array-notation-common.c (cilkplus_extract_an_triplets):
9019         Release vector of vectors.
9020         * cilk.c (gimplify_cilk_spawn): Free allocated memory.
9022 2015-11-26  Eric Botcazou  <ebotcazou@adacore.com>
9024         PR c++/68527
9025         * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
9026         (print_ada_struct_decl): Likewise.
9028 2015-11-23  Igor Zamyatin  <igor.zamyatin@intel.com>
9030         PR c++/68001
9031         * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
9032         * cilk.c (recognize_spawn): Determine location in a more precise
9033         way.
9035 2015-11-19  Jason Merrill  <jason@redhat.com>
9037         * c-common.c (shorten_compare): But look through macros from
9038         system headers.
9040 2015-11-18  Jason Merrill  <jason@redhat.com>
9042         * c-common.c (shorten_compare): Don't -Wtype-limits if the
9043         non-constant operand comes from a macro.
9045 2015-11-17  Jason Merrill  <jason@redhat.com>
9047         PR bootstrap/68346
9048         * c-common.c (warn_tautological_cmp): Fold before checking for
9049         constants.
9051 2015-11-16  Marek Polacek  <polacek@redhat.com>
9053         PR c++/68362
9054         * c-common.c (check_case_bounds): Fold low and high cases.
9056 2015-11-16  Marek Polacek  <polacek@redhat.com>
9058         * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
9059         * c-common.c (c_common_get_alias_set): Likewise.
9060         (handle_visibility_attribute): Likewise.
9062 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
9064         * c-common.c (handle_simd_attribute): New.
9065         (struct attribute_spec): Add entry for "simd".
9066         (handle_simd_attribute): New.
9068 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
9070         * c-lex.c (interpret_float): Use fold_convert.
9072 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
9074         * c-common.c (c_fully_fold_internal): Capture existing souce_range,
9075         and store it on the result.
9076         * c-opts.c (c_common_init_options): Set
9077         global_dc->colorize_source_p.
9079 2015-11-12  James Norris  <jnorris@codesourcery.com>
9080             Joseph Myers  <joseph@codesourcery.com>
9082         * c-pragma.c (oacc_pragmas): Add entry for declare directive.
9083         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
9084         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
9085         PRAGMA_OACC_CLAUSE_LINK.
9087 2015-11-11  Marek Polacek  <polacek@redhat.com>
9089         PR c/68107
9090         PR c++/68266
9091         * c-common.c (valid_array_size_p): New function.
9092         * c-common.h (valid_array_size_p): Declare.
9094 2015-11-11  Dominique d'Humieres  <dominiq@lps.ens.fr>
9096         PR bootstrap/68271
9097         * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
9099 2015-11-11  Andrew MacLeod  <amacleod@redhat.com>
9101         * array-notation-common.c: Remove unused header files.
9102         * c-ada-spec.c: Likewise.
9103         * c-cilkplus.c: Likewise.
9104         * c-common.c: Likewise.
9105         * c-cppbuiltin.c: Likewise.
9106         * c-dump.c: Likewise.
9107         * c-format.c: Likewise.
9108         * c-gimplify.c: Likewise.
9109         * c-indentation.c: Likewise.
9110         * c-lex.c: Likewise.
9111         * c-omp.c: Likewise.
9112         * c-opts.c: Likewise.
9113         * c-pch.c: Likewise.
9114         * c-ppoutput.c: Likewise.
9115         * c-pragma.c: Likewise.
9116         * c-pretty-print.c: Likewise.
9117         * c-semantics.c: Likewise.
9118         * c-ubsan.c: Likewise.
9119         * cilk.c: Likewise.
9120         * stub-objc.c: Likewise.
9122 2015-11-09  Thomas Schwinge  <thomas@codesourcery.com>
9123             Cesar Philippidis  <cesar@codesourcery.com>
9124             James Norris  <jnorris@codesourcery.com>
9125             Julian Brown  <julian@codesourcery.com>
9126             Nathan Sidwell  <nathan@codesourcery.com>
9128         * c-pragma.c (oacc_pragmas): Add "routine".
9129         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
9131 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
9133         * c-common.c (c_common_attributes): Add scalar_storage_order.
9134         (handle_scalar_storage_order_attribute): New function.
9135         * c-pragma.c (global_sso): New variable.
9136         (maybe_apply_pragma_scalar_storage_order): New function.
9137         (handle_pragma_scalar_storage_order): Likewise.
9138         (init_pragma): Register scalar_storage_order.
9139         * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
9140         * c.opt (Wscalar-storage-order): New warning.
9141         (fsso-struct=): New option.
9143 2015-11-08  Martin Sebor  <msebor@redhat.com>
9145         * c.opt (Wplacement-new): Add a period to the end of a sentence.
9147 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
9149         * c-common.c: Don't undef DEF_BUILTIN.
9151 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
9153         * c-common.c (c_cpp_error): Convert parameter from location_t to
9154         rich_location *.  Eliminate the "column_override" parameter and
9155         the call to diagnostic_override_column.
9156         Update the "done_lexing" clause to set range 0
9157         on the rich_location, rather than overwriting a location_t.
9158         * c-common.h (c_cpp_error): Convert parameter from location_t to
9159         rich_location *.  Eliminate the "column_override" parameter.
9161 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
9162             Thomas Schwinge  <thomas@codesourcery.com>
9163             James Norris  <jnorris@codesourcery.com>
9165         * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
9166         AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses.  Associate REDUCTION
9167         clauses with parallel and kernels and loops.
9168         * c-pragma.h (enum pragma_omp_clause): Add entries for
9169         PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
9170         * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
9171         NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
9172         INDEPENDENT,SEQ}.
9173         (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
9175 2015-11-05  Martin Sebor  <msebor@redhat.com>
9177         PR c++/67942
9178         * c.opt (-Wplacement-new): New option.
9180 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
9182         * c-common.h (c_finish_omp_atomic): Add TEST argument.
9183         (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
9184         * c-omp.c (c_finish_omp_atomic): Add TEST argument.  Don't call
9185         save_expr or create_tmp_var* if TEST is true.
9186         (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
9187         Don't call add_stmt here.
9188         (struct c_omp_check_loop_iv_data): New type.
9189         (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
9190         c_omp_check_loop_iv_exprs): New functions.
9191         (c_omp_split_clauses): Adjust for lastprivate being allowed on
9192         distribute.
9193         (c_omp_declare_simd_clauses_to_numbers): Change
9194         OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
9195         (c_omp_declare_simd_clauses_to_decls): Similarly change those
9196         from numbers to PARM_DECLs.
9198 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
9200         * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
9201         flag_checking.
9203 2015-11-03  Bernd Schmidt  <bschmidt@redhat.com>
9205         PR c++-common/67882
9206         * c-common.h (fold_offsetof_1): Add argument.
9207         * c-common.c (fold_offsetof_1): Diagnose more invalid
9208         offsetof expressions that reference elements past the end of
9209         an array.
9211 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
9212             Chung-Lin Tang  <cltang@codesourcery.com>
9214         * c-pragma.c (oacc_pragmas): Add "atomic".
9215         * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
9217 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
9219         * c-common.c (handle_target_clones_attribute): New.
9220         (c_common_attribute_table): Add handle_target_clones_attribute.
9221         (handle_always_inline_attribute): Add check on target_clones attribute.
9222         (handle_target_attribute): Ditto.
9224 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
9226         * array-notation-common.c: Reorder #include's and remove duplicates.
9227         * c-ada-spec.c: Likewise.
9228         * c-cilkplus.c: Likewise.
9229         * c-common.c: Likewise.
9230         * c-cppbuiltin.c: Likewise.
9231         * c-dump.c: Likewise.
9232         * c-format.c: Likewise.
9233         * c-gimplify.c: Likewise.
9234         * c-indentation.c: Likewise.
9235         * c-lex.c: Likewise.
9236         * c-omp.c: Likewise.
9237         * c-opts.c: Likewise.
9238         * c-pch.c: Likewise.
9239         * c-ppoutput.c: Likewise.
9240         * c-pragma.c: Likewise.
9241         * c-pretty-print.c: Likewise.
9242         * c-semantics.c: Likewise.
9243         * c-ubsan.c: Likewise.
9244         * cilk.c: Likewise.
9245         * stub-objc.c: Likewise.
9247 2015-10-28  Jason Merrill  <jason@redhat.com>
9249         * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
9251 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
9252             James Norris  <jnorris@codesourcery.com>
9253             Cesar Philippidis  <cesar@codesourcery.com>
9255         PR c/64765
9256         PR c/64880
9257         * c-common.h (c_oacc_split_loop_clauses): Declare function.
9258         * c-omp.c (c_oacc_split_loop_clauses): New function.
9260 2015-10-21  Martin Sebor  <msebor@redhat.com>
9262         PR driver/68043
9263         * c.opt: End each sentence that describes an option with a period.
9265 2015-10-20  Marek Polacek  <polacek@redhat.com>
9267         * array-notation-common.c (is_cilkplus_vector_p): Define.
9268         * c-common.h (is_cilkplus_vector_p): Declare.
9270 2015-10-20  Marek Polacek  <polacek@redhat.com>
9272         * c.opt (std=gnu++11): Do not describe as experimental.
9273         (std=gnu++14): Likewise.
9275 2015-10-19  Jason Merrill  <jason@redhat.com>
9277         * c-cppbuiltin.c (c_cpp_builtins): Define
9278         __cpp_nontype_template_args.
9280 2015-10-19  Jason Merrill  <jason@redhat.com>
9282         * c-cppbuiltin.c (c_cpp_builtins): Define
9283         __cpp_enumerator_attributes, __cpp_fold_expressions,
9284         __cpp_unicode_characters.
9286 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
9287             Aldy Hernandez  <aldyh@redhat.com>
9289         * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
9290         DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
9291         (c_define_builtins): Likewise.
9292         * c-common.h (enum c_omp_clause_split): Add
9293         C_OMP_CLAUSE_SPLIT_TASKLOOP.
9294         (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
9295         (c_finish_omp_for): Add ORIG_DECLV argument.
9296         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
9297         201511 instead of 201307.
9298         * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
9299         OMP_CRITICAL_CLAUSES to it.
9300         (c_finish_omp_ordered): Add CLAUSES argument, set
9301         OMP_ORDERED_CLAUSES to it.
9302         (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
9303         to it if OMP_FOR.  Clear DECL_INITIAL on the IVs.
9304         (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
9305         constructs and new OpenMP 4.5 clauses.  Clear
9306         OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD.  Add
9307         verification code.
9308         * c-pragma.c (omp_pragmas_simd): Add taskloop.
9309         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
9310         (enum pragma_omp_clause): Add
9311         PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
9312         and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
9314 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9316         * c-lex.c (interpret_float): Use real_equal instead of
9317         REAL_VALUES_EQUAL.
9319 2015-10-04  Jason Merrill  <jason@redhat.com>
9321         Implement N4514, C++ Extensions for Transactional Memory.
9322         * c-common.c (c_common_reswords): Add C++ TM TS keywords.
9323         (c_common_attribute_table): Add transaction_safe_dynamic.
9324         transaction_safe now affects type identity.
9325         (handle_tm_attribute): Handle transaction_safe_dynamic.
9326         * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
9327         RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
9328         (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
9329         (D_TRANSMEM): New.
9330         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
9331         * c-pretty-print.c (pp_c_attributes_display): Don't print
9332         transaction_safe in C++.
9334 2015-10-02  Marek Polacek  <polacek@redhat.com>
9336         * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
9338 2015-10-02  Marek Polacek  <polacek@redhat.com>
9340         PR c/64249
9341         * c-common.c (warn_duplicated_cond_add_or_warn): New function.
9342         * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
9343         * c.opt (Wduplicated-cond): New option.
9345 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
9347         * c.opt (std=c11): Do not describe as experimental.
9348         (std=gnu11): Likewise.
9349         (std=iso9899:2011): Likewise.
9351 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
9353         * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
9354         (DEF_FUNCTION_TYPE_VAR_11): Delete.
9356 2015-09-25  Marek Polacek  <polacek@redhat.com>
9358         * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
9359         (ubsan_instrument_shift): Likewise.
9361 2015-09-25  Marek Polacek  <polacek@redhat.com>
9363         PR sanitizer/64906
9364         * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
9366 2015-09-24  Patrick Palka  <ppalka@gcc.gnu.org>
9368         * c-indentation.c (should_warn_for_misleading_indentation):
9369         Compare next_stmt_vis_column with guard_line_first_nws instead
9370         of with guard_line_vis_column.
9372 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9374         PR c/49654
9375         PR c/49655
9376         * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
9377         options and options not valid for the current language.
9379 2015-09-22  Patrick Palka  <ppalka@gcc.gnu.org>
9381         * c-indentation.c (should_warn_for_misleading_indentation):
9382         Float out and consolidate the calls to get_visual_column that
9383         are passed guard_exploc as an argument.  Compare
9384         next_stmt_vis_column with guard_line_first_nws instead of with
9385         body_line_first_nws.
9387 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
9389         * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
9390         Wnamespaces): New C++ warnings.
9392 2015-09-22  Jason Merrill  <jason@redhat.com>
9394         * c-common.h (abi_compat_version_crosses): New.
9395         (warn_abi_version): Declare.
9396         * c-common.c: Define it.
9397         * c-opts.c (c_common_post_options): Handle it.
9398         flag_abi_compat_version defaults to 8.
9400 2015-09-21  Ville Voutilainen  <ville.voutilainen@gmail.com>
9402         Complete the implementation of N4230, Nested namespace definition.
9403         * c-cppbuiltin.c: Add __cpp_namespace_attributes and
9404         __cpp_nested_namespace_definitions.
9406 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9408         * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
9410 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9412         * c-pragma.c (handle_pragma_diagnostic): Use explicit location
9413         when warning.
9414         * c-pragma.h (pragma_lex): Add optional loc argument.
9416 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
9418         * c-format.c (check_format_arg): Adjust to use common block size in all
9419         object pools.
9421 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
9423         * c-format.c (location_from_offset): Update for change in
9424         signature of location_get_source_line.
9425         * c-indentation.c (get_visual_column): Likewise.
9426         (line_contains_hash_if): Likewise.
9428 2015-09-14  Marek Polacek  <polacek@redhat.com>
9430         * c-opts.c (c_common_post_options): Set C++ standard earlier, before
9431         setting various warnings.
9433 2015-09-14  Marek Polacek  <polacek@redhat.com>
9435         * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
9436         a negative value.
9438 2015-09-11  Mark Wielaard  <mjw@redhat.com>
9440         PR c/28901
9441         * c.opt (Wunused-variable): Option from common.opt.
9442         (Wunused-const-variable): New option.
9444 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
9446         PR c++/53184
9447         * c.opt ([Wsubobject-linkage]): Add.
9449 2015-09-03  Martin Sebor  <msebor@redhat.com>
9451         PR c/66516
9452         * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
9453         functions.
9454         * c-common.c (reject_gcc_builtin): Define.
9456 2015-09-02  Balaji V. Iyer  <balaji.v.iyer@intel.com>
9458         PR middle-end/60586
9459         * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
9460         prototype.
9461         * c-gimplify.c (c_gimplify_expr): Added a call to the function
9462         cilk_gimplify_call_params_in_spawned_fn.
9463         * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
9464         (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
9465         unwrapping.
9467 2015-08-25  Marek Polacek  <polacek@redhat.com>
9469         PR middle-end/67330
9470         * c-common.c (handle_weak_attribute): Don't check whether the
9471         visibility can be changed here.
9473 2015-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9475         * c-lex.c (c_lex_with_flags): Use explicit locations.
9477 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
9479         * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
9480         c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
9482 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9484         PR middle-end/36757
9485         * c-common.c (check_builtin_function_arguments): Add check
9486         for BUILT_IN_SIGNBIT argument.
9488 2015-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
9490         PR c++/67160
9491         * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
9492         in c++1z mode.
9494 2015-08-17  Marek Polacek  <polacek@redhat.com>
9496         * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
9497         with whitespaces before qualifier names.
9499 2015-08-12  Marek Polacek  <polacek@redhat.com>
9501         PR c++/55095
9502         * c-common.c (maybe_warn_shift_overflow): Properly handle
9503         left-shifting 1 into the sign bit.
9505 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9507         * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
9509 2015-08-06  Andrew Sutton  <andrew.n.sutton@gmail.com>
9510             Braden Obrzut  <admin@maniacsvault.net>
9511             Jason Merrill  <jason@redhat.com>
9513         Add C++ Concepts TS support.
9514         * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
9515         * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
9516         (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
9517         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
9518         * c-opts.c (set_std_cxx1z): Set flag_concepts.
9519         * c.opt (fconcepts): New.
9521 2015-08-02  Martin Sebor  <msebor@redhat.com>
9523         * c.opt (-Wframe-address): New warning option.
9525 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
9527         * c-indentation.c (should_warn_for_misleading_indentation):
9528         Improve heuristics.
9530 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
9532         * c-indentation.c (get_visual_column): Add parameter first_nws,
9533         use it.  Update comment documenting the function.
9534         (is_first_nonwhitespace_on_line): Remove.
9535         (should_warn_for_misleading_indentation): Replace usage of
9536         of is_first_nonwhitespace_on_line with get_visual_column.
9538 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
9540         * c-indentation.h (struct token_indent_info): Define.
9541         (get_token_indent_info): Define.
9542         (warn_for_misleading_information): Declare.
9543         * c-common.h (warn_for_misleading_information): Remove.
9544         * c-identation.c (warn_for_misleading_indentation):
9545         Change declaration to take three token_indent_infos.  Adjust
9546         accordingly.
9547         * c-identation.c (should_warn_for_misleading_indentation):
9548         Likewise.  Bail out early if the body is a compound statement.
9549         (guard_tinfo_to_string): Define.
9551 2015-07-30  Jason Merrill  <jason@redhat.com>
9553         * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
9554         '*' for reference decay.
9556 2015-07-30  Marek Polacek  <polacek@redhat.com>
9558         * c-common.c (warn_tautological_cmp): Bail for float types.
9560 2015-07-27  Marek Polacek  <polacek@redhat.com>
9562         PR bootstrap/67030
9563         * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
9565 2015-07-27  Marek Polacek  <polacek@redhat.com>
9567         PR c++/66555
9568         PR c/54979
9569         * c-common.c (find_array_ref_with_const_idx_r): New function.
9570         (warn_tautological_cmp): New function.
9571         * c-common.h (warn_tautological_cmp): Declare.
9572         * c.opt (Wtautological-compare): New option.
9574 2015-07-23  Marek Polacek  <polacek@redhat.com>
9576         * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
9577         (ubsan_instrument_shift): Likewise.
9579 2015-07-23  Marek Polacek  <polacek@redhat.com>
9581         PR sanitizer/66908
9582         * c-ubsan.c: Include gimplify.h.
9583         (ubsan_instrument_division): Unshare OP0 and OP1.
9584         (ubsan_instrument_shift): Likewise.
9586 2015-07-20  Marek Polacek  <polacek@redhat.com>
9587             Richard Sandiford  <richard.sandiford@arm.com>
9589         PR c++/55095
9590         * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
9591         Use EXPR_LOC_OR_LOC.
9592         (maybe_warn_shift_overflow): New function.
9593         * c-common.h (maybe_warn_shift_overflow): Declare.
9594         * c-opts.c (c_common_post_options): Set warn_shift_overflow.
9595         * c.opt (Wshift-overflow): New option.
9597 2015-07-16  Martin Liska  <mliska@suse.cz>
9599         * c-format.c (static void check_format_info_main): Use
9600         object_allocator instead of pool_allocator.
9601         (check_format_arg): Likewise.
9602         (check_format_info_main): Likewise.
9604 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
9606         * c-opts.c: Remove multiline #include comment.
9608 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
9610         * c-common.c: Fix double word typos.
9612 2015-07-10  Eric Botcazou  <ebotcazou@adacore.com>
9614         * c-ada-spec.h (cpp_operation): Revert latest change.
9615         * c-ada-spec.c (print_ada_declaration): Likewise.  Skip implicit
9616         constructors and destructors.
9618 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
9620         * c-common.h: Adjust includes for flags.h changes.
9621         * stub-objc.c: Likewise.
9623 2015-07-08  Eric Botcazou  <ebotcazou@adacore.com>
9625         * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
9626         * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
9628 2015-07-08  Jakub Jelinek  <jakub@redhat.com>
9630         * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
9631         are to be removed, return NULL rather than original clauses list.
9633 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
9635         * array-notation-common.c: Adjust includes.
9636         * c-ada-spec.c: Likewise.
9637         * c-cilkplus.c: Likewise.
9638         * c-common.h: Likewise.
9639         * c-cppbuiltin.c: Likewise.
9640         * c-dump.c: Likewise.
9641         * c-format.c: Likewise.
9642         * c-gimplify.c: Likewise.
9643         * c-indentation.c: Likewise.
9644         * c-lex.c: Likewise.
9645         * c-omp.c: Likewise.
9646         * c-opts.c: Likewise.
9647         * c-pch.c: Likewise.
9648         * c-ppoutput.c: Likewise.
9649         * c-pragma.c: Likewise.
9650         * c-pretty-print.c: Likewise.
9651         * c-semantics.c: Likewise.
9652         * c-ubsan.c: Likewise.
9653         * cilk.c: Likewise.
9654         * stub-objc.c: Likewise.
9656 2015-07-07  Eric Botcazou  <ebotcazou@adacore.com>
9658         * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
9659         * c-ada-spec.c (print_ada_declaration): Skip move constructors.
9661 2015-07-01  Jason Merrill  <jason@redhat.com>
9663         * c-common.h (D_CXX11): Rename from D_CXX0X.
9664         (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
9665         * c-common.c: Adjust.
9667         * c-opts.c (c_common_post_options): Default to C++14.
9669         * c-opts.c (c_common_post_options): Highest ABI level is now 10.
9671 2015-06-30  Edward Smith-Rowland  <3dw4rd@verizon.net>
9673         Implement N4197 - Adding u8 character literals
9674         * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
9675         CPP_CHAR.
9676         * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
9677         CPP_UTF8CHAR_USERDEF tokens.
9678         * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
9679         and CPP_UTF8CHAR tokens.
9680         (lex_charconst): Treat CPP_UTF8CHAR token.
9682 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9684         PR fortran/66605
9685         * c-common.c (do_warn_unused_parameter): Move here.
9686         * c-common.h (do_warn_unused_parameter): Declare.
9688 2015-06-29  Marek Polacek  <polacek@redhat.com>
9690         PR c/66322
9691         * c-common.c (check_case_bounds): Add bool * parameter.  Set
9692         OUTSIDE_RANGE_P.
9693         (c_add_case_label): Add bool * parameter.  Pass it down to
9694         check_case_bounds.
9695         (c_do_switch_warnings): Add bool parameters.  Implement -Wswitch-bool
9696         warning here.
9697         * c-common.h (c_add_case_label, c_do_switch_warnings): Update
9698         declarations.
9700 2015-06-27  Marek Polacek  <polacek@redhat.com>
9702         * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
9703         or VECTOR_INTEGER_TYPE_P throughout.
9704         * c-gimplify.c: Likewise.
9706 2015-06-26  Marek Polacek  <polacek@redhat.com>
9708         * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
9709         * c-common.c (c_fully_fold_internal): Likewise.
9710         (c_alignof_expr): Likewise.
9711         * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
9712         * c-ubsan.c (ubsan_instrument_bounds): Likewise.
9713         * cilk.c (create_parm_list): Likewise.
9715 2015-06-26  Marek Polacek  <polacek@redhat.com>
9717         * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
9719 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
9721         * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
9722         * c-gimplify.c: Likewise.
9723         * c-pragma.c: Likewise.
9724         * c-ubsan.c: Likewise.
9725         * cilk.c: Likewise.
9727 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9729         * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
9730         ggc_hasher.
9732 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
9734         * cilk.c: Move calls.h after tm.h in the include chain.
9736 2015-06-25  Marek Polacek  <polacek@redhat.com>
9738         * array-notation-common.c: Use VAR_P throughout.
9739         * c-ada-spec.c: Likewise.
9740         * c-common.c: Likewise.
9741         * c-format.c: Likewise.
9742         * c-gimplify.c: Likewise.
9743         * c-omp.c: Likewise.
9744         * c-pragma.c: Likewise.
9745         * c-pretty-print.c: Likewise.
9746         * cilk.c: Likewise.
9748 2015-06-25  Marek Polacek  <polacek@redhat.com>
9750         * cilk.c (extract_free_variables): Use is_global_var.
9752 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
9754         * c-common.c: Don't include target-def.h.
9756 2015-06-23  Marek Polacek  <polacek@redhat.com>
9758         * c-common.c (warn_logical_operator): Use tree_int_cst_equal
9759         when comparing INTEGER_CSTs.
9761 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
9763         * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
9764         * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
9765         (dump_ada_template): Skip partially specialized types.
9767 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
9769         * c-common.c (scalar_to_vector): Use std::swap instead of manually
9770         swapping.
9772 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
9774         * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
9775         * c-ada-spec.c: Likewise.
9776         * c-cilkplus.c: Likewise.
9777         * c-common.c: Likewise.
9778         * c-common.h: Likewise.
9779         * c-cppbuiltin.c: Likewise.
9780         * c-dump.c: Likewise.
9781         * c-format.c: Likewise.
9782         * c-gimplify.c: Likewise.
9783         * c-indentation.c: Likewise.
9784         * c-lex.c: Likewise.
9785         * c-omp.c: Likewise.
9786         * c-opts.c: Likewise.
9787         * c-pch.c: Likewise.
9788         * c-ppoutput.c: Likewise.
9789         * c-pragma.c: Likewise.
9790         * c-pretty-print.c: Likewise.
9791         * c-semantics.c: Likewise.
9792         * c-ubsan.c: Likewise.
9793         * cilk.c: Likewise.
9794         * stub-objc.c: Likewise.
9796 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
9798         PR c++/65168
9799         * c-common.c (c_common_truthvalue_conversion): Warn when
9800         converting an address of a reference to a truth value.
9802 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
9804         * array-notation-common.c : Adjust include files.
9805         * c-ada-spec.c : Likewise.
9806         * c-cilkplus.c : Likewise.
9807         * c-common.c : Likewise.
9808         * c-common.h : Likewise.
9809         * c-cppbuiltin.c : Likewise.
9810         * c-dump.c : Likewise.
9811         * c-format.c : Likewise.
9812         * c-gimplify.c : Likewise.
9813         * c-indentation.c : Likewise.
9814         * c-lex.c : Likewise.
9815         * c-omp.c : Likewise.
9816         * c-opts.c : Likewise.
9817         * c-pch.c : Likewise.
9818         * c-ppoutput.c : Likewise.
9819         * c-pragma.c : Likewise.
9820         * c-pretty-print.c : Likewise.
9821         * c-semantics.c : Likewise.
9822         * c-ubsan.c : Likewise.
9823         * cilk.c : Likewise.
9824         * stub-objc.c : Likewise.
9826 2015-06-08  Marek Polacek  <polacek@redhat.com>
9828         PR c/66415
9829         * c-format.c (location_from_offset): Return LOC if LINE is null.
9831 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
9833         * c-common.h (c_parse_final_cleanups): New prototype.
9834         * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
9836 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
9838         * c-common.c (noplt): New attribute.
9839         (handle_noplt_attribute): New handler.
9841 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
9843         * array-notation-common.c: Adjust includes for restructured coretypes.h.
9844         * c-ada-spec.c: Likewise.
9845         * c-cilkplus.c: Likewise.
9846         * c-common.c: Likewise.
9847         * c-common.h: Likewise.
9848         * c-cppbuiltin.c: Likewise.
9849         * c-dump.c: Likewise.
9850         * c-format.c: Likewise.
9851         * c-gimplify.c: Likewise.
9852         * c-indentation.c: Likewise.
9853         * c-lex.c: Likewise.
9854         * c-omp.c: Likewise.
9855         * c-opts.c: Likewise.
9856         * c-pch.c: Likewise.
9857         * c-ppoutput.c: Likewise.
9858         * c-pragma.c: Likewise.
9859         * c-pretty-print.c: Likewise.
9860         * c-semantics.c: Likewise.
9861         * c-ubsan.c: Likewise.
9862         * cilk.c: Likewise.
9863         * stub-objc.c: Likewise.
9865 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
9867         PR c/66220:
9868         * c-indentation.c (should_warn_for_misleading_indentation): Use
9869         expand_location rather than expand_location_to_spelling_point.
9870         Don't warn if the guarding statement is more indented than the
9871         next/body stmts.
9873 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
9875         * c-indentation.c (warn_for_misleading_indentation): Bail out
9876         immediately if -Wmisleading-indentation isn't enabled.
9878 2015-06-01  Martin Liska  <mliska@suse.cz>
9880         * c-format.c (check_format_arg):Use new type-based pool allocator.
9881         (check_format_info_main) Likewise.
9883 2015-05-31  Eric Botcazou  <ebotcazou@adacore.com>
9885         * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
9886         (has_nontrivial_methods): Likewise.
9888 2015-05-25  Marek Polacek  <polacek@redhat.com>
9890         * c-ubsan.c (ubsan_instrument_shift): Use type0.
9892 2015-05-22  Marek Polacek  <polacek@redhat.com>
9894         PR c/47043
9895         * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
9897 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9899         * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
9900         STACK_GROWS_DOWNWARD.
9902 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9904         * c-cppbuiltin.c (c_cpp_builtins): Check the value of
9905         STACK_GROWS_DOWNWARD rather than if it is defined.
9907 2015-05-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9909         PR c/52952
9910         * c-format.c (location_column_from_byte_offset): New.
9911         (location_from_offset): New.
9912         (struct format_wanted_type): Add offset_loc field.
9913         (check_format_info): Move handling of location for extra arguments
9914         closer to the point of warning.
9915         (check_format_info_main): Pass the result of location_from_offset
9916         to warning_at.
9917         (format_type_warning): Pass the result of location_from_offset
9918         to warning_at.
9920 2015-05-20  Marek Polacek  <polacek@redhat.com>
9922         * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
9924 2015-05-20  Marek Polacek  <polacek@redhat.com>
9926         * c-ada-spec.c (dump_sloc): Use DECL_P.
9928 2015-05-20  Marek Polacek  <polacek@redhat.com>
9930         * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
9931         * c-common.c: Likewise.
9933 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
9935         * c-common.h (fe_file_change): Strengthen param from
9936         const line_map * to const line_map_ordinary *.
9937         (pp_file_change): Likewise.
9938         * c-lex.c (fe_file_change): Likewise.
9939         (cb_define): Use linemap_check_ordinary when invoking
9940         SOURCE_LINE.
9941         (cb_undef): Likewise.
9942         * c-opts.c (c_finish_options): Use linemap_check_ordinary when
9943         invoking cb_file_change.
9944         (c_finish_options): Likewise.
9945         (push_command_line_include): Likewise.
9946         (cb_file_change): Strengthen param "new_map" from
9947         const line_map * to const line_map_ordinary *.
9948         * c-ppoutput.c (cb_define): Likewise for local "map".
9949         (pp_file_change): Likewise for param "map" and local "from".
9951 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
9953         * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
9955 2015-05-18  Tom de Vries  <tom@codesourcery.com>
9957         * c-common.c (build_va_arg_1): New function.
9958         (build_va_arg): Add address operator to va_list operand if necessary.
9960 2015-05-15  Mikhail Maltsev  <maltsevm@gmail.com>
9962         PR c/48956
9963         * c-common.c (int_safely_convertible_to_real_p): Define.
9964         (unsafe_conversion_p): Check conversions involving complex types.
9965         (conversion_warning): Add new warning message for conversions which
9966         discard imaginary component.
9967         * c-common.h: (enum conversion_safety): Add new enumerator for such
9968         conversions.
9970 2015-05-14  Marek Polacek  <polacek@redhat.com>
9972         PR c/66066
9973         PR c/66127
9974         * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
9975         (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
9976         C_MAYBE_CONST_EXPR_INT_OPERANDS set.  Add FOR_INT_CONST argument and
9977         use it.  If FOR_INT_CONST, require that all evaluated operands be
9978         INTEGER_CSTs.
9980 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
9982         * c-common.h (warn_for_misleading_indentation): New prototype.
9983         * c-indentation.c: New file.
9984         * c.opt (Wmisleading-indentation): New option.
9986 2015-05-12  Tom de Vries  <tom@codesourcery.com>
9988         PR tree-optimization/66010
9989         * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
9991 2015-05-09  Jason Merrill  <jason@redhat.com>
9993         * c-opts.c (c_common_post_options): Also clear
9994         cpp_opts->cpp_warn_cxx11_compat.
9996         * c-common.h (enum cxx_dialect): Add cxx_unset.
9997         * c-common.c (cxx_dialect): Initialize to cxx_unset.
9998         * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
10000         * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
10001         (std=gnu++0x): Mark as Undocumented.
10002         (std=gnu++1y): Add deprecated message.
10004 2015-05-08  Jason Merrill  <jason@redhat.com>
10006         * c.opt (Wc++11-compat): Make primary.  Rename var warn_cxx11_compat.
10007         * c-opts.c: Adjust.
10009         * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
10011 2015-05-08  Marek Polacek  <polacek@redhat.com>
10013         PR c/64918
10014         * c.opt (Woverride-init-side-effects): New option.
10016 2015-05-07  Marek Polacek  <polacek@redhat.com>
10018         PR c/65179
10019         * c-common.c (c_fully_fold_internal): Warn when left shifting a
10020         negative value.
10021         * c.opt (Wshift-negative-value): New option.
10022         * c-opts.c (c_common_post_options): Set warn_shift_negative_value
10023         when -Wextra and C99/C++11 mode.
10025 2015-05-07  Marek Polacek  <polacek@redhat.com>
10026             Martin Uecker  <uecker@eecs.berkeley.edu>
10028         * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
10029         flexible member array-like members if SANITIZE_BOUNDS_STRICT.
10031 2015-05-05  Jason Merrill  <jason@redhat.com>
10033         * c.opt (Wterminate): New.
10035 2015-04-30  Marek Polacek  <polacek@redhat.com>
10037         * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
10038         require that the non-constant be of a boolean type.
10040 2015-04-29  Josh Triplett  <josh@joshtriplett.org>
10042         * c-common.c (handle_section_attribute): Refactor to reduce
10043         nesting and distinguish between error cases.
10045 2015-04-29  Marek Polacek  <polacek@redhat.com>
10047         PR c/64610
10048         * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
10049         with 0/1.
10051 2015-04-29  Jakub Jelinek  <jakub@redhat.com>
10053         * c-common.h (omp_clause_mask): Unconditionally define as a class.
10054         Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
10055         HOST_BITS_PER_WIDE_INT.
10057 2015-04-28  Tom de Vries  <tom@codesourcery.com>
10059         PR tree-optimization/65887
10060         * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
10062 2015-04-28  Eric Botcazou  <ebotcazou@adacore.com>
10063             Pierre-Marie de Rodat  <derodat@adacore.com>
10065         * c-ada-spec.c (in_function): Delete.
10066         (dump_generic_ada_node): Do not change in_function and remove the
10067         redundant code dealing with it.
10068         (print_ada_declaration): Do not change in_function.  Use INDENT_INCR.
10069         (print_ada_methods): Output the static member functions in a nested
10070         package after the regular methods as well as associated renamings.
10072 2015-04-24  Marek Polacek  <polacek@redhat.com>
10074         PR c/65830
10075         * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
10076         and OPT_Wshift_count_overflow.
10078         PR c/63357
10079         * c-common.c (warn_logical_operator): Warn if the operands have the
10080         same expressions.
10082 2015-04-24  Marek Polacek  <polacek@redhat.com>
10084         PR c/61534
10085         * c-common.c (warn_logical_operator): Bail if either operand comes
10086         from a macro expansion.
10088 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10090         PR target/55143
10091         * c-common.c (c_default_pointer_mode): Add definition.
10092         * c-common.h (c_default_pointer_mode): Add declaration.
10094 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
10096         * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
10097         on record_builtin_type argument.
10099 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
10101         PR c/65120
10102         * c-common.c (warn_logical_not_parentheses): Don't warn for
10103         !x == 0 or !x != 0.
10105 2015-03-07  Marek Polacek  <polacek@redhat.com>
10107         PR sanitizer/65280
10108         * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
10109         before trying to figure out whether we have a flexible array member.
10111 2015-03-06  Eric Botcazou  <ebotcazou@adacore.com>
10112             Jonathan Wakely  <jwakely.gcc@gmail.com>
10114         * c-ada-spec.c (dump_ada_double_name): Fix pasto.
10116 2015-03-05  Eric Botcazou  <ebotcazou@adacore.com>
10118         PR ada/65319
10119         * c-ada-spec.c (print_destructor): Remove obsolete code.
10121 2015-03-01  Eric Botcazou  <ebotcazou@adacore.com>
10123         * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
10124         (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
10125         DECL_TEMPLATE_RESULT emulations.
10126         (dump_ada_template)): Add guard for TYPE_METHODS.
10128 2015-02-27  Marek Polacek  <polacek@redhat.com>
10130         PR c/65040
10131         * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
10133 2015-02-27  Kai Tietz  <ktietz@redhat.com>
10135         PR c/35330
10136         * c-pragma.c (handle_pragma_weak): Do not try to create
10137         weak/alias of declarations not being function, or variable
10138         declarations.
10140 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
10142         PR libgomp/64625
10143         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
10144         Remove macros.
10145         (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
10147 2015-02-16  Marek Polacek  <polacek@redhat.com>
10149         PR c/65066
10150         * c-format.c (check_format_types): Handle null param.
10152 2015-02-13  Marek Polacek  <polacek@redhat.com>
10154         PR c/65040
10155         * c-format.c (check_format_types): Don't warn about different
10156         signedness if the original value is in the range of WANTED_TYPE.
10158 2015-02-12  Jason Merrill  <jason@redhat.com>
10160         PR c++/64956
10161         * c-opts.c (c_common_post_options): Change flag_abi_version from 0
10162         to the current highest version.
10163         * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
10165 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
10167         PR c/64824
10168         PR c/64868
10169         * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
10170         instead of RDIV_EXPR.  Use build_binary_op instead of
10171         build2_loc.
10173 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
10175         * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
10176         to pass input_location as first argument.
10178 2015-01-23  Tom de Vries  <tom@codesourcery.com>
10180         PR libgomp/64672
10181         * c.opt (fopenacc): Mark as LTO option.
10183 2015-01-23  Tom de Vries  <tom@codesourcery.com>
10185         PR libgomp/64707
10186         * c.opt (fopenmp): Mark as LTO option.
10188 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
10190         PR c/63307
10191         * cilk.c (fill_decls_vec): Only put decls into vector v.
10192         (compare_decls): Fix up formatting.
10194 2015-01-21  Igor Zamyatin  <igor.zamyatin@intel.com>
10196         PR c/63307
10197         * cilk.c: Include vec.h.
10198         (struct cilk_decls): New structure.
10199         (wrapper_parm_cb): Split this function to...
10200         (fill_decls_vec): ...this...
10201         (create_parm_list): ...and this.
10202         (compare_decls): New function.
10203         (for_local_cb): Remove.
10204         (wrapper_local_cb): Ditto.
10205         (build_wrapper_type): For now first traverse and fill vector of
10206         declarations then sort it and then deal with sorted vector.
10207         (cilk_outline): Ditto.
10208         (declare_one_free_variable): Ditto.
10210 2015-01-21  Jason Merrill  <jason@redhat.com>
10212         PR c++/64629
10213         * c-format.c (check_format_arg): Call decl_constant_value.
10215 2015-01-19  Martin Liska  <mliska@suse.cz>
10217         * c-common.c (handle_noicf_attribute): New function.
10219 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
10220             Bernd Schmidt  <bernds@codesourcery.com>
10221             James Norris  <jnorris@codesourcery.com>
10222             Cesar Philippidis  <cesar@codesourcery.com>
10223             Ilmir Usmanov  <i.usmanov@samsung.com>
10224             Jakub Jelinek  <jakub@redhat.com>
10226         * c.opt (fopenacc): New option.
10227         * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
10228         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
10229         New macros.
10230         * c-common.h (c_finish_oacc_wait): New prototype.
10231         * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
10232         (c_finish_oacc_wait): New function.
10233         * c-pragma.c (oacc_pragmas): New variable.
10234         (c_pp_lookup_pragma, init_pragma): Handle it.
10235         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
10236         PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
10237         PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
10238         PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
10239         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
10240         PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
10241         PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
10242         PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
10243         PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
10244         PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
10245         PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
10246         PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
10247         PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
10248         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
10249         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
10250         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
10251         PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
10252         PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
10253         PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
10254         PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
10255         PRAGMA_OACC_CLAUSE_WORKER.
10257 2015-01-14  Marcos Diaz  <marcos.diaz@tallertechnologies.com>
10259         * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
10260         for the new option fstack-protector_explicit.
10261         * c-common.c (c_common_attribute_table): Add stack_protect attribute.
10262         (handle_stack_protect_attribute): New function.
10264 2015-01-13  Martin Uecker  <uecker@eecs.berkeley.edu>
10266         * c.opt: New option -Warray-bounds=.
10268 2015-01-09  Michael Collison  <michael.collison@linaro.org>
10270         * array-notation-common.c: Include hash-set.h, machmode.h,
10271         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
10272         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
10273         * c-ada-spec.c: Ditto.
10274         * c-cilkplus.c: Ditto.
10275         * c-common.c: Include input.h due to flattening of tree.h.
10276         Define macro GCC_C_COMMON_C.
10277         * c-common.h: Flatten tree.h header files into c-common.h.
10278         Remove include of tree-core.h.
10279         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
10280         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
10281         fold-const.h, wide-int.h, and inchash.h due to
10282         flattening of tree.h.
10283         * c-dump.c: Ditto.
10284         * c-format.c: Flatten tree.h header files into c-common.h.
10285         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
10286         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
10287         fold-const.h, wide-int.h, and inchash.h due to
10288         flattening of tree.h.
10289         * c-dump.c: Include hash-set.h, machmode.h,
10290         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
10291         fold-const.h, wide-int.h, and inchash.h due to
10292         flattening of tree.h.
10293         * c-format.c: Include hash-set.h, machmode.h,
10294         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
10295         fold-const.h, wide-int.h, inchash.h and real.h due to
10296         flattening of tree.h.
10297         * c-gimplify.c: Include hash-set.h, machmode.h,
10298         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
10299         fold-const.h, wide-int.h, and inchash.h due to
10300         flattening of tree.h.
10301         * cilk.c: Ditto.
10302         * c-lex.c: Ditto.
10303         * c-omp.c: Ditto.
10304         * c-opts.c: Ditto.
10305         * c-pch.c: Ditto.
10306         * c-ppoutput.c: Ditto.
10307         * c-pragma.c: Ditto.
10308         * c-pretty-print.c: Ditto.
10309         * c-semantics.c: Ditto.
10310         * c-ubsan.c: Ditto.
10311         * stub-objc.c: Ditto.
10313 2015-01-08  Jason Merrill  <jason@redhat.com>
10315         * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
10316         do_ubsan_in_current_function.
10317         (ubsan_maybe_instrument_reference_or_call): Likewise.
10318         * c-ubsan.h: Declare it.
10320 2015-01-08  Mike Stump  <mikestump@comcast.net>
10322         * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
10324 2015-01-07  Marek Polacek  <polacek@redhat.com>
10326         PR c/64440
10327         * c-common.c (c_fully_fold_internal): Warn for division and modulo
10328         if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
10330 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
10332         PR c++/31397
10333         * c.opt (Wsuggest-override): New option.
10335 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
10337         Update copyright years.
10339 2015-01-05  Marek Polacek  <polacek@redhat.com>
10341         PR c/64423
10342         * c-common.c (warn_array_subscript_with_type_char): Add location_t
10343         parameter.  Use it.
10344         * c-common.h (warn_array_subscript_with_type_char): Update
10345         declaration.
10347 2014-12-20  Edward Smith-Rowland  <3dw4rd@verizon.net>
10349         * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
10350         Control macro with flag_sized_deallocation.
10352 2014-12-20  Martin Uecker  <uecker@eecs.berkeley.edu>
10354         * c.opt (Wdiscarded-array-qualifiers): New option.
10356 2014-12-19  Jakub Jelinek  <jakub@redhat.com>
10358         PR preprocessor/63831
10359         * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
10360         and __has_cpp_attribute here.
10361         * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
10362         c_common_has_attribute.
10363         * c-common.h (c_common_has_attribute): New prototype.
10364         * c-lex.c (init_c_lex): Set cb->has_attribute to
10365         c_common_has_attribute instead of cb_has_attribute.
10366         (get_token_no_padding): New function.
10367         (cb_has_attribute): Renamed to ...
10368         (c_common_has_attribute): ... this.  No longer static.  Use
10369         get_token_no_padding, require ()s, don't build TREE_LIST
10370         unnecessarily, fix up formatting, adjust diagnostics, call
10371         init_attributes.
10373 2014-12-15  Jason Merrill  <jason@redhat.com>
10375         * c.opt (-fsized-deallocation, -Wc++14-compat): New.
10376         (-Wsized-deallocation): New.
10377         * c-opts.c (c_common_post_options): -fsized-deallocation defaults
10378         to on in C++14 and up.
10380 2014-12-11  Jason Merrill  <jason@redhat.com>
10382         * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
10384         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
10385         we aren't complaining about VLAs.
10387 2014-12-06  Marek Polacek  <polacek@redhat.com>
10389         PR tree-optimization/64183
10390         * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
10391         shift-expression if it is integer_type_node.  Use types_compatible_p.
10393 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
10395         * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
10396         last argument from create_tmp_var_raw and create_tmp_var calls.
10397         * cilk.c (gimplify_cilk_spawn): Likewise.
10398         * c-omp.c (c_finish_omp_atomic): Likewise.
10400 2014-11-28  Marek Polacek  <polacek@redhat.com>
10402         * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
10403         instead of unsigned_type_node.
10405 2014-11-28  Marek Polacek  <polacek@redhat.com>
10407         PR c/63862
10408         * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
10409         to op1_utype.
10410         * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
10411         expression to unsigned_type_node.
10413 2014-11-20  Mark Wielaard  <mjw@redhat.com>
10415         PR debug/38757
10416         * c-opts.c (set_std_c89): Set lang_hooks.name.
10417         (set_std_c99): Likewise.
10418         (set_std_c11): Likewise.
10419         (set_std_cxx98): Likewise.
10420         (set_std_cxx11): Likewise.
10421         (set_std_cxx14): Likewise.
10422         (set_std_cxx1z): Likewise.
10424 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
10426         PR target/63764
10427         * c-common.h (convert_vector_to_pointer_for_subscript): Change
10428         return type to bool.
10429         * c-common.c: Include gimple-expr.h.
10430         (convert_vector_to_pointer_for_subscript): Change return type to
10431         bool.  If *vecp is not lvalue_p and has VECTOR_TYPE, return true
10432         and copy it into a TARGET_EXPR and use that instead of *vecp
10433         directly.
10435 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
10437         Merger of git branch "gimple-classes-v2-option-3".
10438         * ChangeLog.gimple-classes: New.
10439         * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
10440         from being just a vec<gimple> to a vec<gbind *>.
10442 2014-11-18  Jakub Jelinek  <jakub@redhat.com>
10444         PR sanitizer/63813
10445         * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
10446         argument to ptype, set type to TREE_TYPE (ptype).  Don't call
10447         get_pointer_alignment for non-pointers.  Use ptype, or if it is
10448         reference type, corresponding pointer type, as type of kind
10449         argument.
10450         (ubsan_maybe_instrument_reference,
10451         ubsan_maybe_instrument_member_call): Adjust callers.
10453 2014-11-15  Marek Polacek  <polacek@redhat.com>
10455         PR middle-end/63884
10456         * array-notation-common.c (is_sec_implicit_index_fn): Return false
10457         for NULL fndecl.
10458         (extract_array_notation_exprs): Return for NULL node.
10460 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
10462         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
10463         undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
10465 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
10467         PR c/59708
10468         * c-common.c (check_builtin_function_arguments): Handle
10469         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
10471 2014-11-10  Andi Kleen  <ak@linux.intel.com>
10473         PR c/60804
10474         * c-common.h (check_no_cilk): Declare.
10475         * cilk.c (get_error_location): New function.
10476         (check_no_cilk): Dito.
10478 2014-11-10  Andi Kleen  <ak@linux.intel.com>
10480         * cilk.c (recognize_spawn): Use expression location
10481         for error message.
10483 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
10485         * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
10487 2014-11-10  Edward Smith-Rowland  <3dw4rd@verizon.net>
10489         * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
10490         (__cpp_rtti, __cpp_exceptions): New macros for C++98;
10491         (__cpp_range_based_for, __cpp_initializer_lists,
10492         __cpp_delegating_constructors, __cpp_nsdmi,
10493         __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
10494         for C++11; (__cpp_attribute_deprecated): Remove in favor of
10495         __has_cpp_attribute.
10496         * c-lex.c (cb_has_attribute): New callback CPP function;
10497         (init_c_lex): Set has_attribute callback.
10499 2014-11-04  Richard Biener  <rguenther@suse.de>
10501         * c-common.c (shorten_compare): Do not shorten mixed
10502         DFP and non-DFP compares.
10504 2014-11-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
10506         * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
10507         * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
10508         Commentary and rearrangement of tests.
10509         * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
10510         Commentary and rearrangement of tests.
10511         * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto.
10512         * g++.dg/cpp1y/feat-cxx98.C: Commentary.
10514 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
10516         * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
10517         enum from machine_mode.
10519 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
10521         * c-common.c: Adjust include files.
10522         * c-gimplify.c: Ditto.
10523         * cilk.c: Ditto.
10524         * c-pragma.c: Ditto.
10525         * c-ubsan.c: Ditto.
10527 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
10529         * c-gimplify.c: Adjust include files.
10531 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10533         PR c++/53061
10534         * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
10535         c_common_initialize_diagnostics.
10536         * c-common.h: Likewise.
10538 2014-10-24  Marek Polacek  <polacek@redhat.com>
10540         PR c/56980
10541         * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
10542         print "struct"/"union"/"enum" for typedefed names.
10544 2014-10-23  Marek Polacek  <polacek@redhat.com>
10546         * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
10547         in unsigned type.
10549 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
10550             Yury Gribov  <y.gribov@samsung.com>
10552         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
10553         ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
10554         instead of flag_sanitize_recover as bool flag.
10556 2014-10-21  Kirill Yukhin  <kirill.yukhin@intel.com>
10558         * cilk.c: Revert previous change.
10560 2014-10-20  Igor Zamyatin  <igor.zamyatin@intel.com>
10562         PR c/63307
10563         * cilk.c: Include vec.h.
10564         (struct cilk_decls): New structure.
10565         (wrapper_parm_cb): Split this function to...
10566         (fill_decls_vec): ...this...
10567         (create_parm_list): ...and this.
10568         (compare_decls): New function.
10569         (for_local_cb): Remove.
10570         (wrapper_local_cb): Ditto.
10571         (build_wrapper_type): For now first traverse and fill vector of
10572         declarations then sort it and then deal with sorted vector.
10573         (cilk_outline): Ditto.
10574         (declare_one_free_variable): Ditto.
10576 2014-10-17  Marek Polacek  <polacek@redhat.com>
10578         * c-opts.c (c_common_post_options): Set warn_implicit_int.
10579         * c.opt (Wimplicit-int): Initialize to -1.
10581 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
10583         * c-pragma.c: Adjust include files.
10584         * c-semantics.c: Likewise.
10586 2014-10-16  DJ Delorie  <dj@redhat.com>
10588         * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
10589         multiples of bytes.
10591 2014-10-14  Jason Merrill  <jason@redhat.com>
10593         PR c++/63455
10594         * c-common.h (CPP_PREPARSED_EXPR): New.
10595         (N_CP_TTYPES): Adjust.
10597 2014-10-15  Marek Polacek  <polacek@redhat.com>
10599         * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
10601 2014-10-14  DJ Delorie  <dj@redhat.com>
10603         * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
10604         types, not just __int128.
10605         * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
10606         types, not just __int128.
10607         (cpp_atomic_builtins): Round pointer sizes up.
10608         (type_suffix): Use type precision, not specific types.
10609         * c-common.c (c_common_reswords): Remove __int128 special case.
10610         (c_common_type_for_size): Check for all __intN types, not just
10611         __int128.
10612         (c_common_type_for_mode): Likewise.
10613         (c_common_signed_or_unsigned_type): Likewise.
10614         (c_build_bitfield_integer_type): Likewise.
10615         (c_common_nodes_and_builtins): Likewise.
10616         (keyword_begins_type_specifier): Likewise.
10617         * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
10618         __intN variants.
10620 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
10622         * c-common.c: Use hash_table instead of hashtab.
10624 2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>
10626         * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
10627         C++11 section.
10629 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
10631         PR c++/54427
10632         PR c++/57198
10633         PR c++/58845
10634         * c-common.c (warn_logical_operator): Punt for vectors.
10636 2014-10-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
10638         Implement SD-6: SG10 Feature Test Recommendations
10639         * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
10640         macros and the __has_header macro.
10642 2014-09-30  Jason Merrill  <jason@redhat.com>
10644         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
10645         RID_IS_TRIVIALLY_CONSTRUCTIBLE.
10646         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
10648         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
10649         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
10651         * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
10652         * c-common.c (c_common_reswords): Remove __is_convertible_to.
10654 2014-09-24  Marek Polacek  <polacek@redhat.com>
10656         PR c/61405
10657         PR c/53874
10658         * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
10660 2014-09-23  Andi Kleen  <ak@linux.intel.com>
10662         * c-common.c (handle_no_reorder_attribute): New function.
10663         (c_common_attribute_table): Add no_reorder attribute.
10665 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
10667         * c-cppbuiltin.c (c_cpp_builtins): Define
10668         __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
10669         modes.
10671 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
10673         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
10674         for supported floating-point modes.
10676 2014-09-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10678         * c.opt (Wpsabi): Use LangEnabledBy.
10679         * c-opts.c (c_common_handle_option): Do not handle here.
10681 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
10683         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
10684         macros for floating-point modes.
10686 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
10688         PR target/58757
10689         * c-cppbuiltin.c (builtin_define_float_constants): Correct
10690         __*_DENORM_MIN__ without denormals.
10692 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
10694         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
10695         ubsan_instrument_vla, ubsan_instrument_return): Adjust
10696         ubsan_create_data callers.
10697         (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
10698         index is constant or BIT_AND_EXPR with constant mask and is
10699         small enough for the bound.
10700         * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
10701         ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
10703 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10705         * c.opt: Add CppReason to various flags.
10706         (Wdate-time): Re-sort.
10707         * c-common.c: Include c-common.h earlier.
10708         (struct reason_option_codes_t): Delete.
10709         (c_option_controlling_cpp_error): Prefix global type and struct
10710         with cpp_.
10712 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10714         * c.opt (Wnormalized): New.
10715         (Wnormalized=): Use Enum and Reject Negative.
10716         * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
10718 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
10720         * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
10721         digits of floating-point modes if -fbuilding-libgcc.
10723 2014-09-05  Joseph Myers  <joseph@codesourcery.com>
10725         * c-cppbuiltin.c (c_cpp_builtins): Also define
10726         __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
10727         __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
10728         __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
10729         __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
10730         __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
10731         __LIBGCC_STACK_GROWS_DOWNWARD__,
10732         __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
10733         __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
10734         __LIBGCC_DWARF_FRAME_REGISTERS__,
10735         __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
10736         __LIBGCC_STACK_POINTER_REGNUM__ and
10737         __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
10738         (builtin_define_with_value): Handle backslash-escaping in string
10739         macro values.
10741 2014-09-05  Richard Biener  <rguenther@suse.de>
10743         PR middle-end/63148
10744         * c-format.c (check_format_arg): Properly handle
10745         effectively signed POINTER_PLUS_EXPR offset.
10747 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10749         * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
10750         Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
10751         (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
10752         and Init.
10753         * c-opts.c (c_common_handle_option): Do not handle here.
10754         (sanitize_cpp_opts): Likewise.
10755         * c-common.c (struct reason_option_codes_t): Handle
10756         CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
10758 2014-09-03  Marek Polacek  <polacek@redhat.com>
10760         * c.opt (Wlogical-not-parentheses): Enable by -Wall.
10762 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
10763             Balaji V. Iyer  <balaji.v.iyer@intel.com>
10764             Igor Zamyatin  <igor.zamyatin@intel.com>
10766         * c-cilkplus.c (cilk_for_number_of_iterations): New function.
10767         * c-common.c (c_common_reswords): Added _Cilk_for.
10768         * c-common.h (enum rid): Added RID_CILK_FOR.
10769         (cilk_for_number_of_iterations): Add declaration.
10770         * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
10771         CILK_FOR.
10772         * c-pragma.c (init_pragma): Register "grainsize" pragma.
10773         * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
10775 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10777         * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
10778         Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
10779         Wundef): Use CPP, Var and Init.
10780         * c-opts.c (c_common_handle_option): Do not handle the above flags here.
10782 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10784         * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
10785         * c-opts.c (c_common_handle_option): Do not handle here.
10787 2014-08-25  Jason Merrill  <jason@redhat.com>
10789         * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
10790         -std=c++14 and -std=gnu++14, rather than the reverse.
10791         * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
10792         OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
10793         * c-common.h (cxx_dialect): Remove cxx1y.
10795 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
10797         * c-common.h (enum cxx_dialect): Add cxx14.
10798         * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
10799         * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
10800         cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
10802 2014-08-22  Jason Merrill  <jason@redhat.com>
10804         * c.opt (std=gnu++17): Fix alias.
10806 2014-08-22  Marek Polacek  <polacek@redhat.com>
10808         PR c++/62199
10809         * c-common.c (warn_logical_not_parentheses): Don't check LHS.  Don't
10810         check for vector types.  Drop LHS argument.
10811         * c-common.h (warn_logical_not_parentheses): Adjust.
10813 2014-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10815         * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
10816         (Wmultichar): Likewise.
10817         (Wdate-time): Use C-family languages instead of Common. Use CPP
10818         and Var.
10819         * c-opts.c (c_common_handle_option): Do not handle the above
10820         options here.
10821         (sanitize_cpp_opts): Likewise.
10823 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10825         PR fortran/44054
10826         * c-opts.c: Include tree-diagnostics.h.
10827         (c_diagnostic_finalizer): New.
10828         (c_common_initialize_diagnostics): Use it.
10830 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10832         PR preprocessor/51303
10833         * c-common.c (struct reason_option_codes_t option_codes):
10834         Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
10836 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10838         PR c/60975
10839         PR c/53063
10840         * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
10841         * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
10842         (c_common_post_options): Call init_global_opts_from_cpp.
10843         (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
10845 2014-08-19  Marek Polacek  <polacek@redhat.com>
10847         PR c++/62153
10848         * c-common.c (maybe_warn_bool_compare): New function.
10849         * c-common.h (maybe_warn_bool_compare): Declare.
10850         * c.opt (Wbool-compare): New option.
10852 2014-08-19  Marek Polacek  <polacek@redhat.com>
10854         * c.opt (Wc99-c11-compat): New option.
10856 2014-08-19  Marek Polacek  <polacek@redhat.com>
10858         * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
10859         to warn_c90_c99_compat.
10860         * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
10861         to -1.
10863 2014-08-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10864             Steven Bosscher  <steven@gcc.gnu.org>
10866         PR c/52952
10867         * c-format.c: Add extra_arg_loc and format_string_loc to struct
10868         format_check_results.
10869         (check_function_format): Use true and add comment for boolean
10870         argument.
10871         (finish_dollar_format_checking): Use explicit location when warning.
10872         (check_format_info): Likewise.
10873         (check_format_arg): Set extra_arg_loc and format_string_loc.
10874         (check_format_info_main): Use explicit location when warning.
10875         (check_format_types): Pass explicit location.
10876         (format_type_warning): Likewise.
10878 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10880         PR fortran/44054
10881         * c-format.c: Handle Fortran flags.
10883 2014-08-12  Igor Zamyatin  <igor.zamyatin@intel.com>
10885         PR other/61962
10886         * array-notation-common.c (find_rank): Added handling for other
10887         types of references.
10889 2014-08-10  Marek Polacek  <polacek@redhat.com>
10891         PR c/51849
10892         * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
10893         * c.opt (Wc90-c99-compat): Add option.
10895 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
10897         * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
10899 2014-08-03  Marek Polacek  <polacek@redhat.com>
10901         * c-common.c (check_case_value): Add location_t parameter.  Use it.
10902         (c_add_case_label): Pass loc to check_case_value.
10904 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
10906         * cilk.c: Use hash_map instead of pointer_map.
10908 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
10910         * c-gimplify.c: Use hash_set instead of pointer_set.
10912 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
10914         PR middle-end/61455
10915         * array-notation-common.c (extract_array_notation_exprs): Handling
10916         of DECL_EXPR added.
10918 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
10920         * c-common.h (min_align_of_type): Removed prototype.
10921         * c-common.c (min_align_of_type): Removed.
10922         * c-ubsan.h (ubsan_maybe_instrument_reference,
10923         ubsan_maybe_instrument_member_call): New prototypes.
10924         * c-ubsan.c: Include stor-layout.h and builtins.h.
10925         (ubsan_maybe_instrument_reference_or_call,
10926         ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
10927         functions.
10929 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
10931         PR c++/60517
10932         * c.opt (-Wreturn-local-addr): Move to common.opt.
10934 2014-07-30  Jason Merrill  <jason@redhat.com>
10936         PR c++/61659
10937         PR c++/61687
10938         Revert:
10939         * c.opt (-fuse-all-virtuals): New.
10941 2014-07-30  Tom Tromey  <tromey@redhat.com>
10943         PR c/59855
10944         * c.opt (Wdesignated-init): New option.
10945         * c-common.c (c_common_attribute_table): Add "designated_init".
10946         (handle_designated_init): New function.
10948 2014-07-24  Marek Polacek  <polacek@redhat.com>
10950         PR c/57653
10951         * c-opts.c (c_finish_options): If -imacros is in effect, return.
10953 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
10955         PR preprocessor/60723 - missing system-ness marks for macro tokens
10956         * c-ppoutput.c (struct print::prev_was_system_token): New data
10957         member.
10958         (init_pp_output): Initialize it.
10959         (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
10960         (do_line_change): Return a flag saying if a line marker was
10961         emitted or not.
10962         (scan_translation_unit): Detect if the system-ness of the token we
10963         are about to emit is different from the one of the previously
10964         emitted token.  If so, emit a line marker.  Avoid emitting useless
10965         adjacent line markers.  Avoid emitting line markers for tokens
10966         originating from the expansion of built-in macros.
10967         (scan_translation_unit_directives_only): Adjust.
10969 2014-07-15  Marek Polacek  <polacek@redhat.com>
10971         * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
10972         TYPE_MAX_VALUE is NULL.
10974 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
10976         PR middle-end/61294
10977         * c.opt (Wmemset-transposed-args): New warning.
10979 2014-07-10  Jason Merrill  <jason@redhat.com>
10981         PR c++/61659
10982         PR c++/61687
10983         * c.opt (-fuse-all-virtuals): New.
10985 2014-07-09  Richard Biener  <rguenther@suse.de>
10987         PR c-family/61741
10988         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
10989         using unsigned arithmetic if overflow does not wrap instead of
10990         if overflow is undefined.
10992 2014-07-06  Marek Polacek  <polacek@redhat.com>
10994         PR c/6940
10995         * c.opt (Wsizeof-array-argument): New option.
10997 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
10999         * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
11000         comments->count <= 1, as comments->entries might be NULL.
11002 2014-07-01  Marek Polacek  <polacek@redhat.com>
11004         * c.opt (Wint-conversion): New option.
11006 2014-07-01  Marek Polacek  <polacek@redhat.com>
11008         PR c/58286
11009         * c.opt (Wincompatible-pointer-types): New option.
11011 2014-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
11013         PR c++/51400
11014         * c-common.c (handle_noreturn_attribute, handle_const_attribute):
11015         Do not discard TYPE_QUALS of type.
11017 2014-06-26  Jason Merrill  <jason@redhat.com>
11019         * c-common.h (enum cxx_dialect): Add cxx1z.
11020         * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
11021         * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
11023 2014-06-26  Teresa Johnson  <tejohnson@google.com>
11025         * c-common.h (get_dump_info): Declare.
11026         * c-gimplify.c (c_genericize): Use saved dump files.
11027         * c-opts.c (c_common_parse_file): Begin and end dumps
11028         once around parsing invocation.
11029         (get_dump_info): New function.
11031 2014-06-23  Marek Polacek  <polacek@redhat.com>
11032             Andrew MacLeod  <amacleod@redhat.com>
11034         PR c/61553
11035         * c-common.c (get_atomic_generic_size): Don't segfault if the
11036         type doesn't have a size.
11038 2014-06-20  Marek Polacek  <polacek@redhat.com>
11040         * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
11041         (ubsan_walk_array_refs_r): New function.
11042         (c_genericize): Instrument array bounds.
11043         * c-ubsan.c: Include "internal-fn.h".
11044         (ubsan_instrument_division): Mark instrumented arrays as having
11045         side effects.  Adjust ubsan_type_descriptor call.
11046         (ubsan_instrument_shift): Likewise.
11047         (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
11048         (ubsan_instrument_bounds): New function.
11049         (ubsan_array_ref_instrumented_p): New function.
11050         (ubsan_maybe_instrument_array_ref): New function.
11051         * c-ubsan.h (ubsan_instrument_bounds): Declare.
11052         (ubsan_array_ref_instrumented_p): Declare.
11053         (ubsan_maybe_instrument_array_ref): Declare.
11055 2014-06-20  Hale Wang  <hale.wang@arm.com>
11057         PR lto/61123
11058         * c.opt (fshort-enums): Add to LTO.
11059         * c.opt (fshort-wchar): Likewise.
11061 2014-06-16  Marek Polacek  <polacek@redhat.com>
11063         PR c/60439
11064         * c.opt (Wswitch-bool): Add Var.
11066 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
11068         PR middle-end/61486
11069         * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
11070         #pragma omp target teams or
11071         #pragma omp {,target }teams distribute simd.
11073 2014-06-12  Jason Merrill  <jason@redhat.com>
11075         * c.opt (Wabi=, fabi-compat-version): New.
11076         * c-opts.c (c_common_handle_option): Handle -Wabi=.
11077         (c_common_post_options): Handle flag_abi_compat_version default.
11078         Disallow -fabi-compat-version=1.
11079         * c-common.h (abi_version_crosses): New.
11081 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
11083         * c-common.c (handle_section_attribute): Update handling for
11084         section names that are no longer trees.
11086 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
11088         PR fortran/60928
11089         * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
11090         (omp_pragmas): ... back here.
11092 2014-06-05  Marek Polacek  <polacek@redhat.com>
11094         PR c/49706
11095         * c-common.c (warn_logical_not_parentheses): New function.
11096         * c-common.h (warn_logical_not_parentheses): Declare.
11097         * c.opt (Wlogical-not-parentheses): New option.
11099 2014-06-04  Marek Polacek  <polacek@redhat.com>
11101         PR c/30020
11102         * c-common.c (check_case_bounds): Add location parameter.
11103         Use it.
11104         (c_add_case_label): Pass loc to check_case_bounds.
11106 2014-06-03  Marek Polacek  <polacek@redhat.com>
11108         PR c/60439
11109         * c.opt (Wswitch-bool): New option.
11111 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
11113         * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
11114         Remove prototypes.
11115         (record_types_used_by_current_var_decl): Move prototype to where
11116         it belongs.
11118         * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
11119         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
11120         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
11122 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
11124         * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
11125         * c-common.c (c_common_nodes_and_builtins): Don't initialize
11126         void_zero_node.
11127         * c-pretty-print.c (pp_c_void_constant): New function.
11128         (c_pretty_printer::constant, c_pretty_printer::primary_expression)
11129         (c_pretty_printer::expression): Handle VOID_CST.
11130         * cilk.c (extract_free_variables): Likewise.
11131         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
11132         (ubsan_instrument_vla): Use void_node instead of void_zero_node.
11134 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
11136         * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
11137         * c-pragma.c (push_alignment): Adjust.
11138         (handle_pragma_push_options): Likewise.
11140 2014-05-09  Marek Polacek  <polacek@redhat.com>
11142         PR c/50459
11143         * c-common.c (check_user_alignment): Return -1 if alignment is error
11144         node.
11145         (handle_aligned_attribute): Don't call default_conversion on
11146         FUNCTION_DECLs.
11147         (handle_vector_size_attribute): Likewise.
11148         (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
11149         (handle_sentinel_attribute): Call default_conversion and allow even
11150         integral types as an argument.
11152 2014-05-08  Marek Polacek  <polacek@redhat.com>
11154         PR c/61053
11155         * c-common.c (min_align_of_type): New function factored out from...
11156         (c_sizeof_or_alignof_type): ...here.
11157         * c-common.h (min_align_of_type): Declare.
11159 2014-05-08  Marek Polacek  <polacek@redhat.com>
11161         PR c/61077
11162         * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
11163         parameter type of main.
11165 2014-05-07  DJ Delorie  <dj@redhat.com>
11167         * c-cppbuiltin.c (print_bits_of_hex): New.
11168         (builtin_define_type_minmax): Print values using hex so as not to
11169         require a pre-computed list of string values.
11171 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
11172             Mike Stump  <mikestump@comcast.net>
11173             Richard Sandiford  <rdsandiford@googlemail.com>
11175         * c-ada-spec.c: Include wide-int.h.
11176         (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
11177         (dump_generic_ada_node): Use wide-int interfaces.
11178         * c-common.c: Include wide-int-print.h.
11179         (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
11180         (pointer_int_sum): Use wide-int interfaces.
11181         (c_common_nodes_and_builtins): Use make_int_cst.
11182         (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
11183         (handle_alloc_size_attribute): Use wide-int interfaces.
11184         (get_nonnull_operand): Likewise.
11185         * c-format.c (get_constant): Use tree_fits_uhwi_p.
11186         * c-lex.c: Include wide-int.h.
11187         (narrowest_unsigned_type): Take a widest_int rather than two
11188         HOST_WIDE_INTs.
11189         (narrowest_signed_type): Likewise.
11190         (interpret_integer): Update accordingly.  Use wide-int interfaces.
11191         (lex_charconst): Use wide-int interfaces.
11192         * c-pretty-print.c: Include wide-int.h.
11193         (pp_c_integer_constant): Use wide-int interfaces.
11194         * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
11195         INT_CST_LT_UNSIGNED.
11197 2014-05-06  Richard Biener  <rguenther@suse.de>
11199         * c-opts.c (c_common_post_options): For -freestanding,
11200         -fno-hosted and -fno-builtin disable pattern recognition
11201         if not enabled explicitely.
11203 2014-05-02  Marek Polacek  <polacek@redhat.com>
11205         * c.opt (Wsizeof-pointer-memaccess): Describe option.
11207 2014-05-01  Marek Polacek  <polacek@redhat.com>
11209         PR c/43245
11210         * c.opt (Wdiscarded-qualifiers): Add.
11212 2014-04-30  Marek Polacek  <polacek@redhat.com>
11214         * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs.  Perform
11215         INT_MIN / -1 sanitization only for integer types.
11217 2014-04-25  Marek Polacek  <polacek@redhat.com>
11219         PR c/18079
11220         * c-common.c (handle_noinline_attribute): Warn if the attribute
11221         conflicts with always_inline attribute.
11222         (handle_always_inline_attribute): Warn if the attribute conflicts
11223         with noinline attribute.
11225 2014-04-25  Marek Polacek  <polacek@redhat.com>
11227         PR c/60156
11228         * c-common.c (check_main_parameter_types): Warn about variadic main.
11230 2014-04-24  Mike Stump  <mikestump@comcast.net>
11232         * c.opt (Wshadow-ivar): Default to on.
11234 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
11236         * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
11238 2014-04-23  Marek Polacek  <polacek@redhat.com>
11240         * c-common.c (handle_tm_wrap_attribute): Tweak error message.
11242 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
11244         PR sanitizer/60275
11245         * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
11246         if flag_sanitize_undefined_trap_on_error.
11247         (ubsan_instrument_division, ubsan_instrument_shift,
11248         ubsan_instrument_vla): Likewise.  Use __ubsan_handle_*_abort ()
11249         if !flag_sanitize_recover.
11251 2014-04-22  Marc Glisse  <marc.glisse@inria.fr>
11253         PR libstdc++/43622
11254         * c-common.c (registered_builtin_types): Make non-static.
11255         * c-common.h (registered_builtin_types): Declare.
11257 2014-04-14  Richard Biener  <rguenther@suse.de>
11258             Marc Glisse  <marc.glisse@inria.fr>
11260         PR c/60819
11261         * c-common.c (convert_vector_to_pointer_for_subscript): Properly
11262         apply may-alias the scalar pointer type when applicable.
11264 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
11266         PR middle-end/60467
11267         * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
11268         as possible argument for Cilk_spawn.
11270 2014-04-11  Tobias Burnus  <burnus@net-b.de>
11272         PR c/60194
11273         * c.opt (Wformat-signedness): Add
11274         * c-format.c(check_format_types): Use it.
11276 2014-04-11  Jason Merrill  <jason@redhat.com>
11278         PR c++/57926
11279         * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
11280         default_conversion for an array argument.
11282 2014-04-08  Marek Polacek  <polacek@redhat.com>
11284         PR sanitizer/60745
11285         * c-ubsan.c: Include asan.h.
11286         (ubsan_instrument_return): Call initialize_sanitizer_builtins.
11288 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
11290         * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
11292 2014-04-02  Marek Polacek  <polacek@redhat.com>
11294         * c-common.h (c_expand_expr): Remove declaration.
11296 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
11298         PR c++/60689
11299         * c-common.c (add_atomic_size_parameter): When creating new
11300         params vector, push the size argument first.
11302 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
11304         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
11305         ubsan_instrument_vla, ubsan_instrument_return): Adjust
11306         ubsan_create_data callers.
11308 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
11310         PR debug/60603
11311         * c-opts.c (c_finish_options): Restore cb_file_change call to
11312         <built-in>.
11314 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
11316         PR middle-end/36282
11317         * c-pragma.c (apply_pragma_weak): Only look at
11318         TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
11319         DECL_ASSEMBLER_NAME_SET_P (decl).
11320         (maybe_apply_pending_pragma_weaks): Exit early if
11321         vec_safe_is_empty (pending_weaks) rather than only when
11322         !pending_weaks.
11323         (maybe_apply_pragma_weak): Likewise.  If !DECL_ASSEMBLER_NAME_SET_P,
11324         set assembler name back to NULL afterwards.
11326 2014-03-11  Jason Merrill  <jason@redhat.com>
11328         * c.opt: Add -std=gnu++14.
11330 2014-03-11  Ian Bolton  <ian.bolton@arm.com>
11332         * c-opts.c (c_common_post_options): Don't override
11333         -ffp-contract=fast if unsafe-math-optimizations is on.
11335 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
11337         * c.opt: Enable LTO FE for fshort-double.
11339 2014-03-07  Jason Merrill  <jason@redhat.com>
11341         * c.opt: Add -std=c++14.
11343 2014-03-06  Marek Polacek  <polacek@redhat.com>
11345         PR c/60197
11346         * cilk.c (contains_cilk_spawn_stmt): New function.
11347         (contains_cilk_spawn_stmt_walker): Likewise.
11348         (recognize_spawn): Give error on invalid use of _Cilk_spawn.
11349         * c-common.h (contains_cilk_spawn_stmt): Add declaration.
11351 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
11353         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
11354         (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
11355         even when flag_preprocess_only.
11357 2014-02-26  Jason Merrill  <jason@redhat.com>
11359         PR c++/59231
11360         PR c++/11586
11361         * c-common.c (shorten_compare): Don't check
11362         c_inhibit_evaluation_warnings.
11364 2014-02-19  Jakub Jelinek  <jakub@redhat.com>
11366         PR c/37743
11367         * c-common.c (c_common_nodes_and_builtins): When initializing
11368         c_uint{16,32,64}_type_node, also set corresponding
11369         uint{16,32,64}_type_node to the same value.
11371         PR c++/60267
11372         * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
11373         for PRAGMA_IVDEP if flag_preprocess_only.
11375 2014-02-12  Jakub Jelinek  <jakub@redhat.com>
11377         PR c/60101
11378         * c-common.c (merge_tlist): If copy is true, call new_tlist,
11379         if false, add ADD itself, rather than vice versa.
11380         (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
11381         copy.  For SAVE_EXPR, only call merge_tlist once.
11383 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
11385         PR middle-end/60092
11386         * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
11387         and tree_to_uhwi.
11388         (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
11389         functions.
11390         (c_common_attribute_table): Add alloc_align and assume_aligned
11391         attributes.
11393 2014-02-06  Marek Polacek  <polacek@redhat.com>
11395         PR c/60087
11396         * c-common.c (warn_for_sign_compare): Call warning_at with location
11397         instead of warning.
11399 2014-02-05  Marek Polacek  <polacek@redhat.com>
11401         PR c/53123
11402         * c-omp.c (c_finish_omp_atomic): Remove unreachable return
11403         statement.
11405 2014-02-04  Marek Polacek  <polacek@redhat.com>
11407         PR c/60036
11408         * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
11409         SAVE_EXPR.
11411 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
11413         PR c++/53017
11414         PR c++/59211
11415         * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
11416         handle_vector_size_attribute, handle_nonnull_attribute): Call
11417         default_conversion on the attribute argument.
11418         (handle_nonnull_attribute): Increment the argument number.
11420 2014-01-31  Marek Polacek  <polacek@redhat.com>
11422         PR c/59963
11423         * c-common.c (add_atomic_size_parameter): Pass vNULL to
11424         build_function_call_vec.
11425         (resolve_overloaded_builtin): Likewise.
11426         * c-common.h (build_function_call_vec): Adjust declaration.
11428 2014-01-30  Marek Polacek  <polacek@redhat.com>
11430         PR c/59940
11431         * c-common.h (unsafe_conversion_p): Adjust declaration.
11432         (warnings_for_convert_and_check): Likewise.
11433         (convert_and_check): Likewise.
11434         * c-common.c (unsafe_conversion_p): Add location parameter.  Call
11435         expansion_point_location_if_in_system_header on it.
11436         (warnings_for_convert_and_check): Add location parameter.  Call
11437         expansion_point_location_if_in_system_header on it.  Use it.
11438         (convert_and_check): Add location parameter.  Use it.
11439         (conversion_warning): Likewise.
11440         (c_add_case_label): Adjust convert_and_check calls.
11441         (scalar_to_vector): Adjust unsafe_conversion_p calls.
11443 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
11445         * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
11446         flag_cilkplus.
11447         * c-pragma.c (init_pragma): Likewise.
11448         * c.opt: Likewise.
11450 2014-01-23  Marek Polacek  <polacek@redhat.com>
11452         PR c/59846
11453         * c-common.c (shorten_compare): Add location_t parameter.
11454         * c-common.h (shorten_binary_op): Adjust declaration.
11456 2014-01-23  Marek Polacek  <polacek@redhat.com>
11458         PR c/58346
11459         * c-common.c (pointer_to_zero_sized_aggr_p): New function.
11460         * c-common.h: Declare it.
11462 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
11464         * c-ada-spec.h (dump_ada_specs): Revert prototype change.
11465         * c-ada-spec.c (dump_ads): Likewise.
11466         (cpp_check): Likewise.
11467         (dump_ada_specs): Likewise.
11469 2014-01-15  Laurent Alfonsi  <laurent.alfonsi@st.com>
11471         PR c++/49718
11472         * c-common.c (handle_no_instrument_function_attribute): Allow
11473         no_instrument_function attribute in class member
11474         definition/declaration.
11476 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
11478         PR c/58943
11479         * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
11480         build_modify_expr with non-NOP_EXPR opcode.  Handle return from it
11481         being COMPOUND_EXPR.
11482         (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
11483         operand a SAVE_EXPR and second MODIFY_EXPR.
11485 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
11487         PR target/58115
11488         * c-pch.c (c_common_write_pch): Call
11489         prepare_target_option_nodes_for_pch.
11491 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
11493         Update copyright years
11495 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
11497         * array-notation-common.c, c-cilkplus.c: Use the standard form for
11498         the copyright notice.
11500 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
11502         * c-ada-spec.c (print_constructor): New function.
11503         (print_destructor): Retrieve the origin of the destructor.
11504         (print_ada_declaration): Revamp handling of constructors/destructors.
11506 2013-12-23  Stuart Hastings  <stuart@apple.com>
11507             Bill Maddox  <maddox@google.com>
11508             Jason Merrill  <jason@redhat.com>
11510         * c.opt: Add -fdeclone-ctor-dtor.
11511         * c-opts.c (c_common_post_options): Default to on iff -Os.
11513 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
11515         * c-common.c (c_common_attribute_table): Added "cilk simd function"
11516         attribute.
11517         * c-pragma.h (enum pragma_cilk_clause): Remove.
11518         (enum pragma_omp_clause): Added the following fields:
11519         PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
11520         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
11521         PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
11522         PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
11523         PRAGMA_CILK_CLAUSE_UNIFORM.
11526 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
11528         * cilk.c (cilk_outline): Made this function non-static.
11529         (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
11530         (create_cilk_wrapper): Added a new parameter: a function pointer.
11531         (c_install_body_w_frame_cleanup): Remove
11532         (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
11533         * c-common.h (cilk_outline): New prototype.
11534         (gimplify_cilk_spawn): Removed two parameters.
11535         (cilk_install_body_with_frame_cleanup): New prototype.
11536         * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
11537         CILK_SPAWN_STMT case.
11539 2013-12-11  Bernd Schmidt  <bernds@codesourcery.com>
11541         * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
11543         * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
11544         (int_array_type_node): Remove.
11545         * c-common.c (c_common_nodes_and_builtins): Don't build it.
11547 2013-12-05  Marek Polacek  <polacek@redhat.com>
11549         PR c/52023
11550         * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
11551         [ADJUST_FIELD_ALIGN].
11553 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
11555         PR c/52023
11556         * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
11557         and check field alignment if set.
11558         * c-common.h (c_sizeof_or_alignof_type): Update prototype.
11559         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
11561 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
11562             Marek Polacek  <polacek@redhat.com>
11564         * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
11565         sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
11567 2013-11-29   H.J. Lu  <hongjiu.lu@intel.com>
11569         PR c/59309
11570         * cilk.c (gimplify_cilk_spawn): Properly handle function without
11571         arguments.
11573 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
11575         PR c/59280
11576         * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
11577         goto invalid.  If it is error_mark_node, don't issue further
11578         diagnostics.
11580 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
11582         * c.opt (Wopenmp-simd): New.
11584 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
11586         * c-ubsan.h (ubsan_instrument_return): New prototype.
11587         * c-ubsan.c (ubsan_instrument_return): New function.
11589 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
11591         * c-common.c: Add required include files from gimple.h.
11592         * c-gimplify.c: Likewise.
11593         * cilk.c: Likewise.
11595 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
11597         * c-common.c (unsafe_conversion_p): Remove use of
11598         EXPR_LOC_OR_HERE macro.
11599         (conversion_warning): Likewise.
11600         (warnings_for_convert_and_check): Likewise.
11601         (warn_for_collisions_1): Likewise.
11602         (shorten_compare): Likewise, and remove use of in_system_header
11603         macro, using the location from the former.
11604         * c-lex.c (dump_one_header): Remove use of input_filename macro.
11605         (cb_def_pragma): Remove use of in_system_header macro.
11606         (lex_string): Likewise.
11607         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
11609 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
11610             Mike Stump  <mikestump@comcast.net>
11611             Richard Sandiford  <rdsandiford@googlemail.com>
11613         * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
11614         instead of TREE_INT_CST_LOW, in cases where there is a protecting
11615         tree_fits_shwi_p or tree_fits_uhwi_p.
11616         (dump_generic_ada_node): Likewise.
11617         * c-format.c (check_format_arg): Likewise.
11618         * c-pretty-print.c (pp_c_integer_constant): Likewise.
11620 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
11622         * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
11624 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
11626         PR c/53001
11627         * c-common.c (unsafe_conversion_p): Make this function
11628         return an enumeration with more detail.
11629         (conversion_warning): Use the new return type of
11630         unsafe_conversion_p to separately warn either about conversions
11631         that lower floating point number precision or about the other
11632         kinds of conversions.
11633         * c-common.h (enum conversion_safety): New enumeration.
11634         (unsafe_conversion_p): switching return type to
11635         conversion_safety enumeration.
11636         * c.opt: Adding new warning -Wfloat-conversion and
11637         enabling it with -Wconversion.
11639 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
11641         * c-opts.c: Include plugin.h.
11642         (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
11644 2013-11-19  Marek Polacek  <polacek@redhat.com>
11646         * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
11647         call.
11648         (ubsan_instrument_shift): Likewise.
11649         (ubsan_instrument_vla): Likewise.
11651 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
11653         * c-common.c (convert_vector_to_pointer_for_subscript): Remove
11654         cast to unsigned type.
11656 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
11658         * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
11659         tree_low_cst.
11660         (complete_array_type): Update comment to refer to tree_to_[su]hwi
11661         rather than tree_low_cst.
11663 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
11665         * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
11666         tree_to_uhwi throughout.
11668 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
11670         * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
11671         tree_low_cst (..., 0) with tree_to_shwi throughout.
11673 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
11675         * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
11676         host_integerp (..., 1) with tree_fits_uhwi_p throughout.
11678 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
11680         * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
11681         host_integerp (..., 0) with tree_fits_shwi_p throughout.
11683 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
11685         * c-cilkplus.c: New file.
11686         * c-common.c (readonly_error): Add location argument.
11687         * c-common.h (readonly_error): Same.
11688         (c_finish_cilk_clauses): Protoize.
11689         (c_check_cilk_loop): Same.
11690         c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
11691         Do not fail on error_mark_node.
11692         Abstract increment canonicalization to here...
11693         (c_omp_for_incr_canonicalize_ptr): New.
11694         c-pragma.c (init_pragma): Register "simd" pragma.
11695         c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
11696         (enum pragma_cilk_clause): New.
11698 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
11700         * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
11701         wchar_type and host_integerp checks.
11703 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
11705         * c-common.c: Likewise.
11706         * c-gimplify.c: Likewise.
11707         * cilk.c: Likewise.
11709 2013-11-14  Diego Novillo  <dnovillo@google.com>
11711         * c-common.c: Include fold-const.h.
11712         Include stor-layout.h.
11713         Include calls.h.
11714         Include stringpool.h.
11715         Include attribs.h.
11716         Include varasm.h.
11717         Include trans-mem.h.
11718         * c-cppbuiltin.c: Include stor-layout.h.
11719         Include stringpool.h.
11720         * c-format.c: Include stringpool.h.
11721         * c-lex.c: Include stringpool.h.
11722         Include stor-layout.h.
11723         * c-pragma.c: Include stringpool.h.
11724         Include attribs.h.
11725         Include varasm.h.
11726         Include gcc-symtab.h.
11727         * c-pretty-print.c: Include stor-layout.h.
11728         Include attribs.h.
11729         * cilk.c: Include stringpool.h.
11730         Include calls.h.
11732 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
11734         * c-common.h (enum rid): Add RID_AUTO_TYPE.
11735         * c-common.c (c_common_reswords): Add __auto_type.
11736         (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
11738 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
11740         * c-common.c: Include gimplify.h.
11741         * c-gimplify.c: Likewise.
11742         * cilk.c: Likewise.
11743         * c-omp.c: Include gimple-expr.h instead of gimple.h.
11744         * c-ubsan.c: Don't include gimple.h.
11746 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
11748         * c-common.c (c_common_reswords): Add _Thread_local.
11750 2013-11-09  Joseph Myers  <joseph@codesourcery.com>
11752         * c-common.c (atomic_size_supported_p): New function.
11753         (resolve_overloaded_atomic_exchange)
11754         (resolve_overloaded_atomic_compare_exchange)
11755         (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
11756         Use it instead of comparing size with a local list of sizes.
11758 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
11759             Joseph Myers  <joseph@codesourcery.com>
11761         * c-common.h (enum rid): Add RID_ATOMIC.
11762         * c-common.c (c_common_reswords): Add _Atomic.
11763         (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
11764         (keyword_is_type_qualifier): Accept RID_ATOMIC.
11765         * c-format.c (check_format_types): Check for extra _Atomic
11766         qualifiers in format argument.
11767         * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
11768         (pp_c_type_qualifier_list): Mention _Atomic in comment.
11770 2013-11-06  Tobias Burnus  <burnus@net-b.de>
11772         * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
11774 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
11776         * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
11777         standards modes.
11778         * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
11779         to mean lack of IEEE 754 support.
11781 2013-11-05  Tobias Burnus  <burnus@net-b.de>
11783         * c.opt (-Wdate-time): New option
11784         * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
11786 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
11788         * c-cppbuiltin.c (cpp_iec_559_value): Test
11789         flag_excess_precision_cmdline not flag_excess_precision.
11791 2013-11-05  Tobias Burnus  <burnus@net-b.de>
11793         * c.opt (fopenmp-simd): New option.
11794         * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
11795         (omp_pragmas): ... this new struct.
11796         (c_pp_lookup_pragma): Also walk omp_pragmas.
11797         (init_pragma): Init pragmas for -fopenmp-simd.
11799 2013-11-04  Marek Polacek  <polacek@redhat.com>
11801         PR c++/58979
11802         * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
11804 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
11806         * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
11807         New functions.
11808         (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
11810 2013-11-04  Eric Botcazou  <ebotcazou@adacore.com>
11812         * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
11813         (dump_ada_specs): Adjust prototype of second callback.
11814         * c-ada-spec.c (cpp_check): New global variable.
11815         (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
11816         (print_generic_ada_decl): Likewise.
11817         (has_static_fields): Change return type to bool and add guard.
11818         (has_nontrivial_methods): New predicate.
11819         (is_tagged_type): Change return type to bool.
11820         (separate_class_package): Call has_nontrivial_methods.
11821         (pp_ada_tree_identifier): Minor tweaks.
11822         (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
11823         (dump_ada_array_domains): Likewise.
11824         (dump_ada_array_type): Likewise.
11825         (dump_template_types): Remove cpp_check parameter and do not pass it to
11826         dump_generic_ada_node.
11827         (dump_ada_template): Likewise.
11828         (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
11829         recursively.
11830         (print_ada_methods): Change return type to integer.  Remove cpp_check
11831         parameter and do not pass it down.
11832         (dump_nested_types): Remove cpp_check parameter and do not pass it to
11833         dump_generic_ada_node.
11834         (print_ada_declaration): Likewise.  Test RECORD_OR_UNION_TYPE_P before
11835         accessing methods.
11836         (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
11837         down.  Use has_nontrivial_methods to recognize C++ classes.  Use return
11838         value of print_ada_methods.
11839         (dump_ads): Rename cpp_check parameter to check and adjust prototype.
11840         Set cpp_check to it before invoking dump_ada_nodes.
11841         (dump_ada_specs): Likewise.
11843 2013-11-03  Marek Polacek  <polacek@redhat.com>
11845         * c-ubsan.c: Don't include hash-table.h.
11846         (ubsan_instrument_vla): New function.
11847         * c-ubsan.h: Declare it.
11849 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
11851         Automated part of renaming of symtab_node_base to symtab_node.
11853         Patch autogenerated by rename_symtab.py from
11854         https://github.com/davidmalcolm/gcc-refactoring-scripts
11855         revision 58bb219cc090b2f4516a9297d868c245495ee622
11857         * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
11858         symtab_node_base to symtab_node.
11860 2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
11862         Implement C++14 digit separators.
11863         * c-lex.c (interpret_float): Remove digit separators from scratch string
11864         before building real literal.
11866 2013-10-30  Jakub Jelinek  <jakub@redhat.com>
11868         * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
11870 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
11872         * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
11873         fields.
11874         (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
11875         enabled.
11876         * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
11877         (insert_cilk_frame): New prototype.
11878         (cilk_init_builtins): Likewise.
11879         (gimplify_cilk_spawn): Likewise.
11880         (c_cilk_install_body_w_frame_cleanup): Likewise.
11881         (cilk_detect_spawn_and_unwrap): Likewise.
11882         (cilk_set_spawn_marker): Likewise.
11883         (build_cilk_sync): Likewise.
11884         (build_cilk_spawn): Likewise.
11885         * cilk.c: New file.
11887 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
11889         Patch autogenerated by refactor_symtab.py from
11890         https://github.com/davidmalcolm/gcc-refactoring-scripts
11891         revision 58bb219cc090b2f4516a9297d868c245495ee622
11893         * c-gimplify.c (c_genericize): Update for conversion of symtab types
11894         to a true class hierarchy.
11895         * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
11897 2013-10-27  Richard Sandiford  <rdsandiford@googlemail.com>
11899         * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
11901 2013-10-26  Jeff Law  <law@redhat.com>
11903         * c-common.c (c_define_builtins): Remove mudflap support.
11904         * c.opt: Ignore and warn for mudflap options.
11906 2013-10-24  Tobias Burnus  <burnus@net-b.de>
11908         PR other/33426
11909         * c-pragma.c (init_pragma) Add #pragma ivdep handling.
11910         * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
11912 2013-10-23  Jason Merrill  <jason@redhat.com>
11914         * c-format.c (gcc_cxxdiag_char_table): Add %X.
11916 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
11918         * c-common.h (omp_clause_mask::operator !=): New method.
11919         * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
11920         instead of if (mask & something) tests everywhere.
11922         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
11923         201307 instead of 201107.
11924         * c-common.c (DEF_FUNCTION_TYPE_8): Define.
11925         (c_common_attribute_table): Add "omp declare target" and
11926         "omp declare simd" attributes.
11927         (handle_omp_declare_target_attribute,
11928         handle_omp_declare_simd_attribute): New functions.
11929         * c-omp.c: Include c-pragma.h.
11930         (c_finish_omp_taskgroup): New function.
11931         (c_finish_omp_atomic): Add swapped argument, if true,
11932         build the operation first with rhs, lhs arguments and use NOP_EXPR
11933         build_modify_expr.
11934         (c_finish_omp_for): Add code argument, pass it down to make_code.
11935         (c_omp_split_clauses): New function.
11936         (c_split_parallel_clauses): Removed.
11937         (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
11938         c_omp_declare_simd_clauses_to_decls): New functions.
11939         * c-common.h (omp_clause_mask): New type.
11940         (OMP_CLAUSE_MASK_1): Define.
11941         (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
11942         omp_clause_mask::operator |=, omp_clause_mask::operator ~,
11943         omp_clause_mask::operator |, omp_clause_mask::operator &,
11944         omp_clause_mask::operator <<, omp_clause_mask::operator >>,
11945         omp_clause_mask::operator ==): New methods.
11946         (enum c_omp_clause_split): New.
11947         (c_finish_omp_taskgroup): New prototype.
11948         (c_finish_omp_atomic): Add swapped argument.
11949         (c_finish_omp_for): Add code argument.
11950         (c_omp_split_clauses): New prototype.
11951         (c_split_parallel_clauses): Removed.
11952         (c_omp_declare_simd_clauses_to_numbers,
11953         c_omp_declare_simd_clauses_to_decls): New prototypes.
11954         * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
11955         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
11956         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
11957         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
11958         PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
11959         Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
11960         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
11961         PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
11962         PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
11963         PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
11964         PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
11965         PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
11966         PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
11967         PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
11968         PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
11969         PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
11970         PRAGMA_OMP_CLAUSE_UNIFORM.
11972 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
11974         PR tree-optimization/20318
11975         * c-common.c (handle_returns_nonnull_attribute): New function.
11976         (c_common_attribute_table): Add returns_nonnull.
11978 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
11980         PR c++/19476
11981         * c.opt (fcheck-new): Move to common.opt.
11983 2013-09-25  Marek Polacek  <polacek@redhat.com>
11984             Jakub Jelinek  <jakub@redhat.com>
11986         PR sanitizer/58413
11987         * c-ubsan.c (ubsan_instrument_shift): Don't instrument
11988         an expression if we can prove it is correct.
11989         (ubsan_instrument_division): Likewise.  Remove unnecessary
11990         check.
11992 2013-09-18  Marek Polacek  <polacek@redhat.com>
11994         PR sanitizer/58411
11995         * c-common.c (handle_no_sanitize_undefined_attribute): New function.
11996         Declare it.
11997         (struct attribute_spec c_common_att): Add no_sanitize_undefined.
11999 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
12001         PR target/48094
12002         * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
12003         fobjc-gc, freplace-objc-classes): Accept for LTO.
12005 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
12007         * c-target.def: New hook
12009 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
12011         PR c++/43452
12012         * c.opt (Wdelete-incomplete): Add.
12014 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
12016         * c-common.c (same_scalar_type_ignoring_signedness): Delete.
12017         (vector_types_compatible_elements_p): New function.
12018         * c-common.h: (same_scalar_type_ignoring_signedness): Delete
12019         declaration.
12020         (vector_types_compatible_elements_p): Declare.
12022 2013-09-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12024         * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
12025         a virtual member function.
12026         (pp_simple_type_specifier): Remove.
12027         (pp_c_type_specifier): Likewise.
12028         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
12029         Rename from pp_c_type_specifier.  Adjust.
12030         (c_pretty_printer::c_pretty_printer): Do not assign to
12031         simple_type_specifier.
12033 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12035         * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
12036         member function.
12037         (c_pretty_printer::storage_class_specifier): Likewise.
12038         (c_pretty_printer::initializer): Likewise.
12039         (pp_declaration): Remove.
12040         (pp_declaration_specifiers): Likewise.
12041         (pp_abstract_declarator): Likewise.
12042         (pp_declarator): Likewise.
12043         (pp_type_id): Likewise.
12044         (pp_statement): Likewise.
12045         (pp_constant): Likewise.
12046         (pp_id_expression): Likewise.
12047         (pp_primary_expression): Likewise.
12048         (pp_unary_expression): Likewise.
12049         (pp_multiplicative_expression): Likewise.
12050         (pp_conditional_expression): Likewise.
12051         (pp_assignment_expression): Likewise.
12052         (pp_expression): Likewise.
12053         (pp_c_type_id): Likewise.
12054         (pp_c_storage_class_specifier): Likewise.
12055         * c-pretty-print.c (pp_c_type_cast): Tidy.
12056         (pp_c_pointer): Likewise.
12057         (pp_c_type_specifier): Likewise.
12058         (pp_c_parameter_type_list): Likewise.
12059         (pp_c_function_definition): Likewise.
12060         (pp_c_init_declarator): Likewise.
12061         (pp_c_initializer_list): Likewise.
12062         (pp_c_constructor_elts): Likewise.
12063         (c_pretty_printer::direct_abstract_declarator): Likewise.
12064         (c_pretty_printer::declaration_specifiers): Likewise.
12065         (c_pretty_printer::primary_expression): Likewise.
12066         (c_pretty_printer::postfix_expression): Likewise.
12067         (c_pretty_printer::type_id): Rename from pp_c_type_id.
12068         (c_pretty_printer::storage_class_specifier): Rename from
12069         pp_c_storage_class_specifier.
12070         (c_pretty_printer::initializer): Rename from pp_c_initializer.
12071         (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
12072         storage_class_specifier, initializer, offset_list, flags.
12074 2013-08-30  Marek Polacek  <polacek@redhat.com>
12076         * c-ubsan.c: New file.
12077         * c-ubsan.h: New file.
12079 2013-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12081         * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
12082         member function.
12083         (c_pretty_printer::declaration_specifiers): Likewise.
12084         (c_pretty_printer::declarator): Likewise.
12085         (c_pretty_printer::abstract_declarator): Likewise.
12086         (c_pretty_printer::direct_abstract_declarator): Likewise.
12087         (c_pretty_printer::direct_declarator): Likewise.
12088         (c_pretty_printer::function_specifier): Likewise.
12089         (pp_declaration): Adjust.
12090         (pp_declaration_specifiers): Likewise.
12091         (pp_abstract_declarator): Likewise.
12092         (pp_direct_declarator): Likewise.
12093         (pp_function_specifier): Likewise.
12094         (pp_direct_abstract_declarator): Remove as unused.
12095         (pp_c_declaration): Remove.
12096         (pp_c_declaration_specifiers): Likewise.
12097         (pp_c_declarator): Likewise.
12098         (pp_c_direct_declarator): Likewise.
12099         (pp_c_function_specifier): Likewise.
12100         (pp_c_direct_abstract_declarator): Likewise.
12101         * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
12102         from pp_c_abstract_declarator.  Adjust.
12103         (c_pretty_printer::direct_abstract_declarator): Rename from
12104         pp_c_direct_abstract_declarator.  Adjust.
12105         (c_pretty_printer::function_specifier): Rename from
12106         pp_c_function_specifier.  Adjust.
12107         (c_pretty_printer::declaration_specifiers): Rename from
12108         pp_c_declaration_specifiers.  Adjust.
12109         (c_pretty_printer::direct_declarator): Rename from
12110         pp_c_direct_declarator.  Adjust.
12111         (c_pretty_printer::declarator): Rename from pp_c_declarator.  Adjust.
12112         (c_pretty_printer::declaration): Rename from pp_c_declaration.  Adjust.
12113         (c_pretty_printer::c_pretty_printer): Do not assign to
12114         declaration, declaration_specifiers, declarator,
12115         direct_declarator, direct_abstract_declarator, function_specifier.
12117 2013-08-26  Gabriel Dos Reis  <gdre@integrable-solutions.net>
12119         * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
12120         virtual member function.
12121         (c_pretty_printer::multiplicative_expression): Likewise.
12122         (c_pretty_printer::conditional_expression): Likewise.
12123         (c_pretty_printer::assignment_expression): Likewise.
12124         (c_pretty_printer::expression): Likewise.
12125         (pp_unary_expression): Adjust.
12126         (pp_multiplicative_expression): Likewise.
12127         (pp_assignment_expression): Likewise.
12128         (pp_conditional_expression): Likewise.
12129         (pp_expression): Likewise.
12130         * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
12131         from pp_c_unary_expression.  Adjust.
12132         (c_pretty_printer::multiplicative_expression): Rename from
12133         pp_c_multiplicative_expression.  Adjust.
12134         (c_pretty_printer::conditional_expression): Rename from
12135         pp_c_conditional_expression.  Adjust.
12136         (c_pretty_printer::assignment_expression): Rename from
12137         pp_c_assignment_expression.  Adjust.
12138         (c_pretty_printer::expression): Rename from pp_c_expression.  Adjust.
12139         (c_pretty_printer::c_pretty_printer): Do not assign to
12140         unary_expression, multiplicative_expression,
12141         conditional_expression, expression.
12143 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12145         * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
12146         virtual member function.
12147         (pp_postfix_expression): Adjust.
12148         (pp_c_postfix_expression): Remove.
12149         * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
12150         from pp_c_postfix_expression.  Adjust.
12151         (c_pretty_printer::c_pretty_printer): Do not assign to
12152         postfix_expression.
12154 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12156         * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
12157         virtua member function.
12158         (pp_primary_expression): Adjust.
12159         (pp_c_primary_expression): Remove.
12160         * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
12161         from pp_c_primary_expression.  Adjust.
12162         (pp_c_initializer_list): Use pp_primary_expression.
12163         (c_pretty_printer::c_pretty_printer): Do not assign to
12164         primary_expression.
12166 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12168         * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
12169         * c-pretty-print.c (M_): Remove.
12170         (c_pretty_printer::translate_string): Define.
12171         (pp_c_type_specifier): Use it.
12172         (pp_c_primary_expression): Likewise.
12173         (pp_c_expression): Likewise.
12175 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12177         * c-pretty-print.h (c_pretty_printer::id_expression): Now a
12178         virtual function.
12179         (pp_c_id_expression): Remove.
12180         (pp_id_expression): Adjust.
12181         * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
12182         pp_c_id_expression.  Adjust.
12183         (pp_c_postfix_expression): Use pp_id_expression.
12184         (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
12186 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12188         * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
12189         member function.
12190         (pp_constant): Adjust.
12191         (pp_c_constant): Remove.
12192         * c-pretty-print.c (c_pretty_printer::constant): Rename from
12193         pp_c_constant.  Adjust.
12194         (pp_c_constant)
12195         (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
12196         (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
12198 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12200         * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
12201         (c_pretty_printer::c_pretty_printer): Declare.
12202         * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
12203         c_pretty_printer_init.  Adjust.
12204         (print_c_tree): Do not call c_pretty_printer_init.
12205         * c-ada-spec.c (dump_ads): Remove call to pp_construct.
12207 2013-08-09  Arnaud Charlet  <charlet@adacore.com>
12209         * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
12211 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
12213         PR c++/58080
12214         * c-common.c (pointer_int_sum): Add bool parameter.
12215         * c-common.h (pointer_int_sum): Adjust declaration.
12217 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12219         * c-pretty-print.c (print_c_tree): Simplify.  Use non-static local
12220         c_pretty_printer variable.
12222 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12224         * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
12225         (pp_base): Remove.
12226         (pp_c_base): Likewise.  Adjust users.
12227         * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
12228         (pp_c_whitespace): Do not call pp_base.
12229         (pp_c_left_paren): Likewise.
12230         (pp_c_right_paren): Likewise.
12231         (pp_c_left_brace): Likewise.
12232         (pp_c_right_brace): Likewise.
12233         (pp_c_left_bracket): Likewise.
12234         (pp_c_right_bracket): Likewise.
12235         (pp_c_dot): Likewise.
12236         (pp_c_ampersand): Likewise.
12237         (pp_c_star): Likewise.
12238         (pp_c_arrow): Likewise.
12239         (pp_c_semicolon): Likewise.
12240         (pp_c_complement): Likewise.
12241         (pp_c_exclamation): Likewise.
12242         (pp_c_direct_declarator): Likewise.
12243         (pp_c_ws_string): Likewise.
12244         (pp_c_identifier): Likewise.
12245         (pp_c_statement): Likewise.
12246         (print_c_tree): Likewise.
12248 2013-08-04  Ed Smith-Rowland  <3dw4rd@verizon.net>
12250         PR c++/58072
12251         * c-common.c (c_parse_error): Catch user-defined literal tokens and
12252         provide useful error strings.
12254 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12256         * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
12257         printer functions instead of pp_string or operators and punctuators.
12258         (dump_generic_ada_node): Likewise.
12259         * c-pretty-print.c (pp_c_type_specifier): Likewise.
12260         (pp_c_relational_expression): Likewise.
12261         (pp_c_logical_or_expression): Likewise.
12263 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12265         * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
12266         functions instead of pp_character.
12267         (pp_ada_tree_identifier): Likewise.
12268         (dump_ada_double_name): Likewise.
12269         (dump_ada_function_declaration): Likewise.
12270         (dump_ada_array_domains): Likewise.
12271         (dump_template_types): Likewise.
12272         (dump_generic_ada_node): Likewise.
12273         (print_ada_declaration): Likewise.
12274         (print_ada_struct_decl): Likewise.
12275         * c-pretty-print.c (pp_c_integer_constant): Likewise.
12277 2013-07-23  Tom Tromey  <tromey@redhat.com>
12279         * c-common.h (enum rid) <RID_GENERIC>: New constant.
12280         * c-common.c (c_common_reswords): Add _Generic.
12282 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
12284         * c-common.c: Fix typos.
12285         * c-common.h: Likewise.
12287 2013-07-13  Lubos Lunak  <l.lunak@suse.cz>
12289         PR c++/55203
12290         * c-common.c (c_common_attribute_table): Add warn_unused.
12291         (handle_warn_unused_attribute): New.
12293 2013-07-10  Jakub Jelinek  <jakub@redhat.com>
12295         * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
12296         for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
12298 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
12300         PR c++/57869
12301         * c.opt: Add Wconditionally-supported.
12303 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
12305         * array-notation-common.c (length_mismatch_in_expr_p): Delete
12306         unused variables l_length and l_node.
12308 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
12310         PR c/57821
12311         * c-common.c (complete_array_type): Delay folding first index
12312         like other indices.  When folding, check for index overflow.
12314 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
12316         PR c++/57509
12317         * c-common.h (c_build_vec_perm_expr): New complain argument.
12318         * c-common.c (c_build_vec_perm_expr): Likewise.
12319         Use save_expr also in C++.
12321 2013-06-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12323         * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
12324         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
12325         * c-opts.c (c_common_post_options): Likewise.
12327 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
12329         * array-notation-common.c (length_mismatch_in_expr): Changed the
12330         parameter type's from a dynamic array to a vec_tree.  Also removed
12331         the size parameters.
12332         * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
12333         the change above.
12335 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
12337         * c-common.h (struct cilkplus_an_parts): New structure.
12338         (struct cilkplus_an_loop_parts): Likewise.
12339         (cilkplus_extract_an_triplets): New prototype.
12340         (fix_sec_implicit_args): Likewise.
12341         * array-notation-common.c (cilkplus_extract_an_triplets): New function.
12342         (fix_sec_implicit_args): Likewise.
12344 2013-06-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
12346         * array-notation-common.c (find_inv_trees): Removed an unwanted
12347         typecasting.
12348         * c-common.h (struct inv_list::additional_tcodes): Changed type from
12349         enum rid to enum tree_code.
12351 2013-06-11  Jan Hubicka  <jh@suse.cz>
12353         * c-common.c (handle_alias_ifunc_attribute): Do not set
12354         DECL_EXTERNAL for weakref variables.
12355         * c-pragma.c (handle_pragma_weak): Make sure aliases
12356         are not declared as external.
12358 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
12360         * array-notation-common.c (length_mismatch_in_expr_p): Moved this
12361         function from c/c-array-notation.c.
12362         (is_cilkplus_reduce_builtin): Likewise.
12363         (find_rank): Likewise.
12364         (extract_array_notation_exprs): Likewise.
12365         (replace_array_notations): Likewise.
12366         (find_inv_trees): Likewise.
12367         (replace_inv_trees): Likewise.
12368         (contains_array_notation_expr): Likewise.
12369         (find_correct_array_notation_type): Likewise.
12370         * c-common.h (struct inv_list): Moved this struct from the file
12371         c/c-array-notation.c and added a new field called additional tcodes.
12372         (length_mismatch_in_expr_p): New prototype.
12373         (is_cilkplus_reduce_builtin): Likewise.
12374         (find_rank): Likewise.
12375         (extract_array_notation_exprs): Likewise.
12376         (replace_array_notation): Likewise.
12377         (find_inv_trees): Likewise.
12378         (replace_inv_trees): Likewise.
12379         (find_correct_array_notation_type): Likewise.
12381 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
12383         * c-common.c (c_define_builtins): When cilkplus is enabled, the
12384         function array_notation_init_builtins is called.
12385         (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
12386         * c-common.def (ARRAY_NOTATION_REF): New tree.
12387         * c-common.h (build_array_notation_expr): New function declaration.
12388         (build_array_notation_ref): Likewise.
12389         (extract_sec_implicit_index_arg): New extern declaration.
12390         (is_sec_implicit_index_fn): Likewise.
12391         (ARRAY_NOTATION_CHECK): New define.
12392         (ARRAY_NOTATION_ARRAY): Likewise.
12393         (ARRAY_NOTATION_START): Likewise.
12394         (ARRAY_NOTATION_LENGTH): Likewise.
12395         (ARRAY_NOTATION_STRIDE): Likewise.
12396         * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
12397         ARRAY_NOTATION_REF.
12398         (pp_c_expression): Likewise.
12399         * c.opt (flag_enable_cilkplus): New flag.
12400         * array-notation-common.c: New file.
12402 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
12404         PR c++/57274
12405         * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
12407 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
12409         * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
12410         vectors.
12412 2013-05-07  Han Shen  <shenhan@google.com>
12414         * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
12416 2013-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12418         * c-common.c (check_user_alignment): Emit error for negative values.
12420 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
12422         * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
12424 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
12426         * c-cppbuiltin.c (c_cpp_builtins): Do not define
12427         __GXX_EXPERIMENTAL_CXX1Y__.
12429 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
12430             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12432         * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
12433         * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
12434         to simply use OPT_Wpointer_arith.
12435         (c_sizeof_or_alignof_type): Likewise.
12437 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
12439         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
12441 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
12443         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
12444         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
12445         specifiers.
12447 2013-04-07  Steven Bosscher  <steven@gcc.gnu.org>
12449         * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
12451 2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
12453         * c-common.c (pointer_int_sum): Remove dead code.
12455 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
12457         PR middle-end/56524
12458         * c-common.c (handle_optimize_attribute): Don't call
12459         save_optabs_if_changed.
12461 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
12463         PR middle-end/56461
12464         * c-pch.c (pch_init): Free target_validity at the end.
12466 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
12468         * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
12470 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
12471             Jakub Jelinek  <jakub@redhat.com>
12473         PR sanitizer/56454
12474         * c-common.c (handle_no_sanitize_address_attribute): New function.
12475         (c_common_attribute_table): Add no_sanitize_address attribute.
12476         (handle_no_address_safety_analysis_attribute): Add
12477         no_sanitize_address attribute, not no_address_safety_analysis
12478         attribute.
12480 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
12482         PR target/52555
12483         * c-common.c (handle_optimize_attribute): Call
12484         save_optabs_if_changed.
12486 2013-02-18  Jakub Jelinek  <jakub@redhat.com>
12487             Steven Bosscher  <steven@gcc.gnu.org>
12489         PR pch/54117
12490         * c-opts.c (c_common_post_options): If debug info is enabled
12491         and non-dwarf*, refuse to load PCH files and when writing PCH
12492         file warn.
12494 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
12496         PR middle-end/56167
12497         * c-common.c (handle_error_attribute): Fix condition.
12499 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
12501         PR c++/55742
12502         * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
12504 2013-01-18  Jason Merrill  <jason@redhat.com>
12506         PR target/54908
12507         * c.opt (-fextern-tls-init): New.
12508         * c-opts.c (c_common_post_options): Handle it.
12510 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
12512         PR c/48418
12513         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
12514         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
12515         and is either negative or bigger or equal to type precision
12516         of the first operand.
12518 2012-12-03  Marek Polacek  <polacek@redhat.com>
12520         PR c/55570
12521         * c-common.c (check_user_alignment): Swap order of tests,
12522         check TREE_CODE first.
12524 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
12526         PR c++/52654
12527         * c-common.h (overflow_type): New enum.
12528         (build_userdef_literal): Add overflow_type argument.
12529         (tree_userdef_literal): Add overflow_type.
12530         (USERDEF_LITERAL_OVERFLOW): New access macro.
12531         * c-common.c (build_userdef_literal): Add overflow_type
12532         argument.
12533         * c-lex.c (c_lex_with_flags): Add overflow_type to
12534         build_userdef_literal calls.
12535         (interpret_integer, interpret_float): Add overflow_type argument.
12537 2012-11-28  Richard Biener  <rguenther@suse.de>
12539         PR c/35634
12540         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
12541         here and use a type with proper overflow behavior for types that would
12542         need to be promoted for the arithmetic.
12544 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
12546         PR sanitizer/55435
12547         * c-common.c (handle_no_address_safety_analysis_attribute): New
12548         function.
12549         (c_common_attribute_table): Add no_address_safety_analysis.
12551 2012-11-16  Simon Baldwin  <simonb@google.com>
12553         * c.opt: Add f[no-]canonical-system-headers.
12554         * c-opts.c (c_common_handle_option): Handle
12555         OPT_fcanonical_system_headers.
12557 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
12559         PR c++/54413
12560         * c-opts.c (c_common_handle_option): Set new flags.
12561         * c.opt: Describe new flags.
12563 2012-11-09  Jason Merrill  <jason@redhat.com>
12565         * c.opt (Wabi-tag): New.
12567 2012-11-09  Andi Kleen  <ak@linux.intel.com>
12569         PR 55139
12570         * c-common.c (get_atomic_generic_size): Mask with
12571         MEMMODEL_MASK
12573 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12575         PR c/53063
12576         * c.opt (Wformat): Make it Alias Wformat=1.
12577         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
12578         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
12579         LangEnabledBy.
12580         (Wformat=): RejectNegative. Use LangEnabledBy.
12581         (Wnonnull): Use LangEnabledBy.
12582         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
12583         * c-format.c (set_Wformat): Delete.
12584         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
12585         (maybe_read_dollar_number): Likewise.
12586         (avoid_dollar_number): Likewise.
12587         (finish_dollar_format_checking): Likewise.
12588         (check_format_info): Likewise.
12589         (check_format_info_main): Likewise.
12590         (check_format_types): Likewise.
12591         (format_type_warning): Likewise.
12592         * c-common.c (int): Likewise.
12593         (check_function_sentinel): Likewise.
12594         * c-common.h (warn_format,set_Wformat): Do not declare here.
12596 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12598         PR c/53063
12599         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
12600         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
12601         Use LangEnabledBy.
12602         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
12603         common.opt.
12604         (Wvariadic-macros): Init(1).
12605         * c-opts.c (c_common_handle_option): Do not handle them
12606         explicitly.
12607         (c_common_post_options): Likewise.
12608         (sanitize_cpp_opts): warn_unused_macros is now
12609         cpp_warn_unused_macros.
12610         (push_command_line_include): Likewise.
12611         * c-common.c (warn_unknown_pragmas): Do not define.
12612         * c-common.h (warn_unknown_pragmas): Do not declare.
12614 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12616         PR c/51294
12617         * c-common.c (conversion_warning): Handle conditional expressions.
12619 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
12621         PR c++/54930
12622         * c.opt (Wreturn_local_addr): Define new option.
12624 2012-10-25  Jason Merrill  <jason@redhat.com>
12626         * c.opt (Wvirtual-move-assign): New.
12628         * c.opt (Winherited-variadic-ctor): New.
12630 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
12632         PR c++/54427
12633         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
12635 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
12637         * c-common.h (pch_cpp_save_state): Declare.
12638         * c-target.def (c_preinclude): New hook.
12639         * c-opts.c (done_preinclude): New.
12640         (push_command_line_include): Handle default preincluded header.
12641         (cb_file_change): Call pch_cpp_save_state when calling
12642         push_command_line_include.
12643         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
12644         (pch_cpp_save_state): New.
12645         (pch_init): Call pch_cpp_save_state conditionally, instead of
12646         calling cpp_save_state.
12648 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12650         PR c/53063
12651         PR c/40989
12652         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
12653         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
12654         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
12655         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
12656         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
12657         * c-opts.c (c_common_handle_option): Remove explicit handling from
12658         here.
12659         (c_common_post_options): Likewise.
12661 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
12663         * c-ada-spec.c (LOCATION_COL): Delete.
12664         (compare_location): New function.
12665         (compare_node): Use it.
12666         (compare_comment): Likewise.
12668 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12670         PR c/53063
12671         PR c/40989
12672         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
12673         * c-opts.c (c_common_handle_option): Do not set them here. Add
12674         comment.
12675         (c_common_post_options): Likewise.
12677 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
12679         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
12680         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
12681         Remove POINTER_TYPE handling, add large unsigned handling and use
12682         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
12684 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
12686         PR c/54381
12687         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
12688         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
12689         locs and array of 3 trees instead of just single loc and single
12690         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
12691         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
12692         For *cmp* builtins that take two sources strings report warnings
12693         about first and second source, not about destination and source.
12695 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
12697         PR c++/53055
12698         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
12700 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
12702         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
12703         declaring something coming from another file.
12705 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
12707         PR ada/54845
12708         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
12710 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
12712         PR c++/54194
12713         * c-common.c (warn_about_parentheses): Add location_t parameter;
12714         use EXPR_LOC_OR_LOC.
12715         * c-common.h: Update declaration.
12717 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
12719         PR c++/54427
12720         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
12721         more operations. Make error messages optional.
12722         * c-common.h (enum stv_conv): Moved from c-typeck.c.
12723         (scalar_to_vector): Declare.
12725 2012-10-08  Jason Merrill  <jason@redhat.com>
12727         * c-common.c (c_common_reswords): Add thread_local.
12729 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
12731         PR c++/53528 C++11 attribute support
12732         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
12733         new functions.
12734         * c-common.c (check_cxx_fundamental_alignment_constraints): New
12735         static function.
12736         (handle_aligned_attribute): In choose strictest alignment
12737         among many.  Use new check_cxx_fundamental_alignment_constraints.
12738         (handle_transparent_union_attribute): In c++11 attribute syntax,
12739         don't look through typedefs.
12741 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
12743         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
12744         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
12745         out of dumpfile.h.
12747 2012-09-25  Dehao Chen  <dehao@google.com>
12749         PR middle-end/54645
12750         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
12751         map when read in the pch.
12753 2012-09-18  Arnaud Charlet  <charlet@adacore.com>
12755         * c-ada-spec.c: Style fixes.
12757 2012-09-18  Thomas Quinot  <quinot@adacore.com>
12759         * c.opt (-fada-spec-parent): Define new command line switch.
12760         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
12761         is specified, generate binding spec as a child of the specified unit.
12763 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
12764             Manuel López-Ibáñez  <manu@gcc.gnu.org>
12766         PR c++/53210
12767         * c.opt ([Winit-self]): Enabled by -Wall in C++.
12769 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
12771         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
12772         for pointers, and add missing Convention C pragma.
12773         (print_ada_struct_decl): Add missing aliased keyword.
12774         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
12776 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
12778         * c-common.c (sizeof_pointer_memaccess_warning): New function.
12779         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
12780         * c-opts.c (c_common_handle_option): Enable it for -Wall.
12781         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
12782         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
12784 2012-08-10  Richard Guenther  <rguenther@suse.de>
12786         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
12788 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
12790         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
12791         instead of separate pp_newline and pp_flush.
12792         (print_c_tree): Likewise.
12794 2012-07-26  Richard Henderson  <rth@redhat.com>
12796         * c-common.c (handle_hot_attribute): Allow labels.
12797         (handle_cold_attribute): Likewise.
12799 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
12801         PR c++/28656
12802         * c-common.c (check_function_nonnull): Handle multiple nonnull
12803         attributes properly.
12805 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
12807         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
12808         * c-ada-spec.c: Likewise.
12809         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
12811 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
12813         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
12814         Remove code conditional on it.
12816 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
12818         * c-gimplify.c: Do not include basic-block.h.
12819         * c-common.c: Do not include linfuncs.h.
12821 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
12823         * c-common.h: Include tree.h.
12825 2012-07-02  Jason Merrill  <jason@redhat.com>
12827         PR c++/53524
12828         * c-common.c (get_priority): Call default_conversion.
12830 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
12832         * c-pch.c (c_common_write_pch): Remove unused variables.
12834 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
12836         * cppspec.c: Moved from gcc/ to here.
12838 2012-06-27  Kai Tietz  <ktietz@redhat.com>
12840         PR preprocessor/37215
12841         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
12843 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
12845         * c-common.h (c_common_print_pch_checksum): Remove.
12846         * c-pch.c: Do not include output.h.
12847         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
12848         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
12849         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
12850         (struct c_pch_header): Remove.
12851         (get_ident): Update gpch version.
12852         (pch_init): Do not print executable_checksum to asm_out_file.
12853         Do not fail if there is no asm_out_file to read back from.  Set
12854         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
12855         (c_common_write_pch): Verify that nothing was written to asm_out_file
12856         since pch_init was called.  Do not write a c_pch_header, and do not
12857         copy from asm_out_file to the PCH.
12858         (c_common_read_pch): Do not read a c_pch_header, and do not restore
12859         the content of asm_out_file from the PCH.
12860         (c_common_print_pch_checksum): Remove.
12861         * c-opts.c (c_common_init): Print out executable_checksum directly.
12863 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
12865         * c-target.def (objc_declare_unresolved_class_reference,
12866         objc_declare_class_definition): Add new hooks.
12868 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
12870         * c-lex.c: Do not include output.h.
12871         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
12872         Remove uses of ASM_OUTPUT_IDENT.
12874 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
12876         PR c++/51033
12877         * c-common.h (c_build_vec_perm_expr): Move decl here.
12878         * c-common.c (c_build_vec_perm_expr): Move definition
12879         here.
12881 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
12883         * c.opt (fconserve-space): Turn into a no-op.
12885 2012-06-04  Sterling Augustine  <saugustine@google.com>
12887         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
12888         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
12889         both the start and end of the function.
12891 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
12893         * c-common.c: Do not include output.h.
12894         * c-pragma.c: Likewise.
12896 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
12898         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
12899         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
12900         (lang_decl_name): Handle namespace decls.
12902 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
12904         * c-ada-spec.c: Do not include output.h.
12905         * c-semantics.c: Likewise.
12907 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
12909         * c-common.c: Fix typo.
12911 2012-05-29  Michael Matz  <matz@suse.de>
12913         * c-common.h (c_expand_decl): Remove prototype.
12915 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12917         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
12918         * c-opts.c (c_common_handle_option): Remove code handling
12919         warn_missing_braces.
12921 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
12923         PR c++/25137
12924         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
12925         -Wmissing_braces.
12927 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
12929         PR c++/53322
12930         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
12932 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12934         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
12935         * c-opts.c (c_common_handle_option): Do not handle explicitly
12936         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
12938 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
12940         PR preprocessor/7263
12941         * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
12942         to cpp_classify_number.  For diagnostics, use the precise location
12943         instead of the global input_location.
12945 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
12947         PR c++/11856
12948         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
12950 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
12952         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
12954 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12956         PR 53063
12957         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
12958         Wreorder): Use LangEnabledBy.
12959         * c-opts.c (c_common_handle_option): Do not enable them
12960         explicitly. Call lang-specific generated functions.
12961         (c_common_post_options): Do not set them here.
12963 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12965         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
12966         Wmissing-field-initializers,Wmissing-parameter-type,
12967         Wold-style-declaration,Woverride-init): Use EnabledBy.
12968         * c-opts.c (c_common_post_options): Do not set here explicitly.
12970 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12972         PR 53063
12973         * c-opts.c (c_common_handle_option): Use handle_generated_option
12974         to enable sub-options.
12976 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
12978         PR c++/53158
12979         * c-common.c (warnings_for_convert_and_check): Use warning_at.
12981 2012-05-10  Richard Guenther  <rguenther@suse.de>
12983         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
12984         adjust commentary about TYPE_IS_SIZETYPE types.
12986 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12988         PR c++/53261
12989         * c-common.c (warn_logical_operator): Check that argument of
12990         integer_zerop is not NULL.
12992 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12994         PR c/43772
12995         * c-common.c (warn_logical_operator): Do not warn if either side
12996         is already true or false.
12998 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13000         PR c/51712
13001         * c-common.c (expr_original_type): New.
13002         (shorten_compare): Do not warn for enumeration types.
13004 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13006         * c.opt (fpermissive): Add Var(flag_permissive).
13008 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
13010         PR c++/51033
13011         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
13012         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
13014 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
13016         Add -Wvarargs option
13017         * c.opt (Wvarargs): Define new option.
13019 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13021         * c-common.c (check_function_arguments): Replace
13022         Wmissing-format-attribute with Wsuggest-attribute=format.
13024 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13026         * c.opt (Wsuggest-attribute=format): New. Alias of
13027         Wmissing-format-attribute.
13028         * c-format.c (decode_format_type): Replace
13029         Wmissing-format-attribute with Wsuggest-attribute=format.
13030         (check_function_format): Likewise.
13032 2012-04-27  Ollie Wild  <aaw@google.com>
13034         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
13035         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
13036         * c.opt: Add Wliteral-suffix.
13038 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13040         PR c/44774
13041         * c.opt (Wpedantic): New.
13042         (pedantic): Alias Wpedantic.
13043         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
13044         (c_common_post_options): Likewise.
13045         (sanitize_cpp_opts): Likewise.
13046         * c-lex.c (interpret_float): Likewise.
13047         * c-format.c (check_format_types): Likewise.
13048         * c-common.c (pointer_int_sum): Likewise.
13049         (c_sizeof_or_alignof_type): Likewise.
13050         (c_add_case_label): Likewise.
13051         (c_do_switch_warnings): Likewise.
13052         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
13054 2012-04-15  Jason Merrill  <jason@redhat.com>
13056         PR c++/52818
13057         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
13058         (C_STD_NAME): Distinguish between C++98 and C++11.
13060 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
13062         PR target/52624
13063         * c-common.h (uint16_type_node): Rename into...
13064         (c_uint16_type_node): ...this.
13065         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
13066         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
13068 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13070         * c-common.c (warn_if_unused_value): Move definition to here.
13071         * c-common.h (warn_if_unused_value): Move declaration to here.
13073 2012-03-23  William Bader  <williambader@hotmail.com>
13075         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
13077 2012-03-20  Jason Merrill  <jason@redhat.com>
13079         * c-common.h (enum cxx_dialect): Add cxx1y.
13080         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
13081         test.
13082         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
13083         * c-opts.c (c_common_post_options): Likewise.
13084         (set_std_cxx1y): New.
13085         (c_common_handle_option): Call it.
13086         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
13088 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
13090         PR c++/14710
13091         * c.opt ([Wuseless-cast]): Add.
13093 2012-03-16  Richard Guenther  <rguenther@suse.de>
13095         * c-pretty-print.c (pp_c_initializer_list): Adjust.
13097 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13099         PR c++/44783
13100         * c.opt (ftemplate-backtrace-limit) Add.
13102 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13104         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
13105         handling.
13106         * c-pragma.c (handle_pragma_extern_prefix): Remove.
13107         (init_pragma): Don't register extern_prefix.
13109 2012-03-12  Richard Guenther  <rguenther@suse.de>
13111         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
13112         (builtin_type_for_size): Likewise.
13114 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
13116         PR c++/52215
13117         * c-common.c (sync_resolve_params): Don't decide whether to convert
13118         or not based on TYPE_SIZE comparison, convert whenever arg_type
13119         is unsigned INTEGER_TYPE.
13121 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
13123         PR c/52118
13124         * c.opt ([Wunused-local-typedefs]): Fix description.
13126 2012-01-24  Mike Stump  <mikestump@comcast.net>
13128         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
13129         exactly.
13131 2012-01-18  Richard Guenther  <rguenther@suse.de>
13133         * c-opts.c (c_common_post_options): Reset LTO flags if
13134         we are about to generate a PCH.
13136 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
13138         PR c++/51777
13139         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
13140         use pp_unsigned_wide_integer.
13142 2012-01-10  Richard Guenther  <rguenther@suse.de>
13144         PR middle-end/51806
13145         * c-opts.c (c_common_handle_option): Move -Werror handling
13146         to language independent code.
13148 2012-01-05  Richard Guenther  <rguenther@suse.de>
13150         PR middle-end/51764
13151         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
13152         from common.opt.
13154 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
13156         PR c++/51316
13157         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
13158         of array types with an unknown bound.
13160 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
13162         * c-common.c (flag_isoc99): Update comment to refer to C11.
13163         (flag_isoc1x): Change to flag_isoc11.
13164         * c-common.h (flag_isoc99): Update comment to refer to C11.
13165         (flag_isoc1x): Change to flag_isoc11.
13166         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
13167         C11.
13168         * c-opts.c (set_std_c1x): Change to set_std_c11.
13169         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
13170         Call set_std_c11.
13171         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
13172         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
13173         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
13174         standard.
13175         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
13176         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
13177         (std=gnu1x): Make alias of std=gnu11.
13179 2011-12-19  Jason Merrill  <jason@redhat.com>
13181         PR c++/51228
13182         * c-common.c (handle_transparent_union_attribute): Check the first
13183         field if the type is complete.
13185 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
13187         PR libstdc++/51365
13188         * c-common.c (RID_IS_FINAL): Add.
13189         * c-common.h (RID_IS_FINAL): Add.
13191 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
13193         * c.opt (fgnu-runtime): Provide full description.
13194         (fnext-runtime): Likewise.
13195         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
13197 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
13199         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
13200         predefines in one place.  Add LOCK_FREE predefines.
13201         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
13202         new func.
13204 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
13206         PR c/51256
13207         * c-common.c (get_atomic_generic_size): Check for various error
13208         conditions
13209         (resolve_overloaded_atomic_exchange,
13210         resolve_overloaded_atomic_compare_exchange,
13211         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
13212         error_mark_node for error conditions.
13214 2011-11-08  Richard Guenther  <rguenther@suse.de>
13216         PR middle-end/51010
13217         * c-pretty-print.c (pp_c_expression): Handle SSA_NAMEs.
13219 2011-11-07  Richard Henderson  <rth@redhat.com>
13220             Aldy Hernandez  <aldyh@redhat.com>
13221             Torvald Riegel  <triegel@redhat.com>
13223         Merged from transactional-memory.
13225         * c-common.c (handle_tm_wrap_attribute,
13226         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
13227         (struct c_common_reswords): Added __transaction* keywords.
13228         (struct c_common_attribute_table): Added transaction* and tm_regparm
13229         attributes.
13230         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
13231         masks.
13232         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
13233         find_tm_attribute): Declare.
13235 2011-11-07  Jason Merrill  <jason@redhat.com>
13237         PR c++/35688
13238         * c-common.c, c-common.h: Revert yesterday's changes.
13240 2011-11-06  Jason Merrill  <jason@redhat.com>
13242         PR c++/35688
13243         * c-common.c (decl_has_visibility_attr): Split out from...
13244         (c_determine_visibility): ...here.
13245         * c-common.h: Declare it.
13247 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
13249         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
13250         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
13251         type.
13252         (check_user_alignment): New.  Split out of
13253         handle_aligned_attribute.  Disallow integer constants with
13254         noninteger types.  Conditionally allow zero.
13255         (handle_aligned_attribute): Use check_user_alignment.
13256         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
13258 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
13259             Richard Henderson  <rth@redhat.com>
13261         Merged from cxx-mem-model.
13263         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
13264         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
13265         parameters that are the same type size.
13266         (get_atomic_generic_size): New.  Find size of generic
13267         atomic function parameters and do typechecking.
13268         (add_atomic_size_parameter): New.  Insert size into parameter list.
13269         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
13270         either __atomic_exchange_n or external library call.
13271         (resolve_overloaded_atomic_compare_exchange): Restructure
13272         __atomic_compare_exchange to either _n variant or external library call.
13273         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
13274         __atomic_load_n or an external library call.
13275         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
13276         __atomic_store_n or an external library call.
13277         (resolve_overloaded_builtin): Handle new __atomic builtins.
13279 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
13281         PR c++/50608
13282         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
13283         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
13284         <INDIRECT_REF>: Return the argument.
13285         <ARRAY_REF>: Remove special code for negative offset.
13286         Call fold_build_pointer_plus instead of size_binop.
13287         (fold_offsetof): Remove STOP_REF argument and adjust.
13288         * c-common.h (fold_offsetof_1): Declare.
13289         (fold_offsetof): Remove STOP_REF argument.
13291 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
13293         PR c++/50810
13294         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
13295         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
13296         Wnarrowing for C++0x and C++98.
13297         * c.opt ([Wnarrowing]): Update.
13299 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
13301         PR c++/44277
13302         * c.opt: Add Wzero-as-null-pointer-constant.
13304 2011-10-31  Jason Merrill  <jason@redhat.com>
13306         * c.opt (-fdeduce-init-list): Off by default.
13308         PR c++/50920
13309         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
13310         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
13311         and -Wc++11-compat.
13312         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
13314 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
13316         PR c++/30066
13317         * c.opt (fvisibility-inlines-hidden): Description change.
13319 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
13321         Implement C++11 user-defined literals.
13322         * c-common.c (build_userdef_literal): New.
13323         * c-common.def: New tree code.
13324         * c-common.h (tree_userdef_literal): New tree struct and accessors.
13325         * c-lex.c (interpret_float): Add suffix parm.
13326         (c_lex_with_flags): Build literal tokens.
13328 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
13330         PR c++/50841
13331         Revert:
13332         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
13334         PR c++/50810
13335         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
13336         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
13337         Wnarrowing for C++0x and C++98.
13338         * c.opt ([Wnarrowing]): Update.
13340 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
13342         PR c++/50810
13343         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
13344         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
13345         Wnarrowing for C++0x and C++98.
13346         * c.opt ([Wnarrowing]): Update.
13348 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
13350         PR c++/45385
13351         * c-common.c (conversion_warning): Remove code looking for
13352         artificial operands.
13354 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
13356         PR bootstrap/50760
13357         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
13358         !NO_IMPLICIT_EXTERN_C.
13360 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
13362         * c-common.c (c_common_reswords): Add __bases,
13363         __direct_bases.
13364         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
13366 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
13368         PR c++/50757
13369         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
13371 2011-10-15  Tom Tromey  <tromey@redhat.com>
13372             Dodji Seketeli  <dodji@redhat.com>
13374         * c.opt (fdebug-cpp): New option.
13375         * c-opts.c (c_common_handle_option): Handle the option.
13376         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
13377         output stream in parameter. Factorized from ...
13378         (maybe_print_line): ... this. Dump location debug information when
13379         -fdebug-cpp is in effect.
13380         (print_line_1): New static function. Takes an output stream in
13381         parameter. Factorized from ...
13382         (print_line): ... here. Dump location information when -fdebug-cpp
13383         is in effect.
13384         (scan_translation_unit): Dump location information when
13385         -fdebug-cpp is in effect.
13387 2011-10-15  Tom Tromey  <tromey@redhat.com>
13388             Dodji Seketeli  <dodji@redhat.com>
13390         * c.opt (ftrack-macro-expansion): New option. Handle it with and
13391         without argument.
13392         * c-opts.c (c_common_handle_option)<case
13393         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
13394         cases. Handle -ftrack-macro-expansion with and without argument.
13396 2011-10-15  Tom Tromey  <tromey@redhat.com>
13397             Dodji Seketeli  <dodji@redhat.com>
13399         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
13400         (print_line, cb_define, do_line_change): Adjust to avoid touching
13401         the internals of struct line_map.  Use the public API instead.
13402         * c-pch.c (c_common_read_pch): Likewise.
13403         * c-lex.c (fe_file_change): Likewise.
13405 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
13407         PR c++/17212
13408         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
13410 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
13412         PR c++/33067
13413         * c-pretty-print.c (pp_c_floating_constant): Output
13414         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
13416 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
13418         * c-common.c (def_builtin_1): Delete old interface with two
13419         parallel arrays to hold standard builtin declarations, and replace
13420         it with a function based interface that can support creating
13421         builtins on the fly in the future.  Change all uses, and poison
13422         the old names.  Make sure 0 is not a legitimate builtin index.
13423         * c-omp.c (c_finish_omp_barrier): Ditto.
13424         (c_finish_omp_taskwait): Ditto.
13425         (c_finish_omp_flush): Ditto.
13427 2011-10-11  Tristan Gingold  <gingold@adacore.com>
13429         * c.opt: (fallow-parameterless-variadic-functions): New.
13431 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
13433         PR c++/33255 - Support -Wunused-local-typedefs warning
13434         * c-common.h (struct c_language_function::local_typedefs): New
13435         field.
13436         (record_locally_defined_typedef, maybe_record_typedef_use)
13437         (maybe_warn_unused_local_typedefs): Declare new functions.
13438         * c-common.c (record_locally_defined_typedef)
13439         (maybe_record_typedef_use)
13440         (maybe_warn_unused_local_typedefs): Define new functions.
13441         * c.opt: Declare new -Wunused-local-typedefs flag.
13443 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
13445         PR middle-end/50266
13446         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
13447         computations.
13449 2011-09-05  Richard Guenther  <rguenther@suse.de>
13451         * c-common.c (complete_array_type): Use ssize_int (-1) instead
13452         of integer_minus_one_node for empty array upper bounds.
13454 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
13456         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
13457         it's the first time it's being called on this main TU.
13459 2011-08-24  Richard Guenther  <rguenther@suse.de>
13461         PR c/49396
13462         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
13464 2011-08-22  Gabriel Charette  <gchare@google.com>
13466         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
13467         defined in cpp_init_builtins and c_cpp_builtins.
13469 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
13471         * c-common.c (c_common_reswords): Add __builtin_complex.
13472         * c-common.h (RID_BUILTIN_COMPLEX): New.
13474 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
13476         * c-common.c (c_common_reswords): Add _Noreturn.
13477         (keyword_is_function_specifier): Handle RID_NORETURN.
13478         * c-common.h (RID_NORETURN): New.
13480 2011-08-10  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
13482         * c-common.c (unsafe_conversion_p): New function. Check if it is
13483         unsafe to convert an expression to the type.
13484         (conversion_warning): Adjust, use unsafe_conversion_p.
13485         * c-common.h (unsafe_conversion_p): New function declaration.
13487 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
13489         * c-common.h (c_finish_omp_atomic): Adjust prototype.
13490         (c_finish_omp_taskyield): New prototype.
13491         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
13492         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
13493         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
13494         or RHS1 have side-effects, evaluate those too in the right spot,
13495         if it is a decl and LHS is also a decl, error out if they
13496         aren't the same.
13497         (c_finish_omp_taskyield): New function.
13498         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
13499         * c-pragma.c (omp_pragmas): Add taskyield.
13500         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
13501         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
13502         PRAGMA_OMP_CLAUSE_MERGEABLE.
13504 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
13506         * c-common.h (set_underlying_type): Remove parm name from
13507         declaration.
13509 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
13511         * c-pretty-print.h: Search c-common.h in c-family.
13513 2011-07-22  Jason Merrill  <jason@redhat.com>
13515         PR c++/49793
13516         * c.opt (Wnarrowing): New.
13518         PR c++/30112
13519         * c-common.h: Declare c_linkage_bindings.
13520         * c-pragma.c (handle_pragma_redefine_extname): Use it.
13522         PR c++/49813
13523         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
13524         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
13525         as flag_isoc99 for 'restrict'.
13526         (pp_c_specifier_qualifier_list): Likewise for _Complex.
13528 2011-07-21  Ian Lance Taylor  <iant@google.com>
13530         PR middle-end/49705
13531         * c-common.c (c_disable_warnings): New static function.
13532         (c_enable_warnings): New static function.
13533         (c_fully_fold_internal): Change local unused_p to bool.  Call
13534         c_disable_warnings and c_enable_warnings rather than change
13535         c_inhibit_evaluation_warnings.
13537 2011-07-20  Jason Merrill  <jason@redhat.com>
13539         PR c++/6709 (DR 743)
13540         PR c++/42603 (DR 950)
13541         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
13542         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
13543         (CPP_DECLTYPE): New.
13544         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
13546 2011-07-19  Richard Guenther  <rguenther@suse.de>
13548         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
13549         * c-omp.c (c_finish_omp_for): Likewise.
13551 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
13553         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
13554         body on the next line.
13556 2011-07-08  Jason Merrill  <jason@redhat.com>
13558         PR c++/45437
13559         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
13561         PR c++/49673
13562         * c-common.c (c_apply_type_quals_to_decl): Don't check
13563         TYPE_NEEDS_CONSTRUCTING.
13565 2011-07-06  Richard Guenther  <rguenther@suse.de>
13567         * c-common.c (c_common_nodes_and_builtins):
13568         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
13570 2011-07-05  Richard Guenther  <rguenther@suse.de>
13572         * c-common.c (c_common_nodes_and_builtins): Build all common
13573         tree nodes first.
13575 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
13577         * c-common.h (c_tree_chain_next): New static inline function.
13579         * c-common.c (check_builtin_function_arguments): Handle
13580         BUILT_IN_ASSUME_ALIGNED.
13582 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
13584         * c-common.c: Add sync_ or SYNC__ to builtin names.
13585         * c-omp.c: Add sync_ or SYNC__ to builtin names.
13587 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
13589         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
13590         handler.
13591         (gen_pragma_handler): New union.
13592         (internal_pragma_handler): New type.
13593         (c_register_pragma_with_data)
13594         (c_register_pragma_with_expansion_and_data): New functions.
13596         * c-pragma.c (registered_pragmas, c_register_pragma_1)
13597         (c_register_pragma, c_register_pragma_with_expansion)
13598         (c_invoke_pragma_handler): Changed to work with
13599         internal_pragma_handler.
13600         (c_register_pragma_with_data)
13601         (c_register_pragma_with_expansion_and_data): New functions.
13603 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
13605         * c-common.c: Include common/common-target.h.
13606         (handle_section_attribute): Use
13607         targetm_common.have_named_sections.
13608         * c-cppbuiltin.c: Include common/common-target.h.
13609         (c_cpp_builtins): Use targetm_common.except_unwind_info.
13611 2011-06-10  Richard Guenther  <rguenther@suse.de>
13613         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
13614         to print a IDENTIFIER_NODE.
13616 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13617             Joseph Myers  <joseph@codesourcery.com>
13619         * c.opt (fbuilding-libgcc): New option.
13620         * c-cppbuiltin.c (c_cpp_builtins): Define
13621         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
13623 2011-06-07  Jason Merrill  <jason@redhat.com>
13625         * c-common.c (max_tinst_depth): Lower default to 900.
13627         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
13629 2011-06-07  Richard Guenther  <rguenther@suse.de>
13631         * c-common.c (c_common_nodes_and_builtins): Do not set
13632         size_type_node or call set_sizetype.
13634 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
13636         PR debug/49130
13637         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
13638         type when using pointer comparison to compare types.
13640 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
13642         * c.opt: Add -Wdelete-non-virtual-dtor.
13643         * c-opts.c (c_common_handle_option): Include it in -Wall.
13645 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
13647         PR bootstrap/49190
13649         Revert:
13650         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
13652         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
13653         not tree_common.
13655 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
13657         PR c++/49165
13658         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
13659         C++ don't call c_common_truthvalue_conversion on void type arms.
13661 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
13663         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
13664         (stmt_list_stack): Define.
13665         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
13666         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
13668 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
13670         * c-common.c (warning_candidate_p): Check for BLOCKs.
13672 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
13674         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
13675         not tree_common.
13677 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
13679         * c-common.c (def_fn_type): Remove extra va_end.
13681 2011-05-23  Jason Merrill  <jason@redhat.com>
13683         PR c++/48106
13684         * c-common.c (c_common_get_narrower): New.
13685         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
13687 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
13689         * c-common.h (check_function_arguments): Tweak prototype of
13690         check_function_arguments.
13691         * c-common.c (check_function_arguments): Likewise.  Adjust
13692         calls to check_function_nonnull, check_function_format, and
13693         check_function_sentinel.
13694         (check_function_sentinel): Take a FUNCTION_TYPE rather than
13695         separate attributes and typelist arguments.  Use
13696         FOREACH_FUNCTION_ARGS to iterate over argument types.
13698 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
13700         * c-common.c (c_common_reswords): Reorder.
13701         * c-common.h (rid): Likewise.
13703 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
13705         * c-common.c (def_fn_type): Don't call build_function_type, call
13706         build_function_type_array or build_varargs_function_type_array
13707         instead.
13708         (c_common_nodes_and_builtins): Likewise.
13710 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
13712         * c-common.c (c_add_case_label): Omit the loc argument to
13713         build_case_label.
13714         * c-common.h (build_case_label): Remove.
13715         * c-semantics.c (build_case_label): Remove.
13717 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
13719         * c-objc.h (objc_start_method_definition): Update prototype.
13720         * stub-objc.c (objc_start_method_definition): Add extra parameter.
13722 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
13724         * c-common.c (check_main_parameter_types): Reindent.  Don't use
13725         TYPE_ARG_TYPES directly.
13726         (handle_nonnull_attribute): Likewise.
13727         (sync_resolve_params): Likewise.
13728         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
13729         to check_format_string.
13730         (handle_format_attribute): Likewise.
13731         (check_format_string): Take a function type to examine instead of
13732         a type list.  Use a function_arg_iterator to step through argument
13733         types.
13735 2011-05-04  Richard Guenther  <rguenther@suse.de>
13737         * c-common.c (fix_string_type): Use size_int for index type bounds.
13738         (start_fname_decls): Do not pass NULL to build_int_cst.
13739         (c_init_attributes): Likewise.
13740         * c-lex.c (c_lex_with_flags): Likewise.
13742 2011-04-27  Jason Merrill  <jason@redhat.com>
13744         * c-common.c (make_tree_vector_from_list): New.
13745         * c-common.h: Declare it.
13747 2011-04-26  Richard Guenther  <rguenther@suse.de>
13749         PR preprocessor/48248
13750         * c-ppoutput.c (maybe_print_line): Always optimize newlines
13751         for output size with -P.
13753 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
13755         * c-common.c (struct c_common_resword): Add __underlying_type.
13756         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
13758 2011-04-20  Jim Meyering  <meyering@redhat.com>
13760         * c-format.c (init_dollar_format_checking): Remove useless
13761         if-before-free.
13763 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
13765         * c-objc.h (objc_get_interface_ivars): Removed.
13766         (objc_detect_field_duplicates): New.
13767         * stub-objc.c: Likewise.
13769 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
13771         * stub-objc.c (objc_declare_protocols): Renamed to
13772         objc_declare_protocol.
13773         * c-objc.h: Likewise.
13775 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
13777         * stub-objc.c (objc_declare_class): Updated argument name.
13779 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
13781         * c-common.h (c_common_init_ts): Declare.
13782         * c-common.c (c_common_init_ts): Define.
13784 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13786         * c-objc.h (objc_build_message_expr): Updated prototype.
13787         * stub-objc.c (objc_build_message_expr): Likewise.
13789 2011-04-12  Martin Jambor  <mjambor@suse.cz>
13791         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
13792         of cgraph_node.
13794 2011-04-11  Richard Guenther  <rguenther@suse.de>
13796         * c-common.c (complete_array_type): Build a range type of
13797         proper type.
13799 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
13801         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
13802         (handle_type_generic_attribute): Likewise.
13804 2011-04-07  Jason Merrill  <jason@redhat.com>
13806         PR c++/48450
13807         * c-common.c (c_common_truthvalue_conversion): Don't ignore
13808         conversion from C++0x scoped enum.
13810 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
13812         * c-target-def.h: New file.
13813         * c-target.def: New file.
13814         * c-target.h: New file.
13815         * c-common.c (targetcm): Don't define here.
13816         * c-common.h (default_handle_c_option): Declare.
13817         * c-format.c: Include c-target.h instead of target.h.
13818         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
13819         include tm.h.
13820         (default_handle_c_option): Move from targhooks.c.
13822 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
13824         PR preprocessor/48248
13825         * c-ppoutput.c (print): Add src_file field.
13826         (init_pp_output): Initialize it.
13827         (maybe_print_line): Don't optimize by adding up to 8 newlines
13828         if map->to_file and print.src_file are different file.
13829         (print_line): Update print.src_file.
13831 2011-03-25  Kai Tietz  <ktietz@redhat.com>
13833         * c-ada-spec.c (compare_comment): Use filename_cmp
13834         instead of strcmp for filename.
13836 2011-03-25  Jeff Law  <law@redhat.com>
13838         * c-common.c (def_fn_type): Add missing va_end.
13840 2011-03-25  Jason Merrill  <jason@redhat.com>
13842         * c.opt: Add -std=c++03.
13844 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
13846         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
13848 2011-03-17  Kai Tietz  <ktietz@redhat.com>
13850         PR target/12171
13851         * c-pretty-print.c (pp_c_specifier_qualifier_list):
13852         Display allowed attributes for function pointer types.
13853         (pp_c_attributes_display): New function to display
13854         attributes having affects_type_identity flag set to true.
13855         * c-pretty-print.h (pp_c_attributes_display): New prototype.
13857         * c-common.c (c_common_attribute_table):
13858         Add new element.
13859         (c_common_format_attribute_table): Likewise.
13861 2011-03-18  Jason Merrill  <jason@redhat.com>
13863         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
13864         * c-common.h: Don't declare it here.
13865         * c-common.c: Or define it here.
13866         * c-opts.c (c_common_handle_option): Or set it here.
13868         PR c++/35315
13869         * c-common.c (handle_transparent_union_attribute): Don't
13870         make a duplicate type in C++.
13872 2011-03-15  Jason Merrill  <jason@redhat.com>
13874         * c-common.c (max_constexpr_depth): New.
13875         * c-common.h: Declare it.
13876         * c-opts.c (c_common_handle_option): Set it.
13877         * c.opt (fconstexpr-depth): New option.
13879 2011-03-11  Jason Merrill  <jason@redhat.com>
13881         * c-common.c (attribute_takes_identifier_p): Add missing const.
13883         PR c++/46803
13884         * c-common.c (attribute_takes_identifier_p): Assume that an
13885         unknown attribute takes an identifier.
13887 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
13889         PR c/47786
13890         * c-common.c (c_type_hash): Call list_length instead of iterating
13891         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
13893 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
13895         PR c/47809
13896         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
13898 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
13900         * c.opt (fobjc-abi-version=) New.
13901         (fobjc-nilcheck): New.
13903 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
13905         PR c++/46890
13906         * c-common.h (keyword_is_decl_specifier): Declare.
13907         * c-common.c (keyword_is_decl_specifier): Define.
13908         (keyword_is_function_specifier): New function.
13910 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
13912         PR c/47473
13913         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
13914         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
13915         REAL_TYPE.
13917 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
13919         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
13921 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
13923         PR pch/47430
13924         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
13925         after init_c_lex if pch_file is set.
13927 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13929         PR c++/43601
13930         * c.opt (-fkeep-inline-dllexport): New switch.
13932 2011-01-12  Richard Guenther  <rguenther@suse.de>
13934         PR middle-end/32511
13935         * c-common.c (handle_weak_attribute): Warn instead of error
13936         on declaring an inline function weak.
13938 2011-01-05  Tom Tromey  <tromey@redhat.com>
13940         * c-common.h (lvalue_error): Update.
13941         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
13942         not error.
13944 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
13946         PR objc/47075
13947         * c-objc.h (objc_finish_message_expr): Added argument to
13948         prototype.
13950 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
13952         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
13953         Use prototype_p.
13955 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
13957         * c-objc.h (objc_maybe_warn_exceptions): New.
13958         * stub-objc.c (objc_maybe_warn_exceptions): New.
13960 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
13962         * c-common.h (readonly_error): Declare.
13963         * c-common.c (readonly_error): Define.
13965 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
13967         * c-common.h (invalid_indirection_error): Declare.
13968         * c-common.c (invalid_indirection_error): Define.
13970 2010-12-03  Richard Guenther  <rguenther@suse.de>
13972         PR c/46745
13973         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
13974         (pp_c_unary_expression): Likewise.
13975         (pp_c_expression): Likewise.
13977 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
13979         * c-common.h (objc_finish_function): New.
13980         (objc_non_volatilized_type): Removed.
13981         (objc_type_quals_match): Removed.
13982         * stub-objc.c (objc_finish_function): New.
13983         (objc_non_volatilized_type): Removed.
13984         (objc_type_quals_match): Removed.
13986 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
13988         * c-common.h (parse_optimize_options): Declare.
13989         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
13990         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
13992 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
13994         * c-opts.c (check_deps_environment_vars): Use getenv instead of
13995         GET_ENVIRONMENT.
13996         * c-pch.c (O_BINARY): Don't define here.
13997         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
13999 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
14001         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
14002         targetm.except_unwind_info.
14004 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
14006         * c-opts.c (c_common_handle_option): Pass location to
14007         set_struct_debug_option.
14009 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
14011         * c-common.c (visibility_options): Move from ../opts.c.
14012         * c-common.h (struct visibility_flags, visibility_options):
14013         Declare here.
14014         * c-opts.c (finish_options): Rename to c_finish_options.
14015         (c_common_init): Update call to finish_options.
14017 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
14019         PR objc/34033
14020         * c-lex.c (lex_string): Check that each string in an Objective-C
14021         string concat sequence starts with either one or zero '@', and
14022         that there are no spurious '@' signs at the end.
14024 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
14026         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
14027         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
14028         HANDLE_PRAGMA_VISIBILITY.
14029         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
14030         HANDLE_PRAGMA_VISIBILITY): Don't define.
14031         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
14033 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
14035         PR c++/16189
14036         PR c++/36888
14037         PR c++/45331
14038         * c-common.h (keyword_begins_type_specifier): Declare.
14039         (keyword_is_storage_class_specifier): Declare.
14040         (keyword_is_type_qualifier): Declare.
14041         * c-common.c (keyword_begins_type_specifier): New function.
14042         (keyword_is_storage_class_specifier): New function.
14043         (keyword_is_type_qualifier): Declare.
14045 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
14047         PR c/46547
14048         * c-common.c (in_late_binary_op): Define.
14049         (c_common_truthvalue_conversion): Check in_late_binary_op before
14050         calling c_save_expr.
14051         * c-common.h (in_late_binary_op): Declare.
14053 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
14055         * c-opts.c (c_common_handle_option): Update calls to
14056         set_struct_debug_option.
14058 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
14060         * c-common.h (objc_declare_protocols): Added additional argument.
14061         * stub-objc.c (objc_declare_protocol): Same change.
14063 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
14065         PR c/33193
14066         * c-common.h (build_real_imag_expr): Declare.
14067         * c-semantics.c (build_real_imag_expr): Define.
14069 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
14071         * c-opts.c (c_common_parse_file): Take no arguments.
14072         * c-common.h (c_common_parse_file): Update prototype.
14074 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
14076         PR c++/46401
14077         * c-common.c (warning_candidate_p): Don't track non-const calls
14078         or STRING_CSTs.
14080 2010-11-15  Ian Lance Taylor  <iant@google.com>
14082         * c-lex.c (init_c_lex): Set macro debug callbacks if
14083         flag_dump_go_spec is set.
14085 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
14087         * c-common.h (objc_build_incr_expr_for_property_ref): New.
14088         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
14090 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
14092         PR preprocessor/45038
14093         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
14094         dialects.
14096 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
14098         * c-common.h (c_family_lang_mask): Declare.
14099         * c-opts.c (c_family_lang_mask): Make extern.
14100         * c-pragma.c (handle_pragma_diagnostic): Use
14101         control_warning_option.
14103 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
14105         * c-common.c (parse_optimize_options): Update call to
14106         decode_options.
14107         * c-common.h (c_common_handle_option): Update prototype.
14108         * c-opts.c (c_common_handle_option): Take location_t parameter and
14109         pass it to other functions.
14111 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
14113         * c-opts.c (warning_as_error_callback): Remove.
14114         (c_common_initialize_diagnostics): Don't call
14115         register_warning_as_error_callback.
14116         (c_common_handle_option): Handle -Werror=normalized= here.
14118 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
14120         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
14121         in diagnostic.
14122         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
14123         letter.
14124         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
14125         Remove trailing '.' from diagnostics.
14126         * c.opt (Wwrite-strings_: Avoid '`' in help text.
14128 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
14130         * c-common.c (parse_optimize_options): Pass global_dc to
14131         decode_options.
14132         * c-opts.c (c_common_handle_option): Pass &global_options to
14133         set_Wstrict_aliasing.
14134         * c.opt (v): Don't mark Common or document here.
14136 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
14138         PR target/44981
14139         * c-format.c (format_type): New type gcc_objc_string_format_type.
14140         (valid_stringptr_type_p): New.
14141         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
14142         (check_format_string): Pass expected type, use
14143         valid_stringptr_type_p (), check that the format string types are
14144         consistent with the format specification.
14145         (decode_format_attr): Warn if NSString is used outside objective-c.
14146         (format_types_orig): Add NSString.
14147         (format_name): New.
14148         (format_flags): New.
14149         (check_format_arg): Handle format strings requiring an external parser.
14150         first_target_format_type: New variable.
14151         (handle_format_attribute): Set up first_target_format_type, pass the
14152         expected format arg string type to check_format_string().
14153         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
14154         * stub-objc.c (objc_string_ref_type_p): New.
14155         (objc_check_format_arg): New.
14157 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
14159         Fixed using the Objective-C 2.0 dot-syntax with class names.
14160         * c-common.h (objc_build_class_component_ref): New.
14161         * stub-objc.c (objc_build_class_component_ref): New.
14163 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
14165         * c.opt (Wproperty-assign-default): New option.
14167 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
14169         Implemented -fobjc-std=objc1 flag.
14170         * c.opt (fobjc-std=objc1): New option.
14172 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
14174         Implemented format and noreturn attributes for Objective-C methods.
14175         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
14176         attribute for Objective-C methods.
14178 2010-10-31  Jason Merrill  <jason@redhat.com>
14180         * c-common.c (conversion_warning, warn_for_collisions_1): Use
14181         EXPR_LOC_OR_HERE.
14183 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
14185         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
14186         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
14187         (objc_add_property_declaration): Removed arguments for copies and
14188         ivar.
14189         (objc_build_getter_call): Renamed to
14190         objc_maybe_build_component_ref.
14191         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
14192         (objc_is_property_ref): New.
14193         * c-common.c (c_common_reswords): Removed copies and ivar.
14194         * stub-objc.c (objc_add_property_declaration): Removed arguments
14195         for copies and ivar.
14196         (objc_build_getter_call): Renamed to
14197         objc_maybe_build_component_ref.
14198         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
14199         (objc_is_property_ref): New.
14201 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
14202             Matthew Gingell  <gingell@adacore.com>
14204         * c-ada-spec.c (separate_class_package): New function.
14205         (pp_ada_tree_identifier): Prefix references to C++ classes with the
14206         name of their enclosing package.
14207         (print_ada_declaration): Use separate_class_package.
14209 2010-10-27  Jason Merrill  <jason@redhat.com>
14211         * c-common.c (c_common_reswords): Add __is_literal_type.
14212         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
14214         * c-common.c (check_case_value): Remove special C++ code.
14216 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
14218         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
14219         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
14220         and RID_LAST_PATTR.
14221         (objc_add_property_declaration): Added additional arguments.
14222         (objc_property_attribute_kind): Removed.
14223         (objc_set_property_attr): Removed.
14224         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
14225         copy and nonatomic.
14226         * stub-objc.c (objc_add_property_declaration): Added additional
14227         arguments.
14228         (objc_set_property_attr): Removed.
14230 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
14232         * c-common.h (objc_add_property_variable): Renamed to
14233         objc_add_property_declaration.  Added location argument.
14234         * stub-objc.c (objc_add_property_variable): Same change.
14236 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
14238         * c-common.h (objc_maybe_printable_name): New.
14239         * stub-objc.c (objc_maybe_printable_name): New.
14241 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
14242             Andrew Pinski  <pinskia@gmail.com>
14244         * c-common.h (c_common_mark_addressable_vec): Declare.
14245         * c-common.c (c_common_mark_addressable_vec): New function.
14247 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
14249         * c-common.h (objc_set_method_type): Removed.
14250         (objc_add_method_declaration): Added boolean argument.
14251         (objc_start_method_definition): Same change.
14252         (objc_build_method_signature): Same change.
14253         * stub-objc.c (objc_set_method_type): Removed.
14254         (objc_add_method_declaration): Added boolean argument.
14255         (objc_start_method_definition): Same change.
14256         (objc_build_method_signature): Same change.
14258 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
14260         * c-common.h (finish_file): Removed.
14261         (objc_write_global_declarations): New.
14262         * c-opts.c (c_common_parse_file): Do not call finish_file.
14263         * stub-objc.c (objc_write_global_declarations): New.
14265 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
14267         Implemented parsing @synthesize and @dynamic for
14268         Objective-C/Objective-C++.
14269         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
14270         (objc_add_synthesize_declaration): New.
14271         (objc_add_dynamic_declaration): New.
14272         * c-common.c (c_common_reswords): Add synthesize and dynamic.
14273         * stub-objc.c (objc_add_synthesize_declaration): New.
14274         (objc_add_dynamic_declaration): New.
14276 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
14278         PR target/46041
14279         * c-cppbuiltin.c (mode_has_fma): Move function here from
14280         builtins.c.  Don't use the fma optab, instead just use the
14281         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
14282         using -save-temps.
14284 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
14286         Merge from 'apple/trunk' branch on FSF servers.
14288         2005-11-08  Fariborz Jahanian  <fjahanian@apple.com>
14290         Radar 4330422
14291         * c-common.h (objc_non_volatilized_type): New declaration
14292         * stub-objc.c (objc_non_volatilized_type): New stub.
14294 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
14296         Merge from 'apple/trunk' branch on FSF servers.
14298         2006-03-27  Fariborz Jahanian  <fjahanian@apple.com>
14300         Radar 4133425
14301         * c-common.h (objc_diagnose_private_ivar): New decl.
14302         * stub-objc.c (objc_diagnose_private_ivar): New stub.
14304 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
14306         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
14307         * c-common.h (enum rid): Add RID_AT_PACKAGE.
14308         (objc_ivar_visibility_kind): New enum.
14309         (objc_set_visibility): Adjust prototype to use visibility enum.
14310         * stub-objc.c (objc_set_visibility): Adjust stub to use
14311         visibility enum.
14313 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
14315         * c-cppbuiltin.c (builtin_define_float_constants): Emit
14316         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
14317         has the appropriate fma builtins.
14318         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
14320 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
14322         merge from FSF apple 'trunk' branch.
14323         2006 Fariborz Jahanian  <fjahanian@apple.com>
14325         Radars 4436866, 4505126, 4506903, 4517826
14326         * c-common.c (c_common_resword): Define @property and its attributes.
14327         * c-common.h: Define property attribute enum entries.
14328         (OBJC_IS_PATTR_KEYWORD): New.
14329         (objc_property_attribute_kind): New enum.
14330         Declare objc_set_property_attr (), objc_add_property_variable (),
14331         objc_build_getter_call () and objc_build_setter_call ().
14332         * stub-objc.c (objc_set_property_attr): New stub.
14333         (objc_add_property_variable): Likewise.
14334         (objc_build_getter_call): Likewise.
14335         (objc_build_setter_call) Likewise.
14337 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
14339         merge from FSF apple 'trunk' branch.
14340         2006-04-26  Fariborz Jahanian  <fjahanian@apple.com>
14342         Radar 3803157 (method attributes)
14343         * c-common.c (handle_deprecated_attribute): Recognize
14344         objc methods as valid declarations.
14345         * c-common.h: Declare objc_method_decl ().
14346         * stub-objc.c (objc_method_decl): New stub.
14348 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
14350         * c-common.c (parse_optimize_options): Call
14351         decode_cmdline_options_to_array_default_mask before
14352         decode_options.  Update arguments to decode_options.
14353         * c-common.h (c_common_init_options_struct): Declare.
14354         * c-opts.c (c_common_init_options_struct): New.  Split out from
14355         c_common_init_options.
14357 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
14359         Implemented fast enumeration for Objective-C.
14360         * c-common.h (objc_finish_foreach_loop): New.
14361         * stub-objc.c (objc_finish_foreach_loop): New.
14363 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
14365         * c-common.h (struct diagnostic_context): Don't declare here.
14366         (c_common_initialize_diagnostics): Declare using
14367         diagnostic_context typedef.
14368         * c-opts.c (c_common_handle_option): Pass global_dc to
14369         handle_generated_option.
14371 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
14373         * c-opts.c (c_common_handle_option): Pass &global_options_set to
14374         handle_generated_option.
14376 2010-10-03  Ian Lance Taylor  <iant@google.com>
14378         * c.opt (-fplan9-extensions): New option.
14380 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14382         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
14383         Remove.
14384         (c_cpp_builtins): Call functions from cppbuiltin.c instead
14385         of duplicating code.
14387 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
14389         * c-common.c: Add two new entries for @optional
14390         and @required keywords.
14392         merge from FSF 'apple/trunk' branch.
14393         2006-01-30  Fariborz Jahanian  <fjahanian@apple.com>
14395         Radar 4386773
14396         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
14397         objective-c keywords.
14398         (objc_set_method_opt): New declaration.
14399         * stub-objc.c (objc_set_method_opt): New stub.
14401 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
14403         * c-common.c (handle_optimize_attribute): Pass &global_options to
14404         cl_optimization_save and cl_optimization_restore.
14405         * c-opts.c (c_common_handle_option): Pass &global_options to
14406         handle_generated_option.
14407         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
14408         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
14409         &global_options to cl_optimization_restore.
14411 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
14413         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
14414         Objective-C/Objective-C++ keywords.
14416 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
14418         Merge from 'apple/trunk' branch on FSF servers.
14420         2005-10-04  Fariborz Jahanian  <fjahanian@apple.com>
14422         Radar 4281748
14423         * c-common.h (objc_check_global_decl): New declaration.
14424         * stub-objc.c (objc_check_global_decl): New stub.
14426 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
14428         * c.opt: Don't use VarExists.
14430 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
14432         * c-common.c (c_cpp_error): Update names of diagnostic_context
14433         members.
14434         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
14435         cl_optimization members.
14436         * c-opts.c (warning_as_error_callback, c_common_handle_option,
14437         sanitize_cpp_opts, finish_options): Update names of cpp_options
14438         members.
14440 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
14442         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
14443         (objc_is_reserved_word): Removed.
14444         * c-common.c: Updated comments.
14445         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
14446         objc_is_reserved_word.
14447         * stub-objc.c (objc_is_reserved_word): Removed.
14449 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
14451         * c-common.h (objc_add_method_declaration): Adjust prototype to
14452         include attributes.
14453         (objc_start_method_definition): Likewise.
14454         (objc_build_keyword_decl): Likewise.
14455         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
14456         (objc_start_method_definition): Likewise.
14457         (objc_build_keyword_decl): Likewise.
14459 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
14461         * c-common.h (objc_start_class_interface): Adjust prototype.
14462         (objc_start_category_interface): Likewise.
14463         (objc_start_protocol): Likewise.
14464         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
14465         (objc_start_class_interface): Likewise.
14466         (objc_start_category_interface): Likewise.
14468 2010-09-27  Ian Lance Taylor  <iant@google.com>
14470         * c-common.c (c_common_attribute_table): Add no_split_stack.
14471         (handle_no_split_stack_attribute): New static function.
14473 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
14475         Merge from 'apple/trunk' branch on FSF servers.
14477         2005-12-15  Fariborz Jahanian  <fjahanian@apple.com>
14479         Radar 4229905
14480         * c-common.h (objc_have_common_type): New declaration.
14481         * stub-objc.c (objc_have_common_type): New stub.
14483         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
14485         Radar 4154928
14486         * c-common.h (objc_common_type): New prototype.
14487         * stub-objc.c (objc_common_type): New stub.
14489 2010-09-24  Jan Hubicka  <jh@suse.cz>
14491         * c-common.c (handle_leaf_attribute): New function.
14492         (struct attribute_spec c_common_att): Add leaf.
14494 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
14496         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
14497         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
14498         -dump, -dump=, -imacros, -imacros=, -include, -include=,
14499         -include-barrier, -include-directory, -include-directory=,
14500         -include-directory-after, -include-directory-after=,
14501         -include-prefix, -include-prefix=, -include-with-prefix,
14502         -include-with-prefix=, -include-with-prefix-after,
14503         -include-with-prefix-after=, -include-with-prefix-before,
14504         -include-with-prefix-before=, -no-integrated-cpp,
14505         -no-line-commands, -no-standard-includes, -no-warnings, -output,
14506         -output=, -pedantic, -pedantic-errors, -preprocess,
14507         -print-missing-file-dependencies, -trace-includes, -traditional,
14508         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
14509         -user-dependencies, -verbose, -write-dependencies,
14510         -write-user-dependencies, no-integrated-cpp, traditional): New.
14512 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
14514         PR objc/23710
14515         * c-common.h (objc_start_method_definition): Return bool instead
14516         of void.
14517         * stub-objc.c (objc_start_method_definition): Return bool instead
14518         of void.
14520 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
14522         PR objc/25965
14523         * c-common.h (objc_get_interface_ivars): New declaration.
14524         * stub-objc.c (objc_get_interface_ivars): New stub.
14526 2010-09-15  Ian Lance Taylor  <iant@google.com>
14528         * c-common.c (parse_optimize_options): Do not capitalize warning
14529         messages.  Remove period at end of warning message.
14531 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
14533         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
14534         (handle_alias_attribute): ... here.
14535         (handle_ifunc_attribute): New.
14537 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
14539         * c-common.h (do_warn_double_promotion): Declare.
14540         * c-common.c (do_warn_double_promotion): Define.
14542 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
14544         * c.opt (Wdouble-promotion): New.
14546 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
14548         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
14549         fvtable-thunks, fxref): Mark no longer supported in help text.
14551 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
14553         * c.opt (Wimport, fall-virtual, falt-external-templates,
14554         fdefault-inline, fenum-int-equiv, fexternal-templates,
14555         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
14556         fname-mangling-version-, fnew-abi, fnonnull-objects,
14557         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
14558         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
14559         applicable.
14560         (fhandle-exceptions): Mark with Alias and Warn.
14561         * c-opts.c (c_common_handle_option): Don't handle options marked
14562         as ignored.
14564 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
14566         * c.opt (Wcomments, Werror-implicit-function-declaration,
14567         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
14568         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
14569         aliases.
14570         * c-common.c (option_codes): Use OPT_Wcomment instead of
14571         OPT_Wcomments.
14572         * c-opts.c (warning_as_error_callback, c_common_handle_option):
14573         Don't handle options marked as aliases.
14575 2010-08-25  Richard Guenther  <rguenther@suse.de>
14577         * c-common.c (c_common_get_alias_set): Remove special
14578         handling for pointers.
14580 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
14582         * c-common.c: Use FOR_EACH_VEC_ELT.
14583         * c-gimplify.c: Likewise.
14584         * c-pragma.c: Likewise.
14586 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
14588         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
14589         RejectDriver.
14590         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
14591         RejectDriver.
14592         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
14593         instead of OPT_MDX and OPT_MMDX.
14595 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
14597         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
14599 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
14601         * c.opt (MD, MMD): Change to MDX and MMDX.
14602         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
14604 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
14606         * c-opts.c (c_common_handle_option): Call handle_generated_option
14607         instead of handle_option.
14609 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
14611         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
14612         (maybe_apply_renaming_pragma): Delete unneeded declarations.
14614 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
14616         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
14617         (pending_redefine_extname): Change type to a VEC.
14618         (add_to_renaming_pragma_list): Update for new type of
14619         pending_redefine_extname.
14620         (maybe_apply_renaming_pragma): Likewise.
14622 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
14624         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
14625         visited.
14626         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
14627         decide whether a type has already been declared/seen.
14628         Do not go to the original type.
14629         (dump_nested_types): New parameter forward.
14630         Generate forward declaration if needed and mark type as visited.
14631         (print_ada_declaration): Call dump_nested_types if not already done.
14632         Mark types as visited.
14634 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
14636         * c.opt (-print-pch-checksum): Remove option.
14637         * c-opts.c (c_common_handle_option): Don't handle
14638         OPT_print_pch_checksum.
14640 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
14642         * c-common.h (c_common_handle_option): Update prototype and return
14643         value type.
14644         * c-opts.c (c_common_handle_option): Update prototype and return
14645         value type.  Update calls to handle_option and
14646         enable_warning_as_error.
14648 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
14650         PR c/45079
14651         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
14653 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
14655         * c-common.h (c_common_missing_argument): Remove.
14656         * c-opts.c (c_common_missing_argument): Remove.
14657         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
14658         idirafter, imacros, include, isysroot, isystem, iquote): Add
14659         MissingArgError.
14660         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
14662 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
14664         * c-common.h (c_common_option_lang_mask,
14665         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
14666         New.
14667         (c_common_init_options): Update prototype.
14668         * c-opts.c (c_common_option_lang_mask): New.
14669         (c_common_initialize_diagnostics): Split out of
14670         c_common_init_options.
14671         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
14672         New.
14673         (c_common_init_options): Update prototype.  Use decoded options in
14674         search for -lang-asm.
14676 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
14678         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
14679         * c-format.c: Likewise.
14681 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14683         * c-common.h: Include diagnostic-core.h. Error if already
14684         included.
14685         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
14687 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14689         * c-common.c (IN_GCC_FRONTEND): Do not undef.
14690         Do not include expr.h
14691         (vector_mode_valid_p): Move here.
14693 2010-06-21  DJ Delorie  <dj@redhat.com>
14695         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
14696         allow these pragmas anywhere.
14698 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
14700         PR bootstrap/44509
14701         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
14702         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
14703         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
14704         ggc_strdup instead of xstrdup.
14706 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
14708         * c-cppbuiltin.c: Include cpp-id-data.h.
14709         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
14710         (lazy_hex_fp_value): New function.
14711         (builtin_define_with_hex_fp_value): Provide definitions lazily.
14713 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14715         * c-gimplify.c: Do not include tree-flow.h
14717 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
14719         PR other/44034
14720         * c-common.c: Rename targetm member:
14721         targetm.enum_va_list -> targetm.enum_va_list_p
14723 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
14725         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
14727 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
14729         * c-cppbuiltin.c: Do not include except.h.
14731 2010-06-24  Andi Kleen  <ak@linux.intel.com>
14733         * c-common.c (warn_for_omitted_condop): New.
14734         * c-common.h (warn_for_omitted_condop): Add prototype.
14736 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
14738         * c.opt (lang-objc): Remove.
14739         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
14741 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
14743         * c-opts.c: Include "tm_p.h".
14745 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
14747         * c-common.c (parse_optimize_options): Update call to
14748         decode_options.
14750 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
14752         * c-common.c (record_types_used_by_current_var_decl): Adjust for
14753         new type of types_used_by_cur_var_decl.
14755 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
14757         PR bootstrap/44512
14758         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
14759         for C++ standard compliance.
14761 2010-06-16  Jason Merrill  <jason@redhat.com>
14763         * c.opt: Add -Wnoexcept.
14765 2010-06-16  Richard Guenther  <rguenther@suse.de>
14767         PR c/44555
14768         * c-common.c (c_common_truthvalue_conversion): Remove
14769         premature and wrong optimization concering ADDR_EXPRs.
14771 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
14773         * c-ada-spec.c (dump_sloc): Remove column info.
14774         (is_simple_enum): New function.
14775         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
14776         enum types when relevant.
14778 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14780         * c-common.c (conversion_warning): Warn at expression
14781         location.
14783 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
14785         * c-opts.c (c_common_handle_option): Don't handle
14786         OPT_fshow_column.
14788 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14790         * c-pragma.c (push_alignment): Use typed GC allocation.
14791         (handle_pragma_push_options): Likewise.
14793         * c-common.c (parse_optimize_options): Likewise.
14795         * c-common.h (struct sorted_fields_type): Add variable_size GTY
14796         option.
14798 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
14800         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
14801         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
14802         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
14803         flag_signed_bitfields, warn_strict_null_sentinel,
14804         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
14805         flag_gen_declaration, flag_no_gnu_keywords,
14806         flag_implement_inlines, flag_implicit_templates,
14807         flag_implicit_inline_templates, flag_optional_diags,
14808         flag_elide_constructors, flag_default_inline, flag_rtti,
14809         flag_conserve_space, flag_access_control, flag_check_new,
14810         flag_new_for_scope, flag_weak, flag_working_directory,
14811         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
14812         flag_enforce_eh_specs, flag_threadsafe_statics,
14813         flag_pretty_templates): Remove.
14814         * c-common.h (flag_preprocess_only, flag_nil_receivers,
14815         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
14816         flag_replace_objc_classes, flag_undef, flag_no_builtin,
14817         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
14818         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
14819         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
14820         flag_no_gnu_keywords, flag_implement_inlines,
14821         flag_implicit_templates, flag_implicit_inline_templates,
14822         flag_optional_diags, flag_elide_constructors, flag_default_inline,
14823         flag_rtti, flag_conserve_space, flag_access_control,
14824         flag_check_new, flag_new_for_scope, flag_weak,
14825         flag_working_directory, flag_use_cxa_atexit,
14826         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
14827         flag_threadsafe_statics, flag_pretty_templates,
14828         warn_strict_null_sentinel): Remove.
14829         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
14830         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
14831         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
14832         fimplicit-inline-templates, fimplicit-templates,
14833         flax-vector-conversions, fms-extensions, fnil-receivers,
14834         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
14835         frtti, fshort-double, fshort-enums, fshort-wchar,
14836         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
14837         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
14838         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
14839         gen-decls, undef): Use Var.
14840         (fdefault-inline, foptional-diags): Document as doing nothing.
14841         * c-opts.c (c_common_handle_option): Remove cases for options now
14842         using Var.  Mark ignored options as such.
14844 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
14846         * c-common.c: Moved to here from parent directory.
14847         * c-common.def: Likewise.
14848         * c-common.h: Likewise.
14849         * c-cppbuiltin.c: Likewise.
14850         * c-dump.c: Likewise.
14851         * c-format.c: Likewise.
14852         * c-format.h : Likewise.
14853         * c-gimplify.c: Likewise.
14854         * c-lex.c: Likewise.
14855         * c-omp.c: Likewise.
14856         * c.opt: Likewise.
14857         * c-opts.c: Likewise.
14858         * c-pch.c: Likewise.
14859         * c-ppoutput.c: Likewise.
14860         * c-pragma.c: Likewise.
14861         * c-pragma.h: Likewise.
14862         * c-pretty-print.c: Likewise.
14863         * c-pretty-print.h: Likewise.
14864         * c-semantics.c: Likewise.
14865         * stub-objc.c: Likewise.
14867         * c-common.c: Include gt-c-family-c-common.h.
14868         * c-pragma.c: Include gt-c-family-c-pragma.h.
14870 Copyright (C) 2010-2024 Free Software Foundation, Inc.
14872 Copying and distribution of this file, with or without modification,
14873 are permitted in any medium without royalty provided the copyright
14874 notice and this notice are preserved.