1 2013-09-01 Iain Sandoe <iain@codesourcery.com>
4 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
6 * c-target.def (objc_declare_unresolved_class_reference,
7 objc_declare_class_definition): Add new hooks.
9 2013-04-11 Release Manager
13 2012-12-03 Marek Polacek <polacek@redhat.com>
15 Backported from mainline
16 2012-12-03 Marek Polacek <polacek@redhat.com>
19 * c-common.c (check_user_alignment): Swap order of tests,
20 check TREE_CODE first.
22 2012-09-20 Release Manager
26 2012-06-27 Kai Tietz <ktietz@redhat.com>
30 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
32 2012-06-14 Release Manager
36 2012-03-23 William Bader <williambader@hotmail.com>
39 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
41 2012-03-22 Release Manager
45 2012-02-13 Jakub Jelinek <jakub@redhat.com>
48 * c-common.c (sync_resolve_params): Don't decide whether to convert
49 or not based on TYPE_SIZE comparison, convert whenever arg_type
50 is unsigned INTEGER_TYPE.
52 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
55 * c.opt ([Wunused-local-typedefs]): Fix description.
57 2012-01-24 Mike Stump <mikestump@comcast.net>
59 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
62 2012-01-18 Richard Guenther <rguenther@suse.de>
64 * c-opts.c (c_common_post_options): Reset LTO flags if
65 we are about to generate a PCH.
67 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
70 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
71 use pp_unsigned_wide_integer.
73 2012-01-10 Richard Guenther <rguenther@suse.de>
76 * c-opts.c (c_common_handle_option): Move -Werror handling
77 to language independent code.
79 2012-01-05 Richard Guenther <rguenther@suse.de>
82 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
85 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
88 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
89 of array types with an unknown bound.
91 2011-12-20 Joseph Myers <joseph@codesourcery.com>
93 * c-common.c (flag_isoc99): Update comment to refer to C11.
94 (flag_isoc1x): Change to flag_isoc11.
95 * c-common.h (flag_isoc99): Update comment to refer to C11.
96 (flag_isoc1x): Change to flag_isoc11.
97 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
99 * c-opts.c (set_std_c1x): Change to set_std_c11.
100 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
102 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
103 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
104 * c.opt (std=c1x): Change to std=c11. Document as non-draft
106 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
107 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
108 (std=gnu1x): Make alias of std=gnu11.
110 2011-12-19 Jason Merrill <jason@redhat.com>
113 * c-common.c (handle_transparent_union_attribute): Check the first
114 field if the type is complete.
116 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
119 * c-common.c (RID_IS_FINAL): Add.
120 * c-common.h (RID_IS_FINAL): Add.
122 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
124 * c.opt (fgnu-runtime): Provide full description.
125 (fnext-runtime): Likewise.
126 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
128 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
130 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
131 predefines in one place. Add LOCK_FREE predefines.
132 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
135 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
138 * c-common.c (get_atomic_generic_size): Check for various error
140 (resolve_overloaded_atomic_exchange,
141 resolve_overloaded_atomic_compare_exchange,
142 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
143 error_mark_node for error conditions.
145 2011-11-08 Richard Guenther <rguenther@suse.de>
150 2011-11-07 Richard Henderson <rth@redhat.com>
151 Aldy Hernandez <aldyh@redhat.com>
152 Torvald Riegel <triegel@redhat.com>
154 Merged from transactional-memory.
156 * c-common.c (handle_tm_wrap_attribute,
157 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
158 (struct c_common_reswords): Added __transaction* keywords.
159 (struct c_common_attribute_table): Added transaction* and tm_regparm
161 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
163 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
164 find_tm_attribute): Declare.
166 2011-11-07 Jason Merrill <jason@redhat.com>
169 * c-common.c, c-common.h: Revert yesterday's changes.
171 2011-11-06 Jason Merrill <jason@redhat.com>
174 * c-common.c (decl_has_visibility_attr): Split out from...
175 (c_determine_visibility): ...here.
176 * c-common.h: Declare it.
178 2011-11-06 Joseph Myers <joseph@codesourcery.com>
180 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
181 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
183 (check_user_alignment): New. Split out of
184 handle_aligned_attribute. Disallow integer constants with
185 noninteger types. Conditionally allow zero.
186 (handle_aligned_attribute): Use check_user_alignment.
187 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
189 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
190 Richard Henderson <rth@redhat.com>
192 Merged from cxx-mem-model.
194 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
195 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
196 parameters that are the same type size.
197 (get_atomic_generic_size): New. Find size of generic
198 atomic function parameters and do typechecking.
199 (add_atomic_size_parameter): New. Insert size into parameter list.
200 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
201 either __atomic_exchange_n or external library call.
202 (resolve_overloaded_atomic_compare_exchange): Restructure
203 __atomic_compare_exchange to either _n variant or external library call.
204 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
205 __atomic_load_n or an external library call.
206 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
207 __atomic_store_n or an external library call.
208 (resolve_overloaded_builtin): Handle new __atomic builtins.
210 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
213 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
214 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
215 <INDIRECT_REF>: Return the argument.
216 <ARRAY_REF>: Remove special code for negative offset.
217 Call fold_build_pointer_plus instead of size_binop.
218 (fold_offsetof): Remove STOP_REF argument and adjust.
219 * c-common.h (fold_offsetof_1): Declare.
220 (fold_offsetof): Remove STOP_REF argument.
222 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
225 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
226 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
227 Wnarrowing for C++0x and C++98.
228 * c.opt ([Wnarrowing]): Update.
230 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
233 * c.opt: Add Wzero-as-null-pointer-constant.
235 2011-10-31 Jason Merrill <jason@redhat.com>
237 * c.opt (-fdeduce-init-list): Off by default.
240 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
241 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
243 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
245 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
248 * c.opt (fvisibility-inlines-hidden): Description change.
250 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
252 Implement C++11 user-defined literals.
253 * c-common.c (build_userdef_literal): New.
254 * c-common.def: New tree code.
255 * c-common.h (tree_userdef_literal): New tree struct and accessors.
256 * c-lex.c (interpret_float): Add suffix parm.
257 (c_lex_with_flags): Build literal tokens.
259 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
263 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
266 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
267 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
268 Wnarrowing for C++0x and C++98.
269 * c.opt ([Wnarrowing]): Update.
271 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
274 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
275 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
276 Wnarrowing for C++0x and C++98.
277 * c.opt ([Wnarrowing]): Update.
279 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
282 * c-common.c (conversion_warning): Remove code looking for
285 2011-10-18 Dodji Seketeli <dodji@redhat.com>
288 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
289 !NO_IMPLICIT_EXTERN_C.
291 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
293 * c-common.c (c_common_reswords): Add __bases,
295 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
297 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
300 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
302 2011-10-15 Tom Tromey <tromey@redhat.com>
303 Dodji Seketeli <dodji@redhat.com>
305 * c.opt (fdebug-cpp): New option.
306 * c-opts.c (c_common_handle_option): Handle the option.
307 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
308 output stream in parameter. Factorized from ...
309 (maybe_print_line): ... this. Dump location debug information when
310 -fdebug-cpp is in effect.
311 (print_line_1): New static function. Takes an output stream in
312 parameter. Factorized from ...
313 (print_line): ... here. Dump location information when -fdebug-cpp
315 (scan_translation_unit): Dump location information when
316 -fdebug-cpp is in effect.
318 2011-10-15 Tom Tromey <tromey@redhat.com>
319 Dodji Seketeli <dodji@redhat.com>
321 * c.opt (ftrack-macro-expansion): New option. Handle it with and
323 * c-opts.c (c_common_handle_option)<case
324 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
325 cases. Handle -ftrack-macro-expansion with and without argument.
327 2011-10-15 Tom Tromey <tromey@redhat.com>
328 Dodji Seketeli <dodji@redhat.com>
330 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
331 (print_line, cb_define, do_line_change): Adjust to avoid touching
332 the internals of struct line_map. Use the public API instead.
333 * c-pch.c (c_common_read_pch): Likewise.
334 * c-lex.c (fe_file_change): Likewise.
336 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
339 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
341 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
344 * c-pretty-print.c (pp_c_floating_constant): Output
345 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
347 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
349 * c-common.c (def_builtin_1): Delete old interface with two
350 parallel arrays to hold standard builtin declarations, and replace
351 it with a function based interface that can support creating
352 builtins on the fly in the future. Change all uses, and poison
353 the old names. Make sure 0 is not a legitimate builtin index.
354 * c-omp.c (c_finish_omp_barrier): Ditto.
355 (c_finish_omp_taskwait): Ditto.
356 (c_finish_omp_flush): Ditto.
358 2011-10-11 Tristan Gingold <gingold@adacore.com>
360 * c.opt: (fallow-parameterless-variadic-functions): New.
362 2011-09-08 Dodji Seketeli <dodji@redhat.com>
364 PR c++/33255 - Support -Wunused-local-typedefs warning
365 * c-common.h (struct c_language_function::local_typedefs): New
367 (record_locally_defined_typedef, maybe_record_typedef_use)
368 (maybe_warn_unused_local_typedefs): Declare new functions.
369 * c-common.c (record_locally_defined_typedef)
370 (maybe_record_typedef_use)
371 (maybe_warn_unused_local_typedefs): Define new functions.
372 * c.opt: Declare new -Wunused-local-typedefs flag.
374 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
377 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
380 2011-09-05 Richard Guenther <rguenther@suse.de>
382 * c-common.c (complete_array_type): Use ssize_int (-1) instead
383 of integer_minus_one_node for empty array upper bounds.
385 2011-08-28 Dodji Seketeli <dodji@redhat.com>
387 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
388 it's the first time it's being called on this main TU.
390 2011-08-24 Richard Guenther <rguenther@suse.de>
393 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
395 2011-08-22 Gabriel Charette <gchare@google.com>
397 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
398 defined in cpp_init_builtins and c_cpp_builtins.
400 2011-08-19 Joseph Myers <joseph@codesourcery.com>
402 * c-common.c (c_common_reswords): Add __builtin_complex.
403 * c-common.h (RID_BUILTIN_COMPLEX): New.
405 2011-08-18 Joseph Myers <joseph@codesourcery.com>
407 * c-common.c (c_common_reswords): Add _Noreturn.
408 (keyword_is_function_specifier): Handle RID_NORETURN.
409 * c-common.h (RID_NORETURN): New.
411 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
413 * c-common.c (unsafe_conversion_p): New function. Check if it is
414 unsafe to convert an expression to the type.
415 (conversion_warning): Adjust, use unsafe_conversion_p.
416 * c-common.h (unsafe_conversion_p): New function declaration.
418 2011-08-02 Jakub Jelinek <jakub@redhat.com>
420 * c-common.h (c_finish_omp_atomic): Adjust prototype.
421 (c_finish_omp_taskyield): New prototype.
422 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
423 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
424 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
425 or RHS1 have side-effects, evaluate those too in the right spot,
426 if it is a decl and LHS is also a decl, error out if they
428 (c_finish_omp_taskyield): New function.
429 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
430 * c-pragma.c (omp_pragmas): Add taskyield.
431 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
432 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
433 PRAGMA_OMP_CLAUSE_MERGEABLE.
435 2011-07-25 Dodji Seketeli <dodji@redhat.com>
437 * c-common.h (set_underlying_type): Remove parm name from
440 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
442 * c-pretty-print.h: Search c-common.h in c-family.
444 2011-07-22 Jason Merrill <jason@redhat.com>
447 * c.opt (Wnarrowing): New.
450 * c-common.h: Declare c_linkage_bindings.
451 * c-pragma.c (handle_pragma_redefine_extname): Use it.
454 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
455 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
456 as flag_isoc99 for 'restrict'.
457 (pp_c_specifier_qualifier_list): Likewise for _Complex.
459 2011-07-21 Ian Lance Taylor <iant@google.com>
462 * c-common.c (c_disable_warnings): New static function.
463 (c_enable_warnings): New static function.
464 (c_fully_fold_internal): Change local unused_p to bool. Call
465 c_disable_warnings and c_enable_warnings rather than change
466 c_inhibit_evaluation_warnings.
468 2011-07-20 Jason Merrill <jason@redhat.com>
471 PR c++/42603 (DR 950)
472 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
473 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
475 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
477 2011-07-19 Richard Guenther <rguenther@suse.de>
479 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
480 * c-omp.c (c_finish_omp_for): Likewise.
482 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
484 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
485 body on the next line.
487 2011-07-08 Jason Merrill <jason@redhat.com>
490 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
493 * c-common.c (c_apply_type_quals_to_decl): Don't check
494 TYPE_NEEDS_CONSTRUCTING.
496 2011-07-06 Richard Guenther <rguenther@suse.de>
498 * c-common.c (c_common_nodes_and_builtins):
499 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
501 2011-07-05 Richard Guenther <rguenther@suse.de>
503 * c-common.c (c_common_nodes_and_builtins): Build all common
506 2011-06-27 Jakub Jelinek <jakub@redhat.com>
508 * c-common.h (c_tree_chain_next): New static inline function.
510 * c-common.c (check_builtin_function_arguments): Handle
511 BUILT_IN_ASSUME_ALIGNED.
513 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
515 * c-common.c: Add sync_ or SYNC__ to builtin names.
516 * c-omp.c: Add sync_ or SYNC__ to builtin names.
518 2011-06-20 Pierre Vittet <piervit@pvittet.com>
520 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
522 (gen_pragma_handler): New union.
523 (internal_pragma_handler): New type.
524 (c_register_pragma_with_data)
525 (c_register_pragma_with_expansion_and_data): New functions.
527 * c-pragma.c (registered_pragmas, c_register_pragma_1)
528 (c_register_pragma, c_register_pragma_with_expansion)
529 (c_invoke_pragma_handler): Changed to work with
530 internal_pragma_handler.
531 (c_register_pragma_with_data)
532 (c_register_pragma_with_expansion_and_data): New functions.
534 2011-06-14 Joseph Myers <joseph@codesourcery.com>
536 * c-common.c: Include common/common-target.h.
537 (handle_section_attribute): Use
538 targetm_common.have_named_sections.
539 * c-cppbuiltin.c: Include common/common-target.h.
540 (c_cpp_builtins): Use targetm_common.except_unwind_info.
542 2011-06-10 Richard Guenther <rguenther@suse.de>
544 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
545 to print a IDENTIFIER_NODE.
547 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
548 Joseph Myers <joseph@codesourcery.com>
550 * c.opt (fbuilding-libgcc): New option.
551 * c-cppbuiltin.c (c_cpp_builtins): Define
552 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
554 2011-06-07 Jason Merrill <jason@redhat.com>
556 * c-common.c (max_tinst_depth): Lower default to 900.
558 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
560 2011-06-07 Richard Guenther <rguenther@suse.de>
562 * c-common.c (c_common_nodes_and_builtins): Do not set
563 size_type_node or call set_sizetype.
565 2011-06-07 Dodji Seketeli <dodji@redhat.com>
568 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
569 type when using pointer comparison to compare types.
571 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
573 * c.opt: Add -Wdelete-non-virtual-dtor.
574 * c-opts.c (c_common_handle_option): Include it in -Wall.
576 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
581 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
583 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
586 2011-05-27 Jakub Jelinek <jakub@redhat.com>
589 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
590 C++ don't call c_common_truthvalue_conversion on void type arms.
592 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
594 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
595 (stmt_list_stack): Define.
596 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
597 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
599 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
601 * c-common.c (warning_candidate_p): Check for BLOCKs.
603 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
605 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
608 2011-05-25 Jakub Jelinek <jakub@redhat.com>
610 * c-common.c (def_fn_type): Remove extra va_end.
612 2011-05-23 Jason Merrill <jason@redhat.com>
615 * c-common.c (c_common_get_narrower): New.
616 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
618 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
620 * c-common.h (check_function_arguments): Tweak prototype of
621 check_function_arguments.
622 * c-common.c (check_function_arguments): Likewise. Adjust
623 calls to check_function_nonnull, check_function_format, and
624 check_function_sentinel.
625 (check_function_sentinel): Take a FUNCTION_TYPE rather than
626 separate attributes and typelist arguments. Use
627 FOREACH_FUNCTION_ARGS to iterate over argument types.
629 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
631 * c-common.c (c_common_reswords): Reorder.
632 * c-common.h (rid): Likewise.
634 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
636 * c-common.c (def_fn_type): Don't call build_function_type, call
637 build_function_type_array or build_varargs_function_type_array
639 (c_common_nodes_and_builtins): Likewise.
641 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
643 * c-common.c (c_add_case_label): Omit the loc argument to
645 * c-common.h (build_case_label): Remove.
646 * c-semantics.c (build_case_label): Remove.
648 2011-05-05 Joseph Myers <joseph@codesourcery.com>
650 * c-objc.h (objc_start_method_definition): Update prototype.
651 * stub-objc.c (objc_start_method_definition): Add extra parameter.
653 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
655 * c-common.c (check_main_parameter_types): Reindent. Don't use
656 TYPE_ARG_TYPES directly.
657 (handle_nonnull_attribute): Likewise.
658 (sync_resolve_params): Likewise.
659 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
660 to check_format_string.
661 (handle_format_attribute): Likewise.
662 (check_format_string): Take a function type to examine instead of
663 a type list. Use a function_arg_iterator to step through argument
666 2011-05-04 Richard Guenther <rguenther@suse.de>
668 * c-common.c (fix_string_type): Use size_int for index type bounds.
669 (start_fname_decls): Do not pass NULL to build_int_cst.
670 (c_init_attributes): Likewise.
671 * c-lex.c (c_lex_with_flags): Likewise.
673 2011-04-27 Jason Merrill <jason@redhat.com>
675 * c-common.c (make_tree_vector_from_list): New.
676 * c-common.h: Declare it.
678 2011-04-26 Richard Guenther <rguenther@suse.de>
680 PR preprocessor/48248
681 * c-ppoutput.c (maybe_print_line): Always optimize newlines
682 for output size with -P.
684 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
686 * c-common.c (struct c_common_resword): Add __underlying_type.
687 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
689 2011-04-20 Jim Meyering <meyering@redhat.com>
691 * c-format.c (init_dollar_format_checking): Remove useless
694 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
696 * c-objc.h (objc_get_interface_ivars): Removed.
697 (objc_detect_field_duplicates): New.
698 * stub-objc.c: Likewise.
700 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
702 * stub-objc.c (objc_declare_protocols): Renamed to
703 objc_declare_protocol.
704 * c-objc.h: Likewise.
706 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
708 * stub-objc.c (objc_declare_class): Updated argument name.
710 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
712 * c-common.h (c_common_init_ts): Declare.
713 * c-common.c (c_common_init_ts): Define.
715 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
717 * c-objc.h (objc_build_message_expr): Updated prototype.
718 * stub-objc.c (objc_build_message_expr): Likewise.
720 2011-04-12 Martin Jambor <mjambor@suse.cz>
722 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
725 2011-04-11 Richard Guenther <rguenther@suse.de>
727 * c-common.c (complete_array_type): Build a range type of
730 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
732 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
733 (handle_type_generic_attribute): Likewise.
735 2011-04-07 Jason Merrill <jason@redhat.com>
738 * c-common.c (c_common_truthvalue_conversion): Don't ignore
739 conversion from C++0x scoped enum.
741 2011-04-06 Joseph Myers <joseph@codesourcery.com>
743 * c-target-def.h: New file.
744 * c-target.def: New file.
745 * c-target.h: New file.
746 * c-common.c (targetcm): Don't define here.
747 * c-common.h (default_handle_c_option): Declare.
748 * c-format.c: Include c-target.h instead of target.h.
749 * c-opts.c: Include c-target.h instead of target.h. Explicitly
751 (default_handle_c_option): Move from targhooks.c.
753 2011-03-29 Jakub Jelinek <jakub@redhat.com>
755 PR preprocessor/48248
756 * c-ppoutput.c (print): Add src_file field.
757 (init_pp_output): Initialize it.
758 (maybe_print_line): Don't optimize by adding up to 8 newlines
759 if map->to_file and print.src_file are different file.
760 (print_line): Update print.src_file.
762 2011-03-25 Kai Tietz <ktietz@redhat.com>
764 * c-ada-spec.c (compare_comment): Use filename_cmp
765 instead of strcmp for filename.
767 2011-03-25 Jeff Law <law@redhat.com>
769 * c-family/c-common.c (def_fn_type): Add missing va_end.
771 2011-03-25 Jason Merrill <jason@redhat.com>
773 * c.opt: Add -std=c++03.
775 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
777 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
782 * c-pretty-print.c (pp_c_specifier_qualifier_list):
783 Display allowed attributes for function pointer types.
784 (pp_c_attributes_display): New function to display
785 attributes having affects_type_identity flag set to true.
786 * c-pretty-print.h (pp_c_attributes_display): New prototype.
788 * c-common.c (c_common_attribute_table):
790 (c_common_format_attribute_table): Likewise.
792 2011-03-18 Jason Merrill <jason@redhat.com>
794 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
795 * c-common.h: Don't declare it here.
796 * c-common.c: Or define it here.
797 * c-opts.c (c_common_handle_option): Or set it here.
800 * c-common.c (handle_transparent_union_attribute): Don't
801 make a duplicate type in C++.
803 2011-03-15 Jason Merrill <jason@redhat.com>
805 * c-common.c (max_constexpr_depth): New.
806 * c-common.h: Declare it.
807 * c-opts.c (c_common_handle_option): Set it.
808 * c.opt (fconstexpr-depth): New option.
810 2011-03-11 Jason Merrill <jason@redhat.com>
812 * c-common.c (attribute_takes_identifier_p): Add missing const.
815 * c-common.c (attribute_takes_identifier_p): Assume that an
816 unknown attribute takes an identifier.
818 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
821 * c-common.c (c_type_hash): Call list_length instead of iterating
822 through DECL_CHAIN. Rename 'i' to 'n_elements'.
824 2011-02-19 Jakub Jelinek <jakub@redhat.com>
827 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
829 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
831 * c.opt (fobjc-abi-version=) New.
832 (fobjc-nilcheck): New.
834 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
837 * c-common.h (keyword_is_decl_specifier): Declare.
838 * c-common.c (keyword_is_decl_specifier): Define.
839 (keyword_is_function_specifier): New function.
841 2011-01-26 Jakub Jelinek <jakub@redhat.com>
844 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
845 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
848 2011-01-26 Arnaud Charlet <charlet@adacore.com>
850 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
852 2011-01-26 Jakub Jelinek <jakub@redhat.com>
855 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
856 after init_c_lex if pch_file is set.
858 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
861 * c.opt (-fkeep-inline-dllexport): New switch.
863 2011-01-12 Richard Guenther <rguenther@suse.de>
866 * c-common.c (handle_weak_attribute): Warn instead of error
867 on declaring an inline function weak.
869 2011-01-05 Tom Tromey <tromey@redhat.com>
871 * c-common.h (lvalue_error): Update.
872 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
875 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
878 * c-objc.h (objc_finish_message_expr): Added argument to
881 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
883 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
886 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
888 * c-objc.h (objc_maybe_warn_exceptions): New.
889 * stub-objc.c (objc_maybe_warn_exceptions): New.
891 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
893 * c-common.h (readonly_error): Declare.
894 * c-common.c (readonly_error): Define.
896 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
898 * c-common.h (invalid_indirection_error): Declare.
899 * c-common.c (invalid_indirection_error): Define.
901 2010-12-03 Richard Guenther <rguenther@suse.de>
904 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
905 (pp_c_unary_expression): Likewise.
906 (pp_c_expression): Likewise.
908 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
910 * c-common.h (objc_finish_function): New.
911 (objc_non_volatilized_type): Removed.
912 (objc_type_quals_match): Removed.
913 * stub-objc.c (objc_finish_function): New.
914 (objc_non_volatilized_type): Removed.
915 (objc_type_quals_match): Removed.
917 2010-11-30 Joseph Myers <joseph@codesourcery.com>
919 * c-common.h (parse_optimize_options): Declare.
920 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
921 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
923 2010-11-29 Joseph Myers <joseph@codesourcery.com>
925 * c-opts.c (check_deps_environment_vars): Use getenv instead of
927 * c-pch.c (O_BINARY): Don't define here.
928 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
930 2010-11-25 Joseph Myers <joseph@codesourcery.com>
932 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
933 targetm.except_unwind_info.
935 2010-11-23 Joseph Myers <joseph@codesourcery.com>
937 * c-opts.c (c_common_handle_option): Pass location to
938 set_struct_debug_option.
940 2010-11-23 Joseph Myers <joseph@codesourcery.com>
942 * c-common.c (visibility_options): Move from ../opts.c.
943 * c-common.h (struct visibility_flags, visibility_options):
945 * c-opts.c (finish_options): Rename to c_finish_options.
946 (c_common_init): Update call to finish_options.
948 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
951 * c-lex.c (lex_string): Check that each string in an Objective-C
952 string concat sequence starts with either one or zero '@', and
953 that there are no spurious '@' signs at the end.
955 2010-11-20 Joseph Myers <joseph@codesourcery.com>
957 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
958 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
959 HANDLE_PRAGMA_VISIBILITY.
960 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
961 HANDLE_PRAGMA_VISIBILITY): Don't define.
962 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
964 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
969 * c-common.h (keyword_begins_type_specifier): Declare.
970 (keyword_is_storage_class_specifier): Declare.
971 (keyword_is_type_qualifier): Declare.
972 * c-common.c (keyword_begins_type_specifier): New function.
973 (keyword_is_storage_class_specifier): New function.
974 (keyword_is_type_qualifier): Declare.
976 2010-11-19 Joseph Myers <joseph@codesourcery.com>
979 * c-common.c (in_late_binary_op): Define.
980 (c_common_truthvalue_conversion): Check in_late_binary_op before
982 * c-common.h (in_late_binary_op): Declare.
984 2010-11-19 Joseph Myers <joseph@codesourcery.com>
986 * c-opts.c (c_common_handle_option): Update calls to
987 set_struct_debug_option.
989 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
991 * c-common.h (objc_declare_protocols): Added additional argument.
992 * stub-objc.c (objc_declare_protocol): Same change.
994 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
997 * c-common.h (build_real_imag_expr): Declare.
998 * c-semantics.c (build_real_imag_expr): Define.
1000 2010-11-17 Joseph Myers <joseph@codesourcery.com>
1002 * c-opts.c (c_common_parse_file): Take no arguments.
1003 * c-common.h (c_common_parse_file): Update prototype.
1005 2010-11-16 Jakub Jelinek <jakub@redhat.com>
1008 * c-common.c (warning_candidate_p): Don't track non-const calls
1011 2010-11-15 Ian Lance Taylor <iant@google.com>
1013 * c-lex.c (init_c_lex): Set macro debug callbacks if
1014 flag_dump_go_spec is set.
1016 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1018 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1019 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1021 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1023 PR preprocessor/45038
1024 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1027 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1029 * c-common.h (c_family_lang_mask): Declare.
1030 * c-opts.c (c_family_lang_mask): Make extern.
1031 * c-pragma.c (handle_pragma_diagnostic): Use
1032 control_warning_option.
1034 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1036 * c-common.c (parse_optimize_options): Update call to
1038 * c-common.h (c_common_handle_option): Update prototype.
1039 * c-opts.c (c_common_handle_option): Take location_t parameter and
1040 pass it to other functions.
1042 2010-11-11 Joseph Myers <joseph@codesourcery.com>
1044 * c-opts.c (warning_as_error_callback): Remove.
1045 (c_common_initialize_diagnostics): Don't call
1046 register_warning_as_error_callback.
1047 (c_common_handle_option): Handle -Werror=normalized= here.
1049 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1051 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1053 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1055 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1056 Remove trailing '.' from diagnostics.
1057 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1059 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1061 * c-common.c (parse_optimize_options): Pass global_dc to
1063 * c-opts.c (c_common_handle_option): Pass &global_options to
1064 set_Wstrict_aliasing.
1065 * c.opt (v): Don't mark Common or document here.
1067 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1070 * c-format.c (format_type): New type gcc_objc_string_format_type.
1071 (valid_stringptr_type_p): New.
1072 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1073 (check_format_string): Pass expected type, use
1074 valid_stringptr_type_p (), check that the format string types are
1075 consistent with the format specification.
1076 (decode_format_attr): Warn if NSString is used outside objective-c.
1077 (format_types_orig): Add NSString.
1079 (format_flags): New.
1080 (check_format_arg): Handle format strings requiring an external parser.
1081 first_target_format_type: New variable.
1082 (handle_format_attribute): Set up first_target_format_type, pass the
1083 expected format arg string type to check_format_string().
1084 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1085 * stub-objc.c (objc_string_ref_type_p): New.
1086 (objc_check_format_arg): New.
1088 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1090 Fixed using the Objective-C 2.0 dot-syntax with class names.
1091 * c-common.h (objc_build_class_component_ref): New.
1092 * stub-objc.c (objc_build_class_component_ref): New.
1094 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1096 * c.opt (Wproperty-assign-default): New option.
1098 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1100 Implemented -fobjc-std=objc1 flag.
1101 * c.opt (fobjc-std=objc1): New option.
1103 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1105 Implemented format and noreturn attributes for Objective-C methods.
1106 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1107 attribute for Objective-C methods.
1109 2010-10-31 Jason Merrill <jason@redhat.com>
1111 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1114 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1116 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1117 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1118 (objc_add_property_declaration): Removed arguments for copies and
1120 (objc_build_getter_call): Renamed to
1121 objc_maybe_build_component_ref.
1122 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1123 (objc_is_property_ref): New.
1124 * c-common.c (c_common_reswords): Removed copies and ivar.
1125 * stub-objc.c (objc_add_property_declaration): Removed arguments
1126 for copies and ivar.
1127 (objc_build_getter_call): Renamed to
1128 objc_maybe_build_component_ref.
1129 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1130 (objc_is_property_ref): New.
1132 2010-10-29 Arnaud Charlet <charlet@adacore.com>
1133 Matthew Gingell <gingell@adacore.com>
1135 * c-ada-spec.c (separate_class_package): New function.
1136 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1137 name of their enclosing package.
1138 (print_ada_declaration): Use separate_class_package.
1140 2010-10-27 Jason Merrill <jason@redhat.com>
1142 * c-common.c (c_common_reswords): Add __is_literal_type.
1143 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1145 * c-common.c (check_case_value): Remove special C++ code.
1147 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1149 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1150 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1152 (objc_add_property_declaration): Added additional arguments.
1153 (objc_property_attribute_kind): Removed.
1154 (objc_set_property_attr): Removed.
1155 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1157 * stub-objc.c (objc_add_property_declaration): Added additional
1159 (objc_set_property_attr): Removed.
1161 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1163 * c-common.h (objc_add_property_variable): Renamed to
1164 objc_add_property_declaration. Added location argument.
1165 * stub-objc.c (objc_add_property_variable): Same change.
1167 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1169 * c-common.h (objc_maybe_printable_name): New.
1170 * stub-objc.c (objc_maybe_printable_name): New.
1172 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1173 Andrew Pinski <pinskia@gmail.com>
1175 * c-common.h (c_common_mark_addressable_vec): Declare.
1176 * c-common.c (c_common_mark_addressable_vec): New function.
1178 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1180 * c-common.h (objc_set_method_type): Removed.
1181 (objc_add_method_declaration): Added boolean argument.
1182 (objc_start_method_definition): Same change.
1183 (objc_build_method_signature): Same change.
1184 * stub-objc.c (objc_set_method_type): Removed.
1185 (objc_add_method_declaration): Added boolean argument.
1186 (objc_start_method_definition): Same change.
1187 (objc_build_method_signature): Same change.
1189 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1191 * c-common.h (finish_file): Removed.
1192 (objc_write_global_declarations): New.
1193 * c-opts.c (c_common_parse_file): Do not call finish_file.
1194 * stub-objc.c (objc_write_global_declarations): New.
1196 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1198 Implemented parsing @synthesize and @dynamic for
1199 Objective-C/Objective-C++.
1200 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1201 (objc_add_synthesize_declaration): New.
1202 (objc_add_dynamic_declaration): New.
1203 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1204 * stub-objc.c (objc_add_synthesize_declaration): New.
1205 (objc_add_dynamic_declaration): New.
1207 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1210 * c-cppbuiltin.c (mode_has_fma): Move function here from
1211 builtins.c. Don't use the fma optab, instead just use the
1212 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1215 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1217 Merge from 'apple/trunk' branch on FSF servers.
1219 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1222 * c-common.h (objc_non_volatilized_type): New declaration
1223 * stub-objc.c (objc_non_volatilized_type): New stub.
1225 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1227 Merge from 'apple/trunk' branch on FSF servers.
1229 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1232 * c-common.h (objc_diagnose_private_ivar): New decl.
1233 * stub-objc.c (objc_diagnose_private_ivar): New stub.
1235 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1237 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1238 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1239 (objc_ivar_visibility_kind): New enum.
1240 (objc_set_visibility): Adjust prototype to use visibility enum.
1241 * stub-objc.c (objc_set_visibility): Adjust stub to use
1244 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1246 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1247 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1248 has the appropriate fma builtins.
1249 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1251 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1253 merge from FSF apple 'trunk' branch.
1254 2006 Fariborz Jahanian <fjahanian@apple.com>
1256 Radars 4436866, 4505126, 4506903, 4517826
1257 * c-common.c (c_common_resword): Define @property and its attributes.
1258 * c-common.h: Define property attribute enum entries.
1259 (OBJC_IS_PATTR_KEYWORD): New.
1260 (objc_property_attribute_kind): New enum.
1261 Declare objc_set_property_attr (), objc_add_property_variable (),
1262 objc_build_getter_call () and objc_build_setter_call ().
1263 * stub-objc.c (objc_set_property_attr): New stub.
1264 (objc_add_property_variable): Likewise.
1265 (objc_build_getter_call): Likewise.
1266 (objc_build_setter_call) Likewise.
1268 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1270 merge from FSF apple 'trunk' branch.
1271 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1273 Radar 3803157 (method attributes)
1274 * c-common.c (handle_deprecated_attribute): Recognize
1275 objc methods as valid declarations.
1276 * c-common.h: Declare objc_method_decl ().
1277 * stub-objc.c (objc_method_decl): New stub.
1279 2010-10-08 Joseph Myers <joseph@codesourcery.com>
1281 * c-common.c (parse_optimize_options): Call
1282 decode_cmdline_options_to_array_default_mask before
1283 decode_options. Update arguments to decode_options.
1284 * c-common.h (c_common_init_options_struct): Declare.
1285 * c-opts.c (c_common_init_options_struct): New. Split out from
1286 c_common_init_options.
1288 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1290 Implemented fast enumeration for Objective-C.
1291 * c-common.h (objc_finish_foreach_loop): New.
1292 * stub-objc.c (objc_finish_foreach_loop): New.
1294 2010-10-05 Joseph Myers <joseph@codesourcery.com>
1296 * c-common.h (struct diagnostic_context): Don't declare here.
1297 (c_common_initialize_diagnostics): Declare using
1298 diagnostic_context typedef.
1299 * c-opts.c (c_common_handle_option): Pass global_dc to
1300 handle_generated_option.
1302 2010-10-04 Joseph Myers <joseph@codesourcery.com>
1304 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1305 handle_generated_option.
1307 2010-10-03 Ian Lance Taylor <iant@google.com>
1309 * c.opt (-fplan9-extensions): New option.
1311 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1313 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1315 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1316 of duplicating code.
1318 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1320 * c-common.c: Add two new entries for @optional
1321 and @required keywords.
1323 merge from FSF 'apple/trunk' branch.
1324 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1327 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1328 objective-c keywords.
1329 (objc_set_method_opt): New declaration.
1330 * stub-objc.c (objc_set_method_opt): New stub.
1332 2010-09-30 Joseph Myers <joseph@codesourcery.com>
1334 * c-common.c (handle_optimize_attribute): Pass &global_options to
1335 cl_optimization_save and cl_optimization_restore.
1336 * c-opts.c (c_common_handle_option): Pass &global_options to
1337 handle_generated_option.
1338 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1339 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1340 &global_options to cl_optimization_restore.
1342 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1344 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1345 Objective-C/Objective-C++ keywords.
1347 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1349 Merge from 'apple/trunk' branch on FSF servers.
1351 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1354 * c-common.h (objc_check_global_decl): New declaration.
1355 * stub-objc.c (objc_check_global_decl): New stub.
1357 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1359 * c.opt: Don't use VarExists.
1361 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1363 * c-common.c (c_cpp_error): Update names of diagnostic_context
1365 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1366 cl_optimization members.
1367 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1368 sanitize_cpp_opts, finish_options): Update names of cpp_options
1371 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1373 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1374 (objc_is_reserved_word): Removed.
1375 * c-common.c: Updated comments.
1376 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1377 objc_is_reserved_word.
1378 * stub-objc.c (objc_is_reserved_word): Removed.
1380 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1382 * c-common.h (objc_add_method_declaration): Adjust prototype to
1384 (objc_start_method_definition): Likewise.
1385 (objc_build_keyword_decl): Likewise.
1386 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1387 (objc_start_method_definition): Likewise.
1388 (objc_build_keyword_decl): Likewise.
1390 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1392 * c-common.h (objc_start_class_interface): Adjust prototype.
1393 (objc_start_category_interface): Likewise.
1394 (objc_start_protocol): Likewise.
1395 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1396 (objc_start_class_interface): Likewise.
1397 (objc_start_category_interface): Likewise.
1399 2010-09-27 Ian Lance Taylor <iant@google.com>
1401 * c-common.c (c_common_attribute_table): Add no_split_stack.
1402 (handle_no_split_stack_attribute): New static function.
1404 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1406 Merge from 'apple/trunk' branch on FSF servers.
1408 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1411 * c-common.h (objc_have_common_type): New declaration.
1412 * stub-objc.c (objc_have_common_type): New stub.
1414 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1417 * c-common.h (objc_common_type): New prototype.
1418 * stub-objc.c (objc_common_type): New stub.
1420 2010-09-24 Jan Hubicka <jh@suse.cz>
1422 * c-common.c (handle_leaf_attribute): New function.
1423 (struct attribute_spec c_common_att): Add leaf.
1425 2010-09-22 Joseph Myers <joseph@codesourcery.com>
1427 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1428 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1429 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1430 -include-barrier, -include-directory, -include-directory=,
1431 -include-directory-after, -include-directory-after=,
1432 -include-prefix, -include-prefix=, -include-with-prefix,
1433 -include-with-prefix=, -include-with-prefix-after,
1434 -include-with-prefix-after=, -include-with-prefix-before,
1435 -include-with-prefix-before=, -no-integrated-cpp,
1436 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1437 -output=, -pedantic, -pedantic-errors, -preprocess,
1438 -print-missing-file-dependencies, -trace-includes, -traditional,
1439 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1440 -user-dependencies, -verbose, -write-dependencies,
1441 -write-user-dependencies, no-integrated-cpp, traditional): New.
1443 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1446 * c-common.h (objc_start_method_definition): Return bool instead
1448 * stub-objc.c (objc_start_method_definition): Return bool instead
1451 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1454 * c-common.h (objc_get_interface_ivars): New declaration.
1455 * stub-objc.c (objc_get_interface_ivars): New stub.
1457 2010-09-15 Ian Lance Taylor <iant@google.com>
1459 * c-common.c (parse_optimize_options): Do not capitalize warning
1460 messages. Remove period at end of warning message.
1462 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1464 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1465 (handle_alias_attribute): ... here.
1466 (handle_ifunc_attribute): New.
1468 2010-09-06 Mark Mitchell <mark@codesourcery.com>
1470 * c-common.h (do_warn_double_promotion): Declare.
1471 * c-common.c (do_warn_double_promotion): Define.
1473 2010-09-05 Mark Mitchell <mark@codesourcery.com>
1475 * c.opt (Wdouble-promotion): New.
1477 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1479 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1480 fvtable-thunks, fxref): Mark no longer supported in help text.
1482 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1484 * c.opt (Wimport, fall-virtual, falt-external-templates,
1485 fdefault-inline, fenum-int-equiv, fexternal-templates,
1486 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1487 fname-mangling-version-, fnew-abi, fnonnull-objects,
1488 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1489 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1491 (fhandle-exceptions): Mark with Alias and Warn.
1492 * c-opts.c (c_common_handle_option): Don't handle options marked
1495 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1497 * c.opt (Wcomments, Werror-implicit-function-declaration,
1498 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1499 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1501 * c-common.c (option_codes): Use OPT_Wcomment instead of
1503 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1504 Don't handle options marked as aliases.
1506 2010-08-25 Richard Guenther <rguenther@suse.de>
1508 * c-common.c (c_common_get_alias_set): Remove special
1509 handling for pointers.
1511 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1513 * c-common.c: Use FOR_EACH_VEC_ELT.
1514 * c-gimplify.c: Likewise.
1515 * c-pragma.c: Likewise.
1517 2010-08-16 Joseph Myers <joseph@codesourcery.com>
1519 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1521 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1523 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1524 instead of OPT_MDX and OPT_MMDX.
1526 2010-08-16 Joseph Myers <joseph@codesourcery.com>
1528 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1530 2010-08-12 Joseph Myers <joseph@codesourcery.com>
1532 * c.opt (MD, MMD): Change to MDX and MMDX.
1533 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1535 2010-08-11 Joseph Myers <joseph@codesourcery.com>
1537 * c-opts.c (c_common_handle_option): Call handle_generated_option
1538 instead of handle_option.
1540 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1542 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1543 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1545 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1547 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1548 (pending_redefine_extname): Change type to a VEC.
1549 (add_to_renaming_pragma_list): Update for new type of
1550 pending_redefine_extname.
1551 (maybe_apply_renaming_pragma): Likewise.
1553 2010-08-04 Arnaud Charlet <charlet@adacore.com>
1555 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1557 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1558 decide whether a type has already been declared/seen.
1559 Do not go to the original type.
1560 (dump_nested_types): New parameter forward.
1561 Generate forward declaration if needed and mark type as visited.
1562 (print_ada_declaration): Call dump_nested_types if not already done.
1563 Mark types as visited.
1565 2010-08-03 Joseph Myers <joseph@codesourcery.com>
1567 * c.opt (-print-pch-checksum): Remove option.
1568 * c-opts.c (c_common_handle_option): Don't handle
1569 OPT_print_pch_checksum.
1571 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1573 * c-common.h (c_common_handle_option): Update prototype and return
1575 * c-opts.c (c_common_handle_option): Update prototype and return
1576 value type. Update calls to handle_option and
1577 enable_warning_as_error.
1579 2010-07-27 Jakub Jelinek <jakub@redhat.com>
1582 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1584 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1586 * c-common.h (c_common_missing_argument): Remove.
1587 * c-opts.c (c_common_missing_argument): Remove.
1588 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1589 idirafter, imacros, include, isysroot, isystem, iquote): Add
1591 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1593 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1595 * c-common.h (c_common_option_lang_mask,
1596 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1598 (c_common_init_options): Update prototype.
1599 * c-opts.c (c_common_option_lang_mask): New.
1600 (c_common_initialize_diagnostics): Split out of
1601 c_common_init_options.
1602 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1604 (c_common_init_options): Update prototype. Use decoded options in
1605 search for -lang-asm.
1607 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1609 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1610 * c-format.c: Likewise.
1612 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1614 * c-common.h: Include diagnostic-core.h. Error if already
1616 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1618 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1620 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1621 Do not include expr.h
1622 (vector_mode_valid_p): Move here.
1624 2010-06-21 DJ Delorie <dj@redhat.com>
1626 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1627 allow these pragmas anywhere.
1629 2010-06-14 Jakub Jelinek <jakub@redhat.com>
1632 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1633 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1634 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1635 ggc_strdup instead of xstrdup.
1637 2010-06-10 Jakub Jelinek <jakub@redhat.com>
1639 * c-cppbuiltin.c: Include cpp-id-data.h.
1640 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1641 (lazy_hex_fp_value): New function.
1642 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1644 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1646 * c-gimplify.c: Do not include tree-flow.h
1648 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1651 * c-common.c: Rename targetm member:
1652 targetm.enum_va_list -> targetm.enum_va_list_p
1654 2010-06-28 Anatoly Sokolov <aesok@post.ru>
1656 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1658 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1660 * c-cppbuiltin.c: Do not include except.h.
1662 2010-06-24 Andi Kleen <ak@linux.intel.com>
1664 * c-common.c (warn_for_omitted_condop): New.
1665 * c-common.h (warn_for_omitted_condop): Add prototype.
1667 2010-06-21 Joseph Myers <joseph@codesourcery.com>
1669 * c.opt (lang-objc): Remove.
1670 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1672 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1674 * c-opts.c: Include "tm_p.h".
1676 2010-06-20 Joseph Myers <joseph@codesourcery.com>
1678 * c-common.c (parse_optimize_options): Update call to
1681 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1683 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1684 new type of types_used_by_cur_var_decl.
1686 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1689 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1690 for C++ standard compliance.
1692 2010-06-16 Jason Merrill <jason@redhat.com>
1694 * c.opt: Add -Wnoexcept.
1696 2010-06-16 Richard Guenther <rguenther@suse.de>
1699 * c-common.c (c_common_truthvalue_conversion): Remove
1700 premature and wrong optimization concering ADDR_EXPRs.
1702 2010-06-15 Arnaud Charlet <charlet@adacore.com>
1704 * c-ada-spec.c (dump_sloc): Remove column info.
1705 (is_simple_enum): New function.
1706 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1707 enum types when relevant.
1709 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1711 * c-common.c (conversion_warning): Warn at expression
1714 2010-06-10 Joseph Myers <joseph@codesourcery.com>
1716 * c-opts.c (c_common_handle_option): Don't handle
1719 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1721 * c-pragma.c (push_alignment): Use typed GC allocation.
1722 (handle_pragma_push_options): Likewise.
1724 * c-common.c (parse_optimize_options): Likewise.
1726 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1729 2010-06-07 Joseph Myers <joseph@codesourcery.com>
1731 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1732 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1733 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1734 flag_signed_bitfields, warn_strict_null_sentinel,
1735 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1736 flag_gen_declaration, flag_no_gnu_keywords,
1737 flag_implement_inlines, flag_implicit_templates,
1738 flag_implicit_inline_templates, flag_optional_diags,
1739 flag_elide_constructors, flag_default_inline, flag_rtti,
1740 flag_conserve_space, flag_access_control, flag_check_new,
1741 flag_new_for_scope, flag_weak, flag_working_directory,
1742 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1743 flag_enforce_eh_specs, flag_threadsafe_statics,
1744 flag_pretty_templates): Remove.
1745 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1746 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1747 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1748 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1749 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1750 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1751 flag_no_gnu_keywords, flag_implement_inlines,
1752 flag_implicit_templates, flag_implicit_inline_templates,
1753 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1754 flag_rtti, flag_conserve_space, flag_access_control,
1755 flag_check_new, flag_new_for_scope, flag_weak,
1756 flag_working_directory, flag_use_cxa_atexit,
1757 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1758 flag_threadsafe_statics, flag_pretty_templates,
1759 warn_strict_null_sentinel): Remove.
1760 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1761 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1762 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1763 fimplicit-inline-templates, fimplicit-templates,
1764 flax-vector-conversions, fms-extensions, fnil-receivers,
1765 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1766 frtti, fshort-double, fshort-enums, fshort-wchar,
1767 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1768 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1769 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1770 gen-decls, undef): Use Var.
1771 (fdefault-inline, foptional-diags): Document as doing nothing.
1772 * c-opts.c (c_common_handle_option): Remove cases for options now
1773 using Var. Mark ignored options as such.
1775 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1777 * c-common.c: Moved to here from parent directory.
1778 * c-common.def: Likewise.
1779 * c-common.h: Likewise.
1780 * c-cppbuiltin.c: Likewise.
1781 * c-dump.c: Likewise.
1782 * c-format.c: Likewise.
1783 * c-format.h : Likewise.
1784 * c-gimplify.c: Likewise.
1785 * c-lex.c: Likewise.
1786 * c-omp.c: Likewise.
1788 * c-opts.c: Likewise.
1789 * c-pch.c: Likewise.
1790 * c-ppoutput.c: Likewise.
1791 * c-pragma.c: Likewise.
1792 * c-pragma.h: Likewise.
1793 * c-pretty-print.c: Likewise.
1794 * c-pretty-print.h: Likewise.
1795 * c-semantics.c: Likewise.
1796 * stub-objc.c: Likewise.
1798 * c-common.c: Include gt-c-family-c-common.h.
1799 * c-pragma.c: Include gt-c-family-c-pragma.h.
1801 Copyright (C) 2010, 2011 Free Software Foundation, Inc.
1803 Copying and distribution of this file, with or without modification,
1804 are permitted in any medium without royalty provided the copyright
1805 notice and this notice are preserved.