1 2011-12-20 Joseph Myers <joseph@codesourcery.com>
3 * c-common.c (flag_isoc99): Update comment to refer to C11.
4 (flag_isoc1x): Change to flag_isoc11.
5 * c-common.h (flag_isoc99): Update comment to refer to C11.
6 (flag_isoc1x): Change to flag_isoc11.
7 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
9 * c-opts.c (set_std_c1x): Change to set_std_c11.
10 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
12 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
13 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
14 * c.opt (std=c1x): Change to std=c11. Document as non-draft
16 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
17 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
18 (std=gnu1x): Make alias of std=gnu11.
20 2011-12-19 Jason Merrill <jason@redhat.com>
23 * c-common.c (handle_transparent_union_attribute): Check the first
24 field if the type is complete.
26 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
29 * c-common.c (RID_IS_FINAL): Add.
30 * c-common.h (RID_IS_FINAL): Add.
32 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
34 * c.opt (fgnu-runtime): Provide full description.
35 (fnext-runtime): Likewise.
36 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
38 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
40 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
41 predefines in one place. Add LOCK_FREE predefines.
42 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
45 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
48 * c-common.c (get_atomic_generic_size): Check for various error
50 (resolve_overloaded_atomic_exchange,
51 resolve_overloaded_atomic_compare_exchange,
52 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
53 error_mark_node for error conditions.
55 2011-11-08 Richard Guenther <rguenther@suse.de>
60 2011-11-07 Richard Henderson <rth@redhat.com>
61 Aldy Hernandez <aldyh@redhat.com>
62 Torvald Riegel <triegel@redhat.com>
64 Merged from transactional-memory.
66 * c-common.c (handle_tm_wrap_attribute,
67 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
68 (struct c_common_reswords): Added __transaction* keywords.
69 (struct c_common_attribute_table): Added transaction* and tm_regparm
71 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
73 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
74 find_tm_attribute): Declare.
76 2011-11-07 Jason Merrill <jason@redhat.com>
79 * c-common.c, c-common.h: Revert yesterday's changes.
81 2011-11-06 Jason Merrill <jason@redhat.com>
84 * c-common.c (decl_has_visibility_attr): Split out from...
85 (c_determine_visibility): ...here.
86 * c-common.h: Declare it.
88 2011-11-06 Joseph Myers <joseph@codesourcery.com>
90 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
91 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
93 (check_user_alignment): New. Split out of
94 handle_aligned_attribute. Disallow integer constants with
95 noninteger types. Conditionally allow zero.
96 (handle_aligned_attribute): Use check_user_alignment.
97 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
99 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
100 Richard Henderson <rth@redhat.com>
102 Merged from cxx-mem-model.
104 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
105 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
106 parameters that are the same type size.
107 (get_atomic_generic_size): New. Find size of generic
108 atomic function parameters and do typechecking.
109 (add_atomic_size_parameter): New. Insert size into parameter list.
110 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
111 either __atomic_exchange_n or external library call.
112 (resolve_overloaded_atomic_compare_exchange): Restructure
113 __atomic_compare_exchange to either _n variant or external library call.
114 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
115 __atomic_load_n or an external library call.
116 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
117 __atomic_store_n or an external library call.
118 (resolve_overloaded_builtin): Handle new __atomic builtins.
120 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
123 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
124 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
125 <INDIRECT_REF>: Return the argument.
126 <ARRAY_REF>: Remove special code for negative offset.
127 Call fold_build_pointer_plus instead of size_binop.
128 (fold_offsetof): Remove STOP_REF argument and adjust.
129 * c-common.h (fold_offsetof_1): Declare.
130 (fold_offsetof): Remove STOP_REF argument.
132 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
135 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
136 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
137 Wnarrowing for C++0x and C++98.
138 * c.opt ([Wnarrowing]): Update.
140 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
143 * c.opt: Add Wzero-as-null-pointer-constant.
145 2011-10-31 Jason Merrill <jason@redhat.com>
147 * c.opt (-fdeduce-init-list): Off by default.
150 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
151 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
153 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
155 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
158 * c.opt (fvisibility-inlines-hidden): Description change.
160 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
162 Implement C++11 user-defined literals.
163 * c-common.c (build_userdef_literal): New.
164 * c-common.def: New tree code.
165 * c-common.h (tree_userdef_literal): New tree struct and accessors.
166 * c-lex.c (interpret_float): Add suffix parm.
167 (c_lex_with_flags): Build literal tokens.
169 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
173 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
176 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
177 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
178 Wnarrowing for C++0x and C++98.
179 * c.opt ([Wnarrowing]): Update.
181 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
184 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
185 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
186 Wnarrowing for C++0x and C++98.
187 * c.opt ([Wnarrowing]): Update.
189 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
192 * c-common.c (conversion_warning): Remove code looking for
195 2011-10-18 Dodji Seketeli <dodji@redhat.com>
198 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
199 !NO_IMPLICIT_EXTERN_C.
201 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
203 * c-common.c (c_common_reswords): Add __bases,
205 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
207 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
210 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
212 2011-10-15 Tom Tromey <tromey@redhat.com>
213 Dodji Seketeli <dodji@redhat.com>
215 * c.opt (fdebug-cpp): New option.
216 * c-opts.c (c_common_handle_option): Handle the option.
217 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
218 output stream in parameter. Factorized from ...
219 (maybe_print_line): ... this. Dump location debug information when
220 -fdebug-cpp is in effect.
221 (print_line_1): New static function. Takes an output stream in
222 parameter. Factorized from ...
223 (print_line): ... here. Dump location information when -fdebug-cpp
225 (scan_translation_unit): Dump location information when
226 -fdebug-cpp is in effect.
228 2011-10-15 Tom Tromey <tromey@redhat.com>
229 Dodji Seketeli <dodji@redhat.com>
231 * c.opt (ftrack-macro-expansion): New option. Handle it with and
233 * c-opts.c (c_common_handle_option)<case
234 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
235 cases. Handle -ftrack-macro-expansion with and without argument.
237 2011-10-15 Tom Tromey <tromey@redhat.com>
238 Dodji Seketeli <dodji@redhat.com>
240 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
241 (print_line, cb_define, do_line_change): Adjust to avoid touching
242 the internals of struct line_map. Use the public API instead.
243 * c-pch.c (c_common_read_pch): Likewise.
244 * c-lex.c (fe_file_change): Likewise.
246 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
249 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
251 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
254 * c-pretty-print.c (pp_c_floating_constant): Output
255 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
257 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
259 * c-common.c (def_builtin_1): Delete old interface with two
260 parallel arrays to hold standard builtin declarations, and replace
261 it with a function based interface that can support creating
262 builtins on the fly in the future. Change all uses, and poison
263 the old names. Make sure 0 is not a legitimate builtin index.
264 * c-omp.c (c_finish_omp_barrier): Ditto.
265 (c_finish_omp_taskwait): Ditto.
266 (c_finish_omp_flush): Ditto.
268 2011-10-11 Tristan Gingold <gingold@adacore.com>
270 * c.opt: (fallow-parameterless-variadic-functions): New.
272 2011-09-08 Dodji Seketeli <dodji@redhat.com>
274 PR c++/33255 - Support -Wunused-local-typedefs warning
275 * c-common.h (struct c_language_function::local_typedefs): New
277 (record_locally_defined_typedef, maybe_record_typedef_use)
278 (maybe_warn_unused_local_typedefs): Declare new functions.
279 * c-common.c (record_locally_defined_typedef)
280 (maybe_record_typedef_use)
281 (maybe_warn_unused_local_typedefs): Define new functions.
282 * c.opt: Declare new -Wunused-local-typedefs flag.
284 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
287 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
290 2011-09-05 Richard Guenther <rguenther@suse.de>
292 * c-common.c (complete_array_type): Use ssize_int (-1) instead
293 of integer_minus_one_node for empty array upper bounds.
295 2011-08-28 Dodji Seketeli <dodji@redhat.com>
297 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
298 it's the first time it's being called on this main TU.
300 2011-08-24 Richard Guenther <rguenther@suse.de>
303 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
305 2011-08-22 Gabriel Charette <gchare@google.com>
307 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
308 defined in cpp_init_builtins and c_cpp_builtins.
310 2011-08-19 Joseph Myers <joseph@codesourcery.com>
312 * c-common.c (c_common_reswords): Add __builtin_complex.
313 * c-common.h (RID_BUILTIN_COMPLEX): New.
315 2011-08-18 Joseph Myers <joseph@codesourcery.com>
317 * c-common.c (c_common_reswords): Add _Noreturn.
318 (keyword_is_function_specifier): Handle RID_NORETURN.
319 * c-common.h (RID_NORETURN): New.
321 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
323 * c-common.c (unsafe_conversion_p): New function. Check if it is
324 unsafe to convert an expression to the type.
325 (conversion_warning): Adjust, use unsafe_conversion_p.
326 * c-common.h (unsafe_conversion_p): New function declaration.
328 2011-08-02 Jakub Jelinek <jakub@redhat.com>
330 * c-common.h (c_finish_omp_atomic): Adjust prototype.
331 (c_finish_omp_taskyield): New prototype.
332 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
333 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
334 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
335 or RHS1 have side-effects, evaluate those too in the right spot,
336 if it is a decl and LHS is also a decl, error out if they
338 (c_finish_omp_taskyield): New function.
339 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
340 * c-pragma.c (omp_pragmas): Add taskyield.
341 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
342 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
343 PRAGMA_OMP_CLAUSE_MERGEABLE.
345 2011-07-25 Dodji Seketeli <dodji@redhat.com>
347 * c-common.h (set_underlying_type): Remove parm name from
350 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
352 * c-pretty-print.h: Search c-common.h in c-family.
354 2011-07-22 Jason Merrill <jason@redhat.com>
357 * c.opt (Wnarrowing): New.
360 * c-common.h: Declare c_linkage_bindings.
361 * c-pragma.c (handle_pragma_redefine_extname): Use it.
364 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
365 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
366 as flag_isoc99 for 'restrict'.
367 (pp_c_specifier_qualifier_list): Likewise for _Complex.
369 2011-07-21 Ian Lance Taylor <iant@google.com>
372 * c-common.c (c_disable_warnings): New static function.
373 (c_enable_warnings): New static function.
374 (c_fully_fold_internal): Change local unused_p to bool. Call
375 c_disable_warnings and c_enable_warnings rather than change
376 c_inhibit_evaluation_warnings.
378 2011-07-20 Jason Merrill <jason@redhat.com>
381 PR c++/42603 (DR 950)
382 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
383 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
385 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
387 2011-07-19 Richard Guenther <rguenther@suse.de>
389 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
390 * c-omp.c (c_finish_omp_for): Likewise.
392 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
394 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
395 body on the next line.
397 2011-07-08 Jason Merrill <jason@redhat.com>
400 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
403 * c-common.c (c_apply_type_quals_to_decl): Don't check
404 TYPE_NEEDS_CONSTRUCTING.
406 2011-07-06 Richard Guenther <rguenther@suse.de>
408 * c-common.c (c_common_nodes_and_builtins):
409 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
411 2011-07-05 Richard Guenther <rguenther@suse.de>
413 * c-common.c (c_common_nodes_and_builtins): Build all common
416 2011-06-27 Jakub Jelinek <jakub@redhat.com>
418 * c-common.h (c_tree_chain_next): New static inline function.
420 * c-common.c (check_builtin_function_arguments): Handle
421 BUILT_IN_ASSUME_ALIGNED.
423 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
425 * c-common.c: Add sync_ or SYNC__ to builtin names.
426 * c-omp.c: Add sync_ or SYNC__ to builtin names.
428 2011-06-20 Pierre Vittet <piervit@pvittet.com>
430 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
432 (gen_pragma_handler): New union.
433 (internal_pragma_handler): New type.
434 (c_register_pragma_with_data)
435 (c_register_pragma_with_expansion_and_data): New functions.
437 * c-pragma.c (registered_pragmas, c_register_pragma_1)
438 (c_register_pragma, c_register_pragma_with_expansion)
439 (c_invoke_pragma_handler): Changed to work with
440 internal_pragma_handler.
441 (c_register_pragma_with_data)
442 (c_register_pragma_with_expansion_and_data): New functions.
444 2011-06-14 Joseph Myers <joseph@codesourcery.com>
446 * c-common.c: Include common/common-target.h.
447 (handle_section_attribute): Use
448 targetm_common.have_named_sections.
449 * c-cppbuiltin.c: Include common/common-target.h.
450 (c_cpp_builtins): Use targetm_common.except_unwind_info.
452 2011-06-10 Richard Guenther <rguenther@suse.de>
454 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
455 to print a IDENTIFIER_NODE.
457 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
458 Joseph Myers <joseph@codesourcery.com>
460 * c.opt (fbuilding-libgcc): New option.
461 * c-cppbuiltin.c (c_cpp_builtins): Define
462 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
464 2011-06-07 Jason Merrill <jason@redhat.com>
466 * c-common.c (max_tinst_depth): Lower default to 900.
468 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
470 2011-06-07 Richard Guenther <rguenther@suse.de>
472 * c-common.c (c_common_nodes_and_builtins): Do not set
473 size_type_node or call set_sizetype.
475 2011-06-07 Dodji Seketeli <dodji@redhat.com>
478 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
479 type when using pointer comparison to compare types.
481 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
483 * c.opt: Add -Wdelete-non-virtual-dtor.
484 * c-opts.c (c_common_handle_option): Include it in -Wall.
486 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
491 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
493 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
496 2011-05-27 Jakub Jelinek <jakub@redhat.com>
499 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
500 C++ don't call c_common_truthvalue_conversion on void type arms.
502 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
504 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
505 (stmt_list_stack): Define.
506 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
507 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
509 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
511 * c-common.c (warning_candidate_p): Check for BLOCKs.
513 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
515 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
518 2011-05-25 Jakub Jelinek <jakub@redhat.com>
520 * c-common.c (def_fn_type): Remove extra va_end.
522 2011-05-23 Jason Merrill <jason@redhat.com>
525 * c-common.c (c_common_get_narrower): New.
526 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
528 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
530 * c-common.h (check_function_arguments): Tweak prototype of
531 check_function_arguments.
532 * c-common.c (check_function_arguments): Likewise. Adjust
533 calls to check_function_nonnull, check_function_format, and
534 check_function_sentinel.
535 (check_function_sentinel): Take a FUNCTION_TYPE rather than
536 separate attributes and typelist arguments. Use
537 FOREACH_FUNCTION_ARGS to iterate over argument types.
539 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
541 * c-common.c (c_common_reswords): Reorder.
542 * c-common.h (rid): Likewise.
544 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
546 * c-common.c (def_fn_type): Don't call build_function_type, call
547 build_function_type_array or build_varargs_function_type_array
549 (c_common_nodes_and_builtins): Likewise.
551 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
553 * c-common.c (c_add_case_label): Omit the loc argument to
555 * c-common.h (build_case_label): Remove.
556 * c-semantics.c (build_case_label): Remove.
558 2011-05-05 Joseph Myers <joseph@codesourcery.com>
560 * c-objc.h (objc_start_method_definition): Update prototype.
561 * stub-objc.c (objc_start_method_definition): Add extra parameter.
563 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
565 * c-common.c (check_main_parameter_types): Reindent. Don't use
566 TYPE_ARG_TYPES directly.
567 (handle_nonnull_attribute): Likewise.
568 (sync_resolve_params): Likewise.
569 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
570 to check_format_string.
571 (handle_format_attribute): Likewise.
572 (check_format_string): Take a function type to examine instead of
573 a type list. Use a function_arg_iterator to step through argument
576 2011-05-04 Richard Guenther <rguenther@suse.de>
578 * c-common.c (fix_string_type): Use size_int for index type bounds.
579 (start_fname_decls): Do not pass NULL to build_int_cst.
580 (c_init_attributes): Likewise.
581 * c-lex.c (c_lex_with_flags): Likewise.
583 2011-04-27 Jason Merrill <jason@redhat.com>
585 * c-common.c (make_tree_vector_from_list): New.
586 * c-common.h: Declare it.
588 2011-04-26 Richard Guenther <rguenther@suse.de>
590 PR preprocessor/48248
591 * c-ppoutput.c (maybe_print_line): Always optimize newlines
592 for output size with -P.
594 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
596 * c-common.c (struct c_common_resword): Add __underlying_type.
597 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
599 2011-04-20 Jim Meyering <meyering@redhat.com>
601 * c-format.c (init_dollar_format_checking): Remove useless
604 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
606 * c-objc.h (objc_get_interface_ivars): Removed.
607 (objc_detect_field_duplicates): New.
608 * stub-objc.c: Likewise.
610 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
612 * stub-objc.c (objc_declare_protocols): Renamed to
613 objc_declare_protocol.
614 * c-objc.h: Likewise.
616 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
618 * stub-objc.c (objc_declare_class): Updated argument name.
620 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
622 * c-common.h (c_common_init_ts): Declare.
623 * c-common.c (c_common_init_ts): Define.
625 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
627 * c-objc.h (objc_build_message_expr): Updated prototype.
628 * stub-objc.c (objc_build_message_expr): Likewise.
630 2011-04-12 Martin Jambor <mjambor@suse.cz>
632 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
635 2011-04-11 Richard Guenther <rguenther@suse.de>
637 * c-common.c (complete_array_type): Build a range type of
640 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
642 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
643 (handle_type_generic_attribute): Likewise.
645 2011-04-07 Jason Merrill <jason@redhat.com>
648 * c-common.c (c_common_truthvalue_conversion): Don't ignore
649 conversion from C++0x scoped enum.
651 2011-04-06 Joseph Myers <joseph@codesourcery.com>
653 * c-target-def.h: New file.
654 * c-target.def: New file.
655 * c-target.h: New file.
656 * c-common.c (targetcm): Don't define here.
657 * c-common.h (default_handle_c_option): Declare.
658 * c-format.c: Include c-target.h instead of target.h.
659 * c-opts.c: Include c-target.h instead of target.h. Explicitly
661 (default_handle_c_option): Move from targhooks.c.
663 2011-03-29 Jakub Jelinek <jakub@redhat.com>
665 PR preprocessor/48248
666 * c-ppoutput.c (print): Add src_file field.
667 (init_pp_output): Initialize it.
668 (maybe_print_line): Don't optimize by adding up to 8 newlines
669 if map->to_file and print.src_file are different file.
670 (print_line): Update print.src_file.
672 2011-03-25 Kai Tietz <ktietz@redhat.com>
674 * c-ada-spec.c (compare_comment): Use filename_cmp
675 instead of strcmp for filename.
677 2011-03-25 Jeff Law <law@redhat.com>
679 * c-family/c-common.c (def_fn_type): Add missing va_end.
681 2011-03-25 Jason Merrill <jason@redhat.com>
683 * c.opt: Add -std=c++03.
685 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
687 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
692 * c-pretty-print.c (pp_c_specifier_qualifier_list):
693 Display allowed attributes for function pointer types.
694 (pp_c_attributes_display): New function to display
695 attributes having affects_type_identity flag set to true.
696 * c-pretty-print.h (pp_c_attributes_display): New prototype.
698 * c-common.c (c_common_attribute_table):
700 (c_common_format_attribute_table): Likewise.
702 2011-03-18 Jason Merrill <jason@redhat.com>
704 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
705 * c-common.h: Don't declare it here.
706 * c-common.c: Or define it here.
707 * c-opts.c (c_common_handle_option): Or set it here.
710 * c-common.c (handle_transparent_union_attribute): Don't
711 make a duplicate type in C++.
713 2011-03-15 Jason Merrill <jason@redhat.com>
715 * c-common.c (max_constexpr_depth): New.
716 * c-common.h: Declare it.
717 * c-opts.c (c_common_handle_option): Set it.
718 * c.opt (fconstexpr-depth): New option.
720 2011-03-11 Jason Merrill <jason@redhat.com>
722 * c-common.c (attribute_takes_identifier_p): Add missing const.
725 * c-common.c (attribute_takes_identifier_p): Assume that an
726 unknown attribute takes an identifier.
728 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
731 * c-common.c (c_type_hash): Call list_length instead of iterating
732 through DECL_CHAIN. Rename 'i' to 'n_elements'.
734 2011-02-19 Jakub Jelinek <jakub@redhat.com>
737 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
739 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
741 * c.opt (fobjc-abi-version=) New.
742 (fobjc-nilcheck): New.
744 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
747 * c-common.h (keyword_is_decl_specifier): Declare.
748 * c-common.c (keyword_is_decl_specifier): Define.
749 (keyword_is_function_specifier): New function.
751 2011-01-26 Jakub Jelinek <jakub@redhat.com>
754 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
755 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
758 2011-01-26 Arnaud Charlet <charlet@adacore.com>
760 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
762 2011-01-26 Jakub Jelinek <jakub@redhat.com>
765 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
766 after init_c_lex if pch_file is set.
768 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
771 * c.opt (-fkeep-inline-dllexport): New switch.
773 2011-01-12 Richard Guenther <rguenther@suse.de>
776 * c-common.c (handle_weak_attribute): Warn instead of error
777 on declaring an inline function weak.
779 2011-01-05 Tom Tromey <tromey@redhat.com>
781 * c-common.h (lvalue_error): Update.
782 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
785 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
788 * c-objc.h (objc_finish_message_expr): Added argument to
791 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
793 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
796 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
798 * c-objc.h (objc_maybe_warn_exceptions): New.
799 * stub-objc.c (objc_maybe_warn_exceptions): New.
801 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
803 * c-common.h (readonly_error): Declare.
804 * c-common.c (readonly_error): Define.
806 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
808 * c-common.h (invalid_indirection_error): Declare.
809 * c-common.c (invalid_indirection_error): Define.
811 2010-12-03 Richard Guenther <rguenther@suse.de>
814 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
815 (pp_c_unary_expression): Likewise.
816 (pp_c_expression): Likewise.
818 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
820 * c-common.h (objc_finish_function): New.
821 (objc_non_volatilized_type): Removed.
822 (objc_type_quals_match): Removed.
823 * stub-objc.c (objc_finish_function): New.
824 (objc_non_volatilized_type): Removed.
825 (objc_type_quals_match): Removed.
827 2010-11-30 Joseph Myers <joseph@codesourcery.com>
829 * c-common.h (parse_optimize_options): Declare.
830 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
831 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
833 2010-11-29 Joseph Myers <joseph@codesourcery.com>
835 * c-opts.c (check_deps_environment_vars): Use getenv instead of
837 * c-pch.c (O_BINARY): Don't define here.
838 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
840 2010-11-25 Joseph Myers <joseph@codesourcery.com>
842 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
843 targetm.except_unwind_info.
845 2010-11-23 Joseph Myers <joseph@codesourcery.com>
847 * c-opts.c (c_common_handle_option): Pass location to
848 set_struct_debug_option.
850 2010-11-23 Joseph Myers <joseph@codesourcery.com>
852 * c-common.c (visibility_options): Move from ../opts.c.
853 * c-common.h (struct visibility_flags, visibility_options):
855 * c-opts.c (finish_options): Rename to c_finish_options.
856 (c_common_init): Update call to finish_options.
858 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
861 * c-lex.c (lex_string): Check that each string in an Objective-C
862 string concat sequence starts with either one or zero '@', and
863 that there are no spurious '@' signs at the end.
865 2010-11-20 Joseph Myers <joseph@codesourcery.com>
867 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
868 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
869 HANDLE_PRAGMA_VISIBILITY.
870 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
871 HANDLE_PRAGMA_VISIBILITY): Don't define.
872 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
874 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
879 * c-common.h (keyword_begins_type_specifier): Declare.
880 (keyword_is_storage_class_specifier): Declare.
881 (keyword_is_type_qualifier): Declare.
882 * c-common.c (keyword_begins_type_specifier): New function.
883 (keyword_is_storage_class_specifier): New function.
884 (keyword_is_type_qualifier): Declare.
886 2010-11-19 Joseph Myers <joseph@codesourcery.com>
889 * c-common.c (in_late_binary_op): Define.
890 (c_common_truthvalue_conversion): Check in_late_binary_op before
892 * c-common.h (in_late_binary_op): Declare.
894 2010-11-19 Joseph Myers <joseph@codesourcery.com>
896 * c-opts.c (c_common_handle_option): Update calls to
897 set_struct_debug_option.
899 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
901 * c-common.h (objc_declare_protocols): Added additional argument.
902 * stub-objc.c (objc_declare_protocol): Same change.
904 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
907 * c-common.h (build_real_imag_expr): Declare.
908 * c-semantics.c (build_real_imag_expr): Define.
910 2010-11-17 Joseph Myers <joseph@codesourcery.com>
912 * c-opts.c (c_common_parse_file): Take no arguments.
913 * c-common.h (c_common_parse_file): Update prototype.
915 2010-11-16 Jakub Jelinek <jakub@redhat.com>
918 * c-common.c (warning_candidate_p): Don't track non-const calls
921 2010-11-15 Ian Lance Taylor <iant@google.com>
923 * c-lex.c (init_c_lex): Set macro debug callbacks if
924 flag_dump_go_spec is set.
926 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
928 * c-common.h (objc_build_incr_expr_for_property_ref): New.
929 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
931 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
933 PR preprocessor/45038
934 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
937 2010-11-12 Joseph Myers <joseph@codesourcery.com>
939 * c-common.h (c_family_lang_mask): Declare.
940 * c-opts.c (c_family_lang_mask): Make extern.
941 * c-pragma.c (handle_pragma_diagnostic): Use
942 control_warning_option.
944 2010-11-12 Joseph Myers <joseph@codesourcery.com>
946 * c-common.c (parse_optimize_options): Update call to
948 * c-common.h (c_common_handle_option): Update prototype.
949 * c-opts.c (c_common_handle_option): Take location_t parameter and
950 pass it to other functions.
952 2010-11-11 Joseph Myers <joseph@codesourcery.com>
954 * c-opts.c (warning_as_error_callback): Remove.
955 (c_common_initialize_diagnostics): Don't call
956 register_warning_as_error_callback.
957 (c_common_handle_option): Handle -Werror=normalized= here.
959 2010-11-10 Joseph Myers <joseph@codesourcery.com>
961 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
963 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
965 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
966 Remove trailing '.' from diagnostics.
967 * c.opt (Wwrite-strings_: Avoid '`' in help text.
969 2010-11-10 Joseph Myers <joseph@codesourcery.com>
971 * c-common.c (parse_optimize_options): Pass global_dc to
973 * c-opts.c (c_common_handle_option): Pass &global_options to
974 set_Wstrict_aliasing.
975 * c.opt (v): Don't mark Common or document here.
977 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
980 * c-format.c (format_type): New type gcc_objc_string_format_type.
981 (valid_stringptr_type_p): New.
982 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
983 (check_format_string): Pass expected type, use
984 valid_stringptr_type_p (), check that the format string types are
985 consistent with the format specification.
986 (decode_format_attr): Warn if NSString is used outside objective-c.
987 (format_types_orig): Add NSString.
990 (check_format_arg): Handle format strings requiring an external parser.
991 first_target_format_type: New variable.
992 (handle_format_attribute): Set up first_target_format_type, pass the
993 expected format arg string type to check_format_string().
994 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
995 * stub-objc.c (objc_string_ref_type_p): New.
996 (objc_check_format_arg): New.
998 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1000 Fixed using the Objective-C 2.0 dot-syntax with class names.
1001 * c-common.h (objc_build_class_component_ref): New.
1002 * stub-objc.c (objc_build_class_component_ref): New.
1004 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1006 * c.opt (Wproperty-assign-default): New option.
1008 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1010 Implemented -fobjc-std=objc1 flag.
1011 * c.opt (fobjc-std=objc1): New option.
1013 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1015 Implemented format and noreturn attributes for Objective-C methods.
1016 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1017 attribute for Objective-C methods.
1019 2010-10-31 Jason Merrill <jason@redhat.com>
1021 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1024 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1026 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1027 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1028 (objc_add_property_declaration): Removed arguments for copies and
1030 (objc_build_getter_call): Renamed to
1031 objc_maybe_build_component_ref.
1032 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1033 (objc_is_property_ref): New.
1034 * c-common.c (c_common_reswords): Removed copies and ivar.
1035 * stub-objc.c (objc_add_property_declaration): Removed arguments
1036 for copies and ivar.
1037 (objc_build_getter_call): Renamed to
1038 objc_maybe_build_component_ref.
1039 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1040 (objc_is_property_ref): New.
1042 2010-10-29 Arnaud Charlet <charlet@adacore.com>
1043 Matthew Gingell <gingell@adacore.com>
1045 * c-ada-spec.c (separate_class_package): New function.
1046 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1047 name of their enclosing package.
1048 (print_ada_declaration): Use separate_class_package.
1050 2010-10-27 Jason Merrill <jason@redhat.com>
1052 * c-common.c (c_common_reswords): Add __is_literal_type.
1053 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1055 * c-common.c (check_case_value): Remove special C++ code.
1057 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1059 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1060 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1062 (objc_add_property_declaration): Added additional arguments.
1063 (objc_property_attribute_kind): Removed.
1064 (objc_set_property_attr): Removed.
1065 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1067 * stub-objc.c (objc_add_property_declaration): Added additional
1069 (objc_set_property_attr): Removed.
1071 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1073 * c-common.h (objc_add_property_variable): Renamed to
1074 objc_add_property_declaration. Added location argument.
1075 * stub-objc.c (objc_add_property_variable): Same change.
1077 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1079 * c-common.h (objc_maybe_printable_name): New.
1080 * stub-objc.c (objc_maybe_printable_name): New.
1082 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1083 Andrew Pinski <pinskia@gmail.com>
1085 * c-common.h (c_common_mark_addressable_vec): Declare.
1086 * c-common.c (c_common_mark_addressable_vec): New function.
1088 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1090 * c-common.h (objc_set_method_type): Removed.
1091 (objc_add_method_declaration): Added boolean argument.
1092 (objc_start_method_definition): Same change.
1093 (objc_build_method_signature): Same change.
1094 * stub-objc.c (objc_set_method_type): Removed.
1095 (objc_add_method_declaration): Added boolean argument.
1096 (objc_start_method_definition): Same change.
1097 (objc_build_method_signature): Same change.
1099 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1101 * c-common.h (finish_file): Removed.
1102 (objc_write_global_declarations): New.
1103 * c-opts.c (c_common_parse_file): Do not call finish_file.
1104 * stub-objc.c (objc_write_global_declarations): New.
1106 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1108 Implemented parsing @synthesize and @dynamic for
1109 Objective-C/Objective-C++.
1110 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1111 (objc_add_synthesize_declaration): New.
1112 (objc_add_dynamic_declaration): New.
1113 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1114 * stub-objc.c (objc_add_synthesize_declaration): New.
1115 (objc_add_dynamic_declaration): New.
1117 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1120 * c-cppbuiltin.c (mode_has_fma): Move function here from
1121 builtins.c. Don't use the fma optab, instead just use the
1122 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1125 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1127 Merge from 'apple/trunk' branch on FSF servers.
1129 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1132 * c-common.h (objc_non_volatilized_type): New declaration
1133 * stub-objc.c (objc_non_volatilized_type): New stub.
1135 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1137 Merge from 'apple/trunk' branch on FSF servers.
1139 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1142 * c-common.h (objc_diagnose_private_ivar): New decl.
1143 * stub-objc.c (objc_diagnose_private_ivar): New stub.
1145 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1147 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1148 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1149 (objc_ivar_visibility_kind): New enum.
1150 (objc_set_visibility): Adjust prototype to use visibility enum.
1151 * stub-objc.c (objc_set_visibility): Adjust stub to use
1154 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1156 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1157 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1158 has the appropriate fma builtins.
1159 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1161 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1163 merge from FSF apple 'trunk' branch.
1164 2006 Fariborz Jahanian <fjahanian@apple.com>
1166 Radars 4436866, 4505126, 4506903, 4517826
1167 * c-common.c (c_common_resword): Define @property and its attributes.
1168 * c-common.h: Define property attribute enum entries.
1169 (OBJC_IS_PATTR_KEYWORD): New.
1170 (objc_property_attribute_kind): New enum.
1171 Declare objc_set_property_attr (), objc_add_property_variable (),
1172 objc_build_getter_call () and objc_build_setter_call ().
1173 * stub-objc.c (objc_set_property_attr): New stub.
1174 (objc_add_property_variable): Likewise.
1175 (objc_build_getter_call): Likewise.
1176 (objc_build_setter_call) Likewise.
1178 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1180 merge from FSF apple 'trunk' branch.
1181 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1183 Radar 3803157 (method attributes)
1184 * c-common.c (handle_deprecated_attribute): Recognize
1185 objc methods as valid declarations.
1186 * c-common.h: Declare objc_method_decl ().
1187 * stub-objc.c (objc_method_decl): New stub.
1189 2010-10-08 Joseph Myers <joseph@codesourcery.com>
1191 * c-common.c (parse_optimize_options): Call
1192 decode_cmdline_options_to_array_default_mask before
1193 decode_options. Update arguments to decode_options.
1194 * c-common.h (c_common_init_options_struct): Declare.
1195 * c-opts.c (c_common_init_options_struct): New. Split out from
1196 c_common_init_options.
1198 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1200 Implemented fast enumeration for Objective-C.
1201 * c-common.h (objc_finish_foreach_loop): New.
1202 * stub-objc.c (objc_finish_foreach_loop): New.
1204 2010-10-05 Joseph Myers <joseph@codesourcery.com>
1206 * c-common.h (struct diagnostic_context): Don't declare here.
1207 (c_common_initialize_diagnostics): Declare using
1208 diagnostic_context typedef.
1209 * c-opts.c (c_common_handle_option): Pass global_dc to
1210 handle_generated_option.
1212 2010-10-04 Joseph Myers <joseph@codesourcery.com>
1214 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1215 handle_generated_option.
1217 2010-10-03 Ian Lance Taylor <iant@google.com>
1219 * c.opt (-fplan9-extensions): New option.
1221 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1223 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1225 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1226 of duplicating code.
1228 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1230 * c-common.c: Add two new entries for @optional
1231 and @required keywords.
1233 merge from FSF 'apple/trunk' branch.
1234 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1237 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1238 objective-c keywords.
1239 (objc_set_method_opt): New declaration.
1240 * stub-objc.c (objc_set_method_opt): New stub.
1242 2010-09-30 Joseph Myers <joseph@codesourcery.com>
1244 * c-common.c (handle_optimize_attribute): Pass &global_options to
1245 cl_optimization_save and cl_optimization_restore.
1246 * c-opts.c (c_common_handle_option): Pass &global_options to
1247 handle_generated_option.
1248 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1249 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1250 &global_options to cl_optimization_restore.
1252 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1254 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1255 Objective-C/Objective-C++ keywords.
1257 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1259 Merge from 'apple/trunk' branch on FSF servers.
1261 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1264 * c-common.h (objc_check_global_decl): New declaration.
1265 * stub-objc.c (objc_check_global_decl): New stub.
1267 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1269 * c.opt: Don't use VarExists.
1271 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1273 * c-common.c (c_cpp_error): Update names of diagnostic_context
1275 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1276 cl_optimization members.
1277 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1278 sanitize_cpp_opts, finish_options): Update names of cpp_options
1281 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1283 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1284 (objc_is_reserved_word): Removed.
1285 * c-common.c: Updated comments.
1286 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1287 objc_is_reserved_word.
1288 * stub-objc.c (objc_is_reserved_word): Removed.
1290 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1292 * c-common.h (objc_add_method_declaration): Adjust prototype to
1294 (objc_start_method_definition): Likewise.
1295 (objc_build_keyword_decl): Likewise.
1296 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1297 (objc_start_method_definition): Likewise.
1298 (objc_build_keyword_decl): Likewise.
1300 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1302 * c-common.h (objc_start_class_interface): Adjust prototype.
1303 (objc_start_category_interface): Likewise.
1304 (objc_start_protocol): Likewise.
1305 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1306 (objc_start_class_interface): Likewise.
1307 (objc_start_category_interface): Likewise.
1309 2010-09-27 Ian Lance Taylor <iant@google.com>
1311 * c-common.c (c_common_attribute_table): Add no_split_stack.
1312 (handle_no_split_stack_attribute): New static function.
1314 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1316 Merge from 'apple/trunk' branch on FSF servers.
1318 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1321 * c-common.h (objc_have_common_type): New declaration.
1322 * stub-objc.c (objc_have_common_type): New stub.
1324 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1327 * c-common.h (objc_common_type): New prototype.
1328 * stub-objc.c (objc_common_type): New stub.
1330 2010-09-24 Jan Hubicka <jh@suse.cz>
1332 * c-common.c (handle_leaf_attribute): New function.
1333 (struct attribute_spec c_common_att): Add leaf.
1335 2010-09-22 Joseph Myers <joseph@codesourcery.com>
1337 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1338 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1339 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1340 -include-barrier, -include-directory, -include-directory=,
1341 -include-directory-after, -include-directory-after=,
1342 -include-prefix, -include-prefix=, -include-with-prefix,
1343 -include-with-prefix=, -include-with-prefix-after,
1344 -include-with-prefix-after=, -include-with-prefix-before,
1345 -include-with-prefix-before=, -no-integrated-cpp,
1346 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1347 -output=, -pedantic, -pedantic-errors, -preprocess,
1348 -print-missing-file-dependencies, -trace-includes, -traditional,
1349 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1350 -user-dependencies, -verbose, -write-dependencies,
1351 -write-user-dependencies, no-integrated-cpp, traditional): New.
1353 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1356 * c-common.h (objc_start_method_definition): Return bool instead
1358 * stub-objc.c (objc_start_method_definition): Return bool instead
1361 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1364 * c-common.h (objc_get_interface_ivars): New declaration.
1365 * stub-objc.c (objc_get_interface_ivars): New stub.
1367 2010-09-15 Ian Lance Taylor <iant@google.com>
1369 * c-common.c (parse_optimize_options): Do not capitalize warning
1370 messages. Remove period at end of warning message.
1372 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1374 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1375 (handle_alias_attribute): ... here.
1376 (handle_ifunc_attribute): New.
1378 2010-09-06 Mark Mitchell <mark@codesourcery.com>
1380 * c-common.h (do_warn_double_promotion): Declare.
1381 * c-common.c (do_warn_double_promotion): Define.
1383 2010-09-05 Mark Mitchell <mark@codesourcery.com>
1385 * c.opt (Wdouble-promotion): New.
1387 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1389 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1390 fvtable-thunks, fxref): Mark no longer supported in help text.
1392 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1394 * c.opt (Wimport, fall-virtual, falt-external-templates,
1395 fdefault-inline, fenum-int-equiv, fexternal-templates,
1396 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1397 fname-mangling-version-, fnew-abi, fnonnull-objects,
1398 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1399 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1401 (fhandle-exceptions): Mark with Alias and Warn.
1402 * c-opts.c (c_common_handle_option): Don't handle options marked
1405 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1407 * c.opt (Wcomments, Werror-implicit-function-declaration,
1408 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1409 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1411 * c-common.c (option_codes): Use OPT_Wcomment instead of
1413 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1414 Don't handle options marked as aliases.
1416 2010-08-25 Richard Guenther <rguenther@suse.de>
1418 * c-common.c (c_common_get_alias_set): Remove special
1419 handling for pointers.
1421 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1423 * c-common.c: Use FOR_EACH_VEC_ELT.
1424 * c-gimplify.c: Likewise.
1425 * c-pragma.c: Likewise.
1427 2010-08-16 Joseph Myers <joseph@codesourcery.com>
1429 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1431 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1433 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1434 instead of OPT_MDX and OPT_MMDX.
1436 2010-08-16 Joseph Myers <joseph@codesourcery.com>
1438 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1440 2010-08-12 Joseph Myers <joseph@codesourcery.com>
1442 * c.opt (MD, MMD): Change to MDX and MMDX.
1443 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1445 2010-08-11 Joseph Myers <joseph@codesourcery.com>
1447 * c-opts.c (c_common_handle_option): Call handle_generated_option
1448 instead of handle_option.
1450 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1452 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1453 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1455 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1457 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1458 (pending_redefine_extname): Change type to a VEC.
1459 (add_to_renaming_pragma_list): Update for new type of
1460 pending_redefine_extname.
1461 (maybe_apply_renaming_pragma): Likewise.
1463 2010-08-04 Arnaud Charlet <charlet@adacore.com>
1465 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1467 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1468 decide whether a type has already been declared/seen.
1469 Do not go to the original type.
1470 (dump_nested_types): New parameter forward.
1471 Generate forward declaration if needed and mark type as visited.
1472 (print_ada_declaration): Call dump_nested_types if not already done.
1473 Mark types as visited.
1475 2010-08-03 Joseph Myers <joseph@codesourcery.com>
1477 * c.opt (-print-pch-checksum): Remove option.
1478 * c-opts.c (c_common_handle_option): Don't handle
1479 OPT_print_pch_checksum.
1481 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1483 * c-common.h (c_common_handle_option): Update prototype and return
1485 * c-opts.c (c_common_handle_option): Update prototype and return
1486 value type. Update calls to handle_option and
1487 enable_warning_as_error.
1489 2010-07-27 Jakub Jelinek <jakub@redhat.com>
1492 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1494 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1496 * c-common.h (c_common_missing_argument): Remove.
1497 * c-opts.c (c_common_missing_argument): Remove.
1498 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1499 idirafter, imacros, include, isysroot, isystem, iquote): Add
1501 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1503 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1505 * c-common.h (c_common_option_lang_mask,
1506 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1508 (c_common_init_options): Update prototype.
1509 * c-opts.c (c_common_option_lang_mask): New.
1510 (c_common_initialize_diagnostics): Split out of
1511 c_common_init_options.
1512 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1514 (c_common_init_options): Update prototype. Use decoded options in
1515 search for -lang-asm.
1517 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1519 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1520 * c-format.c: Likewise.
1522 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1524 * c-common.h: Include diagnostic-core.h. Error if already
1526 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1528 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1530 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1531 Do not include expr.h
1532 (vector_mode_valid_p): Move here.
1534 2010-06-21 DJ Delorie <dj@redhat.com>
1536 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1537 allow these pragmas anywhere.
1539 2010-06-14 Jakub Jelinek <jakub@redhat.com>
1542 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1543 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1544 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1545 ggc_strdup instead of xstrdup.
1547 2010-06-10 Jakub Jelinek <jakub@redhat.com>
1549 * c-cppbuiltin.c: Include cpp-id-data.h.
1550 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1551 (lazy_hex_fp_value): New function.
1552 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1554 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1556 * c-gimplify.c: Do not include tree-flow.h
1558 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1561 * c-common.c: Rename targetm member:
1562 targetm.enum_va_list -> targetm.enum_va_list_p
1564 2010-06-28 Anatoly Sokolov <aesok@post.ru>
1566 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1568 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1570 * c-cppbuiltin.c: Do not include except.h.
1572 2010-06-24 Andi Kleen <ak@linux.intel.com>
1574 * c-common.c (warn_for_omitted_condop): New.
1575 * c-common.h (warn_for_omitted_condop): Add prototype.
1577 2010-06-21 Joseph Myers <joseph@codesourcery.com>
1579 * c.opt (lang-objc): Remove.
1580 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1582 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1584 * c-opts.c: Include "tm_p.h".
1586 2010-06-20 Joseph Myers <joseph@codesourcery.com>
1588 * c-common.c (parse_optimize_options): Update call to
1591 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1593 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1594 new type of types_used_by_cur_var_decl.
1596 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1599 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1600 for C++ standard compliance.
1602 2010-06-16 Jason Merrill <jason@redhat.com>
1604 * c.opt: Add -Wnoexcept.
1606 2010-06-16 Richard Guenther <rguenther@suse.de>
1609 * c-common.c (c_common_truthvalue_conversion): Remove
1610 premature and wrong optimization concering ADDR_EXPRs.
1612 2010-06-15 Arnaud Charlet <charlet@adacore.com>
1614 * c-ada-spec.c (dump_sloc): Remove column info.
1615 (is_simple_enum): New function.
1616 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1617 enum types when relevant.
1619 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1621 * c-common.c (conversion_warning): Warn at expression
1624 2010-06-10 Joseph Myers <joseph@codesourcery.com>
1626 * c-opts.c (c_common_handle_option): Don't handle
1629 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1631 * c-pragma.c (push_alignment): Use typed GC allocation.
1632 (handle_pragma_push_options): Likewise.
1634 * c-common.c (parse_optimize_options): Likewise.
1636 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1639 2010-06-07 Joseph Myers <joseph@codesourcery.com>
1641 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1642 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1643 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1644 flag_signed_bitfields, warn_strict_null_sentinel,
1645 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1646 flag_gen_declaration, flag_no_gnu_keywords,
1647 flag_implement_inlines, flag_implicit_templates,
1648 flag_implicit_inline_templates, flag_optional_diags,
1649 flag_elide_constructors, flag_default_inline, flag_rtti,
1650 flag_conserve_space, flag_access_control, flag_check_new,
1651 flag_new_for_scope, flag_weak, flag_working_directory,
1652 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1653 flag_enforce_eh_specs, flag_threadsafe_statics,
1654 flag_pretty_templates): Remove.
1655 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1656 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1657 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1658 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1659 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1660 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1661 flag_no_gnu_keywords, flag_implement_inlines,
1662 flag_implicit_templates, flag_implicit_inline_templates,
1663 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1664 flag_rtti, flag_conserve_space, flag_access_control,
1665 flag_check_new, flag_new_for_scope, flag_weak,
1666 flag_working_directory, flag_use_cxa_atexit,
1667 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1668 flag_threadsafe_statics, flag_pretty_templates,
1669 warn_strict_null_sentinel): Remove.
1670 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1671 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1672 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1673 fimplicit-inline-templates, fimplicit-templates,
1674 flax-vector-conversions, fms-extensions, fnil-receivers,
1675 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1676 frtti, fshort-double, fshort-enums, fshort-wchar,
1677 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1678 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1679 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1680 gen-decls, undef): Use Var.
1681 (fdefault-inline, foptional-diags): Document as doing nothing.
1682 * c-opts.c (c_common_handle_option): Remove cases for options now
1683 using Var. Mark ignored options as such.
1685 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1687 * c-common.c: Moved to here from parent directory.
1688 * c-common.def: Likewise.
1689 * c-common.h: Likewise.
1690 * c-cppbuiltin.c: Likewise.
1691 * c-dump.c: Likewise.
1692 * c-format.c: Likewise.
1693 * c-format.h : Likewise.
1694 * c-gimplify.c: Likewise.
1695 * c-lex.c: Likewise.
1696 * c-omp.c: Likewise.
1698 * c-opts.c: Likewise.
1699 * c-pch.c: Likewise.
1700 * c-ppoutput.c: Likewise.
1701 * c-pragma.c: Likewise.
1702 * c-pragma.h: Likewise.
1703 * c-pretty-print.c: Likewise.
1704 * c-pretty-print.h: Likewise.
1705 * c-semantics.c: Likewise.
1706 * stub-objc.c: Likewise.
1708 * c-common.c: Include gt-c-family-c-common.h.
1709 * c-pragma.c: Include gt-c-family-c-pragma.h.
1711 Copyright (C) 2010, 2011 Free Software Foundation, Inc.
1713 Copying and distribution of this file, with or without modification,
1714 are permitted in any medium without royalty provided the copyright
1715 notice and this notice are preserved.