1 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3 * c-lex.c (interpret_float): Use real_equal instead of
6 2015-10-04 Jason Merrill <jason@redhat.com>
8 Implement N4514, C++ Extensions for Transactional Memory.
9 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
10 (c_common_attribute_table): Add transaction_safe_dynamic.
11 transaction_safe now affects type identity.
12 (handle_tm_attribute): Handle transaction_safe_dynamic.
13 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
14 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
15 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
17 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
18 * c-pretty-print.c (pp_c_attributes_display): Don't print
19 transaction_safe in C++.
21 2015-10-02 Marek Polacek <polacek@redhat.com>
23 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
25 2015-10-02 Marek Polacek <polacek@redhat.com>
28 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
29 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
30 * c.opt (Wduplicated-cond): New option.
32 2015-10-01 Joseph Myers <joseph@codesourcery.com>
34 * c.opt (std=c11): Do not describe as experimental.
35 (std=gnu11): Likewise.
36 (std=iso9899:2011): Likewise.
38 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
40 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
41 (DEF_FUNCTION_TYPE_VAR_11): Delete.
43 2015-09-25 Marek Polacek <polacek@redhat.com>
45 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
46 (ubsan_instrument_shift): Likewise.
48 2015-09-25 Marek Polacek <polacek@redhat.com>
51 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
53 2015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
55 * c-indentation.c (should_warn_for_misleading_indentation):
56 Compare next_stmt_vis_column with guard_line_first_nws instead
57 of with guard_line_vis_column.
59 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
63 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
64 options and options not valid for the current language.
66 2015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
68 * c-indentation.c (should_warn_for_misleading_indentation):
69 Float out and consolidate the calls to get_visual_column that
70 are passed guard_exploc as an argument. Compare
71 next_stmt_vis_column with guard_line_first_nws instead of with
74 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
76 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
77 Wnamespaces): New C++ warnings.
79 2015-09-22 Jason Merrill <jason@redhat.com>
81 * c-common.h (abi_compat_version_crosses): New.
82 (warn_abi_version): Declare.
83 * c-common.c: Define it.
84 * c-opts.c (c_common_post_options): Handle it.
85 flag_abi_compat_version defaults to 8.
87 2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
89 Complete the implementation of N4230, Nested namespace definition.
90 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
91 __cpp_nested_namespace_definitions.
93 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
95 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
97 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
99 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
101 * c-pragma.h (pragma_lex): Add optional loc argument.
103 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
105 * c-format.c (check_format_arg): Adjust to use common block size in all
108 2015-09-15 David Malcolm <dmalcolm@redhat.com>
110 * c-format.c (location_from_offset): Update for change in
111 signature of location_get_source_line.
112 * c-indentation.c (get_visual_column): Likewise.
113 (line_contains_hash_if): Likewise.
115 2015-09-14 Marek Polacek <polacek@redhat.com>
117 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
118 setting various warnings.
120 2015-09-14 Marek Polacek <polacek@redhat.com>
122 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
125 2015-09-11 Mark Wielaard <mjw@redhat.com>
128 * c.opt (Wunused-variable): Option from common.opt.
129 (Wunused-const-variable): New option.
131 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
134 * c.opt ([Wsubobject-linkage]): Add.
136 2015-09-03 Martin Sebor <msebor@redhat.com>
139 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
141 * c-common.c (reject_gcc_builtin): Define.
143 2015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
146 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
148 * c-gimplify.c (c_gimplify_expr): Added a call to the function
149 cilk_gimplify_call_params_in_spawned_fn.
150 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
151 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
154 2015-08-25 Marek Polacek <polacek@redhat.com>
157 * c-common.c (handle_weak_attribute): Don't check whether the
158 visibility can be changed here.
160 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
162 * c-lex.c (c_lex_with_flags): Use explicit locations.
164 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
166 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
167 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
169 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
172 * c-common.c (check_builtin_function_arguments): Add check
173 for BUILT_IN_SIGNBIT argument.
175 2015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
178 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
181 2015-08-17 Marek Polacek <polacek@redhat.com>
183 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
184 with whitespaces before qualifier names.
186 2015-08-12 Marek Polacek <polacek@redhat.com>
189 * c-common.c (maybe_warn_shift_overflow): Properly handle
190 left-shifting 1 into the sign bit.
192 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
194 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
196 2015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
197 Braden Obrzut <admin@maniacsvault.net>
198 Jason Merrill <jason@redhat.com>
200 Add C++ Concepts TS support.
201 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
202 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
203 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
204 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
205 * c-opts.c (set_std_cxx1z): Set flag_concepts.
206 * c.opt (fconcepts): New.
208 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
210 * c-indentation.c (should_warn_for_misleading_indentation):
213 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
215 * c-indentation.c (get_visual_column): Add parameter first_nws,
216 use it. Update comment documenting the function.
217 (is_first_nonwhitespace_on_line): Remove.
218 (should_warn_for_misleading_indentation): Replace usage of
219 of is_first_nonwhitespace_on_line with get_visual_column.
221 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
223 * c-indentation.h (struct token_indent_info): Define.
224 (get_token_indent_info): Define.
225 (warn_for_misleading_information): Declare.
226 * c-common.h (warn_for_misleading_information): Remove.
227 * c-identation.c (warn_for_misleading_indentation):
228 Change declaration to take three token_indent_infos. Adjust
230 * c-identation.c (should_warn_for_misleading_indentation):
231 Likewise. Bail out early if the body is a compound statement.
232 (guard_tinfo_to_string): Define.
234 2015-07-30 Jason Merrill <jason@redhat.com>
236 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
237 '*' for reference decay.
239 2015-07-30 Marek Polacek <polacek@redhat.com>
241 * c-common.c (warn_tautological_cmp): Bail for float types.
243 2015-07-27 Marek Polacek <polacek@redhat.com>
246 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
248 2015-07-27 Marek Polacek <polacek@redhat.com>
252 * c-common.c (find_array_ref_with_const_idx_r): New function.
253 (warn_tautological_cmp): New function.
254 * c-common.h (warn_tautological_cmp): Declare.
255 * c.opt (Wtautological-compare): New option.
257 2015-07-23 Marek Polacek <polacek@redhat.com>
259 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
260 (ubsan_instrument_shift): Likewise.
262 2015-07-23 Marek Polacek <polacek@redhat.com>
265 * c-ubsan.c: Include gimplify.h.
266 (ubsan_instrument_division): Unshare OP0 and OP1.
267 (ubsan_instrument_shift): Likewise.
269 2015-07-20 Marek Polacek <polacek@redhat.com>
270 Richard Sandiford <richard.sandiford@arm.com>
273 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
275 (maybe_warn_shift_overflow): New function.
276 * c-common.h (maybe_warn_shift_overflow): Declare.
277 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
278 * c.opt (Wshift-overflow): New option.
280 2015-07-16 Martin Liska <mliska@suse.cz>
282 * c-format.c (static void check_format_info_main): Use
283 object_allocator instead of pool_allocator.
284 (check_format_arg): Likewise.
285 (check_format_info_main): Likewise.
287 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
289 * c-opts.c: Remove multiline #include comment.
291 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
293 * c-common.c: Fix double word typos.
295 2015-07-10 Eric Botcazou <ebotcazou@adacore.com>
297 * c-ada-spec.h (cpp_operation): Revert latest change.
298 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
299 constructors and destructors.
301 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
303 * c-common.h: Adjust includes for flags.h changes.
304 * stub-objc.c: Likewise.
306 2015-07-08 Eric Botcazou <ebotcazou@adacore.com>
308 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
309 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
311 2015-07-08 Jakub Jelinek <jakub@redhat.com>
313 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
314 are to be removed, return NULL rather than original clauses list.
316 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
318 * array-notation-common.c: Adjust includes.
319 * c-ada-spec.c: Likewise.
320 * c-cilkplus.c: Likewise.
321 * c-common.h: Likewise.
322 * c-cppbuiltin.c: Likewise.
323 * c-dump.c: Likewise.
324 * c-format.c: Likewise.
325 * c-gimplify.c: Likewise.
326 * c-indentation.c: Likewise.
329 * c-opts.c: Likewise.
331 * c-ppoutput.c: Likewise.
332 * c-pragma.c: Likewise.
333 * c-pretty-print.c: Likewise.
334 * c-semantics.c: Likewise.
335 * c-ubsan.c: Likewise.
337 * stub-objc.c: Likewise.
339 2015-07-07 Eric Botcazou <ebotcazou@adacore.com>
341 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
342 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
344 2015-07-01 Jason Merrill <jason@redhat.com>
346 * c-common.h (D_CXX11): Rename from D_CXX0X.
347 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
348 * c-common.c: Adjust.
350 * c-opts.c (c_common_post_options): Default to C++14.
352 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
354 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
356 Implement N4197 - Adding u8 character literals
357 * c-family/c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
359 * c-family/c-common.c (c_parse_error): Print CPP_UTF8CHAR and
360 CPP_UTF8CHAR_USERDEF tokens.
361 * c-family/c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
362 and CPP_UTF8CHAR tokens.
363 (lex_charconst): Treat CPP_UTF8CHAR token.
365 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
368 * c-common.c (do_warn_unused_parameter): Move here.
369 * c-common.h (do_warn_unused_parameter): Declare.
371 2015-06-29 Marek Polacek <polacek@redhat.com>
374 * c-common.c (check_case_bounds): Add bool * parameter. Set
376 (c_add_case_label): Add bool * parameter. Pass it down to
378 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
380 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
383 2015-06-27 Marek Polacek <polacek@redhat.com>
385 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
386 or VECTOR_INTEGER_TYPE_P throughout.
387 * c-gimplify.c: Likewise.
389 2015-06-26 Marek Polacek <polacek@redhat.com>
391 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
392 * c-common.c (c_fully_fold_internal): Likewise.
393 (c_alignof_expr): Likewise.
394 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
395 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
396 * cilk.c (create_parm_list): Likewise.
398 2015-06-26 Marek Polacek <polacek@redhat.com>
400 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
402 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
404 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
405 * c-gimplify.c: Likewise.
406 * c-pragma.c: Likewise.
407 * c-ubsan.c: Likewise.
410 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
412 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
415 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
417 * cilk.c: Move calls.h after tm.h in the include chain.
419 2015-06-25 Marek Polacek <polacek@redhat.com>
421 * array-notation-common.c: Use VAR_P throughout.
422 * c-ada-spec.c: Likewise.
423 * c-common.c: Likewise.
424 * c-format.c: Likewise.
425 * c-gimplify.c: Likewise.
427 * c-pragma.c: Likewise.
428 * c-pretty-print.c: Likewise.
431 2015-06-25 Marek Polacek <polacek@redhat.com>
433 * cilk.c (extract_free_variables): Use is_global_var.
435 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
437 * c-common.c: Don't include target-def.h.
439 2015-06-23 Marek Polacek <polacek@redhat.com>
441 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
442 when comparing INTEGER_CSTs.
444 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
446 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
447 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
448 (dump_ada_template): Skip partially specialized types.
450 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
452 * c-common.c (scalar_to_vector): Use std::swap instead of manually
455 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
457 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
458 * c-ada-spec.c: Likewise.
459 * c-cilkplus.c: Likewise.
460 * c-common.c: Likewise.
461 * c-common.h: Likewise.
462 * c-cppbuiltin.c: Likewise.
463 * c-dump.c: Likewise.
464 * c-format.c: Likewise.
465 * c-gimplify.c: Likewise.
466 * c-indentation.c: Likewise.
469 * c-opts.c: Likewise.
471 * c-ppoutput.c: Likewise.
472 * c-pragma.c: Likewise.
473 * c-pretty-print.c: Likewise.
474 * c-semantics.c: Likewise.
475 * c-ubsan.c: Likewise.
477 * stub-objc.c: Likewise.
479 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
482 * c-common.c (c_common_truthvalue_conversion): Warn when
483 converting an address of a reference to a truth value.
485 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
487 * array-notation-common.c : Adjust include files.
488 * c-ada-spec.c : Likewise.
489 * c-cilkplus.c : Likewise.
490 * c-common.c : Likewise.
491 * c-common.h : Likewise.
492 * c-cppbuiltin.c : Likewise.
493 * c-dump.c : Likewise.
494 * c-format.c : Likewise.
495 * c-gimplify.c : Likewise.
496 * c-indentation.c : Likewise.
497 * c-lex.c : Likewise.
498 * c-omp.c : Likewise.
499 * c-opts.c : Likewise.
500 * c-pch.c : Likewise.
501 * c-ppoutput.c : Likewise.
502 * c-pragma.c : Likewise.
503 * c-pretty-print.c : Likewise.
504 * c-semantics.c : Likewise.
505 * c-ubsan.c : Likewise.
507 * stub-objc.c : Likewise.
509 2015-06-08 Marek Polacek <polacek@redhat.com>
512 * c-format.c (location_from_offset): Return LOC if LINE is null.
514 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
516 * c-common.h (c_parse_final_cleanups): New prototype.
517 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
519 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
521 * array-notation-common.c: Adjust includes for restructured coretypes.h.
522 * c-ada-spec.c: Likewise.
523 * c-cilkplus.c: Likewise.
524 * c-common.c: Likewise.
525 * c-common.h: Likewise.
526 * c-cppbuiltin.c: Likewise.
527 * c-dump.c: Likewise.
528 * c-format.c: Likewise.
529 * c-gimplify.c: Likewise.
530 * c-indentation.c: Likewise.
533 * c-opts.c: Likewise.
535 * c-ppoutput.c: Likewise.
536 * c-pragma.c: Likewise.
537 * c-pretty-print.c: Likewise.
538 * c-semantics.c: Likewise.
539 * c-ubsan.c: Likewise.
541 * stub-objc.c: Likewise.
543 2015-06-02 David Malcolm <dmalcolm@redhat.com>
546 * c-indentation.c (should_warn_for_misleading_indentation): Use
547 expand_location rather than expand_location_to_spelling_point.
548 Don't warn if the guarding statement is more indented than the
551 2015-06-02 David Malcolm <dmalcolm@redhat.com>
553 * c-indentation.c (warn_for_misleading_indentation): Bail out
554 immediately if -Wmisleading-indentation isn't enabled.
556 2015-06-01 Martin Liska <mliska@suse.cz>
558 * c-format.c (check_format_arg):Use new type-based pool allocator.
559 (check_format_info_main) Likewise.
561 2015-05-31 Eric Botcazou <ebotcazou@adacore.com>
563 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
564 (has_nontrivial_methods): Likewise.
566 2015-05-25 Marek Polacek <polacek@redhat.com>
568 * c-ubsan.c (ubsan_instrument_shift): Use type0.
570 2015-05-22 Marek Polacek <polacek@redhat.com>
573 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
575 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
577 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
578 STACK_GROWS_DOWNWARD.
580 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
582 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
583 STACK_GROWS_DOWNWARD rather than if it is defined.
585 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
588 * c-format.c (location_column_from_byte_offset): New.
589 (location_from_offset): New.
590 (struct format_wanted_type): Add offset_loc field.
591 (check_format_info): Move handling of location for extra arguments
592 closer to the point of warning.
593 (check_format_info_main): Pass the result of location_from_offset
595 (format_type_warning): Pass the result of location_from_offset
598 2015-05-20 Marek Polacek <polacek@redhat.com>
600 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
602 2015-05-20 Marek Polacek <polacek@redhat.com>
604 * c-ada-spec.c (dump_sloc): Use DECL_P.
606 2015-05-20 Marek Polacek <polacek@redhat.com>
608 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
609 * c-common.c: Likewise.
611 2015-05-19 David Malcolm <dmalcolm@redhat.com>
613 * c-common.h (fe_file_change): Strengthen param from
614 const line_map * to const line_map_ordinary *.
615 (pp_file_change): Likewise.
616 * c-lex.c (fe_file_change): Likewise.
617 (cb_define): Use linemap_check_ordinary when invoking
619 (cb_undef): Likewise.
620 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
621 invoking cb_file_change.
622 (c_finish_options): Likewise.
623 (push_command_line_include): Likewise.
624 (cb_file_change): Strengthen param "new_map" from
625 const line_map * to const line_map_ordinary *.
626 * c-ppoutput.c (cb_define): Likewise for local "map".
627 (pp_file_change): Likewise for param "map" and local "from".
629 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
631 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
633 2015-05-18 Tom de Vries <tom@codesourcery.com>
635 * c-common.c (build_va_arg_1): New function.
636 (build_va_arg): Add address operator to va_list operand if necessary.
638 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
641 * c-common.c (int_safely_convertible_to_real_p): Define.
642 (unsafe_conversion_p): Check conversions involving complex types.
643 (conversion_warning): Add new warning message for conversions which
644 discard imaginary component.
645 * c-common.h: (enum conversion_safety): Add new enumerator for such
648 2015-05-14 Marek Polacek <polacek@redhat.com>
652 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
653 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
654 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
655 use it. If FOR_INT_CONST, require that all evaluated operands be
658 2015-05-12 David Malcolm <dmalcolm@redhat.com>
660 * c-common.h (warn_for_misleading_indentation): New prototype.
661 * c-indentation.c: New file.
662 * c.opt (Wmisleading-indentation): New option.
664 2015-05-12 Tom de Vries <tom@codesourcery.com>
666 PR tree-optimization/66010
667 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
669 2015-05-09 Jason Merrill <jason@redhat.com>
671 * c-opts.c (c_common_post_options): Also clear
672 cpp_opts->cpp_warn_cxx11_compat.
674 * c-common.h (enum cxx_dialect): Add cxx_unset.
675 * c-common.c (cxx_dialect): Initialize to cxx_unset.
676 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
678 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
679 (std=gnu++0x): Mark as Undocumented.
680 (std=gnu++1y): Add deprecated message.
682 2015-05-08 Jason Merrill <jason@redhat.com>
684 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
687 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
689 2015-05-08 Marek Polacek <polacek@redhat.com>
692 * c.opt (Woverride-init-side-effects): New option.
694 2015-05-07 Marek Polacek <polacek@redhat.com>
697 * c-common.c (c_fully_fold_internal): Warn when left shifting a
699 * c.opt (Wshift-negative-value): New option.
700 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
701 when -Wextra and C99/C++11 mode.
703 2015-05-07 Marek Polacek <polacek@redhat.com>
704 Martin Uecker <uecker@eecs.berkeley.edu>
706 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
707 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
709 2015-05-05 Jason Merrill <jason@redhat.com>
711 * c.opt (Wterminate): New.
713 2015-04-30 Marek Polacek <polacek@redhat.com>
715 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
716 require that the non-constant be of a boolean type.
718 2015-04-29 Josh Triplett <josh@joshtriplett.org>
720 * c-common.c (handle_section_attribute): Refactor to reduce
721 nesting and distinguish between error cases.
723 2015-04-29 Marek Polacek <polacek@redhat.com>
726 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
729 2015-04-29 Jakub Jelinek <jakub@redhat.com>
731 * c-common.h (omp_clause_mask): Unconditionally define as a class.
732 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
733 HOST_BITS_PER_WIDE_INT.
735 2015-04-28 Tom de Vries <tom@codesourcery.com>
737 PR tree-optimization/65887
738 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
740 2015-04-28 Eric Botcazou <ebotcazou@adacore.com>
741 Pierre-Marie de Rodat <derodat@adacore.com>
743 * c-ada-spec.c (in_function): Delete.
744 (dump_generic_ada_node): Do not change in_function and remove the
745 redundant code dealing with it.
746 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
747 (print_ada_methods): Output the static member functions in a nested
748 package after the regular methods as well as associated renamings.
750 2015-04-24 Marek Polacek <polacek@redhat.com>
753 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
754 and OPT_Wshift_count_overflow.
757 * c-common.c (warn_logical_operator): Warn if the operands have the
760 2015-04-24 Marek Polacek <polacek@redhat.com>
763 * c-common.c (warn_logical_operator): Bail if either operand comes
764 from a macro expansion.
766 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
769 * c-common.c (c_default_pointer_mode): Add definition.
770 * c-common.h (c_default_pointer_mode): Add declaration.
772 2015-03-11 Jakub Jelinek <jakub@redhat.com>
774 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
775 on record_builtin_type argument.
777 2015-03-10 Jakub Jelinek <jakub@redhat.com>
780 * c-common.c (warn_logical_not_parentheses): Don't warn for
783 2015-03-07 Marek Polacek <polacek@redhat.com>
786 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
787 before trying to figure out whether we have a flexible array member.
789 2015-03-06 Eric Botcazou <ebotcazou@adacore.com>
790 Jonathan Wakely <jwakely.gcc@gmail.com>
792 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
794 2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
797 * c-ada-spec.c (print_destructor): Remove obsolete code.
799 2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
801 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
802 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
803 DECL_TEMPLATE_RESULT emulations.
804 (dump_ada_template)): Add guard for TYPE_METHODS.
806 2015-02-27 Marek Polacek <polacek@redhat.com>
809 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
811 2015-02-27 Kai Tietz <ktietz@redhat.com>
814 * c-pragma.c (handle_pragma_weak): Do not try to create
815 weak/alias of declarations not being function, or variable
818 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
821 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
823 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
825 2015-02-16 Marek Polacek <polacek@redhat.com>
828 * c-format.c (check_format_types): Handle null param.
830 2015-02-13 Marek Polacek <polacek@redhat.com>
833 * c-format.c (check_format_types): Don't warn about different
834 signedness if the original value is in the range of WANTED_TYPE.
836 2015-02-12 Jason Merrill <jason@redhat.com>
839 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
840 to the current highest version.
841 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
843 2015-02-04 Jakub Jelinek <jakub@redhat.com>
847 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
848 instead of RDIV_EXPR. Use build_binary_op instead of
851 2015-01-30 Joseph Myers <joseph@codesourcery.com>
853 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
854 to pass input_location as first argument.
856 2015-01-23 Tom de Vries <tom@codesourcery.com>
859 * c.opt (fopenacc): Mark as LTO option.
861 2015-01-23 Tom de Vries <tom@codesourcery.com>
864 * c.opt (fopenmp): Mark as LTO option.
866 2015-01-21 Jakub Jelinek <jakub@redhat.com>
869 * cilk.c (fill_decls_vec): Only put decls into vector v.
870 (compare_decls): Fix up formatting.
872 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
875 * cilk.c: Include vec.h.
876 (struct cilk_decls): New structure.
877 (wrapper_parm_cb): Split this function to...
878 (fill_decls_vec): ...this...
879 (create_parm_list): ...and this.
880 (compare_decls): New function.
881 (for_local_cb): Remove.
882 (wrapper_local_cb): Ditto.
883 (build_wrapper_type): For now first traverse and fill vector of
884 declarations then sort it and then deal with sorted vector.
885 (cilk_outline): Ditto.
886 (declare_one_free_variable): Ditto.
888 2015-01-21 Jason Merrill <jason@redhat.com>
891 * c-format.c (check_format_arg): Call decl_constant_value.
893 2015-01-19 Martin Liska <mliska@suse.cz>
895 * c-common.c (handle_noicf_attribute): New function.
897 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
898 Bernd Schmidt <bernds@codesourcery.com>
899 James Norris <jnorris@codesourcery.com>
900 Cesar Philippidis <cesar@codesourcery.com>
901 Ilmir Usmanov <i.usmanov@samsung.com>
902 Jakub Jelinek <jakub@redhat.com>
904 * c.opt (fopenacc): New option.
905 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
906 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
908 * c-common.h (c_finish_oacc_wait): New prototype.
909 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
910 (c_finish_oacc_wait): New function.
911 * c-pragma.c (oacc_pragmas): New variable.
912 (c_pp_lookup_pragma, init_pragma): Handle it.
913 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
914 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
915 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
916 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
917 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
918 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
919 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
920 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
921 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
922 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
923 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
924 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
925 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
926 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
927 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
928 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
929 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
930 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
931 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
932 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
933 PRAGMA_OACC_CLAUSE_WORKER.
935 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
937 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
938 for the new option fstack-protector_explicit.
939 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
940 (handle_stack_protect_attribute): New function.
942 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
944 * c.opt: New option -Warray-bounds=.
946 2015-01-09 Michael Collison <michael.collison@linaro.org>
948 * array-notation-common.c: Include hash-set.h, machmode.h,
949 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
950 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
951 * c-ada-spec.c: Ditto.
952 * c-cilkplus.c: Ditto.
953 * c-common.c: Include input.h due to flattening of tree.h.
954 Define macro GCC_C_COMMON_C.
955 * c-common.h: Flatten tree.h header files into c-common.h.
956 Remove include of tree-core.h.
957 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
958 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
959 fold-const.h, wide-int.h, and inchash.h due to
960 flattening of tree.h.
962 * c-format.c: Flatten tree.h header files into c-common.h.
963 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
964 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
965 fold-const.h, wide-int.h, and inchash.h due to
966 flattening of tree.h.
967 * c-dump.c: Include hash-set.h, machmode.h,
968 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
969 fold-const.h, wide-int.h, and inchash.h due to
970 flattening of tree.h.
971 * c-format.c: Include hash-set.h, machmode.h,
972 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
973 fold-const.h, wide-int.h, inchash.h and real.h due to
974 flattening of tree.h.
975 * c-gimplify.c: Include hash-set.h, machmode.h,
976 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
977 fold-const.h, wide-int.h, and inchash.h due to
978 flattening of tree.h.
984 * c-ppoutput.c: Ditto.
986 * c-pretty-print.c: Ditto.
987 * c-semantics.c: Ditto.
989 * stub-objc.c: Ditto.
991 2015-01-08 Jason Merrill <jason@redhat.com>
993 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
994 do_ubsan_in_current_function.
995 (ubsan_maybe_instrument_reference_or_call): Likewise.
996 * c-ubsan.h: Declare it.
998 2015-01-08 Mike Stump <mikestump@comcast.net>
1000 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
1002 2015-01-07 Marek Polacek <polacek@redhat.com>
1005 * c-common.c (c_fully_fold_internal): Warn for division and modulo
1006 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
1008 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
1011 * c.opt (Wsuggest-override): New option.
1013 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1015 Update copyright years.
1017 2015-01-05 Marek Polacek <polacek@redhat.com>
1020 * c-common.c (warn_array_subscript_with_type_char): Add location_t
1022 * c-common.h (warn_array_subscript_with_type_char): Update
1025 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
1027 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
1028 Control macro with flag_sized_deallocation.
1030 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
1032 * c.opt (Wdiscarded-array-qualifiers): New option.
1034 2014-12-19 Jakub Jelinek <jakub@redhat.com>
1036 PR preprocessor/63831
1037 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
1038 and __has_cpp_attribute here.
1039 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
1040 c_common_has_attribute.
1041 * c-common.h (c_common_has_attribute): New prototype.
1042 * c-lex.c (init_c_lex): Set cb->has_attribute to
1043 c_common_has_attribute instead of cb_has_attribute.
1044 (get_token_no_padding): New function.
1045 (cb_has_attribute): Renamed to ...
1046 (c_common_has_attribute): ... this. No longer static. Use
1047 get_token_no_padding, require ()s, don't build TREE_LIST
1048 unnecessarily, fix up formatting, adjust diagnostics, call
1051 2014-12-15 Jason Merrill <jason@redhat.com>
1053 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
1054 (-Wsized-deallocation): New.
1055 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
1056 to on in C++14 and up.
1058 2014-12-11 Jason Merrill <jason@redhat.com>
1060 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
1062 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
1063 we aren't complaining about VLAs.
1065 2014-12-06 Marek Polacek <polacek@redhat.com>
1067 PR tree-optimization/64183
1068 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
1069 shift-expression if it is integer_type_node. Use types_compatible_p.
1071 2014-11-29 Jakub Jelinek <jakub@redhat.com>
1073 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
1074 last argument from create_tmp_var_raw and create_tmp_var calls.
1075 * cilk.c (gimplify_cilk_spawn): Likewise.
1076 * c-omp.c (c_finish_omp_atomic): Likewise.
1078 2014-11-28 Marek Polacek <polacek@redhat.com>
1080 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
1081 instead of unsigned_type_node.
1083 2014-11-28 Marek Polacek <polacek@redhat.com>
1086 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
1088 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
1089 expression to unsigned_type_node.
1091 2014-11-20 Mark Wielaard <mjw@redhat.com>
1094 * c-opts.c (set_std_c89): Set lang_hooks.name.
1095 (set_std_c99): Likewise.
1096 (set_std_c11): Likewise.
1097 (set_std_cxx98): Likewise.
1098 (set_std_cxx11): Likewise.
1099 (set_std_cxx14): Likewise.
1100 (set_std_cxx1z): Likewise.
1102 2014-11-21 Jakub Jelinek <jakub@redhat.com>
1105 * c-common.h (convert_vector_to_pointer_for_subscript): Change
1106 return type to bool.
1107 * c-common.c: Include gimple-expr.h.
1108 (convert_vector_to_pointer_for_subscript): Change return type to
1109 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
1110 and copy it into a TARGET_EXPR and use that instead of *vecp
1113 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1115 Merger of git branch "gimple-classes-v2-option-3".
1116 * ChangeLog.gimple-classes: New.
1117 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
1118 from being just a vec<gimple> to a vec<gbind *>.
1120 2014-11-18 Jakub Jelinek <jakub@redhat.com>
1123 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
1124 argument to ptype, set type to TREE_TYPE (ptype). Don't call
1125 get_pointer_alignment for non-pointers. Use ptype, or if it is
1126 reference type, corresponding pointer type, as type of kind
1128 (ubsan_maybe_instrument_reference,
1129 ubsan_maybe_instrument_member_call): Adjust callers.
1131 2014-11-15 Marek Polacek <polacek@redhat.com>
1134 * array-notation-common.c (is_sec_implicit_index_fn): Return false
1136 (extract_array_notation_exprs): Return for NULL node.
1138 2014-11-12 Joseph Myers <joseph@codesourcery.com>
1140 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
1141 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
1143 2014-11-12 Jakub Jelinek <jakub@redhat.com>
1146 * c-common.c (check_builtin_function_arguments): Handle
1147 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
1149 2014-11-10 Andi Kleen <ak@linux.intel.com>
1152 * c-common.h (check_no_cilk): Declare.
1153 * cilk.c (get_error_location): New function.
1154 (check_no_cilk): Dito.
1156 2014-11-10 Andi Kleen <ak@linux.intel.com>
1158 * cilk.c (recognize_spawn): Use expression location
1161 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1163 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
1165 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1167 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
1168 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
1169 (__cpp_range_based_for, __cpp_initializer_lists,
1170 __cpp_delegating_constructors, __cpp_nsdmi,
1171 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
1172 for C++11; (__cpp_attribute_deprecated): Remove in favor of
1173 __has_cpp_attribute.
1174 * c-lex.c (cb_has_attribute): New callback CPP function;
1175 (init_c_lex): Set has_attribute callback.
1177 2014-11-04 Richard Biener <rguenther@suse.de>
1179 * c-common.c (shorten_compare): Do not shorten mixed
1180 DFP and non-DFP compares.
1182 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1184 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
1185 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
1186 Commentary and rearrangement of tests.
1187 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
1188 Commentary and rearrangement of tests.
1189 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
1190 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
1192 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1194 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
1195 enum from machine_mode.
1197 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
1199 * c-common.c: Adjust include files.
1200 * c-gimplify.c: Ditto.
1202 * c-pragma.c: Ditto.
1205 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
1207 * c-gimplify.c: Adjust include files.
1209 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1212 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
1213 c_common_initialize_diagnostics.
1214 * c-common.h: Likewise.
1216 2014-10-24 Marek Polacek <polacek@redhat.com>
1219 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
1220 print "struct"/"union"/"enum" for typedefed names.
1222 2014-10-23 Marek Polacek <polacek@redhat.com>
1224 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
1227 2014-10-22 Jakub Jelinek <jakub@redhat.com>
1228 Yury Gribov <y.gribov@samsung.com>
1230 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1231 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
1232 instead of flag_sanitize_recover as bool flag.
1234 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
1236 * cilk.c: Revert previous change.
1238 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
1241 * cilk.c: Include vec.h.
1242 (struct cilk_decls): New structure.
1243 (wrapper_parm_cb): Split this function to...
1244 (fill_decls_vec): ...this...
1245 (create_parm_list): ...and this.
1246 (compare_decls): New function.
1247 (for_local_cb): Remove.
1248 (wrapper_local_cb): Ditto.
1249 (build_wrapper_type): For now first traverse and fill vector of
1250 declarations then sort it and then deal with sorted vector.
1251 (cilk_outline): Ditto.
1252 (declare_one_free_variable): Ditto.
1254 2014-10-17 Marek Polacek <polacek@redhat.com>
1256 * c-opts.c (c_common_post_options): Set warn_implicit_int.
1257 * c.opt (Wimplicit-int): Initialize to -1.
1259 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
1261 * c-pragma.c: Adjust include files.
1262 * c-semantics.c: Likewise.
1264 2014-10-16 DJ Delorie <dj@redhat.com>
1266 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
1269 2014-10-14 Jason Merrill <jason@redhat.com>
1272 * c-common.h (CPP_PREPARSED_EXPR): New.
1273 (N_CP_TTYPES): Adjust.
1275 2014-10-15 Marek Polacek <polacek@redhat.com>
1277 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
1279 2014-10-14 DJ Delorie <dj@redhat.com>
1281 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
1282 types, not just __int128.
1283 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
1284 types, not just __int128.
1285 (cpp_atomic_builtins): Round pointer sizes up.
1286 (type_suffix): Use type precision, not specific types.
1287 * c-common.c (c_common_reswords): Remove __int128 special case.
1288 (c_common_type_for_size): Check for all __intN types, not just
1290 (c_common_type_for_mode): Likewise.
1291 (c_common_signed_or_unsigned_type): Likewise.
1292 (c_build_bitfield_integer_type): Likewise.
1293 (c_common_nodes_and_builtins): Likewise.
1294 (keyword_begins_type_specifier): Likewise.
1295 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
1298 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
1300 * c-common.c: Use hash_table instead of hashtab.
1302 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
1304 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
1307 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
1312 * c-common.c (warn_logical_operator): Punt for vectors.
1314 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1316 Implement SD-6: SG10 Feature Test Recommendations
1317 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
1318 macros and the __has_header macro.
1320 2014-09-30 Jason Merrill <jason@redhat.com>
1322 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
1323 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
1324 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1326 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
1327 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1329 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
1330 * c-common.c (c_common_reswords): Remove __is_convertible_to.
1332 2014-09-24 Marek Polacek <polacek@redhat.com>
1336 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
1338 2014-09-23 Andi Kleen <ak@linux.intel.com>
1340 * c-common.c (handle_no_reorder_attribute): New function.
1341 (c_common_attribute_table): Add no_reorder attribute.
1343 2014-09-22 Joseph Myers <joseph@codesourcery.com>
1345 * c-cppbuiltin.c (c_cpp_builtins): Define
1346 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
1349 2014-09-18 Joseph Myers <joseph@codesourcery.com>
1351 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
1352 for supported floating-point modes.
1354 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1356 * c.opt (Wpsabi): Use LangEnabledBy.
1357 * c-opts.c (c_common_handle_option): Do not handle here.
1359 2014-09-12 Joseph Myers <joseph@codesourcery.com>
1361 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
1362 macros for floating-point modes.
1364 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
1367 * c-cppbuiltin.c (builtin_define_float_constants): Correct
1368 __*_DENORM_MIN__ without denormals.
1370 2014-09-10 Jakub Jelinek <jakub@redhat.com>
1372 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1373 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1374 ubsan_create_data callers.
1375 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
1376 index is constant or BIT_AND_EXPR with constant mask and is
1377 small enough for the bound.
1378 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
1379 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
1381 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1383 * c.opt: Add CppReason to various flags.
1384 (Wdate-time): Re-sort.
1385 * c-common.c: Include c-common.h earlier.
1386 (struct reason_option_codes_t): Delete.
1387 (c_option_controlling_cpp_error): Prefix global type and struct
1390 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1392 * c.opt (Wnormalized): New.
1393 (Wnormalized=): Use Enum and Reject Negative.
1394 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
1396 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1398 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
1399 digits of floating-point modes if -fbuilding-libgcc.
1401 2014-09-05 Joseph Myers <joseph@codesourcery.com>
1403 * c-cppbuiltin.c (c_cpp_builtins): Also define
1404 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
1405 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
1406 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
1407 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
1408 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
1409 __LIBGCC_STACK_GROWS_DOWNWARD__,
1410 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
1411 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
1412 __LIBGCC_DWARF_FRAME_REGISTERS__,
1413 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
1414 __LIBGCC_STACK_POINTER_REGNUM__ and
1415 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
1416 (builtin_define_with_value): Handle backslash-escaping in string
1419 2014-09-05 Richard Biener <rguenther@suse.de>
1422 * c-format.c (check_format_arg): Properly handle
1423 effectively signed POINTER_PLUS_EXPR offset.
1425 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1427 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
1428 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
1429 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
1431 * c-opts.c (c_common_handle_option): Do not handle here.
1432 (sanitize_cpp_opts): Likewise.
1433 * c-common.c (struct reason_option_codes_t): Handle
1434 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
1436 2014-09-03 Marek Polacek <polacek@redhat.com>
1438 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
1440 2014-09-02 Jakub Jelinek <jakub@redhat.com>
1441 Balaji V. Iyer <balaji.v.iyer@intel.com>
1442 Igor Zamyatin <igor.zamyatin@intel.com>
1444 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
1445 * c-common.c (c_common_reswords): Added _Cilk_for.
1446 * c-common.h (enum rid): Added RID_CILK_FOR.
1447 (cilk_for_number_of_iterations): Add declaration.
1448 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
1450 * c-pragma.c (init_pragma): Register "grainsize" pragma.
1451 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
1453 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1455 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
1456 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
1457 Wundef): Use CPP, Var and Init.
1458 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
1460 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1462 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
1463 * c-opts.c (c_common_handle_option): Do not handle here.
1465 2014-08-25 Jason Merrill <jason@redhat.com>
1467 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
1468 -std=c++14 and -std=gnu++14, rather than the reverse.
1469 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
1470 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
1471 * c-common.h (cxx_dialect): Remove cxx1y.
1473 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
1475 * c-common.h (enum cxx_dialect): Add cxx14.
1476 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
1477 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
1478 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
1480 2014-08-22 Jason Merrill <jason@redhat.com>
1482 * c.opt (std=gnu++17): Fix alias.
1484 2014-08-22 Marek Polacek <polacek@redhat.com>
1487 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
1488 check for vector types. Drop LHS argument.
1489 * c-common.h (warn_logical_not_parentheses): Adjust.
1491 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1493 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
1494 (Wmultichar): Likewise.
1495 (Wdate-time): Use C-family languages instead of Common. Use CPP
1497 * c-opts.c (c_common_handle_option): Do not handle the above
1499 (sanitize_cpp_opts): Likewise.
1501 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1504 * c-opts.c: Include tree-diagnostics.h.
1505 (c_diagnostic_finalizer): New.
1506 (c_common_initialize_diagnostics): Use it.
1508 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1510 PR preprocessor/51303
1511 * c-common.c (struct reason_option_codes_t option_codes):
1512 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
1514 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1518 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
1519 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
1520 (c_common_post_options): Call init_global_opts_from_cpp.
1521 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
1523 2014-08-19 Marek Polacek <polacek@redhat.com>
1526 * c-common.c (maybe_warn_bool_compare): New function.
1527 * c-common.h (maybe_warn_bool_compare): Declare.
1528 * c.opt (Wbool-compare): New option.
1530 2014-08-19 Marek Polacek <polacek@redhat.com>
1532 * c.opt (Wc99-c11-compat): New option.
1534 2014-08-19 Marek Polacek <polacek@redhat.com>
1536 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
1537 to warn_c90_c99_compat.
1538 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
1541 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1542 Steven Bosscher <steven@gcc.gnu.org>
1545 * c-format.c: Add extra_arg_loc and format_string_loc to struct
1546 format_check_results.
1547 (check_function_format): Use true and add comment for boolean
1549 (finish_dollar_format_checking): Use explicit location when warning.
1550 (check_format_info): Likewise.
1551 (check_format_arg): Set extra_arg_loc and format_string_loc.
1552 (check_format_info_main): Use explicit location when warning.
1553 (check_format_types): Pass explicit location.
1554 (format_type_warning): Likewise.
1556 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1559 * c-format.c: Handle Fortran flags.
1561 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
1564 * array-notation-common.c (find_rank): Added handling for other
1565 types of references.
1567 2014-08-10 Marek Polacek <polacek@redhat.com>
1570 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
1571 * c.opt (Wc90-c99-compat): Add option.
1573 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
1575 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
1577 2014-08-03 Marek Polacek <polacek@redhat.com>
1579 * c-common.c (check_case_value): Add location_t parameter. Use it.
1580 (c_add_case_label): Pass loc to check_case_value.
1582 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1584 * cilk.c: Use hash_map instead of pointer_map.
1586 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1588 * c-gimplify.c: Use hash_set instead of pointer_set.
1590 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
1593 * array-notation-common.c (extract_array_notation_exprs): Handling
1596 2014-08-01 Jakub Jelinek <jakub@redhat.com>
1598 * c-common.h (min_align_of_type): Removed prototype.
1599 * c-common.c (min_align_of_type): Removed.
1600 * c-ubsan.h (ubsan_maybe_instrument_reference,
1601 ubsan_maybe_instrument_member_call): New prototypes.
1602 * c-ubsan.c: Include stor-layout.h and builtins.h.
1603 (ubsan_maybe_instrument_reference_or_call,
1604 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
1607 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
1610 * c.opt (-Wreturn-local-addr): Move to common.opt.
1612 2014-07-30 Jason Merrill <jason@redhat.com>
1617 * c.opt (-fuse-all-virtuals): New.
1619 2014-07-30 Tom Tromey <tromey@redhat.com>
1622 * c.opt (Wdesignated-init): New option.
1623 * c-common.c (c_common_attribute_table): Add "designated_init".
1624 (handle_designated_init): New function.
1626 2014-07-24 Marek Polacek <polacek@redhat.com>
1629 * c-opts.c (c_finish_options): If -imacros is in effect, return.
1631 2014-07-16 Dodji Seketeli <dodji@redhat.com>
1633 PR preprocessor/60723 - missing system-ness marks for macro tokens
1634 * c-ppoutput.c (struct print::prev_was_system_token): New data
1636 (init_pp_output): Initialize it.
1637 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
1638 (do_line_change): Return a flag saying if a line marker was
1640 (scan_translation_unit): Detect if the system-ness of the token we
1641 are about to emit is different from the one of the previously
1642 emitted token. If so, emit a line marker. Avoid emitting useless
1643 adjacent line markers. Avoid emitting line markers for tokens
1644 originating from the expansion of built-in macros.
1645 (scan_translation_unit_directives_only): Adjust.
1647 2014-07-15 Marek Polacek <polacek@redhat.com>
1649 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1650 TYPE_MAX_VALUE is NULL.
1652 2014-07-14 Jakub Jelinek <jakub@redhat.com>
1655 * c.opt (Wmemset-transposed-args): New warning.
1657 2014-07-10 Jason Merrill <jason@redhat.com>
1661 * c.opt (-fuse-all-virtuals): New.
1663 2014-07-09 Richard Biener <rguenther@suse.de>
1666 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1667 using unsigned arithmetic if overflow does not wrap instead of
1668 if overflow is undefined.
1670 2014-07-06 Marek Polacek <polacek@redhat.com>
1673 * c.opt (Wsizeof-array-argument): New option.
1675 2014-07-03 Jakub Jelinek <jakub@redhat.com>
1677 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
1678 comments->count <= 1, as comments->entries might be NULL.
1680 2014-07-01 Marek Polacek <polacek@redhat.com>
1682 * c.opt (Wint-conversion): New option.
1684 2014-07-01 Marek Polacek <polacek@redhat.com>
1687 * c.opt (Wincompatible-pointer-types): New option.
1689 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1692 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1693 Do not discard TYPE_QUALS of type.
1695 2014-06-26 Jason Merrill <jason@redhat.com>
1697 * c-common.h (enum cxx_dialect): Add cxx1z.
1698 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1699 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1701 2014-06-26 Teresa Johnson <tejohnson@google.com>
1703 * c-common.h (get_dump_info): Declare.
1704 * c-gimplify.c (c_genericize): Use saved dump files.
1705 * c-opts.c (c_common_parse_file): Begin and end dumps
1706 once around parsing invocation.
1707 (get_dump_info): New function.
1709 2014-06-23 Marek Polacek <polacek@redhat.com>
1710 Andrew MacLeod <amacleod@redhat.com>
1713 * c-common.c (get_atomic_generic_size): Don't segfault if the
1714 type doesn't have a size.
1716 2014-06-20 Marek Polacek <polacek@redhat.com>
1718 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1719 (ubsan_walk_array_refs_r): New function.
1720 (c_genericize): Instrument array bounds.
1721 * c-ubsan.c: Include "internal-fn.h".
1722 (ubsan_instrument_division): Mark instrumented arrays as having
1723 side effects. Adjust ubsan_type_descriptor call.
1724 (ubsan_instrument_shift): Likewise.
1725 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1726 (ubsan_instrument_bounds): New function.
1727 (ubsan_array_ref_instrumented_p): New function.
1728 (ubsan_maybe_instrument_array_ref): New function.
1729 * c-ubsan.h (ubsan_instrument_bounds): Declare.
1730 (ubsan_array_ref_instrumented_p): Declare.
1731 (ubsan_maybe_instrument_array_ref): Declare.
1733 2014-06-20 Hale Wang <hale.wang@arm.com>
1736 * c.opt (fshort-enums): Add to LTO.
1737 * c.opt (fshort-wchar): Likewise.
1739 2014-06-16 Marek Polacek <polacek@redhat.com>
1742 * c.opt (Wswitch-bool): Add Var.
1744 2014-06-12 Jakub Jelinek <jakub@redhat.com>
1747 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1748 #pragma omp target teams or
1749 #pragma omp {,target }teams distribute simd.
1751 2014-06-12 Jason Merrill <jason@redhat.com>
1753 * c.opt (Wabi=, fabi-compat-version): New.
1754 * c-opts.c (c_common_handle_option): Handle -Wabi=.
1755 (c_common_post_options): Handle flag_abi_compat_version default.
1756 Disallow -fabi-compat-version=1.
1757 * c-common.h (abi_version_crosses): New.
1759 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
1761 * c-common.c (handle_section_attribute): Update handling for
1762 section names that are no longer trees.
1764 2014-06-10 Jakub Jelinek <jakub@redhat.com>
1767 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1768 (omp_pragmas): ... back here.
1770 2014-06-05 Marek Polacek <polacek@redhat.com>
1773 * c-common.c (warn_logical_not_parentheses): New function.
1774 * c-common.h (warn_logical_not_parentheses): Declare.
1775 * c.opt (Wlogical-not-parentheses): New option.
1777 2014-06-04 Marek Polacek <polacek@redhat.com>
1780 * c-common.c (check_case_bounds): Add location parameter.
1782 (c_add_case_label): Pass loc to check_case_bounds.
1784 2014-06-03 Marek Polacek <polacek@redhat.com>
1787 * c.opt (Wswitch-bool): New option.
1789 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1791 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1793 (record_types_used_by_current_var_decl): Move prototype to where
1796 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1797 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1798 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1800 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1802 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1803 * c-common.c (c_common_nodes_and_builtins): Don't initialize
1805 * c-pretty-print.c (pp_c_void_constant): New function.
1806 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1807 (c_pretty_printer::expression): Handle VOID_CST.
1808 * cilk.c (extract_free_variables): Likewise.
1809 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1810 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1812 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1814 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1815 * c-pragma.c (push_alignment): Adjust.
1816 (handle_pragma_push_options): Likewise.
1818 2014-05-09 Marek Polacek <polacek@redhat.com>
1821 * c-common.c (check_user_alignment): Return -1 if alignment is error
1823 (handle_aligned_attribute): Don't call default_conversion on
1825 (handle_vector_size_attribute): Likewise.
1826 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1827 (handle_sentinel_attribute): Call default_conversion and allow even
1828 integral types as an argument.
1830 2014-05-08 Marek Polacek <polacek@redhat.com>
1833 * c-common.c (min_align_of_type): New function factored out from...
1834 (c_sizeof_or_alignof_type): ...here.
1835 * c-common.h (min_align_of_type): Declare.
1837 2014-05-08 Marek Polacek <polacek@redhat.com>
1840 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1841 parameter type of main.
1843 2014-05-07 DJ Delorie <dj@redhat.com>
1845 * c-cppbuiltin.c (print_bits_of_hex): New.
1846 (builtin_define_type_minmax): Print values using hex so as not to
1847 require a pre-computed list of string values.
1849 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1850 Mike Stump <mikestump@comcast.net>
1851 Richard Sandiford <rdsandiford@googlemail.com>
1853 * c-ada-spec.c: Include wide-int.h.
1854 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1855 (dump_generic_ada_node): Use wide-int interfaces.
1856 * c-common.c: Include wide-int-print.h.
1857 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1858 (pointer_int_sum): Use wide-int interfaces.
1859 (c_common_nodes_and_builtins): Use make_int_cst.
1860 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1861 (handle_alloc_size_attribute): Use wide-int interfaces.
1862 (get_nonnull_operand): Likewise.
1863 * c-format.c (get_constant): Use tree_fits_uhwi_p.
1864 * c-lex.c: Include wide-int.h.
1865 (narrowest_unsigned_type): Take a widest_int rather than two
1867 (narrowest_signed_type): Likewise.
1868 (interpret_integer): Update accordingly. Use wide-int interfaces.
1869 (lex_charconst): Use wide-int interfaces.
1870 * c-pretty-print.c: Include wide-int.h.
1871 (pp_c_integer_constant): Use wide-int interfaces.
1872 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1873 INT_CST_LT_UNSIGNED.
1875 2014-05-06 Richard Biener <rguenther@suse.de>
1877 * c-opts.c (c_common_post_options): For -freestanding,
1878 -fno-hosted and -fno-builtin disable pattern recognition
1879 if not enabled explicitely.
1881 2014-05-02 Marek Polacek <polacek@redhat.com>
1883 * c.opt (Wsizeof-pointer-memaccess): Describe option.
1885 2014-05-01 Marek Polacek <polacek@redhat.com>
1888 * c.opt (Wdiscarded-qualifiers): Add.
1890 2014-04-30 Marek Polacek <polacek@redhat.com>
1892 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
1893 INT_MIN / -1 sanitization only for integer types.
1895 2014-04-25 Marek Polacek <polacek@redhat.com>
1898 * c-common.c (handle_noinline_attribute): Warn if the attribute
1899 conflicts with always_inline attribute.
1900 (handle_always_inline_attribute): Warn if the attribute conflicts
1901 with noinline attribute.
1903 2014-04-25 Marek Polacek <polacek@redhat.com>
1906 * c-common.c (check_main_parameter_types): Warn about variadic main.
1908 2014-04-24 Mike Stump <mikestump@comcast.net>
1910 * c.opt (Wshadow-ivar): Default to on.
1912 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
1914 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1916 2014-04-23 Marek Polacek <polacek@redhat.com>
1918 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1920 2014-04-22 Jakub Jelinek <jakub@redhat.com>
1923 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1924 if flag_sanitize_undefined_trap_on_error.
1925 (ubsan_instrument_division, ubsan_instrument_shift,
1926 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
1927 if !flag_sanitize_recover.
1929 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
1932 * c-common.c (registered_builtin_types): Make non-static.
1933 * c-common.h (registered_builtin_types): Declare.
1935 2014-04-14 Richard Biener <rguenther@suse.de>
1936 Marc Glisse <marc.glisse@inria.fr>
1939 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1940 apply may-alias the scalar pointer type when applicable.
1942 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1945 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1946 as possible argument for Cilk_spawn.
1948 2014-04-11 Tobias Burnus <burnus@net-b.de>
1951 * c.opt (Wformat-signedness): Add
1952 * c-format.c(check_format_types): Use it.
1954 2014-04-11 Jason Merrill <jason@redhat.com>
1957 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1958 default_conversion for an array argument.
1960 2014-04-08 Marek Polacek <polacek@redhat.com>
1963 * c-ubsan.c: Include asan.h.
1964 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1966 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
1968 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1970 2014-04-02 Marek Polacek <polacek@redhat.com>
1972 * c-common.h (c_expand_expr): Remove declaration.
1974 2014-03-28 Jakub Jelinek <jakub@redhat.com>
1977 * c-common.c (add_atomic_size_parameter): When creating new
1978 params vector, push the size argument first.
1980 2014-03-26 Jakub Jelinek <jakub@redhat.com>
1982 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1983 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1984 ubsan_create_data callers.
1986 2014-03-22 Jakub Jelinek <jakub@redhat.com>
1989 * c-opts.c (c_finish_options): Restore cb_file_change call to
1992 2014-03-13 Jakub Jelinek <jakub@redhat.com>
1995 * c-pragma.c (apply_pragma_weak): Only look at
1996 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1997 DECL_ASSEMBLER_NAME_SET_P (decl).
1998 (maybe_apply_pending_pragma_weaks): Exit early if
1999 vec_safe_is_empty (pending_weaks) rather than only when
2001 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
2002 set assembler name back to NULL afterwards.
2004 2014-03-11 Jason Merrill <jason@redhat.com>
2006 * c.opt: Add -std=gnu++14.
2008 2014-03-11 Ian Bolton <ian.bolton@arm.com>
2010 * c-opts.c (c_common_post_options): Don't override
2011 -ffp-contract=fast if unsafe-math-optimizations is on.
2013 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
2015 * c.opt: Enable LTO FE for fshort-double.
2017 2014-03-07 Jason Merrill <jason@redhat.com>
2019 * c.opt: Add -std=c++14.
2021 2014-03-06 Marek Polacek <polacek@redhat.com>
2024 * cilk.c (contains_cilk_spawn_stmt): New function.
2025 (contains_cilk_spawn_stmt_walker): Likewise.
2026 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
2027 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
2029 2014-03-03 Jakub Jelinek <jakub@redhat.com>
2031 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
2032 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
2033 even when flag_preprocess_only.
2035 2014-02-26 Jason Merrill <jason@redhat.com>
2039 * c-common.c (shorten_compare): Don't check
2040 c_inhibit_evaluation_warnings.
2042 2014-02-19 Jakub Jelinek <jakub@redhat.com>
2045 * c-common.c (c_common_nodes_and_builtins): When initializing
2046 c_uint{16,32,64}_type_node, also set corresponding
2047 uint{16,32,64}_type_node to the same value.
2050 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
2051 for PRAGMA_IVDEP if flag_preprocess_only.
2053 2014-02-12 Jakub Jelinek <jakub@redhat.com>
2056 * c-common.c (merge_tlist): If copy is true, call new_tlist,
2057 if false, add ADD itself, rather than vice versa.
2058 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
2059 copy. For SAVE_EXPR, only call merge_tlist once.
2061 2014-02-08 Jakub Jelinek <jakub@redhat.com>
2064 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
2066 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
2068 (c_common_attribute_table): Add alloc_align and assume_aligned
2071 2014-02-06 Marek Polacek <polacek@redhat.com>
2074 * c-common.c (warn_for_sign_compare): Call warning_at with location
2077 2014-02-05 Marek Polacek <polacek@redhat.com>
2080 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
2083 2014-02-04 Marek Polacek <polacek@redhat.com>
2086 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
2089 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
2093 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
2094 handle_vector_size_attribute, handle_nonnull_attribute): Call
2095 default_conversion on the attribute argument.
2096 (handle_nonnull_attribute): Increment the argument number.
2098 2014-01-31 Marek Polacek <polacek@redhat.com>
2101 * c-common.c (add_atomic_size_parameter): Pass vNULL to
2102 build_function_call_vec.
2103 (resolve_overloaded_builtin): Likewise.
2104 * c-common.h (build_function_call_vec): Adjust declaration.
2106 2014-01-30 Marek Polacek <polacek@redhat.com>
2109 * c-common.h (unsafe_conversion_p): Adjust declaration.
2110 (warnings_for_convert_and_check): Likewise.
2111 (convert_and_check): Likewise.
2112 * c-common.c (unsafe_conversion_p): Add location parameter. Call
2113 expansion_point_location_if_in_system_header on it.
2114 (warnings_for_convert_and_check): Add location parameter. Call
2115 expansion_point_location_if_in_system_header on it. Use it.
2116 (convert_and_check): Add location parameter. Use it.
2117 (conversion_warning): Likewise.
2118 (c_add_case_label): Adjust convert_and_check calls.
2119 (scalar_to_vector): Adjust unsafe_conversion_p calls.
2121 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2123 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
2125 * c-pragma.c (init_pragma): Likewise.
2128 2014-01-23 Marek Polacek <polacek@redhat.com>
2131 * c-common.c (shorten_compare): Add location_t parameter.
2132 * c-common.h (shorten_binary_op): Adjust declaration.
2134 2014-01-23 Marek Polacek <polacek@redhat.com>
2137 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
2138 * c-common.h: Declare it.
2140 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
2142 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
2143 * c-ada-spec.c (dump_ads): Likewise.
2144 (cpp_check): Likewise.
2145 (dump_ada_specs): Likewise.
2147 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
2150 * c-common.c (handle_no_instrument_function_attribute): Allow
2151 no_instrument_function attribute in class member
2152 definition/declaration.
2154 2014-01-15 Jakub Jelinek <jakub@redhat.com>
2157 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
2158 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
2159 being COMPOUND_EXPR.
2160 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
2161 operand a SAVE_EXPR and second MODIFY_EXPR.
2163 2014-01-09 Jakub Jelinek <jakub@redhat.com>
2166 * c-pch.c (c_common_write_pch): Call
2167 prepare_target_option_nodes_for_pch.
2169 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2171 Update copyright years
2173 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2175 * array-notation-common.c, c-cilkplus.c: Use the standard form for
2176 the copyright notice.
2178 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
2180 * c-ada-spec.c (print_constructor): New function.
2181 (print_destructor): Retrieve the origin of the destructor.
2182 (print_ada_declaration): Revamp handling of constructors/destructors.
2184 2013-12-23 Stuart Hastings <stuart@apple.com>
2185 Bill Maddox <maddox@google.com>
2186 Jason Merrill <jason@redhat.com>
2188 * c.opt: Add -fdeclone-ctor-dtor.
2189 * c-opts.c (c_common_post_options): Default to on iff -Os.
2191 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
2193 * c-common.c (c_common_attribute_table): Added "cilk simd function"
2195 * c-pragma.h (enum pragma_cilk_clause): Remove.
2196 (enum pragma_omp_clause): Added the following fields:
2197 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
2198 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
2199 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
2200 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
2201 PRAGMA_CILK_CLAUSE_UNIFORM.
2204 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2206 * cilk.c (cilk_outline): Made this function non-static.
2207 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
2208 (create_cilk_wrapper): Added a new parameter: a function pointer.
2209 (c_install_body_w_frame_cleanup): Remove
2210 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
2211 * c-common.h (cilk_outline): New prototype.
2212 (gimplify_cilk_spawn): Removed two parameters.
2213 (cilk_install_body_with_frame_cleanup): New prototype.
2214 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
2215 CILK_SPAWN_STMT case.
2217 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
2219 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
2221 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
2222 (int_array_type_node): Remove.
2223 * c-common.c (c_common_nodes_and_builtins): Don't build it.
2225 2013-12-05 Marek Polacek <polacek@redhat.com>
2228 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
2229 [ADJUST_FIELD_ALIGN].
2231 2013-12-04 Joseph Myers <joseph@codesourcery.com>
2234 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
2235 and check field alignment if set.
2236 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
2237 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
2239 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2240 Marek Polacek <polacek@redhat.com>
2242 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
2243 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
2245 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
2248 * cilk.c (gimplify_cilk_spawn): Properly handle function without
2251 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2254 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
2255 goto invalid. If it is error_mark_node, don't issue further
2258 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2260 * c.opt (Wopenmp-simd): New.
2262 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2264 * c-ubsan.h (ubsan_instrument_return): New prototype.
2265 * c-ubsan.c (ubsan_instrument_return): New function.
2267 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
2269 * c-common.c: Add required include files from gimple.h.
2270 * c-gimplify.c: Likewise
2273 2013-11-22 David Malcolm <dmalcolm@redhat.com>
2275 * c-common.c (unsafe_conversion_p): Remove use of
2276 EXPR_LOC_OR_HERE macro.
2277 (conversion_warning): Likewise.
2278 (warnings_for_convert_and_check): Likewise.
2279 (warn_for_collisions_1): Likewise.
2280 (shorten_compare): Likewise, and remove use of in_system_header
2281 macro, using the location from the former.
2282 * c-lex.c (dump_one_header): Remove use of input_filename macro.
2283 (cb_def_pragma): Remove use of in_system_header macro.
2284 (lex_string): Likewise.
2285 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2287 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2288 Mike Stump <mikestump@comcast.net>
2289 Richard Sandiford <rdsandiford@googlemail.com>
2291 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
2292 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2293 tree_fits_shwi_p or tree_fits_uhwi_p.
2294 (dump_generic_ada_node): Likewise.
2295 * c-format.c (check_format_arg): Likewise.
2296 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2298 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2300 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
2302 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2305 * c-common.c (unsafe_conversion_p): Make this function
2306 return an enumeration with more detail.
2307 (conversion_warning): Use the new return type of
2308 unsafe_conversion_p to separately warn either about conversions
2309 that lower floating point number precision or about the other
2310 kinds of conversions.
2311 * c-common.h (enum conversion_safety): New enumeration.
2312 (unsafe_conversion_p): switching return type to
2313 conversion_safety enumeration.
2314 * c.opt: Adding new warning -Wfloat-conversion and
2315 enabling it with -Wconversion.
2317 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2319 * c-opts.c: Include plugin.h.
2320 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
2322 2013-11-19 Marek Polacek <polacek@redhat.com>
2324 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
2326 (ubsan_instrument_shift): Likewise.
2327 (ubsan_instrument_vla): Likewise.
2329 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2331 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
2332 cast to unsigned type.
2334 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2336 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
2338 (complete_array_type): Update comment to refer to tree_to_[su]hwi
2339 rather than tree_low_cst.
2341 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2343 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
2344 tree_to_uhwi throughout.
2346 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2348 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
2349 tree_low_cst (..., 0) with tree_to_shwi throughout.
2351 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2353 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
2354 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
2356 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2358 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
2359 host_integerp (..., 0) with tree_fits_shwi_p throughout.
2361 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
2363 * c-cilkplus.c: New file.
2364 * c-common.c (readonly_error): Add location argument.
2365 * c-common.h (readonly_error): Same.
2366 (c_finish_cilk_clauses): Protoize.
2367 (c_check_cilk_loop): Same.
2368 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
2369 Do not fail on error_mark_node.
2370 Abstract increment canonicalization to here...
2371 (c_omp_for_incr_canonicalize_ptr): New.
2372 c-pragma.c (init_pragma): Register "simd" pragma.
2373 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
2374 (enum pragma_cilk_clause): New.
2376 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
2378 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
2379 wchar_type and host_integerp checks.
2381 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
2383 * c-common.c: Likewise.
2384 * c-gimplify.c: Likewise.
2387 2013-11-14 Diego Novillo <dnovillo@google.com>
2389 * c-common.c: Include fold-const.h.
2390 Include stor-layout.h.
2392 Include stringpool.h.
2395 Include trans-mem.h.
2396 * c-cppbuiltin.c: Include stor-layout.h.
2397 Include stringpool.h.
2398 * c-format.c: Include stringpool.h.
2399 * c-lex.c: Include stringpool.h.
2400 Include stor-layout.h.
2401 * c-pragma.c: Include stringpool.h.
2404 Include gcc-symtab.h.
2405 * c-pretty-print.c: Include stor-layout.h.
2407 * cilk.c: Include stringpool.h.
2410 2013-11-13 Joseph Myers <joseph@codesourcery.com>
2412 * c-common.h (enum rid): Add RID_AUTO_TYPE.
2413 * c-common.c (c_common_reswords): Add __auto_type.
2414 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
2416 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
2418 * c-common.c: Include gimplify.h.
2419 * c-gimplify.c: Likewise.
2421 * c-omp.c: Include gimple-expr.h instead of gimple.h.
2422 * c-ubsan.c: Don't include gimple.h.
2424 2013-11-12 Joseph Myers <joseph@codesourcery.com>
2426 * c-common.c (c_common_reswords): Add _Thread_local.
2428 2013-11-09 Joseph Myers <joseph@codesourcery.com>
2430 * c-common.c (atomic_size_supported_p): New function.
2431 (resolve_overloaded_atomic_exchange)
2432 (resolve_overloaded_atomic_compare_exchange)
2433 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
2434 Use it instead of comparing size with a local list of sizes.
2436 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
2437 Joseph Myers <joseph@codesourcery.com>
2439 * c-common.h (enum rid): Add RID_ATOMIC.
2440 * c-common.c (c_common_reswords): Add _Atomic.
2441 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
2442 (keyword_is_type_qualifier): Accept RID_ATOMIC.
2443 * c-format.c (check_format_types): Check for extra _Atomic
2444 qualifiers in format argument.
2445 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
2446 (pp_c_type_qualifier_list): Mention _Atomic in comment.
2448 2013-11-06 Tobias Burnus <burnus@net-b.de>
2450 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
2452 2013-11-06 Joseph Myers <joseph@codesourcery.com>
2454 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
2456 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
2457 to mean lack of IEEE 754 support.
2459 2013-11-05 Tobias Burnus <burnus@net-b.de>
2461 * c.opt (-Wdate-time): New option
2462 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
2464 2013-11-05 Joseph Myers <joseph@codesourcery.com>
2466 * c-cppbuiltin.c (cpp_iec_559_value): Test
2467 flag_excess_precision_cmdline not flag_excess_precision.
2469 2013-11-05 Tobias Burnus <burnus@net-b.de>
2471 * c.opt (fopenmp-simd): New option.
2472 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
2473 (omp_pragmas): ... this new struct.
2474 (c_pp_lookup_pragma): Also walk omp_pragmas.
2475 (init_pragma): Init pragmas for -fopenmp-simd.
2477 2013-11-04 Marek Polacek <polacek@redhat.com>
2480 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
2482 2013-11-04 Joseph Myers <joseph@codesourcery.com>
2484 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
2486 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
2488 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
2490 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
2491 (dump_ada_specs): Adjust prototype of second callback.
2492 * c-ada-spec.c (cpp_check): New global variable.
2493 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
2494 (print_generic_ada_decl): Likewise.
2495 (has_static_fields): Change return type to bool and add guard.
2496 (has_nontrivial_methods): New predicate.
2497 (is_tagged_type): Change return type to bool.
2498 (separate_class_package): Call has_nontrivial_methods.
2499 (pp_ada_tree_identifier): Minor tweaks.
2500 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
2501 (dump_ada_array_domains): Likewise.
2502 (dump_ada_array_type): Likewise.
2503 (dump_template_types): Remove cpp_check parameter and do not pass it to
2504 dump_generic_ada_node.
2505 (dump_ada_template): Likewise.
2506 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
2508 (print_ada_methods): Change return type to integer. Remove cpp_check
2509 parameter and do not pass it down.
2510 (dump_nested_types): Remove cpp_check parameter and do not pass it to
2511 dump_generic_ada_node.
2512 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
2514 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
2515 down. Use has_nontrivial_methods to recognize C++ classes. Use return
2516 value of print_ada_methods.
2517 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
2518 Set cpp_check to it before invoking dump_ada_nodes.
2519 (dump_ada_specs): Likewise.
2521 2013-11-03 Marek Polacek <polacek@redhat.com>
2523 * c-ubsan.c: Don't include hash-table.h.
2524 (ubsan_instrument_vla): New function.
2525 * c-ubsan.h: Declare it.
2527 2013-10-31 David Malcolm <dmalcolm@redhat.com>
2529 Automated part of renaming of symtab_node_base to symtab_node.
2531 Patch autogenerated by rename_symtab.py from
2532 https://github.com/davidmalcolm/gcc-refactoring-scripts
2533 revision 58bb219cc090b2f4516a9297d868c245495ee622
2535 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
2536 symtab_node_base to symtab_node.
2538 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
2540 Implement C++14 digit separators.
2541 * c-lex.c (interpret_float): Remove digit separators from scratch string
2542 before building real literal.
2544 2013-10-30 Jakub Jelinek <jakub@redhat.com>
2546 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
2548 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
2550 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
2552 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
2554 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
2555 (insert_cilk_frame): New prototype.
2556 (cilk_init_builtins): Likewise.
2557 (gimplify_cilk_spawn): Likewise.
2558 (c_cilk_install_body_w_frame_cleanup): Likewise.
2559 (cilk_detect_spawn_and_unwrap): Likewise.
2560 (cilk_set_spawn_marker): Likewise.
2561 (build_cilk_sync): Likewise.
2562 (build_cilk_spawn): Likewise.
2565 2013-10-29 David Malcolm <dmalcolm@redhat.com>
2567 Patch autogenerated by refactor_symtab.py from
2568 https://github.com/davidmalcolm/gcc-refactoring-scripts
2569 revision 58bb219cc090b2f4516a9297d868c245495ee622
2571 * c-gimplify.c (c_genericize): Update for conversion of symtab types
2572 to a true class hierarchy.
2573 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
2575 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
2577 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
2579 2013-10-26 Jeff Law <law@redhat.com>
2581 * c-common.c (c_define_builtins): Remove mudflap support.
2582 * c.opt: Ignore and warn for mudflap options.
2584 2013-10-24 Tobias Burnus <burnus@net-b.de>
2587 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
2588 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
2590 2013-10-23 Jason Merrill <jason@redhat.com>
2592 * c-format.c (gcc_cxxdiag_char_table): Add %X.
2594 2013-10-11 Jakub Jelinek <jakub@redhat.com>
2596 * c-common.h (omp_clause_mask::operator !=): New method.
2597 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
2598 instead of if (mask & something) tests everywhere.
2600 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
2601 201307 instead of 201107.
2602 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
2603 (c_common_attribute_table): Add "omp declare target" and
2604 "omp declare simd" attributes.
2605 (handle_omp_declare_target_attribute,
2606 handle_omp_declare_simd_attribute): New functions.
2607 * c-omp.c: Include c-pragma.h.
2608 (c_finish_omp_taskgroup): New function.
2609 (c_finish_omp_atomic): Add swapped argument, if true,
2610 build the operation first with rhs, lhs arguments and use NOP_EXPR
2612 (c_finish_omp_for): Add code argument, pass it down to make_code.
2613 (c_omp_split_clauses): New function.
2614 (c_split_parallel_clauses): Removed.
2615 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
2616 c_omp_declare_simd_clauses_to_decls): New functions.
2617 * c-common.h (omp_clause_mask): New type.
2618 (OMP_CLAUSE_MASK_1): Define.
2619 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
2620 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
2621 omp_clause_mask::operator |, omp_clause_mask::operator &,
2622 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
2623 omp_clause_mask::operator ==): New methods.
2624 (enum c_omp_clause_split): New.
2625 (c_finish_omp_taskgroup): New prototype.
2626 (c_finish_omp_atomic): Add swapped argument.
2627 (c_finish_omp_for): Add code argument.
2628 (c_omp_split_clauses): New prototype.
2629 (c_split_parallel_clauses): Removed.
2630 (c_omp_declare_simd_clauses_to_numbers,
2631 c_omp_declare_simd_clauses_to_decls): New prototypes.
2632 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
2633 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
2634 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
2635 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
2636 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
2637 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
2638 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
2639 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
2640 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
2641 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
2642 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
2643 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
2644 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
2645 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
2646 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2647 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2648 PRAGMA_OMP_CLAUSE_UNIFORM.
2650 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
2652 PR tree-optimization/20318
2653 * c-common.c (handle_returns_nonnull_attribute): New function.
2654 (c_common_attribute_table): Add returns_nonnull.
2656 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
2659 * c.opt (fcheck-new): Move to common.opt.
2661 2013-09-25 Marek Polacek <polacek@redhat.com>
2662 Jakub Jelinek <jakub@redhat.com>
2665 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2666 an expression if we can prove it is correct.
2667 (ubsan_instrument_division): Likewise. Remove unnecessary
2670 2013-09-18 Marek Polacek <polacek@redhat.com>
2673 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2675 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2677 2013-09-14 Iain Sandoe <iain@codesourcery.com>
2680 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2681 fobjc-gc, freplace-objc-classes): Accept for LTO.
2683 2013-09-13 Jacek Caban <jacek@codeweavers.com>
2685 * c-target.def: New hook
2687 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2690 * c.opt (Wdelete-incomplete): Add.
2692 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2694 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2695 (vector_types_compatible_elements_p): New function.
2696 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2698 (vector_types_compatible_elements_p): Declare.
2700 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2702 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2703 a virtual member function.
2704 (pp_simple_type_specifier): Remove.
2705 (pp_c_type_specifier): Likewise.
2706 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2707 Rename from pp_c_type_specifier. Adjust.
2708 (c_pretty_printer::c_pretty_printer): Do not assign to
2709 simple_type_specifier.
2711 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2713 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2715 (c_pretty_printer::storage_class_specifier): Likewise.
2716 (c_pretty_printer::initializer): Likewise.
2717 (pp_declaration): Remove.
2718 (pp_declaration_specifiers): Likewise.
2719 (pp_abstract_declarator): Likewise.
2720 (pp_declarator): Likewise.
2721 (pp_type_id): Likewise.
2722 (pp_statement): Likewise.
2723 (pp_constant): Likewise.
2724 (pp_id_expression): Likewise.
2725 (pp_primary_expression): Likewise.
2726 (pp_unary_expression): Likewise.
2727 (pp_multiplicative_expression): Likewise.
2728 (pp_conditional_expression): Likewise.
2729 (pp_assignment_expression): Likewise.
2730 (pp_expression): Likewise.
2731 (pp_c_type_id): Likewise.
2732 (pp_c_storage_class_specifier): Likewise.
2733 * c-pretty-print.c (pp_c_type_cast): Tidy.
2734 (pp_c_pointer): Likewise.
2735 (pp_c_type_specifier): Likewise.
2736 (pp_c_parameter_type_list): Likewise.
2737 (pp_c_function_definition): Likewise.
2738 (pp_c_init_declarator): Likewise.
2739 (pp_c_initializer_list): Likewise.
2740 (pp_c_constructor_elts): Likewise.
2741 (c_pretty_printer::direct_abstract_declarator): Likewise.
2742 (c_pretty_printer::declaration_specifiers): Likewise.
2743 (c_pretty_printer::primary_expression): Likewise.
2744 (c_pretty_printer::postfix_expression): Likewise.
2745 (c_pretty_printer::type_id): Rename from pp_c_type_id.
2746 (c_pretty_printer::storage_class_specifier): Rename from
2747 pp_c_storage_class_specifier.
2748 (c_pretty_printer::initializer): Rename from pp_c_initializer.
2749 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2750 storage_class_specifier, initializer, offset_list, flags.
2752 2013-08-30 Marek Polacek <polacek@redhat.com>
2754 * c-ubsan.c: New file.
2755 * c-ubsan.h: New file.
2757 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2759 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2761 (c_pretty_printer::declaration_specifiers): Likewise.
2762 (c_pretty_printer::declarator): Likewise.
2763 (c_pretty_printer::abstract_declarator): Likewise.
2764 (c_pretty_printer::direct_abstract_declarator): Likewise.
2765 (c_pretty_printer::direct_declarator): Likewise.
2766 (c_pretty_printer::function_specifier): Likewise.
2767 (pp_declaration): Adjust.
2768 (pp_declaration_specifiers): Likewise.
2769 (pp_abstract_declarator): Likewise.
2770 (pp_direct_declarator): Likewise.
2771 (pp_function_specifier): Likewise.
2772 (pp_direct_abstract_declarator): Remove as unused.
2773 (pp_c_declaration): Remove.
2774 (pp_c_declaration_specifiers): Likewise.
2775 (pp_c_declarator): Likewise.
2776 (pp_c_direct_declarator): Likewise.
2777 (pp_c_function_specifier): Likewise.
2778 (pp_c_direct_abstract_declarator): Likewise.
2779 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2780 from pp_c_abstract_declarator. Adjust.
2781 (c_pretty_printer::direct_abstract_declarator): Rename from
2782 pp_c_direct_abstract_declarator. Adjust.
2783 (c_pretty_printer::function_specifier): Rename from
2784 pp_c_function_specifier. Adjust.
2785 (c_pretty_printer::declaration_specifiers): Rename from
2786 pp_c_declaration_specifiers. Adjust.
2787 (c_pretty_printer::direct_declarator): Rename from
2788 pp_c_direct_declarator. Adjust.
2789 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
2790 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
2791 (c_pretty_printer::c_pretty_printer): Do not assign to
2792 declaration, declaration_specifiers, declarator,
2793 direct_declarator, direct_abstract_declarator, function_specifier.
2795 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
2797 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2798 virtual member function.
2799 (c_pretty_printer::multiplicative_expression): Likewise.
2800 (c_pretty_printer::conditional_expression): Likewise.
2801 (c_pretty_printer::assignment_expression): Likewise.
2802 (c_pretty_printer::expression): Likewise.
2803 (pp_unary_expression): Adjust.
2804 (pp_multiplicative_expression): Likewise.
2805 (pp_assignment_expression): Likewise.
2806 (pp_conditional_expression): Likewise.
2807 (pp_expression): Likewise.
2808 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2809 from pp_c_unary_expression. Adjust.
2810 (c_pretty_printer::multiplicative_expression): Rename from
2811 pp_c_multiplicative_expression. Adjust.
2812 (c_pretty_printer::conditional_expression): Rename from
2813 pp_c_conditional_expression. Adjust.
2814 (c_pretty_printer::assignment_expression): Rename from
2815 pp_c_assignment_expression. Adjust.
2816 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
2817 (c_pretty_printer::c_pretty_printer): Do not assign to
2818 unary_expression, multiplicative_expression,
2819 conditional_expression, expression.
2821 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2823 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2824 virtual member function.
2825 (pp_postfix_expression): Adjust.
2826 (pp_c_postfix_expression): Remove.
2827 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2828 from pp_c_postfix_expression. Adjust.
2829 (c_pretty_printer::c_pretty_printer): Do not assign to
2832 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2834 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2835 virtua member function.
2836 (pp_primary_expression): Adjust.
2837 (pp_c_primary_expression): Remove.
2838 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2839 from pp_c_primary_expression. Adjust.
2840 (pp_c_initializer_list): Use pp_primary_expression.
2841 (c_pretty_printer::c_pretty_printer): Do not assign to
2844 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2846 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2847 * c-pretty-print.c (M_): Remove.
2848 (c_pretty_printer::translate_string): Define.
2849 (pp_c_type_specifier): Use it.
2850 (pp_c_primary_expression): Likewise.
2851 (pp_c_expression): Likewise.
2853 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2855 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2857 (pp_c_id_expression): Remove.
2858 (pp_id_expression): Adjust.
2859 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2860 pp_c_id_expression. Adjust.
2861 (pp_c_postfix_expression): Use pp_id_expression.
2862 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2864 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2866 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2868 (pp_constant): Adjust.
2869 (pp_c_constant): Remove.
2870 * c-pretty-print.c (c_pretty_printer::constant): Rename from
2871 pp_c_constant. Adjust.
2873 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2874 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2876 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2878 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2879 (c_pretty_printer::c_pretty_printer): Declare.
2880 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2881 c_pretty_printer_init. Adjust.
2882 (print_c_tree): Do not call c_pretty_printer_init.
2883 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2885 2013-08-09 Arnaud Charlet <charlet@adacore.com>
2887 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2889 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
2892 * c-common.c (pointer_int_sum): Add bool parameter.
2893 * c-common.h (pointer_int_sum): Adjust declaration.
2895 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2897 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
2898 c_pretty_printer variable.
2900 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2902 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2904 (pp_c_base): Likewise. Adjust users.
2905 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2906 (pp_c_whitespace): Do not call pp_base.
2907 (pp_c_left_paren): Likewise.
2908 (pp_c_right_paren): Likewise.
2909 (pp_c_left_brace): Likewise.
2910 (pp_c_right_brace): Likewise.
2911 (pp_c_left_bracket): Likewise.
2912 (pp_c_right_bracket): Likewise.
2913 (pp_c_dot): Likewise.
2914 (pp_c_ampersand): Likewise.
2915 (pp_c_star): Likewise.
2916 (pp_c_arrow): Likewise.
2917 (pp_c_semicolon): Likewise.
2918 (pp_c_complement): Likewise.
2919 (pp_c_exclamation): Likewise.
2920 (pp_c_direct_declarator): Likewise.
2921 (pp_c_ws_string): Likewise.
2922 (pp_c_identifier): Likewise.
2923 (pp_c_statement): Likewise.
2924 (print_c_tree): Likewise.
2926 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
2929 * c-common.c (c_parse_error): Catch user-defined literal tokens and
2930 provide useful error strings.
2932 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2934 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2935 printer functions instead of pp_string or operators and punctuators.
2936 (dump_generic_ada_node): Likewise.
2937 * c-pretty-print.c (pp_c_type_specifier): Likewise.
2938 (pp_c_relational_expression): Likewise.
2939 (pp_c_logical_or_expression): Likewise.
2941 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2943 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2944 functions instead of pp_character.
2945 (pp_ada_tree_identifier): Likewise.
2946 (dump_ada_double_name): Likewise.
2947 (dump_ada_function_declaration): Likewise.
2948 (dump_ada_array_domains): Likewise.
2949 (dump_template_types): Likewise.
2950 (dump_generic_ada_node): Likewise.
2951 (print_ada_declaration): Likewise.
2952 (print_ada_struct_decl): Likewise.
2953 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2955 2013-07-23 Tom Tromey <tromey@redhat.com>
2957 * c-common.h (enum rid) <RID_GENERIC>: New constant.
2958 * c-common.c (c_common_reswords): Add _Generic.
2960 2013-07-21 OndÅej BÃlka <neleai@seznam.cz>
2962 * c-common.c: Fix typos.
2963 * c-common.h: Likewise.
2965 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
2968 * c-common.c (c_common_attribute_table): Add warn_unused.
2969 (handle_warn_unused_attribute): New.
2971 2013-07-10 Jakub Jelinek <jakub@redhat.com>
2973 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2974 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2976 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
2979 * c.opt: Add Wconditionally-supported.
2981 2013-07-08 Graham Stott <graham.stott@btinternet.com>
2983 * array-notation-common.c (length_mismatch_in_expr_p): Delete
2984 unused variables l_length and l_node.
2986 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
2989 * c-common.c (complete_array_type): Delay folding first index
2990 like other indices. When folding, check for index overflow.
2992 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
2995 * c-common.h (c_build_vec_perm_expr): New complain argument.
2996 * c-common.c (c_build_vec_perm_expr): Likewise.
2997 Use save_expr also in C++.
2999 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3001 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
3002 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3003 * c-opts.c (c_common_post_options): Likewise.
3005 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3007 * array-notation-common.c (length_mismatch_in_expr): Changed the
3008 parameter type's from a dynamic array to a vec_tree. Also removed
3009 the size parameters.
3010 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
3013 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3015 * c-common.h (struct cilkplus_an_parts): New structure.
3016 (struct cilkplus_an_loop_parts): Likewise.
3017 (cilkplus_extract_an_triplets): New prototype.
3018 (fix_sec_implicit_args): Likewise.
3019 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
3020 (fix_sec_implicit_args): Likewise.
3022 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
3024 * array-notation-common.c (find_inv_trees): Removed an unwanted
3026 * c-common.h (struct inv_list::additional_tcodes): Changed type from
3027 enum rid to enum tree_code.
3029 2013-06-11 Jan Hubicka <jh@suse.cz>
3031 * c-common.c (handle_alias_ifunc_attribute): Do not set
3032 DECL_EXTERNAL for weakref variables.
3033 * c-pragma.c (handle_pragma_weak): Make sure aliases
3034 are not declared as external.
3036 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3038 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
3039 function from c/c-array-notation.c.
3040 (is_cilkplus_reduce_builtin): Likewise.
3041 (find_rank): Likewise.
3042 (extract_array_notation_exprs): Likewise.
3043 (replace_array_notations): Likewise.
3044 (find_inv_trees): Likewise.
3045 (replace_inv_trees): Likewise.
3046 (contains_array_notation_expr): Likewise.
3047 (find_correct_array_notation_type): Likewise.
3048 * c-common.h (struct inv_list): Moved this struct from the file
3049 c/c-array-notation.c and added a new field called additional tcodes.
3050 (length_mismatch_in_expr_p): New prototype.
3051 (is_cilkplus_reduce_builtin): Likewise.
3052 (find_rank): Likewise.
3053 (extract_array_notation_exprs): Likewise.
3054 (replace_array_notation): Likewise.
3055 (find_inv_trees): Likewise.
3056 (replace_inv_trees): Likewise.
3057 (find_correct_array_notation_type): Likewise.
3059 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3061 * c-common.c (c_define_builtins): When cilkplus is enabled, the
3062 function array_notation_init_builtins is called.
3063 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
3064 * c-common.def (ARRAY_NOTATION_REF): New tree.
3065 * c-common.h (build_array_notation_expr): New function declaration.
3066 (build_array_notation_ref): Likewise.
3067 (extract_sec_implicit_index_arg): New extern declaration.
3068 (is_sec_implicit_index_fn): Likewise.
3069 (ARRAY_NOTATION_CHECK): New define.
3070 (ARRAY_NOTATION_ARRAY): Likewise.
3071 (ARRAY_NOTATION_START): Likewise.
3072 (ARRAY_NOTATION_LENGTH): Likewise.
3073 (ARRAY_NOTATION_STRIDE): Likewise.
3074 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
3076 (pp_c_expression): Likewise.
3077 * c.opt (flag_enable_cilkplus): New flag.
3078 * array-notation-common.c: New file.
3080 2013-05-14 Jakub Jelinek <jakub@redhat.com>
3083 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
3085 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
3087 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
3090 2013-05-07 Han Shen <shenhan@google.com>
3092 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
3094 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3096 * c-common.c (check_user_alignment): Emit error for negative values.
3098 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3100 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
3102 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3104 * c-cppbuiltin.c (c_cpp_builtins): Do not define
3105 __GXX_EXPERIMENTAL_CXX1Y__.
3107 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3108 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3110 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
3111 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
3112 to simply use OPT_Wpointer_arith.
3113 (c_sizeof_or_alignof_type): Likewise.
3115 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3117 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
3119 2013-04-12 Jakub Jelinek <jakub@redhat.com>
3121 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3122 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
3125 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
3127 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
3129 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
3131 * c-common.c (pointer_int_sum): Remove dead code.
3133 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3136 * c-common.c (handle_optimize_attribute): Don't call
3137 save_optabs_if_changed.
3139 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3142 * c-pch.c (pch_init): Free target_validity at the end.
3144 2013-03-04 Jakub Jelinek <jakub@redhat.com>
3146 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
3148 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3149 Jakub Jelinek <jakub@redhat.com>
3152 * c-common.c (handle_no_sanitize_address_attribute): New function.
3153 (c_common_attribute_table): Add no_sanitize_address attribute.
3154 (handle_no_address_safety_analysis_attribute): Add
3155 no_sanitize_address attribute, not no_address_safety_analysis
3158 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
3161 * c-common.c (handle_optimize_attribute): Call
3162 save_optabs_if_changed.
3164 2013-02-18 Jakub Jelinek <jakub@redhat.com>
3165 Steven Bosscher <steven@gcc.gnu.org>
3168 * c-opts.c (c_common_post_options): If debug info is enabled
3169 and non-dwarf*, refuse to load PCH files and when writing PCH
3172 2013-02-05 Jakub Jelinek <jakub@redhat.com>
3175 * c-common.c (handle_error_attribute): Fix condition.
3177 2013-01-30 Jakub Jelinek <jakub@redhat.com>
3180 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
3182 2013-01-18 Jason Merrill <jason@redhat.com>
3185 * c.opt (-fextern-tls-init): New.
3186 * c-opts.c (c_common_post_options): Handle it.
3188 2013-01-09 Jakub Jelinek <jakub@redhat.com>
3191 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
3192 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
3193 and is either negative or bigger or equal to type precision
3194 of the first operand.
3196 2012-12-03 Marek Polacek <polacek@redhat.com>
3199 * c-common.c (check_user_alignment): Swap order of tests,
3200 check TREE_CODE first.
3202 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
3205 * c-common.h (overflow_type): New enum.
3206 (build_userdef_literal): Add overflow_type argument.
3207 (tree_userdef_literal): Add overflow_type.
3208 (USERDEF_LITERAL_OVERFLOW): New access macro.
3209 * c-common.c (build_userdef_literal): Add overflow_type
3211 * c-lex.c (c_lex_with_flags): Add overflow_type to
3212 build_userdef_literal calls.
3213 (interpret_integer, interpret_float): Add overflow_type argument.
3215 2012-11-28 Richard Biener <rguenther@suse.de>
3218 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3219 here and use a type with proper overflow behavior for types that would
3220 need to be promoted for the arithmetic.
3222 2012-11-23 Jakub Jelinek <jakub@redhat.com>
3225 * c-common.c (handle_no_address_safety_analysis_attribute): New
3227 (c_common_attribute_table): Add no_address_safety_analysis.
3229 2012-11-16 Simon Baldwin <simonb@google.com>
3231 * c.opt: Add f[no-]canonical-system-headers.
3232 * c-opts.c (c_common_handle_option): Handle
3233 OPT_fcanonical_system_headers.
3235 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
3238 * c-opts.c (c_common_handle_option): Set new flags.
3239 * c.opt: Describe new flags.
3241 2012-11-09 Jason Merrill <jason@redhat.com>
3243 * c.opt (Wabi-tag): New.
3245 2012-11-09 Andi Kleen <ak@linux.intel.com>
3248 * c-common.c (get_atomic_generic_size): Mask with
3251 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3254 * c.opt (Wformat): Make it Alias Wformat=1.
3255 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
3256 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
3258 (Wformat=): RejectNegative. Use LangEnabledBy.
3259 (Wnonnull): Use LangEnabledBy.
3260 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
3261 * c-format.c (set_Wformat): Delete.
3262 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
3263 (maybe_read_dollar_number): Likewise.
3264 (avoid_dollar_number): Likewise.
3265 (finish_dollar_format_checking): Likewise.
3266 (check_format_info): Likewise.
3267 (check_format_info_main): Likewise.
3268 (check_format_types): Likewise.
3269 (format_type_warning): Likewise.
3270 * c-common.c (int): Likewise.
3271 (check_function_sentinel): Likewise.
3272 * c-common.h (warn_format,set_Wformat): Do not declare here.
3274 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3277 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
3278 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
3280 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
3282 (Wvariadic-macros): Init(1).
3283 * c-opts.c (c_common_handle_option): Do not handle them
3285 (c_common_post_options): Likewise.
3286 (sanitize_cpp_opts): warn_unused_macros is now
3287 cpp_warn_unused_macros.
3288 (push_command_line_include): Likewise.
3289 * c-common.c (warn_unknown_pragmas): Do not define.
3290 * c-common.h (warn_unknown_pragmas): Do not declare.
3292 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3295 * c-common.c (conversion_warning): Handle conditional expressions.
3297 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3300 * c.opt (Wreturn_local_addr): Define new option.
3302 2012-10-25 Jason Merrill <jason@redhat.com>
3304 * c.opt (Wvirtual-move-assign): New.
3306 * c.opt (Winherited-variadic-ctor): New.
3308 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
3311 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
3313 2012-10-23 Joseph Myers <joseph@codesourcery.com>
3315 * c-common.h (pch_cpp_save_state): Declare.
3316 * c-target.def (c_preinclude): New hook.
3317 * c-opts.c (done_preinclude): New.
3318 (push_command_line_include): Handle default preincluded header.
3319 (cb_file_change): Call pch_cpp_save_state when calling
3320 push_command_line_include.
3321 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
3322 (pch_cpp_save_state): New.
3323 (pch_init): Call pch_cpp_save_state conditionally, instead of
3324 calling cpp_save_state.
3326 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3330 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
3331 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
3332 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
3333 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
3334 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
3335 * c-opts.c (c_common_handle_option): Remove explicit handling from
3337 (c_common_post_options): Likewise.
3339 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
3341 * c-ada-spec.c (LOCATION_COL): Delete.
3342 (compare_location): New function.
3343 (compare_node): Use it.
3344 (compare_comment): Likewise.
3346 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3350 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
3351 * c-opts.c (c_common_handle_option): Do not set them here. Add
3353 (c_common_post_options): Likewise.
3355 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
3357 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
3358 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
3359 Remove POINTER_TYPE handling, add large unsigned handling and use
3360 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
3362 2012-10-12 Jakub Jelinek <jakub@redhat.com>
3365 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
3366 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
3367 locs and array of 3 trees instead of just single loc and single
3368 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
3369 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
3370 For *cmp* builtins that take two sources strings report warnings
3371 about first and second source, not about destination and source.
3373 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
3376 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
3378 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
3380 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
3381 declaring something coming from another file.
3383 2012-10-10 Arnaud Charlet <charlet@adacore.com>
3386 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
3388 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
3391 * c-common.c (warn_about_parentheses): Add location_t parameter;
3392 use EXPR_LOC_OR_LOC.
3393 * c-common.h: Update declaration.
3395 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
3398 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
3399 more operations. Make error messages optional.
3400 * c-common.h (enum stv_conv): Moved from c-typeck.c.
3401 (scalar_to_vector): Declare.
3403 2012-10-08 Jason Merrill <jason@redhat.com>
3405 * c-common.c (c_common_reswords): Add thread_local.
3407 2012-10-08 Dodji Seketeli <dodji@redhat.com>
3409 PR c++/53528 C++11 attribute support
3410 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
3412 * c-common.c (check_cxx_fundamental_alignment_constraints): New
3414 (handle_aligned_attribute): In choose strictest alignment
3415 among many. Use new check_cxx_fundamental_alignment_constraints.
3416 (handle_transparent_union_attribute): In c++11 attribute syntax,
3417 don't look through typedefs.
3419 2012-10-04 Arnaud Charlet <charlet@adacore.com>
3421 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
3422 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
3425 2012-09-25 Dehao Chen <dehao@google.com>
3428 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
3429 map when read in the pch.
3431 2012-09-18 Arnaud Charlet <charlet@adacore.com>
3433 * c-ada-spec.c: Style fixes.
3435 2012-09-18 Thomas Quinot <quinot@adacore.com>
3437 * c.opt (-fada-spec-parent): Define new command line switch.
3438 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
3439 is specified, generate binding spec as a child of the specified unit.
3441 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
3442 Manuel López-Ibáñez <manu@gcc.gnu.org>
3445 * c.opt ([Winit-self]): Enabled by -Wall in C++.
3447 2012-08-23 Arnaud Charlet <charlet@adacore.com>
3449 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
3450 for pointers, and add missing Convention C pragma.
3451 (print_ada_struct_decl): Add missing aliased keyword.
3452 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
3454 2012-08-17 Jakub Jelinek <jakub@redhat.com>
3456 * c-common.c (sizeof_pointer_memaccess_warning): New function.
3457 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
3458 * c-opts.c (c_common_handle_option): Enable it for -Wall.
3459 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
3460 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
3462 2012-08-10 Richard Guenther <rguenther@suse.de>
3464 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
3466 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
3468 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
3469 instead of separate pp_newline and pp_flush.
3470 (print_c_tree): Likewise.
3472 2012-07-26 Richard Henderson <rth@redhat.com>
3474 * c-common.c (handle_hot_attribute): Allow labels.
3475 (handle_cold_attribute): Likewise.
3477 2012-07-20 Jakub Jelinek <jakub@redhat.com>
3480 * c-common.c (check_function_nonnull): Handle multiple nonnull
3481 attributes properly.
3483 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3485 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
3486 * c-ada-spec.c: Likewise.
3487 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
3489 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
3491 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
3492 Remove code conditional on it.
3494 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
3496 * c-gimplify.c: Do not include basic-block.h.
3497 * c-common.c: Do not include linfuncs.h.
3499 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
3501 * c-common.h: Include tree.h.
3503 2012-07-02 Jason Merrill <jason@redhat.com>
3506 * c-common.c (get_priority): Call default_conversion.
3508 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
3510 * c-pch.c (c_common_write_pch): Remove unused variables.
3512 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
3514 * cppspec.c: Moved from gcc/ to here.
3516 2012-06-27 Kai Tietz <ktietz@redhat.com>
3518 PR preprocessor/37215
3519 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
3521 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
3523 * c-common.h (c_common_print_pch_checksum): Remove.
3524 * c-pch.c: Do not include output.h.
3525 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
3526 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
3527 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
3528 (struct c_pch_header): Remove.
3529 (get_ident): Update gpch version.
3530 (pch_init): Do not print executable_checksum to asm_out_file.
3531 Do not fail if there is no asm_out_file to read back from. Set
3532 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
3533 (c_common_write_pch): Verify that nothing was written to asm_out_file
3534 since pch_init was called. Do not write a c_pch_header, and do not
3535 copy from asm_out_file to the PCH.
3536 (c_common_read_pch): Do not read a c_pch_header, and do not restore
3537 the content of asm_out_file from the PCH.
3538 (c_common_print_pch_checksum): Remove.
3539 * c-opts.c (c_common_init): Print out executable_checksum directly.
3541 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3543 * c-target.def (objc_declare_unresolved_class_reference,
3544 objc_declare_class_definition): Add new hooks.
3546 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3548 * c-lex.c: Do not include output.h.
3549 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
3550 Remove uses of ASM_OUTPUT_IDENT.
3552 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
3555 * c-common.h (c_build_vec_perm_expr): Move decl here.
3556 * c-common.c (c_build_vec_perm_expr): Move definition
3559 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
3561 * c.opt (fconserve-space): Turn into a no-op.
3563 2012-06-04 Sterling Augustine <saugustine@google.com>
3565 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
3566 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
3567 both the start and end of the function.
3569 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3571 * c-common.c: Do not include output.h.
3572 * c-pragma.c: Likewise.
3574 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3576 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
3577 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
3578 (lang_decl_name): Handle namespace decls.
3580 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
3582 * c-ada-spec.c: Do not include output.h.
3583 * c-semantics.c: Likewise.
3585 2012-05-29 Joseph Myers <joseph@codesourcery.com>
3587 * c-common.c: Fix typo.
3589 2012-05-29 Michael Matz <matz@suse.de>
3591 * c-common.h (c_expand_decl): Remove prototype.
3593 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3595 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
3596 * c-opts.c (c_common_handle_option): Remove code handling
3597 warn_missing_braces.
3599 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
3602 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
3605 2012-05-22 Dodji Seketeli <dodji@redhat.com>
3608 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
3610 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3612 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
3613 * c-opts.c (c_common_handle_option): Do not handle explicitly
3614 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
3616 2012-05-16 Dodji Seketeli <dodji@redhat.com>
3618 PR preprocessor/7263
3619 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
3620 to cpp_classify_number. For diagnostics, use the precise location
3621 instead of the global input_location.
3623 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3626 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
3628 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
3630 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
3632 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
3635 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
3636 Wreorder): Use LangEnabledBy.
3637 * c-opts.c (c_common_handle_option): Do not enable them
3638 explicitly. Call lang-specific generated functions.
3639 (c_common_post_options): Do not set them here.
3641 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3643 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
3644 Wmissing-field-initializers,Wmissing-parameter-type,
3645 Wold-style-declaration,Woverride-init): Use EnabledBy.
3646 * c-opts.c (c_common_post_options): Do not set here explicitly.
3648 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3651 * c-opts.c (c_common_handle_option): Use handle_generated_option
3652 to enable sub-options.
3654 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
3657 * c-common.c (warnings_for_convert_and_check): Use warning_at.
3659 2012-05-10 Richard Guenther <rguenther@suse.de>
3661 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3662 adjust commentary about TYPE_IS_SIZETYPE types.
3664 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3667 * c-common.c (warn_logical_operator): Check that argument of
3668 integer_zerop is not NULL.
3670 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3673 * c-common.c (warn_logical_operator): Do not warn if either side
3674 is already true or false.
3676 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3679 * c-common.c (expr_original_type): New.
3680 (shorten_compare): Do not warn for enumeration types.
3682 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3684 * c.opt (fpermissive): Add Var(flag_permissive).
3686 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
3689 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3690 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3692 2012-04-30 Dodji Seketeli <dodji@redhat.com>
3694 Add -Wvarargs option
3695 * c.opt (Wvarargs): Define new option.
3697 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3699 * c-common.c (check_function_arguments): Replace
3700 Wmissing-format-attribute with Wsuggest-attribute=format.
3702 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3704 * c.opt (Wsuggest-attribute=format): New. Alias of
3705 Wmissing-format-attribute.
3706 * c-format.c (decode_format_type): Replace
3707 Wmissing-format-attribute with Wsuggest-attribute=format.
3708 (check_function_format): Likewise.
3710 2012-04-27 Ollie Wild <aaw@google.com>
3712 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3713 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3714 * c.opt: Add Wliteral-suffix.
3716 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3719 * c.opt (Wpedantic): New.
3720 (pedantic): Alias Wpedantic.
3721 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3722 (c_common_post_options): Likewise.
3723 (sanitize_cpp_opts): Likewise.
3724 * c-lex.c (interpret_float): Likewise.
3725 * c-format.c (check_format_types): Likewise.
3726 * c-common.c (pointer_int_sum): Likewise.
3727 (c_sizeof_or_alignof_type): Likewise.
3728 (c_add_case_label): Likewise.
3729 (c_do_switch_warnings): Likewise.
3730 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3732 2012-04-15 Jason Merrill <jason@redhat.com>
3735 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3736 (C_STD_NAME): Distinguish between C++98 and C++11.
3738 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3741 * c-common.h (uint16_type_node): Rename into...
3742 (c_uint16_type_node): ...this.
3743 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3744 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3746 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3748 * c-common.c (warn_if_unused_value): Move definition to here.
3749 * c-common.h (warn_if_unused_value): Move declaration to here.
3751 2012-03-23 William Bader <williambader@hotmail.com>
3753 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3755 2012-03-20 Jason Merrill <jason@redhat.com>
3757 * c-common.h (enum cxx_dialect): Add cxx1y.
3758 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3760 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3761 * c-opts.c (c_common_post_options): Likewise.
3762 (set_std_cxx1y): New.
3763 (c_common_handle_option): Call it.
3764 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3766 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
3769 * c.opt ([Wuseless-cast]): Add.
3771 2012-03-16 Richard Guenther <rguenther@suse.de>
3773 * c-pretty-print.c (pp_c_initializer_list): Adjust.
3775 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3778 * c.opt (ftemplate-backtrace-limit) Add.
3780 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3782 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3784 * c-pragma.c (handle_pragma_extern_prefix): Remove.
3785 (init_pragma): Don't register extern_prefix.
3787 2012-03-12 Richard Guenther <rguenther@suse.de>
3789 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3790 (builtin_type_for_size): Likewise.
3792 2012-02-13 Jakub Jelinek <jakub@redhat.com>
3795 * c-common.c (sync_resolve_params): Don't decide whether to convert
3796 or not based on TYPE_SIZE comparison, convert whenever arg_type
3797 is unsigned INTEGER_TYPE.
3799 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
3802 * c.opt ([Wunused-local-typedefs]): Fix description.
3804 2012-01-24 Mike Stump <mikestump@comcast.net>
3806 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3809 2012-01-18 Richard Guenther <rguenther@suse.de>
3811 * c-opts.c (c_common_post_options): Reset LTO flags if
3812 we are about to generate a PCH.
3814 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
3817 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3818 use pp_unsigned_wide_integer.
3820 2012-01-10 Richard Guenther <rguenther@suse.de>
3823 * c-opts.c (c_common_handle_option): Move -Werror handling
3824 to language independent code.
3826 2012-01-05 Richard Guenther <rguenther@suse.de>
3829 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3832 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
3835 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3836 of array types with an unknown bound.
3838 2011-12-20 Joseph Myers <joseph@codesourcery.com>
3840 * c-common.c (flag_isoc99): Update comment to refer to C11.
3841 (flag_isoc1x): Change to flag_isoc11.
3842 * c-common.h (flag_isoc99): Update comment to refer to C11.
3843 (flag_isoc1x): Change to flag_isoc11.
3844 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3846 * c-opts.c (set_std_c1x): Change to set_std_c11.
3847 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3849 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3850 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3851 * c.opt (std=c1x): Change to std=c11. Document as non-draft
3853 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3854 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
3855 (std=gnu1x): Make alias of std=gnu11.
3857 2011-12-19 Jason Merrill <jason@redhat.com>
3860 * c-common.c (handle_transparent_union_attribute): Check the first
3861 field if the type is complete.
3863 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3866 * c-common.c (RID_IS_FINAL): Add.
3867 * c-common.h (RID_IS_FINAL): Add.
3869 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
3871 * c.opt (fgnu-runtime): Provide full description.
3872 (fnext-runtime): Likewise.
3873 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3875 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
3877 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
3878 predefines in one place. Add LOCK_FREE predefines.
3879 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3882 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
3885 * c-common.c (get_atomic_generic_size): Check for various error
3887 (resolve_overloaded_atomic_exchange,
3888 resolve_overloaded_atomic_compare_exchange,
3889 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3890 error_mark_node for error conditions.
3892 2011-11-08 Richard Guenther <rguenther@suse.de>
3897 2011-11-07 Richard Henderson <rth@redhat.com>
3898 Aldy Hernandez <aldyh@redhat.com>
3899 Torvald Riegel <triegel@redhat.com>
3901 Merged from transactional-memory.
3903 * c-common.c (handle_tm_wrap_attribute,
3904 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3905 (struct c_common_reswords): Added __transaction* keywords.
3906 (struct c_common_attribute_table): Added transaction* and tm_regparm
3908 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3910 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3911 find_tm_attribute): Declare.
3913 2011-11-07 Jason Merrill <jason@redhat.com>
3916 * c-common.c, c-common.h: Revert yesterday's changes.
3918 2011-11-06 Jason Merrill <jason@redhat.com>
3921 * c-common.c (decl_has_visibility_attr): Split out from...
3922 (c_determine_visibility): ...here.
3923 * c-common.h: Declare it.
3925 2011-11-06 Joseph Myers <joseph@codesourcery.com>
3927 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3928 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3930 (check_user_alignment): New. Split out of
3931 handle_aligned_attribute. Disallow integer constants with
3932 noninteger types. Conditionally allow zero.
3933 (handle_aligned_attribute): Use check_user_alignment.
3934 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3936 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
3937 Richard Henderson <rth@redhat.com>
3939 Merged from cxx-mem-model.
3941 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
3942 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
3943 parameters that are the same type size.
3944 (get_atomic_generic_size): New. Find size of generic
3945 atomic function parameters and do typechecking.
3946 (add_atomic_size_parameter): New. Insert size into parameter list.
3947 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3948 either __atomic_exchange_n or external library call.
3949 (resolve_overloaded_atomic_compare_exchange): Restructure
3950 __atomic_compare_exchange to either _n variant or external library call.
3951 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
3952 __atomic_load_n or an external library call.
3953 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3954 __atomic_store_n or an external library call.
3955 (resolve_overloaded_builtin): Handle new __atomic builtins.
3957 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3960 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3961 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
3962 <INDIRECT_REF>: Return the argument.
3963 <ARRAY_REF>: Remove special code for negative offset.
3964 Call fold_build_pointer_plus instead of size_binop.
3965 (fold_offsetof): Remove STOP_REF argument and adjust.
3966 * c-common.h (fold_offsetof_1): Declare.
3967 (fold_offsetof): Remove STOP_REF argument.
3969 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
3972 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3973 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3974 Wnarrowing for C++0x and C++98.
3975 * c.opt ([Wnarrowing]): Update.
3977 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
3980 * c.opt: Add Wzero-as-null-pointer-constant.
3982 2011-10-31 Jason Merrill <jason@redhat.com>
3984 * c.opt (-fdeduce-init-list): Off by default.
3987 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3988 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3990 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3992 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
3995 * c.opt (fvisibility-inlines-hidden): Description change.
3997 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
3999 Implement C++11 user-defined literals.
4000 * c-common.c (build_userdef_literal): New.
4001 * c-common.def: New tree code.
4002 * c-common.h (tree_userdef_literal): New tree struct and accessors.
4003 * c-lex.c (interpret_float): Add suffix parm.
4004 (c_lex_with_flags): Build literal tokens.
4006 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4010 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4013 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4014 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4015 Wnarrowing for C++0x and C++98.
4016 * c.opt ([Wnarrowing]): Update.
4018 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4021 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4022 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4023 Wnarrowing for C++0x and C++98.
4024 * c.opt ([Wnarrowing]): Update.
4026 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
4029 * c-common.c (conversion_warning): Remove code looking for
4030 artificial operands.
4032 2011-10-18 Dodji Seketeli <dodji@redhat.com>
4035 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
4036 !NO_IMPLICIT_EXTERN_C.
4038 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
4040 * c-common.c (c_common_reswords): Add __bases,
4042 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
4044 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
4047 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
4049 2011-10-15 Tom Tromey <tromey@redhat.com>
4050 Dodji Seketeli <dodji@redhat.com>
4052 * c.opt (fdebug-cpp): New option.
4053 * c-opts.c (c_common_handle_option): Handle the option.
4054 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
4055 output stream in parameter. Factorized from ...
4056 (maybe_print_line): ... this. Dump location debug information when
4057 -fdebug-cpp is in effect.
4058 (print_line_1): New static function. Takes an output stream in
4059 parameter. Factorized from ...
4060 (print_line): ... here. Dump location information when -fdebug-cpp
4062 (scan_translation_unit): Dump location information when
4063 -fdebug-cpp is in effect.
4065 2011-10-15 Tom Tromey <tromey@redhat.com>
4066 Dodji Seketeli <dodji@redhat.com>
4068 * c.opt (ftrack-macro-expansion): New option. Handle it with and
4070 * c-opts.c (c_common_handle_option)<case
4071 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
4072 cases. Handle -ftrack-macro-expansion with and without argument.
4074 2011-10-15 Tom Tromey <tromey@redhat.com>
4075 Dodji Seketeli <dodji@redhat.com>
4077 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
4078 (print_line, cb_define, do_line_change): Adjust to avoid touching
4079 the internals of struct line_map. Use the public API instead.
4080 * c-pch.c (c_common_read_pch): Likewise.
4081 * c-lex.c (fe_file_change): Likewise.
4083 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4086 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
4088 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
4091 * c-pretty-print.c (pp_c_floating_constant): Output
4092 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
4094 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4096 * c-common.c (def_builtin_1): Delete old interface with two
4097 parallel arrays to hold standard builtin declarations, and replace
4098 it with a function based interface that can support creating
4099 builtins on the fly in the future. Change all uses, and poison
4100 the old names. Make sure 0 is not a legitimate builtin index.
4101 * c-omp.c (c_finish_omp_barrier): Ditto.
4102 (c_finish_omp_taskwait): Ditto.
4103 (c_finish_omp_flush): Ditto.
4105 2011-10-11 Tristan Gingold <gingold@adacore.com>
4107 * c.opt: (fallow-parameterless-variadic-functions): New.
4109 2011-09-08 Dodji Seketeli <dodji@redhat.com>
4111 PR c++/33255 - Support -Wunused-local-typedefs warning
4112 * c-common.h (struct c_language_function::local_typedefs): New
4114 (record_locally_defined_typedef, maybe_record_typedef_use)
4115 (maybe_warn_unused_local_typedefs): Declare new functions.
4116 * c-common.c (record_locally_defined_typedef)
4117 (maybe_record_typedef_use)
4118 (maybe_warn_unused_local_typedefs): Define new functions.
4119 * c.opt: Declare new -Wunused-local-typedefs flag.
4121 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
4124 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
4127 2011-09-05 Richard Guenther <rguenther@suse.de>
4129 * c-common.c (complete_array_type): Use ssize_int (-1) instead
4130 of integer_minus_one_node for empty array upper bounds.
4132 2011-08-28 Dodji Seketeli <dodji@redhat.com>
4134 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
4135 it's the first time it's being called on this main TU.
4137 2011-08-24 Richard Guenther <rguenther@suse.de>
4140 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
4142 2011-08-22 Gabriel Charette <gchare@google.com>
4144 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
4145 defined in cpp_init_builtins and c_cpp_builtins.
4147 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4149 * c-common.c (c_common_reswords): Add __builtin_complex.
4150 * c-common.h (RID_BUILTIN_COMPLEX): New.
4152 2011-08-18 Joseph Myers <joseph@codesourcery.com>
4154 * c-common.c (c_common_reswords): Add _Noreturn.
4155 (keyword_is_function_specifier): Handle RID_NORETURN.
4156 * c-common.h (RID_NORETURN): New.
4158 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4160 * c-common.c (unsafe_conversion_p): New function. Check if it is
4161 unsafe to convert an expression to the type.
4162 (conversion_warning): Adjust, use unsafe_conversion_p.
4163 * c-common.h (unsafe_conversion_p): New function declaration.
4165 2011-08-02 Jakub Jelinek <jakub@redhat.com>
4167 * c-common.h (c_finish_omp_atomic): Adjust prototype.
4168 (c_finish_omp_taskyield): New prototype.
4169 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
4170 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
4171 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
4172 or RHS1 have side-effects, evaluate those too in the right spot,
4173 if it is a decl and LHS is also a decl, error out if they
4175 (c_finish_omp_taskyield): New function.
4176 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
4177 * c-pragma.c (omp_pragmas): Add taskyield.
4178 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
4179 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
4180 PRAGMA_OMP_CLAUSE_MERGEABLE.
4182 2011-07-25 Dodji Seketeli <dodji@redhat.com>
4184 * c-common.h (set_underlying_type): Remove parm name from
4187 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
4189 * c-pretty-print.h: Search c-common.h in c-family.
4191 2011-07-22 Jason Merrill <jason@redhat.com>
4194 * c.opt (Wnarrowing): New.
4197 * c-common.h: Declare c_linkage_bindings.
4198 * c-pragma.c (handle_pragma_redefine_extname): Use it.
4201 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
4202 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
4203 as flag_isoc99 for 'restrict'.
4204 (pp_c_specifier_qualifier_list): Likewise for _Complex.
4206 2011-07-21 Ian Lance Taylor <iant@google.com>
4209 * c-common.c (c_disable_warnings): New static function.
4210 (c_enable_warnings): New static function.
4211 (c_fully_fold_internal): Change local unused_p to bool. Call
4212 c_disable_warnings and c_enable_warnings rather than change
4213 c_inhibit_evaluation_warnings.
4215 2011-07-20 Jason Merrill <jason@redhat.com>
4217 PR c++/6709 (DR 743)
4218 PR c++/42603 (DR 950)
4219 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
4220 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
4221 (CPP_DECLTYPE): New.
4222 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
4224 2011-07-19 Richard Guenther <rguenther@suse.de>
4226 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
4227 * c-omp.c (c_finish_omp_for): Likewise.
4229 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
4231 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
4232 body on the next line.
4234 2011-07-08 Jason Merrill <jason@redhat.com>
4237 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
4240 * c-common.c (c_apply_type_quals_to_decl): Don't check
4241 TYPE_NEEDS_CONSTRUCTING.
4243 2011-07-06 Richard Guenther <rguenther@suse.de>
4245 * c-common.c (c_common_nodes_and_builtins):
4246 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
4248 2011-07-05 Richard Guenther <rguenther@suse.de>
4250 * c-common.c (c_common_nodes_and_builtins): Build all common
4253 2011-06-27 Jakub Jelinek <jakub@redhat.com>
4255 * c-common.h (c_tree_chain_next): New static inline function.
4257 * c-common.c (check_builtin_function_arguments): Handle
4258 BUILT_IN_ASSUME_ALIGNED.
4260 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
4262 * c-common.c: Add sync_ or SYNC__ to builtin names.
4263 * c-omp.c: Add sync_ or SYNC__ to builtin names.
4265 2011-06-20 Pierre Vittet <piervit@pvittet.com>
4267 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
4269 (gen_pragma_handler): New union.
4270 (internal_pragma_handler): New type.
4271 (c_register_pragma_with_data)
4272 (c_register_pragma_with_expansion_and_data): New functions.
4274 * c-pragma.c (registered_pragmas, c_register_pragma_1)
4275 (c_register_pragma, c_register_pragma_with_expansion)
4276 (c_invoke_pragma_handler): Changed to work with
4277 internal_pragma_handler.
4278 (c_register_pragma_with_data)
4279 (c_register_pragma_with_expansion_and_data): New functions.
4281 2011-06-14 Joseph Myers <joseph@codesourcery.com>
4283 * c-common.c: Include common/common-target.h.
4284 (handle_section_attribute): Use
4285 targetm_common.have_named_sections.
4286 * c-cppbuiltin.c: Include common/common-target.h.
4287 (c_cpp_builtins): Use targetm_common.except_unwind_info.
4289 2011-06-10 Richard Guenther <rguenther@suse.de>
4291 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
4292 to print a IDENTIFIER_NODE.
4294 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4295 Joseph Myers <joseph@codesourcery.com>
4297 * c.opt (fbuilding-libgcc): New option.
4298 * c-cppbuiltin.c (c_cpp_builtins): Define
4299 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
4301 2011-06-07 Jason Merrill <jason@redhat.com>
4303 * c-common.c (max_tinst_depth): Lower default to 900.
4305 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
4307 2011-06-07 Richard Guenther <rguenther@suse.de>
4309 * c-common.c (c_common_nodes_and_builtins): Do not set
4310 size_type_node or call set_sizetype.
4312 2011-06-07 Dodji Seketeli <dodji@redhat.com>
4315 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
4316 type when using pointer comparison to compare types.
4318 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
4320 * c.opt: Add -Wdelete-non-virtual-dtor.
4321 * c-opts.c (c_common_handle_option): Include it in -Wall.
4323 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4328 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4330 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4333 2011-05-27 Jakub Jelinek <jakub@redhat.com>
4336 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
4337 C++ don't call c_common_truthvalue_conversion on void type arms.
4339 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4341 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
4342 (stmt_list_stack): Define.
4343 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
4344 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
4346 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4348 * c-common.c (warning_candidate_p): Check for BLOCKs.
4350 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4352 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4355 2011-05-25 Jakub Jelinek <jakub@redhat.com>
4357 * c-common.c (def_fn_type): Remove extra va_end.
4359 2011-05-23 Jason Merrill <jason@redhat.com>
4362 * c-common.c (c_common_get_narrower): New.
4363 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
4365 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4367 * c-common.h (check_function_arguments): Tweak prototype of
4368 check_function_arguments.
4369 * c-common.c (check_function_arguments): Likewise. Adjust
4370 calls to check_function_nonnull, check_function_format, and
4371 check_function_sentinel.
4372 (check_function_sentinel): Take a FUNCTION_TYPE rather than
4373 separate attributes and typelist arguments. Use
4374 FOREACH_FUNCTION_ARGS to iterate over argument types.
4376 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4378 * c-common.c (c_common_reswords): Reorder.
4379 * c-common.h (rid): Likewise.
4381 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4383 * c-common.c (def_fn_type): Don't call build_function_type, call
4384 build_function_type_array or build_varargs_function_type_array
4386 (c_common_nodes_and_builtins): Likewise.
4388 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4390 * c-common.c (c_add_case_label): Omit the loc argument to
4392 * c-common.h (build_case_label): Remove.
4393 * c-semantics.c (build_case_label): Remove.
4395 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4397 * c-objc.h (objc_start_method_definition): Update prototype.
4398 * stub-objc.c (objc_start_method_definition): Add extra parameter.
4400 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4402 * c-common.c (check_main_parameter_types): Reindent. Don't use
4403 TYPE_ARG_TYPES directly.
4404 (handle_nonnull_attribute): Likewise.
4405 (sync_resolve_params): Likewise.
4406 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
4407 to check_format_string.
4408 (handle_format_attribute): Likewise.
4409 (check_format_string): Take a function type to examine instead of
4410 a type list. Use a function_arg_iterator to step through argument
4413 2011-05-04 Richard Guenther <rguenther@suse.de>
4415 * c-common.c (fix_string_type): Use size_int for index type bounds.
4416 (start_fname_decls): Do not pass NULL to build_int_cst.
4417 (c_init_attributes): Likewise.
4418 * c-lex.c (c_lex_with_flags): Likewise.
4420 2011-04-27 Jason Merrill <jason@redhat.com>
4422 * c-common.c (make_tree_vector_from_list): New.
4423 * c-common.h: Declare it.
4425 2011-04-26 Richard Guenther <rguenther@suse.de>
4427 PR preprocessor/48248
4428 * c-ppoutput.c (maybe_print_line): Always optimize newlines
4429 for output size with -P.
4431 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4433 * c-common.c (struct c_common_resword): Add __underlying_type.
4434 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
4436 2011-04-20 Jim Meyering <meyering@redhat.com>
4438 * c-format.c (init_dollar_format_checking): Remove useless
4441 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4443 * c-objc.h (objc_get_interface_ivars): Removed.
4444 (objc_detect_field_duplicates): New.
4445 * stub-objc.c: Likewise.
4447 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4449 * stub-objc.c (objc_declare_protocols): Renamed to
4450 objc_declare_protocol.
4451 * c-objc.h: Likewise.
4453 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4455 * stub-objc.c (objc_declare_class): Updated argument name.
4457 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4459 * c-common.h (c_common_init_ts): Declare.
4460 * c-common.c (c_common_init_ts): Define.
4462 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4464 * c-objc.h (objc_build_message_expr): Updated prototype.
4465 * stub-objc.c (objc_build_message_expr): Likewise.
4467 2011-04-12 Martin Jambor <mjambor@suse.cz>
4469 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
4472 2011-04-11 Richard Guenther <rguenther@suse.de>
4474 * c-common.c (complete_array_type): Build a range type of
4477 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4479 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
4480 (handle_type_generic_attribute): Likewise.
4482 2011-04-07 Jason Merrill <jason@redhat.com>
4485 * c-common.c (c_common_truthvalue_conversion): Don't ignore
4486 conversion from C++0x scoped enum.
4488 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4490 * c-target-def.h: New file.
4491 * c-target.def: New file.
4492 * c-target.h: New file.
4493 * c-common.c (targetcm): Don't define here.
4494 * c-common.h (default_handle_c_option): Declare.
4495 * c-format.c: Include c-target.h instead of target.h.
4496 * c-opts.c: Include c-target.h instead of target.h. Explicitly
4498 (default_handle_c_option): Move from targhooks.c.
4500 2011-03-29 Jakub Jelinek <jakub@redhat.com>
4502 PR preprocessor/48248
4503 * c-ppoutput.c (print): Add src_file field.
4504 (init_pp_output): Initialize it.
4505 (maybe_print_line): Don't optimize by adding up to 8 newlines
4506 if map->to_file and print.src_file are different file.
4507 (print_line): Update print.src_file.
4509 2011-03-25 Kai Tietz <ktietz@redhat.com>
4511 * c-ada-spec.c (compare_comment): Use filename_cmp
4512 instead of strcmp for filename.
4514 2011-03-25 Jeff Law <law@redhat.com>
4516 * c-common.c (def_fn_type): Add missing va_end.
4518 2011-03-25 Jason Merrill <jason@redhat.com>
4520 * c.opt: Add -std=c++03.
4522 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4524 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
4526 2011-03-17 Kai Tietz
4529 * c-pretty-print.c (pp_c_specifier_qualifier_list):
4530 Display allowed attributes for function pointer types.
4531 (pp_c_attributes_display): New function to display
4532 attributes having affects_type_identity flag set to true.
4533 * c-pretty-print.h (pp_c_attributes_display): New prototype.
4535 * c-common.c (c_common_attribute_table):
4537 (c_common_format_attribute_table): Likewise.
4539 2011-03-18 Jason Merrill <jason@redhat.com>
4541 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
4542 * c-common.h: Don't declare it here.
4543 * c-common.c: Or define it here.
4544 * c-opts.c (c_common_handle_option): Or set it here.
4547 * c-common.c (handle_transparent_union_attribute): Don't
4548 make a duplicate type in C++.
4550 2011-03-15 Jason Merrill <jason@redhat.com>
4552 * c-common.c (max_constexpr_depth): New.
4553 * c-common.h: Declare it.
4554 * c-opts.c (c_common_handle_option): Set it.
4555 * c.opt (fconstexpr-depth): New option.
4557 2011-03-11 Jason Merrill <jason@redhat.com>
4559 * c-common.c (attribute_takes_identifier_p): Add missing const.
4562 * c-common.c (attribute_takes_identifier_p): Assume that an
4563 unknown attribute takes an identifier.
4565 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
4568 * c-common.c (c_type_hash): Call list_length instead of iterating
4569 through DECL_CHAIN. Rename 'i' to 'n_elements'.
4571 2011-02-19 Jakub Jelinek <jakub@redhat.com>
4574 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
4576 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4578 * c.opt (fobjc-abi-version=) New.
4579 (fobjc-nilcheck): New.
4581 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
4584 * c-common.h (keyword_is_decl_specifier): Declare.
4585 * c-common.c (keyword_is_decl_specifier): Define.
4586 (keyword_is_function_specifier): New function.
4588 2011-01-26 Jakub Jelinek <jakub@redhat.com>
4591 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
4592 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
4595 2011-01-26 Arnaud Charlet <charlet@adacore.com>
4597 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
4599 2011-01-26 Jakub Jelinek <jakub@redhat.com>
4602 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
4603 after init_c_lex if pch_file is set.
4605 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
4608 * c.opt (-fkeep-inline-dllexport): New switch.
4610 2011-01-12 Richard Guenther <rguenther@suse.de>
4613 * c-common.c (handle_weak_attribute): Warn instead of error
4614 on declaring an inline function weak.
4616 2011-01-05 Tom Tromey <tromey@redhat.com>
4618 * c-common.h (lvalue_error): Update.
4619 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
4622 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
4625 * c-objc.h (objc_finish_message_expr): Added argument to
4628 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
4630 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
4633 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
4635 * c-objc.h (objc_maybe_warn_exceptions): New.
4636 * stub-objc.c (objc_maybe_warn_exceptions): New.
4638 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
4640 * c-common.h (readonly_error): Declare.
4641 * c-common.c (readonly_error): Define.
4643 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
4645 * c-common.h (invalid_indirection_error): Declare.
4646 * c-common.c (invalid_indirection_error): Define.
4648 2010-12-03 Richard Guenther <rguenther@suse.de>
4651 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4652 (pp_c_unary_expression): Likewise.
4653 (pp_c_expression): Likewise.
4655 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
4657 * c-common.h (objc_finish_function): New.
4658 (objc_non_volatilized_type): Removed.
4659 (objc_type_quals_match): Removed.
4660 * stub-objc.c (objc_finish_function): New.
4661 (objc_non_volatilized_type): Removed.
4662 (objc_type_quals_match): Removed.
4664 2010-11-30 Joseph Myers <joseph@codesourcery.com>
4666 * c-common.h (parse_optimize_options): Declare.
4667 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4668 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4670 2010-11-29 Joseph Myers <joseph@codesourcery.com>
4672 * c-opts.c (check_deps_environment_vars): Use getenv instead of
4674 * c-pch.c (O_BINARY): Don't define here.
4675 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4677 2010-11-25 Joseph Myers <joseph@codesourcery.com>
4679 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4680 targetm.except_unwind_info.
4682 2010-11-23 Joseph Myers <joseph@codesourcery.com>
4684 * c-opts.c (c_common_handle_option): Pass location to
4685 set_struct_debug_option.
4687 2010-11-23 Joseph Myers <joseph@codesourcery.com>
4689 * c-common.c (visibility_options): Move from ../opts.c.
4690 * c-common.h (struct visibility_flags, visibility_options):
4692 * c-opts.c (finish_options): Rename to c_finish_options.
4693 (c_common_init): Update call to finish_options.
4695 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
4698 * c-lex.c (lex_string): Check that each string in an Objective-C
4699 string concat sequence starts with either one or zero '@', and
4700 that there are no spurious '@' signs at the end.
4702 2010-11-20 Joseph Myers <joseph@codesourcery.com>
4704 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4705 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4706 HANDLE_PRAGMA_VISIBILITY.
4707 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4708 HANDLE_PRAGMA_VISIBILITY): Don't define.
4709 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4711 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
4716 * c-common.h (keyword_begins_type_specifier): Declare.
4717 (keyword_is_storage_class_specifier): Declare.
4718 (keyword_is_type_qualifier): Declare.
4719 * c-common.c (keyword_begins_type_specifier): New function.
4720 (keyword_is_storage_class_specifier): New function.
4721 (keyword_is_type_qualifier): Declare.
4723 2010-11-19 Joseph Myers <joseph@codesourcery.com>
4726 * c-common.c (in_late_binary_op): Define.
4727 (c_common_truthvalue_conversion): Check in_late_binary_op before
4728 calling c_save_expr.
4729 * c-common.h (in_late_binary_op): Declare.
4731 2010-11-19 Joseph Myers <joseph@codesourcery.com>
4733 * c-opts.c (c_common_handle_option): Update calls to
4734 set_struct_debug_option.
4736 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
4738 * c-common.h (objc_declare_protocols): Added additional argument.
4739 * stub-objc.c (objc_declare_protocol): Same change.
4741 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
4744 * c-common.h (build_real_imag_expr): Declare.
4745 * c-semantics.c (build_real_imag_expr): Define.
4747 2010-11-17 Joseph Myers <joseph@codesourcery.com>
4749 * c-opts.c (c_common_parse_file): Take no arguments.
4750 * c-common.h (c_common_parse_file): Update prototype.
4752 2010-11-16 Jakub Jelinek <jakub@redhat.com>
4755 * c-common.c (warning_candidate_p): Don't track non-const calls
4758 2010-11-15 Ian Lance Taylor <iant@google.com>
4760 * c-lex.c (init_c_lex): Set macro debug callbacks if
4761 flag_dump_go_spec is set.
4763 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4765 * c-common.h (objc_build_incr_expr_for_property_ref): New.
4766 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4768 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
4770 PR preprocessor/45038
4771 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4774 2010-11-12 Joseph Myers <joseph@codesourcery.com>
4776 * c-common.h (c_family_lang_mask): Declare.
4777 * c-opts.c (c_family_lang_mask): Make extern.
4778 * c-pragma.c (handle_pragma_diagnostic): Use
4779 control_warning_option.
4781 2010-11-12 Joseph Myers <joseph@codesourcery.com>
4783 * c-common.c (parse_optimize_options): Update call to
4785 * c-common.h (c_common_handle_option): Update prototype.
4786 * c-opts.c (c_common_handle_option): Take location_t parameter and
4787 pass it to other functions.
4789 2010-11-11 Joseph Myers <joseph@codesourcery.com>
4791 * c-opts.c (warning_as_error_callback): Remove.
4792 (c_common_initialize_diagnostics): Don't call
4793 register_warning_as_error_callback.
4794 (c_common_handle_option): Handle -Werror=normalized= here.
4796 2010-11-10 Joseph Myers <joseph@codesourcery.com>
4798 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4800 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4802 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4803 Remove trailing '.' from diagnostics.
4804 * c.opt (Wwrite-strings_: Avoid '`' in help text.
4806 2010-11-10 Joseph Myers <joseph@codesourcery.com>
4808 * c-common.c (parse_optimize_options): Pass global_dc to
4810 * c-opts.c (c_common_handle_option): Pass &global_options to
4811 set_Wstrict_aliasing.
4812 * c.opt (v): Don't mark Common or document here.
4814 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
4817 * c-format.c (format_type): New type gcc_objc_string_format_type.
4818 (valid_stringptr_type_p): New.
4819 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
4820 (check_format_string): Pass expected type, use
4821 valid_stringptr_type_p (), check that the format string types are
4822 consistent with the format specification.
4823 (decode_format_attr): Warn if NSString is used outside objective-c.
4824 (format_types_orig): Add NSString.
4826 (format_flags): New.
4827 (check_format_arg): Handle format strings requiring an external parser.
4828 first_target_format_type: New variable.
4829 (handle_format_attribute): Set up first_target_format_type, pass the
4830 expected format arg string type to check_format_string().
4831 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
4832 * stub-objc.c (objc_string_ref_type_p): New.
4833 (objc_check_format_arg): New.
4835 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
4837 Fixed using the Objective-C 2.0 dot-syntax with class names.
4838 * c-common.h (objc_build_class_component_ref): New.
4839 * stub-objc.c (objc_build_class_component_ref): New.
4841 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4843 * c.opt (Wproperty-assign-default): New option.
4845 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4847 Implemented -fobjc-std=objc1 flag.
4848 * c.opt (fobjc-std=objc1): New option.
4850 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
4852 Implemented format and noreturn attributes for Objective-C methods.
4853 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4854 attribute for Objective-C methods.
4856 2010-10-31 Jason Merrill <jason@redhat.com>
4858 * c-common.c (conversion_warning, warn_for_collisions_1): Use
4861 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4863 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4864 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4865 (objc_add_property_declaration): Removed arguments for copies and
4867 (objc_build_getter_call): Renamed to
4868 objc_maybe_build_component_ref.
4869 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4870 (objc_is_property_ref): New.
4871 * c-common.c (c_common_reswords): Removed copies and ivar.
4872 * stub-objc.c (objc_add_property_declaration): Removed arguments
4873 for copies and ivar.
4874 (objc_build_getter_call): Renamed to
4875 objc_maybe_build_component_ref.
4876 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4877 (objc_is_property_ref): New.
4879 2010-10-29 Arnaud Charlet <charlet@adacore.com>
4880 Matthew Gingell <gingell@adacore.com>
4882 * c-ada-spec.c (separate_class_package): New function.
4883 (pp_ada_tree_identifier): Prefix references to C++ classes with the
4884 name of their enclosing package.
4885 (print_ada_declaration): Use separate_class_package.
4887 2010-10-27 Jason Merrill <jason@redhat.com>
4889 * c-common.c (c_common_reswords): Add __is_literal_type.
4890 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4892 * c-common.c (check_case_value): Remove special C++ code.
4894 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4896 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4897 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
4899 (objc_add_property_declaration): Added additional arguments.
4900 (objc_property_attribute_kind): Removed.
4901 (objc_set_property_attr): Removed.
4902 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4904 * stub-objc.c (objc_add_property_declaration): Added additional
4906 (objc_set_property_attr): Removed.
4908 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4910 * c-common.h (objc_add_property_variable): Renamed to
4911 objc_add_property_declaration. Added location argument.
4912 * stub-objc.c (objc_add_property_variable): Same change.
4914 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
4916 * c-common.h (objc_maybe_printable_name): New.
4917 * stub-objc.c (objc_maybe_printable_name): New.
4919 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4920 Andrew Pinski <pinskia@gmail.com>
4922 * c-common.h (c_common_mark_addressable_vec): Declare.
4923 * c-common.c (c_common_mark_addressable_vec): New function.
4925 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4927 * c-common.h (objc_set_method_type): Removed.
4928 (objc_add_method_declaration): Added boolean argument.
4929 (objc_start_method_definition): Same change.
4930 (objc_build_method_signature): Same change.
4931 * stub-objc.c (objc_set_method_type): Removed.
4932 (objc_add_method_declaration): Added boolean argument.
4933 (objc_start_method_definition): Same change.
4934 (objc_build_method_signature): Same change.
4936 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4938 * c-common.h (finish_file): Removed.
4939 (objc_write_global_declarations): New.
4940 * c-opts.c (c_common_parse_file): Do not call finish_file.
4941 * stub-objc.c (objc_write_global_declarations): New.
4943 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4945 Implemented parsing @synthesize and @dynamic for
4946 Objective-C/Objective-C++.
4947 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4948 (objc_add_synthesize_declaration): New.
4949 (objc_add_dynamic_declaration): New.
4950 * c-common.c (c_common_reswords): Add synthesize and dynamic.
4951 * stub-objc.c (objc_add_synthesize_declaration): New.
4952 (objc_add_dynamic_declaration): New.
4954 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4957 * c-cppbuiltin.c (mode_has_fma): Move function here from
4958 builtins.c. Don't use the fma optab, instead just use the
4959 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4962 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4964 Merge from 'apple/trunk' branch on FSF servers.
4966 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
4969 * c-common.h (objc_non_volatilized_type): New declaration
4970 * stub-objc.c (objc_non_volatilized_type): New stub.
4972 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4974 Merge from 'apple/trunk' branch on FSF servers.
4976 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4979 * c-common.h (objc_diagnose_private_ivar): New decl.
4980 * stub-objc.c (objc_diagnose_private_ivar): New stub.
4982 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
4984 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4985 * c-common.h (enum rid): Add RID_AT_PACKAGE.
4986 (objc_ivar_visibility_kind): New enum.
4987 (objc_set_visibility): Adjust prototype to use visibility enum.
4988 * stub-objc.c (objc_set_visibility): Adjust stub to use
4991 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4993 * c-cppbuiltin.c (builtin_define_float_constants): Emit
4994 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4995 has the appropriate fma builtins.
4996 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4998 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
5000 merge from FSF apple 'trunk' branch.
5001 2006 Fariborz Jahanian <fjahanian@apple.com>
5003 Radars 4436866, 4505126, 4506903, 4517826
5004 * c-common.c (c_common_resword): Define @property and its attributes.
5005 * c-common.h: Define property attribute enum entries.
5006 (OBJC_IS_PATTR_KEYWORD): New.
5007 (objc_property_attribute_kind): New enum.
5008 Declare objc_set_property_attr (), objc_add_property_variable (),
5009 objc_build_getter_call () and objc_build_setter_call ().
5010 * stub-objc.c (objc_set_property_attr): New stub.
5011 (objc_add_property_variable): Likewise.
5012 (objc_build_getter_call): Likewise.
5013 (objc_build_setter_call) Likewise.
5015 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
5017 merge from FSF apple 'trunk' branch.
5018 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
5020 Radar 3803157 (method attributes)
5021 * c-common.c (handle_deprecated_attribute): Recognize
5022 objc methods as valid declarations.
5023 * c-common.h: Declare objc_method_decl ().
5024 * stub-objc.c (objc_method_decl): New stub.
5026 2010-10-08 Joseph Myers <joseph@codesourcery.com>
5028 * c-common.c (parse_optimize_options): Call
5029 decode_cmdline_options_to_array_default_mask before
5030 decode_options. Update arguments to decode_options.
5031 * c-common.h (c_common_init_options_struct): Declare.
5032 * c-opts.c (c_common_init_options_struct): New. Split out from
5033 c_common_init_options.
5035 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
5037 Implemented fast enumeration for Objective-C.
5038 * c-common.h (objc_finish_foreach_loop): New.
5039 * stub-objc.c (objc_finish_foreach_loop): New.
5041 2010-10-05 Joseph Myers <joseph@codesourcery.com>
5043 * c-common.h (struct diagnostic_context): Don't declare here.
5044 (c_common_initialize_diagnostics): Declare using
5045 diagnostic_context typedef.
5046 * c-opts.c (c_common_handle_option): Pass global_dc to
5047 handle_generated_option.
5049 2010-10-04 Joseph Myers <joseph@codesourcery.com>
5051 * c-opts.c (c_common_handle_option): Pass &global_options_set to
5052 handle_generated_option.
5054 2010-10-03 Ian Lance Taylor <iant@google.com>
5056 * c.opt (-fplan9-extensions): New option.
5058 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5060 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
5062 (c_cpp_builtins): Call functions from cppbuiltin.c instead
5063 of duplicating code.
5065 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5067 * c-common.c: Add two new entries for @optional
5068 and @required keywords.
5070 merge from FSF 'apple/trunk' branch.
5071 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
5074 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
5075 objective-c keywords.
5076 (objc_set_method_opt): New declaration.
5077 * stub-objc.c (objc_set_method_opt): New stub.
5079 2010-09-30 Joseph Myers <joseph@codesourcery.com>
5081 * c-common.c (handle_optimize_attribute): Pass &global_options to
5082 cl_optimization_save and cl_optimization_restore.
5083 * c-opts.c (c_common_handle_option): Pass &global_options to
5084 handle_generated_option.
5085 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
5086 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
5087 &global_options to cl_optimization_restore.
5089 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5091 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
5092 Objective-C/Objective-C++ keywords.
5094 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5096 Merge from 'apple/trunk' branch on FSF servers.
5098 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5101 * c-common.h (objc_check_global_decl): New declaration.
5102 * stub-objc.c (objc_check_global_decl): New stub.
5104 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5106 * c.opt: Don't use VarExists.
5108 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5110 * c-common.c (c_cpp_error): Update names of diagnostic_context
5112 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
5113 cl_optimization members.
5114 * c-opts.c (warning_as_error_callback, c_common_handle_option,
5115 sanitize_cpp_opts, finish_options): Update names of cpp_options
5118 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5120 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
5121 (objc_is_reserved_word): Removed.
5122 * c-common.c: Updated comments.
5123 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
5124 objc_is_reserved_word.
5125 * stub-objc.c (objc_is_reserved_word): Removed.
5127 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5129 * c-common.h (objc_add_method_declaration): Adjust prototype to
5131 (objc_start_method_definition): Likewise.
5132 (objc_build_keyword_decl): Likewise.
5133 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
5134 (objc_start_method_definition): Likewise.
5135 (objc_build_keyword_decl): Likewise.
5137 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5139 * c-common.h (objc_start_class_interface): Adjust prototype.
5140 (objc_start_category_interface): Likewise.
5141 (objc_start_protocol): Likewise.
5142 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
5143 (objc_start_class_interface): Likewise.
5144 (objc_start_category_interface): Likewise.
5146 2010-09-27 Ian Lance Taylor <iant@google.com>
5148 * c-common.c (c_common_attribute_table): Add no_split_stack.
5149 (handle_no_split_stack_attribute): New static function.
5151 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5153 Merge from 'apple/trunk' branch on FSF servers.
5155 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5158 * c-common.h (objc_have_common_type): New declaration.
5159 * stub-objc.c (objc_have_common_type): New stub.
5161 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5164 * c-common.h (objc_common_type): New prototype.
5165 * stub-objc.c (objc_common_type): New stub.
5167 2010-09-24 Jan Hubicka <jh@suse.cz>
5169 * c-common.c (handle_leaf_attribute): New function.
5170 (struct attribute_spec c_common_att): Add leaf.
5172 2010-09-22 Joseph Myers <joseph@codesourcery.com>
5174 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
5175 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
5176 -dump, -dump=, -imacros, -imacros=, -include, -include=,
5177 -include-barrier, -include-directory, -include-directory=,
5178 -include-directory-after, -include-directory-after=,
5179 -include-prefix, -include-prefix=, -include-with-prefix,
5180 -include-with-prefix=, -include-with-prefix-after,
5181 -include-with-prefix-after=, -include-with-prefix-before,
5182 -include-with-prefix-before=, -no-integrated-cpp,
5183 -no-line-commands, -no-standard-includes, -no-warnings, -output,
5184 -output=, -pedantic, -pedantic-errors, -preprocess,
5185 -print-missing-file-dependencies, -trace-includes, -traditional,
5186 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
5187 -user-dependencies, -verbose, -write-dependencies,
5188 -write-user-dependencies, no-integrated-cpp, traditional): New.
5190 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5193 * c-common.h (objc_start_method_definition): Return bool instead
5195 * stub-objc.c (objc_start_method_definition): Return bool instead
5198 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5201 * c-common.h (objc_get_interface_ivars): New declaration.
5202 * stub-objc.c (objc_get_interface_ivars): New stub.
5204 2010-09-15 Ian Lance Taylor <iant@google.com>
5206 * c-common.c (parse_optimize_options): Do not capitalize warning
5207 messages. Remove period at end of warning message.
5209 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
5211 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
5212 (handle_alias_attribute): ... here.
5213 (handle_ifunc_attribute): New.
5215 2010-09-06 Mark Mitchell <mark@codesourcery.com>
5217 * c-common.h (do_warn_double_promotion): Declare.
5218 * c-common.c (do_warn_double_promotion): Define.
5220 2010-09-05 Mark Mitchell <mark@codesourcery.com>
5222 * c.opt (Wdouble-promotion): New.
5224 2010-09-02 Joseph Myers <joseph@codesourcery.com>
5226 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
5227 fvtable-thunks, fxref): Mark no longer supported in help text.
5229 2010-09-02 Joseph Myers <joseph@codesourcery.com>
5231 * c.opt (Wimport, fall-virtual, falt-external-templates,
5232 fdefault-inline, fenum-int-equiv, fexternal-templates,
5233 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
5234 fname-mangling-version-, fnew-abi, fnonnull-objects,
5235 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
5236 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
5238 (fhandle-exceptions): Mark with Alias and Warn.
5239 * c-opts.c (c_common_handle_option): Don't handle options marked
5242 2010-09-02 Joseph Myers <joseph@codesourcery.com>
5244 * c.opt (Wcomments, Werror-implicit-function-declaration,
5245 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
5246 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
5248 * c-common.c (option_codes): Use OPT_Wcomment instead of
5250 * c-opts.c (warning_as_error_callback, c_common_handle_option):
5251 Don't handle options marked as aliases.
5253 2010-08-25 Richard Guenther <rguenther@suse.de>
5255 * c-common.c (c_common_get_alias_set): Remove special
5256 handling for pointers.
5258 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5260 * c-common.c: Use FOR_EACH_VEC_ELT.
5261 * c-gimplify.c: Likewise.
5262 * c-pragma.c: Likewise.
5264 2010-08-16 Joseph Myers <joseph@codesourcery.com>
5266 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
5268 (MMDX): Change back to MMD. Mark NoDriverArg instead of
5270 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
5271 instead of OPT_MDX and OPT_MMDX.
5273 2010-08-16 Joseph Myers <joseph@codesourcery.com>
5275 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
5277 2010-08-12 Joseph Myers <joseph@codesourcery.com>
5279 * c.opt (MD, MMD): Change to MDX and MMDX.
5280 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
5282 2010-08-11 Joseph Myers <joseph@codesourcery.com>
5284 * c-opts.c (c_common_handle_option): Call handle_generated_option
5285 instead of handle_option.
5287 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5289 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
5290 (maybe_apply_renaming_pragma): Delete unneeded declarations.
5292 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5294 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
5295 (pending_redefine_extname): Change type to a VEC.
5296 (add_to_renaming_pragma_list): Update for new type of
5297 pending_redefine_extname.
5298 (maybe_apply_renaming_pragma): Likewise.
5300 2010-08-04 Arnaud Charlet <charlet@adacore.com>
5302 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
5304 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
5305 decide whether a type has already been declared/seen.
5306 Do not go to the original type.
5307 (dump_nested_types): New parameter forward.
5308 Generate forward declaration if needed and mark type as visited.
5309 (print_ada_declaration): Call dump_nested_types if not already done.
5310 Mark types as visited.
5312 2010-08-03 Joseph Myers <joseph@codesourcery.com>
5314 * c.opt (-print-pch-checksum): Remove option.
5315 * c-opts.c (c_common_handle_option): Don't handle
5316 OPT_print_pch_checksum.
5318 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5320 * c-common.h (c_common_handle_option): Update prototype and return
5322 * c-opts.c (c_common_handle_option): Update prototype and return
5323 value type. Update calls to handle_option and
5324 enable_warning_as_error.
5326 2010-07-27 Jakub Jelinek <jakub@redhat.com>
5329 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
5331 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5333 * c-common.h (c_common_missing_argument): Remove.
5334 * c-opts.c (c_common_missing_argument): Remove.
5335 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
5336 idirafter, imacros, include, isysroot, isystem, iquote): Add
5338 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5340 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5342 * c-common.h (c_common_option_lang_mask,
5343 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
5345 (c_common_init_options): Update prototype.
5346 * c-opts.c (c_common_option_lang_mask): New.
5347 (c_common_initialize_diagnostics): Split out of
5348 c_common_init_options.
5349 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
5351 (c_common_init_options): Update prototype. Use decoded options in
5352 search for -lang-asm.
5354 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5356 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5357 * c-format.c: Likewise.
5359 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5361 * c-common.h: Include diagnostic-core.h. Error if already
5363 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
5365 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5367 * c-common.c (IN_GCC_FRONTEND): Do not undef.
5368 Do not include expr.h
5369 (vector_mode_valid_p): Move here.
5371 2010-06-21 DJ Delorie <dj@redhat.com>
5373 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
5374 allow these pragmas anywhere.
5376 2010-06-14 Jakub Jelinek <jakub@redhat.com>
5379 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
5380 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
5381 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
5382 ggc_strdup instead of xstrdup.
5384 2010-06-10 Jakub Jelinek <jakub@redhat.com>
5386 * c-cppbuiltin.c: Include cpp-id-data.h.
5387 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
5388 (lazy_hex_fp_value): New function.
5389 (builtin_define_with_hex_fp_value): Provide definitions lazily.
5391 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5393 * c-gimplify.c: Do not include tree-flow.h
5395 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
5398 * c-common.c: Rename targetm member:
5399 targetm.enum_va_list -> targetm.enum_va_list_p
5401 2010-06-28 Anatoly Sokolov <aesok@post.ru>
5403 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
5405 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5407 * c-cppbuiltin.c: Do not include except.h.
5409 2010-06-24 Andi Kleen <ak@linux.intel.com>
5411 * c-common.c (warn_for_omitted_condop): New.
5412 * c-common.h (warn_for_omitted_condop): Add prototype.
5414 2010-06-21 Joseph Myers <joseph@codesourcery.com>
5416 * c.opt (lang-objc): Remove.
5417 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
5419 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
5421 * c-opts.c: Include "tm_p.h".
5423 2010-06-20 Joseph Myers <joseph@codesourcery.com>
5425 * c-common.c (parse_optimize_options): Update call to
5428 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
5430 * c-common.c (record_types_used_by_current_var_decl): Adjust for
5431 new type of types_used_by_cur_var_decl.
5433 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
5436 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
5437 for C++ standard compliance.
5439 2010-06-16 Jason Merrill <jason@redhat.com>
5441 * c.opt: Add -Wnoexcept.
5443 2010-06-16 Richard Guenther <rguenther@suse.de>
5446 * c-common.c (c_common_truthvalue_conversion): Remove
5447 premature and wrong optimization concering ADDR_EXPRs.
5449 2010-06-15 Arnaud Charlet <charlet@adacore.com>
5451 * c-ada-spec.c (dump_sloc): Remove column info.
5452 (is_simple_enum): New function.
5453 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
5454 enum types when relevant.
5456 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5458 * c-common.c (conversion_warning): Warn at expression
5461 2010-06-10 Joseph Myers <joseph@codesourcery.com>
5463 * c-opts.c (c_common_handle_option): Don't handle
5466 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5468 * c-pragma.c (push_alignment): Use typed GC allocation.
5469 (handle_pragma_push_options): Likewise.
5471 * c-common.c (parse_optimize_options): Likewise.
5473 * c-common.h (struct sorted_fields_type): Add variable_size GTY
5476 2010-06-07 Joseph Myers <joseph@codesourcery.com>
5478 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
5479 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5480 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5481 flag_signed_bitfields, warn_strict_null_sentinel,
5482 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
5483 flag_gen_declaration, flag_no_gnu_keywords,
5484 flag_implement_inlines, flag_implicit_templates,
5485 flag_implicit_inline_templates, flag_optional_diags,
5486 flag_elide_constructors, flag_default_inline, flag_rtti,
5487 flag_conserve_space, flag_access_control, flag_check_new,
5488 flag_new_for_scope, flag_weak, flag_working_directory,
5489 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
5490 flag_enforce_eh_specs, flag_threadsafe_statics,
5491 flag_pretty_templates): Remove.
5492 * c-common.h (flag_preprocess_only, flag_nil_receivers,
5493 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
5494 flag_replace_objc_classes, flag_undef, flag_no_builtin,
5495 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5496 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5497 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
5498 flag_no_gnu_keywords, flag_implement_inlines,
5499 flag_implicit_templates, flag_implicit_inline_templates,
5500 flag_optional_diags, flag_elide_constructors, flag_default_inline,
5501 flag_rtti, flag_conserve_space, flag_access_control,
5502 flag_check_new, flag_new_for_scope, flag_weak,
5503 flag_working_directory, flag_use_cxa_atexit,
5504 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
5505 flag_threadsafe_statics, flag_pretty_templates,
5506 warn_strict_null_sentinel): Remove.
5507 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
5508 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
5509 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
5510 fimplicit-inline-templates, fimplicit-templates,
5511 flax-vector-conversions, fms-extensions, fnil-receivers,
5512 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
5513 frtti, fshort-double, fshort-enums, fshort-wchar,
5514 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
5515 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
5516 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
5517 gen-decls, undef): Use Var.
5518 (fdefault-inline, foptional-diags): Document as doing nothing.
5519 * c-opts.c (c_common_handle_option): Remove cases for options now
5520 using Var. Mark ignored options as such.
5522 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5524 * c-common.c: Moved to here from parent directory.
5525 * c-common.def: Likewise.
5526 * c-common.h: Likewise.
5527 * c-cppbuiltin.c: Likewise.
5528 * c-dump.c: Likewise.
5529 * c-format.c: Likewise.
5530 * c-format.h : Likewise.
5531 * c-gimplify.c: Likewise.
5532 * c-lex.c: Likewise.
5533 * c-omp.c: Likewise.
5535 * c-opts.c: Likewise.
5536 * c-pch.c: Likewise.
5537 * c-ppoutput.c: Likewise.
5538 * c-pragma.c: Likewise.
5539 * c-pragma.h: Likewise.
5540 * c-pretty-print.c: Likewise.
5541 * c-pretty-print.h: Likewise.
5542 * c-semantics.c: Likewise.
5543 * stub-objc.c: Likewise.
5545 * c-common.c: Include gt-c-family-c-common.h.
5546 * c-pragma.c: Include gt-c-family-c-pragma.h.
5548 Copyright (C) 2010-2015 Free Software Foundation, Inc.
5550 Copying and distribution of this file, with or without modification,
5551 are permitted in any medium without royalty provided the copyright
5552 notice and this notice are preserved.