1 2014-08-03 Marek Polacek <polacek@redhat.com>
3 * c-common.c (check_case_value): Add location_t parameter. Use it.
4 (c_add_case_label): Pass loc to check_case_value.
6 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
8 * cilk.c: Use hash_map instead of pointer_map.
10 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
12 * c-gimplify.c: Use hash_set instead of pointer_set.
14 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
17 * array-notation-common.c (extract_array_notation_exprs): Handling
20 2014-08-01 Jakub Jelinek <jakub@redhat.com>
22 * c-common.h (min_align_of_type): Removed prototype.
23 * c-common.c (min_align_of_type): Removed.
24 * c-ubsan.h (ubsan_maybe_instrument_reference,
25 ubsan_maybe_instrument_member_call): New prototypes.
26 * c-ubsan.c: Include stor-layout.h and builtins.h.
27 (ubsan_maybe_instrument_reference_or_call,
28 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
31 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
34 * c.opt (-Wreturn-local-addr): Move to common.opt.
36 2014-07-30 Jason Merrill <jason@redhat.com>
41 * c.opt (-fuse-all-virtuals): New.
43 2014-07-30 Tom Tromey <tromey@redhat.com>
46 * c.opt (Wdesignated-init): New option.
47 * c-common.c (c_common_attribute_table): Add "designated_init".
48 (handle_designated_init): New function.
50 2014-07-24 Marek Polacek <polacek@redhat.com>
53 * c-opts.c (c_finish_options): If -imacros is in effect, return.
55 2014-07-16 Dodji Seketeli <dodji@redhat.com>
57 PR preprocessor/60723 - missing system-ness marks for macro tokens
58 * c-ppoutput.c (struct print::prev_was_system_token): New data
60 (init_pp_output): Initialize it.
61 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
62 (do_line_change): Return a flag saying if a line marker was
64 (scan_translation_unit): Detect if the system-ness of the token we
65 are about to emit is different from the one of the previously
66 emitted token. If so, emit a line marker. Avoid emitting useless
67 adjacent line markers. Avoid emitting line markers for tokens
68 originating from the expansion of built-in macros.
69 (scan_translation_unit_directives_only): Adjust.
71 2014-07-15 Marek Polacek <polacek@redhat.com>
73 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
74 TYPE_MAX_VALUE is NULL.
76 2014-07-14 Jakub Jelinek <jakub@redhat.com>
79 * c.opt (Wmemset-transposed-args): New warning.
81 2014-07-10 Jason Merrill <jason@redhat.com>
85 * c.opt (-fuse-all-virtuals): New.
87 2014-07-09 Richard Biener <rguenther@suse.de>
90 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
91 using unsigned arithmetic if overflow does not wrap instead of
92 if overflow is undefined.
94 2014-07-06 Marek Polacek <polacek@redhat.com>
97 * c.opt (Wsizeof-array-argument): New option.
99 2014-07-03 Jakub Jelinek <jakub@redhat.com>
101 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
102 comments->count <= 1, as comments->entries might be NULL.
104 2014-07-01 Marek Polacek <polacek@redhat.com>
106 * c.opt (Wint-conversion): New option.
108 2014-07-01 Marek Polacek <polacek@redhat.com>
111 * c.opt (Wincompatible-pointer-types): New option.
113 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
116 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
117 Do not discard TYPE_QUALS of type.
119 2014-06-26 Jason Merrill <jason@redhat.com>
121 * c-common.h (enum cxx_dialect): Add cxx1z.
122 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
123 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
125 2014-06-26 Teresa Johnson <tejohnson@google.com>
127 * c-common.h (get_dump_info): Declare.
128 * c-gimplify.c (c_genericize): Use saved dump files.
129 * c-opts.c (c_common_parse_file): Begin and end dumps
130 once around parsing invocation.
131 (get_dump_info): New function.
133 2014-06-23 Marek Polacek <polacek@redhat.com>
134 Andrew MacLeod <amacleod@redhat.com>
137 * c-common.c (get_atomic_generic_size): Don't segfault if the
138 type doesn't have a size.
140 2014-06-20 Marek Polacek <polacek@redhat.com>
142 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
143 (ubsan_walk_array_refs_r): New function.
144 (c_genericize): Instrument array bounds.
145 * c-ubsan.c: Include "internal-fn.h".
146 (ubsan_instrument_division): Mark instrumented arrays as having
147 side effects. Adjust ubsan_type_descriptor call.
148 (ubsan_instrument_shift): Likewise.
149 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
150 (ubsan_instrument_bounds): New function.
151 (ubsan_array_ref_instrumented_p): New function.
152 (ubsan_maybe_instrument_array_ref): New function.
153 * c-ubsan.h (ubsan_instrument_bounds): Declare.
154 (ubsan_array_ref_instrumented_p): Declare.
155 (ubsan_maybe_instrument_array_ref): Declare.
157 2014-06-20 Hale Wang <hale.wang@arm.com>
160 * c.opt (fshort-enums): Add to LTO.
161 * c.opt (fshort-wchar): Likewise.
163 2014-06-16 Marek Polacek <polacek@redhat.com>
166 * c.opt (Wswitch-bool): Add Var.
168 2014-06-12 Jakub Jelinek <jakub@redhat.com>
171 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
172 #pragma omp target teams or
173 #pragma omp {,target }teams distribute simd.
175 2014-06-12 Jason Merrill <jason@redhat.com>
177 * c.opt (Wabi=, fabi-compat-version): New.
178 * c-opts.c (c_common_handle_option): Handle -Wabi=.
179 (c_common_post_options): Handle flag_abi_compat_version default.
180 Disallow -fabi-compat-version=1.
181 * c-common.h (abi_version_crosses): New.
183 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
185 * c-family/c-common.c (handle_section_attribute): Update handling for
186 section names that are no longer trees.
188 2014-06-10 Jakub Jelinek <jakub@redhat.com>
191 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
192 (omp_pragmas): ... back here.
194 2014-06-05 Marek Polacek <polacek@redhat.com>
197 * c-common.c (warn_logical_not_parentheses): New function.
198 * c-common.h (warn_logical_not_parentheses): Declare.
199 * c.opt (Wlogical-not-parentheses): New option.
201 2014-06-04 Marek Polacek <polacek@redhat.com>
204 * c-common.c (check_case_bounds): Add location parameter.
206 (c_add_case_label): Pass loc to check_case_bounds.
208 2014-06-03 Marek Polacek <polacek@redhat.com>
211 * c.opt (Wswitch-bool): New option.
213 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
215 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
217 (record_types_used_by_current_var_decl): Move prototype to where
220 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
221 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
222 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
224 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
226 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
227 * c-common.c (c_common_nodes_and_builtins): Don't initialize
229 * c-pretty-print.c (pp_c_void_constant): New function.
230 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
231 (c_pretty_printer::expression): Handle VOID_CST.
232 * cilk.c (extract_free_variables): Likewise.
233 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
234 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
236 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
238 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
239 * c-pragma.c (push_alignment): Adjust.
240 (handle_pragma_push_options): Likewise.
242 2014-05-09 Marek Polacek <polacek@redhat.com>
245 * c-common.c (check_user_alignment): Return -1 if alignment is error
247 (handle_aligned_attribute): Don't call default_conversion on
249 (handle_vector_size_attribute): Likewise.
250 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
251 (handle_sentinel_attribute): Call default_conversion and allow even
252 integral types as an argument.
254 2014-05-08 Marek Polacek <polacek@redhat.com>
257 * c-common.c (min_align_of_type): New function factored out from...
258 (c_sizeof_or_alignof_type): ...here.
259 * c-common.h (min_align_of_type): Declare.
261 2014-05-08 Marek Polacek <polacek@redhat.com>
264 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
265 parameter type of main.
267 2014-05-07 DJ Delorie <dj@redhat.com>
269 * c-cppbuiltin.c (print_bits_of_hex): New.
270 (builtin_define_type_minmax): Print values using hex so as not to
271 require a pre-computed list of string values.
273 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
274 Mike Stump <mikestump@comcast.net>
275 Richard Sandiford <rdsandiford@googlemail.com>
277 * c-ada-spec.c: Include wide-int.h.
278 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
279 (dump_generic_ada_node): Use wide-int interfaces.
280 * c-common.c: Include wide-int-print.h.
281 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
282 (pointer_int_sum): Use wide-int interfaces.
283 (c_common_nodes_and_builtins): Use make_int_cst.
284 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
285 (handle_alloc_size_attribute): Use wide-int interfaces.
286 (get_nonnull_operand): Likewise.
287 * c-format.c (get_constant): Use tree_fits_uhwi_p.
288 * c-lex.c: Include wide-int.h.
289 (narrowest_unsigned_type): Take a widest_int rather than two
291 (narrowest_signed_type): Likewise.
292 (interpret_integer): Update accordingly. Use wide-int interfaces.
293 (lex_charconst): Use wide-int interfaces.
294 * c-pretty-print.c: Include wide-int.h.
295 (pp_c_integer_constant): Use wide-int interfaces.
296 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
299 2014-05-06 Richard Biener <rguenther@suse.de>
301 * c-opts.c (c_common_post_options): For -freestanding,
302 -fno-hosted and -fno-builtin disable pattern recognition
303 if not enabled explicitely.
305 2014-05-02 Marek Polacek <polacek@redhat.com>
307 * c.opt (Wsizeof-pointer-memaccess): Describe option.
309 2014-05-01 Marek Polacek <polacek@redhat.com>
312 * c.opt (Wdiscarded-qualifiers): Add.
314 2014-04-30 Marek Polacek <polacek@redhat.com>
316 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
317 INT_MIN / -1 sanitization only for integer types.
319 2014-04-25 Marek Polacek <polacek@redhat.com>
322 * c-common.c (handle_noinline_attribute): Warn if the attribute
323 conflicts with always_inline attribute.
324 (handle_always_inline_attribute): Warn if the attribute conflicts
325 with noinline attribute.
327 2014-04-25 Marek Polacek <polacek@redhat.com>
330 * c-common.c (check_main_parameter_types): Warn about variadic main.
332 2014-04-24 Mike Stump <mikestump@comcast.net>
334 * c.opt (Wshadow-ivar): Default to on.
336 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
338 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
340 2014-04-23 Marek Polacek <polacek@redhat.com>
342 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
344 2014-04-22 Jakub Jelinek <jakub@redhat.com>
347 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
348 if flag_sanitize_undefined_trap_on_error.
349 (ubsan_instrument_division, ubsan_instrument_shift,
350 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
351 if !flag_sanitize_recover.
353 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
356 * c-common.c (registered_builtin_types): Make non-static.
357 * c-common.h (registered_builtin_types): Declare.
359 2014-04-14 Richard Biener <rguenther@suse.de>
360 Marc Glisse <marc.glisse@inria.fr>
363 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
364 apply may-alias the scalar pointer type when applicable.
366 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
369 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
370 as possible argument for Cilk_spawn.
372 2014-04-11 Tobias Burnus <burnus@net-b.de>
375 * c.opt (Wformat-signedness): Add
376 * c-format.c(check_format_types): Use it.
378 2014-04-11 Jason Merrill <jason@redhat.com>
381 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
382 default_conversion for an array argument.
384 2014-04-08 Marek Polacek <polacek@redhat.com>
387 * c-ubsan.c: Include asan.h.
388 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
390 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
392 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
394 2014-04-02 Marek Polacek <polacek@redhat.com>
396 * c-common.h (c_expand_expr): Remove declaration.
398 2014-03-28 Jakub Jelinek <jakub@redhat.com>
401 * c-common.c (add_atomic_size_parameter): When creating new
402 params vector, push the size argument first.
404 2014-03-26 Jakub Jelinek <jakub@redhat.com>
406 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
407 ubsan_instrument_vla, ubsan_instrument_return): Adjust
408 ubsan_create_data callers.
410 2014-03-22 Jakub Jelinek <jakub@redhat.com>
413 * c-opts.c (c_finish_options): Restore cb_file_change call to
416 2014-03-13 Jakub Jelinek <jakub@redhat.com>
419 * c-pragma.c (apply_pragma_weak): Only look at
420 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
421 DECL_ASSEMBLER_NAME_SET_P (decl).
422 (maybe_apply_pending_pragma_weaks): Exit early if
423 vec_safe_is_empty (pending_weaks) rather than only when
425 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
426 set assembler name back to NULL afterwards.
428 2014-03-11 Jason Merrill <jason@redhat.com>
430 * c.opt: Add -std=gnu++14.
432 2014-03-11 Ian Bolton <ian.bolton@arm.com>
434 * c-opts.c (c_common_post_options): Don't override
435 -ffp-contract=fast if unsafe-math-optimizations is on.
437 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
439 * c.opt: Enable LTO FE for fshort-double.
441 2014-03-07 Jason Merrill <jason@redhat.com>
443 * c.opt: Add -std=c++14.
445 2014-03-06 Marek Polacek <polacek@redhat.com>
448 * cilk.c (contains_cilk_spawn_stmt): New function.
449 (contains_cilk_spawn_stmt_walker): Likewise.
450 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
451 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
453 2014-03-03 Jakub Jelinek <jakub@redhat.com>
455 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
456 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
457 even when flag_preprocess_only.
459 2014-02-26 Jason Merrill <jason@redhat.com>
463 * c-common.c (shorten_compare): Don't check
464 c_inhibit_evaluation_warnings.
466 2014-02-19 Jakub Jelinek <jakub@redhat.com>
469 * c-common.c (c_common_nodes_and_builtins): When initializing
470 c_uint{16,32,64}_type_node, also set corresponding
471 uint{16,32,64}_type_node to the same value.
474 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
475 for PRAGMA_IVDEP if flag_preprocess_only.
477 2014-02-12 Jakub Jelinek <jakub@redhat.com>
480 * c-common.c (merge_tlist): If copy is true, call new_tlist,
481 if false, add ADD itself, rather than vice versa.
482 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
483 copy. For SAVE_EXPR, only call merge_tlist once.
485 2014-02-08 Jakub Jelinek <jakub@redhat.com>
488 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
490 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
492 (c_common_attribute_table): Add alloc_align and assume_aligned
495 2014-02-06 Marek Polacek <polacek@redhat.com>
498 * c-common.c (warn_for_sign_compare): Call warning_at with location
501 2014-02-05 Marek Polacek <polacek@redhat.com>
504 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
507 2014-02-04 Marek Polacek <polacek@redhat.com>
510 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
513 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
517 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
518 handle_vector_size_attribute, handle_nonnull_attribute): Call
519 default_conversion on the attribute argument.
520 (handle_nonnull_attribute): Increment the argument number.
522 2014-01-31 Marek Polacek <polacek@redhat.com>
525 * c-common.c (add_atomic_size_parameter): Pass vNULL to
526 build_function_call_vec.
527 (resolve_overloaded_builtin): Likewise.
528 * c-common.h (build_function_call_vec): Adjust declaration.
530 2014-01-30 Marek Polacek <polacek@redhat.com>
533 * c-common.h (unsafe_conversion_p): Adjust declaration.
534 (warnings_for_convert_and_check): Likewise.
535 (convert_and_check): Likewise.
536 * c-common.c (unsafe_conversion_p): Add location parameter. Call
537 expansion_point_location_if_in_system_header on it.
538 (warnings_for_convert_and_check): Add location parameter. Call
539 expansion_point_location_if_in_system_header on it. Use it.
540 (convert_and_check): Add location parameter. Use it.
541 (conversion_warning): Likewise.
542 (c_add_case_label): Adjust convert_and_check calls.
543 (scalar_to_vector): Adjust unsafe_conversion_p calls.
545 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
547 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
549 * c-pragma.c (init_pragma): Likewise.
552 2014-01-23 Marek Polacek <polacek@redhat.com>
555 * c-common.c (shorten_compare): Add location_t parameter.
556 * c-common.h (shorten_binary_op): Adjust declaration.
558 2014-01-23 Marek Polacek <polacek@redhat.com>
561 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
562 * c-common.h: Declare it.
564 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
566 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
567 * c-ada-spec.c (dump_ads): Likewise.
568 (cpp_check): Likewise.
569 (dump_ada_specs): Likewise.
571 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
574 * c-common.c (handle_no_instrument_function_attribute): Allow
575 no_instrument_function attribute in class member
576 definition/declaration.
578 2014-01-15 Jakub Jelinek <jakub@redhat.com>
581 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
582 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
584 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
585 operand a SAVE_EXPR and second MODIFY_EXPR.
587 2014-01-09 Jakub Jelinek <jakub@redhat.com>
590 * c-pch.c (c_common_write_pch): Call
591 prepare_target_option_nodes_for_pch.
593 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
595 Update copyright years
597 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
599 * array-notation-common.c, c-cilkplus.c: Use the standard form for
600 the copyright notice.
602 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
604 * c-ada-spec.c (print_constructor): New function.
605 (print_destructor): Retrieve the origin of the destructor.
606 (print_ada_declaration): Revamp handling of constructors/destructors.
608 2013-12-23 Stuart Hastings <stuart@apple.com>
609 Bill Maddox <maddox@google.com>
610 Jason Merrill <jason@redhat.com>
612 * c.opt: Add -fdeclone-ctor-dtor.
613 * c-opts.c (c_common_post_options): Default to on iff -Os.
615 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
617 * c-common.c (c_common_attribute_table): Added "cilk simd function"
619 * c-pragma.h (enum pragma_cilk_clause): Remove.
620 (enum pragma_omp_clause): Added the following fields:
621 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
622 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
623 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
624 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
625 PRAGMA_CILK_CLAUSE_UNIFORM.
628 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
630 * cilk.c (cilk_outline): Made this function non-static.
631 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
632 (create_cilk_wrapper): Added a new parameter: a function pointer.
633 (c_install_body_w_frame_cleanup): Remove
634 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
635 * c-common.h (cilk_outline): New prototype.
636 (gimplify_cilk_spawn): Removed two parameters.
637 (cilk_install_body_with_frame_cleanup): New prototype.
638 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
639 CILK_SPAWN_STMT case.
641 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
643 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
645 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
646 (int_array_type_node): Remove.
647 * c-common.c (c_common_nodes_and_builtins): Don't build it.
649 2013-12-05 Marek Polacek <polacek@redhat.com>
652 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
653 [ADJUST_FIELD_ALIGN].
655 2013-12-04 Joseph Myers <joseph@codesourcery.com>
658 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
659 and check field alignment if set.
660 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
661 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
663 2013-12-04 Jakub Jelinek <jakub@redhat.com>
664 Marek Polacek <polacek@redhat.com>
666 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
667 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
669 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
672 * cilk.c (gimplify_cilk_spawn): Properly handle function without
675 2013-11-29 Jakub Jelinek <jakub@redhat.com>
678 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
679 goto invalid. If it is error_mark_node, don't issue further
682 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
684 * c.opt (Wopenmp-simd): New.
686 2013-11-22 Jakub Jelinek <jakub@redhat.com>
688 * c-ubsan.h (ubsan_instrument_return): New prototype.
689 * c-ubsan.c (ubsan_instrument_return): New function.
691 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
693 * c-common.c: Add required include files from gimple.h.
694 * c-gimplify.c: Likewise
697 2013-11-22 David Malcolm <dmalcolm@redhat.com>
699 * c-common.c (unsafe_conversion_p): Remove use of
700 EXPR_LOC_OR_HERE macro.
701 (conversion_warning): Likewise.
702 (warnings_for_convert_and_check): Likewise.
703 (warn_for_collisions_1): Likewise.
704 (shorten_compare): Likewise, and remove use of in_system_header
705 macro, using the location from the former.
706 * c-lex.c (dump_one_header): Remove use of input_filename macro.
707 (cb_def_pragma): Remove use of in_system_header macro.
708 (lex_string): Likewise.
709 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
711 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
712 Mike Stump <mikestump@comcast.net>
713 Richard Sandiford <rdsandiford@googlemail.com>
715 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
716 instead of TREE_INT_CST_LOW, in cases where there is a protecting
717 tree_fits_shwi_p or tree_fits_uhwi_p.
718 (dump_generic_ada_node): Likewise.
719 * c-format.c (check_format_arg): Likewise.
720 * c-pretty-print.c (pp_c_integer_constant): Likewise.
722 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
724 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
726 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
729 * c-common.c (unsafe_conversion_p): Make this function
730 return an enumeration with more detail.
731 (conversion_warning): Use the new return type of
732 unsafe_conversion_p to separately warn either about conversions
733 that lower floating point number precision or about the other
734 kinds of conversions.
735 * c-common.h (enum conversion_safety): New enumeration.
736 (unsafe_conversion_p): switching return type to
737 conversion_safety enumeration.
738 * c.opt: Adding new warning -Wfloat-conversion and
739 enabling it with -Wconversion.
741 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
743 * c-opts.c: Include plugin.h.
744 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
746 2013-11-19 Marek Polacek <polacek@redhat.com>
748 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
750 (ubsan_instrument_shift): Likewise.
751 (ubsan_instrument_vla): Likewise.
753 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
755 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
756 cast to unsigned type.
758 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
760 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
762 (complete_array_type): Update comment to refer to tree_to_[su]hwi
763 rather than tree_low_cst.
765 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
767 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
768 tree_to_uhwi throughout.
770 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
772 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
773 tree_low_cst (..., 0) with tree_to_shwi throughout.
775 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
777 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
778 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
780 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
782 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
783 host_integerp (..., 0) with tree_fits_shwi_p throughout.
785 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
787 * c-cilkplus.c: New file.
788 * c-common.c (readonly_error): Add location argument.
789 * c-common.h (readonly_error): Same.
790 (c_finish_cilk_clauses): Protoize.
791 (c_check_cilk_loop): Same.
792 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
793 Do not fail on error_mark_node.
794 Abstract increment canonicalization to here...
795 (c_omp_for_incr_canonicalize_ptr): New.
796 c-pragma.c (init_pragma): Register "simd" pragma.
797 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
798 (enum pragma_cilk_clause): New.
800 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
802 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
803 wchar_type and host_integerp checks.
805 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
807 * c-common.c: Likewise.
808 * c-gimplify.c: Likewise.
811 2013-11-14 Diego Novillo <dnovillo@google.com>
813 * c-common.c: Include fold-const.h.
814 Include stor-layout.h.
816 Include stringpool.h.
820 * c-cppbuiltin.c: Include stor-layout.h.
821 Include stringpool.h.
822 * c-format.c: Include stringpool.h.
823 * c-lex.c: Include stringpool.h.
824 Include stor-layout.h.
825 * c-pragma.c: Include stringpool.h.
828 Include gcc-symtab.h.
829 * c-pretty-print.c: Include stor-layout.h.
831 * cilk.c: Include stringpool.h.
834 2013-11-13 Joseph Myers <joseph@codesourcery.com>
836 * c-common.h (enum rid): Add RID_AUTO_TYPE.
837 * c-common.c (c_common_reswords): Add __auto_type.
838 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
840 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
842 * c-common.c: Include gimplify.h.
843 * c-gimplify.c: Likewise.
845 * c-omp.c: Include gimple-expr.h instead of gimple.h.
846 * c-ubsan.c: Don't include gimple.h.
848 2013-11-12 Joseph Myers <joseph@codesourcery.com>
850 * c-common.c (c_common_reswords): Add _Thread_local.
852 2013-11-09 Joseph Myers <joseph@codesourcery.com>
854 * c-common.c (atomic_size_supported_p): New function.
855 (resolve_overloaded_atomic_exchange)
856 (resolve_overloaded_atomic_compare_exchange)
857 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
858 Use it instead of comparing size with a local list of sizes.
860 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
861 Joseph Myers <joseph@codesourcery.com>
863 * c-common.h (enum rid): Add RID_ATOMIC.
864 * c-common.c (c_common_reswords): Add _Atomic.
865 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
866 (keyword_is_type_qualifier): Accept RID_ATOMIC.
867 * c-format.c (check_format_types): Check for extra _Atomic
868 qualifiers in format argument.
869 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
870 (pp_c_type_qualifier_list): Mention _Atomic in comment.
872 2013-11-06 Tobias Burnus <burnus@net-b.de>
874 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
876 2013-11-06 Joseph Myers <joseph@codesourcery.com>
878 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
880 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
881 to mean lack of IEEE 754 support.
883 2013-11-05 Tobias Burnus <burnus@net-b.de>
885 * c.opt (-Wdate-time): New option
886 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
888 2013-11-05 Joseph Myers <joseph@codesourcery.com>
890 * c-cppbuiltin.c (cpp_iec_559_value): Test
891 flag_excess_precision_cmdline not flag_excess_precision.
893 2013-11-05 Tobias Burnus <burnus@net-b.de>
895 * c.opt (fopenmp-simd): New option.
896 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
897 (omp_pragmas): ... this new struct.
898 (c_pp_lookup_pragma): Also walk omp_pragmas.
899 (init_pragma): Init pragmas for -fopenmp-simd.
901 2013-11-04 Marek Polacek <polacek@redhat.com>
904 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
906 2013-11-04 Joseph Myers <joseph@codesourcery.com>
908 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
910 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
912 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
914 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
915 (dump_ada_specs): Adjust prototype of second callback.
916 * c-ada-spec.c (cpp_check): New global variable.
917 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
918 (print_generic_ada_decl): Likewise.
919 (has_static_fields): Change return type to bool and add guard.
920 (has_nontrivial_methods): New predicate.
921 (is_tagged_type): Change return type to bool.
922 (separate_class_package): Call has_nontrivial_methods.
923 (pp_ada_tree_identifier): Minor tweaks.
924 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
925 (dump_ada_array_domains): Likewise.
926 (dump_ada_array_type): Likewise.
927 (dump_template_types): Remove cpp_check parameter and do not pass it to
928 dump_generic_ada_node.
929 (dump_ada_template): Likewise.
930 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
932 (print_ada_methods): Change return type to integer. Remove cpp_check
933 parameter and do not pass it down.
934 (dump_nested_types): Remove cpp_check parameter and do not pass it to
935 dump_generic_ada_node.
936 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
938 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
939 down. Use has_nontrivial_methods to recognize C++ classes. Use return
940 value of print_ada_methods.
941 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
942 Set cpp_check to it before invoking dump_ada_nodes.
943 (dump_ada_specs): Likewise.
945 2013-11-03 Marek Polacek <polacek@redhat.com>
947 * c-ubsan.c: Don't include hash-table.h.
948 (ubsan_instrument_vla): New function.
949 * c-ubsan.h: Declare it.
951 2013-10-31 David Malcolm <dmalcolm@redhat.com>
953 Automated part of renaming of symtab_node_base to symtab_node.
955 Patch autogenerated by rename_symtab.py from
956 https://github.com/davidmalcolm/gcc-refactoring-scripts
957 revision 58bb219cc090b2f4516a9297d868c245495ee622
959 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
960 symtab_node_base to symtab_node.
962 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
964 Implement C++14 digit separators.
965 * c-lex.c (interpret_float): Remove digit separators from scratch string
966 before building real literal.
968 2013-10-30 Jakub Jelinek <jakub@redhat.com>
970 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
972 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
974 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
976 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
978 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
979 (insert_cilk_frame): New prototype.
980 (cilk_init_builtins): Likewise.
981 (gimplify_cilk_spawn): Likewise.
982 (c_cilk_install_body_w_frame_cleanup): Likewise.
983 (cilk_detect_spawn_and_unwrap): Likewise.
984 (cilk_set_spawn_marker): Likewise.
985 (build_cilk_sync): Likewise.
986 (build_cilk_spawn): Likewise.
989 2013-10-29 David Malcolm <dmalcolm@redhat.com>
991 Patch autogenerated by refactor_symtab.py from
992 https://github.com/davidmalcolm/gcc-refactoring-scripts
993 revision 58bb219cc090b2f4516a9297d868c245495ee622
995 * c-gimplify.c (c_genericize): Update for conversion of symtab types
996 to a true class hierarchy.
997 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
999 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
1001 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1003 2013-10-26 Jeff Law <law@redhat.com>
1005 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
1006 * c-family/c.opt: Ignore and warn for mudflap options.
1008 2013-10-24 Tobias Burnus <burnus@net-b.de>
1011 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1012 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1014 2013-10-23 Jason Merrill <jason@redhat.com>
1016 * c-format.c (gcc_cxxdiag_char_table): Add %X.
1018 2013-10-11 Jakub Jelinek <jakub@redhat.com>
1020 * c-common.h (omp_clause_mask::operator !=): New method.
1021 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1022 instead of if (mask & something) tests everywhere.
1024 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1025 201307 instead of 201107.
1026 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1027 (c_common_attribute_table): Add "omp declare target" and
1028 "omp declare simd" attributes.
1029 (handle_omp_declare_target_attribute,
1030 handle_omp_declare_simd_attribute): New functions.
1031 * c-omp.c: Include c-pragma.h.
1032 (c_finish_omp_taskgroup): New function.
1033 (c_finish_omp_atomic): Add swapped argument, if true,
1034 build the operation first with rhs, lhs arguments and use NOP_EXPR
1036 (c_finish_omp_for): Add code argument, pass it down to make_code.
1037 (c_omp_split_clauses): New function.
1038 (c_split_parallel_clauses): Removed.
1039 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1040 c_omp_declare_simd_clauses_to_decls): New functions.
1041 * c-common.h (omp_clause_mask): New type.
1042 (OMP_CLAUSE_MASK_1): Define.
1043 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1044 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1045 omp_clause_mask::operator |, omp_clause_mask::operator &,
1046 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1047 omp_clause_mask::operator ==): New methods.
1048 (enum c_omp_clause_split): New.
1049 (c_finish_omp_taskgroup): New prototype.
1050 (c_finish_omp_atomic): Add swapped argument.
1051 (c_finish_omp_for): Add code argument.
1052 (c_omp_split_clauses): New prototype.
1053 (c_split_parallel_clauses): Removed.
1054 (c_omp_declare_simd_clauses_to_numbers,
1055 c_omp_declare_simd_clauses_to_decls): New prototypes.
1056 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1057 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1058 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1059 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1060 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1061 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1062 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1063 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1064 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1065 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1066 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1067 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1068 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1069 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1070 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1071 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1072 PRAGMA_OMP_CLAUSE_UNIFORM.
1074 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
1076 PR tree-optimization/20318
1077 * c-common.c (handle_returns_nonnull_attribute): New function.
1078 (c_common_attribute_table): Add returns_nonnull.
1080 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
1083 * c.opt (fcheck-new): Move to common.opt.
1085 2013-09-25 Marek Polacek <polacek@redhat.com>
1086 Jakub Jelinek <jakub@redhat.com>
1089 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1090 an expression if we can prove it is correct.
1091 (ubsan_instrument_division): Likewise. Remove unnecessary
1094 2013-09-18 Marek Polacek <polacek@redhat.com>
1097 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1099 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1101 2013-09-14 Iain Sandoe <iain@codesourcery.com>
1104 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1105 fobjc-gc, freplace-objc-classes): Accept for LTO.
1107 2013-09-13 Jacek Caban <jacek@codeweavers.com>
1109 * c-target.def: New hook
1111 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1114 * c.opt (Wdelete-incomplete): Add.
1116 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1118 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1119 (vector_types_compatible_elements_p): New function.
1120 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1122 (vector_types_compatible_elements_p): Declare.
1124 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1126 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1127 a virtual member function.
1128 (pp_simple_type_specifier): Remove.
1129 (pp_c_type_specifier): Likewise.
1130 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1131 Rename from pp_c_type_specifier. Adjust.
1132 (c_pretty_printer::c_pretty_printer): Do not assign to
1133 simple_type_specifier.
1135 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1137 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1139 (c_pretty_printer::storage_class_specifier): Likewise.
1140 (c_pretty_printer::initializer): Likewise.
1141 (pp_declaration): Remove.
1142 (pp_declaration_specifiers): Likewise.
1143 (pp_abstract_declarator): Likewise.
1144 (pp_declarator): Likewise.
1145 (pp_type_id): Likewise.
1146 (pp_statement): Likewise.
1147 (pp_constant): Likewise.
1148 (pp_id_expression): Likewise.
1149 (pp_primary_expression): Likewise.
1150 (pp_unary_expression): Likewise.
1151 (pp_multiplicative_expression): Likewise.
1152 (pp_conditional_expression): Likewise.
1153 (pp_assignment_expression): Likewise.
1154 (pp_expression): Likewise.
1155 (pp_c_type_id): Likewise.
1156 (pp_c_storage_class_specifier): Likewise.
1157 * c-pretty-print.c (pp_c_type_cast): Tidy.
1158 (pp_c_pointer): Likewise.
1159 (pp_c_type_specifier): Likewise.
1160 (pp_c_parameter_type_list): Likewise.
1161 (pp_c_function_definition): Likewise.
1162 (pp_c_init_declarator): Likewise.
1163 (pp_c_initializer_list): Likewise.
1164 (pp_c_constructor_elts): Likewise.
1165 (c_pretty_printer::direct_abstract_declarator): Likewise.
1166 (c_pretty_printer::declaration_specifiers): Likewise.
1167 (c_pretty_printer::primary_expression): Likewise.
1168 (c_pretty_printer::postfix_expression): Likewise.
1169 (c_pretty_printer::type_id): Rename from pp_c_type_id.
1170 (c_pretty_printer::storage_class_specifier): Rename from
1171 pp_c_storage_class_specifier.
1172 (c_pretty_printer::initializer): Rename from pp_c_initializer.
1173 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1174 storage_class_specifier, initializer, offset_list, flags.
1176 2013-08-30 Marek Polacek <polacek@redhat.com>
1178 * c-ubsan.c: New file.
1179 * c-ubsan.h: New file.
1181 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1183 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1185 (c_pretty_printer::declaration_specifiers): Likewise.
1186 (c_pretty_printer::declarator): Likewise.
1187 (c_pretty_printer::abstract_declarator): Likewise.
1188 (c_pretty_printer::direct_abstract_declarator): Likewise.
1189 (c_pretty_printer::direct_declarator): Likewise.
1190 (c_pretty_printer::function_specifier): Likewise.
1191 (pp_declaration): Adjust.
1192 (pp_declaration_specifiers): Likewise.
1193 (pp_abstract_declarator): Likewise.
1194 (pp_direct_declarator): Likewise.
1195 (pp_function_specifier): Likewise.
1196 (pp_direct_abstract_declarator): Remove as unused.
1197 (pp_c_declaration): Remove.
1198 (pp_c_declaration_specifiers): Likewise.
1199 (pp_c_declarator): Likewise.
1200 (pp_c_direct_declarator): Likewise.
1201 (pp_c_function_specifier): Likewise.
1202 (pp_c_direct_abstract_declarator): Likewise.
1203 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1204 from pp_c_abstract_declarator. Adjust.
1205 (c_pretty_printer::direct_abstract_declarator): Rename from
1206 pp_c_direct_abstract_declarator. Adjust.
1207 (c_pretty_printer::function_specifier): Rename from
1208 pp_c_function_specifier. Adjust.
1209 (c_pretty_printer::declaration_specifiers): Rename from
1210 pp_c_declaration_specifiers. Adjust.
1211 (c_pretty_printer::direct_declarator): Rename from
1212 pp_c_direct_declarator. Adjust.
1213 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
1214 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
1215 (c_pretty_printer::c_pretty_printer): Do not assign to
1216 declaration, declaration_specifiers, declarator,
1217 direct_declarator, direct_abstract_declarator, function_specifier.
1219 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
1221 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1222 virtual member function.
1223 (c_pretty_printer::multiplicative_expression): Likewise.
1224 (c_pretty_printer::conditional_expression): Likewise.
1225 (c_pretty_printer::assignment_expression): Likewise.
1226 (c_pretty_printer::expression): Likewise.
1227 (pp_unary_expression): Adjust.
1228 (pp_multiplicative_expression): Likewise.
1229 (pp_assignment_expression): Likewise.
1230 (pp_conditional_expression): Likewise.
1231 (pp_expression): Likewise.
1232 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1233 from pp_c_unary_expression. Adjust.
1234 (c_pretty_printer::multiplicative_expression): Rename from
1235 pp_c_multiplicative_expression. Adjust.
1236 (c_pretty_printer::conditional_expression): Rename from
1237 pp_c_conditional_expression. Adjust.
1238 (c_pretty_printer::assignment_expression): Rename from
1239 pp_c_assignment_expression. Adjust.
1240 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
1241 (c_pretty_printer::c_pretty_printer): Do not assign to
1242 unary_expression, multiplicative_expression,
1243 conditional_expression, expression.
1245 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1247 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1248 virtual member function.
1249 (pp_postfix_expression): Adjust.
1250 (pp_c_postfix_expression): Remove.
1251 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1252 from pp_c_postfix_expression. Adjust.
1253 (c_pretty_printer::c_pretty_printer): Do not assign to
1256 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1258 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1259 virtua member function.
1260 (pp_primary_expression): Adjust.
1261 (pp_c_primary_expression): Remove.
1262 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1263 from pp_c_primary_expression. Adjust.
1264 (pp_c_initializer_list): Use pp_primary_expression.
1265 (c_pretty_printer::c_pretty_printer): Do not assign to
1268 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1270 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1271 * c-pretty-print.c (M_): Remove.
1272 (c_pretty_printer::translate_string): Define.
1273 (pp_c_type_specifier): Use it.
1274 (pp_c_primary_expression): Likewise.
1275 (pp_c_expression): Likewise.
1277 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1279 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
1281 (pp_c_id_expression): Remove.
1282 (pp_id_expression): Adjust.
1283 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
1284 pp_c_id_expression. Adjust.
1285 (pp_c_postfix_expression): Use pp_id_expression.
1286 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
1288 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1290 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
1292 (pp_constant): Adjust.
1293 (pp_c_constant): Remove.
1294 * c-pretty-print.c (c_pretty_printer::constant): Rename from
1295 pp_c_constant. Adjust.
1297 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
1298 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
1300 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1302 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
1303 (c_pretty_printer::c_pretty_printer): Declare.
1304 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
1305 c_pretty_printer_init. Adjust.
1306 (print_c_tree): Do not call c_pretty_printer_init.
1307 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
1309 2013-08-09 Arnaud Charlet <charlet@adacore.com>
1311 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
1313 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
1316 * c-common.c (pointer_int_sum): Add bool parameter.
1317 * c-common.h (pointer_int_sum): Adjust declaration.
1319 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1321 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
1322 c_pretty_printer variable.
1324 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1326 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
1328 (pp_c_base): Likewise. Adjust users.
1329 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
1330 (pp_c_whitespace): Do not call pp_base.
1331 (pp_c_left_paren): Likewise.
1332 (pp_c_right_paren): Likewise.
1333 (pp_c_left_brace): Likewise.
1334 (pp_c_right_brace): Likewise.
1335 (pp_c_left_bracket): Likewise.
1336 (pp_c_right_bracket): Likewise.
1337 (pp_c_dot): Likewise.
1338 (pp_c_ampersand): Likewise.
1339 (pp_c_star): Likewise.
1340 (pp_c_arrow): Likewise.
1341 (pp_c_semicolon): Likewise.
1342 (pp_c_complement): Likewise.
1343 (pp_c_exclamation): Likewise.
1344 (pp_c_direct_declarator): Likewise.
1345 (pp_c_ws_string): Likewise.
1346 (pp_c_identifier): Likewise.
1347 (pp_c_statement): Likewise.
1348 (print_c_tree): Likewise.
1350 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
1353 * c-common.c (c_parse_error): Catch user-defined literal tokens and
1354 provide useful error strings.
1356 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1358 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1359 printer functions instead of pp_string or operators and punctuators.
1360 (dump_generic_ada_node): Likewise.
1361 * c-pretty-print.c (pp_c_type_specifier): Likewise.
1362 (pp_c_relational_expression): Likewise.
1363 (pp_c_logical_or_expression): Likewise.
1365 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1367 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1368 functions instead of pp_character.
1369 (pp_ada_tree_identifier): Likewise.
1370 (dump_ada_double_name): Likewise.
1371 (dump_ada_function_declaration): Likewise.
1372 (dump_ada_array_domains): Likewise.
1373 (dump_template_types): Likewise.
1374 (dump_generic_ada_node): Likewise.
1375 (print_ada_declaration): Likewise.
1376 (print_ada_struct_decl): Likewise.
1377 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1379 2013-07-23 Tom Tromey <tromey@redhat.com>
1381 * c-common.h (enum rid) <RID_GENERIC>: New constant.
1382 * c-common.c (c_common_reswords): Add _Generic.
1384 2013-07-21 OndÅej BÃlka <neleai@seznam.cz>
1386 * c-common.c: Fix typos.
1387 * c-common.h: Likewise.
1389 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
1392 * c-common.c (c_common_attribute_table): Add warn_unused.
1393 (handle_warn_unused_attribute): New.
1395 2013-07-10 Jakub Jelinek <jakub@redhat.com>
1397 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1398 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1400 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1403 * c.opt: Add Wconditionally-supported.
1405 2013-07-08 Graham Stott <graham.stott@btinternet.com>
1407 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1408 unused variables l_length and l_node.
1410 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
1413 * c-common.c (complete_array_type): Delay folding first index
1414 like other indices. When folding, check for index overflow.
1416 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
1419 * c-common.h (c_build_vec_perm_expr): New complain argument.
1420 * c-common.c (c_build_vec_perm_expr): Likewise.
1421 Use save_expr also in C++.
1423 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1425 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1426 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1427 * c-opts.c (c_common_post_options): Likewise.
1429 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1431 * array-notation-common.c (length_mismatch_in_expr): Changed the
1432 parameter type's from a dynamic array to a vec_tree. Also removed
1433 the size parameters.
1434 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1437 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1439 * c-common.h (struct cilkplus_an_parts): New structure.
1440 (struct cilkplus_an_loop_parts): Likewise.
1441 (cilkplus_extract_an_triplets): New prototype.
1442 (fix_sec_implicit_args): Likewise.
1443 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1444 (fix_sec_implicit_args): Likewise.
1446 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
1448 * array-notation-common.c (find_inv_trees): Removed an unwanted
1450 * c-common.h (struct inv_list::additional_tcodes): Changed type from
1451 enum rid to enum tree_code.
1453 2013-06-11 Jan Hubicka <jh@suse.cz>
1455 * c-common.c (handle_alias_ifunc_attribute): Do not set
1456 DECL_EXTERNAL for weakref variables.
1457 * c-pragma.c (handle_pragma_weak): Make sure aliases
1458 are not declared as external.
1460 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1462 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
1463 function from c/c-array-notation.c.
1464 (is_cilkplus_reduce_builtin): Likewise.
1465 (find_rank): Likewise.
1466 (extract_array_notation_exprs): Likewise.
1467 (replace_array_notations): Likewise.
1468 (find_inv_trees): Likewise.
1469 (replace_inv_trees): Likewise.
1470 (contains_array_notation_expr): Likewise.
1471 (find_correct_array_notation_type): Likewise.
1472 * c-common.h (struct inv_list): Moved this struct from the file
1473 c/c-array-notation.c and added a new field called additional tcodes.
1474 (length_mismatch_in_expr_p): New prototype.
1475 (is_cilkplus_reduce_builtin): Likewise.
1476 (find_rank): Likewise.
1477 (extract_array_notation_exprs): Likewise.
1478 (replace_array_notation): Likewise.
1479 (find_inv_trees): Likewise.
1480 (replace_inv_trees): Likewise.
1481 (find_correct_array_notation_type): Likewise.
1483 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1485 * c-common.c (c_define_builtins): When cilkplus is enabled, the
1486 function array_notation_init_builtins is called.
1487 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
1488 * c-common.def (ARRAY_NOTATION_REF): New tree.
1489 * c-common.h (build_array_notation_expr): New function declaration.
1490 (build_array_notation_ref): Likewise.
1491 (extract_sec_implicit_index_arg): New extern declaration.
1492 (is_sec_implicit_index_fn): Likewise.
1493 (ARRAY_NOTATION_CHECK): New define.
1494 (ARRAY_NOTATION_ARRAY): Likewise.
1495 (ARRAY_NOTATION_START): Likewise.
1496 (ARRAY_NOTATION_LENGTH): Likewise.
1497 (ARRAY_NOTATION_STRIDE): Likewise.
1498 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
1500 (pp_c_expression): Likewise.
1501 * c.opt (flag_enable_cilkplus): New flag.
1502 * array-notation-common.c: New file.
1504 2013-05-14 Jakub Jelinek <jakub@redhat.com>
1507 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
1509 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
1511 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
1514 2013-05-07 Han Shen <shenhan@google.com>
1516 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
1518 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1520 * c-common.c (check_user_alignment): Emit error for negative values.
1522 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1524 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1526 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1528 * c-cppbuiltin.c (c_cpp_builtins): Do not define
1529 __GXX_EXPERIMENTAL_CXX1Y__.
1531 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1532 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1534 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1535 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
1536 to simply use OPT_Wpointer_arith.
1537 (c_sizeof_or_alignof_type): Likewise.
1539 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1541 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
1543 2013-04-12 Jakub Jelinek <jakub@redhat.com>
1545 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1546 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
1549 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
1551 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
1553 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
1555 * c-common.c (pointer_int_sum): Remove dead code.
1557 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1560 * c-common.c (handle_optimize_attribute): Don't call
1561 save_optabs_if_changed.
1563 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1566 * c-pch.c (pch_init): Free target_validity at the end.
1568 2013-03-04 Jakub Jelinek <jakub@redhat.com>
1570 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1572 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1573 Jakub Jelinek <jakub@redhat.com>
1576 * c-common.c (handle_no_sanitize_address_attribute): New function.
1577 (c_common_attribute_table): Add no_sanitize_address attribute.
1578 (handle_no_address_safety_analysis_attribute): Add
1579 no_sanitize_address attribute, not no_address_safety_analysis
1582 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
1585 * c-common.c (handle_optimize_attribute): Call
1586 save_optabs_if_changed.
1588 2013-02-18 Jakub Jelinek <jakub@redhat.com>
1589 Steven Bosscher <steven@gcc.gnu.org>
1592 * c-opts.c (c_common_post_options): If debug info is enabled
1593 and non-dwarf*, refuse to load PCH files and when writing PCH
1596 2013-02-05 Jakub Jelinek <jakub@redhat.com>
1599 * c-common.c (handle_error_attribute): Fix condition.
1601 2013-01-30 Jakub Jelinek <jakub@redhat.com>
1604 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1606 2013-01-18 Jason Merrill <jason@redhat.com>
1609 * c.opt (-fextern-tls-init): New.
1610 * c-opts.c (c_common_post_options): Handle it.
1612 2013-01-09 Jakub Jelinek <jakub@redhat.com>
1615 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1616 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1617 and is either negative or bigger or equal to type precision
1618 of the first operand.
1620 2012-12-03 Marek Polacek <polacek@redhat.com>
1623 * c-common.c (check_user_alignment): Swap order of tests,
1624 check TREE_CODE first.
1626 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
1629 * c-common.h (overflow_type): New enum.
1630 (build_userdef_literal): Add overflow_type argument.
1631 (tree_userdef_literal): Add overflow_type.
1632 (USERDEF_LITERAL_OVERFLOW): New access macro.
1633 * c-common.c (build_userdef_literal): Add overflow_type
1635 * c-lex.c (c_lex_with_flags): Add overflow_type to
1636 build_userdef_literal calls.
1637 (interpret_integer, interpret_float): Add overflow_type argument.
1639 2012-11-28 Richard Biener <rguenther@suse.de>
1642 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1643 here and use a type with proper overflow behavior for types that would
1644 need to be promoted for the arithmetic.
1646 2012-11-23 Jakub Jelinek <jakub@redhat.com>
1649 * c-common.c (handle_no_address_safety_analysis_attribute): New
1651 (c_common_attribute_table): Add no_address_safety_analysis.
1653 2012-11-16 Simon Baldwin <simonb@google.com>
1655 * c.opt: Add f[no-]canonical-system-headers.
1656 * c-opts.c (c_common_handle_option): Handle
1657 OPT_fcanonical_system_headers.
1659 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1662 * c-opts.c (c_common_handle_option): Set new flags.
1663 * c.opt: Describe new flags.
1665 2012-11-09 Jason Merrill <jason@redhat.com>
1667 * c.opt (Wabi-tag): New.
1669 2012-11-09 Andi Kleen <ak@linux.intel.com>
1672 * c-common.c (get_atomic_generic_size): Mask with
1675 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1678 * c.opt (Wformat): Make it Alias Wformat=1.
1679 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1680 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1682 (Wformat=): RejectNegative. Use LangEnabledBy.
1683 (Wnonnull): Use LangEnabledBy.
1684 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1685 * c-format.c (set_Wformat): Delete.
1686 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1687 (maybe_read_dollar_number): Likewise.
1688 (avoid_dollar_number): Likewise.
1689 (finish_dollar_format_checking): Likewise.
1690 (check_format_info): Likewise.
1691 (check_format_info_main): Likewise.
1692 (check_format_types): Likewise.
1693 (format_type_warning): Likewise.
1694 * c-common.c (int): Likewise.
1695 (check_function_sentinel): Likewise.
1696 * c-common.h (warn_format,set_Wformat): Do not declare here.
1698 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1701 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1702 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1704 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1706 (Wvariadic-macros): Init(1).
1707 * c-opts.c (c_common_handle_option): Do not handle them
1709 (c_common_post_options): Likewise.
1710 (sanitize_cpp_opts): warn_unused_macros is now
1711 cpp_warn_unused_macros.
1712 (push_command_line_include): Likewise.
1713 * c-common.c (warn_unknown_pragmas): Do not define.
1714 * c-common.h (warn_unknown_pragmas): Do not declare.
1716 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1719 * c-common.c (conversion_warning): Handle conditional expressions.
1721 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1724 * c.opt (Wreturn_local_addr): Define new option.
1726 2012-10-25 Jason Merrill <jason@redhat.com>
1728 * c.opt (Wvirtual-move-assign): New.
1730 * c.opt (Winherited-variadic-ctor): New.
1732 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
1735 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1737 2012-10-23 Joseph Myers <joseph@codesourcery.com>
1739 * c-common.h (pch_cpp_save_state): Declare.
1740 * c-target.def (c_preinclude): New hook.
1741 * c-opts.c (done_preinclude): New.
1742 (push_command_line_include): Handle default preincluded header.
1743 (cb_file_change): Call pch_cpp_save_state when calling
1744 push_command_line_include.
1745 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1746 (pch_cpp_save_state): New.
1747 (pch_init): Call pch_cpp_save_state conditionally, instead of
1748 calling cpp_save_state.
1750 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1754 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1755 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1756 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1757 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1758 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1759 * c-opts.c (c_common_handle_option): Remove explicit handling from
1761 (c_common_post_options): Likewise.
1763 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1765 * c-ada-spec.c (LOCATION_COL): Delete.
1766 (compare_location): New function.
1767 (compare_node): Use it.
1768 (compare_comment): Likewise.
1770 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1774 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1775 * c-opts.c (c_common_handle_option): Do not set them here. Add
1777 (c_common_post_options): Likewise.
1779 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1781 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1782 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1783 Remove POINTER_TYPE handling, add large unsigned handling and use
1784 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1786 2012-10-12 Jakub Jelinek <jakub@redhat.com>
1789 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1790 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1791 locs and array of 3 trees instead of just single loc and single
1792 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1793 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1794 For *cmp* builtins that take two sources strings report warnings
1795 about first and second source, not about destination and source.
1797 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
1800 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1802 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1804 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1805 declaring something coming from another file.
1807 2012-10-10 Arnaud Charlet <charlet@adacore.com>
1810 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1812 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1815 * c-common.c (warn_about_parentheses): Add location_t parameter;
1816 use EXPR_LOC_OR_LOC.
1817 * c-common.h: Update declaration.
1819 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
1822 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1823 more operations. Make error messages optional.
1824 * c-common.h (enum stv_conv): Moved from c-typeck.c.
1825 (scalar_to_vector): Declare.
1827 2012-10-08 Jason Merrill <jason@redhat.com>
1829 * c-common.c (c_common_reswords): Add thread_local.
1831 2012-10-08 Dodji Seketeli <dodji@redhat.com>
1833 PR c++/53528 C++11 attribute support
1834 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1836 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1838 (handle_aligned_attribute): In choose strictest alignment
1839 among many. Use new check_cxx_fundamental_alignment_constraints.
1840 (handle_transparent_union_attribute): In c++11 attribute syntax,
1841 don't look through typedefs.
1843 2012-10-04 Arnaud Charlet <charlet@adacore.com>
1845 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1846 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1849 2012-09-25 Dehao Chen <dehao@google.com>
1852 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
1853 map when read in the pch.
1855 2012-09-18 Arnaud Charlet <charlet@adacore.com>
1857 * c-ada-spec.c: Style fixes.
1859 2012-09-18 Thomas Quinot <quinot@adacore.com>
1861 * c.opt (-fada-spec-parent): Define new command line switch.
1862 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1863 is specified, generate binding spec as a child of the specified unit.
1865 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1866 Manuel López-Ibáñez <manu@gcc.gnu.org>
1869 * c.opt ([Winit-self]): Enabled by -Wall in C++.
1871 2012-08-23 Arnaud Charlet <charlet@adacore.com>
1873 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1874 for pointers, and add missing Convention C pragma.
1875 (print_ada_struct_decl): Add missing aliased keyword.
1876 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1878 2012-08-17 Jakub Jelinek <jakub@redhat.com>
1880 * c-common.c (sizeof_pointer_memaccess_warning): New function.
1881 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1882 * c-opts.c (c_common_handle_option): Enable it for -Wall.
1883 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1884 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1886 2012-08-10 Richard Guenther <rguenther@suse.de>
1888 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1890 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1892 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1893 instead of separate pp_newline and pp_flush.
1894 (print_c_tree): Likewise.
1896 2012-07-26 Richard Henderson <rth@redhat.com>
1898 * c-common.c (handle_hot_attribute): Allow labels.
1899 (handle_cold_attribute): Likewise.
1901 2012-07-20 Jakub Jelinek <jakub@redhat.com>
1904 * c-common.c (check_function_nonnull): Handle multiple nonnull
1905 attributes properly.
1907 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1909 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1910 * c-ada-spec.c: Likewise.
1911 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1913 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1915 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1916 Remove code conditional on it.
1918 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1920 * c-gimplify.c: Do not include basic-block.h.
1921 * c-common.c: Do not include linfuncs.h.
1923 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1925 * c-common.h: Include tree.h.
1927 2012-07-02 Jason Merrill <jason@redhat.com>
1930 * c-common.c (get_priority): Call default_conversion.
1932 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
1934 * c-pch.c (c_common_write_pch): Remove unused variables.
1936 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1938 * cppspec.c: Moved from gcc/ to here.
1940 2012-06-27 Kai Tietz <ktietz@redhat.com>
1942 PR preprocessor/37215
1943 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1945 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1947 * c-common.h (c_common_print_pch_checksum): Remove.
1948 * c-pch.c: Do not include output.h.
1949 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1950 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1951 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1952 (struct c_pch_header): Remove.
1953 (get_ident): Update gpch version.
1954 (pch_init): Do not print executable_checksum to asm_out_file.
1955 Do not fail if there is no asm_out_file to read back from. Set
1956 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1957 (c_common_write_pch): Verify that nothing was written to asm_out_file
1958 since pch_init was called. Do not write a c_pch_header, and do not
1959 copy from asm_out_file to the PCH.
1960 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1961 the content of asm_out_file from the PCH.
1962 (c_common_print_pch_checksum): Remove.
1963 * c-opts.c (c_common_init): Print out executable_checksum directly.
1965 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1967 * c-target.def (objc_declare_unresolved_class_reference,
1968 objc_declare_class_definition): Add new hooks.
1970 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1972 * c-lex.c: Do not include output.h.
1973 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1974 Remove uses of ASM_OUTPUT_IDENT.
1976 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
1979 * c-common.h (c_build_vec_perm_expr): Move decl here.
1980 * c-common.c (c_build_vec_perm_expr): Move definition
1983 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1985 * c.opt (fconserve-space): Turn into a no-op.
1987 2012-06-04 Sterling Augustine <saugustine@google.com>
1989 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1990 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1991 both the start and end of the function.
1993 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1995 * c-common.c: Do not include output.h.
1996 * c-pragma.c: Likewise.
1998 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2000 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2001 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2002 (lang_decl_name): Handle namespace decls.
2004 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2006 * c-ada-spec.c: Do not include output.h.
2007 * c-semantics.c: Likewise.
2009 2012-05-29 Joseph Myers <joseph@codesourcery.com>
2011 * c-common.c: Fix typo.
2013 2012-05-29 Michael Matz <matz@suse.de>
2015 * c-common.h (c_expand_decl): Remove prototype.
2017 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2019 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2020 * c-opts.c (c_common_handle_option): Remove code handling
2021 warn_missing_braces.
2023 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2026 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2029 2012-05-22 Dodji Seketeli <dodji@redhat.com>
2032 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2034 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2036 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2037 * c-opts.c (c_common_handle_option): Do not handle explicitly
2038 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2040 2012-05-16 Dodji Seketeli <dodji@redhat.com>
2042 PR preprocessor/7263
2043 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
2044 to cpp_classify_number. For diagnostics, use the precise location
2045 instead of the global input_location.
2047 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2050 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2052 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
2054 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
2056 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2059 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2060 Wreorder): Use LangEnabledBy.
2061 * c-opts.c (c_common_handle_option): Do not enable them
2062 explicitly. Call lang-specific generated functions.
2063 (c_common_post_options): Do not set them here.
2065 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2067 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2068 Wmissing-field-initializers,Wmissing-parameter-type,
2069 Wold-style-declaration,Woverride-init): Use EnabledBy.
2070 * c-opts.c (c_common_post_options): Do not set here explicitly.
2072 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2075 * c-opts.c (c_common_handle_option): Use handle_generated_option
2076 to enable sub-options.
2078 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
2081 * c-common.c (warnings_for_convert_and_check): Use warning_at.
2083 2012-05-10 Richard Guenther <rguenther@suse.de>
2085 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2086 adjust commentary about TYPE_IS_SIZETYPE types.
2088 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2091 * c-common.c (warn_logical_operator): Check that argument of
2092 integer_zerop is not NULL.
2094 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
2097 * c-common.c (warn_logical_operator): Do not warn if either side
2098 is already true or false.
2100 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2103 * c-common.c (expr_original_type): New.
2104 (shorten_compare): Do not warn for enumeration types.
2106 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2108 * c.opt (fpermissive): Add Var(flag_permissive).
2110 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
2113 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2114 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2116 2012-04-30 Dodji Seketeli <dodji@redhat.com>
2118 Add -Wvarargs option
2119 * c.opt (Wvarargs): Define new option.
2121 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2123 * c-common.c (check_function_arguments): Replace
2124 Wmissing-format-attribute with Wsuggest-attribute=format.
2126 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2128 * c.opt (Wsuggest-attribute=format): New. Alias of
2129 Wmissing-format-attribute.
2130 * c-format.c (decode_format_type): Replace
2131 Wmissing-format-attribute with Wsuggest-attribute=format.
2132 (check_function_format): Likewise.
2134 2012-04-27 Ollie Wild <aaw@google.com>
2136 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2137 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2138 * c.opt: Add Wliteral-suffix.
2140 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2143 * c.opt (Wpedantic): New.
2144 (pedantic): Alias Wpedantic.
2145 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2146 (c_common_post_options): Likewise.
2147 (sanitize_cpp_opts): Likewise.
2148 * c-lex.c (interpret_float): Likewise.
2149 * c-format.c (check_format_types): Likewise.
2150 * c-common.c (pointer_int_sum): Likewise.
2151 (c_sizeof_or_alignof_type): Likewise.
2152 (c_add_case_label): Likewise.
2153 (c_do_switch_warnings): Likewise.
2154 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2156 2012-04-15 Jason Merrill <jason@redhat.com>
2159 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2160 (C_STD_NAME): Distinguish between C++98 and C++11.
2162 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
2165 * c-common.h (uint16_type_node): Rename into...
2166 (c_uint16_type_node): ...this.
2167 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2168 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2170 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
2172 * c-common.c (warn_if_unused_value): Move definition to here.
2173 * c-common.h (warn_if_unused_value): Move declaration to here.
2175 2012-03-23 William Bader <williambader@hotmail.com>
2177 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2179 2012-03-20 Jason Merrill <jason@redhat.com>
2181 * c-common.h (enum cxx_dialect): Add cxx1y.
2182 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2184 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2185 * c-opts.c (c_common_post_options): Likewise.
2186 (set_std_cxx1y): New.
2187 (c_common_handle_option): Call it.
2188 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2190 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
2193 * c.opt ([Wuseless-cast]): Add.
2195 2012-03-16 Richard Guenther <rguenther@suse.de>
2197 * c-pretty-print.c (pp_c_initializer_list): Adjust.
2199 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2202 * c.opt (ftemplate-backtrace-limit) Add.
2204 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2206 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2208 * c-pragma.c (handle_pragma_extern_prefix): Remove.
2209 (init_pragma): Don't register extern_prefix.
2211 2012-03-12 Richard Guenther <rguenther@suse.de>
2213 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2214 (builtin_type_for_size): Likewise.
2216 2012-02-13 Jakub Jelinek <jakub@redhat.com>
2219 * c-common.c (sync_resolve_params): Don't decide whether to convert
2220 or not based on TYPE_SIZE comparison, convert whenever arg_type
2221 is unsigned INTEGER_TYPE.
2223 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
2226 * c.opt ([Wunused-local-typedefs]): Fix description.
2228 2012-01-24 Mike Stump <mikestump@comcast.net>
2230 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2233 2012-01-18 Richard Guenther <rguenther@suse.de>
2235 * c-opts.c (c_common_post_options): Reset LTO flags if
2236 we are about to generate a PCH.
2238 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
2241 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2242 use pp_unsigned_wide_integer.
2244 2012-01-10 Richard Guenther <rguenther@suse.de>
2247 * c-opts.c (c_common_handle_option): Move -Werror handling
2248 to language independent code.
2250 2012-01-05 Richard Guenther <rguenther@suse.de>
2253 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2256 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
2259 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2260 of array types with an unknown bound.
2262 2011-12-20 Joseph Myers <joseph@codesourcery.com>
2264 * c-common.c (flag_isoc99): Update comment to refer to C11.
2265 (flag_isoc1x): Change to flag_isoc11.
2266 * c-common.h (flag_isoc99): Update comment to refer to C11.
2267 (flag_isoc1x): Change to flag_isoc11.
2268 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2270 * c-opts.c (set_std_c1x): Change to set_std_c11.
2271 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2273 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2274 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2275 * c.opt (std=c1x): Change to std=c11. Document as non-draft
2277 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2278 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
2279 (std=gnu1x): Make alias of std=gnu11.
2281 2011-12-19 Jason Merrill <jason@redhat.com>
2284 * c-common.c (handle_transparent_union_attribute): Check the first
2285 field if the type is complete.
2287 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
2290 * c-common.c (RID_IS_FINAL): Add.
2291 * c-common.h (RID_IS_FINAL): Add.
2293 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2295 * c.opt (fgnu-runtime): Provide full description.
2296 (fnext-runtime): Likewise.
2297 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
2299 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
2301 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
2302 predefines in one place. Add LOCK_FREE predefines.
2303 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
2306 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
2309 * c-common.c (get_atomic_generic_size): Check for various error
2311 (resolve_overloaded_atomic_exchange,
2312 resolve_overloaded_atomic_compare_exchange,
2313 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
2314 error_mark_node for error conditions.
2316 2011-11-08 Richard Guenther <rguenther@suse.de>
2321 2011-11-07 Richard Henderson <rth@redhat.com>
2322 Aldy Hernandez <aldyh@redhat.com>
2323 Torvald Riegel <triegel@redhat.com>
2325 Merged from transactional-memory.
2327 * c-common.c (handle_tm_wrap_attribute,
2328 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
2329 (struct c_common_reswords): Added __transaction* keywords.
2330 (struct c_common_attribute_table): Added transaction* and tm_regparm
2332 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2334 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2335 find_tm_attribute): Declare.
2337 2011-11-07 Jason Merrill <jason@redhat.com>
2340 * c-common.c, c-common.h: Revert yesterday's changes.
2342 2011-11-06 Jason Merrill <jason@redhat.com>
2345 * c-common.c (decl_has_visibility_attr): Split out from...
2346 (c_determine_visibility): ...here.
2347 * c-common.h: Declare it.
2349 2011-11-06 Joseph Myers <joseph@codesourcery.com>
2351 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2352 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2354 (check_user_alignment): New. Split out of
2355 handle_aligned_attribute. Disallow integer constants with
2356 noninteger types. Conditionally allow zero.
2357 (handle_aligned_attribute): Use check_user_alignment.
2358 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2360 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
2361 Richard Henderson <rth@redhat.com>
2363 Merged from cxx-mem-model.
2365 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
2366 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
2367 parameters that are the same type size.
2368 (get_atomic_generic_size): New. Find size of generic
2369 atomic function parameters and do typechecking.
2370 (add_atomic_size_parameter): New. Insert size into parameter list.
2371 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2372 either __atomic_exchange_n or external library call.
2373 (resolve_overloaded_atomic_compare_exchange): Restructure
2374 __atomic_compare_exchange to either _n variant or external library call.
2375 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
2376 __atomic_load_n or an external library call.
2377 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2378 __atomic_store_n or an external library call.
2379 (resolve_overloaded_builtin): Handle new __atomic builtins.
2381 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
2384 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2385 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
2386 <INDIRECT_REF>: Return the argument.
2387 <ARRAY_REF>: Remove special code for negative offset.
2388 Call fold_build_pointer_plus instead of size_binop.
2389 (fold_offsetof): Remove STOP_REF argument and adjust.
2390 * c-common.h (fold_offsetof_1): Declare.
2391 (fold_offsetof): Remove STOP_REF argument.
2393 2011-11-02 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-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2404 * c.opt: Add Wzero-as-null-pointer-constant.
2406 2011-10-31 Jason Merrill <jason@redhat.com>
2408 * c.opt (-fdeduce-init-list): Off by default.
2411 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2412 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2414 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2416 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
2419 * c.opt (fvisibility-inlines-hidden): Description change.
2421 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
2423 Implement C++11 user-defined literals.
2424 * c-common.c (build_userdef_literal): New.
2425 * c-common.def: New tree code.
2426 * c-common.h (tree_userdef_literal): New tree struct and accessors.
2427 * c-lex.c (interpret_float): Add suffix parm.
2428 (c_lex_with_flags): Build literal tokens.
2430 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2434 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2437 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2438 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2439 Wnarrowing for C++0x and C++98.
2440 * c.opt ([Wnarrowing]): Update.
2442 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2445 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2446 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2447 Wnarrowing for C++0x and C++98.
2448 * c.opt ([Wnarrowing]): Update.
2450 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
2453 * c-common.c (conversion_warning): Remove code looking for
2454 artificial operands.
2456 2011-10-18 Dodji Seketeli <dodji@redhat.com>
2459 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
2460 !NO_IMPLICIT_EXTERN_C.
2462 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
2464 * c-common.c (c_common_reswords): Add __bases,
2466 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
2468 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
2471 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
2473 2011-10-15 Tom Tromey <tromey@redhat.com>
2474 Dodji Seketeli <dodji@redhat.com>
2476 * c.opt (fdebug-cpp): New option.
2477 * c-opts.c (c_common_handle_option): Handle the option.
2478 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
2479 output stream in parameter. Factorized from ...
2480 (maybe_print_line): ... this. Dump location debug information when
2481 -fdebug-cpp is in effect.
2482 (print_line_1): New static function. Takes an output stream in
2483 parameter. Factorized from ...
2484 (print_line): ... here. Dump location information when -fdebug-cpp
2486 (scan_translation_unit): Dump location information when
2487 -fdebug-cpp is in effect.
2489 2011-10-15 Tom Tromey <tromey@redhat.com>
2490 Dodji Seketeli <dodji@redhat.com>
2492 * c.opt (ftrack-macro-expansion): New option. Handle it with and
2494 * c-opts.c (c_common_handle_option)<case
2495 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
2496 cases. Handle -ftrack-macro-expansion with and without argument.
2498 2011-10-15 Tom Tromey <tromey@redhat.com>
2499 Dodji Seketeli <dodji@redhat.com>
2501 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
2502 (print_line, cb_define, do_line_change): Adjust to avoid touching
2503 the internals of struct line_map. Use the public API instead.
2504 * c-pch.c (c_common_read_pch): Likewise.
2505 * c-lex.c (fe_file_change): Likewise.
2507 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2510 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
2512 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
2515 * c-pretty-print.c (pp_c_floating_constant): Output
2516 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
2518 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2520 * c-common.c (def_builtin_1): Delete old interface with two
2521 parallel arrays to hold standard builtin declarations, and replace
2522 it with a function based interface that can support creating
2523 builtins on the fly in the future. Change all uses, and poison
2524 the old names. Make sure 0 is not a legitimate builtin index.
2525 * c-omp.c (c_finish_omp_barrier): Ditto.
2526 (c_finish_omp_taskwait): Ditto.
2527 (c_finish_omp_flush): Ditto.
2529 2011-10-11 Tristan Gingold <gingold@adacore.com>
2531 * c.opt: (fallow-parameterless-variadic-functions): New.
2533 2011-09-08 Dodji Seketeli <dodji@redhat.com>
2535 PR c++/33255 - Support -Wunused-local-typedefs warning
2536 * c-common.h (struct c_language_function::local_typedefs): New
2538 (record_locally_defined_typedef, maybe_record_typedef_use)
2539 (maybe_warn_unused_local_typedefs): Declare new functions.
2540 * c-common.c (record_locally_defined_typedef)
2541 (maybe_record_typedef_use)
2542 (maybe_warn_unused_local_typedefs): Define new functions.
2543 * c.opt: Declare new -Wunused-local-typedefs flag.
2545 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
2548 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
2551 2011-09-05 Richard Guenther <rguenther@suse.de>
2553 * c-common.c (complete_array_type): Use ssize_int (-1) instead
2554 of integer_minus_one_node for empty array upper bounds.
2556 2011-08-28 Dodji Seketeli <dodji@redhat.com>
2558 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
2559 it's the first time it's being called on this main TU.
2561 2011-08-24 Richard Guenther <rguenther@suse.de>
2564 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2566 2011-08-22 Gabriel Charette <gchare@google.com>
2568 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2569 defined in cpp_init_builtins and c_cpp_builtins.
2571 2011-08-19 Joseph Myers <joseph@codesourcery.com>
2573 * c-common.c (c_common_reswords): Add __builtin_complex.
2574 * c-common.h (RID_BUILTIN_COMPLEX): New.
2576 2011-08-18 Joseph Myers <joseph@codesourcery.com>
2578 * c-common.c (c_common_reswords): Add _Noreturn.
2579 (keyword_is_function_specifier): Handle RID_NORETURN.
2580 * c-common.h (RID_NORETURN): New.
2582 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2584 * c-common.c (unsafe_conversion_p): New function. Check if it is
2585 unsafe to convert an expression to the type.
2586 (conversion_warning): Adjust, use unsafe_conversion_p.
2587 * c-common.h (unsafe_conversion_p): New function declaration.
2589 2011-08-02 Jakub Jelinek <jakub@redhat.com>
2591 * c-common.h (c_finish_omp_atomic): Adjust prototype.
2592 (c_finish_omp_taskyield): New prototype.
2593 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2594 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2595 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
2596 or RHS1 have side-effects, evaluate those too in the right spot,
2597 if it is a decl and LHS is also a decl, error out if they
2599 (c_finish_omp_taskyield): New function.
2600 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2601 * c-pragma.c (omp_pragmas): Add taskyield.
2602 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2603 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2604 PRAGMA_OMP_CLAUSE_MERGEABLE.
2606 2011-07-25 Dodji Seketeli <dodji@redhat.com>
2608 * c-common.h (set_underlying_type): Remove parm name from
2611 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
2613 * c-pretty-print.h: Search c-common.h in c-family.
2615 2011-07-22 Jason Merrill <jason@redhat.com>
2618 * c.opt (Wnarrowing): New.
2621 * c-common.h: Declare c_linkage_bindings.
2622 * c-pragma.c (handle_pragma_redefine_extname): Use it.
2625 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2626 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2627 as flag_isoc99 for 'restrict'.
2628 (pp_c_specifier_qualifier_list): Likewise for _Complex.
2630 2011-07-21 Ian Lance Taylor <iant@google.com>
2633 * c-common.c (c_disable_warnings): New static function.
2634 (c_enable_warnings): New static function.
2635 (c_fully_fold_internal): Change local unused_p to bool. Call
2636 c_disable_warnings and c_enable_warnings rather than change
2637 c_inhibit_evaluation_warnings.
2639 2011-07-20 Jason Merrill <jason@redhat.com>
2641 PR c++/6709 (DR 743)
2642 PR c++/42603 (DR 950)
2643 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2644 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2645 (CPP_DECLTYPE): New.
2646 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2648 2011-07-19 Richard Guenther <rguenther@suse.de>
2650 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2651 * c-omp.c (c_finish_omp_for): Likewise.
2653 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2655 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2656 body on the next line.
2658 2011-07-08 Jason Merrill <jason@redhat.com>
2661 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2664 * c-common.c (c_apply_type_quals_to_decl): Don't check
2665 TYPE_NEEDS_CONSTRUCTING.
2667 2011-07-06 Richard Guenther <rguenther@suse.de>
2669 * c-common.c (c_common_nodes_and_builtins):
2670 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2672 2011-07-05 Richard Guenther <rguenther@suse.de>
2674 * c-common.c (c_common_nodes_and_builtins): Build all common
2677 2011-06-27 Jakub Jelinek <jakub@redhat.com>
2679 * c-common.h (c_tree_chain_next): New static inline function.
2681 * c-common.c (check_builtin_function_arguments): Handle
2682 BUILT_IN_ASSUME_ALIGNED.
2684 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
2686 * c-common.c: Add sync_ or SYNC__ to builtin names.
2687 * c-omp.c: Add sync_ or SYNC__ to builtin names.
2689 2011-06-20 Pierre Vittet <piervit@pvittet.com>
2691 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2693 (gen_pragma_handler): New union.
2694 (internal_pragma_handler): New type.
2695 (c_register_pragma_with_data)
2696 (c_register_pragma_with_expansion_and_data): New functions.
2698 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2699 (c_register_pragma, c_register_pragma_with_expansion)
2700 (c_invoke_pragma_handler): Changed to work with
2701 internal_pragma_handler.
2702 (c_register_pragma_with_data)
2703 (c_register_pragma_with_expansion_and_data): New functions.
2705 2011-06-14 Joseph Myers <joseph@codesourcery.com>
2707 * c-common.c: Include common/common-target.h.
2708 (handle_section_attribute): Use
2709 targetm_common.have_named_sections.
2710 * c-cppbuiltin.c: Include common/common-target.h.
2711 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2713 2011-06-10 Richard Guenther <rguenther@suse.de>
2715 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2716 to print a IDENTIFIER_NODE.
2718 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2719 Joseph Myers <joseph@codesourcery.com>
2721 * c.opt (fbuilding-libgcc): New option.
2722 * c-cppbuiltin.c (c_cpp_builtins): Define
2723 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2725 2011-06-07 Jason Merrill <jason@redhat.com>
2727 * c-common.c (max_tinst_depth): Lower default to 900.
2729 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2731 2011-06-07 Richard Guenther <rguenther@suse.de>
2733 * c-common.c (c_common_nodes_and_builtins): Do not set
2734 size_type_node or call set_sizetype.
2736 2011-06-07 Dodji Seketeli <dodji@redhat.com>
2739 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
2740 type when using pointer comparison to compare types.
2742 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2744 * c.opt: Add -Wdelete-non-virtual-dtor.
2745 * c-opts.c (c_common_handle_option): Include it in -Wall.
2747 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2752 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2754 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2757 2011-05-27 Jakub Jelinek <jakub@redhat.com>
2760 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2761 C++ don't call c_common_truthvalue_conversion on void type arms.
2763 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2765 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2766 (stmt_list_stack): Define.
2767 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2768 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2770 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2772 * c-common.c (warning_candidate_p): Check for BLOCKs.
2774 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2776 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2779 2011-05-25 Jakub Jelinek <jakub@redhat.com>
2781 * c-common.c (def_fn_type): Remove extra va_end.
2783 2011-05-23 Jason Merrill <jason@redhat.com>
2786 * c-common.c (c_common_get_narrower): New.
2787 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2789 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2791 * c-common.h (check_function_arguments): Tweak prototype of
2792 check_function_arguments.
2793 * c-common.c (check_function_arguments): Likewise. Adjust
2794 calls to check_function_nonnull, check_function_format, and
2795 check_function_sentinel.
2796 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2797 separate attributes and typelist arguments. Use
2798 FOREACH_FUNCTION_ARGS to iterate over argument types.
2800 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2802 * c-common.c (c_common_reswords): Reorder.
2803 * c-common.h (rid): Likewise.
2805 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2807 * c-common.c (def_fn_type): Don't call build_function_type, call
2808 build_function_type_array or build_varargs_function_type_array
2810 (c_common_nodes_and_builtins): Likewise.
2812 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2814 * c-common.c (c_add_case_label): Omit the loc argument to
2816 * c-common.h (build_case_label): Remove.
2817 * c-semantics.c (build_case_label): Remove.
2819 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2821 * c-objc.h (objc_start_method_definition): Update prototype.
2822 * stub-objc.c (objc_start_method_definition): Add extra parameter.
2824 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2826 * c-common.c (check_main_parameter_types): Reindent. Don't use
2827 TYPE_ARG_TYPES directly.
2828 (handle_nonnull_attribute): Likewise.
2829 (sync_resolve_params): Likewise.
2830 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
2831 to check_format_string.
2832 (handle_format_attribute): Likewise.
2833 (check_format_string): Take a function type to examine instead of
2834 a type list. Use a function_arg_iterator to step through argument
2837 2011-05-04 Richard Guenther <rguenther@suse.de>
2839 * c-common.c (fix_string_type): Use size_int for index type bounds.
2840 (start_fname_decls): Do not pass NULL to build_int_cst.
2841 (c_init_attributes): Likewise.
2842 * c-lex.c (c_lex_with_flags): Likewise.
2844 2011-04-27 Jason Merrill <jason@redhat.com>
2846 * c-common.c (make_tree_vector_from_list): New.
2847 * c-common.h: Declare it.
2849 2011-04-26 Richard Guenther <rguenther@suse.de>
2851 PR preprocessor/48248
2852 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2853 for output size with -P.
2855 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2857 * c-common.c (struct c_common_resword): Add __underlying_type.
2858 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2860 2011-04-20 Jim Meyering <meyering@redhat.com>
2862 * c-format.c (init_dollar_format_checking): Remove useless
2865 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2867 * c-objc.h (objc_get_interface_ivars): Removed.
2868 (objc_detect_field_duplicates): New.
2869 * stub-objc.c: Likewise.
2871 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2873 * stub-objc.c (objc_declare_protocols): Renamed to
2874 objc_declare_protocol.
2875 * c-objc.h: Likewise.
2877 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2879 * stub-objc.c (objc_declare_class): Updated argument name.
2881 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2883 * c-common.h (c_common_init_ts): Declare.
2884 * c-common.c (c_common_init_ts): Define.
2886 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2888 * c-objc.h (objc_build_message_expr): Updated prototype.
2889 * stub-objc.c (objc_build_message_expr): Likewise.
2891 2011-04-12 Martin Jambor <mjambor@suse.cz>
2893 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2896 2011-04-11 Richard Guenther <rguenther@suse.de>
2898 * c-common.c (complete_array_type): Build a range type of
2901 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2903 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2904 (handle_type_generic_attribute): Likewise.
2906 2011-04-07 Jason Merrill <jason@redhat.com>
2909 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2910 conversion from C++0x scoped enum.
2912 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2914 * c-target-def.h: New file.
2915 * c-target.def: New file.
2916 * c-target.h: New file.
2917 * c-common.c (targetcm): Don't define here.
2918 * c-common.h (default_handle_c_option): Declare.
2919 * c-format.c: Include c-target.h instead of target.h.
2920 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2922 (default_handle_c_option): Move from targhooks.c.
2924 2011-03-29 Jakub Jelinek <jakub@redhat.com>
2926 PR preprocessor/48248
2927 * c-ppoutput.c (print): Add src_file field.
2928 (init_pp_output): Initialize it.
2929 (maybe_print_line): Don't optimize by adding up to 8 newlines
2930 if map->to_file and print.src_file are different file.
2931 (print_line): Update print.src_file.
2933 2011-03-25 Kai Tietz <ktietz@redhat.com>
2935 * c-ada-spec.c (compare_comment): Use filename_cmp
2936 instead of strcmp for filename.
2938 2011-03-25 Jeff Law <law@redhat.com>
2940 * c-family/c-common.c (def_fn_type): Add missing va_end.
2942 2011-03-25 Jason Merrill <jason@redhat.com>
2944 * c.opt: Add -std=c++03.
2946 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2948 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2950 2011-03-17 Kai Tietz
2953 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2954 Display allowed attributes for function pointer types.
2955 (pp_c_attributes_display): New function to display
2956 attributes having affects_type_identity flag set to true.
2957 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2959 * c-common.c (c_common_attribute_table):
2961 (c_common_format_attribute_table): Likewise.
2963 2011-03-18 Jason Merrill <jason@redhat.com>
2965 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2966 * c-common.h: Don't declare it here.
2967 * c-common.c: Or define it here.
2968 * c-opts.c (c_common_handle_option): Or set it here.
2971 * c-common.c (handle_transparent_union_attribute): Don't
2972 make a duplicate type in C++.
2974 2011-03-15 Jason Merrill <jason@redhat.com>
2976 * c-common.c (max_constexpr_depth): New.
2977 * c-common.h: Declare it.
2978 * c-opts.c (c_common_handle_option): Set it.
2979 * c.opt (fconstexpr-depth): New option.
2981 2011-03-11 Jason Merrill <jason@redhat.com>
2983 * c-common.c (attribute_takes_identifier_p): Add missing const.
2986 * c-common.c (attribute_takes_identifier_p): Assume that an
2987 unknown attribute takes an identifier.
2989 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2992 * c-common.c (c_type_hash): Call list_length instead of iterating
2993 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2995 2011-02-19 Jakub Jelinek <jakub@redhat.com>
2998 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3000 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
3002 * c.opt (fobjc-abi-version=) New.
3003 (fobjc-nilcheck): New.
3005 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
3008 * c-common.h (keyword_is_decl_specifier): Declare.
3009 * c-common.c (keyword_is_decl_specifier): Define.
3010 (keyword_is_function_specifier): New function.
3012 2011-01-26 Jakub Jelinek <jakub@redhat.com>
3015 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3016 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3019 2011-01-26 Arnaud Charlet <charlet@adacore.com>
3021 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3023 2011-01-26 Jakub Jelinek <jakub@redhat.com>
3026 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3027 after init_c_lex if pch_file is set.
3029 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
3032 * c.opt (-fkeep-inline-dllexport): New switch.
3034 2011-01-12 Richard Guenther <rguenther@suse.de>
3037 * c-common.c (handle_weak_attribute): Warn instead of error
3038 on declaring an inline function weak.
3040 2011-01-05 Tom Tromey <tromey@redhat.com>
3042 * c-common.h (lvalue_error): Update.
3043 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
3046 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
3049 * c-objc.h (objc_finish_message_expr): Added argument to
3052 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
3054 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3057 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
3059 * c-objc.h (objc_maybe_warn_exceptions): New.
3060 * stub-objc.c (objc_maybe_warn_exceptions): New.
3062 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
3064 * c-common.h (readonly_error): Declare.
3065 * c-common.c (readonly_error): Define.
3067 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
3069 * c-common.h (invalid_indirection_error): Declare.
3070 * c-common.c (invalid_indirection_error): Define.
3072 2010-12-03 Richard Guenther <rguenther@suse.de>
3075 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3076 (pp_c_unary_expression): Likewise.
3077 (pp_c_expression): Likewise.
3079 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
3081 * c-common.h (objc_finish_function): New.
3082 (objc_non_volatilized_type): Removed.
3083 (objc_type_quals_match): Removed.
3084 * stub-objc.c (objc_finish_function): New.
3085 (objc_non_volatilized_type): Removed.
3086 (objc_type_quals_match): Removed.
3088 2010-11-30 Joseph Myers <joseph@codesourcery.com>
3090 * c-common.h (parse_optimize_options): Declare.
3091 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3092 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3094 2010-11-29 Joseph Myers <joseph@codesourcery.com>
3096 * c-opts.c (check_deps_environment_vars): Use getenv instead of
3098 * c-pch.c (O_BINARY): Don't define here.
3099 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3101 2010-11-25 Joseph Myers <joseph@codesourcery.com>
3103 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3104 targetm.except_unwind_info.
3106 2010-11-23 Joseph Myers <joseph@codesourcery.com>
3108 * c-opts.c (c_common_handle_option): Pass location to
3109 set_struct_debug_option.
3111 2010-11-23 Joseph Myers <joseph@codesourcery.com>
3113 * c-common.c (visibility_options): Move from ../opts.c.
3114 * c-common.h (struct visibility_flags, visibility_options):
3116 * c-opts.c (finish_options): Rename to c_finish_options.
3117 (c_common_init): Update call to finish_options.
3119 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
3122 * c-lex.c (lex_string): Check that each string in an Objective-C
3123 string concat sequence starts with either one or zero '@', and
3124 that there are no spurious '@' signs at the end.
3126 2010-11-20 Joseph Myers <joseph@codesourcery.com>
3128 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3129 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3130 HANDLE_PRAGMA_VISIBILITY.
3131 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3132 HANDLE_PRAGMA_VISIBILITY): Don't define.
3133 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3135 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
3140 * c-common.h (keyword_begins_type_specifier): Declare.
3141 (keyword_is_storage_class_specifier): Declare.
3142 (keyword_is_type_qualifier): Declare.
3143 * c-common.c (keyword_begins_type_specifier): New function.
3144 (keyword_is_storage_class_specifier): New function.
3145 (keyword_is_type_qualifier): Declare.
3147 2010-11-19 Joseph Myers <joseph@codesourcery.com>
3150 * c-common.c (in_late_binary_op): Define.
3151 (c_common_truthvalue_conversion): Check in_late_binary_op before
3152 calling c_save_expr.
3153 * c-common.h (in_late_binary_op): Declare.
3155 2010-11-19 Joseph Myers <joseph@codesourcery.com>
3157 * c-opts.c (c_common_handle_option): Update calls to
3158 set_struct_debug_option.
3160 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3162 * c-common.h (objc_declare_protocols): Added additional argument.
3163 * stub-objc.c (objc_declare_protocol): Same change.
3165 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3168 * c-common.h (build_real_imag_expr): Declare.
3169 * c-semantics.c (build_real_imag_expr): Define.
3171 2010-11-17 Joseph Myers <joseph@codesourcery.com>
3173 * c-opts.c (c_common_parse_file): Take no arguments.
3174 * c-common.h (c_common_parse_file): Update prototype.
3176 2010-11-16 Jakub Jelinek <jakub@redhat.com>
3179 * c-common.c (warning_candidate_p): Don't track non-const calls
3182 2010-11-15 Ian Lance Taylor <iant@google.com>
3184 * c-lex.c (init_c_lex): Set macro debug callbacks if
3185 flag_dump_go_spec is set.
3187 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
3189 * c-common.h (objc_build_incr_expr_for_property_ref): New.
3190 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3192 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
3194 PR preprocessor/45038
3195 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3198 2010-11-12 Joseph Myers <joseph@codesourcery.com>
3200 * c-common.h (c_family_lang_mask): Declare.
3201 * c-opts.c (c_family_lang_mask): Make extern.
3202 * c-pragma.c (handle_pragma_diagnostic): Use
3203 control_warning_option.
3205 2010-11-12 Joseph Myers <joseph@codesourcery.com>
3207 * c-common.c (parse_optimize_options): Update call to
3209 * c-common.h (c_common_handle_option): Update prototype.
3210 * c-opts.c (c_common_handle_option): Take location_t parameter and
3211 pass it to other functions.
3213 2010-11-11 Joseph Myers <joseph@codesourcery.com>
3215 * c-opts.c (warning_as_error_callback): Remove.
3216 (c_common_initialize_diagnostics): Don't call
3217 register_warning_as_error_callback.
3218 (c_common_handle_option): Handle -Werror=normalized= here.
3220 2010-11-10 Joseph Myers <joseph@codesourcery.com>
3222 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3224 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3226 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3227 Remove trailing '.' from diagnostics.
3228 * c.opt (Wwrite-strings_: Avoid '`' in help text.
3230 2010-11-10 Joseph Myers <joseph@codesourcery.com>
3232 * c-common.c (parse_optimize_options): Pass global_dc to
3234 * c-opts.c (c_common_handle_option): Pass &global_options to
3235 set_Wstrict_aliasing.
3236 * c.opt (v): Don't mark Common or document here.
3238 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3241 * c-format.c (format_type): New type gcc_objc_string_format_type.
3242 (valid_stringptr_type_p): New.
3243 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
3244 (check_format_string): Pass expected type, use
3245 valid_stringptr_type_p (), check that the format string types are
3246 consistent with the format specification.
3247 (decode_format_attr): Warn if NSString is used outside objective-c.
3248 (format_types_orig): Add NSString.
3250 (format_flags): New.
3251 (check_format_arg): Handle format strings requiring an external parser.
3252 first_target_format_type: New variable.
3253 (handle_format_attribute): Set up first_target_format_type, pass the
3254 expected format arg string type to check_format_string().
3255 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
3256 * stub-objc.c (objc_string_ref_type_p): New.
3257 (objc_check_format_arg): New.
3259 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
3261 Fixed using the Objective-C 2.0 dot-syntax with class names.
3262 * c-common.h (objc_build_class_component_ref): New.
3263 * stub-objc.c (objc_build_class_component_ref): New.
3265 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3267 * c.opt (Wproperty-assign-default): New option.
3269 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3271 Implemented -fobjc-std=objc1 flag.
3272 * c.opt (fobjc-std=objc1): New option.
3274 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
3276 Implemented format and noreturn attributes for Objective-C methods.
3277 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3278 attribute for Objective-C methods.
3280 2010-10-31 Jason Merrill <jason@redhat.com>
3282 * c-common.c (conversion_warning, warn_for_collisions_1): Use
3285 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
3287 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3288 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
3289 (objc_add_property_declaration): Removed arguments for copies and
3291 (objc_build_getter_call): Renamed to
3292 objc_maybe_build_component_ref.
3293 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3294 (objc_is_property_ref): New.
3295 * c-common.c (c_common_reswords): Removed copies and ivar.
3296 * stub-objc.c (objc_add_property_declaration): Removed arguments
3297 for copies and ivar.
3298 (objc_build_getter_call): Renamed to
3299 objc_maybe_build_component_ref.
3300 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3301 (objc_is_property_ref): New.
3303 2010-10-29 Arnaud Charlet <charlet@adacore.com>
3304 Matthew Gingell <gingell@adacore.com>
3306 * c-ada-spec.c (separate_class_package): New function.
3307 (pp_ada_tree_identifier): Prefix references to C++ classes with the
3308 name of their enclosing package.
3309 (print_ada_declaration): Use separate_class_package.
3311 2010-10-27 Jason Merrill <jason@redhat.com>
3313 * c-common.c (c_common_reswords): Add __is_literal_type.
3314 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
3316 * c-common.c (check_case_value): Remove special C++ code.
3318 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3320 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
3321 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
3323 (objc_add_property_declaration): Added additional arguments.
3324 (objc_property_attribute_kind): Removed.
3325 (objc_set_property_attr): Removed.
3326 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
3328 * stub-objc.c (objc_add_property_declaration): Added additional
3330 (objc_set_property_attr): Removed.
3332 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3334 * c-common.h (objc_add_property_variable): Renamed to
3335 objc_add_property_declaration. Added location argument.
3336 * stub-objc.c (objc_add_property_variable): Same change.
3338 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
3340 * c-common.h (objc_maybe_printable_name): New.
3341 * stub-objc.c (objc_maybe_printable_name): New.
3343 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3344 Andrew Pinski <pinskia@gmail.com>
3346 * c-common.h (c_common_mark_addressable_vec): Declare.
3347 * c-common.c (c_common_mark_addressable_vec): New function.
3349 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3351 * c-common.h (objc_set_method_type): Removed.
3352 (objc_add_method_declaration): Added boolean argument.
3353 (objc_start_method_definition): Same change.
3354 (objc_build_method_signature): Same change.
3355 * stub-objc.c (objc_set_method_type): Removed.
3356 (objc_add_method_declaration): Added boolean argument.
3357 (objc_start_method_definition): Same change.
3358 (objc_build_method_signature): Same change.
3360 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3362 * c-common.h (finish_file): Removed.
3363 (objc_write_global_declarations): New.
3364 * c-opts.c (c_common_parse_file): Do not call finish_file.
3365 * stub-objc.c (objc_write_global_declarations): New.
3367 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3369 Implemented parsing @synthesize and @dynamic for
3370 Objective-C/Objective-C++.
3371 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3372 (objc_add_synthesize_declaration): New.
3373 (objc_add_dynamic_declaration): New.
3374 * c-common.c (c_common_reswords): Add synthesize and dynamic.
3375 * stub-objc.c (objc_add_synthesize_declaration): New.
3376 (objc_add_dynamic_declaration): New.
3378 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3381 * c-cppbuiltin.c (mode_has_fma): Move function here from
3382 builtins.c. Don't use the fma optab, instead just use the
3383 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3386 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3388 Merge from 'apple/trunk' branch on FSF servers.
3390 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
3393 * c-common.h (objc_non_volatilized_type): New declaration
3394 * stub-objc.c (objc_non_volatilized_type): New stub.
3396 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3398 Merge from 'apple/trunk' branch on FSF servers.
3400 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3403 * c-common.h (objc_diagnose_private_ivar): New decl.
3404 * stub-objc.c (objc_diagnose_private_ivar): New stub.
3406 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
3408 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3409 * c-common.h (enum rid): Add RID_AT_PACKAGE.
3410 (objc_ivar_visibility_kind): New enum.
3411 (objc_set_visibility): Adjust prototype to use visibility enum.
3412 * stub-objc.c (objc_set_visibility): Adjust stub to use
3415 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3417 * c-cppbuiltin.c (builtin_define_float_constants): Emit
3418 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3419 has the appropriate fma builtins.
3420 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3422 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3424 merge from FSF apple 'trunk' branch.
3425 2006 Fariborz Jahanian <fjahanian@apple.com>
3427 Radars 4436866, 4505126, 4506903, 4517826
3428 * c-common.c (c_common_resword): Define @property and its attributes.
3429 * c-common.h: Define property attribute enum entries.
3430 (OBJC_IS_PATTR_KEYWORD): New.
3431 (objc_property_attribute_kind): New enum.
3432 Declare objc_set_property_attr (), objc_add_property_variable (),
3433 objc_build_getter_call () and objc_build_setter_call ().
3434 * stub-objc.c (objc_set_property_attr): New stub.
3435 (objc_add_property_variable): Likewise.
3436 (objc_build_getter_call): Likewise.
3437 (objc_build_setter_call) Likewise.
3439 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
3441 merge from FSF apple 'trunk' branch.
3442 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3444 Radar 3803157 (method attributes)
3445 * c-common.c (handle_deprecated_attribute): Recognize
3446 objc methods as valid declarations.
3447 * c-common.h: Declare objc_method_decl ().
3448 * stub-objc.c (objc_method_decl): New stub.
3450 2010-10-08 Joseph Myers <joseph@codesourcery.com>
3452 * c-common.c (parse_optimize_options): Call
3453 decode_cmdline_options_to_array_default_mask before
3454 decode_options. Update arguments to decode_options.
3455 * c-common.h (c_common_init_options_struct): Declare.
3456 * c-opts.c (c_common_init_options_struct): New. Split out from
3457 c_common_init_options.
3459 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
3461 Implemented fast enumeration for Objective-C.
3462 * c-common.h (objc_finish_foreach_loop): New.
3463 * stub-objc.c (objc_finish_foreach_loop): New.
3465 2010-10-05 Joseph Myers <joseph@codesourcery.com>
3467 * c-common.h (struct diagnostic_context): Don't declare here.
3468 (c_common_initialize_diagnostics): Declare using
3469 diagnostic_context typedef.
3470 * c-opts.c (c_common_handle_option): Pass global_dc to
3471 handle_generated_option.
3473 2010-10-04 Joseph Myers <joseph@codesourcery.com>
3475 * c-opts.c (c_common_handle_option): Pass &global_options_set to
3476 handle_generated_option.
3478 2010-10-03 Ian Lance Taylor <iant@google.com>
3480 * c.opt (-fplan9-extensions): New option.
3482 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3484 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
3486 (c_cpp_builtins): Call functions from cppbuiltin.c instead
3487 of duplicating code.
3489 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
3491 * c-common.c: Add two new entries for @optional
3492 and @required keywords.
3494 merge from FSF 'apple/trunk' branch.
3495 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
3498 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
3499 objective-c keywords.
3500 (objc_set_method_opt): New declaration.
3501 * stub-objc.c (objc_set_method_opt): New stub.
3503 2010-09-30 Joseph Myers <joseph@codesourcery.com>
3505 * c-common.c (handle_optimize_attribute): Pass &global_options to
3506 cl_optimization_save and cl_optimization_restore.
3507 * c-opts.c (c_common_handle_option): Pass &global_options to
3508 handle_generated_option.
3509 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
3510 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
3511 &global_options to cl_optimization_restore.
3513 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
3515 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
3516 Objective-C/Objective-C++ keywords.
3518 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3520 Merge from 'apple/trunk' branch on FSF servers.
3522 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
3525 * c-common.h (objc_check_global_decl): New declaration.
3526 * stub-objc.c (objc_check_global_decl): New stub.
3528 2010-09-29 Joseph Myers <joseph@codesourcery.com>
3530 * c.opt: Don't use VarExists.
3532 2010-09-29 Joseph Myers <joseph@codesourcery.com>
3534 * c-common.c (c_cpp_error): Update names of diagnostic_context
3536 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
3537 cl_optimization members.
3538 * c-opts.c (warning_as_error_callback, c_common_handle_option,
3539 sanitize_cpp_opts, finish_options): Update names of cpp_options
3542 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3544 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
3545 (objc_is_reserved_word): Removed.
3546 * c-common.c: Updated comments.
3547 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
3548 objc_is_reserved_word.
3549 * stub-objc.c (objc_is_reserved_word): Removed.
3551 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3553 * c-common.h (objc_add_method_declaration): Adjust prototype to
3555 (objc_start_method_definition): Likewise.
3556 (objc_build_keyword_decl): Likewise.
3557 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
3558 (objc_start_method_definition): Likewise.
3559 (objc_build_keyword_decl): Likewise.
3561 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3563 * c-common.h (objc_start_class_interface): Adjust prototype.
3564 (objc_start_category_interface): Likewise.
3565 (objc_start_protocol): Likewise.
3566 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3567 (objc_start_class_interface): Likewise.
3568 (objc_start_category_interface): Likewise.
3570 2010-09-27 Ian Lance Taylor <iant@google.com>
3572 * c-common.c (c_common_attribute_table): Add no_split_stack.
3573 (handle_no_split_stack_attribute): New static function.
3575 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3577 Merge from 'apple/trunk' branch on FSF servers.
3579 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3582 * c-common.h (objc_have_common_type): New declaration.
3583 * stub-objc.c (objc_have_common_type): New stub.
3585 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3588 * c-common.h (objc_common_type): New prototype.
3589 * stub-objc.c (objc_common_type): New stub.
3591 2010-09-24 Jan Hubicka <jh@suse.cz>
3593 * c-common.c (handle_leaf_attribute): New function.
3594 (struct attribute_spec c_common_att): Add leaf.
3596 2010-09-22 Joseph Myers <joseph@codesourcery.com>
3598 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3599 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3600 -dump, -dump=, -imacros, -imacros=, -include, -include=,
3601 -include-barrier, -include-directory, -include-directory=,
3602 -include-directory-after, -include-directory-after=,
3603 -include-prefix, -include-prefix=, -include-with-prefix,
3604 -include-with-prefix=, -include-with-prefix-after,
3605 -include-with-prefix-after=, -include-with-prefix-before,
3606 -include-with-prefix-before=, -no-integrated-cpp,
3607 -no-line-commands, -no-standard-includes, -no-warnings, -output,
3608 -output=, -pedantic, -pedantic-errors, -preprocess,
3609 -print-missing-file-dependencies, -trace-includes, -traditional,
3610 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3611 -user-dependencies, -verbose, -write-dependencies,
3612 -write-user-dependencies, no-integrated-cpp, traditional): New.
3614 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3617 * c-common.h (objc_start_method_definition): Return bool instead
3619 * stub-objc.c (objc_start_method_definition): Return bool instead
3622 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3625 * c-common.h (objc_get_interface_ivars): New declaration.
3626 * stub-objc.c (objc_get_interface_ivars): New stub.
3628 2010-09-15 Ian Lance Taylor <iant@google.com>
3630 * c-common.c (parse_optimize_options): Do not capitalize warning
3631 messages. Remove period at end of warning message.
3633 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3635 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3636 (handle_alias_attribute): ... here.
3637 (handle_ifunc_attribute): New.
3639 2010-09-06 Mark Mitchell <mark@codesourcery.com>
3641 * c-common.h (do_warn_double_promotion): Declare.
3642 * c-common.c (do_warn_double_promotion): Define.
3644 2010-09-05 Mark Mitchell <mark@codesourcery.com>
3646 * c.opt (Wdouble-promotion): New.
3648 2010-09-02 Joseph Myers <joseph@codesourcery.com>
3650 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3651 fvtable-thunks, fxref): Mark no longer supported in help text.
3653 2010-09-02 Joseph Myers <joseph@codesourcery.com>
3655 * c.opt (Wimport, fall-virtual, falt-external-templates,
3656 fdefault-inline, fenum-int-equiv, fexternal-templates,
3657 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3658 fname-mangling-version-, fnew-abi, fnonnull-objects,
3659 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3660 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3662 (fhandle-exceptions): Mark with Alias and Warn.
3663 * c-opts.c (c_common_handle_option): Don't handle options marked
3666 2010-09-02 Joseph Myers <joseph@codesourcery.com>
3668 * c.opt (Wcomments, Werror-implicit-function-declaration,
3669 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3670 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3672 * c-common.c (option_codes): Use OPT_Wcomment instead of
3674 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3675 Don't handle options marked as aliases.
3677 2010-08-25 Richard Guenther <rguenther@suse.de>
3679 * c-common.c (c_common_get_alias_set): Remove special
3680 handling for pointers.
3682 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3684 * c-common.c: Use FOR_EACH_VEC_ELT.
3685 * c-gimplify.c: Likewise.
3686 * c-pragma.c: Likewise.
3688 2010-08-16 Joseph Myers <joseph@codesourcery.com>
3690 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3692 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3694 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3695 instead of OPT_MDX and OPT_MMDX.
3697 2010-08-16 Joseph Myers <joseph@codesourcery.com>
3699 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3701 2010-08-12 Joseph Myers <joseph@codesourcery.com>
3703 * c.opt (MD, MMD): Change to MDX and MMDX.
3704 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3706 2010-08-11 Joseph Myers <joseph@codesourcery.com>
3708 * c-opts.c (c_common_handle_option): Call handle_generated_option
3709 instead of handle_option.
3711 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3713 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3714 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3716 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3718 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3719 (pending_redefine_extname): Change type to a VEC.
3720 (add_to_renaming_pragma_list): Update for new type of
3721 pending_redefine_extname.
3722 (maybe_apply_renaming_pragma): Likewise.
3724 2010-08-04 Arnaud Charlet <charlet@adacore.com>
3726 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3728 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3729 decide whether a type has already been declared/seen.
3730 Do not go to the original type.
3731 (dump_nested_types): New parameter forward.
3732 Generate forward declaration if needed and mark type as visited.
3733 (print_ada_declaration): Call dump_nested_types if not already done.
3734 Mark types as visited.
3736 2010-08-03 Joseph Myers <joseph@codesourcery.com>
3738 * c.opt (-print-pch-checksum): Remove option.
3739 * c-opts.c (c_common_handle_option): Don't handle
3740 OPT_print_pch_checksum.
3742 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3744 * c-common.h (c_common_handle_option): Update prototype and return
3746 * c-opts.c (c_common_handle_option): Update prototype and return
3747 value type. Update calls to handle_option and
3748 enable_warning_as_error.
3750 2010-07-27 Jakub Jelinek <jakub@redhat.com>
3753 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3755 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3757 * c-common.h (c_common_missing_argument): Remove.
3758 * c-opts.c (c_common_missing_argument): Remove.
3759 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3760 idirafter, imacros, include, isysroot, isystem, iquote): Add
3762 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3764 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3766 * c-common.h (c_common_option_lang_mask,
3767 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3769 (c_common_init_options): Update prototype.
3770 * c-opts.c (c_common_option_lang_mask): New.
3771 (c_common_initialize_diagnostics): Split out of
3772 c_common_init_options.
3773 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3775 (c_common_init_options): Update prototype. Use decoded options in
3776 search for -lang-asm.
3778 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3780 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3781 * c-format.c: Likewise.
3783 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3785 * c-common.h: Include diagnostic-core.h. Error if already
3787 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3789 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3791 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3792 Do not include expr.h
3793 (vector_mode_valid_p): Move here.
3795 2010-06-21 DJ Delorie <dj@redhat.com>
3797 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3798 allow these pragmas anywhere.
3800 2010-06-14 Jakub Jelinek <jakub@redhat.com>
3803 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3804 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3805 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3806 ggc_strdup instead of xstrdup.
3808 2010-06-10 Jakub Jelinek <jakub@redhat.com>
3810 * c-cppbuiltin.c: Include cpp-id-data.h.
3811 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3812 (lazy_hex_fp_value): New function.
3813 (builtin_define_with_hex_fp_value): Provide definitions lazily.
3815 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3817 * c-gimplify.c: Do not include tree-flow.h
3819 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3822 * c-common.c: Rename targetm member:
3823 targetm.enum_va_list -> targetm.enum_va_list_p
3825 2010-06-28 Anatoly Sokolov <aesok@post.ru>
3827 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3829 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3831 * c-cppbuiltin.c: Do not include except.h.
3833 2010-06-24 Andi Kleen <ak@linux.intel.com>
3835 * c-common.c (warn_for_omitted_condop): New.
3836 * c-common.h (warn_for_omitted_condop): Add prototype.
3838 2010-06-21 Joseph Myers <joseph@codesourcery.com>
3840 * c.opt (lang-objc): Remove.
3841 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3843 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3845 * c-opts.c: Include "tm_p.h".
3847 2010-06-20 Joseph Myers <joseph@codesourcery.com>
3849 * c-common.c (parse_optimize_options): Update call to
3852 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3854 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3855 new type of types_used_by_cur_var_decl.
3857 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3860 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3861 for C++ standard compliance.
3863 2010-06-16 Jason Merrill <jason@redhat.com>
3865 * c.opt: Add -Wnoexcept.
3867 2010-06-16 Richard Guenther <rguenther@suse.de>
3870 * c-common.c (c_common_truthvalue_conversion): Remove
3871 premature and wrong optimization concering ADDR_EXPRs.
3873 2010-06-15 Arnaud Charlet <charlet@adacore.com>
3875 * c-ada-spec.c (dump_sloc): Remove column info.
3876 (is_simple_enum): New function.
3877 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3878 enum types when relevant.
3880 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3882 * c-common.c (conversion_warning): Warn at expression
3885 2010-06-10 Joseph Myers <joseph@codesourcery.com>
3887 * c-opts.c (c_common_handle_option): Don't handle
3890 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3892 * c-pragma.c (push_alignment): Use typed GC allocation.
3893 (handle_pragma_push_options): Likewise.
3895 * c-common.c (parse_optimize_options): Likewise.
3897 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3900 2010-06-07 Joseph Myers <joseph@codesourcery.com>
3902 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3903 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3904 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3905 flag_signed_bitfields, warn_strict_null_sentinel,
3906 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3907 flag_gen_declaration, flag_no_gnu_keywords,
3908 flag_implement_inlines, flag_implicit_templates,
3909 flag_implicit_inline_templates, flag_optional_diags,
3910 flag_elide_constructors, flag_default_inline, flag_rtti,
3911 flag_conserve_space, flag_access_control, flag_check_new,
3912 flag_new_for_scope, flag_weak, flag_working_directory,
3913 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3914 flag_enforce_eh_specs, flag_threadsafe_statics,
3915 flag_pretty_templates): Remove.
3916 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3917 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3918 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3919 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3920 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3921 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3922 flag_no_gnu_keywords, flag_implement_inlines,
3923 flag_implicit_templates, flag_implicit_inline_templates,
3924 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3925 flag_rtti, flag_conserve_space, flag_access_control,
3926 flag_check_new, flag_new_for_scope, flag_weak,
3927 flag_working_directory, flag_use_cxa_atexit,
3928 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3929 flag_threadsafe_statics, flag_pretty_templates,
3930 warn_strict_null_sentinel): Remove.
3931 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3932 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3933 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3934 fimplicit-inline-templates, fimplicit-templates,
3935 flax-vector-conversions, fms-extensions, fnil-receivers,
3936 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3937 frtti, fshort-double, fshort-enums, fshort-wchar,
3938 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3939 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3940 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3941 gen-decls, undef): Use Var.
3942 (fdefault-inline, foptional-diags): Document as doing nothing.
3943 * c-opts.c (c_common_handle_option): Remove cases for options now
3944 using Var. Mark ignored options as such.
3946 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3948 * c-common.c: Moved to here from parent directory.
3949 * c-common.def: Likewise.
3950 * c-common.h: Likewise.
3951 * c-cppbuiltin.c: Likewise.
3952 * c-dump.c: Likewise.
3953 * c-format.c: Likewise.
3954 * c-format.h : Likewise.
3955 * c-gimplify.c: Likewise.
3956 * c-lex.c: Likewise.
3957 * c-omp.c: Likewise.
3959 * c-opts.c: Likewise.
3960 * c-pch.c: Likewise.
3961 * c-ppoutput.c: Likewise.
3962 * c-pragma.c: Likewise.
3963 * c-pragma.h: Likewise.
3964 * c-pretty-print.c: Likewise.
3965 * c-pretty-print.h: Likewise.
3966 * c-semantics.c: Likewise.
3967 * stub-objc.c: Likewise.
3969 * c-common.c: Include gt-c-family-c-common.h.
3970 * c-pragma.c: Include gt-c-family-c-pragma.h.
3972 Copyright (C) 2010-2014 Free Software Foundation, Inc.
3974 Copying and distribution of this file, with or without modification,
3975 are permitted in any medium without royalty provided the copyright
3976 notice and this notice are preserved.