1 2014-07-24 Marek Polacek <polacek@redhat.com>
4 * c-opts.c (c_finish_options): If -imacros is in effect, return.
6 2014-07-16 Dodji Seketeli <dodji@redhat.com>
8 PR preprocessor/60723 - missing system-ness marks for macro tokens
9 * c-ppoutput.c (struct print::prev_was_system_token): New data
11 (init_pp_output): Initialize it.
12 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
13 (do_line_change): Return a flag saying if a line marker was
15 (scan_translation_unit): Detect if the system-ness of the token we
16 are about to emit is different from the one of the previously
17 emitted token. If so, emit a line marker. Avoid emitting useless
18 adjacent line markers. Avoid emitting line markers for tokens
19 originating from the expansion of built-in macros.
20 (scan_translation_unit_directives_only): Adjust.
22 2014-07-15 Marek Polacek <polacek@redhat.com>
24 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
25 TYPE_MAX_VALUE is NULL.
27 2014-07-14 Jakub Jelinek <jakub@redhat.com>
30 * c.opt (Wmemset-transposed-args): New warning.
32 2014-07-10 Jason Merrill <jason@redhat.com>
36 * c.opt (-fuse-all-virtuals): New.
38 2014-07-09 Richard Biener <rguenther@suse.de>
41 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
42 using unsigned arithmetic if overflow does not wrap instead of
43 if overflow is undefined.
45 2014-07-06 Marek Polacek <polacek@redhat.com>
48 * c.opt (Wsizeof-array-argument): New option.
50 2014-07-03 Jakub Jelinek <jakub@redhat.com>
52 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
53 comments->count <= 1, as comments->entries might be NULL.
55 2014-07-01 Marek Polacek <polacek@redhat.com>
57 * c.opt (Wint-conversion): New option.
59 2014-07-01 Marek Polacek <polacek@redhat.com>
62 * c.opt (Wincompatible-pointer-types): New option.
64 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
67 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
68 Do not discard TYPE_QUALS of type.
70 2014-06-26 Jason Merrill <jason@redhat.com>
72 * c-common.h (enum cxx_dialect): Add cxx1z.
73 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
74 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
76 2014-06-26 Teresa Johnson <tejohnson@google.com>
78 * c-common.h (get_dump_info): Declare.
79 * c-gimplify.c (c_genericize): Use saved dump files.
80 * c-opts.c (c_common_parse_file): Begin and end dumps
81 once around parsing invocation.
82 (get_dump_info): New function.
84 2014-06-23 Marek Polacek <polacek@redhat.com>
85 Andrew MacLeod <amacleod@redhat.com>
88 * c-common.c (get_atomic_generic_size): Don't segfault if the
89 type doesn't have a size.
91 2014-06-20 Marek Polacek <polacek@redhat.com>
93 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
94 (ubsan_walk_array_refs_r): New function.
95 (c_genericize): Instrument array bounds.
96 * c-ubsan.c: Include "internal-fn.h".
97 (ubsan_instrument_division): Mark instrumented arrays as having
98 side effects. Adjust ubsan_type_descriptor call.
99 (ubsan_instrument_shift): Likewise.
100 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
101 (ubsan_instrument_bounds): New function.
102 (ubsan_array_ref_instrumented_p): New function.
103 (ubsan_maybe_instrument_array_ref): New function.
104 * c-ubsan.h (ubsan_instrument_bounds): Declare.
105 (ubsan_array_ref_instrumented_p): Declare.
106 (ubsan_maybe_instrument_array_ref): Declare.
108 2014-06-20 Hale Wang <hale.wang@arm.com>
111 * c.opt (fshort-enums): Add to LTO.
112 * c.opt (fshort-wchar): Likewise.
114 2014-06-16 Marek Polacek <polacek@redhat.com>
117 * c.opt (Wswitch-bool): Add Var.
119 2014-06-12 Jakub Jelinek <jakub@redhat.com>
122 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
123 #pragma omp target teams or
124 #pragma omp {,target }teams distribute simd.
126 2014-06-12 Jason Merrill <jason@redhat.com>
128 * c.opt (Wabi=, fabi-compat-version): New.
129 * c-opts.c (c_common_handle_option): Handle -Wabi=.
130 (c_common_post_options): Handle flag_abi_compat_version default.
131 Disallow -fabi-compat-version=1.
132 * c-common.h (abi_version_crosses): New.
134 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
136 * c-family/c-common.c (handle_section_attribute): Update handling for
137 section names that are no longer trees.
139 2014-06-10 Jakub Jelinek <jakub@redhat.com>
142 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
143 (omp_pragmas): ... back here.
145 2014-06-05 Marek Polacek <polacek@redhat.com>
148 * c-common.c (warn_logical_not_parentheses): New function.
149 * c-common.h (warn_logical_not_parentheses): Declare.
150 * c.opt (Wlogical-not-parentheses): New option.
152 2014-06-04 Marek Polacek <polacek@redhat.com>
155 * c-common.c (check_case_bounds): Add location parameter.
157 (c_add_case_label): Pass loc to check_case_bounds.
159 2014-06-03 Marek Polacek <polacek@redhat.com>
162 * c.opt (Wswitch-bool): New option.
164 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
166 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
168 (record_types_used_by_current_var_decl): Move prototype to where
171 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
172 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
173 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
175 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
177 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
178 * c-common.c (c_common_nodes_and_builtins): Don't initialize
180 * c-pretty-print.c (pp_c_void_constant): New function.
181 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
182 (c_pretty_printer::expression): Handle VOID_CST.
183 * cilk.c (extract_free_variables): Likewise.
184 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
185 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
187 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
189 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
190 * c-pragma.c (push_alignment): Adjust.
191 (handle_pragma_push_options): Likewise.
193 2014-05-09 Marek Polacek <polacek@redhat.com>
196 * c-common.c (check_user_alignment): Return -1 if alignment is error
198 (handle_aligned_attribute): Don't call default_conversion on
200 (handle_vector_size_attribute): Likewise.
201 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
202 (handle_sentinel_attribute): Call default_conversion and allow even
203 integral types as an argument.
205 2014-05-08 Marek Polacek <polacek@redhat.com>
208 * c-common.c (min_align_of_type): New function factored out from...
209 (c_sizeof_or_alignof_type): ...here.
210 * c-common.h (min_align_of_type): Declare.
212 2014-05-08 Marek Polacek <polacek@redhat.com>
215 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
216 parameter type of main.
218 2014-05-07 DJ Delorie <dj@redhat.com>
220 * c-cppbuiltin.c (print_bits_of_hex): New.
221 (builtin_define_type_minmax): Print values using hex so as not to
222 require a pre-computed list of string values.
224 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
225 Mike Stump <mikestump@comcast.net>
226 Richard Sandiford <rdsandiford@googlemail.com>
228 * c-ada-spec.c: Include wide-int.h.
229 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
230 (dump_generic_ada_node): Use wide-int interfaces.
231 * c-common.c: Include wide-int-print.h.
232 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
233 (pointer_int_sum): Use wide-int interfaces.
234 (c_common_nodes_and_builtins): Use make_int_cst.
235 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
236 (handle_alloc_size_attribute): Use wide-int interfaces.
237 (get_nonnull_operand): Likewise.
238 * c-format.c (get_constant): Use tree_fits_uhwi_p.
239 * c-lex.c: Include wide-int.h.
240 (narrowest_unsigned_type): Take a widest_int rather than two
242 (narrowest_signed_type): Likewise.
243 (interpret_integer): Update accordingly. Use wide-int interfaces.
244 (lex_charconst): Use wide-int interfaces.
245 * c-pretty-print.c: Include wide-int.h.
246 (pp_c_integer_constant): Use wide-int interfaces.
247 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
250 2014-05-06 Richard Biener <rguenther@suse.de>
252 * c-opts.c (c_common_post_options): For -freestanding,
253 -fno-hosted and -fno-builtin disable pattern recognition
254 if not enabled explicitely.
256 2014-05-02 Marek Polacek <polacek@redhat.com>
258 * c.opt (Wsizeof-pointer-memaccess): Describe option.
260 2014-05-01 Marek Polacek <polacek@redhat.com>
263 * c.opt (Wdiscarded-qualifiers): Add.
265 2014-04-30 Marek Polacek <polacek@redhat.com>
267 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
268 INT_MIN / -1 sanitization only for integer types.
270 2014-04-25 Marek Polacek <polacek@redhat.com>
273 * c-common.c (handle_noinline_attribute): Warn if the attribute
274 conflicts with always_inline attribute.
275 (handle_always_inline_attribute): Warn if the attribute conflicts
276 with noinline attribute.
278 2014-04-25 Marek Polacek <polacek@redhat.com>
281 * c-common.c (check_main_parameter_types): Warn about variadic main.
283 2014-04-24 Mike Stump <mikestump@comcast.net>
285 * c.opt (Wshadow-ivar): Default to on.
287 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
289 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
291 2014-04-23 Marek Polacek <polacek@redhat.com>
293 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
295 2014-04-22 Jakub Jelinek <jakub@redhat.com>
298 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
299 if flag_sanitize_undefined_trap_on_error.
300 (ubsan_instrument_division, ubsan_instrument_shift,
301 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
302 if !flag_sanitize_recover.
304 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
307 * c-common.c (registered_builtin_types): Make non-static.
308 * c-common.h (registered_builtin_types): Declare.
310 2014-04-14 Richard Biener <rguenther@suse.de>
311 Marc Glisse <marc.glisse@inria.fr>
314 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
315 apply may-alias the scalar pointer type when applicable.
317 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
320 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
321 as possible argument for Cilk_spawn.
323 2014-04-11 Tobias Burnus <burnus@net-b.de>
326 * c.opt (Wformat-signedness): Add
327 * c-format.c(check_format_types): Use it.
329 2014-04-11 Jason Merrill <jason@redhat.com>
332 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
333 default_conversion for an array argument.
335 2014-04-08 Marek Polacek <polacek@redhat.com>
338 * c-ubsan.c: Include asan.h.
339 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
341 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
343 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
345 2014-04-02 Marek Polacek <polacek@redhat.com>
347 * c-common.h (c_expand_expr): Remove declaration.
349 2014-03-28 Jakub Jelinek <jakub@redhat.com>
352 * c-common.c (add_atomic_size_parameter): When creating new
353 params vector, push the size argument first.
355 2014-03-26 Jakub Jelinek <jakub@redhat.com>
357 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
358 ubsan_instrument_vla, ubsan_instrument_return): Adjust
359 ubsan_create_data callers.
361 2014-03-22 Jakub Jelinek <jakub@redhat.com>
364 * c-opts.c (c_finish_options): Restore cb_file_change call to
367 2014-03-13 Jakub Jelinek <jakub@redhat.com>
370 * c-pragma.c (apply_pragma_weak): Only look at
371 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
372 DECL_ASSEMBLER_NAME_SET_P (decl).
373 (maybe_apply_pending_pragma_weaks): Exit early if
374 vec_safe_is_empty (pending_weaks) rather than only when
376 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
377 set assembler name back to NULL afterwards.
379 2014-03-11 Jason Merrill <jason@redhat.com>
381 * c.opt: Add -std=gnu++14.
383 2014-03-11 Ian Bolton <ian.bolton@arm.com>
385 * c-opts.c (c_common_post_options): Don't override
386 -ffp-contract=fast if unsafe-math-optimizations is on.
388 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
390 * c.opt: Enable LTO FE for fshort-double.
392 2014-03-07 Jason Merrill <jason@redhat.com>
394 * c.opt: Add -std=c++14.
396 2014-03-06 Marek Polacek <polacek@redhat.com>
399 * cilk.c (contains_cilk_spawn_stmt): New function.
400 (contains_cilk_spawn_stmt_walker): Likewise.
401 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
402 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
404 2014-03-03 Jakub Jelinek <jakub@redhat.com>
406 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
407 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
408 even when flag_preprocess_only.
410 2014-02-26 Jason Merrill <jason@redhat.com>
414 * c-common.c (shorten_compare): Don't check
415 c_inhibit_evaluation_warnings.
417 2014-02-19 Jakub Jelinek <jakub@redhat.com>
420 * c-common.c (c_common_nodes_and_builtins): When initializing
421 c_uint{16,32,64}_type_node, also set corresponding
422 uint{16,32,64}_type_node to the same value.
425 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
426 for PRAGMA_IVDEP if flag_preprocess_only.
428 2014-02-12 Jakub Jelinek <jakub@redhat.com>
431 * c-common.c (merge_tlist): If copy is true, call new_tlist,
432 if false, add ADD itself, rather than vice versa.
433 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
434 copy. For SAVE_EXPR, only call merge_tlist once.
436 2014-02-08 Jakub Jelinek <jakub@redhat.com>
439 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
441 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
443 (c_common_attribute_table): Add alloc_align and assume_aligned
446 2014-02-06 Marek Polacek <polacek@redhat.com>
449 * c-common.c (warn_for_sign_compare): Call warning_at with location
452 2014-02-05 Marek Polacek <polacek@redhat.com>
455 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
458 2014-02-04 Marek Polacek <polacek@redhat.com>
461 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
464 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
468 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
469 handle_vector_size_attribute, handle_nonnull_attribute): Call
470 default_conversion on the attribute argument.
471 (handle_nonnull_attribute): Increment the argument number.
473 2014-01-31 Marek Polacek <polacek@redhat.com>
476 * c-common.c (add_atomic_size_parameter): Pass vNULL to
477 build_function_call_vec.
478 (resolve_overloaded_builtin): Likewise.
479 * c-common.h (build_function_call_vec): Adjust declaration.
481 2014-01-30 Marek Polacek <polacek@redhat.com>
484 * c-common.h (unsafe_conversion_p): Adjust declaration.
485 (warnings_for_convert_and_check): Likewise.
486 (convert_and_check): Likewise.
487 * c-common.c (unsafe_conversion_p): Add location parameter. Call
488 expansion_point_location_if_in_system_header on it.
489 (warnings_for_convert_and_check): Add location parameter. Call
490 expansion_point_location_if_in_system_header on it. Use it.
491 (convert_and_check): Add location parameter. Use it.
492 (conversion_warning): Likewise.
493 (c_add_case_label): Adjust convert_and_check calls.
494 (scalar_to_vector): Adjust unsafe_conversion_p calls.
496 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
498 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
500 * c-pragma.c (init_pragma): Likewise.
503 2014-01-23 Marek Polacek <polacek@redhat.com>
506 * c-common.c (shorten_compare): Add location_t parameter.
507 * c-common.h (shorten_binary_op): Adjust declaration.
509 2014-01-23 Marek Polacek <polacek@redhat.com>
512 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
513 * c-common.h: Declare it.
515 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
517 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
518 * c-ada-spec.c (dump_ads): Likewise.
519 (cpp_check): Likewise.
520 (dump_ada_specs): Likewise.
522 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
525 * c-common.c (handle_no_instrument_function_attribute): Allow
526 no_instrument_function attribute in class member
527 definition/declaration.
529 2014-01-15 Jakub Jelinek <jakub@redhat.com>
532 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
533 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
535 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
536 operand a SAVE_EXPR and second MODIFY_EXPR.
538 2014-01-09 Jakub Jelinek <jakub@redhat.com>
541 * c-pch.c (c_common_write_pch): Call
542 prepare_target_option_nodes_for_pch.
544 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
546 Update copyright years
548 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
550 * array-notation-common.c, c-cilkplus.c: Use the standard form for
551 the copyright notice.
553 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
555 * c-ada-spec.c (print_constructor): New function.
556 (print_destructor): Retrieve the origin of the destructor.
557 (print_ada_declaration): Revamp handling of constructors/destructors.
559 2013-12-23 Stuart Hastings <stuart@apple.com>
560 Bill Maddox <maddox@google.com>
561 Jason Merrill <jason@redhat.com>
563 * c.opt: Add -fdeclone-ctor-dtor.
564 * c-opts.c (c_common_post_options): Default to on iff -Os.
566 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
568 * c-common.c (c_common_attribute_table): Added "cilk simd function"
570 * c-pragma.h (enum pragma_cilk_clause): Remove.
571 (enum pragma_omp_clause): Added the following fields:
572 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
573 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
574 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
575 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
576 PRAGMA_CILK_CLAUSE_UNIFORM.
579 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
581 * cilk.c (cilk_outline): Made this function non-static.
582 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
583 (create_cilk_wrapper): Added a new parameter: a function pointer.
584 (c_install_body_w_frame_cleanup): Remove
585 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
586 * c-common.h (cilk_outline): New prototype.
587 (gimplify_cilk_spawn): Removed two parameters.
588 (cilk_install_body_with_frame_cleanup): New prototype.
589 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
590 CILK_SPAWN_STMT case.
592 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
594 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
596 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
597 (int_array_type_node): Remove.
598 * c-common.c (c_common_nodes_and_builtins): Don't build it.
600 2013-12-05 Marek Polacek <polacek@redhat.com>
603 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
604 [ADJUST_FIELD_ALIGN].
606 2013-12-04 Joseph Myers <joseph@codesourcery.com>
609 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
610 and check field alignment if set.
611 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
612 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
614 2013-12-04 Jakub Jelinek <jakub@redhat.com>
615 Marek Polacek <polacek@redhat.com>
617 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
618 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
620 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
623 * cilk.c (gimplify_cilk_spawn): Properly handle function without
626 2013-11-29 Jakub Jelinek <jakub@redhat.com>
629 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
630 goto invalid. If it is error_mark_node, don't issue further
633 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
635 * c.opt (Wopenmp-simd): New.
637 2013-11-22 Jakub Jelinek <jakub@redhat.com>
639 * c-ubsan.h (ubsan_instrument_return): New prototype.
640 * c-ubsan.c (ubsan_instrument_return): New function.
642 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
644 * c-common.c: Add required include files from gimple.h.
645 * c-gimplify.c: Likewise
648 2013-11-22 David Malcolm <dmalcolm@redhat.com>
650 * c-common.c (unsafe_conversion_p): Remove use of
651 EXPR_LOC_OR_HERE macro.
652 (conversion_warning): Likewise.
653 (warnings_for_convert_and_check): Likewise.
654 (warn_for_collisions_1): Likewise.
655 (shorten_compare): Likewise, and remove use of in_system_header
656 macro, using the location from the former.
657 * c-lex.c (dump_one_header): Remove use of input_filename macro.
658 (cb_def_pragma): Remove use of in_system_header macro.
659 (lex_string): Likewise.
660 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
662 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
663 Mike Stump <mikestump@comcast.net>
664 Richard Sandiford <rdsandiford@googlemail.com>
666 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
667 instead of TREE_INT_CST_LOW, in cases where there is a protecting
668 tree_fits_shwi_p or tree_fits_uhwi_p.
669 (dump_generic_ada_node): Likewise.
670 * c-format.c (check_format_arg): Likewise.
671 * c-pretty-print.c (pp_c_integer_constant): Likewise.
673 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
675 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
677 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
680 * c-common.c (unsafe_conversion_p): Make this function
681 return an enumeration with more detail.
682 (conversion_warning): Use the new return type of
683 unsafe_conversion_p to separately warn either about conversions
684 that lower floating point number precision or about the other
685 kinds of conversions.
686 * c-common.h (enum conversion_safety): New enumeration.
687 (unsafe_conversion_p): switching return type to
688 conversion_safety enumeration.
689 * c.opt: Adding new warning -Wfloat-conversion and
690 enabling it with -Wconversion.
692 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
694 * c-opts.c: Include plugin.h.
695 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
697 2013-11-19 Marek Polacek <polacek@redhat.com>
699 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
701 (ubsan_instrument_shift): Likewise.
702 (ubsan_instrument_vla): Likewise.
704 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
706 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
707 cast to unsigned type.
709 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
711 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
713 (complete_array_type): Update comment to refer to tree_to_[su]hwi
714 rather than tree_low_cst.
716 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
718 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
719 tree_to_uhwi throughout.
721 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
723 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
724 tree_low_cst (..., 0) with tree_to_shwi throughout.
726 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
728 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
729 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
731 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
733 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
734 host_integerp (..., 0) with tree_fits_shwi_p throughout.
736 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
738 * c-cilkplus.c: New file.
739 * c-common.c (readonly_error): Add location argument.
740 * c-common.h (readonly_error): Same.
741 (c_finish_cilk_clauses): Protoize.
742 (c_check_cilk_loop): Same.
743 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
744 Do not fail on error_mark_node.
745 Abstract increment canonicalization to here...
746 (c_omp_for_incr_canonicalize_ptr): New.
747 c-pragma.c (init_pragma): Register "simd" pragma.
748 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
749 (enum pragma_cilk_clause): New.
751 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
753 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
754 wchar_type and host_integerp checks.
756 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
758 * c-common.c: Likewise.
759 * c-gimplify.c: Likewise.
762 2013-11-14 Diego Novillo <dnovillo@google.com>
764 * c-common.c: Include fold-const.h.
765 Include stor-layout.h.
767 Include stringpool.h.
771 * c-cppbuiltin.c: Include stor-layout.h.
772 Include stringpool.h.
773 * c-format.c: Include stringpool.h.
774 * c-lex.c: Include stringpool.h.
775 Include stor-layout.h.
776 * c-pragma.c: Include stringpool.h.
779 Include gcc-symtab.h.
780 * c-pretty-print.c: Include stor-layout.h.
782 * cilk.c: Include stringpool.h.
785 2013-11-13 Joseph Myers <joseph@codesourcery.com>
787 * c-common.h (enum rid): Add RID_AUTO_TYPE.
788 * c-common.c (c_common_reswords): Add __auto_type.
789 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
791 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
793 * c-common.c: Include gimplify.h.
794 * c-gimplify.c: Likewise.
796 * c-omp.c: Include gimple-expr.h instead of gimple.h.
797 * c-ubsan.c: Don't include gimple.h.
799 2013-11-12 Joseph Myers <joseph@codesourcery.com>
801 * c-common.c (c_common_reswords): Add _Thread_local.
803 2013-11-09 Joseph Myers <joseph@codesourcery.com>
805 * c-common.c (atomic_size_supported_p): New function.
806 (resolve_overloaded_atomic_exchange)
807 (resolve_overloaded_atomic_compare_exchange)
808 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
809 Use it instead of comparing size with a local list of sizes.
811 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
812 Joseph Myers <joseph@codesourcery.com>
814 * c-common.h (enum rid): Add RID_ATOMIC.
815 * c-common.c (c_common_reswords): Add _Atomic.
816 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
817 (keyword_is_type_qualifier): Accept RID_ATOMIC.
818 * c-format.c (check_format_types): Check for extra _Atomic
819 qualifiers in format argument.
820 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
821 (pp_c_type_qualifier_list): Mention _Atomic in comment.
823 2013-11-06 Tobias Burnus <burnus@net-b.de>
825 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
827 2013-11-06 Joseph Myers <joseph@codesourcery.com>
829 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
831 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
832 to mean lack of IEEE 754 support.
834 2013-11-05 Tobias Burnus <burnus@net-b.de>
836 * c.opt (-Wdate-time): New option
837 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
839 2013-11-05 Joseph Myers <joseph@codesourcery.com>
841 * c-cppbuiltin.c (cpp_iec_559_value): Test
842 flag_excess_precision_cmdline not flag_excess_precision.
844 2013-11-05 Tobias Burnus <burnus@net-b.de>
846 * c.opt (fopenmp-simd): New option.
847 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
848 (omp_pragmas): ... this new struct.
849 (c_pp_lookup_pragma): Also walk omp_pragmas.
850 (init_pragma): Init pragmas for -fopenmp-simd.
852 2013-11-04 Marek Polacek <polacek@redhat.com>
855 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
857 2013-11-04 Joseph Myers <joseph@codesourcery.com>
859 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
861 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
863 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
865 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
866 (dump_ada_specs): Adjust prototype of second callback.
867 * c-ada-spec.c (cpp_check): New global variable.
868 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
869 (print_generic_ada_decl): Likewise.
870 (has_static_fields): Change return type to bool and add guard.
871 (has_nontrivial_methods): New predicate.
872 (is_tagged_type): Change return type to bool.
873 (separate_class_package): Call has_nontrivial_methods.
874 (pp_ada_tree_identifier): Minor tweaks.
875 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
876 (dump_ada_array_domains): Likewise.
877 (dump_ada_array_type): Likewise.
878 (dump_template_types): Remove cpp_check parameter and do not pass it to
879 dump_generic_ada_node.
880 (dump_ada_template): Likewise.
881 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
883 (print_ada_methods): Change return type to integer. Remove cpp_check
884 parameter and do not pass it down.
885 (dump_nested_types): Remove cpp_check parameter and do not pass it to
886 dump_generic_ada_node.
887 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
889 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
890 down. Use has_nontrivial_methods to recognize C++ classes. Use return
891 value of print_ada_methods.
892 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
893 Set cpp_check to it before invoking dump_ada_nodes.
894 (dump_ada_specs): Likewise.
896 2013-11-03 Marek Polacek <polacek@redhat.com>
898 * c-ubsan.c: Don't include hash-table.h.
899 (ubsan_instrument_vla): New function.
900 * c-ubsan.h: Declare it.
902 2013-10-31 David Malcolm <dmalcolm@redhat.com>
904 Automated part of renaming of symtab_node_base to symtab_node.
906 Patch autogenerated by rename_symtab.py from
907 https://github.com/davidmalcolm/gcc-refactoring-scripts
908 revision 58bb219cc090b2f4516a9297d868c245495ee622
910 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
911 symtab_node_base to symtab_node.
913 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
915 Implement C++14 digit separators.
916 * c-lex.c (interpret_float): Remove digit separators from scratch string
917 before building real literal.
919 2013-10-30 Jakub Jelinek <jakub@redhat.com>
921 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
923 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
925 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
927 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
929 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
930 (insert_cilk_frame): New prototype.
931 (cilk_init_builtins): Likewise.
932 (gimplify_cilk_spawn): Likewise.
933 (c_cilk_install_body_w_frame_cleanup): Likewise.
934 (cilk_detect_spawn_and_unwrap): Likewise.
935 (cilk_set_spawn_marker): Likewise.
936 (build_cilk_sync): Likewise.
937 (build_cilk_spawn): Likewise.
940 2013-10-29 David Malcolm <dmalcolm@redhat.com>
942 Patch autogenerated by refactor_symtab.py from
943 https://github.com/davidmalcolm/gcc-refactoring-scripts
944 revision 58bb219cc090b2f4516a9297d868c245495ee622
946 * c-gimplify.c (c_genericize): Update for conversion of symtab types
947 to a true class hierarchy.
948 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
950 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
952 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
954 2013-10-26 Jeff Law <law@redhat.com>
956 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
957 * c-family/c.opt: Ignore and warn for mudflap options.
959 2013-10-24 Tobias Burnus <burnus@net-b.de>
962 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
963 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
965 2013-10-23 Jason Merrill <jason@redhat.com>
967 * c-format.c (gcc_cxxdiag_char_table): Add %X.
969 2013-10-11 Jakub Jelinek <jakub@redhat.com>
971 * c-common.h (omp_clause_mask::operator !=): New method.
972 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
973 instead of if (mask & something) tests everywhere.
975 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
976 201307 instead of 201107.
977 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
978 (c_common_attribute_table): Add "omp declare target" and
979 "omp declare simd" attributes.
980 (handle_omp_declare_target_attribute,
981 handle_omp_declare_simd_attribute): New functions.
982 * c-omp.c: Include c-pragma.h.
983 (c_finish_omp_taskgroup): New function.
984 (c_finish_omp_atomic): Add swapped argument, if true,
985 build the operation first with rhs, lhs arguments and use NOP_EXPR
987 (c_finish_omp_for): Add code argument, pass it down to make_code.
988 (c_omp_split_clauses): New function.
989 (c_split_parallel_clauses): Removed.
990 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
991 c_omp_declare_simd_clauses_to_decls): New functions.
992 * c-common.h (omp_clause_mask): New type.
993 (OMP_CLAUSE_MASK_1): Define.
994 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
995 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
996 omp_clause_mask::operator |, omp_clause_mask::operator &,
997 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
998 omp_clause_mask::operator ==): New methods.
999 (enum c_omp_clause_split): New.
1000 (c_finish_omp_taskgroup): New prototype.
1001 (c_finish_omp_atomic): Add swapped argument.
1002 (c_finish_omp_for): Add code argument.
1003 (c_omp_split_clauses): New prototype.
1004 (c_split_parallel_clauses): Removed.
1005 (c_omp_declare_simd_clauses_to_numbers,
1006 c_omp_declare_simd_clauses_to_decls): New prototypes.
1007 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1008 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1009 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1010 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1011 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1012 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1013 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1014 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1015 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1016 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1017 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1018 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1019 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1020 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1021 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1022 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1023 PRAGMA_OMP_CLAUSE_UNIFORM.
1025 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
1027 PR tree-optimization/20318
1028 * c-common.c (handle_returns_nonnull_attribute): New function.
1029 (c_common_attribute_table): Add returns_nonnull.
1031 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
1034 * c.opt (fcheck-new): Move to common.opt.
1036 2013-09-25 Marek Polacek <polacek@redhat.com>
1037 Jakub Jelinek <jakub@redhat.com>
1040 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1041 an expression if we can prove it is correct.
1042 (ubsan_instrument_division): Likewise. Remove unnecessary
1045 2013-09-18 Marek Polacek <polacek@redhat.com>
1048 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1050 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1052 2013-09-14 Iain Sandoe <iain@codesourcery.com>
1055 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1056 fobjc-gc, freplace-objc-classes): Accept for LTO.
1058 2013-09-13 Jacek Caban <jacek@codeweavers.com>
1060 * c-target.def: New hook
1062 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1065 * c.opt (Wdelete-incomplete): Add.
1067 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1069 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1070 (vector_types_compatible_elements_p): New function.
1071 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1073 (vector_types_compatible_elements_p): Declare.
1075 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1077 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1078 a virtual member function.
1079 (pp_simple_type_specifier): Remove.
1080 (pp_c_type_specifier): Likewise.
1081 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1082 Rename from pp_c_type_specifier. Adjust.
1083 (c_pretty_printer::c_pretty_printer): Do not assign to
1084 simple_type_specifier.
1086 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1088 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1090 (c_pretty_printer::storage_class_specifier): Likewise.
1091 (c_pretty_printer::initializer): Likewise.
1092 (pp_declaration): Remove.
1093 (pp_declaration_specifiers): Likewise.
1094 (pp_abstract_declarator): Likewise.
1095 (pp_declarator): Likewise.
1096 (pp_type_id): Likewise.
1097 (pp_statement): Likewise.
1098 (pp_constant): Likewise.
1099 (pp_id_expression): Likewise.
1100 (pp_primary_expression): Likewise.
1101 (pp_unary_expression): Likewise.
1102 (pp_multiplicative_expression): Likewise.
1103 (pp_conditional_expression): Likewise.
1104 (pp_assignment_expression): Likewise.
1105 (pp_expression): Likewise.
1106 (pp_c_type_id): Likewise.
1107 (pp_c_storage_class_specifier): Likewise.
1108 * c-pretty-print.c (pp_c_type_cast): Tidy.
1109 (pp_c_pointer): Likewise.
1110 (pp_c_type_specifier): Likewise.
1111 (pp_c_parameter_type_list): Likewise.
1112 (pp_c_function_definition): Likewise.
1113 (pp_c_init_declarator): Likewise.
1114 (pp_c_initializer_list): Likewise.
1115 (pp_c_constructor_elts): Likewise.
1116 (c_pretty_printer::direct_abstract_declarator): Likewise.
1117 (c_pretty_printer::declaration_specifiers): Likewise.
1118 (c_pretty_printer::primary_expression): Likewise.
1119 (c_pretty_printer::postfix_expression): Likewise.
1120 (c_pretty_printer::type_id): Rename from pp_c_type_id.
1121 (c_pretty_printer::storage_class_specifier): Rename from
1122 pp_c_storage_class_specifier.
1123 (c_pretty_printer::initializer): Rename from pp_c_initializer.
1124 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1125 storage_class_specifier, initializer, offset_list, flags.
1127 2013-08-30 Marek Polacek <polacek@redhat.com>
1129 * c-ubsan.c: New file.
1130 * c-ubsan.h: New file.
1132 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1134 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1136 (c_pretty_printer::declaration_specifiers): Likewise.
1137 (c_pretty_printer::declarator): Likewise.
1138 (c_pretty_printer::abstract_declarator): Likewise.
1139 (c_pretty_printer::direct_abstract_declarator): Likewise.
1140 (c_pretty_printer::direct_declarator): Likewise.
1141 (c_pretty_printer::function_specifier): Likewise.
1142 (pp_declaration): Adjust.
1143 (pp_declaration_specifiers): Likewise.
1144 (pp_abstract_declarator): Likewise.
1145 (pp_direct_declarator): Likewise.
1146 (pp_function_specifier): Likewise.
1147 (pp_direct_abstract_declarator): Remove as unused.
1148 (pp_c_declaration): Remove.
1149 (pp_c_declaration_specifiers): Likewise.
1150 (pp_c_declarator): Likewise.
1151 (pp_c_direct_declarator): Likewise.
1152 (pp_c_function_specifier): Likewise.
1153 (pp_c_direct_abstract_declarator): Likewise.
1154 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1155 from pp_c_abstract_declarator. Adjust.
1156 (c_pretty_printer::direct_abstract_declarator): Rename from
1157 pp_c_direct_abstract_declarator. Adjust.
1158 (c_pretty_printer::function_specifier): Rename from
1159 pp_c_function_specifier. Adjust.
1160 (c_pretty_printer::declaration_specifiers): Rename from
1161 pp_c_declaration_specifiers. Adjust.
1162 (c_pretty_printer::direct_declarator): Rename from
1163 pp_c_direct_declarator. Adjust.
1164 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
1165 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
1166 (c_pretty_printer::c_pretty_printer): Do not assign to
1167 declaration, declaration_specifiers, declarator,
1168 direct_declarator, direct_abstract_declarator, function_specifier.
1170 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
1172 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1173 virtual member function.
1174 (c_pretty_printer::multiplicative_expression): Likewise.
1175 (c_pretty_printer::conditional_expression): Likewise.
1176 (c_pretty_printer::assignment_expression): Likewise.
1177 (c_pretty_printer::expression): Likewise.
1178 (pp_unary_expression): Adjust.
1179 (pp_multiplicative_expression): Likewise.
1180 (pp_assignment_expression): Likewise.
1181 (pp_conditional_expression): Likewise.
1182 (pp_expression): Likewise.
1183 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1184 from pp_c_unary_expression. Adjust.
1185 (c_pretty_printer::multiplicative_expression): Rename from
1186 pp_c_multiplicative_expression. Adjust.
1187 (c_pretty_printer::conditional_expression): Rename from
1188 pp_c_conditional_expression. Adjust.
1189 (c_pretty_printer::assignment_expression): Rename from
1190 pp_c_assignment_expression. Adjust.
1191 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
1192 (c_pretty_printer::c_pretty_printer): Do not assign to
1193 unary_expression, multiplicative_expression,
1194 conditional_expression, expression.
1196 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1198 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1199 virtual member function.
1200 (pp_postfix_expression): Adjust.
1201 (pp_c_postfix_expression): Remove.
1202 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1203 from pp_c_postfix_expression. Adjust.
1204 (c_pretty_printer::c_pretty_printer): Do not assign to
1207 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1209 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1210 virtua member function.
1211 (pp_primary_expression): Adjust.
1212 (pp_c_primary_expression): Remove.
1213 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1214 from pp_c_primary_expression. Adjust.
1215 (pp_c_initializer_list): Use pp_primary_expression.
1216 (c_pretty_printer::c_pretty_printer): Do not assign to
1219 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1221 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1222 * c-pretty-print.c (M_): Remove.
1223 (c_pretty_printer::translate_string): Define.
1224 (pp_c_type_specifier): Use it.
1225 (pp_c_primary_expression): Likewise.
1226 (pp_c_expression): Likewise.
1228 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1230 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
1232 (pp_c_id_expression): Remove.
1233 (pp_id_expression): Adjust.
1234 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
1235 pp_c_id_expression. Adjust.
1236 (pp_c_postfix_expression): Use pp_id_expression.
1237 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
1239 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1241 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
1243 (pp_constant): Adjust.
1244 (pp_c_constant): Remove.
1245 * c-pretty-print.c (c_pretty_printer::constant): Rename from
1246 pp_c_constant. Adjust.
1248 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
1249 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
1251 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1253 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
1254 (c_pretty_printer::c_pretty_printer): Declare.
1255 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
1256 c_pretty_printer_init. Adjust.
1257 (print_c_tree): Do not call c_pretty_printer_init.
1258 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
1260 2013-08-09 Arnaud Charlet <charlet@adacore.com>
1262 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
1264 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
1267 * c-common.c (pointer_int_sum): Add bool parameter.
1268 * c-common.h (pointer_int_sum): Adjust declaration.
1270 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1272 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
1273 c_pretty_printer variable.
1275 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1277 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
1279 (pp_c_base): Likewise. Adjust users.
1280 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
1281 (pp_c_whitespace): Do not call pp_base.
1282 (pp_c_left_paren): Likewise.
1283 (pp_c_right_paren): Likewise.
1284 (pp_c_left_brace): Likewise.
1285 (pp_c_right_brace): Likewise.
1286 (pp_c_left_bracket): Likewise.
1287 (pp_c_right_bracket): Likewise.
1288 (pp_c_dot): Likewise.
1289 (pp_c_ampersand): Likewise.
1290 (pp_c_star): Likewise.
1291 (pp_c_arrow): Likewise.
1292 (pp_c_semicolon): Likewise.
1293 (pp_c_complement): Likewise.
1294 (pp_c_exclamation): Likewise.
1295 (pp_c_direct_declarator): Likewise.
1296 (pp_c_ws_string): Likewise.
1297 (pp_c_identifier): Likewise.
1298 (pp_c_statement): Likewise.
1299 (print_c_tree): Likewise.
1301 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
1304 * c-common.c (c_parse_error): Catch user-defined literal tokens and
1305 provide useful error strings.
1307 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1309 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1310 printer functions instead of pp_string or operators and punctuators.
1311 (dump_generic_ada_node): Likewise.
1312 * c-pretty-print.c (pp_c_type_specifier): Likewise.
1313 (pp_c_relational_expression): Likewise.
1314 (pp_c_logical_or_expression): Likewise.
1316 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1318 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1319 functions instead of pp_character.
1320 (pp_ada_tree_identifier): Likewise.
1321 (dump_ada_double_name): Likewise.
1322 (dump_ada_function_declaration): Likewise.
1323 (dump_ada_array_domains): Likewise.
1324 (dump_template_types): Likewise.
1325 (dump_generic_ada_node): Likewise.
1326 (print_ada_declaration): Likewise.
1327 (print_ada_struct_decl): Likewise.
1328 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1330 2013-07-23 Tom Tromey <tromey@redhat.com>
1332 * c-common.h (enum rid) <RID_GENERIC>: New constant.
1333 * c-common.c (c_common_reswords): Add _Generic.
1335 2013-07-21 OndÅej BÃlka <neleai@seznam.cz>
1337 * c-common.c: Fix typos.
1338 * c-common.h: Likewise.
1340 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
1343 * c-common.c (c_common_attribute_table): Add warn_unused.
1344 (handle_warn_unused_attribute): New.
1346 2013-07-10 Jakub Jelinek <jakub@redhat.com>
1348 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1349 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1351 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1354 * c.opt: Add Wconditionally-supported.
1356 2013-07-08 Graham Stott <graham.stott@btinternet.com>
1358 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1359 unused variables l_length and l_node.
1361 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
1364 * c-common.c (complete_array_type): Delay folding first index
1365 like other indices. When folding, check for index overflow.
1367 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
1370 * c-common.h (c_build_vec_perm_expr): New complain argument.
1371 * c-common.c (c_build_vec_perm_expr): Likewise.
1372 Use save_expr also in C++.
1374 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1376 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1377 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1378 * c-opts.c (c_common_post_options): Likewise.
1380 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1382 * array-notation-common.c (length_mismatch_in_expr): Changed the
1383 parameter type's from a dynamic array to a vec_tree. Also removed
1384 the size parameters.
1385 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1388 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1390 * c-common.h (struct cilkplus_an_parts): New structure.
1391 (struct cilkplus_an_loop_parts): Likewise.
1392 (cilkplus_extract_an_triplets): New prototype.
1393 (fix_sec_implicit_args): Likewise.
1394 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1395 (fix_sec_implicit_args): Likewise.
1397 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
1399 * array-notation-common.c (find_inv_trees): Removed an unwanted
1401 * c-common.h (struct inv_list::additional_tcodes): Changed type from
1402 enum rid to enum tree_code.
1404 2013-06-11 Jan Hubicka <jh@suse.cz>
1406 * c-common.c (handle_alias_ifunc_attribute): Do not set
1407 DECL_EXTERNAL for weakref variables.
1408 * c-pragma.c (handle_pragma_weak): Make sure aliases
1409 are not declared as external.
1411 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1413 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
1414 function from c/c-array-notation.c.
1415 (is_cilkplus_reduce_builtin): Likewise.
1416 (find_rank): Likewise.
1417 (extract_array_notation_exprs): Likewise.
1418 (replace_array_notations): Likewise.
1419 (find_inv_trees): Likewise.
1420 (replace_inv_trees): Likewise.
1421 (contains_array_notation_expr): Likewise.
1422 (find_correct_array_notation_type): Likewise.
1423 * c-common.h (struct inv_list): Moved this struct from the file
1424 c/c-array-notation.c and added a new field called additional tcodes.
1425 (length_mismatch_in_expr_p): New prototype.
1426 (is_cilkplus_reduce_builtin): Likewise.
1427 (find_rank): Likewise.
1428 (extract_array_notation_exprs): Likewise.
1429 (replace_array_notation): Likewise.
1430 (find_inv_trees): Likewise.
1431 (replace_inv_trees): Likewise.
1432 (find_correct_array_notation_type): Likewise.
1434 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1436 * c-common.c (c_define_builtins): When cilkplus is enabled, the
1437 function array_notation_init_builtins is called.
1438 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
1439 * c-common.def (ARRAY_NOTATION_REF): New tree.
1440 * c-common.h (build_array_notation_expr): New function declaration.
1441 (build_array_notation_ref): Likewise.
1442 (extract_sec_implicit_index_arg): New extern declaration.
1443 (is_sec_implicit_index_fn): Likewise.
1444 (ARRAY_NOTATION_CHECK): New define.
1445 (ARRAY_NOTATION_ARRAY): Likewise.
1446 (ARRAY_NOTATION_START): Likewise.
1447 (ARRAY_NOTATION_LENGTH): Likewise.
1448 (ARRAY_NOTATION_STRIDE): Likewise.
1449 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
1451 (pp_c_expression): Likewise.
1452 * c.opt (flag_enable_cilkplus): New flag.
1453 * array-notation-common.c: New file.
1455 2013-05-14 Jakub Jelinek <jakub@redhat.com>
1458 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
1460 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
1462 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
1465 2013-05-07 Han Shen <shenhan@google.com>
1467 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
1469 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1471 * c-common.c (check_user_alignment): Emit error for negative values.
1473 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1475 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1477 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1479 * c-cppbuiltin.c (c_cpp_builtins): Do not define
1480 __GXX_EXPERIMENTAL_CXX1Y__.
1482 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1483 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1485 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1486 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
1487 to simply use OPT_Wpointer_arith.
1488 (c_sizeof_or_alignof_type): Likewise.
1490 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1492 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
1494 2013-04-12 Jakub Jelinek <jakub@redhat.com>
1496 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1497 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
1500 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
1502 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
1504 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
1506 * c-common.c (pointer_int_sum): Remove dead code.
1508 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1511 * c-common.c (handle_optimize_attribute): Don't call
1512 save_optabs_if_changed.
1514 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1517 * c-pch.c (pch_init): Free target_validity at the end.
1519 2013-03-04 Jakub Jelinek <jakub@redhat.com>
1521 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1523 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1524 Jakub Jelinek <jakub@redhat.com>
1527 * c-common.c (handle_no_sanitize_address_attribute): New function.
1528 (c_common_attribute_table): Add no_sanitize_address attribute.
1529 (handle_no_address_safety_analysis_attribute): Add
1530 no_sanitize_address attribute, not no_address_safety_analysis
1533 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
1536 * c-common.c (handle_optimize_attribute): Call
1537 save_optabs_if_changed.
1539 2013-02-18 Jakub Jelinek <jakub@redhat.com>
1540 Steven Bosscher <steven@gcc.gnu.org>
1543 * c-opts.c (c_common_post_options): If debug info is enabled
1544 and non-dwarf*, refuse to load PCH files and when writing PCH
1547 2013-02-05 Jakub Jelinek <jakub@redhat.com>
1550 * c-common.c (handle_error_attribute): Fix condition.
1552 2013-01-30 Jakub Jelinek <jakub@redhat.com>
1555 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1557 2013-01-18 Jason Merrill <jason@redhat.com>
1560 * c.opt (-fextern-tls-init): New.
1561 * c-opts.c (c_common_post_options): Handle it.
1563 2013-01-09 Jakub Jelinek <jakub@redhat.com>
1566 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1567 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1568 and is either negative or bigger or equal to type precision
1569 of the first operand.
1571 2012-12-03 Marek Polacek <polacek@redhat.com>
1574 * c-common.c (check_user_alignment): Swap order of tests,
1575 check TREE_CODE first.
1577 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
1580 * c-common.h (overflow_type): New enum.
1581 (build_userdef_literal): Add overflow_type argument.
1582 (tree_userdef_literal): Add overflow_type.
1583 (USERDEF_LITERAL_OVERFLOW): New access macro.
1584 * c-common.c (build_userdef_literal): Add overflow_type
1586 * c-lex.c (c_lex_with_flags): Add overflow_type to
1587 build_userdef_literal calls.
1588 (interpret_integer, interpret_float): Add overflow_type argument.
1590 2012-11-28 Richard Biener <rguenther@suse.de>
1593 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1594 here and use a type with proper overflow behavior for types that would
1595 need to be promoted for the arithmetic.
1597 2012-11-23 Jakub Jelinek <jakub@redhat.com>
1600 * c-common.c (handle_no_address_safety_analysis_attribute): New
1602 (c_common_attribute_table): Add no_address_safety_analysis.
1604 2012-11-16 Simon Baldwin <simonb@google.com>
1606 * c.opt: Add f[no-]canonical-system-headers.
1607 * c-opts.c (c_common_handle_option): Handle
1608 OPT_fcanonical_system_headers.
1610 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1613 * c-opts.c (c_common_handle_option): Set new flags.
1614 * c.opt: Describe new flags.
1616 2012-11-09 Jason Merrill <jason@redhat.com>
1618 * c.opt (Wabi-tag): New.
1620 2012-11-09 Andi Kleen <ak@linux.intel.com>
1623 * c-common.c (get_atomic_generic_size): Mask with
1626 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1629 * c.opt (Wformat): Make it Alias Wformat=1.
1630 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1631 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1633 (Wformat=): RejectNegative. Use LangEnabledBy.
1634 (Wnonnull): Use LangEnabledBy.
1635 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1636 * c-format.c (set_Wformat): Delete.
1637 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1638 (maybe_read_dollar_number): Likewise.
1639 (avoid_dollar_number): Likewise.
1640 (finish_dollar_format_checking): Likewise.
1641 (check_format_info): Likewise.
1642 (check_format_info_main): Likewise.
1643 (check_format_types): Likewise.
1644 (format_type_warning): Likewise.
1645 * c-common.c (int): Likewise.
1646 (check_function_sentinel): Likewise.
1647 * c-common.h (warn_format,set_Wformat): Do not declare here.
1649 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1652 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1653 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1655 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1657 (Wvariadic-macros): Init(1).
1658 * c-opts.c (c_common_handle_option): Do not handle them
1660 (c_common_post_options): Likewise.
1661 (sanitize_cpp_opts): warn_unused_macros is now
1662 cpp_warn_unused_macros.
1663 (push_command_line_include): Likewise.
1664 * c-common.c (warn_unknown_pragmas): Do not define.
1665 * c-common.h (warn_unknown_pragmas): Do not declare.
1667 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1670 * c-common.c (conversion_warning): Handle conditional expressions.
1672 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1675 * c.opt (Wreturn_local_addr): Define new option.
1677 2012-10-25 Jason Merrill <jason@redhat.com>
1679 * c.opt (Wvirtual-move-assign): New.
1681 * c.opt (Winherited-variadic-ctor): New.
1683 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
1686 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1688 2012-10-23 Joseph Myers <joseph@codesourcery.com>
1690 * c-common.h (pch_cpp_save_state): Declare.
1691 * c-target.def (c_preinclude): New hook.
1692 * c-opts.c (done_preinclude): New.
1693 (push_command_line_include): Handle default preincluded header.
1694 (cb_file_change): Call pch_cpp_save_state when calling
1695 push_command_line_include.
1696 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1697 (pch_cpp_save_state): New.
1698 (pch_init): Call pch_cpp_save_state conditionally, instead of
1699 calling cpp_save_state.
1701 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1705 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1706 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1707 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1708 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1709 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1710 * c-opts.c (c_common_handle_option): Remove explicit handling from
1712 (c_common_post_options): Likewise.
1714 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1716 * c-ada-spec.c (LOCATION_COL): Delete.
1717 (compare_location): New function.
1718 (compare_node): Use it.
1719 (compare_comment): Likewise.
1721 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1725 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1726 * c-opts.c (c_common_handle_option): Do not set them here. Add
1728 (c_common_post_options): Likewise.
1730 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1732 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1733 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1734 Remove POINTER_TYPE handling, add large unsigned handling and use
1735 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1737 2012-10-12 Jakub Jelinek <jakub@redhat.com>
1740 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1741 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1742 locs and array of 3 trees instead of just single loc and single
1743 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1744 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1745 For *cmp* builtins that take two sources strings report warnings
1746 about first and second source, not about destination and source.
1748 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
1751 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1753 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1755 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1756 declaring something coming from another file.
1758 2012-10-10 Arnaud Charlet <charlet@adacore.com>
1761 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1763 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1766 * c-common.c (warn_about_parentheses): Add location_t parameter;
1767 use EXPR_LOC_OR_LOC.
1768 * c-common.h: Update declaration.
1770 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
1773 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1774 more operations. Make error messages optional.
1775 * c-common.h (enum stv_conv): Moved from c-typeck.c.
1776 (scalar_to_vector): Declare.
1778 2012-10-08 Jason Merrill <jason@redhat.com>
1780 * c-common.c (c_common_reswords): Add thread_local.
1782 2012-10-08 Dodji Seketeli <dodji@redhat.com>
1784 PR c++/53528 C++11 attribute support
1785 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1787 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1789 (handle_aligned_attribute): In choose strictest alignment
1790 among many. Use new check_cxx_fundamental_alignment_constraints.
1791 (handle_transparent_union_attribute): In c++11 attribute syntax,
1792 don't look through typedefs.
1794 2012-10-04 Arnaud Charlet <charlet@adacore.com>
1796 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1797 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1800 2012-09-25 Dehao Chen <dehao@google.com>
1803 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
1804 map when read in the pch.
1806 2012-09-18 Arnaud Charlet <charlet@adacore.com>
1808 * c-ada-spec.c: Style fixes.
1810 2012-09-18 Thomas Quinot <quinot@adacore.com>
1812 * c.opt (-fada-spec-parent): Define new command line switch.
1813 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1814 is specified, generate binding spec as a child of the specified unit.
1816 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1817 Manuel López-Ibáñez <manu@gcc.gnu.org>
1820 * c.opt ([Winit-self]): Enabled by -Wall in C++.
1822 2012-08-23 Arnaud Charlet <charlet@adacore.com>
1824 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1825 for pointers, and add missing Convention C pragma.
1826 (print_ada_struct_decl): Add missing aliased keyword.
1827 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1829 2012-08-17 Jakub Jelinek <jakub@redhat.com>
1831 * c-common.c (sizeof_pointer_memaccess_warning): New function.
1832 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1833 * c-opts.c (c_common_handle_option): Enable it for -Wall.
1834 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1835 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1837 2012-08-10 Richard Guenther <rguenther@suse.de>
1839 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1841 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1843 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1844 instead of separate pp_newline and pp_flush.
1845 (print_c_tree): Likewise.
1847 2012-07-26 Richard Henderson <rth@redhat.com>
1849 * c-common.c (handle_hot_attribute): Allow labels.
1850 (handle_cold_attribute): Likewise.
1852 2012-07-20 Jakub Jelinek <jakub@redhat.com>
1855 * c-common.c (check_function_nonnull): Handle multiple nonnull
1856 attributes properly.
1858 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1860 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1861 * c-ada-spec.c: Likewise.
1862 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1864 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1866 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1867 Remove code conditional on it.
1869 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1871 * c-gimplify.c: Do not include basic-block.h.
1872 * c-common.c: Do not include linfuncs.h.
1874 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1876 * c-common.h: Include tree.h.
1878 2012-07-02 Jason Merrill <jason@redhat.com>
1881 * c-common.c (get_priority): Call default_conversion.
1883 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
1885 * c-pch.c (c_common_write_pch): Remove unused variables.
1887 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1889 * cppspec.c: Moved from gcc/ to here.
1891 2012-06-27 Kai Tietz <ktietz@redhat.com>
1893 PR preprocessor/37215
1894 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1896 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1898 * c-common.h (c_common_print_pch_checksum): Remove.
1899 * c-pch.c: Do not include output.h.
1900 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1901 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1902 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1903 (struct c_pch_header): Remove.
1904 (get_ident): Update gpch version.
1905 (pch_init): Do not print executable_checksum to asm_out_file.
1906 Do not fail if there is no asm_out_file to read back from. Set
1907 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1908 (c_common_write_pch): Verify that nothing was written to asm_out_file
1909 since pch_init was called. Do not write a c_pch_header, and do not
1910 copy from asm_out_file to the PCH.
1911 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1912 the content of asm_out_file from the PCH.
1913 (c_common_print_pch_checksum): Remove.
1914 * c-opts.c (c_common_init): Print out executable_checksum directly.
1916 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1918 * c-target.def (objc_declare_unresolved_class_reference,
1919 objc_declare_class_definition): Add new hooks.
1921 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1923 * c-lex.c: Do not include output.h.
1924 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1925 Remove uses of ASM_OUTPUT_IDENT.
1927 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
1930 * c-common.h (c_build_vec_perm_expr): Move decl here.
1931 * c-common.c (c_build_vec_perm_expr): Move definition
1934 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1936 * c.opt (fconserve-space): Turn into a no-op.
1938 2012-06-04 Sterling Augustine <saugustine@google.com>
1940 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1941 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1942 both the start and end of the function.
1944 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1946 * c-common.c: Do not include output.h.
1947 * c-pragma.c: Likewise.
1949 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1951 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1952 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1953 (lang_decl_name): Handle namespace decls.
1955 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1957 * c-ada-spec.c: Do not include output.h.
1958 * c-semantics.c: Likewise.
1960 2012-05-29 Joseph Myers <joseph@codesourcery.com>
1962 * c-common.c: Fix typo.
1964 2012-05-29 Michael Matz <matz@suse.de>
1966 * c-common.h (c_expand_decl): Remove prototype.
1968 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1970 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1971 * c-opts.c (c_common_handle_option): Remove code handling
1972 warn_missing_braces.
1974 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1977 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1980 2012-05-22 Dodji Seketeli <dodji@redhat.com>
1983 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1985 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1987 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1988 * c-opts.c (c_common_handle_option): Do not handle explicitly
1989 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1991 2012-05-16 Dodji Seketeli <dodji@redhat.com>
1993 PR preprocessor/7263
1994 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1995 to cpp_classify_number. For diagnostics, use the precise location
1996 instead of the global input_location.
1998 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2001 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2003 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
2005 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
2007 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2010 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2011 Wreorder): Use LangEnabledBy.
2012 * c-opts.c (c_common_handle_option): Do not enable them
2013 explicitly. Call lang-specific generated functions.
2014 (c_common_post_options): Do not set them here.
2016 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2018 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2019 Wmissing-field-initializers,Wmissing-parameter-type,
2020 Wold-style-declaration,Woverride-init): Use EnabledBy.
2021 * c-opts.c (c_common_post_options): Do not set here explicitly.
2023 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2026 * c-opts.c (c_common_handle_option): Use handle_generated_option
2027 to enable sub-options.
2029 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
2032 * c-common.c (warnings_for_convert_and_check): Use warning_at.
2034 2012-05-10 Richard Guenther <rguenther@suse.de>
2036 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2037 adjust commentary about TYPE_IS_SIZETYPE types.
2039 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2042 * c-common.c (warn_logical_operator): Check that argument of
2043 integer_zerop is not NULL.
2045 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
2048 * c-common.c (warn_logical_operator): Do not warn if either side
2049 is already true or false.
2051 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2054 * c-common.c (expr_original_type): New.
2055 (shorten_compare): Do not warn for enumeration types.
2057 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2059 * c.opt (fpermissive): Add Var(flag_permissive).
2061 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
2064 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2065 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2067 2012-04-30 Dodji Seketeli <dodji@redhat.com>
2069 Add -Wvarargs option
2070 * c.opt (Wvarargs): Define new option.
2072 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2074 * c-common.c (check_function_arguments): Replace
2075 Wmissing-format-attribute with Wsuggest-attribute=format.
2077 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2079 * c.opt (Wsuggest-attribute=format): New. Alias of
2080 Wmissing-format-attribute.
2081 * c-format.c (decode_format_type): Replace
2082 Wmissing-format-attribute with Wsuggest-attribute=format.
2083 (check_function_format): Likewise.
2085 2012-04-27 Ollie Wild <aaw@google.com>
2087 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2088 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2089 * c.opt: Add Wliteral-suffix.
2091 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2094 * c.opt (Wpedantic): New.
2095 (pedantic): Alias Wpedantic.
2096 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2097 (c_common_post_options): Likewise.
2098 (sanitize_cpp_opts): Likewise.
2099 * c-lex.c (interpret_float): Likewise.
2100 * c-format.c (check_format_types): Likewise.
2101 * c-common.c (pointer_int_sum): Likewise.
2102 (c_sizeof_or_alignof_type): Likewise.
2103 (c_add_case_label): Likewise.
2104 (c_do_switch_warnings): Likewise.
2105 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2107 2012-04-15 Jason Merrill <jason@redhat.com>
2110 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2111 (C_STD_NAME): Distinguish between C++98 and C++11.
2113 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
2116 * c-common.h (uint16_type_node): Rename into...
2117 (c_uint16_type_node): ...this.
2118 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2119 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2121 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
2123 * c-common.c (warn_if_unused_value): Move definition to here.
2124 * c-common.h (warn_if_unused_value): Move declaration to here.
2126 2012-03-23 William Bader <williambader@hotmail.com>
2128 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2130 2012-03-20 Jason Merrill <jason@redhat.com>
2132 * c-common.h (enum cxx_dialect): Add cxx1y.
2133 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2135 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2136 * c-opts.c (c_common_post_options): Likewise.
2137 (set_std_cxx1y): New.
2138 (c_common_handle_option): Call it.
2139 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2141 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
2144 * c.opt ([Wuseless-cast]): Add.
2146 2012-03-16 Richard Guenther <rguenther@suse.de>
2148 * c-pretty-print.c (pp_c_initializer_list): Adjust.
2150 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2153 * c.opt (ftemplate-backtrace-limit) Add.
2155 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2157 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2159 * c-pragma.c (handle_pragma_extern_prefix): Remove.
2160 (init_pragma): Don't register extern_prefix.
2162 2012-03-12 Richard Guenther <rguenther@suse.de>
2164 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2165 (builtin_type_for_size): Likewise.
2167 2012-02-13 Jakub Jelinek <jakub@redhat.com>
2170 * c-common.c (sync_resolve_params): Don't decide whether to convert
2171 or not based on TYPE_SIZE comparison, convert whenever arg_type
2172 is unsigned INTEGER_TYPE.
2174 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
2177 * c.opt ([Wunused-local-typedefs]): Fix description.
2179 2012-01-24 Mike Stump <mikestump@comcast.net>
2181 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2184 2012-01-18 Richard Guenther <rguenther@suse.de>
2186 * c-opts.c (c_common_post_options): Reset LTO flags if
2187 we are about to generate a PCH.
2189 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
2192 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2193 use pp_unsigned_wide_integer.
2195 2012-01-10 Richard Guenther <rguenther@suse.de>
2198 * c-opts.c (c_common_handle_option): Move -Werror handling
2199 to language independent code.
2201 2012-01-05 Richard Guenther <rguenther@suse.de>
2204 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2207 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
2210 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2211 of array types with an unknown bound.
2213 2011-12-20 Joseph Myers <joseph@codesourcery.com>
2215 * c-common.c (flag_isoc99): Update comment to refer to C11.
2216 (flag_isoc1x): Change to flag_isoc11.
2217 * c-common.h (flag_isoc99): Update comment to refer to C11.
2218 (flag_isoc1x): Change to flag_isoc11.
2219 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2221 * c-opts.c (set_std_c1x): Change to set_std_c11.
2222 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2224 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2225 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2226 * c.opt (std=c1x): Change to std=c11. Document as non-draft
2228 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2229 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
2230 (std=gnu1x): Make alias of std=gnu11.
2232 2011-12-19 Jason Merrill <jason@redhat.com>
2235 * c-common.c (handle_transparent_union_attribute): Check the first
2236 field if the type is complete.
2238 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
2241 * c-common.c (RID_IS_FINAL): Add.
2242 * c-common.h (RID_IS_FINAL): Add.
2244 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2246 * c.opt (fgnu-runtime): Provide full description.
2247 (fnext-runtime): Likewise.
2248 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
2250 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
2252 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
2253 predefines in one place. Add LOCK_FREE predefines.
2254 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
2257 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
2260 * c-common.c (get_atomic_generic_size): Check for various error
2262 (resolve_overloaded_atomic_exchange,
2263 resolve_overloaded_atomic_compare_exchange,
2264 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
2265 error_mark_node for error conditions.
2267 2011-11-08 Richard Guenther <rguenther@suse.de>
2272 2011-11-07 Richard Henderson <rth@redhat.com>
2273 Aldy Hernandez <aldyh@redhat.com>
2274 Torvald Riegel <triegel@redhat.com>
2276 Merged from transactional-memory.
2278 * c-common.c (handle_tm_wrap_attribute,
2279 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
2280 (struct c_common_reswords): Added __transaction* keywords.
2281 (struct c_common_attribute_table): Added transaction* and tm_regparm
2283 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2285 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2286 find_tm_attribute): Declare.
2288 2011-11-07 Jason Merrill <jason@redhat.com>
2291 * c-common.c, c-common.h: Revert yesterday's changes.
2293 2011-11-06 Jason Merrill <jason@redhat.com>
2296 * c-common.c (decl_has_visibility_attr): Split out from...
2297 (c_determine_visibility): ...here.
2298 * c-common.h: Declare it.
2300 2011-11-06 Joseph Myers <joseph@codesourcery.com>
2302 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2303 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2305 (check_user_alignment): New. Split out of
2306 handle_aligned_attribute. Disallow integer constants with
2307 noninteger types. Conditionally allow zero.
2308 (handle_aligned_attribute): Use check_user_alignment.
2309 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2311 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
2312 Richard Henderson <rth@redhat.com>
2314 Merged from cxx-mem-model.
2316 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
2317 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
2318 parameters that are the same type size.
2319 (get_atomic_generic_size): New. Find size of generic
2320 atomic function parameters and do typechecking.
2321 (add_atomic_size_parameter): New. Insert size into parameter list.
2322 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2323 either __atomic_exchange_n or external library call.
2324 (resolve_overloaded_atomic_compare_exchange): Restructure
2325 __atomic_compare_exchange to either _n variant or external library call.
2326 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
2327 __atomic_load_n or an external library call.
2328 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2329 __atomic_store_n or an external library call.
2330 (resolve_overloaded_builtin): Handle new __atomic builtins.
2332 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
2335 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2336 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
2337 <INDIRECT_REF>: Return the argument.
2338 <ARRAY_REF>: Remove special code for negative offset.
2339 Call fold_build_pointer_plus instead of size_binop.
2340 (fold_offsetof): Remove STOP_REF argument and adjust.
2341 * c-common.h (fold_offsetof_1): Declare.
2342 (fold_offsetof): Remove STOP_REF argument.
2344 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
2347 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2348 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2349 Wnarrowing for C++0x and C++98.
2350 * c.opt ([Wnarrowing]): Update.
2352 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2355 * c.opt: Add Wzero-as-null-pointer-constant.
2357 2011-10-31 Jason Merrill <jason@redhat.com>
2359 * c.opt (-fdeduce-init-list): Off by default.
2362 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2363 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2365 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2367 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
2370 * c.opt (fvisibility-inlines-hidden): Description change.
2372 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
2374 Implement C++11 user-defined literals.
2375 * c-common.c (build_userdef_literal): New.
2376 * c-common.def: New tree code.
2377 * c-common.h (tree_userdef_literal): New tree struct and accessors.
2378 * c-lex.c (interpret_float): Add suffix parm.
2379 (c_lex_with_flags): Build literal tokens.
2381 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2385 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2388 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2389 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2390 Wnarrowing for C++0x and C++98.
2391 * c.opt ([Wnarrowing]): Update.
2393 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2396 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2397 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2398 Wnarrowing for C++0x and C++98.
2399 * c.opt ([Wnarrowing]): Update.
2401 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
2404 * c-common.c (conversion_warning): Remove code looking for
2405 artificial operands.
2407 2011-10-18 Dodji Seketeli <dodji@redhat.com>
2410 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
2411 !NO_IMPLICIT_EXTERN_C.
2413 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
2415 * c-common.c (c_common_reswords): Add __bases,
2417 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
2419 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
2422 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
2424 2011-10-15 Tom Tromey <tromey@redhat.com>
2425 Dodji Seketeli <dodji@redhat.com>
2427 * c.opt (fdebug-cpp): New option.
2428 * c-opts.c (c_common_handle_option): Handle the option.
2429 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
2430 output stream in parameter. Factorized from ...
2431 (maybe_print_line): ... this. Dump location debug information when
2432 -fdebug-cpp is in effect.
2433 (print_line_1): New static function. Takes an output stream in
2434 parameter. Factorized from ...
2435 (print_line): ... here. Dump location information when -fdebug-cpp
2437 (scan_translation_unit): Dump location information when
2438 -fdebug-cpp is in effect.
2440 2011-10-15 Tom Tromey <tromey@redhat.com>
2441 Dodji Seketeli <dodji@redhat.com>
2443 * c.opt (ftrack-macro-expansion): New option. Handle it with and
2445 * c-opts.c (c_common_handle_option)<case
2446 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
2447 cases. Handle -ftrack-macro-expansion with and without argument.
2449 2011-10-15 Tom Tromey <tromey@redhat.com>
2450 Dodji Seketeli <dodji@redhat.com>
2452 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
2453 (print_line, cb_define, do_line_change): Adjust to avoid touching
2454 the internals of struct line_map. Use the public API instead.
2455 * c-pch.c (c_common_read_pch): Likewise.
2456 * c-lex.c (fe_file_change): Likewise.
2458 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2461 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
2463 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
2466 * c-pretty-print.c (pp_c_floating_constant): Output
2467 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
2469 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2471 * c-common.c (def_builtin_1): Delete old interface with two
2472 parallel arrays to hold standard builtin declarations, and replace
2473 it with a function based interface that can support creating
2474 builtins on the fly in the future. Change all uses, and poison
2475 the old names. Make sure 0 is not a legitimate builtin index.
2476 * c-omp.c (c_finish_omp_barrier): Ditto.
2477 (c_finish_omp_taskwait): Ditto.
2478 (c_finish_omp_flush): Ditto.
2480 2011-10-11 Tristan Gingold <gingold@adacore.com>
2482 * c.opt: (fallow-parameterless-variadic-functions): New.
2484 2011-09-08 Dodji Seketeli <dodji@redhat.com>
2486 PR c++/33255 - Support -Wunused-local-typedefs warning
2487 * c-common.h (struct c_language_function::local_typedefs): New
2489 (record_locally_defined_typedef, maybe_record_typedef_use)
2490 (maybe_warn_unused_local_typedefs): Declare new functions.
2491 * c-common.c (record_locally_defined_typedef)
2492 (maybe_record_typedef_use)
2493 (maybe_warn_unused_local_typedefs): Define new functions.
2494 * c.opt: Declare new -Wunused-local-typedefs flag.
2496 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
2499 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
2502 2011-09-05 Richard Guenther <rguenther@suse.de>
2504 * c-common.c (complete_array_type): Use ssize_int (-1) instead
2505 of integer_minus_one_node for empty array upper bounds.
2507 2011-08-28 Dodji Seketeli <dodji@redhat.com>
2509 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
2510 it's the first time it's being called on this main TU.
2512 2011-08-24 Richard Guenther <rguenther@suse.de>
2515 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2517 2011-08-22 Gabriel Charette <gchare@google.com>
2519 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2520 defined in cpp_init_builtins and c_cpp_builtins.
2522 2011-08-19 Joseph Myers <joseph@codesourcery.com>
2524 * c-common.c (c_common_reswords): Add __builtin_complex.
2525 * c-common.h (RID_BUILTIN_COMPLEX): New.
2527 2011-08-18 Joseph Myers <joseph@codesourcery.com>
2529 * c-common.c (c_common_reswords): Add _Noreturn.
2530 (keyword_is_function_specifier): Handle RID_NORETURN.
2531 * c-common.h (RID_NORETURN): New.
2533 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2535 * c-common.c (unsafe_conversion_p): New function. Check if it is
2536 unsafe to convert an expression to the type.
2537 (conversion_warning): Adjust, use unsafe_conversion_p.
2538 * c-common.h (unsafe_conversion_p): New function declaration.
2540 2011-08-02 Jakub Jelinek <jakub@redhat.com>
2542 * c-common.h (c_finish_omp_atomic): Adjust prototype.
2543 (c_finish_omp_taskyield): New prototype.
2544 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2545 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2546 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
2547 or RHS1 have side-effects, evaluate those too in the right spot,
2548 if it is a decl and LHS is also a decl, error out if they
2550 (c_finish_omp_taskyield): New function.
2551 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2552 * c-pragma.c (omp_pragmas): Add taskyield.
2553 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2554 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2555 PRAGMA_OMP_CLAUSE_MERGEABLE.
2557 2011-07-25 Dodji Seketeli <dodji@redhat.com>
2559 * c-common.h (set_underlying_type): Remove parm name from
2562 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
2564 * c-pretty-print.h: Search c-common.h in c-family.
2566 2011-07-22 Jason Merrill <jason@redhat.com>
2569 * c.opt (Wnarrowing): New.
2572 * c-common.h: Declare c_linkage_bindings.
2573 * c-pragma.c (handle_pragma_redefine_extname): Use it.
2576 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2577 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2578 as flag_isoc99 for 'restrict'.
2579 (pp_c_specifier_qualifier_list): Likewise for _Complex.
2581 2011-07-21 Ian Lance Taylor <iant@google.com>
2584 * c-common.c (c_disable_warnings): New static function.
2585 (c_enable_warnings): New static function.
2586 (c_fully_fold_internal): Change local unused_p to bool. Call
2587 c_disable_warnings and c_enable_warnings rather than change
2588 c_inhibit_evaluation_warnings.
2590 2011-07-20 Jason Merrill <jason@redhat.com>
2592 PR c++/6709 (DR 743)
2593 PR c++/42603 (DR 950)
2594 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2595 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2596 (CPP_DECLTYPE): New.
2597 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2599 2011-07-19 Richard Guenther <rguenther@suse.de>
2601 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2602 * c-omp.c (c_finish_omp_for): Likewise.
2604 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2606 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2607 body on the next line.
2609 2011-07-08 Jason Merrill <jason@redhat.com>
2612 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2615 * c-common.c (c_apply_type_quals_to_decl): Don't check
2616 TYPE_NEEDS_CONSTRUCTING.
2618 2011-07-06 Richard Guenther <rguenther@suse.de>
2620 * c-common.c (c_common_nodes_and_builtins):
2621 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2623 2011-07-05 Richard Guenther <rguenther@suse.de>
2625 * c-common.c (c_common_nodes_and_builtins): Build all common
2628 2011-06-27 Jakub Jelinek <jakub@redhat.com>
2630 * c-common.h (c_tree_chain_next): New static inline function.
2632 * c-common.c (check_builtin_function_arguments): Handle
2633 BUILT_IN_ASSUME_ALIGNED.
2635 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
2637 * c-common.c: Add sync_ or SYNC__ to builtin names.
2638 * c-omp.c: Add sync_ or SYNC__ to builtin names.
2640 2011-06-20 Pierre Vittet <piervit@pvittet.com>
2642 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2644 (gen_pragma_handler): New union.
2645 (internal_pragma_handler): New type.
2646 (c_register_pragma_with_data)
2647 (c_register_pragma_with_expansion_and_data): New functions.
2649 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2650 (c_register_pragma, c_register_pragma_with_expansion)
2651 (c_invoke_pragma_handler): Changed to work with
2652 internal_pragma_handler.
2653 (c_register_pragma_with_data)
2654 (c_register_pragma_with_expansion_and_data): New functions.
2656 2011-06-14 Joseph Myers <joseph@codesourcery.com>
2658 * c-common.c: Include common/common-target.h.
2659 (handle_section_attribute): Use
2660 targetm_common.have_named_sections.
2661 * c-cppbuiltin.c: Include common/common-target.h.
2662 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2664 2011-06-10 Richard Guenther <rguenther@suse.de>
2666 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2667 to print a IDENTIFIER_NODE.
2669 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2670 Joseph Myers <joseph@codesourcery.com>
2672 * c.opt (fbuilding-libgcc): New option.
2673 * c-cppbuiltin.c (c_cpp_builtins): Define
2674 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2676 2011-06-07 Jason Merrill <jason@redhat.com>
2678 * c-common.c (max_tinst_depth): Lower default to 900.
2680 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2682 2011-06-07 Richard Guenther <rguenther@suse.de>
2684 * c-common.c (c_common_nodes_and_builtins): Do not set
2685 size_type_node or call set_sizetype.
2687 2011-06-07 Dodji Seketeli <dodji@redhat.com>
2690 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
2691 type when using pointer comparison to compare types.
2693 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2695 * c.opt: Add -Wdelete-non-virtual-dtor.
2696 * c-opts.c (c_common_handle_option): Include it in -Wall.
2698 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2703 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2705 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2708 2011-05-27 Jakub Jelinek <jakub@redhat.com>
2711 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2712 C++ don't call c_common_truthvalue_conversion on void type arms.
2714 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2716 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2717 (stmt_list_stack): Define.
2718 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2719 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2721 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2723 * c-common.c (warning_candidate_p): Check for BLOCKs.
2725 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2727 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2730 2011-05-25 Jakub Jelinek <jakub@redhat.com>
2732 * c-common.c (def_fn_type): Remove extra va_end.
2734 2011-05-23 Jason Merrill <jason@redhat.com>
2737 * c-common.c (c_common_get_narrower): New.
2738 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2740 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2742 * c-common.h (check_function_arguments): Tweak prototype of
2743 check_function_arguments.
2744 * c-common.c (check_function_arguments): Likewise. Adjust
2745 calls to check_function_nonnull, check_function_format, and
2746 check_function_sentinel.
2747 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2748 separate attributes and typelist arguments. Use
2749 FOREACH_FUNCTION_ARGS to iterate over argument types.
2751 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2753 * c-common.c (c_common_reswords): Reorder.
2754 * c-common.h (rid): Likewise.
2756 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2758 * c-common.c (def_fn_type): Don't call build_function_type, call
2759 build_function_type_array or build_varargs_function_type_array
2761 (c_common_nodes_and_builtins): Likewise.
2763 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2765 * c-common.c (c_add_case_label): Omit the loc argument to
2767 * c-common.h (build_case_label): Remove.
2768 * c-semantics.c (build_case_label): Remove.
2770 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2772 * c-objc.h (objc_start_method_definition): Update prototype.
2773 * stub-objc.c (objc_start_method_definition): Add extra parameter.
2775 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2777 * c-common.c (check_main_parameter_types): Reindent. Don't use
2778 TYPE_ARG_TYPES directly.
2779 (handle_nonnull_attribute): Likewise.
2780 (sync_resolve_params): Likewise.
2781 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
2782 to check_format_string.
2783 (handle_format_attribute): Likewise.
2784 (check_format_string): Take a function type to examine instead of
2785 a type list. Use a function_arg_iterator to step through argument
2788 2011-05-04 Richard Guenther <rguenther@suse.de>
2790 * c-common.c (fix_string_type): Use size_int for index type bounds.
2791 (start_fname_decls): Do not pass NULL to build_int_cst.
2792 (c_init_attributes): Likewise.
2793 * c-lex.c (c_lex_with_flags): Likewise.
2795 2011-04-27 Jason Merrill <jason@redhat.com>
2797 * c-common.c (make_tree_vector_from_list): New.
2798 * c-common.h: Declare it.
2800 2011-04-26 Richard Guenther <rguenther@suse.de>
2802 PR preprocessor/48248
2803 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2804 for output size with -P.
2806 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2808 * c-common.c (struct c_common_resword): Add __underlying_type.
2809 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2811 2011-04-20 Jim Meyering <meyering@redhat.com>
2813 * c-format.c (init_dollar_format_checking): Remove useless
2816 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2818 * c-objc.h (objc_get_interface_ivars): Removed.
2819 (objc_detect_field_duplicates): New.
2820 * stub-objc.c: Likewise.
2822 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2824 * stub-objc.c (objc_declare_protocols): Renamed to
2825 objc_declare_protocol.
2826 * c-objc.h: Likewise.
2828 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2830 * stub-objc.c (objc_declare_class): Updated argument name.
2832 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2834 * c-common.h (c_common_init_ts): Declare.
2835 * c-common.c (c_common_init_ts): Define.
2837 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2839 * c-objc.h (objc_build_message_expr): Updated prototype.
2840 * stub-objc.c (objc_build_message_expr): Likewise.
2842 2011-04-12 Martin Jambor <mjambor@suse.cz>
2844 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2847 2011-04-11 Richard Guenther <rguenther@suse.de>
2849 * c-common.c (complete_array_type): Build a range type of
2852 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2854 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2855 (handle_type_generic_attribute): Likewise.
2857 2011-04-07 Jason Merrill <jason@redhat.com>
2860 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2861 conversion from C++0x scoped enum.
2863 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2865 * c-target-def.h: New file.
2866 * c-target.def: New file.
2867 * c-target.h: New file.
2868 * c-common.c (targetcm): Don't define here.
2869 * c-common.h (default_handle_c_option): Declare.
2870 * c-format.c: Include c-target.h instead of target.h.
2871 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2873 (default_handle_c_option): Move from targhooks.c.
2875 2011-03-29 Jakub Jelinek <jakub@redhat.com>
2877 PR preprocessor/48248
2878 * c-ppoutput.c (print): Add src_file field.
2879 (init_pp_output): Initialize it.
2880 (maybe_print_line): Don't optimize by adding up to 8 newlines
2881 if map->to_file and print.src_file are different file.
2882 (print_line): Update print.src_file.
2884 2011-03-25 Kai Tietz <ktietz@redhat.com>
2886 * c-ada-spec.c (compare_comment): Use filename_cmp
2887 instead of strcmp for filename.
2889 2011-03-25 Jeff Law <law@redhat.com>
2891 * c-family/c-common.c (def_fn_type): Add missing va_end.
2893 2011-03-25 Jason Merrill <jason@redhat.com>
2895 * c.opt: Add -std=c++03.
2897 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2899 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2901 2011-03-17 Kai Tietz
2904 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2905 Display allowed attributes for function pointer types.
2906 (pp_c_attributes_display): New function to display
2907 attributes having affects_type_identity flag set to true.
2908 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2910 * c-common.c (c_common_attribute_table):
2912 (c_common_format_attribute_table): Likewise.
2914 2011-03-18 Jason Merrill <jason@redhat.com>
2916 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2917 * c-common.h: Don't declare it here.
2918 * c-common.c: Or define it here.
2919 * c-opts.c (c_common_handle_option): Or set it here.
2922 * c-common.c (handle_transparent_union_attribute): Don't
2923 make a duplicate type in C++.
2925 2011-03-15 Jason Merrill <jason@redhat.com>
2927 * c-common.c (max_constexpr_depth): New.
2928 * c-common.h: Declare it.
2929 * c-opts.c (c_common_handle_option): Set it.
2930 * c.opt (fconstexpr-depth): New option.
2932 2011-03-11 Jason Merrill <jason@redhat.com>
2934 * c-common.c (attribute_takes_identifier_p): Add missing const.
2937 * c-common.c (attribute_takes_identifier_p): Assume that an
2938 unknown attribute takes an identifier.
2940 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2943 * c-common.c (c_type_hash): Call list_length instead of iterating
2944 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2946 2011-02-19 Jakub Jelinek <jakub@redhat.com>
2949 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2951 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2953 * c.opt (fobjc-abi-version=) New.
2954 (fobjc-nilcheck): New.
2956 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2959 * c-common.h (keyword_is_decl_specifier): Declare.
2960 * c-common.c (keyword_is_decl_specifier): Define.
2961 (keyword_is_function_specifier): New function.
2963 2011-01-26 Jakub Jelinek <jakub@redhat.com>
2966 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2967 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2970 2011-01-26 Arnaud Charlet <charlet@adacore.com>
2972 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2974 2011-01-26 Jakub Jelinek <jakub@redhat.com>
2977 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2978 after init_c_lex if pch_file is set.
2980 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2983 * c.opt (-fkeep-inline-dllexport): New switch.
2985 2011-01-12 Richard Guenther <rguenther@suse.de>
2988 * c-common.c (handle_weak_attribute): Warn instead of error
2989 on declaring an inline function weak.
2991 2011-01-05 Tom Tromey <tromey@redhat.com>
2993 * c-common.h (lvalue_error): Update.
2994 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2997 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
3000 * c-objc.h (objc_finish_message_expr): Added argument to
3003 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
3005 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3008 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
3010 * c-objc.h (objc_maybe_warn_exceptions): New.
3011 * stub-objc.c (objc_maybe_warn_exceptions): New.
3013 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
3015 * c-common.h (readonly_error): Declare.
3016 * c-common.c (readonly_error): Define.
3018 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
3020 * c-common.h (invalid_indirection_error): Declare.
3021 * c-common.c (invalid_indirection_error): Define.
3023 2010-12-03 Richard Guenther <rguenther@suse.de>
3026 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3027 (pp_c_unary_expression): Likewise.
3028 (pp_c_expression): Likewise.
3030 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
3032 * c-common.h (objc_finish_function): New.
3033 (objc_non_volatilized_type): Removed.
3034 (objc_type_quals_match): Removed.
3035 * stub-objc.c (objc_finish_function): New.
3036 (objc_non_volatilized_type): Removed.
3037 (objc_type_quals_match): Removed.
3039 2010-11-30 Joseph Myers <joseph@codesourcery.com>
3041 * c-common.h (parse_optimize_options): Declare.
3042 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3043 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3045 2010-11-29 Joseph Myers <joseph@codesourcery.com>
3047 * c-opts.c (check_deps_environment_vars): Use getenv instead of
3049 * c-pch.c (O_BINARY): Don't define here.
3050 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3052 2010-11-25 Joseph Myers <joseph@codesourcery.com>
3054 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3055 targetm.except_unwind_info.
3057 2010-11-23 Joseph Myers <joseph@codesourcery.com>
3059 * c-opts.c (c_common_handle_option): Pass location to
3060 set_struct_debug_option.
3062 2010-11-23 Joseph Myers <joseph@codesourcery.com>
3064 * c-common.c (visibility_options): Move from ../opts.c.
3065 * c-common.h (struct visibility_flags, visibility_options):
3067 * c-opts.c (finish_options): Rename to c_finish_options.
3068 (c_common_init): Update call to finish_options.
3070 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
3073 * c-lex.c (lex_string): Check that each string in an Objective-C
3074 string concat sequence starts with either one or zero '@', and
3075 that there are no spurious '@' signs at the end.
3077 2010-11-20 Joseph Myers <joseph@codesourcery.com>
3079 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3080 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3081 HANDLE_PRAGMA_VISIBILITY.
3082 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3083 HANDLE_PRAGMA_VISIBILITY): Don't define.
3084 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3086 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
3091 * c-common.h (keyword_begins_type_specifier): Declare.
3092 (keyword_is_storage_class_specifier): Declare.
3093 (keyword_is_type_qualifier): Declare.
3094 * c-common.c (keyword_begins_type_specifier): New function.
3095 (keyword_is_storage_class_specifier): New function.
3096 (keyword_is_type_qualifier): Declare.
3098 2010-11-19 Joseph Myers <joseph@codesourcery.com>
3101 * c-common.c (in_late_binary_op): Define.
3102 (c_common_truthvalue_conversion): Check in_late_binary_op before
3103 calling c_save_expr.
3104 * c-common.h (in_late_binary_op): Declare.
3106 2010-11-19 Joseph Myers <joseph@codesourcery.com>
3108 * c-opts.c (c_common_handle_option): Update calls to
3109 set_struct_debug_option.
3111 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3113 * c-common.h (objc_declare_protocols): Added additional argument.
3114 * stub-objc.c (objc_declare_protocol): Same change.
3116 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3119 * c-common.h (build_real_imag_expr): Declare.
3120 * c-semantics.c (build_real_imag_expr): Define.
3122 2010-11-17 Joseph Myers <joseph@codesourcery.com>
3124 * c-opts.c (c_common_parse_file): Take no arguments.
3125 * c-common.h (c_common_parse_file): Update prototype.
3127 2010-11-16 Jakub Jelinek <jakub@redhat.com>
3130 * c-common.c (warning_candidate_p): Don't track non-const calls
3133 2010-11-15 Ian Lance Taylor <iant@google.com>
3135 * c-lex.c (init_c_lex): Set macro debug callbacks if
3136 flag_dump_go_spec is set.
3138 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
3140 * c-common.h (objc_build_incr_expr_for_property_ref): New.
3141 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3143 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
3145 PR preprocessor/45038
3146 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3149 2010-11-12 Joseph Myers <joseph@codesourcery.com>
3151 * c-common.h (c_family_lang_mask): Declare.
3152 * c-opts.c (c_family_lang_mask): Make extern.
3153 * c-pragma.c (handle_pragma_diagnostic): Use
3154 control_warning_option.
3156 2010-11-12 Joseph Myers <joseph@codesourcery.com>
3158 * c-common.c (parse_optimize_options): Update call to
3160 * c-common.h (c_common_handle_option): Update prototype.
3161 * c-opts.c (c_common_handle_option): Take location_t parameter and
3162 pass it to other functions.
3164 2010-11-11 Joseph Myers <joseph@codesourcery.com>
3166 * c-opts.c (warning_as_error_callback): Remove.
3167 (c_common_initialize_diagnostics): Don't call
3168 register_warning_as_error_callback.
3169 (c_common_handle_option): Handle -Werror=normalized= here.
3171 2010-11-10 Joseph Myers <joseph@codesourcery.com>
3173 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3175 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3177 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3178 Remove trailing '.' from diagnostics.
3179 * c.opt (Wwrite-strings_: Avoid '`' in help text.
3181 2010-11-10 Joseph Myers <joseph@codesourcery.com>
3183 * c-common.c (parse_optimize_options): Pass global_dc to
3185 * c-opts.c (c_common_handle_option): Pass &global_options to
3186 set_Wstrict_aliasing.
3187 * c.opt (v): Don't mark Common or document here.
3189 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3192 * c-format.c (format_type): New type gcc_objc_string_format_type.
3193 (valid_stringptr_type_p): New.
3194 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
3195 (check_format_string): Pass expected type, use
3196 valid_stringptr_type_p (), check that the format string types are
3197 consistent with the format specification.
3198 (decode_format_attr): Warn if NSString is used outside objective-c.
3199 (format_types_orig): Add NSString.
3201 (format_flags): New.
3202 (check_format_arg): Handle format strings requiring an external parser.
3203 first_target_format_type: New variable.
3204 (handle_format_attribute): Set up first_target_format_type, pass the
3205 expected format arg string type to check_format_string().
3206 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
3207 * stub-objc.c (objc_string_ref_type_p): New.
3208 (objc_check_format_arg): New.
3210 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
3212 Fixed using the Objective-C 2.0 dot-syntax with class names.
3213 * c-common.h (objc_build_class_component_ref): New.
3214 * stub-objc.c (objc_build_class_component_ref): New.
3216 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3218 * c.opt (Wproperty-assign-default): New option.
3220 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3222 Implemented -fobjc-std=objc1 flag.
3223 * c.opt (fobjc-std=objc1): New option.
3225 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
3227 Implemented format and noreturn attributes for Objective-C methods.
3228 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3229 attribute for Objective-C methods.
3231 2010-10-31 Jason Merrill <jason@redhat.com>
3233 * c-common.c (conversion_warning, warn_for_collisions_1): Use
3236 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
3238 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3239 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
3240 (objc_add_property_declaration): Removed arguments for copies and
3242 (objc_build_getter_call): Renamed to
3243 objc_maybe_build_component_ref.
3244 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3245 (objc_is_property_ref): New.
3246 * c-common.c (c_common_reswords): Removed copies and ivar.
3247 * stub-objc.c (objc_add_property_declaration): Removed arguments
3248 for copies and ivar.
3249 (objc_build_getter_call): Renamed to
3250 objc_maybe_build_component_ref.
3251 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3252 (objc_is_property_ref): New.
3254 2010-10-29 Arnaud Charlet <charlet@adacore.com>
3255 Matthew Gingell <gingell@adacore.com>
3257 * c-ada-spec.c (separate_class_package): New function.
3258 (pp_ada_tree_identifier): Prefix references to C++ classes with the
3259 name of their enclosing package.
3260 (print_ada_declaration): Use separate_class_package.
3262 2010-10-27 Jason Merrill <jason@redhat.com>
3264 * c-common.c (c_common_reswords): Add __is_literal_type.
3265 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
3267 * c-common.c (check_case_value): Remove special C++ code.
3269 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3271 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
3272 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
3274 (objc_add_property_declaration): Added additional arguments.
3275 (objc_property_attribute_kind): Removed.
3276 (objc_set_property_attr): Removed.
3277 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
3279 * stub-objc.c (objc_add_property_declaration): Added additional
3281 (objc_set_property_attr): Removed.
3283 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3285 * c-common.h (objc_add_property_variable): Renamed to
3286 objc_add_property_declaration. Added location argument.
3287 * stub-objc.c (objc_add_property_variable): Same change.
3289 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
3291 * c-common.h (objc_maybe_printable_name): New.
3292 * stub-objc.c (objc_maybe_printable_name): New.
3294 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3295 Andrew Pinski <pinskia@gmail.com>
3297 * c-common.h (c_common_mark_addressable_vec): Declare.
3298 * c-common.c (c_common_mark_addressable_vec): New function.
3300 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3302 * c-common.h (objc_set_method_type): Removed.
3303 (objc_add_method_declaration): Added boolean argument.
3304 (objc_start_method_definition): Same change.
3305 (objc_build_method_signature): Same change.
3306 * stub-objc.c (objc_set_method_type): Removed.
3307 (objc_add_method_declaration): Added boolean argument.
3308 (objc_start_method_definition): Same change.
3309 (objc_build_method_signature): Same change.
3311 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3313 * c-common.h (finish_file): Removed.
3314 (objc_write_global_declarations): New.
3315 * c-opts.c (c_common_parse_file): Do not call finish_file.
3316 * stub-objc.c (objc_write_global_declarations): New.
3318 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3320 Implemented parsing @synthesize and @dynamic for
3321 Objective-C/Objective-C++.
3322 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3323 (objc_add_synthesize_declaration): New.
3324 (objc_add_dynamic_declaration): New.
3325 * c-common.c (c_common_reswords): Add synthesize and dynamic.
3326 * stub-objc.c (objc_add_synthesize_declaration): New.
3327 (objc_add_dynamic_declaration): New.
3329 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3332 * c-cppbuiltin.c (mode_has_fma): Move function here from
3333 builtins.c. Don't use the fma optab, instead just use the
3334 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3337 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3339 Merge from 'apple/trunk' branch on FSF servers.
3341 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
3344 * c-common.h (objc_non_volatilized_type): New declaration
3345 * stub-objc.c (objc_non_volatilized_type): New stub.
3347 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3349 Merge from 'apple/trunk' branch on FSF servers.
3351 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3354 * c-common.h (objc_diagnose_private_ivar): New decl.
3355 * stub-objc.c (objc_diagnose_private_ivar): New stub.
3357 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
3359 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3360 * c-common.h (enum rid): Add RID_AT_PACKAGE.
3361 (objc_ivar_visibility_kind): New enum.
3362 (objc_set_visibility): Adjust prototype to use visibility enum.
3363 * stub-objc.c (objc_set_visibility): Adjust stub to use
3366 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3368 * c-cppbuiltin.c (builtin_define_float_constants): Emit
3369 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3370 has the appropriate fma builtins.
3371 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3373 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3375 merge from FSF apple 'trunk' branch.
3376 2006 Fariborz Jahanian <fjahanian@apple.com>
3378 Radars 4436866, 4505126, 4506903, 4517826
3379 * c-common.c (c_common_resword): Define @property and its attributes.
3380 * c-common.h: Define property attribute enum entries.
3381 (OBJC_IS_PATTR_KEYWORD): New.
3382 (objc_property_attribute_kind): New enum.
3383 Declare objc_set_property_attr (), objc_add_property_variable (),
3384 objc_build_getter_call () and objc_build_setter_call ().
3385 * stub-objc.c (objc_set_property_attr): New stub.
3386 (objc_add_property_variable): Likewise.
3387 (objc_build_getter_call): Likewise.
3388 (objc_build_setter_call) Likewise.
3390 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
3392 merge from FSF apple 'trunk' branch.
3393 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3395 Radar 3803157 (method attributes)
3396 * c-common.c (handle_deprecated_attribute): Recognize
3397 objc methods as valid declarations.
3398 * c-common.h: Declare objc_method_decl ().
3399 * stub-objc.c (objc_method_decl): New stub.
3401 2010-10-08 Joseph Myers <joseph@codesourcery.com>
3403 * c-common.c (parse_optimize_options): Call
3404 decode_cmdline_options_to_array_default_mask before
3405 decode_options. Update arguments to decode_options.
3406 * c-common.h (c_common_init_options_struct): Declare.
3407 * c-opts.c (c_common_init_options_struct): New. Split out from
3408 c_common_init_options.
3410 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
3412 Implemented fast enumeration for Objective-C.
3413 * c-common.h (objc_finish_foreach_loop): New.
3414 * stub-objc.c (objc_finish_foreach_loop): New.
3416 2010-10-05 Joseph Myers <joseph@codesourcery.com>
3418 * c-common.h (struct diagnostic_context): Don't declare here.
3419 (c_common_initialize_diagnostics): Declare using
3420 diagnostic_context typedef.
3421 * c-opts.c (c_common_handle_option): Pass global_dc to
3422 handle_generated_option.
3424 2010-10-04 Joseph Myers <joseph@codesourcery.com>
3426 * c-opts.c (c_common_handle_option): Pass &global_options_set to
3427 handle_generated_option.
3429 2010-10-03 Ian Lance Taylor <iant@google.com>
3431 * c.opt (-fplan9-extensions): New option.
3433 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3435 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
3437 (c_cpp_builtins): Call functions from cppbuiltin.c instead
3438 of duplicating code.
3440 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
3442 * c-common.c: Add two new entries for @optional
3443 and @required keywords.
3445 merge from FSF 'apple/trunk' branch.
3446 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
3449 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
3450 objective-c keywords.
3451 (objc_set_method_opt): New declaration.
3452 * stub-objc.c (objc_set_method_opt): New stub.
3454 2010-09-30 Joseph Myers <joseph@codesourcery.com>
3456 * c-common.c (handle_optimize_attribute): Pass &global_options to
3457 cl_optimization_save and cl_optimization_restore.
3458 * c-opts.c (c_common_handle_option): Pass &global_options to
3459 handle_generated_option.
3460 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
3461 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
3462 &global_options to cl_optimization_restore.
3464 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
3466 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
3467 Objective-C/Objective-C++ keywords.
3469 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3471 Merge from 'apple/trunk' branch on FSF servers.
3473 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
3476 * c-common.h (objc_check_global_decl): New declaration.
3477 * stub-objc.c (objc_check_global_decl): New stub.
3479 2010-09-29 Joseph Myers <joseph@codesourcery.com>
3481 * c.opt: Don't use VarExists.
3483 2010-09-29 Joseph Myers <joseph@codesourcery.com>
3485 * c-common.c (c_cpp_error): Update names of diagnostic_context
3487 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
3488 cl_optimization members.
3489 * c-opts.c (warning_as_error_callback, c_common_handle_option,
3490 sanitize_cpp_opts, finish_options): Update names of cpp_options
3493 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3495 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
3496 (objc_is_reserved_word): Removed.
3497 * c-common.c: Updated comments.
3498 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
3499 objc_is_reserved_word.
3500 * stub-objc.c (objc_is_reserved_word): Removed.
3502 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3504 * c-common.h (objc_add_method_declaration): Adjust prototype to
3506 (objc_start_method_definition): Likewise.
3507 (objc_build_keyword_decl): Likewise.
3508 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
3509 (objc_start_method_definition): Likewise.
3510 (objc_build_keyword_decl): Likewise.
3512 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3514 * c-common.h (objc_start_class_interface): Adjust prototype.
3515 (objc_start_category_interface): Likewise.
3516 (objc_start_protocol): Likewise.
3517 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3518 (objc_start_class_interface): Likewise.
3519 (objc_start_category_interface): Likewise.
3521 2010-09-27 Ian Lance Taylor <iant@google.com>
3523 * c-common.c (c_common_attribute_table): Add no_split_stack.
3524 (handle_no_split_stack_attribute): New static function.
3526 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3528 Merge from 'apple/trunk' branch on FSF servers.
3530 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3533 * c-common.h (objc_have_common_type): New declaration.
3534 * stub-objc.c (objc_have_common_type): New stub.
3536 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3539 * c-common.h (objc_common_type): New prototype.
3540 * stub-objc.c (objc_common_type): New stub.
3542 2010-09-24 Jan Hubicka <jh@suse.cz>
3544 * c-common.c (handle_leaf_attribute): New function.
3545 (struct attribute_spec c_common_att): Add leaf.
3547 2010-09-22 Joseph Myers <joseph@codesourcery.com>
3549 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3550 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3551 -dump, -dump=, -imacros, -imacros=, -include, -include=,
3552 -include-barrier, -include-directory, -include-directory=,
3553 -include-directory-after, -include-directory-after=,
3554 -include-prefix, -include-prefix=, -include-with-prefix,
3555 -include-with-prefix=, -include-with-prefix-after,
3556 -include-with-prefix-after=, -include-with-prefix-before,
3557 -include-with-prefix-before=, -no-integrated-cpp,
3558 -no-line-commands, -no-standard-includes, -no-warnings, -output,
3559 -output=, -pedantic, -pedantic-errors, -preprocess,
3560 -print-missing-file-dependencies, -trace-includes, -traditional,
3561 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3562 -user-dependencies, -verbose, -write-dependencies,
3563 -write-user-dependencies, no-integrated-cpp, traditional): New.
3565 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3568 * c-common.h (objc_start_method_definition): Return bool instead
3570 * stub-objc.c (objc_start_method_definition): Return bool instead
3573 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3576 * c-common.h (objc_get_interface_ivars): New declaration.
3577 * stub-objc.c (objc_get_interface_ivars): New stub.
3579 2010-09-15 Ian Lance Taylor <iant@google.com>
3581 * c-common.c (parse_optimize_options): Do not capitalize warning
3582 messages. Remove period at end of warning message.
3584 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3586 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3587 (handle_alias_attribute): ... here.
3588 (handle_ifunc_attribute): New.
3590 2010-09-06 Mark Mitchell <mark@codesourcery.com>
3592 * c-common.h (do_warn_double_promotion): Declare.
3593 * c-common.c (do_warn_double_promotion): Define.
3595 2010-09-05 Mark Mitchell <mark@codesourcery.com>
3597 * c.opt (Wdouble-promotion): New.
3599 2010-09-02 Joseph Myers <joseph@codesourcery.com>
3601 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3602 fvtable-thunks, fxref): Mark no longer supported in help text.
3604 2010-09-02 Joseph Myers <joseph@codesourcery.com>
3606 * c.opt (Wimport, fall-virtual, falt-external-templates,
3607 fdefault-inline, fenum-int-equiv, fexternal-templates,
3608 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3609 fname-mangling-version-, fnew-abi, fnonnull-objects,
3610 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3611 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3613 (fhandle-exceptions): Mark with Alias and Warn.
3614 * c-opts.c (c_common_handle_option): Don't handle options marked
3617 2010-09-02 Joseph Myers <joseph@codesourcery.com>
3619 * c.opt (Wcomments, Werror-implicit-function-declaration,
3620 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3621 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3623 * c-common.c (option_codes): Use OPT_Wcomment instead of
3625 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3626 Don't handle options marked as aliases.
3628 2010-08-25 Richard Guenther <rguenther@suse.de>
3630 * c-common.c (c_common_get_alias_set): Remove special
3631 handling for pointers.
3633 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3635 * c-common.c: Use FOR_EACH_VEC_ELT.
3636 * c-gimplify.c: Likewise.
3637 * c-pragma.c: Likewise.
3639 2010-08-16 Joseph Myers <joseph@codesourcery.com>
3641 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3643 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3645 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3646 instead of OPT_MDX and OPT_MMDX.
3648 2010-08-16 Joseph Myers <joseph@codesourcery.com>
3650 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3652 2010-08-12 Joseph Myers <joseph@codesourcery.com>
3654 * c.opt (MD, MMD): Change to MDX and MMDX.
3655 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3657 2010-08-11 Joseph Myers <joseph@codesourcery.com>
3659 * c-opts.c (c_common_handle_option): Call handle_generated_option
3660 instead of handle_option.
3662 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3664 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3665 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3667 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3669 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3670 (pending_redefine_extname): Change type to a VEC.
3671 (add_to_renaming_pragma_list): Update for new type of
3672 pending_redefine_extname.
3673 (maybe_apply_renaming_pragma): Likewise.
3675 2010-08-04 Arnaud Charlet <charlet@adacore.com>
3677 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3679 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3680 decide whether a type has already been declared/seen.
3681 Do not go to the original type.
3682 (dump_nested_types): New parameter forward.
3683 Generate forward declaration if needed and mark type as visited.
3684 (print_ada_declaration): Call dump_nested_types if not already done.
3685 Mark types as visited.
3687 2010-08-03 Joseph Myers <joseph@codesourcery.com>
3689 * c.opt (-print-pch-checksum): Remove option.
3690 * c-opts.c (c_common_handle_option): Don't handle
3691 OPT_print_pch_checksum.
3693 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3695 * c-common.h (c_common_handle_option): Update prototype and return
3697 * c-opts.c (c_common_handle_option): Update prototype and return
3698 value type. Update calls to handle_option and
3699 enable_warning_as_error.
3701 2010-07-27 Jakub Jelinek <jakub@redhat.com>
3704 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3706 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3708 * c-common.h (c_common_missing_argument): Remove.
3709 * c-opts.c (c_common_missing_argument): Remove.
3710 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3711 idirafter, imacros, include, isysroot, isystem, iquote): Add
3713 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3715 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3717 * c-common.h (c_common_option_lang_mask,
3718 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3720 (c_common_init_options): Update prototype.
3721 * c-opts.c (c_common_option_lang_mask): New.
3722 (c_common_initialize_diagnostics): Split out of
3723 c_common_init_options.
3724 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3726 (c_common_init_options): Update prototype. Use decoded options in
3727 search for -lang-asm.
3729 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3731 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3732 * c-format.c: Likewise.
3734 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3736 * c-common.h: Include diagnostic-core.h. Error if already
3738 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3740 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3742 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3743 Do not include expr.h
3744 (vector_mode_valid_p): Move here.
3746 2010-06-21 DJ Delorie <dj@redhat.com>
3748 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3749 allow these pragmas anywhere.
3751 2010-06-14 Jakub Jelinek <jakub@redhat.com>
3754 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3755 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3756 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3757 ggc_strdup instead of xstrdup.
3759 2010-06-10 Jakub Jelinek <jakub@redhat.com>
3761 * c-cppbuiltin.c: Include cpp-id-data.h.
3762 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3763 (lazy_hex_fp_value): New function.
3764 (builtin_define_with_hex_fp_value): Provide definitions lazily.
3766 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3768 * c-gimplify.c: Do not include tree-flow.h
3770 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3773 * c-common.c: Rename targetm member:
3774 targetm.enum_va_list -> targetm.enum_va_list_p
3776 2010-06-28 Anatoly Sokolov <aesok@post.ru>
3778 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3780 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3782 * c-cppbuiltin.c: Do not include except.h.
3784 2010-06-24 Andi Kleen <ak@linux.intel.com>
3786 * c-common.c (warn_for_omitted_condop): New.
3787 * c-common.h (warn_for_omitted_condop): Add prototype.
3789 2010-06-21 Joseph Myers <joseph@codesourcery.com>
3791 * c.opt (lang-objc): Remove.
3792 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3794 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3796 * c-opts.c: Include "tm_p.h".
3798 2010-06-20 Joseph Myers <joseph@codesourcery.com>
3800 * c-common.c (parse_optimize_options): Update call to
3803 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3805 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3806 new type of types_used_by_cur_var_decl.
3808 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3811 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3812 for C++ standard compliance.
3814 2010-06-16 Jason Merrill <jason@redhat.com>
3816 * c.opt: Add -Wnoexcept.
3818 2010-06-16 Richard Guenther <rguenther@suse.de>
3821 * c-common.c (c_common_truthvalue_conversion): Remove
3822 premature and wrong optimization concering ADDR_EXPRs.
3824 2010-06-15 Arnaud Charlet <charlet@adacore.com>
3826 * c-ada-spec.c (dump_sloc): Remove column info.
3827 (is_simple_enum): New function.
3828 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3829 enum types when relevant.
3831 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3833 * c-common.c (conversion_warning): Warn at expression
3836 2010-06-10 Joseph Myers <joseph@codesourcery.com>
3838 * c-opts.c (c_common_handle_option): Don't handle
3841 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3843 * c-pragma.c (push_alignment): Use typed GC allocation.
3844 (handle_pragma_push_options): Likewise.
3846 * c-common.c (parse_optimize_options): Likewise.
3848 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3851 2010-06-07 Joseph Myers <joseph@codesourcery.com>
3853 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3854 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3855 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3856 flag_signed_bitfields, warn_strict_null_sentinel,
3857 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3858 flag_gen_declaration, flag_no_gnu_keywords,
3859 flag_implement_inlines, flag_implicit_templates,
3860 flag_implicit_inline_templates, flag_optional_diags,
3861 flag_elide_constructors, flag_default_inline, flag_rtti,
3862 flag_conserve_space, flag_access_control, flag_check_new,
3863 flag_new_for_scope, flag_weak, flag_working_directory,
3864 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3865 flag_enforce_eh_specs, flag_threadsafe_statics,
3866 flag_pretty_templates): Remove.
3867 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3868 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3869 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3870 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3871 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3872 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3873 flag_no_gnu_keywords, flag_implement_inlines,
3874 flag_implicit_templates, flag_implicit_inline_templates,
3875 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3876 flag_rtti, flag_conserve_space, flag_access_control,
3877 flag_check_new, flag_new_for_scope, flag_weak,
3878 flag_working_directory, flag_use_cxa_atexit,
3879 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3880 flag_threadsafe_statics, flag_pretty_templates,
3881 warn_strict_null_sentinel): Remove.
3882 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3883 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3884 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3885 fimplicit-inline-templates, fimplicit-templates,
3886 flax-vector-conversions, fms-extensions, fnil-receivers,
3887 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3888 frtti, fshort-double, fshort-enums, fshort-wchar,
3889 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3890 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3891 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3892 gen-decls, undef): Use Var.
3893 (fdefault-inline, foptional-diags): Document as doing nothing.
3894 * c-opts.c (c_common_handle_option): Remove cases for options now
3895 using Var. Mark ignored options as such.
3897 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3899 * c-common.c: Moved to here from parent directory.
3900 * c-common.def: Likewise.
3901 * c-common.h: Likewise.
3902 * c-cppbuiltin.c: Likewise.
3903 * c-dump.c: Likewise.
3904 * c-format.c: Likewise.
3905 * c-format.h : Likewise.
3906 * c-gimplify.c: Likewise.
3907 * c-lex.c: Likewise.
3908 * c-omp.c: Likewise.
3910 * c-opts.c: Likewise.
3911 * c-pch.c: Likewise.
3912 * c-ppoutput.c: Likewise.
3913 * c-pragma.c: Likewise.
3914 * c-pragma.h: Likewise.
3915 * c-pretty-print.c: Likewise.
3916 * c-pretty-print.h: Likewise.
3917 * c-semantics.c: Likewise.
3918 * stub-objc.c: Likewise.
3920 * c-common.c: Include gt-c-family-c-common.h.
3921 * c-pragma.c: Include gt-c-family-c-pragma.h.
3923 Copyright (C) 2010-2014 Free Software Foundation, Inc.
3925 Copying and distribution of this file, with or without modification,
3926 are permitted in any medium without royalty provided the copyright
3927 notice and this notice are preserved.