1 2017-09-29 Eric Botcazou <ebotcazou@adacore.com>
3 * c-ada-spec.c (to_ada_name): Add index parameter.
4 (pp_ada_tree_identifier): Likewise.
5 (dump_ada_macros): Adjust call to to_ada_name.
6 (struct overloaded_name_hash): New type.
7 (struct overloaded_name_hasher): Likewise.
8 (overloaded_names): New hash table.
9 (compute_overloading_index): New function.
10 (dump_ada_decl_name): Call it and pass the result to
11 pp_ada_tree_identifier.
12 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
13 (dump_ada_function_declaration): Likewise.
14 (dump_generic_ada_node): Likewise.
15 (print_constructor): Likewise.
16 (print_destructor): Likewise.
17 (dump_ada_specs): Delete overloaded_names table.
19 2017-09-29 Eric Botcazou <ebotcazou@adacore.com>
21 * c-ada-spec.c (max_ada_macros): Move around.
22 (store_ada_macro_index): Likewise.
23 (source_file): Rename into...
24 (macro_source_file): ...this.
25 (count_ada_macro): Move around.
26 (store_ada_macro): Likewise.
27 (compare_macro): Likewise.
28 (print_ada_macros): Merge in...
29 (dump_ada_macros): ...this.
30 (source_file_base): Rename into...
31 (current_source_file): ...this.
32 (print_comment): Move around.
33 (dump_ada_nodes): Call dump_ada_declaration directly.
34 (struct with): Change type of limited field to bool.
35 (append_withs): Change type of limited_access parameter to bool.
36 (pp_ada_tree_identifie): Likewise.
37 (dump_ada_decl_nam): Likewise.
38 (dump_generic_ada_node): Likewise. Do not print the return type.
39 (to_ada_name): Change type of space_found parameter to bool.
40 (dump_ada_function_declaration): Return void and change type of
41 parameters to bool. Also print the return type for a function.
42 (print_ada_methods): Rename into...
43 (dump_ada_methods): ...this.
44 (print_ada_declaration): Rename into ...
45 (dump_ada_declaration): ...this. Do not print the return type.
46 (print_ada_struct_decl): Rename into...
47 (dump_ada_struct_decl): ...this.
49 2017-09-29 Jakub Jelinek <jakub@redhat.com>
51 * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
52 rather than DECL_INITIAL.
53 (common_handle_aligned_attribute): Likewise.
55 2017-09-20 Alexandre Oliva <aoliva@redhat.com>
57 * c.opt (gen-decls): Add RejectNegative.
59 2017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com>
60 Jakub Jelinek <jakub@redhat.com>
62 Add support for -std=c++2a.
63 * c-common.h (cxx_dialect): Add cxx2a as a dialect.
64 * opt.c: Add options for -std=c++2a and -std=gnu++2a.
65 * c-opts.c (set_std_cxx2a): New.
66 (c_common_handle_option): Set options when -std=c++2a is enabled.
67 (c_common_post_options): Adjust comments.
68 (set_std_cxx14, set_std_cxx17): Likewise.
70 2017-09-15 Eric Botcazou <ebotcazou@adacore.com>
72 * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
73 message for non-uniform endianness and issue a warning in C++.
75 2017-09-15 Jakub Jelinek <jakub@redhat.com>
77 * c.opt (Wc++1z-compat): Change from option to undocumented alias.
78 (Wc++17-compat): Change from undocumented alias to option.
79 (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
80 change C++1z to C++17 in description.
81 (std=c++1z, std=gnu++1z): Change from option to undocumented
83 (std=c++17, std=gnu++17): Change from undocumented alias to option.
85 * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
86 * c-opts.c (set_std_cxx1z): Rename to ...
87 (set_std_cxx17): ... this.
88 (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
89 and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z
91 (c_common_post_options): Use cxx17 instead of cxx1z. Adjust
94 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
96 * c-attribs.c (common_handle_aligned_attribute): Don't warn
97 function alignment if warn_if_not_aligned_p is true.
99 2017-09-12 Nathan Sidwell <nathan@acm.org>
101 * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
102 resort_sorted_fields): Move to c/c-decl.c.
103 * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
104 (struct sorted_fields_type): Move to c/c-lang.h.
106 2017-09-09 Jonathan Wakely <jwakely@redhat.com>
109 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
111 2017-09-04 Marek Polacek <polacek@redhat.com>
114 * c-warn.c (warn_tautological_bitwise_comparison): New function.
115 (warn_tautological_cmp): Call it.
117 2017-09-01 Boris Kolpackov <boris@codesynthesis.com>
119 * c-opts.c (c_common_finish): Write dependency information even if
122 2017-09-01 Jakub Jelinek <jakub@redhat.com>
125 * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
126 (omp_pragmas_simd): ... here.
127 * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
128 create new clauses list containing just simd clause.
130 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
131 Alan Hayward <alan.hayward@arm.com>
132 David Sherwood <david.sherwood@arm.com>
134 * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
135 into scalar_mode_supported_p call.
136 (handle_mode_attribute): Update call to scalar_mode_supported_p.
138 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
139 Alan Hayward <alan.hayward@arm.com>
140 David Sherwood <david.sherwood@arm.com>
142 * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
143 for the mode iterator.
145 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
146 Alan Hayward <alan.hayward@arm.com>
147 David Sherwood <david.sherwood@arm.com>
149 * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
150 * c-common.c (c_build_vec_perm_expr): Likewise.
152 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
153 Alan Hayward <alan.hayward@arm.com>
154 David Sherwood <david.sherwood@arm.com>
156 * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
158 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
159 Alan Hayward <alan.hayward@arm.com>
160 David Sherwood <david.sherwood@arm.com>
162 * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
163 before calling targetm.addr_space.valid_pointer_mode.
165 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
166 Alan Hayward <alan.hayward@arm.com>
167 David Sherwood <david.sherwood@arm.com>
169 * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
171 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
172 Alan Hayward <alan.hayward@arm.com>
173 David Sherwood <david.sherwood@arm.com>
175 * c-common.c (c_common_fixed_point_type_for_size): Use new mode
177 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
179 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
180 Alan Hayward <alan.hayward@arm.com>
181 David Sherwood <david.sherwood@arm.com>
183 * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
186 2017-08-29 Martin Liska <mliska@suse.cz>
189 * c-common.c (parse_optimize_options): Add argument to function
191 * c-pragma.c (handle_pragma_diagnostic): Likewise.
193 2017-08-24 David Malcolm <dmalcolm@redhat.com>
195 * c-lex.c (interpret_float): Use token location
196 when building an EXCESS_PRECISION_EXPR.
198 2017-08-21 David Malcolm <dmalcolm@redhat.com>
200 * c-common.c (check_function_arguments): Add "arglogs" param; pass
201 it to check_function_format.
202 * c-common.h (check_function_arguments): Add vec<location_t> *
204 (check_function_format): Likewise.
205 * c-format.c (struct format_check_context): Add field "arglocs".
206 (check_function_format): Add param "arglocs"; pass it to
208 (check_format_info): Add param "arglocs"; use it to initialize
209 new field of format_ctx.
210 (check_format_arg): Pass format_ctx->arglocs to new param of
211 check_format_info_main.
212 (class argument_parser): New field "arglocs".
213 (argument_parser::argument_parser): Add "arglocs_" param and use
214 it to initialize new field.
215 (argument_parser::check_argument_type): Pass new arglocs field to
217 (check_format_info_main): Add param "arglocs", and use it when
218 constructing arg_parser.
219 (check_format_types): Add param "arglocs"; use it if non-NULL when
220 !EXPR_HAS_LOCATION (cur_param) to get at location information.
222 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
225 * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
226 (c_common_attribute_table): Add warn_if_not_aligned.
227 (handle_aligned_attribute): Renamed to ...
228 (common_handle_aligned_attribute): Remove argument, name, and add
229 argument, warn_if_not_aligned. Handle warn_if_not_aligned.
230 (handle_aligned_attribute): New.
231 * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
233 2017-08-14 Martin Sebor <msebor@redhat.com>
236 * c-attribs.c (c_common_attribute_table): Add nonstring entry.
237 (handle_nonstring_attribute): New function.
239 2017-08-14 Martin Sebor <msebor@redhat.com>
242 * c-format.h (T89_G): New macro.
243 * c-format.c (local_gcall_ptr_node): New variable.
244 (init_dynamic_diag_info): Initialize it.
246 2017-08-11 Martin Liska <mliska@suse.cz>
248 * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
249 TARGET_SUPPORTS_ALIASES.
251 2017-08-10 David Malcolm <dmalcolm@redhat.com>
253 * c-common.c (c_parse_error): Add rich_location * param, using it
254 rather implicitly using input_location.
255 * c-common.h (c_parse_error): Add rich_location * param.
257 2017-08-09 Marek Polacek <polacek@redhat.com>
259 * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
260 (c_common_truthvalue_conversion): Likewise.
261 * c-omp.c (c_finish_omp_atomic): Likewise.
262 * c-common.h (build_binary_op): Update declaration.
264 2017-08-08 Martin Liska <mliska@suse.cz>
266 * c-ada-spec.c: Include header files.
267 * c-ubsan.c: Likewise.
268 * c-warn.c: Likewise.
270 2017-08-07 Jakub Jelinek <jakub@redhat.com>
273 * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
275 2017-08-07 Eric Botcazou <ebotcazou@adacore.com>
277 * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
278 (print_ada_methods): Likewise.
279 (print_ada_declaration): Likewise.
281 2017-08-07 Martin Liska <mliska@suse.cz>
283 * array-notation-common.c: Add new includes.
284 * c-format.c( handle_format_attribute): Canonicalize a format
286 * c-lex.c (c_common_has_attribute): Canonicalize name of an
288 * c-pretty-print.c: Add new include.
290 2017-08-05 Eric Botcazou <ebotcazou@adacore.com>
292 * c-ada-spec.c (has_static_fields): Look only into variables.
293 (print_constructor): Add TYPE parameter and use it for the name.
294 (print_destructor): Likewise.
295 (print_ada_declaration): Adjust to new constructor/destructor names.
296 Adjust calls to print_constructor and print_destructor.
297 (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
298 Look only into variables in the final loop.
300 2017-08-01 Eric Botcazou <ebotcazou@adacore.com>
302 * c-ada-spec.c (has_static_fields): Look only into fields.
303 (dump_generic_ada_node): Small tweak.
304 (dump_nested_types): Look only into fields.
305 (print_ada_declaration): Look only into methods. Small tweak.
306 (print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P.
308 2017-08-01 Eric Botcazou <ebotcazou@adacore.com>
310 * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
311 (dump_ada_function_declaration): Likewise.
312 (dump_generic_ada_node): Likewise.
313 (print_ada_declaration): Add support for const-qualified variables.
315 2017-07-31 Martin Liska <mliska@suse.cz>
318 * c-ubsan.c (ubsan_maybe_instrument_array_ref):
319 Guard condition with flag_sanitize_p also with current_function_decl
321 (ubsan_maybe_instrument_reference_or_call): Likewise.
323 2017-07-30 Uros Bizjak <ubizjak@gmail.com>
325 * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
327 2017-07-29 Eric Botcazou <ebotcazou@adacore.com>
329 * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
331 (print_ada_declaration): Add missing guard for record types.
333 2017-07-27 Jakub Jelinek <jakub@redhat.com>
336 * c-omp.c (c_finish_omp_for): If the condition is wrapped in
337 rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
338 new COMPOUND_EXPRs around the rhs of the comparison.
340 2017-07-27 Marek Polacek <polacek@redhat.com>
343 * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print
346 2017-07-27 Jakub Jelinek <jakub@redhat.com>
348 * c-attribs.c (c_common_attribute_table): Add noipa attribute.
349 (handle_noipa_attribute): New function.
351 2017-07-07 Torsten Duwe <duwe@suse.de>
353 * c-attribs.c (c_common_attribute_table): Add entry for
354 "patchable_function_entry".
356 2017-07-20 Nathan Sidwell <nathan@acm.org>
359 * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
360 dump_ada_template, print_ada_methods,
361 print_ada_declaration): Member fns are on TYPE_FIELDS.
363 2017-07-18 Nathan Sidwell <nathan@acm.org>
365 * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
367 2017-07-14 David Malcolm <dmalcolm@redhat.com>
369 * c-common.c (try_to_locate_new_include_insertion_point): New
371 (per_file_includes_t): New typedef.
372 (added_includes_t): New typedef.
373 (added_includes): New variable.
374 (maybe_add_include_fixit): New function.
375 * c-common.h (maybe_add_include_fixit): New decl.
377 2017-07-10 Martin Sebor <msebor@redhat.com>
380 * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
382 2017-07-06 David Malcolm <dmalcolm@redhat.com>
384 * c-common.c (selftest::c_family_tests): New.
385 * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
386 (selftest::c_family_tests): New decl.
388 2017-07-04 Marek Polacek <polacek@redhat.com>
391 * c-common.c (sync_resolve_size): Give error for pointers to incomplete
394 2017-07-04 Marek Polacek <polacek@redhat.com>
396 * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
398 2017-06-28 Martin Liska <mliska@suse.cz>
401 * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
402 to a function declaration.
404 2017-06-28 Martin Liska <mliska@suse.cz>
407 * c.opt: Add IntegerRange to various options.
409 2017-06-26 Marek Polacek <polacek@redhat.com>
412 * c-common.h (warn_for_multistatement_macros): Declare.
413 * c-warn.c: Include "c-family/c-indentation.h".
414 (warn_for_multistatement_macros): New function.
415 * c.opt (Wmultistatement-macros): New option.
416 * c-indentation.c (guard_tinfo_to_string): No longer static.
417 Change the parameter type to "enum rid". Handle RID_SWITCH.
418 * c-indentation.h (guard_tinfo_to_string): Declare.
420 2017-06-23 Marc Glisse <marc.glisse@inria.fr>
422 * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
424 2017-06-15 Martin Sebor <msebor@redhat.com>
427 * c.opt (-Wclass-memaccess): New option.
429 2017-06-14 Boris Kolpackov <boris@codesynthesis.com>
431 * c-opts.c (c_common_finish): Handle '-' special value to -MF.
433 2017-06-13 Marek Polacek <polacek@redhat.com>
436 * c-warn.c (do_warn_duplicated_branches): Return if any of the
439 2017-06-13 Martin Liska <mliska@suse.cz>
442 * c-attribs.c (add_no_sanitize_value): New function.
443 (handle_no_sanitize_attribute): Likewise.
444 (handle_no_sanitize_address_attribute): Use the function.
445 (handle_no_sanitize_thread_attribute): New function.
446 (handle_no_address_safety_analysis_attribute): Use
447 add_no_sanitize_value.
448 (handle_no_sanitize_undefined_attribute): Likewise.
449 * c-common.h: Declare new functions.
450 * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
451 (ubsan_instrument_shift): Likewise.
452 (ubsan_instrument_bounds): Likewise.
453 (ubsan_maybe_instrument_array_ref): Likewise.
454 (ubsan_maybe_instrument_reference_or_call): Likewise.
456 2017-06-11 Jason Merrill <jason@redhat.com>
458 * c-ada-spec.c, c-pragma.c: Use id_equal.
460 2017-06-04 Marek Polacek <polacek@redhat.com>
463 * c-format.c (matching_type_p): Return false if any of the types
464 requires structural equality.
466 2017-06-02 Martin Sebor <msebor@redhat.com>
469 * c-warn.c (conversion_warning): Use -Wconversion for integer
470 conversion and -Wfloat-conversion for floating one.
472 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
474 * c.opt (Wsizeof-pointer-div): New warning option.
476 2017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
478 * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
479 (Wcatch-value=1): Enable by -Wall.
481 2017-05-30 David Malcolm <dmalcolm@redhat.com>
483 * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
485 * c.opt (fdiagnostics-show-template-tree): New option.
486 (felide-type): New option.
488 2017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
490 * c.opt (Wcatch-value=): New C++ warning flag.
492 2017-05-24 Nathan Sidwell <nathan@acm.org>
494 * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
495 const casts to avoid warning.
497 2017-05-24 Martin Sebor <msebor@redhat.com>
500 * c-common.h (unsafe_conversion_p): Add a function argument.
501 * c-common.c (unsafe_conversion_p): Same.
502 Add type names and values to diagnostics.
503 (scalar_to_vector): Adjust.
504 * c-warn.c (constant_expression_error): Add a function argument.
505 Add type names and values to diagnostics.
506 (conversion_warning): Add a function argument.
507 Add type names and values to diagnostics.
508 (warnings_for_convert_and_check): Same.
510 2017-05-19 Jason Merrill <jason@redhat.com>
512 * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
515 2017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
517 * c-format.c (locus): Move out of function scope,
520 2017-05-19 Nathan Sidwell <nathan@acm.org>
522 * c-opts.c (class_dump_file, class_dump_flags): Delete.
523 (c_common_parse_file): Remove class dump handling.
524 (get_dump_info): Likewise.
526 2017-05-19 Richard Biener <rguenther@suse.de>
529 * c-warn.c (strict_aliasing_warning): Do not warn for accesses
530 to alias-set zero memory.
532 2017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
534 * c-format.c (local_tree_type_node): Add GTY attribute.
536 2017-05-18 Marek Polacek <polacek@redhat.com>
538 * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
539 (c_common_fixed_point_type_for_size): Likewise.
540 (c_common_type_for_mode): Likewise.
541 (shorten_compare): Likewise.
542 (c_promoting_integer_type_p): Use false/true instead of 0/1.
543 * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
545 2017-05-18 Marek Polacek <polacek@redhat.com>
547 * c-common.c (self_promoting_args_p): Change the return type to bool.
548 Use false/true instead of 0/1.
549 * c-common.h (self_promoting_args_p): Update.
551 2017-05-17 Marek Polacek <polacek@redhat.com>
553 * c-common.c: Use NULL_TREE instead of 0 where appropriate.
554 * c-warn.c: Likewise.
556 2017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
558 Implement new C++ intrinsics __is_assignable and __is_constructible.
559 * c-common.c (__is_assignable, __is_constructible): New.
560 * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
562 2017-05-17 Martin Liska <mliska@suse.cz>
564 * c-common.h: Introduce dump_flags_t type and
565 use it instead of int type.
566 * c-gimplify.c (c_genericize): Likewise.
567 * c-opts.c: Likewise.
569 2017-05-17 Marek Polacek <polacek@redhat.com>
571 * c-common.c (c_save_expr): Remove.
572 (c_common_truthvalue_conversion): Remove a call to c_save_expr.
573 * c-common.h (c_save_expr): Remove declaration.
575 2017-05-09 Volker Reichelt <v.reichelt@netcologne.de>
578 * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
579 MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
580 (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
581 (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
583 (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
585 2017-05-09 Marek Polacek <polacek@redhat.com>
588 * c-warn.c (unwrap_c_maybe_const): New.
589 (warn_logical_operator): Call it.
591 2017-05-09 Nathan Sidwell <nathan@acm.org>
593 * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
594 * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
596 2017-05-08 Martin Sebor <msebor@redhat.com>
599 * c-format.h (struct format_flag_spec): Add new member.
601 * c-format.c (local_tree_type_node): New global.
602 (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
603 (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
604 (strfmon_flag_specs): Likewise.
605 (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
606 with distinct quoting properties.
607 (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
608 (flag_chars_t::validate): Add argument and handle bad quoting.
609 (check_format_info_main): Handle quoting problems.
610 (init_dynamic_diag_info): Simplify.
612 2017-05-08 Jason Merrill <jason@redhat.com>
614 * c-opts.c (c_common_post_options): Update defaults for
615 flag_abi_version and flag_abi_compat_version.
617 2017-05-05 David Malcolm <dmalcolm@redhat.com>
619 * c-common.c (c_cpp_error): Replace report_diagnostic
620 with diagnostic_report_diagnostic.
622 2017-05-04 Martin Sebor <msebor@redhat.com>
625 * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
626 (handle_weakref_attribute): Same.
628 2017-05-03 Nathan Sidwell <nathan@acm.org>
630 Canonicalize canonical type hashing
631 * c-common.c (complete_array_type): Use type_hash_canon.
633 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
636 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
638 (cilk_install_body_pedigree_operations): Likewise.
639 * cilk.c (cilk_set_spawn_marker): Mark functions that should be
641 (cilk_gimplify_call_params_in_spawned_fn): Remove.
642 (cilk_install_body_pedigree_operations): Likewise.
643 (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
646 2017-04-27 Jakub Jelinek <jakub@redhat.com>
649 * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
650 flag on non-aggregate element types.
652 2017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
654 * c-common.c (c_type_hasher, type_hash_table): Remove.
655 (c_common_get_alias_set): Remove unreachable code.
656 * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
658 2017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
660 * c.opt (Wextra-semi): New C++ warning flag.
662 2017-04-20 Jakub Jelinek <jakub@redhat.com>
665 * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
667 2017-04-18 Jakub Jelinek <jakub@redhat.com>
671 * c-common.c (c_common_type_for_mode): Don't handle
672 widest_*_literal_type_node here.
673 c_common_signed_or_unsigned_type): Likewise.
674 (c_common_nodes_and_builtins): Set widest_*_literal_type_node
675 to *intTI_type_node or *intDI_type_node depending on whether
676 TImode is supported by the target or not.
678 2017-04-10 Martin Liska <mliska@suse.cz>
681 * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
682 doing an UBSAN check.
684 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
686 * c-warn.c (do_warn_double_promotion): Fix typo in comment.
688 2017-03-31 Jakub Jelinek <jakub@redhat.com>
691 * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
693 * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle
694 not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
697 2017-03-31 David Malcolm <dmalcolm@redhat.com>
699 PR documentation/78732
700 * c.opt (Wendif-labels): Fix description to refer to
701 #else rather than #elif.
703 2017-03-31 Jakub Jelinek <jakub@redhat.com>
706 * c-common.h (enum rid): Add RID_IS_AGGREGATE.
707 * c-common.c (c_common_reswords): Add __is_aggregate trait.
709 2017-03-27 Jakub Jelinek <jakub@redhat.com>
712 * c-common.c (c_common_mark_addressable_vec): Don't set
713 TREE_ADDRESSABLE on DECL_HARD_REGISTER.
715 2017-03-21 Martin Sebor <msebor@redhat.com>
718 * c-common.c (set_underlying_type): Mark type used only when
719 original del is declared unused.
721 2017-03-10 David Malcolm <dmalcolm@redhat.com>
724 * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
727 2017-03-10 David Malcolm <dmalcolm@redhat.com>
730 * c-indentation.c (warn_for_misleading_indentation): Remove parens
731 from inform's message, so that xgettext can locate it.
733 2017-03-09 Marek Polacek <polacek@redhat.com>
737 * c-attribs.c (handle_nonnull_attribute): Save the result of default
738 conversion to the attribute list.
740 2017-03-09 Martin Liska <mliska@suse.cz>
742 * c-ada-spec.c (macro_length): Increment value instead of a pointer.
744 2017-03-03 Jason Merrill <jason@redhat.com>
746 * c.opt (Wnoexcept-type): New.
748 2017-03-02 Richard Biener <rguenther@suse.de>
751 * c-common.c (c_common_mark_addressable_vec): Look through
754 2017-02-28 Martin Liska <mliska@suse.cz>
756 * c.opt: Replace space with tabular for options of <number>
759 2017-02-28 Martin Liska <mliska@suse.cz>
761 * c.opt: Fix --help=option -Q for options which are of
764 2017-02-24 Jakub Jelinek <jakub@redhat.com>
767 * c-common.c (check_function_restrict): New function.
768 (check_function_arguments): Add FNDECL argument. Call
769 check_function_restrict if -Wrestrict.
770 * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
771 and NARGS. Use auto_vec for ARG_POSITIONS, simplify.
772 * c-common.h (check_function_arguments): Add FNDECL argument.
773 (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
775 2017-02-24 Eric Botcazou <ebotcazou@adacore.com>
777 * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
778 treatment of parameters with pointer-to-tagged type and tidy up.
779 (print_ada_methods): Remove the special treatment of C++ static member
782 2017-02-22 Martin Liska <mliska@suse.cz>
784 * c.opt: Replace inequality signs with square brackets
787 2017-02-21 Jakub Jelinek <jakub@redhat.com>
790 * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
793 2017-02-17 Joseph Myers <joseph@codesourcery.com>
795 * c-cppbuiltin.c (builtin_define_float_constants): Define
796 __DECIMAL_DIG__ to the value for long double.
798 2017-02-15 Marek Polacek <polacek@redhat.com>
801 * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
802 conversion has occured.
804 2017-01-24 David Malcolm <dmalcolm@redhat.com>
806 * c-common.c (c_common_reswords): Add "__RTL".
807 * c-common.h (enum rid): Add RID_RTL.
809 2017-01-20 Marek Polacek <polacek@redhat.com>
812 * c-common.h (do_warn_duplicated_branches_r): Declare.
813 * c-gimplify.c (c_genericize): Walk the function tree calling
814 do_warn_duplicated_branches_r.
815 * c-warn.c (expr_from_macro_expansion_r): New.
816 (do_warn_duplicated_branches): New.
817 (do_warn_duplicated_branches_r): New.
818 * c.opt (Wduplicated-branches): New option.
820 2017-01-17 David Malcolm <dmalcolm@redhat.com>
823 * c-indentation.c (warn_for_misleading_indentation): Use the past
824 subjunctive in the note.
826 2017-01-17 Aldy Hernandez <aldyh@redhat.com>
829 * array-notation-common.c (cilkplus_extract_an_triplets): Convert
830 start type to integer_type.
832 2017-01-16 Jakub Jelinek <jakub@redhat.com>
835 * c.opt (gen-decls): Add Driver flag.
837 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
840 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
843 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
845 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
848 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
850 2017-01-12 Martin Sebor <msebor@redhat.com>
852 (-Wformat-overflow): ...to this.
854 2017-01-11 Martin Sebor <msebor@redhat.com>
857 * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
860 2017-01-10 Jason Merrill <jason@redhat.com>
862 Implement P0195R2, C++17 variadic using.
863 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
865 2017-01-09 Jakub Jelinek <jakub@redhat.com>
869 * c.opt (Wnormalized=): Fix typo in description.
871 2017-01-08 Martin Sebor <msebor@redhat.com>
874 * c.opt (-Wformat-truncation): New option.
876 2017-01-06 Alexandre Oliva <aoliva@redhat.com>
878 * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
879 value to unsigned short to fit in 4 hex digits without
882 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
884 * c.opt (fsso-struct): Add 'native' value.
886 2017-01-05 Martin Liska <mliska@suse.cz>
889 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
892 2017-01-04 Marek Polacek <polacek@redhat.com>
895 * c.opt (Wpointer-compare): New option.
897 2017-01-04 Jakub Jelinek <jakub@redhat.com>
900 * c.opt (fsso-struct=): Add RejectNegative.
902 2017-01-01 Jakub Jelinek <jakub@redhat.com>
904 Update copyright years.
906 2016-12-29 Martin Liska <mliska@suse.cz>
909 * c.opt (strong-eval-order): Add RejectNegative keyword.
911 2016-12-22 Jason Merrill <jason@redhat.com>
913 Implement P0522R0, matching of template template arguments.
914 * c-cppbuiltin.c (c_cpp_builtins): Define
915 __cpp_template_template_args.
917 2016-12-21 Jakub Jelinek <jakub@redhat.com>
920 * c-common.c (struct nonnull_arg_ctx): New type.
921 (check_function_nonnull): Return bool instead of void. Use
922 nonnull_arg_ctx as context rather than just location_t.
923 (check_nonnull_arg): Adjust for the new context type, set
924 warned_p to true if a warning has been diagnosed.
925 (check_function_arguments): Return bool instead of void.
926 * c-common.h (check_function_arguments): Adjust prototype.
928 2016-12-21 Jason Merrill <jason@redhat.com>
930 * c.opt (-fnew-ttp-matching): New flag.
931 * c-opts.c (c_common_post_options): Default on if -std=c++1z.
933 2016-12-14 Martin Jambor <mjambor@suse.cz>
935 * c-omp.c: Include omp-general.h instead of omp-low.h.
936 (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
939 2016-12-14 Martin Sebor <msebor@redhat.com>
942 * c-common.c (check_nonnull_arg): Disable when optimization
945 2016-12-12 Marek Polacek <polacek@redhat.com>
948 * c-common.c (attribute_fallthrough_p): Return false for
951 2016-12-08 Martin Sebor <msebor@redhat.com>
954 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
956 2016-12-08 Martin Sebor <msebor@redhat.com>
959 * c-pretty-print (pp_c_integer_constant): Avoid formatting type
962 2016-12-07 Martin Sebor <msebor@redhat.com>
968 * c.opt (-Wstringop-overflow): New option.
970 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
972 * c-attribs.c (asan odr indicator): New attribute.
973 (handle_asan_odr_indicator_attribute): New function.
975 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
977 * c-common.c (c_common_nodes_and_builtins): Remove initialization of
980 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
982 * c-common.c (excess_precision_mode_join): New.
983 (c_ts18661_flt_eval_method): New.
984 (c_c11_flt_eval_method): Likewise.
985 (c_flt_eval_method): Likewise.
986 * c-common.h (excess_precision_mode_join): New.
987 (c_flt_eval_method): Likewise.
988 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
989 (cpp_iec_559_value): Call it.
990 (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
991 call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
992 __FLT_EVAL_METHOD_TS_18661_3__.
994 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
996 * c-opts.c (c_common_post_options): Add logic to handle the default
997 case for -fpermitted-flt-eval-methods.
999 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
1001 * c.opt (Wexpansion-to-defined): New.
1003 2016-11-23 Jakub Jelinek <jakub@redhat.com>
1006 * c-pragma.c (handle_pragma_target): Don't replace
1007 current_target_pragma, but chainon the new args to the current one.
1009 2016-11-22 Nathan Sidwell <nathan@acm.org>
1011 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
1012 indentation and formatting.
1014 2016-11-21 Martin Sebor <msebor@redhat.com>
1016 * c.opt (-fprintf-return-value): Enable by default.
1018 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1021 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
1022 * c-common.c (c_common_nodes_and_builtins): Initialize
1023 const_tm_ptr_type_node.
1025 2016-11-16 Marek Polacek <polacek@redhat.com>
1028 * c-common.c (c_add_case_label): Turn error_at calls into inform.
1030 2016-11-14 Jakub Jelinek <jakub@redhat.com>
1032 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
1034 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
1035 Richard Biener <rguenther@suse.de>
1037 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
1038 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
1039 * c.opt (fgimple): New option.
1041 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1044 * c-common.h (warn_for_restrict): Declare.
1045 * c-warn.c: Include gcc-rich-location.h.
1046 (warn_for_restrict): New function.
1047 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
1048 (gcc_cdiag_char_table): Likewise.
1049 (gcc_cxxdiag_char_table): Likewise.
1050 * c.opt (Wrestrict): New option.
1052 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
1054 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
1055 for nested types only if the type is a record or union and dump SLOC.
1057 2016-11-09 Jason Merrill <jason@redhat.com>
1059 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
1061 2016-11-09 Jakub Jelinek <jakub@redhat.com>
1063 * c-ubsan.c (ubsan_instrument_shift): Handle split
1064 -fsanitize=shift-base and -fsanitize=shift-exponent.
1066 2016-11-07 Jason Merrill <jason@redhat.com>
1068 * c.opt (Wc++1z-compat): New.
1069 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
1071 2016-11-07 Martin Liska <mliska@suse.cz>
1073 * c-warn.c (warn_for_unused_label): Save all labels used
1074 in goto or in &label.
1076 2016-11-03 Jason Merrill <jason@redhat.com>
1078 * c-cppbuiltin.c (c_cpp_builtins): Correct
1079 __cpp_inheriting_constructors.
1081 2016-11-01 Jason Merrill <jason@redhat.com>
1083 * c-cppbuiltin.c (c_cpp_builtins): Update
1084 __cpp_inheriting_constructors.
1086 * c.opt (-fnew-inheriting-ctors): New.
1087 * c-opts.c: Default to on for ABI 11+.
1089 2016-10-31 Jakub Jelinek <jakub@redhat.com>
1092 * c.opt (fext-numeric-literals): Add Var and Init.
1093 * c-opts.c (c_common_handle_option): Don't clear
1094 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
1095 (c_common_post_options): Clear it here if not set
1098 2016-10-28 Aldy Hernandez <aldyh@redhat.com>
1101 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
1104 2016-10-25 Jakub Jelinek <jakub@redhat.com>
1106 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
1107 * c-common.c (c_common_reswords): Add __builtin_launder.
1109 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
1111 * c-common.c (c_common_truthvalue_conversion): Warn for
1112 multiplications in boolean context. Fix the quoting of '<<' and '<'
1113 in the shift warning.
1115 2016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1117 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
1119 2016-10-20 Jason Merrill <jason@redhat.com>
1121 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
1123 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1125 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
1126 integer shift ops in boolean context.
1128 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
1130 * c.opt (Walloca): New.
1131 (Walloca-larger-than=): New.
1132 (Wvla-larger-than=): New.
1134 2016-10-17 Marek Polacek <polacek@redhat.com>
1136 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
1137 Return immediately when finding a match.
1138 (warn_tautological_cmp): Remove a boolean variable that is no longer
1141 2016-10-17 Marek Polacek <polacek@redhat.com>
1143 * c-attribs.c: New file.
1144 * c-common.c: Move attributes handling to c-attribs.c.
1145 (get_nonnull_operand): No longer static.
1146 * c-common.h: Move the declarations from c-attribs.c to its own section.
1148 2016-10-14 Jason Merrill <jason@redhat.com>
1150 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
1151 and __cpp_deduction_guides.
1153 2016-10-13 Jason Merrill <jason@redhat.com>
1155 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
1157 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1159 * c-cppbuiltin.c: Include memmodel.h.
1160 * c-opts.c: Likewise.
1161 * c-pragma.c: Likewise.
1162 * c-warn.c: Likewise.
1164 2016-10-12 Jakub Jelinek <jakub@redhat.com>
1166 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
1167 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
1168 * c-opts.c (sanitize_cpp_opts): Initialize
1169 cpp_opts->cpp_warn_implicit_fallthrough.
1171 2016-10-11 Marek Polacek <polacek@redhat.com>
1173 * c-common.c (warning_candidate_p): Change the return type to bool
1174 and return true/false instead of 1/0.
1175 (vector_mode_valid_p): Likewise.
1177 2016-10-11 Marek Polacek <polacek@redhat.com>
1179 * c-common.c (fold_for_warn): No longer static.
1180 (bool_promoted_to_int_p): Likewise.
1181 (c_common_get_narrower): Likewise.
1182 (constant_expression_warning): Move to c-warn.c.
1183 (constant_expression_error): Likewise.
1184 (overflow_warning): Likewise.
1185 (warn_logical_operator): Likewise.
1186 (find_array_ref_with_const_idx_r): Likewise.
1187 (warn_tautological_cmp): Likewise.
1188 (expr_has_boolean_operands_p): Likewise.
1189 (warn_logical_not_parentheses): Likewise.
1190 (warn_if_unused_value): Likewise.
1191 (strict_aliasing_warning): Likewise.
1192 (sizeof_pointer_memaccess_warning): Likewise.
1193 (check_main_parameter_types): Likewise.
1194 (conversion_warning): Likewise.
1195 (warnings_for_convert_and_check): Likewise.
1196 (match_case_to_enum_1): Likewise.
1197 (match_case_to_enum): Likewise.
1198 (c_do_switch_warnings): Likewise.
1199 (warn_for_omitted_condop): Likewise.
1200 (readonly_error): Likewise.
1201 (lvalue_error): Likewise.
1202 (invalid_indirection_error): Likewise.
1203 (warn_array_subscript_with_type_char): Likewise.
1204 (warn_about_parentheses): Likewise.
1205 (warn_for_unused_label): Likewise.
1206 (warn_for_div_by_zero): Likewise.
1207 (warn_for_memset): Likewise.
1208 (warn_for_sign_compare): Likewise.
1209 (do_warn_double_promotion): Likewise.
1210 (do_warn_unused_parameter): Likewise.
1211 (record_locally_defined_typedef): Likewise.
1212 (maybe_record_typedef_use): Likewise.
1213 (maybe_warn_unused_local_typedefs): Likewise.
1214 (maybe_warn_bool_compare): Likewise.
1215 (maybe_warn_shift_overflow): Likewise.
1216 (warn_duplicated_cond_add_or_warn): Likewise.
1217 (diagnose_mismatched_attributes): Likewise.
1218 * c-common.h: Move the declarations from c-warn.c to its own section.
1219 * c-warn.c: New file.
1221 2016-10-08 Jason Merrill <jason@redhat.com>
1223 * c-common.c (c_common_truthvalue_conversion): Don't distribute
1224 into COND_EXPR in C++.
1226 2016-10-08 Jakub Jelinek <jakub@redhat.com>
1228 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
1229 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
1230 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
1232 2016-10-07 Jakub Jelinek <jakub@redhat.com>
1234 Implement LWG2296 helper intrinsic
1235 * c-common.h (enum rid): Add RID_ADDRESSOF.
1236 * c-common.c (c_common_reswords): Add __builtin_addressof.
1238 2016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
1241 * c-common.c (c_common_truthvalue_conversion): Warn also for
1242 suspicious enum values in boolean context.
1244 2016-10-06 Jakub Jelinek <jakub@redhat.com>
1246 Implement P0258R2 - helper for C++17
1247 std::has_unique_object_representations trait
1248 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
1249 * c-common.c (c_common_reswords): Add
1250 __has_unique_object_representations.
1252 2016-10-05 Jakub Jelinek <jakub@redhat.com>
1255 * c-ubsan.c (ubsan_instrument_return): Don't call
1256 initialize_sanitizer_builtins here.
1258 2016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
1260 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
1261 conditional expression in boolean context when only one arm is
1264 2016-10-05 Jakub Jelinek <jakub@redhat.com>
1267 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
1270 * c-common.c (c_common_reswords): Update comment for C++11.
1272 2016-10-04 Jason Merrill <jason@redhat.com>
1274 * c-common.c (make_tree_vector_from_ctor): New.
1275 * c-common.h: Declare it.
1277 2016-10-04 Jakub Jelinek <jakub@redhat.com>
1279 * c-cppbuiltin.c (c_cpp_builtins): Don't define
1280 __LIBGCC_JCR_SECTION_NAME__.
1282 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1284 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
1285 left shift in boolean context.
1287 2016-09-29 Jakub Jelinek <jakub@redhat.com>
1289 Implement P0001R1 - C++17 removal of register storage class specifier
1290 * c.opt (Wregister): New warning.
1291 * c-opts.c (c_common_post_options): Enable -Wregister by
1294 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
1296 * c-opts.c (c_common_post_options): Remove special case for
1297 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
1300 2016-09-27 Jakub Jelinek <jakub@redhat.com>
1302 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
1305 * c-ada-spec.c (print_ada_declaration): Remove break after return.
1307 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
1309 * c-common.c: Include memmodel.h.
1311 2016-09-26 Marek Polacek <polacek@redhat.com>
1313 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
1315 2016-09-26 Marek Polacek <polacek@redhat.com>
1318 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
1319 (handle_fallthrough_attribute): New function.
1320 (attribute_fallthrough_p): New function.
1321 * c-common.h (attribute_fallthrough_p): Declare.
1323 2016-09-24 Marek Polacek <polacek@redhat.com>
1326 * c.opt (Wbool-operation): New.
1328 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1330 * c-common.c (c_common_truthvalue_conversion): Inhibit
1331 Wint-in-bool-context warning with from_macro_definition_at.
1332 Mention the expression will always evaluate to true.
1334 2016-09-21 Martin Sebor <msebor@redhat.com>
1337 * c.opt (fprintf-return-value): Temporarily initialize to zero
1338 to unblock bootstrap failures.
1340 2016-09-21 Jakub Jelinek <jakub@redhat.com>
1343 * c.opt (Waligned-new=): Add RejectNegative.
1344 (faligned-new=): Likewise. Spelling fix - change
1345 aligned_new_threshhold to aligned_new_threshold.
1346 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
1347 to aligned_new_threshold.
1349 2016-09-20 Martin Sebor <msebor@redhat.com>
1352 * c.opt: Add -Wformat-length and -fprintf-return-value.
1354 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1357 * c.opt (Wint-in-bool-context): New warning.
1358 * c-common.c (c_common_truthvalue_conversion): Warn on integer
1359 constants in boolean context.
1361 2016-09-19 Joseph Myers <joseph@codesourcery.com>
1363 * c-common.c (max_align_t_align): Also consider alignment of
1366 2016-09-15 Jason Merrill <jason@redhat.com>
1368 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
1371 2016-09-14 Jason Merrill <jason@redhat.com>
1373 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
1374 limit FIELD_DECL, either.
1376 2016-09-14 Marek Polacek <polacek@redhat.com>
1378 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
1379 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
1380 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
1382 2016-09-13 David Malcolm <dmalcolm@redhat.com>
1384 * c-common.c (warn_logical_not_parentheses): Replace
1385 rich_location::add_fixit_insert calls with add_fixit_insert_before
1386 and add_fixit_insert_after, eliminating the "next_loc" calculation.
1388 2016-09-13 Jason Merrill <jason@redhat.com>
1389 Tom de Vries <tom@codesourcery.com>
1392 * c-common.c (set_underlying_type): Don't treat array as builtin type.
1394 2016-09-13 Jason Merrill <jason@redhat.com>
1396 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
1399 2016-09-12 Jason Merrill <jason@redhat.com>
1401 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
1402 bit/byte confusion, allow large alignment for types.
1404 2016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
1407 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
1409 2016-09-12 David Malcolm <dmalcolm@redhat.com>
1412 * c-format.c (argument_parser::check_argument_type): Add params
1413 "type_start" and "conversion_char". Use the former to generate
1414 offset_to_type_start and pass it and conversion_char to
1416 (check_format_info_main): Capture the start of the type
1417 information as "type_start", and pass it an format_char
1418 to arg_parser.check_argument_type.
1419 (check_format_types): Provide an example in the leading comment.
1420 Add params "offset_to_type_start" and "conversion_char"; pass
1421 them to format_type_warning calls.
1422 (test_get_modifier_for_format_len): Likewise.
1423 (matching_type_p): New function.
1424 (get_format_for_type): Add param "conversion_char" and move
1425 implementation into...
1426 (get_format_for_type_1): ...new function, called twice.
1427 Use new function matching_type_p rather than checking for
1428 TYPE_CANONICAL equality.
1429 (get_corrected_substring): New function.
1430 (format_type_warning): Provide an example in the leading comment.
1431 Add params "offset_to_type_start" and "conversion_char". Replace
1432 call to get_format_for_type with call to get_corrected_substring
1433 and move rejection of hints for widths/precisions there.
1434 (assert_format_for_type_streq): Add param "conversion_char".
1435 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
1436 (test_get_format_for_type_printf): Add conversion chars to the
1437 tests, adding coverage for various combinations of integer
1438 vs double conversions, and for preserving octal and hexadecimal
1440 (test_get_format_for_type_scanf): Add conversion chars to the
1443 2016-09-10 Tom de Vries <tom@codesourcery.com>
1446 * c-common.c (build_va_arg): Handle more strict
1447 targetm.canonical_va_list_type. Replace first argument type error with
1450 2016-09-09 Martin Sebor <msebor@redhat.com>
1454 * c-format.c (argument_parser::find_format_char_info): Use %qc
1455 format directive unconditionally.
1457 2016-09-09 Jason Merrill <jason@redhat.com>
1459 Implement C++17 new of over-aligned types.
1460 * c.opt: Add -faligned-new and -Waligned-new.
1461 * c-common.c (max_align_t_align): Split out from...
1462 (cxx_fundamental_alignment_p): ...here.
1463 * c-common.h: Declare it.
1464 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
1466 2016-09-09 Joseph Myers <joseph@codesourcery.com>
1468 * c-cppbuiltin.c (builtin_define_type_width): New function.
1469 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
1472 2016-09-07 David Malcolm <dmalcolm@redhat.com>
1474 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
1476 (substring_loc::get_location): Move to substring-locations.c,
1477 keeping implementation as...
1478 (c_get_substring_location): New function, from the above, reworked
1479 to use accessors rather than member lookup.
1480 * c-common.h (class substring_loc): Move to substring-locations.h,
1481 replacing with a forward decl.
1482 (c_get_substring_location): New decl.
1483 * c-format.c: Include "substring-locations.h".
1484 (format_warning_va): Move to substring-locations.c.
1485 (format_warning_at_substring): Likewise.
1487 2016-09-06 Martin Sebor <msebor@redhat.com>
1490 * c-format.c (check_function_format): Avoid issuing warnings for
1491 functions unless they call format functions with non-constant
1494 2016-09-06 Richard Biener <rguenther@suse.de>
1497 * c-common.c (c_common_mark_addressable_vec): Handle
1498 COMPOUND_LITERAL_EXPR.
1500 2016-09-05 Marek Polacek <polacek@redhat.com>
1503 * c-common.c (bool_promoted_to_int_p): New function.
1504 (expr_has_boolean_operands_p): New function.
1505 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
1506 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
1508 2016-09-04 Tom de Vries <tom@codesourcery.com>
1511 2016-08-29 Tom de Vries <tom@codesourcery.com>
1513 * c-common.c (build_va_arg): Replace first argument type error
1516 2016-09-02 Jakub Jelinek <jakub@redhat.com>
1519 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
1520 (c_finish_omp_for): Reject _Atomic qualified iterators.
1522 2016-09-01 Martin Sebor <msebor@redhat.com>
1524 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
1525 size to guarantee it fits the output of the formatted function
1526 regardless of its arguments.
1528 2016-09-01 Marek Polacek <polacek@redhat.com>
1531 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
1534 2016-08-29 Marek Polacek <polacek@redhat.com>
1537 * c-common.c (warn_logical_not_parentheses): Don't warn for
1538 a comparison or a logical operator.
1540 2016-08-29 Tom de Vries <tom@codesourcery.com>
1542 * c-common.c (build_va_arg): Fix type comparison assert.
1544 2016-08-29 Tom de Vries <tom@codesourcery.com>
1546 * c-common.c (build_va_arg): Replace first argument type error
1549 2016-08-29 Tom de Vries <tom@codesourcery.com>
1552 * c-common.c (build_va_arg): Add first argument error. Build va_arg
1553 with error_mark_node as va_list instead of with illegal va_list.
1555 2016-08-25 Marek Polacek <polacek@redhat.com>
1556 David Malcolm <dmalcolm@redhat.com>
1558 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
1559 * c-common.h (warn_logical_not_parentheses): Update declaration.
1561 2016-08-22 Marek Polacek <polacek@redhat.com>
1564 * c-common.c (warn_for_memset): Check type for null.
1566 2016-08-22 Joseph Myers <joseph@codesourcery.com>
1568 * c-family/c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
1569 _FloatNx types for suffixes for built-in functions.
1571 2016-08-19 Joseph Myers <joseph@codesourcery.com>
1574 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
1575 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
1576 (RID_FLOAT128X): New enum rid values.
1577 (CASE_RID_FLOATN_NX): New macro.
1578 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
1580 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
1581 corresponding complex types.
1582 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
1583 _FloatNx and corresponding complex types.
1584 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
1585 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
1586 and _FloatNx types for the widest type for determining
1587 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
1588 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
1589 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
1591 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
1593 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
1596 2016-08-18 David Malcolm <dmalcolm@redhat.com>
1598 * c-opts.c (c_diagnostic_finalizer): Update for change to
1599 diagnostic_show_locus.
1601 2016-08-18 David Malcolm <dmalcolm@redhat.com>
1603 * c-common.c: Include "spellcheck.h".
1604 (cb_get_suggestion): New function.
1605 * c-common.h (cb_get_suggestion): New decl.
1606 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
1609 2016-08-18 Marek Polacek <polacek@redhat.com>
1612 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
1615 2016-08-16 David Malcolm <dmalcolm@redhat.com>
1618 * c-common.c (substring_loc::get_range): Rename to...
1619 (substring_loc::get_location): ...this, converting param from a
1620 source_range * to a location_t *. Call
1621 get_source_location_for_substring rather than
1622 get_source_range_for_substring, and pass in m_caret_idx.
1623 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
1624 (substring_loc::get_range): Replace with...
1625 (substring_loc::get_location): ...this.
1626 (substring_loc::set_caret_index): New method.
1627 (substring_loc): Add field m_caret_idx.
1628 * c-format.c (format_warning_va): Update for above changes.
1629 Rename local "substring_loc" to "fmt_substring_loc" to avoid
1630 clashing with type name.
1631 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
1632 (check_argument_type): Likewise.
1633 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
1634 Use a copy when emitting warnings, setting the caret index from TYPE.
1636 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
1637 Arnaud Charlet <charlet@adacore.com>
1639 * c-ada-spec.c (dump_number): New function.
1640 (handle_escape_character): Likewise.
1641 (print_ada_macros): Add handling of constant integers and strings.
1643 2016-08-12 Marek Polacek <polacek@redhat.com>
1646 * c-common.c (scalar_to_vector): Adjust fall through comment.
1647 * c-opts.c (c_common_handle_option): Likewise.
1648 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
1649 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
1650 fall through comment.
1651 * cilk.c (extract_free_variables): Add FALLTHRU.
1653 2016-08-10 Jason Merrill <jason@redhat.com>
1655 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
1657 2016-08-09 Jason Merrill <jason@redhat.com>
1659 * c-common.c (c_common_attribute_table): vector_size affects type
1662 2016-08-09 Marek Polacek <polacek@redhat.com>
1665 * c-ada-spec.c (dump_generic_ada_node): Add return.
1667 2016-08-09 Jason Merrill <jason@redhat.com>
1669 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
1670 C++17 constexpr lambdas.
1672 2016-08-08 David Malcolm <dmalcolm@redhat.com>
1675 * c-common.h (selftest::c_format_c_tests): New declaration.
1676 (selftest::run_c_tests): New declaration.
1677 * c-format.c: Include "selftest.h.
1678 (format_warning_va): Add param "corrected_substring" and use
1679 it to add a replacement fix-it hint.
1680 (format_warning_at_substring): Likewise.
1681 (format_warning_at_char): Update for new param of
1683 (argument_parser::check_argument_type): Pass "fki" to
1685 (check_format_types): Add param "fki" and pass it to
1686 format_type_warning.
1687 (deref_n_times): New function.
1688 (get_modifier_for_format_len): New function.
1689 (selftest::test_get_modifier_for_format_len): New function.
1690 (get_format_for_type): New function.
1691 (format_type_warning): Add param "fki" and use it to attempt
1692 to provide hints for argument types when calling
1693 format_warning_at_substring.
1694 (selftest::get_info): New function.
1695 (selftest::assert_format_for_type_streq): New function.
1696 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
1697 (selftest::test_get_format_for_type_printf): New function.
1698 (selftest::test_get_format_for_type_scanf): New function.
1699 (selftest::c_format_c_tests): New function.
1701 2016-08-08 David Malcolm <dmalcolm@redhat.com>
1704 * c-format.c: Include "diagnostic.h".
1705 (location_column_from_byte_offset): Delete.
1706 (location_from_offset): Delete.
1707 (format_warning_va): New function.
1708 (format_warning_at_substring): New function.
1709 (format_warning_at_char): New function.
1710 (check_format_arg): Capture location of format_tree and pass to
1711 check_format_info_main.
1712 (argument_parser): Add fields "start_of_this_format" and
1713 "format_string_cst".
1714 (flag_chars_t::validate): Add param "format_string_cst". Convert
1715 warning_at call using location_from_offset to call to
1716 format_warning_at_char.
1717 (argument_parser::argument_parser): Add param "format_string_cst_"
1718 and use use it to initialize field "format_string_cst".
1719 Initialize new field "start_of_this_format".
1720 (argument_parser::read_format_flags): Convert warning_at call
1721 using location_from_offset to a call to format_warning_at_char.
1722 (argument_parser::read_any_format_left_precision): Likewise.
1723 (argument_parser::read_any_format_precision): Likewise.
1724 (argument_parser::read_any_other_modifier): Likewise.
1725 (argument_parser::find_format_char_info): Likewise, in three places.
1726 (argument_parser::parse_any_scan_set): Likewise, in one place.
1727 (argument_parser::handle_conversions): Likewise, in two places.
1728 (argument_parser::check_argument_type): Add param "fmt_param_loc"
1729 and use it to make a substring_loc. Pass the latter to
1731 (check_format_info_main): Add params "fmt_param_loc" and
1732 "format_string_cst". Convert warning_at calls using
1733 location_from_offset to calls to format_warning_at_char. Pass the
1734 new params to the arg_parser ctor. Pass "format_string_cst" to
1735 flag_chars.validate. Pass "fmt_param_loc" to
1736 arg_parser.check_argument_type.
1737 (check_format_types): Convert first param from a location_t
1738 to a const substring_loc & and rename to "fmt_loc". Attempt
1739 to extract the range of the relevant parameter and pass it
1740 to format_type_warning.
1741 (format_type_warning): Convert first param from a location_t
1742 to a const substring_loc & and rename to "fmt_loc". Add
1743 params "param_range" and "type". Replace calls to warning_at
1744 with calls to format_warning_at_substring.
1746 2016-08-08 David Malcolm <dmalcolm@redhat.com>
1748 * c-format.c (class flag_chars_t): New class.
1749 (struct length_modifier): New struct.
1750 (class argument_parser): New class.
1751 (flag_chars_t::flag_chars_t): New ctor.
1752 (flag_chars_t::has_char_p): New method.
1753 (flag_chars_t::add_char): New method.
1754 (flag_chars_t::validate): New method.
1755 (flag_chars_t::get_alloc_flag): New method.
1756 (flag_chars_t::assignment_suppression_p): New method.
1757 (argument_parser::argument_parser): New ctor.
1758 (argument_parser::read_any_dollar): New method.
1759 (argument_parser::read_format_flags): New method.
1760 (argument_parser::read_any_format_width): New method.
1761 (argument_parser::read_any_format_left_precision): New method.
1762 (argument_parser::read_any_format_precision): New method.
1763 (argument_parser::handle_alloc_chars): New method.
1764 (argument_parser::read_any_length_modifier): New method.
1765 (argument_parser::read_any_other_modifier): New method.
1766 (argument_parser::find_format_char_info): New method.
1767 (argument_parser::validate_flag_pairs): New method.
1768 (argument_parser::give_y2k_warnings): New method.
1769 (argument_parser::parse_any_scan_set): New method.
1770 (argument_parser::handle_conversions): New method.
1771 (argument_parser::check_argument_type): New method.
1772 (check_format_info_main): Introduce classes argument_parser
1773 and flag_chars_t, moving the code within the loop into methods
1774 of these classes. Make various locals "const".
1776 2016-08-05 David Malcolm <dmalcolm@redhat.com>
1778 * c-common.c: Include "substring-locations.h".
1779 (get_cpp_ttype_from_string_type): New function.
1780 (g_string_concat_db): New global.
1781 (substring_loc::get_range): New method.
1782 * c-common.h (g_string_concat_db): New declaration.
1783 (class substring_loc): New class.
1784 * c-lex.c (lex_string): When concatenating strings, capture the
1785 locations of all tokens using a new obstack, and record the
1786 concatenation locations within g_string_concat_db.
1787 * c-opts.c (c_common_init_options): Construct g_string_concat_db
1790 2016-07-29 Marek Polacek <polacek@redhat.com>
1793 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
1794 parentheses warning.
1797 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
1799 2016-07-28 Martin Liska <mliska@suse.cz>
1801 PR gcov-profile/68025
1802 * c-common.c (handle_no_profile_instrument_function_attribute):
1804 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
1806 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
1809 2016-07-25 Jason Merrill <jason@redhat.com>
1812 * c.opt (fconstexpr-loop-limit): New.
1814 2016-07-22 Martin Sebor <msebor@redhat.com>
1817 * c-common.c (resolve_overloaded_builtin): Avoid converting
1818 __atomic_compare_exchange_n return type to that of what its
1819 first argument points to.
1821 2016-07-22 Uros Bizjak <ubizjak@gmail.com>
1823 * c-common.c: Use HOST_WIDE_INT_M1U instead of
1824 ~(unsigned HOST_WIDE_INT) 0.
1826 2016-07-22 Martin Liska <mliska@suse.cz>
1828 PR gcov-profile/69028
1829 PR gcov-profile/62047
1830 * cilk.c (create_cilk_helper_decl): Set location of a new decl
1831 to the current_function_decl.
1833 2016-07-21 Jason Merrill <jason@redhat.com>
1836 * c-common.c (c_common_truthvalue_conversion): Check
1837 c_inhibit_evaluation_warnings for warning about address of
1840 2016-07-20 David Malcolm <dmalcolm@redhat.com>
1842 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
1845 2016-07-15 Jason Merrill <jason@redhat.com>
1847 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
1849 2016-07-15 Jakub Jelinek <jakub@redhat.com>
1852 * c-common.h (enum lookup_name_fuzzy_kind): Add
1853 FUZZY_LOOKUP_FUNCTION_NAME.
1855 2016-07-08 Jason Merrill <jason@redhat.com>
1857 P0145: Refining Expression Order for C++.
1858 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
1861 2016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
1864 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
1866 2016-06-29 Thomas Schwinge <thomas@codesourcery.com>
1868 * c-pragma.h (enum pragma_kind): Rename
1869 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
1872 2016-06-29 Richard Biener <rguenther@suse.de>
1875 * c-common.c (c_common_get_alias_set): Remove union type punning case.
1877 2016-06-24 Jason Merrill <jason@redhat.com>
1879 P0145R2: Refining Expression Order for C++.
1880 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
1883 2016-06-24 Jakub Jelinek <jakub@redhat.com>
1885 * c-common.c (check_builtin_function_arguments): Require last
1886 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
1887 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
1888 if the last argument is pointer to enumerated or boolean type.
1890 2016-06-22 David Malcolm <dmalcolm@redhat.com>
1893 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
1894 (lookup_name_fuzzy): New prototype.
1896 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
1898 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
1900 2016-06-14 Jason Merrill <jason@redhat.com>
1902 P0145R2: Refining Expression Order for C++.
1903 * c.opt (fargs-in-order): New.
1904 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
1906 2016-06-13 Jakub Jelinek <jakub@redhat.com>
1909 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
1910 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
1912 PR preprocessor/71183
1913 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
1914 to cb_get_source_date_epoch.
1916 2016-06-10 Jakub Jelinek <jakub@redhat.com>
1919 * c.opt (Wpsabi): Add Warning flag.
1921 2016-06-10 Martin Sebor <msebor@redhat.com>
1924 * gcc/c-family/c-common.c (handle_nonnull_attribute): Accept
1925 the nonnull attribute in type-generic builtins.
1927 2016-06-09 Martin Sebor <msebor@redhat.com>
1930 * c-common.c (builtin_function_validate_nargs): Make text of error
1931 message consistent with others like it.
1933 2016-06-08 Martin Sebor <msebor@redhat.com>
1934 Jakub Jelinek <jakub@redhat.com>
1938 * c-common.c (check_builtin_function_arguments): Handle
1939 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
1941 2016-06-08 Richard Biener <rguenther@suse.de>
1943 * c-common.c (parse_optimize_options): Improve diagnostic messages.
1945 2016-06-07 Richard Biener <rguenther@suse.de>
1948 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
1949 options and warn about others.
1951 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
1953 * c-common.c (get_source_date_epoch): Rename to
1954 cb_get_source_date_epoch.
1955 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
1956 message when the parsing fails. Use error_at instead of fatal_error.
1957 * c-common.h (get_source_date_epoch): Rename to
1958 cb_get_source_date_epoch.
1959 * c-common.h (cb_get_source_date_epoch): Prototype.
1960 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
1961 * c-common.h (c_omp_region_type): Remove trailing comma.
1962 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
1963 * c-lex.c (c_lex_with_flags): Remove initialization of
1964 pfile->source_date_epoch.
1966 2016-05-30 Jakub Jelinek <jakub@redhat.com>
1969 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
1970 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
1971 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
1972 instead of C_OMP_CLAUSE_SPLIT_FOR.
1974 2016-05-24 Richard Biener <rguenther@suse.de>
1978 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
1979 (convert_vector_to_array_for_subscript): ... this.
1980 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
1981 VIEW_CONVERT_EXPR to an array type. Rename to ...
1982 (convert_vector_to_array_for_subscript): ... this.
1984 2016-05-12 Marek Polacek <polacek@redhat.com>
1987 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
1988 size_in_bytes and pass LOC to it.
1990 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
1993 * c.opt (Wduplicate-decl-specifier): New option.
1995 2016-05-11 Marek Polacek <polacek@redhat.com>
1998 * c-common.c (diagnose_mismatched_attributes): New function.
1999 * c-common.h (diagnose_mismatched_attributes): Declare.
2001 2016-05-04 Marek Polacek <polacek@redhat.com>
2003 * c.opt (Wdangling-else): New option.
2005 2016-05-03 Marek Polacek <polacek@redhat.com>
2008 * c-common.c (builtin_function_validate_nargs): Add location
2010 (check_builtin_function_arguments): Add location and arguments
2011 parameters. Use them.
2012 * c-common.h (check_builtin_function_arguments): Update declaration.
2014 2016-05-03 Richard Biener <rguenther@suse.de>
2016 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
2017 allow call args to gimplify to SSA names.
2019 2016-05-03 Marek Polacek <polacek@redhat.com>
2021 * c-common.h (enum c_omp_region_type): Remove stray comma.
2023 2016-05-02 Cesar Philippidis <cesar@codesourcery.com>
2025 * c-common.h (enum c_omp_region_type): Define.
2027 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
2029 * c-common.c (shorten_compare): Use wi::to_wide.
2031 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
2034 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
2035 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
2036 reduction clauses in acc parallel loops.
2038 2016-04-29 Marek Polacek <polacek@redhat.com>
2041 * c-common.c (warn_for_memset): Check domain before accessing it.
2043 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
2046 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
2047 "aligned" attribute.
2049 2016-04-28 Jason Merrill <jason@redhat.com>
2051 * c-lex.c (c_common_has_attribute): Handle nodiscard.
2053 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
2054 Matthias Klose <doko@debian.org>
2056 * c-common.c (get_source_date_epoch): New function, gets the environment
2057 variable SOURCE_DATE_EPOCH and parses it as long long with error
2059 * c-common.h (get_source_date_epoch): Prototype.
2060 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
2062 2015-04-27 Ryan Burn <contact@rnburn.com>
2066 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
2067 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
2069 (cilk_detect_and_unwrap): Corresponding changes.
2070 (extract_free_variables): Don't extract free variables from
2071 AGGR_INIT_EXPR slot.
2072 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
2073 (cilk_recognize_spawn): Likewise.
2075 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
2077 * c.opt (Wmemset-elt-size): New option.
2078 * c-common.c (warn_for_memset): New function.
2079 * c-common.h (warn_for_memset): Declare.
2081 2016-04-25 Jason Merrill <jason@redhat.com>
2083 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
2085 * c-common.h: Declare it.
2086 * c-lex.c (c_common_has_attribute): Add maybe_unused.
2088 2016-04-22 Jason Merrill <jason@redhat.com>
2090 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
2092 2016-04-20 Ilya Verbin <ilya.verbin@intel.com>
2095 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
2096 * c-common.h (c_finish_cilk_clauses): Remove declaration.
2098 2016-04-18 Michael Matz <matz@suse.de>
2100 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
2103 2016-04-17 Eric Botcazou <ebotcazou@adacore.com>
2105 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
2106 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
2107 to incomplete types.
2108 (dump_nested_type): Remove redundant tests and tidy up.
2109 (print_ada_declaration): Also set TREE_VISITED on the declaration of
2110 a type which is the typedef of an original type.
2112 2016-04-15 Marek Polacek <polacek@redhat.com>
2115 * c-common.c (build_va_arg): Change two asserts into errors and return
2118 2016-04-13 Marek Polacek <polacek@redhat.com>
2121 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
2122 for switch statements, too.
2124 2016-03-28 Jason Merrill <jason@redhat.com>
2126 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
2128 2016-03-23 Marek Polacek <polacek@redhat.com>
2131 * c.opt (Wignored-attributes): New option.
2133 2016-03-22 David Malcolm <dmalcolm@redhat.com>
2136 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
2137 diagnostic text, reversing the order of the warning and note so
2138 that they appear in source order.
2140 2016-03-17 Marek Polacek <polacek@redhat.com>
2143 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
2146 2016-03-14 Jason Merrill <jason@redhat.com>
2148 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
2150 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
2152 2016-03-09 Richard Biener <rguenther@suse.de>
2155 * c-common.c (strict_aliasing_warning): Add back
2156 alias_sets_conflict_p check.
2158 2016-03-08 Jason Merrill <jason@redhat.com>
2160 * c-opts.c (set_std_cxx1z): Don't enable concepts.
2162 2016-03-04 David Malcolm <dmalcolm@redhat.com>
2165 * c-indentation.c (get_visual_column): Move code to determine next
2167 (next_tab_stop): ...this new function.
2168 (line_contains_hash_if): Delete function.
2169 (detect_preprocessor_logic): Delete function.
2170 (get_first_nws_vis_column): New function.
2171 (detect_intervening_unindent): New function.
2172 (should_warn_for_misleading_indentation): Replace call to
2173 detect_preprocessor_logic with a call to
2174 detect_intervening_unindent.
2176 2016-03-04 David Malcolm <dmalcolm@redhat.com>
2179 * c-indentation.c (should_warn_for_misleading_indentation): When
2180 suppressing warnings about cases where the guard and body are on
2181 the same column, only use the first non-whitespace column in place
2182 of the guard token column when dealing with "else" clauses.
2183 When rejecting aligned BODY and NEXT, loosen the requirement
2184 from equality with the first non-whitespace of guard to simply
2185 that they not be indented relative to it.
2187 2016-03-04 Richard Biener <rguenther@suse.de>
2190 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
2191 instead of alias_sets_conflict_p.
2193 2016-03-01 Marek Polacek <polacek@redhat.com>
2196 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
2199 2016-02-22 Martin Sebor <msebor@redhat.com>
2202 * c-common.c (check_builtin_function_arguments): Validate and
2203 reject invalid arguments to __builtin_alloca_with_align.
2205 2016-02-20 Mark Wielaard <mjw@redhat.com>
2208 * c.opt (Wunused-const-variable): Turn into Alias for...
2209 (Wunused-const-variable=): New option.
2211 2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
2214 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
2216 (c_common_init_options): ...to here.
2217 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
2219 2016-02-19 Jakub Jelinek <jakub@redhat.com>
2222 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
2223 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
2224 flag_preprocess_only.
2226 2016-02-16 Jakub Jelinek <jakub@redhat.com>
2229 * c.opt (Wnonnull-compare): Enable for -Wall.
2231 2016-02-15 Jakub Jelinek <jakub@redhat.com>
2234 * c-common.c (sync_resolve_size): Diagnose too few arguments
2235 even when params is non-NULL empty vector.
2237 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
2240 * c.opt (fshort-double): Remove.
2242 2016-02-05 Martin Sebor <msebor@redhat.com>
2245 * c.opt (Warning options): Update -Wplacement-new to take
2246 an optional argument.
2248 2016-02-01 Jakub Jelinek <jakub@redhat.com>
2250 PR preprocessor/69543
2252 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
2253 instead of loc to control_warning_option.
2255 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
2257 * c.opt (fopenacc-dim=): New option.
2259 2016-01-27 Ryan Burn <contact@rnburn.com>
2262 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
2263 gimplify_arg. Removed superfluous post_p argument.
2264 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
2265 superfluous post_p argument.
2266 * c-gimplify.c (c_gimplify_expr): Likewise.
2268 2016-01-26 David Malcolm <dmalcolm@redhat.com>
2271 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
2272 pp_newline_and_flush with pp_flush.
2274 2016-01-20 Martin Sebor <msebor@redhat.com>
2277 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
2278 an incompatible argument when the argument isn't a valid tree node.
2280 2016-01-18 Jason Merrill <jason@redhat.com>
2283 * c-common.c (check_function_arguments_recurse): Fold the whole
2284 COND_EXPR, not just the condition.
2286 2016-01-18 Tom de Vries <tom@codesourcery.com>
2288 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
2289 classify as loop clause.
2291 2016-01-15 Jakub Jelinek <jakub@redhat.com>
2294 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
2295 C++ FE no longer has limit on number of pragmas.
2297 2015-01-14 Ryan Burn <contact@rnburn.com>
2300 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
2301 to add missing cleanup point.
2303 2016-01-14 David Malcolm <dmalcolm@redhat.com>
2306 * c-indentation.c (get_visual_column): Add location_t param.
2307 Handle the column number being zero by effectively disabling the
2308 warning, with an "inform".
2309 (should_warn_for_misleading_indentation): Add location_t argument
2310 for all uses of get_visual_column.
2312 2016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
2315 * c-indentation.c (should_warn_for_misleading_indentation):
2316 Don't warn about do-while statements.
2318 2016-01-07 Martin Sebor <msebor@redhat.com>
2321 * c-common.c (sync_resolve_size): Reject first argument when it's
2324 2016-01-05 David Malcolm <dmalcolm@redhat.com>
2327 * c-indentation.c (get_visual_column): Remove default argument.
2328 (should_warn_for_misleading_indentation): For the multiline case,
2329 update call to get_visual_column for next_stmt_exploc so that it
2330 captures the location of the first non-whitespace character in the
2331 relevant line. Don't issue warnings if there is non-whitespace
2332 before the next statement.
2334 2016-01-04 Jakub Jelinek <jakub@redhat.com>
2336 Update copyright years.
2338 2015-12-21 David Malcolm <dmalcolm@redhat.com>
2340 * c-common.c (binary_op_error): Convert first param from
2341 location_t to rich_location * and use it when emitting an error.
2342 * c-common.h (binary_op_error): Convert first param from
2343 location_t to rich_location *.
2345 2015-12-16 David Malcolm <dmalcolm@redhat.com>
2347 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
2348 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
2350 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
2352 * c-common.c (c_common_attribute_table): Handle "omp declare target
2355 2015-12-14 Jakub Jelinek <jakub@redhat.com>
2358 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
2360 2014-12-12 Tobias Burnus <burnus@net-b.de>
2363 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
2364 specifiers (%d, %i,%u and %c).
2366 2015-12-10 David Malcolm <dmalcolm@redhat.com>
2368 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
2370 2015-12-08 Jakub Jelinek <jakub@redhat.com>
2374 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
2375 * c-pragma.c (handle_pragma_diagnostic): Adjust
2376 control_warning_option caller.
2378 2015-12-07 David Malcolm <dmalcolm@redhat.com>
2380 * c-common.c (c_cpp_error): Update for change to
2381 rich_location::set_range.
2383 2015-12-04 Paolo Bonzini <bonzini@gnu.org>
2385 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
2386 shifting 1 out of the sign bit.
2388 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
2390 * c-common.c (c_common_attribute_table[]): Update max arguments
2391 count for "simd" attribute.
2392 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
2394 2015-12-03 Jakub Jelinek <jakub@redhat.com>
2396 PR preprocessor/57580
2397 * c-ppoutput.c (print): Change printed field to bool.
2398 Move src_file last for smaller padding.
2399 (init_pp_output): Set print.printed to false instead of 0.
2400 (scan_translation_unit): Fix up formatting. Set print.printed
2401 to true after printing something other than newline.
2402 (scan_translation_unit_trad): Set print.printed to true instead of 1.
2403 (maybe_print_line_1): Set print.printed to false instead of 0.
2404 (print_line_1): Likewise.
2405 (do_line_change): Set print.printed to true instead of 1.
2406 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
2407 dump_macro): Set print.printed to false after printing newline.
2409 2015-12-02 Jason Merrill <jason@redhat.com>
2411 * c-common.c (fold_for_warn): New.
2412 (warn_logical_operator, warn_tautological_cmp)
2413 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
2415 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
2416 (c_fully_fold_internal, decl_constant_value_for_optimization):
2418 * c-common.h: Don't declare decl_constant_value_for_optimization.
2420 2015-12-02 Joseph Myers <joseph@codesourcery.com>
2423 * c-common.h (c_build_qualified_type): Add extra default
2426 2015-12-01 Julian Brown <julian@codesourcery.com>
2427 Cesar Philippidis <cesar@codesourcery.com>
2428 James Norris <James_Norris@mentor.com>
2430 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
2431 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
2432 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
2434 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
2436 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
2437 (decl_sloc_common): Delete and move bulk of processing to...
2438 (decl_sloc): ...here.
2439 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
2440 (dump_ada_double_name): Remove S parameter and compute the suffix.
2441 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
2442 element type and deal with an anonymous one.
2443 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
2444 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
2445 and remove reference to QUAL_UNION_TYPE.
2446 (dump_nested_types): Make 2 passes on the fields and move bulk to...
2447 (dump_nested_type): ...here. New function extracted from above.
2448 Generate a full declaration for anonymous element type of arrays.
2449 (print_ada_declaration): Really skip anonymous declarations. Remove
2450 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
2451 Clean up processing of declarations of array types and objects.
2452 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
2453 Remove obsolete code and tidy up.
2455 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
2458 * c-common.c (handle_transparent_union_attribute): Update
2461 2015-11-27 Martin Liska <mliska@suse.cz>
2464 * array-notation-common.c (cilkplus_extract_an_triplets):
2465 Release vector of vectors.
2466 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
2468 2015-11-26 Eric Botcazou <ebotcazou@adacore.com>
2471 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
2472 (print_ada_struct_decl): Likewise.
2474 2015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
2477 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
2478 * cilk.c (recognize_spawn): Determine location in a more precise
2481 2015-11-19 Jason Merrill <jason@redhat.com>
2483 * c-common.c (shorten_compare): But look through macros from
2486 2015-11-18 Jason Merrill <jason@redhat.com>
2488 * c-common.c (shorten_compare): Don't -Wtype-limits if the
2489 non-constant operand comes from a macro.
2491 2015-11-17 Jason Merrill <jason@redhat.com>
2494 * c-common.c (warn_tautological_cmp): Fold before checking for
2497 2015-11-16 Marek Polacek <polacek@redhat.com>
2500 * c-common.c (check_case_bounds): Fold low and high cases.
2502 2015-11-16 Marek Polacek <polacek@redhat.com>
2504 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
2505 * c-common.c (c_common_get_alias_set): Likewise.
2506 (handle_visibility_attribute): Likewise.
2508 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
2510 * c-common.c (handle_simd_attribute): New.
2511 (struct attribute_spec): Add entry for "simd".
2512 (handle_simd_attribute): New.
2514 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
2516 * c-lex.c (interpret_float): Use fold_convert.
2518 2015-11-13 David Malcolm <dmalcolm@redhat.com>
2520 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
2521 and store it on the result.
2522 * c-opts.c (c_common_init_options): Set
2523 global_dc->colorize_source_p.
2525 2015-11-12 James Norris <jnorris@codesourcery.com>
2526 Joseph Myers <joseph@codesourcery.com>
2528 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
2529 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
2530 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
2531 PRAGMA_OACC_CLAUSE_LINK.
2533 2015-11-11 Marek Polacek <polacek@redhat.com>
2537 * c-common.c (valid_array_size_p): New function.
2538 * c-common.h (valid_array_size_p): Declare.
2540 2015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
2543 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
2545 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
2547 * array-notation-common.c: Remove unused header files.
2548 * c-ada-spec.c: Likewise.
2549 * c-cilkplus.c: Likewise.
2550 * c-common.c: Likewise.
2551 * c-cppbuiltin.c: Likewise.
2552 * c-dump.c: Likewise.
2553 * c-format.c: Likewise.
2554 * c-gimplify.c: Likewise.
2555 * c-indentation.c: Likewise.
2556 * c-lex.c: Likewise.
2557 * c-omp.c: Likewise.
2558 * c-opts.c: Likewise.
2559 * c-pch.c: Likewise.
2560 * c-ppoutput.c: Likewise.
2561 * c-pragma.c: Likewise.
2562 * c-pretty-print.c: Likewise.
2563 * c-semantics.c: Likewise.
2564 * c-ubsan.c: Likewise.
2566 * stub-objc.c: Likewise.
2568 2015-11-09 Thomas Schwinge <thomas@codesourcery.com>
2569 Cesar Philippidis <cesar@codesourcery.com>
2570 James Norris <jnorris@codesourcery.com>
2571 Julian Brown <julian@codesourcery.com>
2572 Nathan Sidwell <nathan@codesourcery.com>
2574 * c-pragma.c (oacc_pragmas): Add "routine".
2575 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
2577 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
2579 * c-common.c (c_common_attributes): Add scalar_storage_order.
2580 (handle_scalar_storage_order_attribute): New function.
2581 * c-pragma.c (global_sso): New variable.
2582 (maybe_apply_pragma_scalar_storage_order): New function.
2583 (handle_pragma_scalar_storage_order): Likewise.
2584 (init_pragma): Register scalar_storage_order.
2585 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
2586 * c.opt (Wscalar-storage-order): New warning.
2587 (fsso-struct=): New option.
2589 2015-11-08 Martin Sebor <msebor@redhat.com>
2591 * c.opt (Wplacement-new): Add a period to the end of a sentence.
2593 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
2595 * c-common.c: Don't undef DEF_BUILTIN.
2597 2015-11-06 David Malcolm <dmalcolm@redhat.com>
2599 * c-common.c (c_cpp_error): Convert parameter from location_t to
2600 rich_location *. Eliminate the "column_override" parameter and
2601 the call to diagnostic_override_column.
2602 Update the "done_lexing" clause to set range 0
2603 on the rich_location, rather than overwriting a location_t.
2604 * c-common.h (c_cpp_error): Convert parameter from location_t to
2605 rich_location *. Eliminate the "column_override" parameter.
2607 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
2608 Thomas Schwinge <thomas@codesourcery.com>
2609 James Norris <jnorris@codesourcery.com>
2611 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
2612 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
2613 clauses with parallel and kernels and loops.
2614 * c-pragma.h (enum pragma_omp_clause): Add entries for
2615 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
2616 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
2617 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
2619 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
2621 2015-11-05 Martin Sebor <msebor@redhat.com>
2624 * c.opt (-Wplacement-new): New option.
2626 2015-11-05 Jakub Jelinek <jakub@redhat.com>
2628 * c-common.h (c_finish_omp_atomic): Add TEST argument.
2629 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
2630 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
2631 save_expr or create_tmp_var* if TEST is true.
2632 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
2633 Don't call add_stmt here.
2634 (struct c_omp_check_loop_iv_data): New type.
2635 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
2636 c_omp_check_loop_iv_exprs): New functions.
2637 (c_omp_split_clauses): Adjust for lastprivate being allowed on
2639 (c_omp_declare_simd_clauses_to_numbers): Change
2640 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
2641 (c_omp_declare_simd_clauses_to_decls): Similarly change those
2642 from numbers to PARM_DECLs.
2644 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
2646 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
2649 2015-11-03 Bernd Schmidt <bschmidt@redhat.com>
2652 * c-common.h (fold_offsetof_1): Add argument.
2653 * c-common.c (fold_offsetof_1): Diagnose more invalid
2654 offsetof expressions that reference elements past the end of
2657 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
2658 Chung-Lin Tang <cltang@codesourcery.com>
2660 * c-pragma.c (oacc_pragmas): Add "atomic".
2661 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
2663 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
2665 * c-common.c (handle_target_clones_attribute): New.
2666 (c_common_attribute_table): Add handle_target_clones_attribute.
2667 (handle_always_inline_attribute): Add check on target_clones attribute.
2668 (handle_target_attribute): Ditto.
2670 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
2672 * array-notation-common.c: Reorder #include's and remove duplicates.
2673 * c-ada-spec.c: Likewise.
2674 * c-cilkplus.c: Likewise.
2675 * c-common.c: Likewise.
2676 * c-cppbuiltin.c: Likewise.
2677 * c-dump.c: Likewise.
2678 * c-format.c: Likewise.
2679 * c-gimplify.c: Likewise.
2680 * c-indentation.c: Likewise.
2681 * c-lex.c: Likewise.
2682 * c-omp.c: Likewise.
2683 * c-opts.c: Likewise.
2684 * c-pch.c: Likewise.
2685 * c-ppoutput.c: Likewise.
2686 * c-pragma.c: Likewise.
2687 * c-pretty-print.c: Likewise.
2688 * c-semantics.c: Likewise.
2689 * c-ubsan.c: Likewise.
2691 * stub-objc.c: Likewise.
2693 2015-10-28 Jason Merrill <jason@redhat.com>
2695 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
2697 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
2698 James Norris <jnorris@codesourcery.com>
2699 Cesar Philippidis <cesar@codesourcery.com>
2703 * c-common.h (c_oacc_split_loop_clauses): Declare function.
2704 * c-omp.c (c_oacc_split_loop_clauses): New function.
2706 2015-10-21 Martin Sebor <msebor@redhat.com>
2709 * c.opt: End each sentence that describes an option with a period.
2711 2015-10-20 Marek Polacek <polacek@redhat.com>
2713 * array-notation-common.c (is_cilkplus_vector_p): Define.
2714 * c-common.h (is_cilkplus_vector_p): Declare.
2716 2015-10-20 Marek Polacek <polacek@redhat.com>
2718 * c.opt (std=gnu++11): Do not describe as experimental.
2719 (std=gnu++14): Likewise.
2721 2015-10-19 Jason Merrill <jason@redhat.com>
2723 * c-cppbuiltin.c (c_cpp_builtins): Define
2724 __cpp_nontype_template_args.
2726 2015-10-19 Jason Merrill <jason@redhat.com>
2728 * c-cppbuiltin.c (c_cpp_builtins): Define
2729 __cpp_enumerator_attributes, __cpp_fold_expressions,
2730 __cpp_unicode_characters.
2732 2015-10-13 Jakub Jelinek <jakub@redhat.com>
2733 Aldy Hernandez <aldyh@redhat.com>
2735 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
2736 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
2737 (c_define_builtins): Likewise.
2738 * c-common.h (enum c_omp_clause_split): Add
2739 C_OMP_CLAUSE_SPLIT_TASKLOOP.
2740 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
2741 (c_finish_omp_for): Add ORIG_DECLV argument.
2742 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
2743 201511 instead of 201307.
2744 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
2745 OMP_CRITICAL_CLAUSES to it.
2746 (c_finish_omp_ordered): Add CLAUSES argument, set
2747 OMP_ORDERED_CLAUSES to it.
2748 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
2749 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
2750 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
2751 constructs and new OpenMP 4.5 clauses. Clear
2752 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
2754 * c-pragma.c (omp_pragmas_simd): Add taskloop.
2755 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
2756 (enum pragma_omp_clause): Add
2757 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
2758 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
2760 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2762 * c-lex.c (interpret_float): Use real_equal instead of
2765 2015-10-04 Jason Merrill <jason@redhat.com>
2767 Implement N4514, C++ Extensions for Transactional Memory.
2768 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
2769 (c_common_attribute_table): Add transaction_safe_dynamic.
2770 transaction_safe now affects type identity.
2771 (handle_tm_attribute): Handle transaction_safe_dynamic.
2772 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
2773 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
2774 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
2776 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
2777 * c-pretty-print.c (pp_c_attributes_display): Don't print
2778 transaction_safe in C++.
2780 2015-10-02 Marek Polacek <polacek@redhat.com>
2782 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
2784 2015-10-02 Marek Polacek <polacek@redhat.com>
2787 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
2788 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
2789 * c.opt (Wduplicated-cond): New option.
2791 2015-10-01 Joseph Myers <joseph@codesourcery.com>
2793 * c.opt (std=c11): Do not describe as experimental.
2794 (std=gnu11): Likewise.
2795 (std=iso9899:2011): Likewise.
2797 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
2799 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
2800 (DEF_FUNCTION_TYPE_VAR_11): Delete.
2802 2015-09-25 Marek Polacek <polacek@redhat.com>
2804 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
2805 (ubsan_instrument_shift): Likewise.
2807 2015-09-25 Marek Polacek <polacek@redhat.com>
2810 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
2812 2015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
2814 * c-indentation.c (should_warn_for_misleading_indentation):
2815 Compare next_stmt_vis_column with guard_line_first_nws instead
2816 of with guard_line_vis_column.
2818 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
2822 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
2823 options and options not valid for the current language.
2825 2015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
2827 * c-indentation.c (should_warn_for_misleading_indentation):
2828 Float out and consolidate the calls to get_visual_column that
2829 are passed guard_exploc as an argument. Compare
2830 next_stmt_vis_column with guard_line_first_nws instead of with
2831 body_line_first_nws.
2833 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
2835 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
2836 Wnamespaces): New C++ warnings.
2838 2015-09-22 Jason Merrill <jason@redhat.com>
2840 * c-common.h (abi_compat_version_crosses): New.
2841 (warn_abi_version): Declare.
2842 * c-common.c: Define it.
2843 * c-opts.c (c_common_post_options): Handle it.
2844 flag_abi_compat_version defaults to 8.
2846 2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
2848 Complete the implementation of N4230, Nested namespace definition.
2849 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
2850 __cpp_nested_namespace_definitions.
2852 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
2854 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
2856 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
2858 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
2860 * c-pragma.h (pragma_lex): Add optional loc argument.
2862 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
2864 * c-format.c (check_format_arg): Adjust to use common block size in all
2867 2015-09-15 David Malcolm <dmalcolm@redhat.com>
2869 * c-format.c (location_from_offset): Update for change in
2870 signature of location_get_source_line.
2871 * c-indentation.c (get_visual_column): Likewise.
2872 (line_contains_hash_if): Likewise.
2874 2015-09-14 Marek Polacek <polacek@redhat.com>
2876 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
2877 setting various warnings.
2879 2015-09-14 Marek Polacek <polacek@redhat.com>
2881 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
2884 2015-09-11 Mark Wielaard <mjw@redhat.com>
2887 * c.opt (Wunused-variable): Option from common.opt.
2888 (Wunused-const-variable): New option.
2890 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2893 * c.opt ([Wsubobject-linkage]): Add.
2895 2015-09-03 Martin Sebor <msebor@redhat.com>
2898 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
2900 * c-common.c (reject_gcc_builtin): Define.
2902 2015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
2905 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
2907 * c-gimplify.c (c_gimplify_expr): Added a call to the function
2908 cilk_gimplify_call_params_in_spawned_fn.
2909 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
2910 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
2913 2015-08-25 Marek Polacek <polacek@redhat.com>
2916 * c-common.c (handle_weak_attribute): Don't check whether the
2917 visibility can be changed here.
2919 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2921 * c-lex.c (c_lex_with_flags): Use explicit locations.
2923 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
2925 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
2926 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
2928 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2931 * c-common.c (check_builtin_function_arguments): Add check
2932 for BUILT_IN_SIGNBIT argument.
2934 2015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
2937 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
2940 2015-08-17 Marek Polacek <polacek@redhat.com>
2942 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
2943 with whitespaces before qualifier names.
2945 2015-08-12 Marek Polacek <polacek@redhat.com>
2948 * c-common.c (maybe_warn_shift_overflow): Properly handle
2949 left-shifting 1 into the sign bit.
2951 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2953 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
2955 2015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
2956 Braden Obrzut <admin@maniacsvault.net>
2957 Jason Merrill <jason@redhat.com>
2959 Add C++ Concepts TS support.
2960 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
2961 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
2962 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
2963 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
2964 * c-opts.c (set_std_cxx1z): Set flag_concepts.
2965 * c.opt (fconcepts): New.
2967 2015-08-02 Martin Sebor <msebor@redhat.com>
2969 * c.opt (-Wframe-address): New warning option.
2971 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
2973 * c-indentation.c (should_warn_for_misleading_indentation):
2976 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
2978 * c-indentation.c (get_visual_column): Add parameter first_nws,
2979 use it. Update comment documenting the function.
2980 (is_first_nonwhitespace_on_line): Remove.
2981 (should_warn_for_misleading_indentation): Replace usage of
2982 of is_first_nonwhitespace_on_line with get_visual_column.
2984 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
2986 * c-indentation.h (struct token_indent_info): Define.
2987 (get_token_indent_info): Define.
2988 (warn_for_misleading_information): Declare.
2989 * c-common.h (warn_for_misleading_information): Remove.
2990 * c-identation.c (warn_for_misleading_indentation):
2991 Change declaration to take three token_indent_infos. Adjust
2993 * c-identation.c (should_warn_for_misleading_indentation):
2994 Likewise. Bail out early if the body is a compound statement.
2995 (guard_tinfo_to_string): Define.
2997 2015-07-30 Jason Merrill <jason@redhat.com>
2999 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
3000 '*' for reference decay.
3002 2015-07-30 Marek Polacek <polacek@redhat.com>
3004 * c-common.c (warn_tautological_cmp): Bail for float types.
3006 2015-07-27 Marek Polacek <polacek@redhat.com>
3009 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
3011 2015-07-27 Marek Polacek <polacek@redhat.com>
3015 * c-common.c (find_array_ref_with_const_idx_r): New function.
3016 (warn_tautological_cmp): New function.
3017 * c-common.h (warn_tautological_cmp): Declare.
3018 * c.opt (Wtautological-compare): New option.
3020 2015-07-23 Marek Polacek <polacek@redhat.com>
3022 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
3023 (ubsan_instrument_shift): Likewise.
3025 2015-07-23 Marek Polacek <polacek@redhat.com>
3028 * c-ubsan.c: Include gimplify.h.
3029 (ubsan_instrument_division): Unshare OP0 and OP1.
3030 (ubsan_instrument_shift): Likewise.
3032 2015-07-20 Marek Polacek <polacek@redhat.com>
3033 Richard Sandiford <richard.sandiford@arm.com>
3036 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
3037 Use EXPR_LOC_OR_LOC.
3038 (maybe_warn_shift_overflow): New function.
3039 * c-common.h (maybe_warn_shift_overflow): Declare.
3040 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
3041 * c.opt (Wshift-overflow): New option.
3043 2015-07-16 Martin Liska <mliska@suse.cz>
3045 * c-format.c (static void check_format_info_main): Use
3046 object_allocator instead of pool_allocator.
3047 (check_format_arg): Likewise.
3048 (check_format_info_main): Likewise.
3050 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
3052 * c-opts.c: Remove multiline #include comment.
3054 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
3056 * c-common.c: Fix double word typos.
3058 2015-07-10 Eric Botcazou <ebotcazou@adacore.com>
3060 * c-ada-spec.h (cpp_operation): Revert latest change.
3061 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
3062 constructors and destructors.
3064 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
3066 * c-common.h: Adjust includes for flags.h changes.
3067 * stub-objc.c: Likewise.
3069 2015-07-08 Eric Botcazou <ebotcazou@adacore.com>
3071 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
3072 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
3074 2015-07-08 Jakub Jelinek <jakub@redhat.com>
3076 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
3077 are to be removed, return NULL rather than original clauses list.
3079 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
3081 * array-notation-common.c: Adjust includes.
3082 * c-ada-spec.c: Likewise.
3083 * c-cilkplus.c: Likewise.
3084 * c-common.h: Likewise.
3085 * c-cppbuiltin.c: Likewise.
3086 * c-dump.c: Likewise.
3087 * c-format.c: Likewise.
3088 * c-gimplify.c: Likewise.
3089 * c-indentation.c: Likewise.
3090 * c-lex.c: Likewise.
3091 * c-omp.c: Likewise.
3092 * c-opts.c: Likewise.
3093 * c-pch.c: Likewise.
3094 * c-ppoutput.c: Likewise.
3095 * c-pragma.c: Likewise.
3096 * c-pretty-print.c: Likewise.
3097 * c-semantics.c: Likewise.
3098 * c-ubsan.c: Likewise.
3100 * stub-objc.c: Likewise.
3102 2015-07-07 Eric Botcazou <ebotcazou@adacore.com>
3104 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
3105 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
3107 2015-07-01 Jason Merrill <jason@redhat.com>
3109 * c-common.h (D_CXX11): Rename from D_CXX0X.
3110 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
3111 * c-common.c: Adjust.
3113 * c-opts.c (c_common_post_options): Default to C++14.
3115 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
3117 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
3119 Implement N4197 - Adding u8 character literals
3120 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
3122 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
3123 CPP_UTF8CHAR_USERDEF tokens.
3124 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
3125 and CPP_UTF8CHAR tokens.
3126 (lex_charconst): Treat CPP_UTF8CHAR token.
3128 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3131 * c-common.c (do_warn_unused_parameter): Move here.
3132 * c-common.h (do_warn_unused_parameter): Declare.
3134 2015-06-29 Marek Polacek <polacek@redhat.com>
3137 * c-common.c (check_case_bounds): Add bool * parameter. Set
3139 (c_add_case_label): Add bool * parameter. Pass it down to
3141 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
3143 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
3146 2015-06-27 Marek Polacek <polacek@redhat.com>
3148 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
3149 or VECTOR_INTEGER_TYPE_P throughout.
3150 * c-gimplify.c: Likewise.
3152 2015-06-26 Marek Polacek <polacek@redhat.com>
3154 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
3155 * c-common.c (c_fully_fold_internal): Likewise.
3156 (c_alignof_expr): Likewise.
3157 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
3158 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
3159 * cilk.c (create_parm_list): Likewise.
3161 2015-06-26 Marek Polacek <polacek@redhat.com>
3163 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
3165 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
3167 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
3168 * c-gimplify.c: Likewise.
3169 * c-pragma.c: Likewise.
3170 * c-ubsan.c: Likewise.
3173 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
3175 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
3178 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
3180 * cilk.c: Move calls.h after tm.h in the include chain.
3182 2015-06-25 Marek Polacek <polacek@redhat.com>
3184 * array-notation-common.c: Use VAR_P throughout.
3185 * c-ada-spec.c: Likewise.
3186 * c-common.c: Likewise.
3187 * c-format.c: Likewise.
3188 * c-gimplify.c: Likewise.
3189 * c-omp.c: Likewise.
3190 * c-pragma.c: Likewise.
3191 * c-pretty-print.c: Likewise.
3194 2015-06-25 Marek Polacek <polacek@redhat.com>
3196 * cilk.c (extract_free_variables): Use is_global_var.
3198 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
3200 * c-common.c: Don't include target-def.h.
3202 2015-06-23 Marek Polacek <polacek@redhat.com>
3204 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
3205 when comparing INTEGER_CSTs.
3207 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
3209 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
3210 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
3211 (dump_ada_template): Skip partially specialized types.
3213 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
3215 * c-common.c (scalar_to_vector): Use std::swap instead of manually
3218 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
3220 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
3221 * c-ada-spec.c: Likewise.
3222 * c-cilkplus.c: Likewise.
3223 * c-common.c: Likewise.
3224 * c-common.h: Likewise.
3225 * c-cppbuiltin.c: Likewise.
3226 * c-dump.c: Likewise.
3227 * c-format.c: Likewise.
3228 * c-gimplify.c: Likewise.
3229 * c-indentation.c: Likewise.
3230 * c-lex.c: Likewise.
3231 * c-omp.c: Likewise.
3232 * c-opts.c: Likewise.
3233 * c-pch.c: Likewise.
3234 * c-ppoutput.c: Likewise.
3235 * c-pragma.c: Likewise.
3236 * c-pretty-print.c: Likewise.
3237 * c-semantics.c: Likewise.
3238 * c-ubsan.c: Likewise.
3240 * stub-objc.c: Likewise.
3242 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
3245 * c-common.c (c_common_truthvalue_conversion): Warn when
3246 converting an address of a reference to a truth value.
3248 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
3250 * array-notation-common.c : Adjust include files.
3251 * c-ada-spec.c : Likewise.
3252 * c-cilkplus.c : Likewise.
3253 * c-common.c : Likewise.
3254 * c-common.h : Likewise.
3255 * c-cppbuiltin.c : Likewise.
3256 * c-dump.c : Likewise.
3257 * c-format.c : Likewise.
3258 * c-gimplify.c : Likewise.
3259 * c-indentation.c : Likewise.
3260 * c-lex.c : Likewise.
3261 * c-omp.c : Likewise.
3262 * c-opts.c : Likewise.
3263 * c-pch.c : Likewise.
3264 * c-ppoutput.c : Likewise.
3265 * c-pragma.c : Likewise.
3266 * c-pretty-print.c : Likewise.
3267 * c-semantics.c : Likewise.
3268 * c-ubsan.c : Likewise.
3269 * cilk.c : Likewise.
3270 * stub-objc.c : Likewise.
3272 2015-06-08 Marek Polacek <polacek@redhat.com>
3275 * c-format.c (location_from_offset): Return LOC if LINE is null.
3277 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
3279 * c-common.h (c_parse_final_cleanups): New prototype.
3280 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
3282 2015-06-04 Sriraman Tallam <tmsriram@google.com>
3284 * c-common.c (noplt): New attribute.
3285 (handle_noplt_attribute): New handler.
3287 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
3289 * array-notation-common.c: Adjust includes for restructured coretypes.h.
3290 * c-ada-spec.c: Likewise.
3291 * c-cilkplus.c: Likewise.
3292 * c-common.c: Likewise.
3293 * c-common.h: Likewise.
3294 * c-cppbuiltin.c: Likewise.
3295 * c-dump.c: Likewise.
3296 * c-format.c: Likewise.
3297 * c-gimplify.c: Likewise.
3298 * c-indentation.c: Likewise.
3299 * c-lex.c: Likewise.
3300 * c-omp.c: Likewise.
3301 * c-opts.c: Likewise.
3302 * c-pch.c: Likewise.
3303 * c-ppoutput.c: Likewise.
3304 * c-pragma.c: Likewise.
3305 * c-pretty-print.c: Likewise.
3306 * c-semantics.c: Likewise.
3307 * c-ubsan.c: Likewise.
3309 * stub-objc.c: Likewise.
3311 2015-06-02 David Malcolm <dmalcolm@redhat.com>
3314 * c-indentation.c (should_warn_for_misleading_indentation): Use
3315 expand_location rather than expand_location_to_spelling_point.
3316 Don't warn if the guarding statement is more indented than the
3319 2015-06-02 David Malcolm <dmalcolm@redhat.com>
3321 * c-indentation.c (warn_for_misleading_indentation): Bail out
3322 immediately if -Wmisleading-indentation isn't enabled.
3324 2015-06-01 Martin Liska <mliska@suse.cz>
3326 * c-format.c (check_format_arg):Use new type-based pool allocator.
3327 (check_format_info_main) Likewise.
3329 2015-05-31 Eric Botcazou <ebotcazou@adacore.com>
3331 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
3332 (has_nontrivial_methods): Likewise.
3334 2015-05-25 Marek Polacek <polacek@redhat.com>
3336 * c-ubsan.c (ubsan_instrument_shift): Use type0.
3338 2015-05-22 Marek Polacek <polacek@redhat.com>
3341 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
3343 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3345 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
3346 STACK_GROWS_DOWNWARD.
3348 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3350 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
3351 STACK_GROWS_DOWNWARD rather than if it is defined.
3353 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
3356 * c-format.c (location_column_from_byte_offset): New.
3357 (location_from_offset): New.
3358 (struct format_wanted_type): Add offset_loc field.
3359 (check_format_info): Move handling of location for extra arguments
3360 closer to the point of warning.
3361 (check_format_info_main): Pass the result of location_from_offset
3363 (format_type_warning): Pass the result of location_from_offset
3366 2015-05-20 Marek Polacek <polacek@redhat.com>
3368 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
3370 2015-05-20 Marek Polacek <polacek@redhat.com>
3372 * c-ada-spec.c (dump_sloc): Use DECL_P.
3374 2015-05-20 Marek Polacek <polacek@redhat.com>
3376 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
3377 * c-common.c: Likewise.
3379 2015-05-19 David Malcolm <dmalcolm@redhat.com>
3381 * c-common.h (fe_file_change): Strengthen param from
3382 const line_map * to const line_map_ordinary *.
3383 (pp_file_change): Likewise.
3384 * c-lex.c (fe_file_change): Likewise.
3385 (cb_define): Use linemap_check_ordinary when invoking
3387 (cb_undef): Likewise.
3388 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
3389 invoking cb_file_change.
3390 (c_finish_options): Likewise.
3391 (push_command_line_include): Likewise.
3392 (cb_file_change): Strengthen param "new_map" from
3393 const line_map * to const line_map_ordinary *.
3394 * c-ppoutput.c (cb_define): Likewise for local "map".
3395 (pp_file_change): Likewise for param "map" and local "from".
3397 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
3399 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
3401 2015-05-18 Tom de Vries <tom@codesourcery.com>
3403 * c-common.c (build_va_arg_1): New function.
3404 (build_va_arg): Add address operator to va_list operand if necessary.
3406 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
3409 * c-common.c (int_safely_convertible_to_real_p): Define.
3410 (unsafe_conversion_p): Check conversions involving complex types.
3411 (conversion_warning): Add new warning message for conversions which
3412 discard imaginary component.
3413 * c-common.h: (enum conversion_safety): Add new enumerator for such
3416 2015-05-14 Marek Polacek <polacek@redhat.com>
3420 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
3421 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
3422 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
3423 use it. If FOR_INT_CONST, require that all evaluated operands be
3426 2015-05-12 David Malcolm <dmalcolm@redhat.com>
3428 * c-common.h (warn_for_misleading_indentation): New prototype.
3429 * c-indentation.c: New file.
3430 * c.opt (Wmisleading-indentation): New option.
3432 2015-05-12 Tom de Vries <tom@codesourcery.com>
3434 PR tree-optimization/66010
3435 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
3437 2015-05-09 Jason Merrill <jason@redhat.com>
3439 * c-opts.c (c_common_post_options): Also clear
3440 cpp_opts->cpp_warn_cxx11_compat.
3442 * c-common.h (enum cxx_dialect): Add cxx_unset.
3443 * c-common.c (cxx_dialect): Initialize to cxx_unset.
3444 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
3446 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
3447 (std=gnu++0x): Mark as Undocumented.
3448 (std=gnu++1y): Add deprecated message.
3450 2015-05-08 Jason Merrill <jason@redhat.com>
3452 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
3455 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
3457 2015-05-08 Marek Polacek <polacek@redhat.com>
3460 * c.opt (Woverride-init-side-effects): New option.
3462 2015-05-07 Marek Polacek <polacek@redhat.com>
3465 * c-common.c (c_fully_fold_internal): Warn when left shifting a
3467 * c.opt (Wshift-negative-value): New option.
3468 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
3469 when -Wextra and C99/C++11 mode.
3471 2015-05-07 Marek Polacek <polacek@redhat.com>
3472 Martin Uecker <uecker@eecs.berkeley.edu>
3474 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
3475 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
3477 2015-05-05 Jason Merrill <jason@redhat.com>
3479 * c.opt (Wterminate): New.
3481 2015-04-30 Marek Polacek <polacek@redhat.com>
3483 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
3484 require that the non-constant be of a boolean type.
3486 2015-04-29 Josh Triplett <josh@joshtriplett.org>
3488 * c-common.c (handle_section_attribute): Refactor to reduce
3489 nesting and distinguish between error cases.
3491 2015-04-29 Marek Polacek <polacek@redhat.com>
3494 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
3497 2015-04-29 Jakub Jelinek <jakub@redhat.com>
3499 * c-common.h (omp_clause_mask): Unconditionally define as a class.
3500 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
3501 HOST_BITS_PER_WIDE_INT.
3503 2015-04-28 Tom de Vries <tom@codesourcery.com>
3505 PR tree-optimization/65887
3506 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
3508 2015-04-28 Eric Botcazou <ebotcazou@adacore.com>
3509 Pierre-Marie de Rodat <derodat@adacore.com>
3511 * c-ada-spec.c (in_function): Delete.
3512 (dump_generic_ada_node): Do not change in_function and remove the
3513 redundant code dealing with it.
3514 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
3515 (print_ada_methods): Output the static member functions in a nested
3516 package after the regular methods as well as associated renamings.
3518 2015-04-24 Marek Polacek <polacek@redhat.com>
3521 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
3522 and OPT_Wshift_count_overflow.
3525 * c-common.c (warn_logical_operator): Warn if the operands have the
3528 2015-04-24 Marek Polacek <polacek@redhat.com>
3531 * c-common.c (warn_logical_operator): Bail if either operand comes
3532 from a macro expansion.
3534 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3537 * c-common.c (c_default_pointer_mode): Add definition.
3538 * c-common.h (c_default_pointer_mode): Add declaration.
3540 2015-03-11 Jakub Jelinek <jakub@redhat.com>
3542 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
3543 on record_builtin_type argument.
3545 2015-03-10 Jakub Jelinek <jakub@redhat.com>
3548 * c-common.c (warn_logical_not_parentheses): Don't warn for
3551 2015-03-07 Marek Polacek <polacek@redhat.com>
3554 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
3555 before trying to figure out whether we have a flexible array member.
3557 2015-03-06 Eric Botcazou <ebotcazou@adacore.com>
3558 Jonathan Wakely <jwakely.gcc@gmail.com>
3560 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
3562 2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
3565 * c-ada-spec.c (print_destructor): Remove obsolete code.
3567 2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
3569 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
3570 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
3571 DECL_TEMPLATE_RESULT emulations.
3572 (dump_ada_template)): Add guard for TYPE_METHODS.
3574 2015-02-27 Marek Polacek <polacek@redhat.com>
3577 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
3579 2015-02-27 Kai Tietz <ktietz@redhat.com>
3582 * c-pragma.c (handle_pragma_weak): Do not try to create
3583 weak/alias of declarations not being function, or variable
3586 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
3589 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
3591 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
3593 2015-02-16 Marek Polacek <polacek@redhat.com>
3596 * c-format.c (check_format_types): Handle null param.
3598 2015-02-13 Marek Polacek <polacek@redhat.com>
3601 * c-format.c (check_format_types): Don't warn about different
3602 signedness if the original value is in the range of WANTED_TYPE.
3604 2015-02-12 Jason Merrill <jason@redhat.com>
3607 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
3608 to the current highest version.
3609 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
3611 2015-02-04 Jakub Jelinek <jakub@redhat.com>
3615 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
3616 instead of RDIV_EXPR. Use build_binary_op instead of
3619 2015-01-30 Joseph Myers <joseph@codesourcery.com>
3621 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
3622 to pass input_location as first argument.
3624 2015-01-23 Tom de Vries <tom@codesourcery.com>
3627 * c.opt (fopenacc): Mark as LTO option.
3629 2015-01-23 Tom de Vries <tom@codesourcery.com>
3632 * c.opt (fopenmp): Mark as LTO option.
3634 2015-01-21 Jakub Jelinek <jakub@redhat.com>
3637 * cilk.c (fill_decls_vec): Only put decls into vector v.
3638 (compare_decls): Fix up formatting.
3640 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
3643 * cilk.c: Include vec.h.
3644 (struct cilk_decls): New structure.
3645 (wrapper_parm_cb): Split this function to...
3646 (fill_decls_vec): ...this...
3647 (create_parm_list): ...and this.
3648 (compare_decls): New function.
3649 (for_local_cb): Remove.
3650 (wrapper_local_cb): Ditto.
3651 (build_wrapper_type): For now first traverse and fill vector of
3652 declarations then sort it and then deal with sorted vector.
3653 (cilk_outline): Ditto.
3654 (declare_one_free_variable): Ditto.
3656 2015-01-21 Jason Merrill <jason@redhat.com>
3659 * c-format.c (check_format_arg): Call decl_constant_value.
3661 2015-01-19 Martin Liska <mliska@suse.cz>
3663 * c-common.c (handle_noicf_attribute): New function.
3665 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
3666 Bernd Schmidt <bernds@codesourcery.com>
3667 James Norris <jnorris@codesourcery.com>
3668 Cesar Philippidis <cesar@codesourcery.com>
3669 Ilmir Usmanov <i.usmanov@samsung.com>
3670 Jakub Jelinek <jakub@redhat.com>
3672 * c.opt (fopenacc): New option.
3673 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
3674 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
3676 * c-common.h (c_finish_oacc_wait): New prototype.
3677 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
3678 (c_finish_oacc_wait): New function.
3679 * c-pragma.c (oacc_pragmas): New variable.
3680 (c_pp_lookup_pragma, init_pragma): Handle it.
3681 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
3682 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
3683 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
3684 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
3685 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
3686 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
3687 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
3688 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
3689 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
3690 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
3691 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
3692 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
3693 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
3694 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
3695 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
3696 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
3697 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
3698 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
3699 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
3700 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
3701 PRAGMA_OACC_CLAUSE_WORKER.
3703 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
3705 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
3706 for the new option fstack-protector_explicit.
3707 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
3708 (handle_stack_protect_attribute): New function.
3710 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
3712 * c.opt: New option -Warray-bounds=.
3714 2015-01-09 Michael Collison <michael.collison@linaro.org>
3716 * array-notation-common.c: Include hash-set.h, machmode.h,
3717 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3718 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
3719 * c-ada-spec.c: Ditto.
3720 * c-cilkplus.c: Ditto.
3721 * c-common.c: Include input.h due to flattening of tree.h.
3722 Define macro GCC_C_COMMON_C.
3723 * c-common.h: Flatten tree.h header files into c-common.h.
3724 Remove include of tree-core.h.
3725 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
3726 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3727 fold-const.h, wide-int.h, and inchash.h due to
3728 flattening of tree.h.
3730 * c-format.c: Flatten tree.h header files into c-common.h.
3731 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
3732 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3733 fold-const.h, wide-int.h, and inchash.h due to
3734 flattening of tree.h.
3735 * c-dump.c: Include hash-set.h, machmode.h,
3736 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3737 fold-const.h, wide-int.h, and inchash.h due to
3738 flattening of tree.h.
3739 * c-format.c: Include hash-set.h, machmode.h,
3740 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3741 fold-const.h, wide-int.h, inchash.h and real.h due to
3742 flattening of tree.h.
3743 * c-gimplify.c: Include hash-set.h, machmode.h,
3744 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3745 fold-const.h, wide-int.h, and inchash.h due to
3746 flattening of tree.h.
3752 * c-ppoutput.c: Ditto.
3753 * c-pragma.c: Ditto.
3754 * c-pretty-print.c: Ditto.
3755 * c-semantics.c: Ditto.
3757 * stub-objc.c: Ditto.
3759 2015-01-08 Jason Merrill <jason@redhat.com>
3761 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
3762 do_ubsan_in_current_function.
3763 (ubsan_maybe_instrument_reference_or_call): Likewise.
3764 * c-ubsan.h: Declare it.
3766 2015-01-08 Mike Stump <mikestump@comcast.net>
3768 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
3770 2015-01-07 Marek Polacek <polacek@redhat.com>
3773 * c-common.c (c_fully_fold_internal): Warn for division and modulo
3774 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
3776 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
3779 * c.opt (Wsuggest-override): New option.
3781 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3783 Update copyright years.
3785 2015-01-05 Marek Polacek <polacek@redhat.com>
3788 * c-common.c (warn_array_subscript_with_type_char): Add location_t
3790 * c-common.h (warn_array_subscript_with_type_char): Update
3793 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
3795 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
3796 Control macro with flag_sized_deallocation.
3798 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
3800 * c.opt (Wdiscarded-array-qualifiers): New option.
3802 2014-12-19 Jakub Jelinek <jakub@redhat.com>
3804 PR preprocessor/63831
3805 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
3806 and __has_cpp_attribute here.
3807 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
3808 c_common_has_attribute.
3809 * c-common.h (c_common_has_attribute): New prototype.
3810 * c-lex.c (init_c_lex): Set cb->has_attribute to
3811 c_common_has_attribute instead of cb_has_attribute.
3812 (get_token_no_padding): New function.
3813 (cb_has_attribute): Renamed to ...
3814 (c_common_has_attribute): ... this. No longer static. Use
3815 get_token_no_padding, require ()s, don't build TREE_LIST
3816 unnecessarily, fix up formatting, adjust diagnostics, call
3819 2014-12-15 Jason Merrill <jason@redhat.com>
3821 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
3822 (-Wsized-deallocation): New.
3823 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
3824 to on in C++14 and up.
3826 2014-12-11 Jason Merrill <jason@redhat.com>
3828 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
3830 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
3831 we aren't complaining about VLAs.
3833 2014-12-06 Marek Polacek <polacek@redhat.com>
3835 PR tree-optimization/64183
3836 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
3837 shift-expression if it is integer_type_node. Use types_compatible_p.
3839 2014-11-29 Jakub Jelinek <jakub@redhat.com>
3841 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
3842 last argument from create_tmp_var_raw and create_tmp_var calls.
3843 * cilk.c (gimplify_cilk_spawn): Likewise.
3844 * c-omp.c (c_finish_omp_atomic): Likewise.
3846 2014-11-28 Marek Polacek <polacek@redhat.com>
3848 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
3849 instead of unsigned_type_node.
3851 2014-11-28 Marek Polacek <polacek@redhat.com>
3854 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
3856 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
3857 expression to unsigned_type_node.
3859 2014-11-20 Mark Wielaard <mjw@redhat.com>
3862 * c-opts.c (set_std_c89): Set lang_hooks.name.
3863 (set_std_c99): Likewise.
3864 (set_std_c11): Likewise.
3865 (set_std_cxx98): Likewise.
3866 (set_std_cxx11): Likewise.
3867 (set_std_cxx14): Likewise.
3868 (set_std_cxx1z): Likewise.
3870 2014-11-21 Jakub Jelinek <jakub@redhat.com>
3873 * c-common.h (convert_vector_to_pointer_for_subscript): Change
3874 return type to bool.
3875 * c-common.c: Include gimple-expr.h.
3876 (convert_vector_to_pointer_for_subscript): Change return type to
3877 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
3878 and copy it into a TARGET_EXPR and use that instead of *vecp
3881 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3883 Merger of git branch "gimple-classes-v2-option-3".
3884 * ChangeLog.gimple-classes: New.
3885 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
3886 from being just a vec<gimple> to a vec<gbind *>.
3888 2014-11-18 Jakub Jelinek <jakub@redhat.com>
3891 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
3892 argument to ptype, set type to TREE_TYPE (ptype). Don't call
3893 get_pointer_alignment for non-pointers. Use ptype, or if it is
3894 reference type, corresponding pointer type, as type of kind
3896 (ubsan_maybe_instrument_reference,
3897 ubsan_maybe_instrument_member_call): Adjust callers.
3899 2014-11-15 Marek Polacek <polacek@redhat.com>
3902 * array-notation-common.c (is_sec_implicit_index_fn): Return false
3904 (extract_array_notation_exprs): Return for NULL node.
3906 2014-11-12 Joseph Myers <joseph@codesourcery.com>
3908 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
3909 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
3911 2014-11-12 Jakub Jelinek <jakub@redhat.com>
3914 * c-common.c (check_builtin_function_arguments): Handle
3915 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
3917 2014-11-10 Andi Kleen <ak@linux.intel.com>
3920 * c-common.h (check_no_cilk): Declare.
3921 * cilk.c (get_error_location): New function.
3922 (check_no_cilk): Dito.
3924 2014-11-10 Andi Kleen <ak@linux.intel.com>
3926 * cilk.c (recognize_spawn): Use expression location
3929 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
3931 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
3933 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
3935 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
3936 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
3937 (__cpp_range_based_for, __cpp_initializer_lists,
3938 __cpp_delegating_constructors, __cpp_nsdmi,
3939 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
3940 for C++11; (__cpp_attribute_deprecated): Remove in favor of
3941 __has_cpp_attribute.
3942 * c-lex.c (cb_has_attribute): New callback CPP function;
3943 (init_c_lex): Set has_attribute callback.
3945 2014-11-04 Richard Biener <rguenther@suse.de>
3947 * c-common.c (shorten_compare): Do not shorten mixed
3948 DFP and non-DFP compares.
3950 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
3952 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
3953 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
3954 Commentary and rearrangement of tests.
3955 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
3956 Commentary and rearrangement of tests.
3957 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
3958 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
3960 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
3962 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
3963 enum from machine_mode.
3965 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
3967 * c-common.c: Adjust include files.
3968 * c-gimplify.c: Ditto.
3970 * c-pragma.c: Ditto.
3973 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
3975 * c-gimplify.c: Adjust include files.
3977 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
3980 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
3981 c_common_initialize_diagnostics.
3982 * c-common.h: Likewise.
3984 2014-10-24 Marek Polacek <polacek@redhat.com>
3987 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
3988 print "struct"/"union"/"enum" for typedefed names.
3990 2014-10-23 Marek Polacek <polacek@redhat.com>
3992 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
3995 2014-10-22 Jakub Jelinek <jakub@redhat.com>
3996 Yury Gribov <y.gribov@samsung.com>
3998 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3999 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
4000 instead of flag_sanitize_recover as bool flag.
4002 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
4004 * cilk.c: Revert previous change.
4006 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
4009 * cilk.c: Include vec.h.
4010 (struct cilk_decls): New structure.
4011 (wrapper_parm_cb): Split this function to...
4012 (fill_decls_vec): ...this...
4013 (create_parm_list): ...and this.
4014 (compare_decls): New function.
4015 (for_local_cb): Remove.
4016 (wrapper_local_cb): Ditto.
4017 (build_wrapper_type): For now first traverse and fill vector of
4018 declarations then sort it and then deal with sorted vector.
4019 (cilk_outline): Ditto.
4020 (declare_one_free_variable): Ditto.
4022 2014-10-17 Marek Polacek <polacek@redhat.com>
4024 * c-opts.c (c_common_post_options): Set warn_implicit_int.
4025 * c.opt (Wimplicit-int): Initialize to -1.
4027 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
4029 * c-pragma.c: Adjust include files.
4030 * c-semantics.c: Likewise.
4032 2014-10-16 DJ Delorie <dj@redhat.com>
4034 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
4037 2014-10-14 Jason Merrill <jason@redhat.com>
4040 * c-common.h (CPP_PREPARSED_EXPR): New.
4041 (N_CP_TTYPES): Adjust.
4043 2014-10-15 Marek Polacek <polacek@redhat.com>
4045 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
4047 2014-10-14 DJ Delorie <dj@redhat.com>
4049 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
4050 types, not just __int128.
4051 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
4052 types, not just __int128.
4053 (cpp_atomic_builtins): Round pointer sizes up.
4054 (type_suffix): Use type precision, not specific types.
4055 * c-common.c (c_common_reswords): Remove __int128 special case.
4056 (c_common_type_for_size): Check for all __intN types, not just
4058 (c_common_type_for_mode): Likewise.
4059 (c_common_signed_or_unsigned_type): Likewise.
4060 (c_build_bitfield_integer_type): Likewise.
4061 (c_common_nodes_and_builtins): Likewise.
4062 (keyword_begins_type_specifier): Likewise.
4063 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
4066 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
4068 * c-common.c: Use hash_table instead of hashtab.
4070 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
4072 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
4075 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
4080 * c-common.c (warn_logical_operator): Punt for vectors.
4082 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
4084 Implement SD-6: SG10 Feature Test Recommendations
4085 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
4086 macros and the __has_header macro.
4088 2014-09-30 Jason Merrill <jason@redhat.com>
4090 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
4091 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
4092 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4094 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
4095 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
4097 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
4098 * c-common.c (c_common_reswords): Remove __is_convertible_to.
4100 2014-09-24 Marek Polacek <polacek@redhat.com>
4104 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
4106 2014-09-23 Andi Kleen <ak@linux.intel.com>
4108 * c-common.c (handle_no_reorder_attribute): New function.
4109 (c_common_attribute_table): Add no_reorder attribute.
4111 2014-09-22 Joseph Myers <joseph@codesourcery.com>
4113 * c-cppbuiltin.c (c_cpp_builtins): Define
4114 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
4117 2014-09-18 Joseph Myers <joseph@codesourcery.com>
4119 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
4120 for supported floating-point modes.
4122 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4124 * c.opt (Wpsabi): Use LangEnabledBy.
4125 * c-opts.c (c_common_handle_option): Do not handle here.
4127 2014-09-12 Joseph Myers <joseph@codesourcery.com>
4129 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
4130 macros for floating-point modes.
4132 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
4135 * c-cppbuiltin.c (builtin_define_float_constants): Correct
4136 __*_DENORM_MIN__ without denormals.
4138 2014-09-10 Jakub Jelinek <jakub@redhat.com>
4140 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4141 ubsan_instrument_vla, ubsan_instrument_return): Adjust
4142 ubsan_create_data callers.
4143 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
4144 index is constant or BIT_AND_EXPR with constant mask and is
4145 small enough for the bound.
4146 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
4147 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
4149 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4151 * c.opt: Add CppReason to various flags.
4152 (Wdate-time): Re-sort.
4153 * c-common.c: Include c-common.h earlier.
4154 (struct reason_option_codes_t): Delete.
4155 (c_option_controlling_cpp_error): Prefix global type and struct
4158 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4160 * c.opt (Wnormalized): New.
4161 (Wnormalized=): Use Enum and Reject Negative.
4162 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
4164 2014-09-08 Joseph Myers <joseph@codesourcery.com>
4166 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
4167 digits of floating-point modes if -fbuilding-libgcc.
4169 2014-09-05 Joseph Myers <joseph@codesourcery.com>
4171 * c-cppbuiltin.c (c_cpp_builtins): Also define
4172 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
4173 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
4174 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
4175 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
4176 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
4177 __LIBGCC_STACK_GROWS_DOWNWARD__,
4178 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
4179 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
4180 __LIBGCC_DWARF_FRAME_REGISTERS__,
4181 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
4182 __LIBGCC_STACK_POINTER_REGNUM__ and
4183 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
4184 (builtin_define_with_value): Handle backslash-escaping in string
4187 2014-09-05 Richard Biener <rguenther@suse.de>
4190 * c-format.c (check_format_arg): Properly handle
4191 effectively signed POINTER_PLUS_EXPR offset.
4193 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4195 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
4196 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
4197 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
4199 * c-opts.c (c_common_handle_option): Do not handle here.
4200 (sanitize_cpp_opts): Likewise.
4201 * c-common.c (struct reason_option_codes_t): Handle
4202 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
4204 2014-09-03 Marek Polacek <polacek@redhat.com>
4206 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
4208 2014-09-02 Jakub Jelinek <jakub@redhat.com>
4209 Balaji V. Iyer <balaji.v.iyer@intel.com>
4210 Igor Zamyatin <igor.zamyatin@intel.com>
4212 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
4213 * c-common.c (c_common_reswords): Added _Cilk_for.
4214 * c-common.h (enum rid): Added RID_CILK_FOR.
4215 (cilk_for_number_of_iterations): Add declaration.
4216 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
4218 * c-pragma.c (init_pragma): Register "grainsize" pragma.
4219 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
4221 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4223 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
4224 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
4225 Wundef): Use CPP, Var and Init.
4226 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
4228 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4230 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
4231 * c-opts.c (c_common_handle_option): Do not handle here.
4233 2014-08-25 Jason Merrill <jason@redhat.com>
4235 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
4236 -std=c++14 and -std=gnu++14, rather than the reverse.
4237 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
4238 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
4239 * c-common.h (cxx_dialect): Remove cxx1y.
4241 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
4243 * c-common.h (enum cxx_dialect): Add cxx14.
4244 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
4245 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
4246 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
4248 2014-08-22 Jason Merrill <jason@redhat.com>
4250 * c.opt (std=gnu++17): Fix alias.
4252 2014-08-22 Marek Polacek <polacek@redhat.com>
4255 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
4256 check for vector types. Drop LHS argument.
4257 * c-common.h (warn_logical_not_parentheses): Adjust.
4259 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4261 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
4262 (Wmultichar): Likewise.
4263 (Wdate-time): Use C-family languages instead of Common. Use CPP
4265 * c-opts.c (c_common_handle_option): Do not handle the above
4267 (sanitize_cpp_opts): Likewise.
4269 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4272 * c-opts.c: Include tree-diagnostics.h.
4273 (c_diagnostic_finalizer): New.
4274 (c_common_initialize_diagnostics): Use it.
4276 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4278 PR preprocessor/51303
4279 * c-common.c (struct reason_option_codes_t option_codes):
4280 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
4282 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4286 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
4287 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
4288 (c_common_post_options): Call init_global_opts_from_cpp.
4289 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
4291 2014-08-19 Marek Polacek <polacek@redhat.com>
4294 * c-common.c (maybe_warn_bool_compare): New function.
4295 * c-common.h (maybe_warn_bool_compare): Declare.
4296 * c.opt (Wbool-compare): New option.
4298 2014-08-19 Marek Polacek <polacek@redhat.com>
4300 * c.opt (Wc99-c11-compat): New option.
4302 2014-08-19 Marek Polacek <polacek@redhat.com>
4304 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
4305 to warn_c90_c99_compat.
4306 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
4309 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
4310 Steven Bosscher <steven@gcc.gnu.org>
4313 * c-format.c: Add extra_arg_loc and format_string_loc to struct
4314 format_check_results.
4315 (check_function_format): Use true and add comment for boolean
4317 (finish_dollar_format_checking): Use explicit location when warning.
4318 (check_format_info): Likewise.
4319 (check_format_arg): Set extra_arg_loc and format_string_loc.
4320 (check_format_info_main): Use explicit location when warning.
4321 (check_format_types): Pass explicit location.
4322 (format_type_warning): Likewise.
4324 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4327 * c-format.c: Handle Fortran flags.
4329 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
4332 * array-notation-common.c (find_rank): Added handling for other
4333 types of references.
4335 2014-08-10 Marek Polacek <polacek@redhat.com>
4338 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
4339 * c.opt (Wc90-c99-compat): Add option.
4341 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
4343 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
4345 2014-08-03 Marek Polacek <polacek@redhat.com>
4347 * c-common.c (check_case_value): Add location_t parameter. Use it.
4348 (c_add_case_label): Pass loc to check_case_value.
4350 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
4352 * cilk.c: Use hash_map instead of pointer_map.
4354 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
4356 * c-gimplify.c: Use hash_set instead of pointer_set.
4358 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
4361 * array-notation-common.c (extract_array_notation_exprs): Handling
4364 2014-08-01 Jakub Jelinek <jakub@redhat.com>
4366 * c-common.h (min_align_of_type): Removed prototype.
4367 * c-common.c (min_align_of_type): Removed.
4368 * c-ubsan.h (ubsan_maybe_instrument_reference,
4369 ubsan_maybe_instrument_member_call): New prototypes.
4370 * c-ubsan.c: Include stor-layout.h and builtins.h.
4371 (ubsan_maybe_instrument_reference_or_call,
4372 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
4375 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
4378 * c.opt (-Wreturn-local-addr): Move to common.opt.
4380 2014-07-30 Jason Merrill <jason@redhat.com>
4385 * c.opt (-fuse-all-virtuals): New.
4387 2014-07-30 Tom Tromey <tromey@redhat.com>
4390 * c.opt (Wdesignated-init): New option.
4391 * c-common.c (c_common_attribute_table): Add "designated_init".
4392 (handle_designated_init): New function.
4394 2014-07-24 Marek Polacek <polacek@redhat.com>
4397 * c-opts.c (c_finish_options): If -imacros is in effect, return.
4399 2014-07-16 Dodji Seketeli <dodji@redhat.com>
4401 PR preprocessor/60723 - missing system-ness marks for macro tokens
4402 * c-ppoutput.c (struct print::prev_was_system_token): New data
4404 (init_pp_output): Initialize it.
4405 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
4406 (do_line_change): Return a flag saying if a line marker was
4408 (scan_translation_unit): Detect if the system-ness of the token we
4409 are about to emit is different from the one of the previously
4410 emitted token. If so, emit a line marker. Avoid emitting useless
4411 adjacent line markers. Avoid emitting line markers for tokens
4412 originating from the expansion of built-in macros.
4413 (scan_translation_unit_directives_only): Adjust.
4415 2014-07-15 Marek Polacek <polacek@redhat.com>
4417 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
4418 TYPE_MAX_VALUE is NULL.
4420 2014-07-14 Jakub Jelinek <jakub@redhat.com>
4423 * c.opt (Wmemset-transposed-args): New warning.
4425 2014-07-10 Jason Merrill <jason@redhat.com>
4429 * c.opt (-fuse-all-virtuals): New.
4431 2014-07-09 Richard Biener <rguenther@suse.de>
4434 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4435 using unsigned arithmetic if overflow does not wrap instead of
4436 if overflow is undefined.
4438 2014-07-06 Marek Polacek <polacek@redhat.com>
4441 * c.opt (Wsizeof-array-argument): New option.
4443 2014-07-03 Jakub Jelinek <jakub@redhat.com>
4445 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
4446 comments->count <= 1, as comments->entries might be NULL.
4448 2014-07-01 Marek Polacek <polacek@redhat.com>
4450 * c.opt (Wint-conversion): New option.
4452 2014-07-01 Marek Polacek <polacek@redhat.com>
4455 * c.opt (Wincompatible-pointer-types): New option.
4457 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
4460 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
4461 Do not discard TYPE_QUALS of type.
4463 2014-06-26 Jason Merrill <jason@redhat.com>
4465 * c-common.h (enum cxx_dialect): Add cxx1z.
4466 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
4467 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
4469 2014-06-26 Teresa Johnson <tejohnson@google.com>
4471 * c-common.h (get_dump_info): Declare.
4472 * c-gimplify.c (c_genericize): Use saved dump files.
4473 * c-opts.c (c_common_parse_file): Begin and end dumps
4474 once around parsing invocation.
4475 (get_dump_info): New function.
4477 2014-06-23 Marek Polacek <polacek@redhat.com>
4478 Andrew MacLeod <amacleod@redhat.com>
4481 * c-common.c (get_atomic_generic_size): Don't segfault if the
4482 type doesn't have a size.
4484 2014-06-20 Marek Polacek <polacek@redhat.com>
4486 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
4487 (ubsan_walk_array_refs_r): New function.
4488 (c_genericize): Instrument array bounds.
4489 * c-ubsan.c: Include "internal-fn.h".
4490 (ubsan_instrument_division): Mark instrumented arrays as having
4491 side effects. Adjust ubsan_type_descriptor call.
4492 (ubsan_instrument_shift): Likewise.
4493 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
4494 (ubsan_instrument_bounds): New function.
4495 (ubsan_array_ref_instrumented_p): New function.
4496 (ubsan_maybe_instrument_array_ref): New function.
4497 * c-ubsan.h (ubsan_instrument_bounds): Declare.
4498 (ubsan_array_ref_instrumented_p): Declare.
4499 (ubsan_maybe_instrument_array_ref): Declare.
4501 2014-06-20 Hale Wang <hale.wang@arm.com>
4504 * c.opt (fshort-enums): Add to LTO.
4505 * c.opt (fshort-wchar): Likewise.
4507 2014-06-16 Marek Polacek <polacek@redhat.com>
4510 * c.opt (Wswitch-bool): Add Var.
4512 2014-06-12 Jakub Jelinek <jakub@redhat.com>
4515 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
4516 #pragma omp target teams or
4517 #pragma omp {,target }teams distribute simd.
4519 2014-06-12 Jason Merrill <jason@redhat.com>
4521 * c.opt (Wabi=, fabi-compat-version): New.
4522 * c-opts.c (c_common_handle_option): Handle -Wabi=.
4523 (c_common_post_options): Handle flag_abi_compat_version default.
4524 Disallow -fabi-compat-version=1.
4525 * c-common.h (abi_version_crosses): New.
4527 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
4529 * c-common.c (handle_section_attribute): Update handling for
4530 section names that are no longer trees.
4532 2014-06-10 Jakub Jelinek <jakub@redhat.com>
4535 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
4536 (omp_pragmas): ... back here.
4538 2014-06-05 Marek Polacek <polacek@redhat.com>
4541 * c-common.c (warn_logical_not_parentheses): New function.
4542 * c-common.h (warn_logical_not_parentheses): Declare.
4543 * c.opt (Wlogical-not-parentheses): New option.
4545 2014-06-04 Marek Polacek <polacek@redhat.com>
4548 * c-common.c (check_case_bounds): Add location parameter.
4550 (c_add_case_label): Pass loc to check_case_bounds.
4552 2014-06-03 Marek Polacek <polacek@redhat.com>
4555 * c.opt (Wswitch-bool): New option.
4557 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
4559 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
4561 (record_types_used_by_current_var_decl): Move prototype to where
4564 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
4565 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
4566 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
4568 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
4570 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
4571 * c-common.c (c_common_nodes_and_builtins): Don't initialize
4573 * c-pretty-print.c (pp_c_void_constant): New function.
4574 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
4575 (c_pretty_printer::expression): Handle VOID_CST.
4576 * cilk.c (extract_free_variables): Likewise.
4577 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
4578 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
4580 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
4582 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
4583 * c-pragma.c (push_alignment): Adjust.
4584 (handle_pragma_push_options): Likewise.
4586 2014-05-09 Marek Polacek <polacek@redhat.com>
4589 * c-common.c (check_user_alignment): Return -1 if alignment is error
4591 (handle_aligned_attribute): Don't call default_conversion on
4593 (handle_vector_size_attribute): Likewise.
4594 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
4595 (handle_sentinel_attribute): Call default_conversion and allow even
4596 integral types as an argument.
4598 2014-05-08 Marek Polacek <polacek@redhat.com>
4601 * c-common.c (min_align_of_type): New function factored out from...
4602 (c_sizeof_or_alignof_type): ...here.
4603 * c-common.h (min_align_of_type): Declare.
4605 2014-05-08 Marek Polacek <polacek@redhat.com>
4608 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
4609 parameter type of main.
4611 2014-05-07 DJ Delorie <dj@redhat.com>
4613 * c-cppbuiltin.c (print_bits_of_hex): New.
4614 (builtin_define_type_minmax): Print values using hex so as not to
4615 require a pre-computed list of string values.
4617 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
4618 Mike Stump <mikestump@comcast.net>
4619 Richard Sandiford <rdsandiford@googlemail.com>
4621 * c-ada-spec.c: Include wide-int.h.
4622 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
4623 (dump_generic_ada_node): Use wide-int interfaces.
4624 * c-common.c: Include wide-int-print.h.
4625 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
4626 (pointer_int_sum): Use wide-int interfaces.
4627 (c_common_nodes_and_builtins): Use make_int_cst.
4628 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
4629 (handle_alloc_size_attribute): Use wide-int interfaces.
4630 (get_nonnull_operand): Likewise.
4631 * c-format.c (get_constant): Use tree_fits_uhwi_p.
4632 * c-lex.c: Include wide-int.h.
4633 (narrowest_unsigned_type): Take a widest_int rather than two
4635 (narrowest_signed_type): Likewise.
4636 (interpret_integer): Update accordingly. Use wide-int interfaces.
4637 (lex_charconst): Use wide-int interfaces.
4638 * c-pretty-print.c: Include wide-int.h.
4639 (pp_c_integer_constant): Use wide-int interfaces.
4640 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
4641 INT_CST_LT_UNSIGNED.
4643 2014-05-06 Richard Biener <rguenther@suse.de>
4645 * c-opts.c (c_common_post_options): For -freestanding,
4646 -fno-hosted and -fno-builtin disable pattern recognition
4647 if not enabled explicitely.
4649 2014-05-02 Marek Polacek <polacek@redhat.com>
4651 * c.opt (Wsizeof-pointer-memaccess): Describe option.
4653 2014-05-01 Marek Polacek <polacek@redhat.com>
4656 * c.opt (Wdiscarded-qualifiers): Add.
4658 2014-04-30 Marek Polacek <polacek@redhat.com>
4660 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
4661 INT_MIN / -1 sanitization only for integer types.
4663 2014-04-25 Marek Polacek <polacek@redhat.com>
4666 * c-common.c (handle_noinline_attribute): Warn if the attribute
4667 conflicts with always_inline attribute.
4668 (handle_always_inline_attribute): Warn if the attribute conflicts
4669 with noinline attribute.
4671 2014-04-25 Marek Polacek <polacek@redhat.com>
4674 * c-common.c (check_main_parameter_types): Warn about variadic main.
4676 2014-04-24 Mike Stump <mikestump@comcast.net>
4678 * c.opt (Wshadow-ivar): Default to on.
4680 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
4682 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
4684 2014-04-23 Marek Polacek <polacek@redhat.com>
4686 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
4688 2014-04-22 Jakub Jelinek <jakub@redhat.com>
4691 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
4692 if flag_sanitize_undefined_trap_on_error.
4693 (ubsan_instrument_division, ubsan_instrument_shift,
4694 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
4695 if !flag_sanitize_recover.
4697 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
4700 * c-common.c (registered_builtin_types): Make non-static.
4701 * c-common.h (registered_builtin_types): Declare.
4703 2014-04-14 Richard Biener <rguenther@suse.de>
4704 Marc Glisse <marc.glisse@inria.fr>
4707 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
4708 apply may-alias the scalar pointer type when applicable.
4710 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
4713 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
4714 as possible argument for Cilk_spawn.
4716 2014-04-11 Tobias Burnus <burnus@net-b.de>
4719 * c.opt (Wformat-signedness): Add
4720 * c-format.c(check_format_types): Use it.
4722 2014-04-11 Jason Merrill <jason@redhat.com>
4725 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
4726 default_conversion for an array argument.
4728 2014-04-08 Marek Polacek <polacek@redhat.com>
4731 * c-ubsan.c: Include asan.h.
4732 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
4734 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
4736 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
4738 2014-04-02 Marek Polacek <polacek@redhat.com>
4740 * c-common.h (c_expand_expr): Remove declaration.
4742 2014-03-28 Jakub Jelinek <jakub@redhat.com>
4745 * c-common.c (add_atomic_size_parameter): When creating new
4746 params vector, push the size argument first.
4748 2014-03-26 Jakub Jelinek <jakub@redhat.com>
4750 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
4751 ubsan_instrument_vla, ubsan_instrument_return): Adjust
4752 ubsan_create_data callers.
4754 2014-03-22 Jakub Jelinek <jakub@redhat.com>
4757 * c-opts.c (c_finish_options): Restore cb_file_change call to
4760 2014-03-13 Jakub Jelinek <jakub@redhat.com>
4763 * c-pragma.c (apply_pragma_weak): Only look at
4764 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
4765 DECL_ASSEMBLER_NAME_SET_P (decl).
4766 (maybe_apply_pending_pragma_weaks): Exit early if
4767 vec_safe_is_empty (pending_weaks) rather than only when
4769 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
4770 set assembler name back to NULL afterwards.
4772 2014-03-11 Jason Merrill <jason@redhat.com>
4774 * c.opt: Add -std=gnu++14.
4776 2014-03-11 Ian Bolton <ian.bolton@arm.com>
4778 * c-opts.c (c_common_post_options): Don't override
4779 -ffp-contract=fast if unsafe-math-optimizations is on.
4781 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
4783 * c.opt: Enable LTO FE for fshort-double.
4785 2014-03-07 Jason Merrill <jason@redhat.com>
4787 * c.opt: Add -std=c++14.
4789 2014-03-06 Marek Polacek <polacek@redhat.com>
4792 * cilk.c (contains_cilk_spawn_stmt): New function.
4793 (contains_cilk_spawn_stmt_walker): Likewise.
4794 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
4795 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
4797 2014-03-03 Jakub Jelinek <jakub@redhat.com>
4799 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
4800 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
4801 even when flag_preprocess_only.
4803 2014-02-26 Jason Merrill <jason@redhat.com>
4807 * c-common.c (shorten_compare): Don't check
4808 c_inhibit_evaluation_warnings.
4810 2014-02-19 Jakub Jelinek <jakub@redhat.com>
4813 * c-common.c (c_common_nodes_and_builtins): When initializing
4814 c_uint{16,32,64}_type_node, also set corresponding
4815 uint{16,32,64}_type_node to the same value.
4818 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
4819 for PRAGMA_IVDEP if flag_preprocess_only.
4821 2014-02-12 Jakub Jelinek <jakub@redhat.com>
4824 * c-common.c (merge_tlist): If copy is true, call new_tlist,
4825 if false, add ADD itself, rather than vice versa.
4826 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
4827 copy. For SAVE_EXPR, only call merge_tlist once.
4829 2014-02-08 Jakub Jelinek <jakub@redhat.com>
4832 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
4834 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
4836 (c_common_attribute_table): Add alloc_align and assume_aligned
4839 2014-02-06 Marek Polacek <polacek@redhat.com>
4842 * c-common.c (warn_for_sign_compare): Call warning_at with location
4845 2014-02-05 Marek Polacek <polacek@redhat.com>
4848 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
4851 2014-02-04 Marek Polacek <polacek@redhat.com>
4854 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
4857 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
4861 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
4862 handle_vector_size_attribute, handle_nonnull_attribute): Call
4863 default_conversion on the attribute argument.
4864 (handle_nonnull_attribute): Increment the argument number.
4866 2014-01-31 Marek Polacek <polacek@redhat.com>
4869 * c-common.c (add_atomic_size_parameter): Pass vNULL to
4870 build_function_call_vec.
4871 (resolve_overloaded_builtin): Likewise.
4872 * c-common.h (build_function_call_vec): Adjust declaration.
4874 2014-01-30 Marek Polacek <polacek@redhat.com>
4877 * c-common.h (unsafe_conversion_p): Adjust declaration.
4878 (warnings_for_convert_and_check): Likewise.
4879 (convert_and_check): Likewise.
4880 * c-common.c (unsafe_conversion_p): Add location parameter. Call
4881 expansion_point_location_if_in_system_header on it.
4882 (warnings_for_convert_and_check): Add location parameter. Call
4883 expansion_point_location_if_in_system_header on it. Use it.
4884 (convert_and_check): Add location parameter. Use it.
4885 (conversion_warning): Likewise.
4886 (c_add_case_label): Adjust convert_and_check calls.
4887 (scalar_to_vector): Adjust unsafe_conversion_p calls.
4889 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
4891 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
4893 * c-pragma.c (init_pragma): Likewise.
4896 2014-01-23 Marek Polacek <polacek@redhat.com>
4899 * c-common.c (shorten_compare): Add location_t parameter.
4900 * c-common.h (shorten_binary_op): Adjust declaration.
4902 2014-01-23 Marek Polacek <polacek@redhat.com>
4905 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
4906 * c-common.h: Declare it.
4908 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
4910 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
4911 * c-ada-spec.c (dump_ads): Likewise.
4912 (cpp_check): Likewise.
4913 (dump_ada_specs): Likewise.
4915 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
4918 * c-common.c (handle_no_instrument_function_attribute): Allow
4919 no_instrument_function attribute in class member
4920 definition/declaration.
4922 2014-01-15 Jakub Jelinek <jakub@redhat.com>
4925 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
4926 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
4927 being COMPOUND_EXPR.
4928 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
4929 operand a SAVE_EXPR and second MODIFY_EXPR.
4931 2014-01-09 Jakub Jelinek <jakub@redhat.com>
4934 * c-pch.c (c_common_write_pch): Call
4935 prepare_target_option_nodes_for_pch.
4937 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
4939 Update copyright years
4941 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
4943 * array-notation-common.c, c-cilkplus.c: Use the standard form for
4944 the copyright notice.
4946 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
4948 * c-ada-spec.c (print_constructor): New function.
4949 (print_destructor): Retrieve the origin of the destructor.
4950 (print_ada_declaration): Revamp handling of constructors/destructors.
4952 2013-12-23 Stuart Hastings <stuart@apple.com>
4953 Bill Maddox <maddox@google.com>
4954 Jason Merrill <jason@redhat.com>
4956 * c.opt: Add -fdeclone-ctor-dtor.
4957 * c-opts.c (c_common_post_options): Default to on iff -Os.
4959 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
4961 * c-common.c (c_common_attribute_table): Added "cilk simd function"
4963 * c-pragma.h (enum pragma_cilk_clause): Remove.
4964 (enum pragma_omp_clause): Added the following fields:
4965 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
4966 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
4967 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
4968 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
4969 PRAGMA_CILK_CLAUSE_UNIFORM.
4972 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
4974 * cilk.c (cilk_outline): Made this function non-static.
4975 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
4976 (create_cilk_wrapper): Added a new parameter: a function pointer.
4977 (c_install_body_w_frame_cleanup): Remove
4978 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
4979 * c-common.h (cilk_outline): New prototype.
4980 (gimplify_cilk_spawn): Removed two parameters.
4981 (cilk_install_body_with_frame_cleanup): New prototype.
4982 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
4983 CILK_SPAWN_STMT case.
4985 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
4987 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
4989 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
4990 (int_array_type_node): Remove.
4991 * c-common.c (c_common_nodes_and_builtins): Don't build it.
4993 2013-12-05 Marek Polacek <polacek@redhat.com>
4996 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
4997 [ADJUST_FIELD_ALIGN].
4999 2013-12-04 Joseph Myers <joseph@codesourcery.com>
5002 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
5003 and check field alignment if set.
5004 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
5005 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
5007 2013-12-04 Jakub Jelinek <jakub@redhat.com>
5008 Marek Polacek <polacek@redhat.com>
5010 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
5011 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
5013 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
5016 * cilk.c (gimplify_cilk_spawn): Properly handle function without
5019 2013-11-29 Jakub Jelinek <jakub@redhat.com>
5022 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
5023 goto invalid. If it is error_mark_node, don't issue further
5026 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
5028 * c.opt (Wopenmp-simd): New.
5030 2013-11-22 Jakub Jelinek <jakub@redhat.com>
5032 * c-ubsan.h (ubsan_instrument_return): New prototype.
5033 * c-ubsan.c (ubsan_instrument_return): New function.
5035 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
5037 * c-common.c: Add required include files from gimple.h.
5038 * c-gimplify.c: Likewise
5041 2013-11-22 David Malcolm <dmalcolm@redhat.com>
5043 * c-common.c (unsafe_conversion_p): Remove use of
5044 EXPR_LOC_OR_HERE macro.
5045 (conversion_warning): Likewise.
5046 (warnings_for_convert_and_check): Likewise.
5047 (warn_for_collisions_1): Likewise.
5048 (shorten_compare): Likewise, and remove use of in_system_header
5049 macro, using the location from the former.
5050 * c-lex.c (dump_one_header): Remove use of input_filename macro.
5051 (cb_def_pragma): Remove use of in_system_header macro.
5052 (lex_string): Likewise.
5053 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5055 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5056 Mike Stump <mikestump@comcast.net>
5057 Richard Sandiford <rdsandiford@googlemail.com>
5059 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
5060 instead of TREE_INT_CST_LOW, in cases where there is a protecting
5061 tree_fits_shwi_p or tree_fits_uhwi_p.
5062 (dump_generic_ada_node): Likewise.
5063 * c-format.c (check_format_arg): Likewise.
5064 * c-pretty-print.c (pp_c_integer_constant): Likewise.
5066 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5068 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
5070 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
5073 * c-common.c (unsafe_conversion_p): Make this function
5074 return an enumeration with more detail.
5075 (conversion_warning): Use the new return type of
5076 unsafe_conversion_p to separately warn either about conversions
5077 that lower floating point number precision or about the other
5078 kinds of conversions.
5079 * c-common.h (enum conversion_safety): New enumeration.
5080 (unsafe_conversion_p): switching return type to
5081 conversion_safety enumeration.
5082 * c.opt: Adding new warning -Wfloat-conversion and
5083 enabling it with -Wconversion.
5085 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
5087 * c-opts.c: Include plugin.h.
5088 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
5090 2013-11-19 Marek Polacek <polacek@redhat.com>
5092 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
5094 (ubsan_instrument_shift): Likewise.
5095 (ubsan_instrument_vla): Likewise.
5097 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5099 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
5100 cast to unsigned type.
5102 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5104 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
5106 (complete_array_type): Update comment to refer to tree_to_[su]hwi
5107 rather than tree_low_cst.
5109 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5111 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
5112 tree_to_uhwi throughout.
5114 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5116 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
5117 tree_low_cst (..., 0) with tree_to_shwi throughout.
5119 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5121 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
5122 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
5124 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
5126 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
5127 host_integerp (..., 0) with tree_fits_shwi_p throughout.
5129 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
5131 * c-cilkplus.c: New file.
5132 * c-common.c (readonly_error): Add location argument.
5133 * c-common.h (readonly_error): Same.
5134 (c_finish_cilk_clauses): Protoize.
5135 (c_check_cilk_loop): Same.
5136 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
5137 Do not fail on error_mark_node.
5138 Abstract increment canonicalization to here...
5139 (c_omp_for_incr_canonicalize_ptr): New.
5140 c-pragma.c (init_pragma): Register "simd" pragma.
5141 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
5142 (enum pragma_cilk_clause): New.
5144 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
5146 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
5147 wchar_type and host_integerp checks.
5149 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
5151 * c-common.c: Likewise.
5152 * c-gimplify.c: Likewise.
5155 2013-11-14 Diego Novillo <dnovillo@google.com>
5157 * c-common.c: Include fold-const.h.
5158 Include stor-layout.h.
5160 Include stringpool.h.
5163 Include trans-mem.h.
5164 * c-cppbuiltin.c: Include stor-layout.h.
5165 Include stringpool.h.
5166 * c-format.c: Include stringpool.h.
5167 * c-lex.c: Include stringpool.h.
5168 Include stor-layout.h.
5169 * c-pragma.c: Include stringpool.h.
5172 Include gcc-symtab.h.
5173 * c-pretty-print.c: Include stor-layout.h.
5175 * cilk.c: Include stringpool.h.
5178 2013-11-13 Joseph Myers <joseph@codesourcery.com>
5180 * c-common.h (enum rid): Add RID_AUTO_TYPE.
5181 * c-common.c (c_common_reswords): Add __auto_type.
5182 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
5184 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
5186 * c-common.c: Include gimplify.h.
5187 * c-gimplify.c: Likewise.
5189 * c-omp.c: Include gimple-expr.h instead of gimple.h.
5190 * c-ubsan.c: Don't include gimple.h.
5192 2013-11-12 Joseph Myers <joseph@codesourcery.com>
5194 * c-common.c (c_common_reswords): Add _Thread_local.
5196 2013-11-09 Joseph Myers <joseph@codesourcery.com>
5198 * c-common.c (atomic_size_supported_p): New function.
5199 (resolve_overloaded_atomic_exchange)
5200 (resolve_overloaded_atomic_compare_exchange)
5201 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
5202 Use it instead of comparing size with a local list of sizes.
5204 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
5205 Joseph Myers <joseph@codesourcery.com>
5207 * c-common.h (enum rid): Add RID_ATOMIC.
5208 * c-common.c (c_common_reswords): Add _Atomic.
5209 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
5210 (keyword_is_type_qualifier): Accept RID_ATOMIC.
5211 * c-format.c (check_format_types): Check for extra _Atomic
5212 qualifiers in format argument.
5213 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
5214 (pp_c_type_qualifier_list): Mention _Atomic in comment.
5216 2013-11-06 Tobias Burnus <burnus@net-b.de>
5218 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
5220 2013-11-06 Joseph Myers <joseph@codesourcery.com>
5222 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
5224 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
5225 to mean lack of IEEE 754 support.
5227 2013-11-05 Tobias Burnus <burnus@net-b.de>
5229 * c.opt (-Wdate-time): New option
5230 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
5232 2013-11-05 Joseph Myers <joseph@codesourcery.com>
5234 * c-cppbuiltin.c (cpp_iec_559_value): Test
5235 flag_excess_precision_cmdline not flag_excess_precision.
5237 2013-11-05 Tobias Burnus <burnus@net-b.de>
5239 * c.opt (fopenmp-simd): New option.
5240 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
5241 (omp_pragmas): ... this new struct.
5242 (c_pp_lookup_pragma): Also walk omp_pragmas.
5243 (init_pragma): Init pragmas for -fopenmp-simd.
5245 2013-11-04 Marek Polacek <polacek@redhat.com>
5248 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
5250 2013-11-04 Joseph Myers <joseph@codesourcery.com>
5252 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
5254 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
5256 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
5258 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
5259 (dump_ada_specs): Adjust prototype of second callback.
5260 * c-ada-spec.c (cpp_check): New global variable.
5261 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
5262 (print_generic_ada_decl): Likewise.
5263 (has_static_fields): Change return type to bool and add guard.
5264 (has_nontrivial_methods): New predicate.
5265 (is_tagged_type): Change return type to bool.
5266 (separate_class_package): Call has_nontrivial_methods.
5267 (pp_ada_tree_identifier): Minor tweaks.
5268 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
5269 (dump_ada_array_domains): Likewise.
5270 (dump_ada_array_type): Likewise.
5271 (dump_template_types): Remove cpp_check parameter and do not pass it to
5272 dump_generic_ada_node.
5273 (dump_ada_template): Likewise.
5274 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
5276 (print_ada_methods): Change return type to integer. Remove cpp_check
5277 parameter and do not pass it down.
5278 (dump_nested_types): Remove cpp_check parameter and do not pass it to
5279 dump_generic_ada_node.
5280 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
5282 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
5283 down. Use has_nontrivial_methods to recognize C++ classes. Use return
5284 value of print_ada_methods.
5285 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
5286 Set cpp_check to it before invoking dump_ada_nodes.
5287 (dump_ada_specs): Likewise.
5289 2013-11-03 Marek Polacek <polacek@redhat.com>
5291 * c-ubsan.c: Don't include hash-table.h.
5292 (ubsan_instrument_vla): New function.
5293 * c-ubsan.h: Declare it.
5295 2013-10-31 David Malcolm <dmalcolm@redhat.com>
5297 Automated part of renaming of symtab_node_base to symtab_node.
5299 Patch autogenerated by rename_symtab.py from
5300 https://github.com/davidmalcolm/gcc-refactoring-scripts
5301 revision 58bb219cc090b2f4516a9297d868c245495ee622
5303 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
5304 symtab_node_base to symtab_node.
5306 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
5308 Implement C++14 digit separators.
5309 * c-lex.c (interpret_float): Remove digit separators from scratch string
5310 before building real literal.
5312 2013-10-30 Jakub Jelinek <jakub@redhat.com>
5314 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
5316 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
5318 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
5320 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
5322 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
5323 (insert_cilk_frame): New prototype.
5324 (cilk_init_builtins): Likewise.
5325 (gimplify_cilk_spawn): Likewise.
5326 (c_cilk_install_body_w_frame_cleanup): Likewise.
5327 (cilk_detect_spawn_and_unwrap): Likewise.
5328 (cilk_set_spawn_marker): Likewise.
5329 (build_cilk_sync): Likewise.
5330 (build_cilk_spawn): Likewise.
5333 2013-10-29 David Malcolm <dmalcolm@redhat.com>
5335 Patch autogenerated by refactor_symtab.py from
5336 https://github.com/davidmalcolm/gcc-refactoring-scripts
5337 revision 58bb219cc090b2f4516a9297d868c245495ee622
5339 * c-gimplify.c (c_genericize): Update for conversion of symtab types
5340 to a true class hierarchy.
5341 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
5343 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
5345 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
5347 2013-10-26 Jeff Law <law@redhat.com>
5349 * c-common.c (c_define_builtins): Remove mudflap support.
5350 * c.opt: Ignore and warn for mudflap options.
5352 2013-10-24 Tobias Burnus <burnus@net-b.de>
5355 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
5356 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
5358 2013-10-23 Jason Merrill <jason@redhat.com>
5360 * c-format.c (gcc_cxxdiag_char_table): Add %X.
5362 2013-10-11 Jakub Jelinek <jakub@redhat.com>
5364 * c-common.h (omp_clause_mask::operator !=): New method.
5365 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
5366 instead of if (mask & something) tests everywhere.
5368 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
5369 201307 instead of 201107.
5370 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
5371 (c_common_attribute_table): Add "omp declare target" and
5372 "omp declare simd" attributes.
5373 (handle_omp_declare_target_attribute,
5374 handle_omp_declare_simd_attribute): New functions.
5375 * c-omp.c: Include c-pragma.h.
5376 (c_finish_omp_taskgroup): New function.
5377 (c_finish_omp_atomic): Add swapped argument, if true,
5378 build the operation first with rhs, lhs arguments and use NOP_EXPR
5380 (c_finish_omp_for): Add code argument, pass it down to make_code.
5381 (c_omp_split_clauses): New function.
5382 (c_split_parallel_clauses): Removed.
5383 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
5384 c_omp_declare_simd_clauses_to_decls): New functions.
5385 * c-common.h (omp_clause_mask): New type.
5386 (OMP_CLAUSE_MASK_1): Define.
5387 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
5388 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
5389 omp_clause_mask::operator |, omp_clause_mask::operator &,
5390 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
5391 omp_clause_mask::operator ==): New methods.
5392 (enum c_omp_clause_split): New.
5393 (c_finish_omp_taskgroup): New prototype.
5394 (c_finish_omp_atomic): Add swapped argument.
5395 (c_finish_omp_for): Add code argument.
5396 (c_omp_split_clauses): New prototype.
5397 (c_split_parallel_clauses): Removed.
5398 (c_omp_declare_simd_clauses_to_numbers,
5399 c_omp_declare_simd_clauses_to_decls): New prototypes.
5400 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
5401 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
5402 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
5403 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
5404 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
5405 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
5406 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
5407 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
5408 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
5409 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
5410 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
5411 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
5412 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
5413 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
5414 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
5415 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
5416 PRAGMA_OMP_CLAUSE_UNIFORM.
5418 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
5420 PR tree-optimization/20318
5421 * c-common.c (handle_returns_nonnull_attribute): New function.
5422 (c_common_attribute_table): Add returns_nonnull.
5424 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
5427 * c.opt (fcheck-new): Move to common.opt.
5429 2013-09-25 Marek Polacek <polacek@redhat.com>
5430 Jakub Jelinek <jakub@redhat.com>
5433 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
5434 an expression if we can prove it is correct.
5435 (ubsan_instrument_division): Likewise. Remove unnecessary
5438 2013-09-18 Marek Polacek <polacek@redhat.com>
5441 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
5443 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
5445 2013-09-14 Iain Sandoe <iain@codesourcery.com>
5448 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
5449 fobjc-gc, freplace-objc-classes): Accept for LTO.
5451 2013-09-13 Jacek Caban <jacek@codeweavers.com>
5453 * c-target.def: New hook
5455 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
5458 * c.opt (Wdelete-incomplete): Add.
5460 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
5462 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
5463 (vector_types_compatible_elements_p): New function.
5464 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
5466 (vector_types_compatible_elements_p): Declare.
5468 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
5470 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
5471 a virtual member function.
5472 (pp_simple_type_specifier): Remove.
5473 (pp_c_type_specifier): Likewise.
5474 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
5475 Rename from pp_c_type_specifier. Adjust.
5476 (c_pretty_printer::c_pretty_printer): Do not assign to
5477 simple_type_specifier.
5479 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
5481 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
5483 (c_pretty_printer::storage_class_specifier): Likewise.
5484 (c_pretty_printer::initializer): Likewise.
5485 (pp_declaration): Remove.
5486 (pp_declaration_specifiers): Likewise.
5487 (pp_abstract_declarator): Likewise.
5488 (pp_declarator): Likewise.
5489 (pp_type_id): Likewise.
5490 (pp_statement): Likewise.
5491 (pp_constant): Likewise.
5492 (pp_id_expression): Likewise.
5493 (pp_primary_expression): Likewise.
5494 (pp_unary_expression): Likewise.
5495 (pp_multiplicative_expression): Likewise.
5496 (pp_conditional_expression): Likewise.
5497 (pp_assignment_expression): Likewise.
5498 (pp_expression): Likewise.
5499 (pp_c_type_id): Likewise.
5500 (pp_c_storage_class_specifier): Likewise.
5501 * c-pretty-print.c (pp_c_type_cast): Tidy.
5502 (pp_c_pointer): Likewise.
5503 (pp_c_type_specifier): Likewise.
5504 (pp_c_parameter_type_list): Likewise.
5505 (pp_c_function_definition): Likewise.
5506 (pp_c_init_declarator): Likewise.
5507 (pp_c_initializer_list): Likewise.
5508 (pp_c_constructor_elts): Likewise.
5509 (c_pretty_printer::direct_abstract_declarator): Likewise.
5510 (c_pretty_printer::declaration_specifiers): Likewise.
5511 (c_pretty_printer::primary_expression): Likewise.
5512 (c_pretty_printer::postfix_expression): Likewise.
5513 (c_pretty_printer::type_id): Rename from pp_c_type_id.
5514 (c_pretty_printer::storage_class_specifier): Rename from
5515 pp_c_storage_class_specifier.
5516 (c_pretty_printer::initializer): Rename from pp_c_initializer.
5517 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
5518 storage_class_specifier, initializer, offset_list, flags.
5520 2013-08-30 Marek Polacek <polacek@redhat.com>
5522 * c-ubsan.c: New file.
5523 * c-ubsan.h: New file.
5525 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
5527 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
5529 (c_pretty_printer::declaration_specifiers): Likewise.
5530 (c_pretty_printer::declarator): Likewise.
5531 (c_pretty_printer::abstract_declarator): Likewise.
5532 (c_pretty_printer::direct_abstract_declarator): Likewise.
5533 (c_pretty_printer::direct_declarator): Likewise.
5534 (c_pretty_printer::function_specifier): Likewise.
5535 (pp_declaration): Adjust.
5536 (pp_declaration_specifiers): Likewise.
5537 (pp_abstract_declarator): Likewise.
5538 (pp_direct_declarator): Likewise.
5539 (pp_function_specifier): Likewise.
5540 (pp_direct_abstract_declarator): Remove as unused.
5541 (pp_c_declaration): Remove.
5542 (pp_c_declaration_specifiers): Likewise.
5543 (pp_c_declarator): Likewise.
5544 (pp_c_direct_declarator): Likewise.
5545 (pp_c_function_specifier): Likewise.
5546 (pp_c_direct_abstract_declarator): Likewise.
5547 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
5548 from pp_c_abstract_declarator. Adjust.
5549 (c_pretty_printer::direct_abstract_declarator): Rename from
5550 pp_c_direct_abstract_declarator. Adjust.
5551 (c_pretty_printer::function_specifier): Rename from
5552 pp_c_function_specifier. Adjust.
5553 (c_pretty_printer::declaration_specifiers): Rename from
5554 pp_c_declaration_specifiers. Adjust.
5555 (c_pretty_printer::direct_declarator): Rename from
5556 pp_c_direct_declarator. Adjust.
5557 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
5558 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
5559 (c_pretty_printer::c_pretty_printer): Do not assign to
5560 declaration, declaration_specifiers, declarator,
5561 direct_declarator, direct_abstract_declarator, function_specifier.
5563 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
5565 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
5566 virtual member function.
5567 (c_pretty_printer::multiplicative_expression): Likewise.
5568 (c_pretty_printer::conditional_expression): Likewise.
5569 (c_pretty_printer::assignment_expression): Likewise.
5570 (c_pretty_printer::expression): Likewise.
5571 (pp_unary_expression): Adjust.
5572 (pp_multiplicative_expression): Likewise.
5573 (pp_assignment_expression): Likewise.
5574 (pp_conditional_expression): Likewise.
5575 (pp_expression): Likewise.
5576 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
5577 from pp_c_unary_expression. Adjust.
5578 (c_pretty_printer::multiplicative_expression): Rename from
5579 pp_c_multiplicative_expression. Adjust.
5580 (c_pretty_printer::conditional_expression): Rename from
5581 pp_c_conditional_expression. Adjust.
5582 (c_pretty_printer::assignment_expression): Rename from
5583 pp_c_assignment_expression. Adjust.
5584 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
5585 (c_pretty_printer::c_pretty_printer): Do not assign to
5586 unary_expression, multiplicative_expression,
5587 conditional_expression, expression.
5589 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
5591 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
5592 virtual member function.
5593 (pp_postfix_expression): Adjust.
5594 (pp_c_postfix_expression): Remove.
5595 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
5596 from pp_c_postfix_expression. Adjust.
5597 (c_pretty_printer::c_pretty_printer): Do not assign to
5600 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
5602 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
5603 virtua member function.
5604 (pp_primary_expression): Adjust.
5605 (pp_c_primary_expression): Remove.
5606 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
5607 from pp_c_primary_expression. Adjust.
5608 (pp_c_initializer_list): Use pp_primary_expression.
5609 (c_pretty_printer::c_pretty_printer): Do not assign to
5612 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
5614 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
5615 * c-pretty-print.c (M_): Remove.
5616 (c_pretty_printer::translate_string): Define.
5617 (pp_c_type_specifier): Use it.
5618 (pp_c_primary_expression): Likewise.
5619 (pp_c_expression): Likewise.
5621 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
5623 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
5625 (pp_c_id_expression): Remove.
5626 (pp_id_expression): Adjust.
5627 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
5628 pp_c_id_expression. Adjust.
5629 (pp_c_postfix_expression): Use pp_id_expression.
5630 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
5632 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
5634 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
5636 (pp_constant): Adjust.
5637 (pp_c_constant): Remove.
5638 * c-pretty-print.c (c_pretty_printer::constant): Rename from
5639 pp_c_constant. Adjust.
5641 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
5642 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
5644 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
5646 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
5647 (c_pretty_printer::c_pretty_printer): Declare.
5648 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
5649 c_pretty_printer_init. Adjust.
5650 (print_c_tree): Do not call c_pretty_printer_init.
5651 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
5653 2013-08-09 Arnaud Charlet <charlet@adacore.com>
5655 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
5657 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
5660 * c-common.c (pointer_int_sum): Add bool parameter.
5661 * c-common.h (pointer_int_sum): Adjust declaration.
5663 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
5665 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
5666 c_pretty_printer variable.
5668 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
5670 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
5672 (pp_c_base): Likewise. Adjust users.
5673 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
5674 (pp_c_whitespace): Do not call pp_base.
5675 (pp_c_left_paren): Likewise.
5676 (pp_c_right_paren): Likewise.
5677 (pp_c_left_brace): Likewise.
5678 (pp_c_right_brace): Likewise.
5679 (pp_c_left_bracket): Likewise.
5680 (pp_c_right_bracket): Likewise.
5681 (pp_c_dot): Likewise.
5682 (pp_c_ampersand): Likewise.
5683 (pp_c_star): Likewise.
5684 (pp_c_arrow): Likewise.
5685 (pp_c_semicolon): Likewise.
5686 (pp_c_complement): Likewise.
5687 (pp_c_exclamation): Likewise.
5688 (pp_c_direct_declarator): Likewise.
5689 (pp_c_ws_string): Likewise.
5690 (pp_c_identifier): Likewise.
5691 (pp_c_statement): Likewise.
5692 (print_c_tree): Likewise.
5694 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
5697 * c-common.c (c_parse_error): Catch user-defined literal tokens and
5698 provide useful error strings.
5700 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
5702 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
5703 printer functions instead of pp_string or operators and punctuators.
5704 (dump_generic_ada_node): Likewise.
5705 * c-pretty-print.c (pp_c_type_specifier): Likewise.
5706 (pp_c_relational_expression): Likewise.
5707 (pp_c_logical_or_expression): Likewise.
5709 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
5711 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
5712 functions instead of pp_character.
5713 (pp_ada_tree_identifier): Likewise.
5714 (dump_ada_double_name): Likewise.
5715 (dump_ada_function_declaration): Likewise.
5716 (dump_ada_array_domains): Likewise.
5717 (dump_template_types): Likewise.
5718 (dump_generic_ada_node): Likewise.
5719 (print_ada_declaration): Likewise.
5720 (print_ada_struct_decl): Likewise.
5721 * c-pretty-print.c (pp_c_integer_constant): Likewise.
5723 2013-07-23 Tom Tromey <tromey@redhat.com>
5725 * c-common.h (enum rid) <RID_GENERIC>: New constant.
5726 * c-common.c (c_common_reswords): Add _Generic.
5728 2013-07-21 OndÅej BÃlka <neleai@seznam.cz>
5730 * c-common.c: Fix typos.
5731 * c-common.h: Likewise.
5733 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
5736 * c-common.c (c_common_attribute_table): Add warn_unused.
5737 (handle_warn_unused_attribute): New.
5739 2013-07-10 Jakub Jelinek <jakub@redhat.com>
5741 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
5742 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
5744 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
5747 * c.opt: Add Wconditionally-supported.
5749 2013-07-08 Graham Stott <graham.stott@btinternet.com>
5751 * array-notation-common.c (length_mismatch_in_expr_p): Delete
5752 unused variables l_length and l_node.
5754 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
5757 * c-common.c (complete_array_type): Delay folding first index
5758 like other indices. When folding, check for index overflow.
5760 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
5763 * c-common.h (c_build_vec_perm_expr): New complain argument.
5764 * c-common.c (c_build_vec_perm_expr): Likewise.
5765 Use save_expr also in C++.
5767 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
5769 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
5770 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
5771 * c-opts.c (c_common_post_options): Likewise.
5773 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
5775 * array-notation-common.c (length_mismatch_in_expr): Changed the
5776 parameter type's from a dynamic array to a vec_tree. Also removed
5777 the size parameters.
5778 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
5781 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
5783 * c-common.h (struct cilkplus_an_parts): New structure.
5784 (struct cilkplus_an_loop_parts): Likewise.
5785 (cilkplus_extract_an_triplets): New prototype.
5786 (fix_sec_implicit_args): Likewise.
5787 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
5788 (fix_sec_implicit_args): Likewise.
5790 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
5792 * array-notation-common.c (find_inv_trees): Removed an unwanted
5794 * c-common.h (struct inv_list::additional_tcodes): Changed type from
5795 enum rid to enum tree_code.
5797 2013-06-11 Jan Hubicka <jh@suse.cz>
5799 * c-common.c (handle_alias_ifunc_attribute): Do not set
5800 DECL_EXTERNAL for weakref variables.
5801 * c-pragma.c (handle_pragma_weak): Make sure aliases
5802 are not declared as external.
5804 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
5806 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
5807 function from c/c-array-notation.c.
5808 (is_cilkplus_reduce_builtin): Likewise.
5809 (find_rank): Likewise.
5810 (extract_array_notation_exprs): Likewise.
5811 (replace_array_notations): Likewise.
5812 (find_inv_trees): Likewise.
5813 (replace_inv_trees): Likewise.
5814 (contains_array_notation_expr): Likewise.
5815 (find_correct_array_notation_type): Likewise.
5816 * c-common.h (struct inv_list): Moved this struct from the file
5817 c/c-array-notation.c and added a new field called additional tcodes.
5818 (length_mismatch_in_expr_p): New prototype.
5819 (is_cilkplus_reduce_builtin): Likewise.
5820 (find_rank): Likewise.
5821 (extract_array_notation_exprs): Likewise.
5822 (replace_array_notation): Likewise.
5823 (find_inv_trees): Likewise.
5824 (replace_inv_trees): Likewise.
5825 (find_correct_array_notation_type): Likewise.
5827 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
5829 * c-common.c (c_define_builtins): When cilkplus is enabled, the
5830 function array_notation_init_builtins is called.
5831 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
5832 * c-common.def (ARRAY_NOTATION_REF): New tree.
5833 * c-common.h (build_array_notation_expr): New function declaration.
5834 (build_array_notation_ref): Likewise.
5835 (extract_sec_implicit_index_arg): New extern declaration.
5836 (is_sec_implicit_index_fn): Likewise.
5837 (ARRAY_NOTATION_CHECK): New define.
5838 (ARRAY_NOTATION_ARRAY): Likewise.
5839 (ARRAY_NOTATION_START): Likewise.
5840 (ARRAY_NOTATION_LENGTH): Likewise.
5841 (ARRAY_NOTATION_STRIDE): Likewise.
5842 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
5844 (pp_c_expression): Likewise.
5845 * c.opt (flag_enable_cilkplus): New flag.
5846 * array-notation-common.c: New file.
5848 2013-05-14 Jakub Jelinek <jakub@redhat.com>
5851 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
5853 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
5855 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
5858 2013-05-07 Han Shen <shenhan@google.com>
5860 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
5862 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5864 * c-common.c (check_user_alignment): Emit error for negative values.
5866 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5868 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
5870 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5872 * c-cppbuiltin.c (c_cpp_builtins): Do not define
5873 __GXX_EXPERIMENTAL_CXX1Y__.
5875 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5876 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5878 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
5879 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
5880 to simply use OPT_Wpointer_arith.
5881 (c_sizeof_or_alignof_type): Likewise.
5883 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5885 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
5887 2013-04-12 Jakub Jelinek <jakub@redhat.com>
5889 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
5890 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
5893 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
5895 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
5897 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
5899 * c-common.c (pointer_int_sum): Remove dead code.
5901 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
5904 * c-common.c (handle_optimize_attribute): Don't call
5905 save_optabs_if_changed.
5907 2013-03-05 Jakub Jelinek <jakub@redhat.com>
5910 * c-pch.c (pch_init): Free target_validity at the end.
5912 2013-03-04 Jakub Jelinek <jakub@redhat.com>
5914 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
5916 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
5917 Jakub Jelinek <jakub@redhat.com>
5920 * c-common.c (handle_no_sanitize_address_attribute): New function.
5921 (c_common_attribute_table): Add no_sanitize_address attribute.
5922 (handle_no_address_safety_analysis_attribute): Add
5923 no_sanitize_address attribute, not no_address_safety_analysis
5926 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
5929 * c-common.c (handle_optimize_attribute): Call
5930 save_optabs_if_changed.
5932 2013-02-18 Jakub Jelinek <jakub@redhat.com>
5933 Steven Bosscher <steven@gcc.gnu.org>
5936 * c-opts.c (c_common_post_options): If debug info is enabled
5937 and non-dwarf*, refuse to load PCH files and when writing PCH
5940 2013-02-05 Jakub Jelinek <jakub@redhat.com>
5943 * c-common.c (handle_error_attribute): Fix condition.
5945 2013-01-30 Jakub Jelinek <jakub@redhat.com>
5948 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
5950 2013-01-18 Jason Merrill <jason@redhat.com>
5953 * c.opt (-fextern-tls-init): New.
5954 * c-opts.c (c_common_post_options): Handle it.
5956 2013-01-09 Jakub Jelinek <jakub@redhat.com>
5959 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
5960 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
5961 and is either negative or bigger or equal to type precision
5962 of the first operand.
5964 2012-12-03 Marek Polacek <polacek@redhat.com>
5967 * c-common.c (check_user_alignment): Swap order of tests,
5968 check TREE_CODE first.
5970 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
5973 * c-common.h (overflow_type): New enum.
5974 (build_userdef_literal): Add overflow_type argument.
5975 (tree_userdef_literal): Add overflow_type.
5976 (USERDEF_LITERAL_OVERFLOW): New access macro.
5977 * c-common.c (build_userdef_literal): Add overflow_type
5979 * c-lex.c (c_lex_with_flags): Add overflow_type to
5980 build_userdef_literal calls.
5981 (interpret_integer, interpret_float): Add overflow_type argument.
5983 2012-11-28 Richard Biener <rguenther@suse.de>
5986 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
5987 here and use a type with proper overflow behavior for types that would
5988 need to be promoted for the arithmetic.
5990 2012-11-23 Jakub Jelinek <jakub@redhat.com>
5993 * c-common.c (handle_no_address_safety_analysis_attribute): New
5995 (c_common_attribute_table): Add no_address_safety_analysis.
5997 2012-11-16 Simon Baldwin <simonb@google.com>
5999 * c.opt: Add f[no-]canonical-system-headers.
6000 * c-opts.c (c_common_handle_option): Handle
6001 OPT_fcanonical_system_headers.
6003 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
6006 * c-opts.c (c_common_handle_option): Set new flags.
6007 * c.opt: Describe new flags.
6009 2012-11-09 Jason Merrill <jason@redhat.com>
6011 * c.opt (Wabi-tag): New.
6013 2012-11-09 Andi Kleen <ak@linux.intel.com>
6016 * c-common.c (get_atomic_generic_size): Mask with
6019 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6022 * c.opt (Wformat): Make it Alias Wformat=1.
6023 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
6024 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
6026 (Wformat=): RejectNegative. Use LangEnabledBy.
6027 (Wnonnull): Use LangEnabledBy.
6028 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
6029 * c-format.c (set_Wformat): Delete.
6030 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
6031 (maybe_read_dollar_number): Likewise.
6032 (avoid_dollar_number): Likewise.
6033 (finish_dollar_format_checking): Likewise.
6034 (check_format_info): Likewise.
6035 (check_format_info_main): Likewise.
6036 (check_format_types): Likewise.
6037 (format_type_warning): Likewise.
6038 * c-common.c (int): Likewise.
6039 (check_function_sentinel): Likewise.
6040 * c-common.h (warn_format,set_Wformat): Do not declare here.
6042 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6045 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
6046 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
6048 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
6050 (Wvariadic-macros): Init(1).
6051 * c-opts.c (c_common_handle_option): Do not handle them
6053 (c_common_post_options): Likewise.
6054 (sanitize_cpp_opts): warn_unused_macros is now
6055 cpp_warn_unused_macros.
6056 (push_command_line_include): Likewise.
6057 * c-common.c (warn_unknown_pragmas): Do not define.
6058 * c-common.h (warn_unknown_pragmas): Do not declare.
6060 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
6063 * c-common.c (conversion_warning): Handle conditional expressions.
6065 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
6068 * c.opt (Wreturn_local_addr): Define new option.
6070 2012-10-25 Jason Merrill <jason@redhat.com>
6072 * c.opt (Wvirtual-move-assign): New.
6074 * c.opt (Winherited-variadic-ctor): New.
6076 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
6079 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
6081 2012-10-23 Joseph Myers <joseph@codesourcery.com>
6083 * c-common.h (pch_cpp_save_state): Declare.
6084 * c-target.def (c_preinclude): New hook.
6085 * c-opts.c (done_preinclude): New.
6086 (push_command_line_include): Handle default preincluded header.
6087 (cb_file_change): Call pch_cpp_save_state when calling
6088 push_command_line_include.
6089 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
6090 (pch_cpp_save_state): New.
6091 (pch_init): Call pch_cpp_save_state conditionally, instead of
6092 calling cpp_save_state.
6094 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6098 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
6099 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
6100 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
6101 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
6102 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
6103 * c-opts.c (c_common_handle_option): Remove explicit handling from
6105 (c_common_post_options): Likewise.
6107 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
6109 * c-ada-spec.c (LOCATION_COL): Delete.
6110 (compare_location): New function.
6111 (compare_node): Use it.
6112 (compare_comment): Likewise.
6114 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6118 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
6119 * c-opts.c (c_common_handle_option): Do not set them here. Add
6121 (c_common_post_options): Likewise.
6123 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
6125 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
6126 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
6127 Remove POINTER_TYPE handling, add large unsigned handling and use
6128 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
6130 2012-10-12 Jakub Jelinek <jakub@redhat.com>
6133 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
6134 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
6135 locs and array of 3 trees instead of just single loc and single
6136 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
6137 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
6138 For *cmp* builtins that take two sources strings report warnings
6139 about first and second source, not about destination and source.
6141 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
6144 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
6146 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
6148 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
6149 declaring something coming from another file.
6151 2012-10-10 Arnaud Charlet <charlet@adacore.com>
6154 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
6156 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
6159 * c-common.c (warn_about_parentheses): Add location_t parameter;
6160 use EXPR_LOC_OR_LOC.
6161 * c-common.h: Update declaration.
6163 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
6166 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
6167 more operations. Make error messages optional.
6168 * c-common.h (enum stv_conv): Moved from c-typeck.c.
6169 (scalar_to_vector): Declare.
6171 2012-10-08 Jason Merrill <jason@redhat.com>
6173 * c-common.c (c_common_reswords): Add thread_local.
6175 2012-10-08 Dodji Seketeli <dodji@redhat.com>
6177 PR c++/53528 C++11 attribute support
6178 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
6180 * c-common.c (check_cxx_fundamental_alignment_constraints): New
6182 (handle_aligned_attribute): In choose strictest alignment
6183 among many. Use new check_cxx_fundamental_alignment_constraints.
6184 (handle_transparent_union_attribute): In c++11 attribute syntax,
6185 don't look through typedefs.
6187 2012-10-04 Arnaud Charlet <charlet@adacore.com>
6189 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
6190 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
6193 2012-09-25 Dehao Chen <dehao@google.com>
6196 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6197 map when read in the pch.
6199 2012-09-18 Arnaud Charlet <charlet@adacore.com>
6201 * c-ada-spec.c: Style fixes.
6203 2012-09-18 Thomas Quinot <quinot@adacore.com>
6205 * c.opt (-fada-spec-parent): Define new command line switch.
6206 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
6207 is specified, generate binding spec as a child of the specified unit.
6209 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
6210 Manuel López-Ibáñez <manu@gcc.gnu.org>
6213 * c.opt ([Winit-self]): Enabled by -Wall in C++.
6215 2012-08-23 Arnaud Charlet <charlet@adacore.com>
6217 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
6218 for pointers, and add missing Convention C pragma.
6219 (print_ada_struct_decl): Add missing aliased keyword.
6220 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
6222 2012-08-17 Jakub Jelinek <jakub@redhat.com>
6224 * c-common.c (sizeof_pointer_memaccess_warning): New function.
6225 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
6226 * c-opts.c (c_common_handle_option): Enable it for -Wall.
6227 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
6228 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
6230 2012-08-10 Richard Guenther <rguenther@suse.de>
6232 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
6234 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
6236 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
6237 instead of separate pp_newline and pp_flush.
6238 (print_c_tree): Likewise.
6240 2012-07-26 Richard Henderson <rth@redhat.com>
6242 * c-common.c (handle_hot_attribute): Allow labels.
6243 (handle_cold_attribute): Likewise.
6245 2012-07-20 Jakub Jelinek <jakub@redhat.com>
6248 * c-common.c (check_function_nonnull): Handle multiple nonnull
6249 attributes properly.
6251 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
6253 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
6254 * c-ada-spec.c: Likewise.
6255 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
6257 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
6259 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
6260 Remove code conditional on it.
6262 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
6264 * c-gimplify.c: Do not include basic-block.h.
6265 * c-common.c: Do not include linfuncs.h.
6267 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
6269 * c-common.h: Include tree.h.
6271 2012-07-02 Jason Merrill <jason@redhat.com>
6274 * c-common.c (get_priority): Call default_conversion.
6276 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
6278 * c-pch.c (c_common_write_pch): Remove unused variables.
6280 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
6282 * cppspec.c: Moved from gcc/ to here.
6284 2012-06-27 Kai Tietz <ktietz@redhat.com>
6286 PR preprocessor/37215
6287 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
6289 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
6291 * c-common.h (c_common_print_pch_checksum): Remove.
6292 * c-pch.c: Do not include output.h.
6293 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
6294 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
6295 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
6296 (struct c_pch_header): Remove.
6297 (get_ident): Update gpch version.
6298 (pch_init): Do not print executable_checksum to asm_out_file.
6299 Do not fail if there is no asm_out_file to read back from. Set
6300 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
6301 (c_common_write_pch): Verify that nothing was written to asm_out_file
6302 since pch_init was called. Do not write a c_pch_header, and do not
6303 copy from asm_out_file to the PCH.
6304 (c_common_read_pch): Do not read a c_pch_header, and do not restore
6305 the content of asm_out_file from the PCH.
6306 (c_common_print_pch_checksum): Remove.
6307 * c-opts.c (c_common_init): Print out executable_checksum directly.
6309 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
6311 * c-target.def (objc_declare_unresolved_class_reference,
6312 objc_declare_class_definition): Add new hooks.
6314 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
6316 * c-lex.c: Do not include output.h.
6317 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
6318 Remove uses of ASM_OUTPUT_IDENT.
6320 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
6323 * c-common.h (c_build_vec_perm_expr): Move decl here.
6324 * c-common.c (c_build_vec_perm_expr): Move definition
6327 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
6329 * c.opt (fconserve-space): Turn into a no-op.
6331 2012-06-04 Sterling Augustine <saugustine@google.com>
6333 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
6334 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
6335 both the start and end of the function.
6337 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
6339 * c-common.c: Do not include output.h.
6340 * c-pragma.c: Likewise.
6342 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
6344 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
6345 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
6346 (lang_decl_name): Handle namespace decls.
6348 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
6350 * c-ada-spec.c: Do not include output.h.
6351 * c-semantics.c: Likewise.
6353 2012-05-29 Joseph Myers <joseph@codesourcery.com>
6355 * c-common.c: Fix typo.
6357 2012-05-29 Michael Matz <matz@suse.de>
6359 * c-common.h (c_expand_decl): Remove prototype.
6361 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
6363 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
6364 * c-opts.c (c_common_handle_option): Remove code handling
6365 warn_missing_braces.
6367 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
6370 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
6373 2012-05-22 Dodji Seketeli <dodji@redhat.com>
6376 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
6378 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
6380 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
6381 * c-opts.c (c_common_handle_option): Do not handle explicitly
6382 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
6384 2012-05-16 Dodji Seketeli <dodji@redhat.com>
6386 PR preprocessor/7263
6387 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
6388 to cpp_classify_number. For diagnostics, use the precise location
6389 instead of the global input_location.
6391 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
6394 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
6396 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
6398 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
6400 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
6403 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
6404 Wreorder): Use LangEnabledBy.
6405 * c-opts.c (c_common_handle_option): Do not enable them
6406 explicitly. Call lang-specific generated functions.
6407 (c_common_post_options): Do not set them here.
6409 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
6411 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
6412 Wmissing-field-initializers,Wmissing-parameter-type,
6413 Wold-style-declaration,Woverride-init): Use EnabledBy.
6414 * c-opts.c (c_common_post_options): Do not set here explicitly.
6416 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6419 * c-opts.c (c_common_handle_option): Use handle_generated_option
6420 to enable sub-options.
6422 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
6425 * c-common.c (warnings_for_convert_and_check): Use warning_at.
6427 2012-05-10 Richard Guenther <rguenther@suse.de>
6429 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
6430 adjust commentary about TYPE_IS_SIZETYPE types.
6432 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6435 * c-common.c (warn_logical_operator): Check that argument of
6436 integer_zerop is not NULL.
6438 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
6441 * c-common.c (warn_logical_operator): Do not warn if either side
6442 is already true or false.
6444 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
6447 * c-common.c (expr_original_type): New.
6448 (shorten_compare): Do not warn for enumeration types.
6450 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
6452 * c.opt (fpermissive): Add Var(flag_permissive).
6454 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
6457 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
6458 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
6460 2012-04-30 Dodji Seketeli <dodji@redhat.com>
6462 Add -Wvarargs option
6463 * c.opt (Wvarargs): Define new option.
6465 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6467 * c-common.c (check_function_arguments): Replace
6468 Wmissing-format-attribute with Wsuggest-attribute=format.
6470 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6472 * c.opt (Wsuggest-attribute=format): New. Alias of
6473 Wmissing-format-attribute.
6474 * c-format.c (decode_format_type): Replace
6475 Wmissing-format-attribute with Wsuggest-attribute=format.
6476 (check_function_format): Likewise.
6478 2012-04-27 Ollie Wild <aaw@google.com>
6480 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
6481 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
6482 * c.opt: Add Wliteral-suffix.
6484 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
6487 * c.opt (Wpedantic): New.
6488 (pedantic): Alias Wpedantic.
6489 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
6490 (c_common_post_options): Likewise.
6491 (sanitize_cpp_opts): Likewise.
6492 * c-lex.c (interpret_float): Likewise.
6493 * c-format.c (check_format_types): Likewise.
6494 * c-common.c (pointer_int_sum): Likewise.
6495 (c_sizeof_or_alignof_type): Likewise.
6496 (c_add_case_label): Likewise.
6497 (c_do_switch_warnings): Likewise.
6498 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
6500 2012-04-15 Jason Merrill <jason@redhat.com>
6503 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
6504 (C_STD_NAME): Distinguish between C++98 and C++11.
6506 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
6509 * c-common.h (uint16_type_node): Rename into...
6510 (c_uint16_type_node): ...this.
6511 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
6512 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
6514 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
6516 * c-common.c (warn_if_unused_value): Move definition to here.
6517 * c-common.h (warn_if_unused_value): Move declaration to here.
6519 2012-03-23 William Bader <williambader@hotmail.com>
6521 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
6523 2012-03-20 Jason Merrill <jason@redhat.com>
6525 * c-common.h (enum cxx_dialect): Add cxx1y.
6526 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
6528 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
6529 * c-opts.c (c_common_post_options): Likewise.
6530 (set_std_cxx1y): New.
6531 (c_common_handle_option): Call it.
6532 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
6534 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
6537 * c.opt ([Wuseless-cast]): Add.
6539 2012-03-16 Richard Guenther <rguenther@suse.de>
6541 * c-pretty-print.c (pp_c_initializer_list): Adjust.
6543 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6546 * c.opt (ftemplate-backtrace-limit) Add.
6548 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6550 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
6552 * c-pragma.c (handle_pragma_extern_prefix): Remove.
6553 (init_pragma): Don't register extern_prefix.
6555 2012-03-12 Richard Guenther <rguenther@suse.de>
6557 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
6558 (builtin_type_for_size): Likewise.
6560 2012-02-13 Jakub Jelinek <jakub@redhat.com>
6563 * c-common.c (sync_resolve_params): Don't decide whether to convert
6564 or not based on TYPE_SIZE comparison, convert whenever arg_type
6565 is unsigned INTEGER_TYPE.
6567 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
6570 * c.opt ([Wunused-local-typedefs]): Fix description.
6572 2012-01-24 Mike Stump <mikestump@comcast.net>
6574 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
6577 2012-01-18 Richard Guenther <rguenther@suse.de>
6579 * c-opts.c (c_common_post_options): Reset LTO flags if
6580 we are about to generate a PCH.
6582 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
6585 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
6586 use pp_unsigned_wide_integer.
6588 2012-01-10 Richard Guenther <rguenther@suse.de>
6591 * c-opts.c (c_common_handle_option): Move -Werror handling
6592 to language independent code.
6594 2012-01-05 Richard Guenther <rguenther@suse.de>
6597 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
6600 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
6603 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
6604 of array types with an unknown bound.
6606 2011-12-20 Joseph Myers <joseph@codesourcery.com>
6608 * c-common.c (flag_isoc99): Update comment to refer to C11.
6609 (flag_isoc1x): Change to flag_isoc11.
6610 * c-common.h (flag_isoc99): Update comment to refer to C11.
6611 (flag_isoc1x): Change to flag_isoc11.
6612 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
6614 * c-opts.c (set_std_c1x): Change to set_std_c11.
6615 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
6617 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
6618 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
6619 * c.opt (std=c1x): Change to std=c11. Document as non-draft
6621 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
6622 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
6623 (std=gnu1x): Make alias of std=gnu11.
6625 2011-12-19 Jason Merrill <jason@redhat.com>
6628 * c-common.c (handle_transparent_union_attribute): Check the first
6629 field if the type is complete.
6631 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
6634 * c-common.c (RID_IS_FINAL): Add.
6635 * c-common.h (RID_IS_FINAL): Add.
6637 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
6639 * c.opt (fgnu-runtime): Provide full description.
6640 (fnext-runtime): Likewise.
6641 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
6643 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
6645 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
6646 predefines in one place. Add LOCK_FREE predefines.
6647 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
6650 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
6653 * c-common.c (get_atomic_generic_size): Check for various error
6655 (resolve_overloaded_atomic_exchange,
6656 resolve_overloaded_atomic_compare_exchange,
6657 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
6658 error_mark_node for error conditions.
6660 2011-11-08 Richard Guenther <rguenther@suse.de>
6665 2011-11-07 Richard Henderson <rth@redhat.com>
6666 Aldy Hernandez <aldyh@redhat.com>
6667 Torvald Riegel <triegel@redhat.com>
6669 Merged from transactional-memory.
6671 * c-common.c (handle_tm_wrap_attribute,
6672 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
6673 (struct c_common_reswords): Added __transaction* keywords.
6674 (struct c_common_attribute_table): Added transaction* and tm_regparm
6676 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
6678 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
6679 find_tm_attribute): Declare.
6681 2011-11-07 Jason Merrill <jason@redhat.com>
6684 * c-common.c, c-common.h: Revert yesterday's changes.
6686 2011-11-06 Jason Merrill <jason@redhat.com>
6689 * c-common.c (decl_has_visibility_attr): Split out from...
6690 (c_determine_visibility): ...here.
6691 * c-common.h: Declare it.
6693 2011-11-06 Joseph Myers <joseph@codesourcery.com>
6695 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
6696 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
6698 (check_user_alignment): New. Split out of
6699 handle_aligned_attribute. Disallow integer constants with
6700 noninteger types. Conditionally allow zero.
6701 (handle_aligned_attribute): Use check_user_alignment.
6702 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
6704 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
6705 Richard Henderson <rth@redhat.com>
6707 Merged from cxx-mem-model.
6709 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
6710 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
6711 parameters that are the same type size.
6712 (get_atomic_generic_size): New. Find size of generic
6713 atomic function parameters and do typechecking.
6714 (add_atomic_size_parameter): New. Insert size into parameter list.
6715 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
6716 either __atomic_exchange_n or external library call.
6717 (resolve_overloaded_atomic_compare_exchange): Restructure
6718 __atomic_compare_exchange to either _n variant or external library call.
6719 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
6720 __atomic_load_n or an external library call.
6721 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
6722 __atomic_store_n or an external library call.
6723 (resolve_overloaded_builtin): Handle new __atomic builtins.
6725 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
6728 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
6729 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
6730 <INDIRECT_REF>: Return the argument.
6731 <ARRAY_REF>: Remove special code for negative offset.
6732 Call fold_build_pointer_plus instead of size_binop.
6733 (fold_offsetof): Remove STOP_REF argument and adjust.
6734 * c-common.h (fold_offsetof_1): Declare.
6735 (fold_offsetof): Remove STOP_REF argument.
6737 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
6740 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
6741 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
6742 Wnarrowing for C++0x and C++98.
6743 * c.opt ([Wnarrowing]): Update.
6745 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
6748 * c.opt: Add Wzero-as-null-pointer-constant.
6750 2011-10-31 Jason Merrill <jason@redhat.com>
6752 * c.opt (-fdeduce-init-list): Off by default.
6755 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
6756 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
6758 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
6760 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
6763 * c.opt (fvisibility-inlines-hidden): Description change.
6765 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
6767 Implement C++11 user-defined literals.
6768 * c-common.c (build_userdef_literal): New.
6769 * c-common.def: New tree code.
6770 * c-common.h (tree_userdef_literal): New tree struct and accessors.
6771 * c-lex.c (interpret_float): Add suffix parm.
6772 (c_lex_with_flags): Build literal tokens.
6774 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
6778 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
6781 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
6782 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
6783 Wnarrowing for C++0x and C++98.
6784 * c.opt ([Wnarrowing]): Update.
6786 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
6789 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
6790 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
6791 Wnarrowing for C++0x and C++98.
6792 * c.opt ([Wnarrowing]): Update.
6794 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
6797 * c-common.c (conversion_warning): Remove code looking for
6798 artificial operands.
6800 2011-10-18 Dodji Seketeli <dodji@redhat.com>
6803 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
6804 !NO_IMPLICIT_EXTERN_C.
6806 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
6808 * c-common.c (c_common_reswords): Add __bases,
6810 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
6812 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
6815 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
6817 2011-10-15 Tom Tromey <tromey@redhat.com>
6818 Dodji Seketeli <dodji@redhat.com>
6820 * c.opt (fdebug-cpp): New option.
6821 * c-opts.c (c_common_handle_option): Handle the option.
6822 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
6823 output stream in parameter. Factorized from ...
6824 (maybe_print_line): ... this. Dump location debug information when
6825 -fdebug-cpp is in effect.
6826 (print_line_1): New static function. Takes an output stream in
6827 parameter. Factorized from ...
6828 (print_line): ... here. Dump location information when -fdebug-cpp
6830 (scan_translation_unit): Dump location information when
6831 -fdebug-cpp is in effect.
6833 2011-10-15 Tom Tromey <tromey@redhat.com>
6834 Dodji Seketeli <dodji@redhat.com>
6836 * c.opt (ftrack-macro-expansion): New option. Handle it with and
6838 * c-opts.c (c_common_handle_option)<case
6839 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
6840 cases. Handle -ftrack-macro-expansion with and without argument.
6842 2011-10-15 Tom Tromey <tromey@redhat.com>
6843 Dodji Seketeli <dodji@redhat.com>
6845 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
6846 (print_line, cb_define, do_line_change): Adjust to avoid touching
6847 the internals of struct line_map. Use the public API instead.
6848 * c-pch.c (c_common_read_pch): Likewise.
6849 * c-lex.c (fe_file_change): Likewise.
6851 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
6854 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
6856 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
6859 * c-pretty-print.c (pp_c_floating_constant): Output
6860 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
6862 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6864 * c-common.c (def_builtin_1): Delete old interface with two
6865 parallel arrays to hold standard builtin declarations, and replace
6866 it with a function based interface that can support creating
6867 builtins on the fly in the future. Change all uses, and poison
6868 the old names. Make sure 0 is not a legitimate builtin index.
6869 * c-omp.c (c_finish_omp_barrier): Ditto.
6870 (c_finish_omp_taskwait): Ditto.
6871 (c_finish_omp_flush): Ditto.
6873 2011-10-11 Tristan Gingold <gingold@adacore.com>
6875 * c.opt: (fallow-parameterless-variadic-functions): New.
6877 2011-09-08 Dodji Seketeli <dodji@redhat.com>
6879 PR c++/33255 - Support -Wunused-local-typedefs warning
6880 * c-common.h (struct c_language_function::local_typedefs): New
6882 (record_locally_defined_typedef, maybe_record_typedef_use)
6883 (maybe_warn_unused_local_typedefs): Declare new functions.
6884 * c-common.c (record_locally_defined_typedef)
6885 (maybe_record_typedef_use)
6886 (maybe_warn_unused_local_typedefs): Define new functions.
6887 * c.opt: Declare new -Wunused-local-typedefs flag.
6889 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
6892 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
6895 2011-09-05 Richard Guenther <rguenther@suse.de>
6897 * c-common.c (complete_array_type): Use ssize_int (-1) instead
6898 of integer_minus_one_node for empty array upper bounds.
6900 2011-08-28 Dodji Seketeli <dodji@redhat.com>
6902 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
6903 it's the first time it's being called on this main TU.
6905 2011-08-24 Richard Guenther <rguenther@suse.de>
6908 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
6910 2011-08-22 Gabriel Charette <gchare@google.com>
6912 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
6913 defined in cpp_init_builtins and c_cpp_builtins.
6915 2011-08-19 Joseph Myers <joseph@codesourcery.com>
6917 * c-common.c (c_common_reswords): Add __builtin_complex.
6918 * c-common.h (RID_BUILTIN_COMPLEX): New.
6920 2011-08-18 Joseph Myers <joseph@codesourcery.com>
6922 * c-common.c (c_common_reswords): Add _Noreturn.
6923 (keyword_is_function_specifier): Handle RID_NORETURN.
6924 * c-common.h (RID_NORETURN): New.
6926 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6928 * c-common.c (unsafe_conversion_p): New function. Check if it is
6929 unsafe to convert an expression to the type.
6930 (conversion_warning): Adjust, use unsafe_conversion_p.
6931 * c-common.h (unsafe_conversion_p): New function declaration.
6933 2011-08-02 Jakub Jelinek <jakub@redhat.com>
6935 * c-common.h (c_finish_omp_atomic): Adjust prototype.
6936 (c_finish_omp_taskyield): New prototype.
6937 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
6938 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
6939 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
6940 or RHS1 have side-effects, evaluate those too in the right spot,
6941 if it is a decl and LHS is also a decl, error out if they
6943 (c_finish_omp_taskyield): New function.
6944 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
6945 * c-pragma.c (omp_pragmas): Add taskyield.
6946 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
6947 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
6948 PRAGMA_OMP_CLAUSE_MERGEABLE.
6950 2011-07-25 Dodji Seketeli <dodji@redhat.com>
6952 * c-common.h (set_underlying_type): Remove parm name from
6955 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
6957 * c-pretty-print.h: Search c-common.h in c-family.
6959 2011-07-22 Jason Merrill <jason@redhat.com>
6962 * c.opt (Wnarrowing): New.
6965 * c-common.h: Declare c_linkage_bindings.
6966 * c-pragma.c (handle_pragma_redefine_extname): Use it.
6969 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
6970 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
6971 as flag_isoc99 for 'restrict'.
6972 (pp_c_specifier_qualifier_list): Likewise for _Complex.
6974 2011-07-21 Ian Lance Taylor <iant@google.com>
6977 * c-common.c (c_disable_warnings): New static function.
6978 (c_enable_warnings): New static function.
6979 (c_fully_fold_internal): Change local unused_p to bool. Call
6980 c_disable_warnings and c_enable_warnings rather than change
6981 c_inhibit_evaluation_warnings.
6983 2011-07-20 Jason Merrill <jason@redhat.com>
6985 PR c++/6709 (DR 743)
6986 PR c++/42603 (DR 950)
6987 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
6988 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
6989 (CPP_DECLTYPE): New.
6990 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
6992 2011-07-19 Richard Guenther <rguenther@suse.de>
6994 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
6995 * c-omp.c (c_finish_omp_for): Likewise.
6997 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
6999 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
7000 body on the next line.
7002 2011-07-08 Jason Merrill <jason@redhat.com>
7005 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
7008 * c-common.c (c_apply_type_quals_to_decl): Don't check
7009 TYPE_NEEDS_CONSTRUCTING.
7011 2011-07-06 Richard Guenther <rguenther@suse.de>
7013 * c-common.c (c_common_nodes_and_builtins):
7014 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
7016 2011-07-05 Richard Guenther <rguenther@suse.de>
7018 * c-common.c (c_common_nodes_and_builtins): Build all common
7021 2011-06-27 Jakub Jelinek <jakub@redhat.com>
7023 * c-common.h (c_tree_chain_next): New static inline function.
7025 * c-common.c (check_builtin_function_arguments): Handle
7026 BUILT_IN_ASSUME_ALIGNED.
7028 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
7030 * c-common.c: Add sync_ or SYNC__ to builtin names.
7031 * c-omp.c: Add sync_ or SYNC__ to builtin names.
7033 2011-06-20 Pierre Vittet <piervit@pvittet.com>
7035 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
7037 (gen_pragma_handler): New union.
7038 (internal_pragma_handler): New type.
7039 (c_register_pragma_with_data)
7040 (c_register_pragma_with_expansion_and_data): New functions.
7042 * c-pragma.c (registered_pragmas, c_register_pragma_1)
7043 (c_register_pragma, c_register_pragma_with_expansion)
7044 (c_invoke_pragma_handler): Changed to work with
7045 internal_pragma_handler.
7046 (c_register_pragma_with_data)
7047 (c_register_pragma_with_expansion_and_data): New functions.
7049 2011-06-14 Joseph Myers <joseph@codesourcery.com>
7051 * c-common.c: Include common/common-target.h.
7052 (handle_section_attribute): Use
7053 targetm_common.have_named_sections.
7054 * c-cppbuiltin.c: Include common/common-target.h.
7055 (c_cpp_builtins): Use targetm_common.except_unwind_info.
7057 2011-06-10 Richard Guenther <rguenther@suse.de>
7059 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
7060 to print a IDENTIFIER_NODE.
7062 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7063 Joseph Myers <joseph@codesourcery.com>
7065 * c.opt (fbuilding-libgcc): New option.
7066 * c-cppbuiltin.c (c_cpp_builtins): Define
7067 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
7069 2011-06-07 Jason Merrill <jason@redhat.com>
7071 * c-common.c (max_tinst_depth): Lower default to 900.
7073 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
7075 2011-06-07 Richard Guenther <rguenther@suse.de>
7077 * c-common.c (c_common_nodes_and_builtins): Do not set
7078 size_type_node or call set_sizetype.
7080 2011-06-07 Dodji Seketeli <dodji@redhat.com>
7083 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
7084 type when using pointer comparison to compare types.
7086 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
7088 * c.opt: Add -Wdelete-non-virtual-dtor.
7089 * c-opts.c (c_common_handle_option): Include it in -Wall.
7091 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
7096 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7098 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
7101 2011-05-27 Jakub Jelinek <jakub@redhat.com>
7104 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
7105 C++ don't call c_common_truthvalue_conversion on void type arms.
7107 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
7109 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
7110 (stmt_list_stack): Define.
7111 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
7112 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
7114 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7116 * c-common.c (warning_candidate_p): Check for BLOCKs.
7118 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7120 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
7123 2011-05-25 Jakub Jelinek <jakub@redhat.com>
7125 * c-common.c (def_fn_type): Remove extra va_end.
7127 2011-05-23 Jason Merrill <jason@redhat.com>
7130 * c-common.c (c_common_get_narrower): New.
7131 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
7133 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
7135 * c-common.h (check_function_arguments): Tweak prototype of
7136 check_function_arguments.
7137 * c-common.c (check_function_arguments): Likewise. Adjust
7138 calls to check_function_nonnull, check_function_format, and
7139 check_function_sentinel.
7140 (check_function_sentinel): Take a FUNCTION_TYPE rather than
7141 separate attributes and typelist arguments. Use
7142 FOREACH_FUNCTION_ARGS to iterate over argument types.
7144 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
7146 * c-common.c (c_common_reswords): Reorder.
7147 * c-common.h (rid): Likewise.
7149 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
7151 * c-common.c (def_fn_type): Don't call build_function_type, call
7152 build_function_type_array or build_varargs_function_type_array
7154 (c_common_nodes_and_builtins): Likewise.
7156 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
7158 * c-common.c (c_add_case_label): Omit the loc argument to
7160 * c-common.h (build_case_label): Remove.
7161 * c-semantics.c (build_case_label): Remove.
7163 2011-05-05 Joseph Myers <joseph@codesourcery.com>
7165 * c-objc.h (objc_start_method_definition): Update prototype.
7166 * stub-objc.c (objc_start_method_definition): Add extra parameter.
7168 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
7170 * c-common.c (check_main_parameter_types): Reindent. Don't use
7171 TYPE_ARG_TYPES directly.
7172 (handle_nonnull_attribute): Likewise.
7173 (sync_resolve_params): Likewise.
7174 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
7175 to check_format_string.
7176 (handle_format_attribute): Likewise.
7177 (check_format_string): Take a function type to examine instead of
7178 a type list. Use a function_arg_iterator to step through argument
7181 2011-05-04 Richard Guenther <rguenther@suse.de>
7183 * c-common.c (fix_string_type): Use size_int for index type bounds.
7184 (start_fname_decls): Do not pass NULL to build_int_cst.
7185 (c_init_attributes): Likewise.
7186 * c-lex.c (c_lex_with_flags): Likewise.
7188 2011-04-27 Jason Merrill <jason@redhat.com>
7190 * c-common.c (make_tree_vector_from_list): New.
7191 * c-common.h: Declare it.
7193 2011-04-26 Richard Guenther <rguenther@suse.de>
7195 PR preprocessor/48248
7196 * c-ppoutput.c (maybe_print_line): Always optimize newlines
7197 for output size with -P.
7199 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
7201 * c-common.c (struct c_common_resword): Add __underlying_type.
7202 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
7204 2011-04-20 Jim Meyering <meyering@redhat.com>
7206 * c-format.c (init_dollar_format_checking): Remove useless
7209 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
7211 * c-objc.h (objc_get_interface_ivars): Removed.
7212 (objc_detect_field_duplicates): New.
7213 * stub-objc.c: Likewise.
7215 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7217 * stub-objc.c (objc_declare_protocols): Renamed to
7218 objc_declare_protocol.
7219 * c-objc.h: Likewise.
7221 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7223 * stub-objc.c (objc_declare_class): Updated argument name.
7225 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7227 * c-common.h (c_common_init_ts): Declare.
7228 * c-common.c (c_common_init_ts): Define.
7230 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7232 * c-objc.h (objc_build_message_expr): Updated prototype.
7233 * stub-objc.c (objc_build_message_expr): Likewise.
7235 2011-04-12 Martin Jambor <mjambor@suse.cz>
7237 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
7240 2011-04-11 Richard Guenther <rguenther@suse.de>
7242 * c-common.c (complete_array_type): Build a range type of
7245 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7247 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
7248 (handle_type_generic_attribute): Likewise.
7250 2011-04-07 Jason Merrill <jason@redhat.com>
7253 * c-common.c (c_common_truthvalue_conversion): Don't ignore
7254 conversion from C++0x scoped enum.
7256 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7258 * c-target-def.h: New file.
7259 * c-target.def: New file.
7260 * c-target.h: New file.
7261 * c-common.c (targetcm): Don't define here.
7262 * c-common.h (default_handle_c_option): Declare.
7263 * c-format.c: Include c-target.h instead of target.h.
7264 * c-opts.c: Include c-target.h instead of target.h. Explicitly
7266 (default_handle_c_option): Move from targhooks.c.
7268 2011-03-29 Jakub Jelinek <jakub@redhat.com>
7270 PR preprocessor/48248
7271 * c-ppoutput.c (print): Add src_file field.
7272 (init_pp_output): Initialize it.
7273 (maybe_print_line): Don't optimize by adding up to 8 newlines
7274 if map->to_file and print.src_file are different file.
7275 (print_line): Update print.src_file.
7277 2011-03-25 Kai Tietz <ktietz@redhat.com>
7279 * c-ada-spec.c (compare_comment): Use filename_cmp
7280 instead of strcmp for filename.
7282 2011-03-25 Jeff Law <law@redhat.com>
7284 * c-common.c (def_fn_type): Add missing va_end.
7286 2011-03-25 Jason Merrill <jason@redhat.com>
7288 * c.opt: Add -std=c++03.
7290 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
7292 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
7294 2011-03-17 Kai Tietz <ktietz@redhat.com>
7297 * c-pretty-print.c (pp_c_specifier_qualifier_list):
7298 Display allowed attributes for function pointer types.
7299 (pp_c_attributes_display): New function to display
7300 attributes having affects_type_identity flag set to true.
7301 * c-pretty-print.h (pp_c_attributes_display): New prototype.
7303 * c-common.c (c_common_attribute_table):
7305 (c_common_format_attribute_table): Likewise.
7307 2011-03-18 Jason Merrill <jason@redhat.com>
7309 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
7310 * c-common.h: Don't declare it here.
7311 * c-common.c: Or define it here.
7312 * c-opts.c (c_common_handle_option): Or set it here.
7315 * c-common.c (handle_transparent_union_attribute): Don't
7316 make a duplicate type in C++.
7318 2011-03-15 Jason Merrill <jason@redhat.com>
7320 * c-common.c (max_constexpr_depth): New.
7321 * c-common.h: Declare it.
7322 * c-opts.c (c_common_handle_option): Set it.
7323 * c.opt (fconstexpr-depth): New option.
7325 2011-03-11 Jason Merrill <jason@redhat.com>
7327 * c-common.c (attribute_takes_identifier_p): Add missing const.
7330 * c-common.c (attribute_takes_identifier_p): Assume that an
7331 unknown attribute takes an identifier.
7333 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
7336 * c-common.c (c_type_hash): Call list_length instead of iterating
7337 through DECL_CHAIN. Rename 'i' to 'n_elements'.
7339 2011-02-19 Jakub Jelinek <jakub@redhat.com>
7342 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
7344 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
7346 * c.opt (fobjc-abi-version=) New.
7347 (fobjc-nilcheck): New.
7349 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
7352 * c-common.h (keyword_is_decl_specifier): Declare.
7353 * c-common.c (keyword_is_decl_specifier): Define.
7354 (keyword_is_function_specifier): New function.
7356 2011-01-26 Jakub Jelinek <jakub@redhat.com>
7359 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
7360 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
7363 2011-01-26 Arnaud Charlet <charlet@adacore.com>
7365 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
7367 2011-01-26 Jakub Jelinek <jakub@redhat.com>
7370 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
7371 after init_c_lex if pch_file is set.
7373 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
7376 * c.opt (-fkeep-inline-dllexport): New switch.
7378 2011-01-12 Richard Guenther <rguenther@suse.de>
7381 * c-common.c (handle_weak_attribute): Warn instead of error
7382 on declaring an inline function weak.
7384 2011-01-05 Tom Tromey <tromey@redhat.com>
7386 * c-common.h (lvalue_error): Update.
7387 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
7390 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
7393 * c-objc.h (objc_finish_message_expr): Added argument to
7396 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
7398 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
7401 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
7403 * c-objc.h (objc_maybe_warn_exceptions): New.
7404 * stub-objc.c (objc_maybe_warn_exceptions): New.
7406 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
7408 * c-common.h (readonly_error): Declare.
7409 * c-common.c (readonly_error): Define.
7411 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
7413 * c-common.h (invalid_indirection_error): Declare.
7414 * c-common.c (invalid_indirection_error): Define.
7416 2010-12-03 Richard Guenther <rguenther@suse.de>
7419 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
7420 (pp_c_unary_expression): Likewise.
7421 (pp_c_expression): Likewise.
7423 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
7425 * c-common.h (objc_finish_function): New.
7426 (objc_non_volatilized_type): Removed.
7427 (objc_type_quals_match): Removed.
7428 * stub-objc.c (objc_finish_function): New.
7429 (objc_non_volatilized_type): Removed.
7430 (objc_type_quals_match): Removed.
7432 2010-11-30 Joseph Myers <joseph@codesourcery.com>
7434 * c-common.h (parse_optimize_options): Declare.
7435 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
7436 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
7438 2010-11-29 Joseph Myers <joseph@codesourcery.com>
7440 * c-opts.c (check_deps_environment_vars): Use getenv instead of
7442 * c-pch.c (O_BINARY): Don't define here.
7443 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
7445 2010-11-25 Joseph Myers <joseph@codesourcery.com>
7447 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
7448 targetm.except_unwind_info.
7450 2010-11-23 Joseph Myers <joseph@codesourcery.com>
7452 * c-opts.c (c_common_handle_option): Pass location to
7453 set_struct_debug_option.
7455 2010-11-23 Joseph Myers <joseph@codesourcery.com>
7457 * c-common.c (visibility_options): Move from ../opts.c.
7458 * c-common.h (struct visibility_flags, visibility_options):
7460 * c-opts.c (finish_options): Rename to c_finish_options.
7461 (c_common_init): Update call to finish_options.
7463 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
7466 * c-lex.c (lex_string): Check that each string in an Objective-C
7467 string concat sequence starts with either one or zero '@', and
7468 that there are no spurious '@' signs at the end.
7470 2010-11-20 Joseph Myers <joseph@codesourcery.com>
7472 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
7473 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
7474 HANDLE_PRAGMA_VISIBILITY.
7475 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
7476 HANDLE_PRAGMA_VISIBILITY): Don't define.
7477 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
7479 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
7484 * c-common.h (keyword_begins_type_specifier): Declare.
7485 (keyword_is_storage_class_specifier): Declare.
7486 (keyword_is_type_qualifier): Declare.
7487 * c-common.c (keyword_begins_type_specifier): New function.
7488 (keyword_is_storage_class_specifier): New function.
7489 (keyword_is_type_qualifier): Declare.
7491 2010-11-19 Joseph Myers <joseph@codesourcery.com>
7494 * c-common.c (in_late_binary_op): Define.
7495 (c_common_truthvalue_conversion): Check in_late_binary_op before
7496 calling c_save_expr.
7497 * c-common.h (in_late_binary_op): Declare.
7499 2010-11-19 Joseph Myers <joseph@codesourcery.com>
7501 * c-opts.c (c_common_handle_option): Update calls to
7502 set_struct_debug_option.
7504 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
7506 * c-common.h (objc_declare_protocols): Added additional argument.
7507 * stub-objc.c (objc_declare_protocol): Same change.
7509 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
7512 * c-common.h (build_real_imag_expr): Declare.
7513 * c-semantics.c (build_real_imag_expr): Define.
7515 2010-11-17 Joseph Myers <joseph@codesourcery.com>
7517 * c-opts.c (c_common_parse_file): Take no arguments.
7518 * c-common.h (c_common_parse_file): Update prototype.
7520 2010-11-16 Jakub Jelinek <jakub@redhat.com>
7523 * c-common.c (warning_candidate_p): Don't track non-const calls
7526 2010-11-15 Ian Lance Taylor <iant@google.com>
7528 * c-lex.c (init_c_lex): Set macro debug callbacks if
7529 flag_dump_go_spec is set.
7531 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
7533 * c-common.h (objc_build_incr_expr_for_property_ref): New.
7534 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
7536 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
7538 PR preprocessor/45038
7539 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
7542 2010-11-12 Joseph Myers <joseph@codesourcery.com>
7544 * c-common.h (c_family_lang_mask): Declare.
7545 * c-opts.c (c_family_lang_mask): Make extern.
7546 * c-pragma.c (handle_pragma_diagnostic): Use
7547 control_warning_option.
7549 2010-11-12 Joseph Myers <joseph@codesourcery.com>
7551 * c-common.c (parse_optimize_options): Update call to
7553 * c-common.h (c_common_handle_option): Update prototype.
7554 * c-opts.c (c_common_handle_option): Take location_t parameter and
7555 pass it to other functions.
7557 2010-11-11 Joseph Myers <joseph@codesourcery.com>
7559 * c-opts.c (warning_as_error_callback): Remove.
7560 (c_common_initialize_diagnostics): Don't call
7561 register_warning_as_error_callback.
7562 (c_common_handle_option): Handle -Werror=normalized= here.
7564 2010-11-10 Joseph Myers <joseph@codesourcery.com>
7566 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
7568 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
7570 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
7571 Remove trailing '.' from diagnostics.
7572 * c.opt (Wwrite-strings_: Avoid '`' in help text.
7574 2010-11-10 Joseph Myers <joseph@codesourcery.com>
7576 * c-common.c (parse_optimize_options): Pass global_dc to
7578 * c-opts.c (c_common_handle_option): Pass &global_options to
7579 set_Wstrict_aliasing.
7580 * c.opt (v): Don't mark Common or document here.
7582 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
7585 * c-format.c (format_type): New type gcc_objc_string_format_type.
7586 (valid_stringptr_type_p): New.
7587 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
7588 (check_format_string): Pass expected type, use
7589 valid_stringptr_type_p (), check that the format string types are
7590 consistent with the format specification.
7591 (decode_format_attr): Warn if NSString is used outside objective-c.
7592 (format_types_orig): Add NSString.
7594 (format_flags): New.
7595 (check_format_arg): Handle format strings requiring an external parser.
7596 first_target_format_type: New variable.
7597 (handle_format_attribute): Set up first_target_format_type, pass the
7598 expected format arg string type to check_format_string().
7599 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
7600 * stub-objc.c (objc_string_ref_type_p): New.
7601 (objc_check_format_arg): New.
7603 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
7605 Fixed using the Objective-C 2.0 dot-syntax with class names.
7606 * c-common.h (objc_build_class_component_ref): New.
7607 * stub-objc.c (objc_build_class_component_ref): New.
7609 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
7611 * c.opt (Wproperty-assign-default): New option.
7613 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
7615 Implemented -fobjc-std=objc1 flag.
7616 * c.opt (fobjc-std=objc1): New option.
7618 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
7620 Implemented format and noreturn attributes for Objective-C methods.
7621 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
7622 attribute for Objective-C methods.
7624 2010-10-31 Jason Merrill <jason@redhat.com>
7626 * c-common.c (conversion_warning, warn_for_collisions_1): Use
7629 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
7631 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
7632 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
7633 (objc_add_property_declaration): Removed arguments for copies and
7635 (objc_build_getter_call): Renamed to
7636 objc_maybe_build_component_ref.
7637 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
7638 (objc_is_property_ref): New.
7639 * c-common.c (c_common_reswords): Removed copies and ivar.
7640 * stub-objc.c (objc_add_property_declaration): Removed arguments
7641 for copies and ivar.
7642 (objc_build_getter_call): Renamed to
7643 objc_maybe_build_component_ref.
7644 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
7645 (objc_is_property_ref): New.
7647 2010-10-29 Arnaud Charlet <charlet@adacore.com>
7648 Matthew Gingell <gingell@adacore.com>
7650 * c-ada-spec.c (separate_class_package): New function.
7651 (pp_ada_tree_identifier): Prefix references to C++ classes with the
7652 name of their enclosing package.
7653 (print_ada_declaration): Use separate_class_package.
7655 2010-10-27 Jason Merrill <jason@redhat.com>
7657 * c-common.c (c_common_reswords): Add __is_literal_type.
7658 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
7660 * c-common.c (check_case_value): Remove special C++ code.
7662 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
7664 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
7665 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
7667 (objc_add_property_declaration): Added additional arguments.
7668 (objc_property_attribute_kind): Removed.
7669 (objc_set_property_attr): Removed.
7670 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
7672 * stub-objc.c (objc_add_property_declaration): Added additional
7674 (objc_set_property_attr): Removed.
7676 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
7678 * c-common.h (objc_add_property_variable): Renamed to
7679 objc_add_property_declaration. Added location argument.
7680 * stub-objc.c (objc_add_property_variable): Same change.
7682 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
7684 * c-common.h (objc_maybe_printable_name): New.
7685 * stub-objc.c (objc_maybe_printable_name): New.
7687 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
7688 Andrew Pinski <pinskia@gmail.com>
7690 * c-common.h (c_common_mark_addressable_vec): Declare.
7691 * c-common.c (c_common_mark_addressable_vec): New function.
7693 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
7695 * c-common.h (objc_set_method_type): Removed.
7696 (objc_add_method_declaration): Added boolean argument.
7697 (objc_start_method_definition): Same change.
7698 (objc_build_method_signature): Same change.
7699 * stub-objc.c (objc_set_method_type): Removed.
7700 (objc_add_method_declaration): Added boolean argument.
7701 (objc_start_method_definition): Same change.
7702 (objc_build_method_signature): Same change.
7704 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
7706 * c-common.h (finish_file): Removed.
7707 (objc_write_global_declarations): New.
7708 * c-opts.c (c_common_parse_file): Do not call finish_file.
7709 * stub-objc.c (objc_write_global_declarations): New.
7711 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
7713 Implemented parsing @synthesize and @dynamic for
7714 Objective-C/Objective-C++.
7715 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
7716 (objc_add_synthesize_declaration): New.
7717 (objc_add_dynamic_declaration): New.
7718 * c-common.c (c_common_reswords): Add synthesize and dynamic.
7719 * stub-objc.c (objc_add_synthesize_declaration): New.
7720 (objc_add_dynamic_declaration): New.
7722 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
7725 * c-cppbuiltin.c (mode_has_fma): Move function here from
7726 builtins.c. Don't use the fma optab, instead just use the
7727 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
7730 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
7732 Merge from 'apple/trunk' branch on FSF servers.
7734 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
7737 * c-common.h (objc_non_volatilized_type): New declaration
7738 * stub-objc.c (objc_non_volatilized_type): New stub.
7740 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
7742 Merge from 'apple/trunk' branch on FSF servers.
7744 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
7747 * c-common.h (objc_diagnose_private_ivar): New decl.
7748 * stub-objc.c (objc_diagnose_private_ivar): New stub.
7750 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
7752 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
7753 * c-common.h (enum rid): Add RID_AT_PACKAGE.
7754 (objc_ivar_visibility_kind): New enum.
7755 (objc_set_visibility): Adjust prototype to use visibility enum.
7756 * stub-objc.c (objc_set_visibility): Adjust stub to use
7759 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7761 * c-cppbuiltin.c (builtin_define_float_constants): Emit
7762 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
7763 has the appropriate fma builtins.
7764 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
7766 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
7768 merge from FSF apple 'trunk' branch.
7769 2006 Fariborz Jahanian <fjahanian@apple.com>
7771 Radars 4436866, 4505126, 4506903, 4517826
7772 * c-common.c (c_common_resword): Define @property and its attributes.
7773 * c-common.h: Define property attribute enum entries.
7774 (OBJC_IS_PATTR_KEYWORD): New.
7775 (objc_property_attribute_kind): New enum.
7776 Declare objc_set_property_attr (), objc_add_property_variable (),
7777 objc_build_getter_call () and objc_build_setter_call ().
7778 * stub-objc.c (objc_set_property_attr): New stub.
7779 (objc_add_property_variable): Likewise.
7780 (objc_build_getter_call): Likewise.
7781 (objc_build_setter_call) Likewise.
7783 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
7785 merge from FSF apple 'trunk' branch.
7786 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
7788 Radar 3803157 (method attributes)
7789 * c-common.c (handle_deprecated_attribute): Recognize
7790 objc methods as valid declarations.
7791 * c-common.h: Declare objc_method_decl ().
7792 * stub-objc.c (objc_method_decl): New stub.
7794 2010-10-08 Joseph Myers <joseph@codesourcery.com>
7796 * c-common.c (parse_optimize_options): Call
7797 decode_cmdline_options_to_array_default_mask before
7798 decode_options. Update arguments to decode_options.
7799 * c-common.h (c_common_init_options_struct): Declare.
7800 * c-opts.c (c_common_init_options_struct): New. Split out from
7801 c_common_init_options.
7803 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
7805 Implemented fast enumeration for Objective-C.
7806 * c-common.h (objc_finish_foreach_loop): New.
7807 * stub-objc.c (objc_finish_foreach_loop): New.
7809 2010-10-05 Joseph Myers <joseph@codesourcery.com>
7811 * c-common.h (struct diagnostic_context): Don't declare here.
7812 (c_common_initialize_diagnostics): Declare using
7813 diagnostic_context typedef.
7814 * c-opts.c (c_common_handle_option): Pass global_dc to
7815 handle_generated_option.
7817 2010-10-04 Joseph Myers <joseph@codesourcery.com>
7819 * c-opts.c (c_common_handle_option): Pass &global_options_set to
7820 handle_generated_option.
7822 2010-10-03 Ian Lance Taylor <iant@google.com>
7824 * c.opt (-fplan9-extensions): New option.
7826 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7828 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
7830 (c_cpp_builtins): Call functions from cppbuiltin.c instead
7831 of duplicating code.
7833 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
7835 * c-common.c: Add two new entries for @optional
7836 and @required keywords.
7838 merge from FSF 'apple/trunk' branch.
7839 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
7842 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
7843 objective-c keywords.
7844 (objc_set_method_opt): New declaration.
7845 * stub-objc.c (objc_set_method_opt): New stub.
7847 2010-09-30 Joseph Myers <joseph@codesourcery.com>
7849 * c-common.c (handle_optimize_attribute): Pass &global_options to
7850 cl_optimization_save and cl_optimization_restore.
7851 * c-opts.c (c_common_handle_option): Pass &global_options to
7852 handle_generated_option.
7853 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
7854 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
7855 &global_options to cl_optimization_restore.
7857 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
7859 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
7860 Objective-C/Objective-C++ keywords.
7862 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
7864 Merge from 'apple/trunk' branch on FSF servers.
7866 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
7869 * c-common.h (objc_check_global_decl): New declaration.
7870 * stub-objc.c (objc_check_global_decl): New stub.
7872 2010-09-29 Joseph Myers <joseph@codesourcery.com>
7874 * c.opt: Don't use VarExists.
7876 2010-09-29 Joseph Myers <joseph@codesourcery.com>
7878 * c-common.c (c_cpp_error): Update names of diagnostic_context
7880 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
7881 cl_optimization members.
7882 * c-opts.c (warning_as_error_callback, c_common_handle_option,
7883 sanitize_cpp_opts, finish_options): Update names of cpp_options
7886 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
7888 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
7889 (objc_is_reserved_word): Removed.
7890 * c-common.c: Updated comments.
7891 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
7892 objc_is_reserved_word.
7893 * stub-objc.c (objc_is_reserved_word): Removed.
7895 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
7897 * c-common.h (objc_add_method_declaration): Adjust prototype to
7899 (objc_start_method_definition): Likewise.
7900 (objc_build_keyword_decl): Likewise.
7901 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
7902 (objc_start_method_definition): Likewise.
7903 (objc_build_keyword_decl): Likewise.
7905 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
7907 * c-common.h (objc_start_class_interface): Adjust prototype.
7908 (objc_start_category_interface): Likewise.
7909 (objc_start_protocol): Likewise.
7910 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
7911 (objc_start_class_interface): Likewise.
7912 (objc_start_category_interface): Likewise.
7914 2010-09-27 Ian Lance Taylor <iant@google.com>
7916 * c-common.c (c_common_attribute_table): Add no_split_stack.
7917 (handle_no_split_stack_attribute): New static function.
7919 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
7921 Merge from 'apple/trunk' branch on FSF servers.
7923 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
7926 * c-common.h (objc_have_common_type): New declaration.
7927 * stub-objc.c (objc_have_common_type): New stub.
7929 2005-06-22 Ziemowit Laski <zlaski@apple.com>
7932 * c-common.h (objc_common_type): New prototype.
7933 * stub-objc.c (objc_common_type): New stub.
7935 2010-09-24 Jan Hubicka <jh@suse.cz>
7937 * c-common.c (handle_leaf_attribute): New function.
7938 (struct attribute_spec c_common_att): Add leaf.
7940 2010-09-22 Joseph Myers <joseph@codesourcery.com>
7942 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
7943 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
7944 -dump, -dump=, -imacros, -imacros=, -include, -include=,
7945 -include-barrier, -include-directory, -include-directory=,
7946 -include-directory-after, -include-directory-after=,
7947 -include-prefix, -include-prefix=, -include-with-prefix,
7948 -include-with-prefix=, -include-with-prefix-after,
7949 -include-with-prefix-after=, -include-with-prefix-before,
7950 -include-with-prefix-before=, -no-integrated-cpp,
7951 -no-line-commands, -no-standard-includes, -no-warnings, -output,
7952 -output=, -pedantic, -pedantic-errors, -preprocess,
7953 -print-missing-file-dependencies, -trace-includes, -traditional,
7954 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
7955 -user-dependencies, -verbose, -write-dependencies,
7956 -write-user-dependencies, no-integrated-cpp, traditional): New.
7958 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
7961 * c-common.h (objc_start_method_definition): Return bool instead
7963 * stub-objc.c (objc_start_method_definition): Return bool instead
7966 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
7969 * c-common.h (objc_get_interface_ivars): New declaration.
7970 * stub-objc.c (objc_get_interface_ivars): New stub.
7972 2010-09-15 Ian Lance Taylor <iant@google.com>
7974 * c-common.c (parse_optimize_options): Do not capitalize warning
7975 messages. Remove period at end of warning message.
7977 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
7979 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
7980 (handle_alias_attribute): ... here.
7981 (handle_ifunc_attribute): New.
7983 2010-09-06 Mark Mitchell <mark@codesourcery.com>
7985 * c-common.h (do_warn_double_promotion): Declare.
7986 * c-common.c (do_warn_double_promotion): Define.
7988 2010-09-05 Mark Mitchell <mark@codesourcery.com>
7990 * c.opt (Wdouble-promotion): New.
7992 2010-09-02 Joseph Myers <joseph@codesourcery.com>
7994 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
7995 fvtable-thunks, fxref): Mark no longer supported in help text.
7997 2010-09-02 Joseph Myers <joseph@codesourcery.com>
7999 * c.opt (Wimport, fall-virtual, falt-external-templates,
8000 fdefault-inline, fenum-int-equiv, fexternal-templates,
8001 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
8002 fname-mangling-version-, fnew-abi, fnonnull-objects,
8003 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
8004 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
8006 (fhandle-exceptions): Mark with Alias and Warn.
8007 * c-opts.c (c_common_handle_option): Don't handle options marked
8010 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8012 * c.opt (Wcomments, Werror-implicit-function-declaration,
8013 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
8014 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
8016 * c-common.c (option_codes): Use OPT_Wcomment instead of
8018 * c-opts.c (warning_as_error_callback, c_common_handle_option):
8019 Don't handle options marked as aliases.
8021 2010-08-25 Richard Guenther <rguenther@suse.de>
8023 * c-common.c (c_common_get_alias_set): Remove special
8024 handling for pointers.
8026 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
8028 * c-common.c: Use FOR_EACH_VEC_ELT.
8029 * c-gimplify.c: Likewise.
8030 * c-pragma.c: Likewise.
8032 2010-08-16 Joseph Myers <joseph@codesourcery.com>
8034 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
8036 (MMDX): Change back to MMD. Mark NoDriverArg instead of
8038 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
8039 instead of OPT_MDX and OPT_MMDX.
8041 2010-08-16 Joseph Myers <joseph@codesourcery.com>
8043 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
8045 2010-08-12 Joseph Myers <joseph@codesourcery.com>
8047 * c.opt (MD, MMD): Change to MDX and MMDX.
8048 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
8050 2010-08-11 Joseph Myers <joseph@codesourcery.com>
8052 * c-opts.c (c_common_handle_option): Call handle_generated_option
8053 instead of handle_option.
8055 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
8057 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
8058 (maybe_apply_renaming_pragma): Delete unneeded declarations.
8060 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
8062 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
8063 (pending_redefine_extname): Change type to a VEC.
8064 (add_to_renaming_pragma_list): Update for new type of
8065 pending_redefine_extname.
8066 (maybe_apply_renaming_pragma): Likewise.
8068 2010-08-04 Arnaud Charlet <charlet@adacore.com>
8070 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
8072 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
8073 decide whether a type has already been declared/seen.
8074 Do not go to the original type.
8075 (dump_nested_types): New parameter forward.
8076 Generate forward declaration if needed and mark type as visited.
8077 (print_ada_declaration): Call dump_nested_types if not already done.
8078 Mark types as visited.
8080 2010-08-03 Joseph Myers <joseph@codesourcery.com>
8082 * c.opt (-print-pch-checksum): Remove option.
8083 * c-opts.c (c_common_handle_option): Don't handle
8084 OPT_print_pch_checksum.
8086 2010-07-27 Joseph Myers <joseph@codesourcery.com>
8088 * c-common.h (c_common_handle_option): Update prototype and return
8090 * c-opts.c (c_common_handle_option): Update prototype and return
8091 value type. Update calls to handle_option and
8092 enable_warning_as_error.
8094 2010-07-27 Jakub Jelinek <jakub@redhat.com>
8097 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
8099 2010-07-27 Joseph Myers <joseph@codesourcery.com>
8101 * c-common.h (c_common_missing_argument): Remove.
8102 * c-opts.c (c_common_missing_argument): Remove.
8103 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
8104 idirafter, imacros, include, isysroot, isystem, iquote): Add
8106 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
8108 2010-07-27 Joseph Myers <joseph@codesourcery.com>
8110 * c-common.h (c_common_option_lang_mask,
8111 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
8113 (c_common_init_options): Update prototype.
8114 * c-opts.c (c_common_option_lang_mask): New.
8115 (c_common_initialize_diagnostics): Split out of
8116 c_common_init_options.
8117 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
8119 (c_common_init_options): Update prototype. Use decoded options in
8120 search for -lang-asm.
8122 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
8124 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
8125 * c-format.c: Likewise.
8127 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
8129 * c-common.h: Include diagnostic-core.h. Error if already
8131 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
8133 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
8135 * c-common.c (IN_GCC_FRONTEND): Do not undef.
8136 Do not include expr.h
8137 (vector_mode_valid_p): Move here.
8139 2010-06-21 DJ Delorie <dj@redhat.com>
8141 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
8142 allow these pragmas anywhere.
8144 2010-06-14 Jakub Jelinek <jakub@redhat.com>
8147 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
8148 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
8149 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
8150 ggc_strdup instead of xstrdup.
8152 2010-06-10 Jakub Jelinek <jakub@redhat.com>
8154 * c-cppbuiltin.c: Include cpp-id-data.h.
8155 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
8156 (lazy_hex_fp_value): New function.
8157 (builtin_define_with_hex_fp_value): Provide definitions lazily.
8159 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
8161 * c-gimplify.c: Do not include tree-flow.h
8163 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
8166 * c-common.c: Rename targetm member:
8167 targetm.enum_va_list -> targetm.enum_va_list_p
8169 2010-06-28 Anatoly Sokolov <aesok@post.ru>
8171 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
8173 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
8175 * c-cppbuiltin.c: Do not include except.h.
8177 2010-06-24 Andi Kleen <ak@linux.intel.com>
8179 * c-common.c (warn_for_omitted_condop): New.
8180 * c-common.h (warn_for_omitted_condop): Add prototype.
8182 2010-06-21 Joseph Myers <joseph@codesourcery.com>
8184 * c.opt (lang-objc): Remove.
8185 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
8187 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
8189 * c-opts.c: Include "tm_p.h".
8191 2010-06-20 Joseph Myers <joseph@codesourcery.com>
8193 * c-common.c (parse_optimize_options): Update call to
8196 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
8198 * c-common.c (record_types_used_by_current_var_decl): Adjust for
8199 new type of types_used_by_cur_var_decl.
8201 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
8204 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
8205 for C++ standard compliance.
8207 2010-06-16 Jason Merrill <jason@redhat.com>
8209 * c.opt: Add -Wnoexcept.
8211 2010-06-16 Richard Guenther <rguenther@suse.de>
8214 * c-common.c (c_common_truthvalue_conversion): Remove
8215 premature and wrong optimization concering ADDR_EXPRs.
8217 2010-06-15 Arnaud Charlet <charlet@adacore.com>
8219 * c-ada-spec.c (dump_sloc): Remove column info.
8220 (is_simple_enum): New function.
8221 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
8222 enum types when relevant.
8224 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8226 * c-common.c (conversion_warning): Warn at expression
8229 2010-06-10 Joseph Myers <joseph@codesourcery.com>
8231 * c-opts.c (c_common_handle_option): Don't handle
8234 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8236 * c-pragma.c (push_alignment): Use typed GC allocation.
8237 (handle_pragma_push_options): Likewise.
8239 * c-common.c (parse_optimize_options): Likewise.
8241 * c-common.h (struct sorted_fields_type): Add variable_size GTY
8244 2010-06-07 Joseph Myers <joseph@codesourcery.com>
8246 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
8247 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
8248 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
8249 flag_signed_bitfields, warn_strict_null_sentinel,
8250 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
8251 flag_gen_declaration, flag_no_gnu_keywords,
8252 flag_implement_inlines, flag_implicit_templates,
8253 flag_implicit_inline_templates, flag_optional_diags,
8254 flag_elide_constructors, flag_default_inline, flag_rtti,
8255 flag_conserve_space, flag_access_control, flag_check_new,
8256 flag_new_for_scope, flag_weak, flag_working_directory,
8257 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
8258 flag_enforce_eh_specs, flag_threadsafe_statics,
8259 flag_pretty_templates): Remove.
8260 * c-common.h (flag_preprocess_only, flag_nil_receivers,
8261 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
8262 flag_replace_objc_classes, flag_undef, flag_no_builtin,
8263 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
8264 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
8265 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
8266 flag_no_gnu_keywords, flag_implement_inlines,
8267 flag_implicit_templates, flag_implicit_inline_templates,
8268 flag_optional_diags, flag_elide_constructors, flag_default_inline,
8269 flag_rtti, flag_conserve_space, flag_access_control,
8270 flag_check_new, flag_new_for_scope, flag_weak,
8271 flag_working_directory, flag_use_cxa_atexit,
8272 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
8273 flag_threadsafe_statics, flag_pretty_templates,
8274 warn_strict_null_sentinel): Remove.
8275 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
8276 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
8277 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
8278 fimplicit-inline-templates, fimplicit-templates,
8279 flax-vector-conversions, fms-extensions, fnil-receivers,
8280 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
8281 frtti, fshort-double, fshort-enums, fshort-wchar,
8282 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
8283 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
8284 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
8285 gen-decls, undef): Use Var.
8286 (fdefault-inline, foptional-diags): Document as doing nothing.
8287 * c-opts.c (c_common_handle_option): Remove cases for options now
8288 using Var. Mark ignored options as such.
8290 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
8292 * c-common.c: Moved to here from parent directory.
8293 * c-common.def: Likewise.
8294 * c-common.h: Likewise.
8295 * c-cppbuiltin.c: Likewise.
8296 * c-dump.c: Likewise.
8297 * c-format.c: Likewise.
8298 * c-format.h : Likewise.
8299 * c-gimplify.c: Likewise.
8300 * c-lex.c: Likewise.
8301 * c-omp.c: Likewise.
8303 * c-opts.c: Likewise.
8304 * c-pch.c: Likewise.
8305 * c-ppoutput.c: Likewise.
8306 * c-pragma.c: Likewise.
8307 * c-pragma.h: Likewise.
8308 * c-pretty-print.c: Likewise.
8309 * c-pretty-print.h: Likewise.
8310 * c-semantics.c: Likewise.
8311 * stub-objc.c: Likewise.
8313 * c-common.c: Include gt-c-family-c-common.h.
8314 * c-pragma.c: Include gt-c-family-c-pragma.h.
8316 Copyright (C) 2010-2017 Free Software Foundation, Inc.
8318 Copying and distribution of this file, with or without modification,
8319 are permitted in any medium without royalty provided the copyright
8320 notice and this notice are preserved.