1 2011-05-25 Jakub Jelinek <jakub@redhat.com>
3 * c-common.c (def_fn_type): Remove extra va_end.
5 2011-05-23 Jason Merrill <jason@redhat.com>
8 * c-common.c (c_common_get_narrower): New.
9 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
11 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
13 * c-common.h (check_function_arguments): Tweak prototype of
14 check_function_arguments.
15 * c-common.c (check_function_arguments): Likewise. Adjust
16 calls to check_function_nonnull, check_function_format, and
17 check_function_sentinel.
18 (check_function_sentinel): Take a FUNCTION_TYPE rather than
19 separate attributes and typelist arguments. Use
20 FOREACH_FUNCTION_ARGS to iterate over argument types.
22 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
24 * c-common.c (c_common_reswords): Reorder.
25 * c-common.h (rid): Likewise.
27 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
29 * c-common.c (def_fn_type): Don't call build_function_type, call
30 build_function_type_array or build_varargs_function_type_array
32 (c_common_nodes_and_builtins): Likewise.
34 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
36 * c-common.c (c_add_case_label): Omit the loc argument to
38 * c-common.h (build_case_label): Remove.
39 * c-semantics.c (build_case_label): Remove.
41 2011-05-05 Joseph Myers <joseph@codesourcery.com>
43 * c-objc.h (objc_start_method_definition): Update prototype.
44 * stub-objc.c (objc_start_method_definition): Add extra parameter.
46 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
48 * c-common.c (check_main_parameter_types): Reindent. Don't use
49 TYPE_ARG_TYPES directly.
50 (handle_nonnull_attribute): Likewise.
51 (sync_resolve_params): Likewise.
52 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
53 to check_format_string.
54 (handle_format_attribute): Likewise.
55 (check_format_string): Take a function type to examine instead of
56 a type list. Use a function_arg_iterator to step through argument
59 2011-05-04 Richard Guenther <rguenther@suse.de>
61 * c-common.c (fix_string_type): Use size_int for index type bounds.
62 (start_fname_decls): Do not pass NULL to build_int_cst.
63 (c_init_attributes): Likewise.
64 * c-lex.c (c_lex_with_flags): Likewise.
66 2011-04-27 Jason Merrill <jason@redhat.com>
68 * c-common.c (make_tree_vector_from_list): New.
69 * c-common.h: Declare it.
71 2011-04-26 Richard Guenther <rguenther@suse.de>
74 * c-ppoutput.c (maybe_print_line): Always optimize newlines
75 for output size with -P.
77 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
79 * c-common.c (struct c_common_resword): Add __underlying_type.
80 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
82 2011-04-20 Jim Meyering <meyering@redhat.com>
84 * c-format.c (init_dollar_format_checking): Remove useless
87 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
89 * c-objc.h (objc_get_interface_ivars): Removed.
90 (objc_detect_field_duplicates): New.
91 * stub-objc.c: Likewise.
93 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
95 * stub-objc.c (objc_declare_protocols): Renamed to
96 objc_declare_protocol.
99 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
101 * stub-objc.c (objc_declare_class): Updated argument name.
103 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
105 * c-common.h (c_common_init_ts): Declare.
106 * c-common.c (c_common_init_ts): Define.
108 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
110 * c-objc.h (objc_build_message_expr): Updated prototype.
111 * stub-objc.c (objc_build_message_expr): Likewise.
113 2011-04-12 Martin Jambor <mjambor@suse.cz>
115 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
118 2011-04-11 Richard Guenther <rguenther@suse.de>
120 * c-common.c (complete_array_type): Build a range type of
123 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
125 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
126 (handle_type_generic_attribute): Likewise.
128 2011-04-07 Jason Merrill <jason@redhat.com>
131 * c-common.c (c_common_truthvalue_conversion): Don't ignore
132 conversion from C++0x scoped enum.
134 2011-04-06 Joseph Myers <joseph@codesourcery.com>
136 * c-target-def.h: New file.
137 * c-target.def: New file.
138 * c-target.h: New file.
139 * c-common.c (targetcm): Don't define here.
140 * c-common.h (default_handle_c_option): Declare.
141 * c-format.c: Include c-target.h instead of target.h.
142 * c-opts.c: Include c-target.h instead of target.h. Explicitly
144 (default_handle_c_option): Move from targhooks.c.
146 2011-03-29 Jakub Jelinek <jakub@redhat.com>
148 PR preprocessor/48248
149 * c-ppoutput.c (print): Add src_file field.
150 (init_pp_output): Initialize it.
151 (maybe_print_line): Don't optimize by adding up to 8 newlines
152 if map->to_file and print.src_file are different file.
153 (print_line): Update print.src_file.
155 2011-03-25 Kai Tietz <ktietz@redhat.com>
157 * c-ada-spec.c (compare_comment): Use filename_cmp
158 instead of strcmp for filename.
160 2011-03-25 Jeff Law <law@redhat.com>
162 * c-family/c-common.c (def_fn_type): Add missing va_end.
164 2011-03-25 Jason Merrill <jason@redhat.com>
166 * c.opt: Add -std=c++03.
168 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
170 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
175 * c-pretty-print.c (pp_c_specifier_qualifier_list):
176 Display allowed attributes for function pointer types.
177 (pp_c_attributes_display): New function to display
178 attributes having affects_type_identity flag set to true.
179 * c-pretty-print.h (pp_c_attributes_display): New prototype.
181 * c-common.c (c_common_attribute_table):
183 (c_common_format_attribute_table): Likewise.
185 2011-03-18 Jason Merrill <jason@redhat.com>
187 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
188 * c-common.h: Don't declare it here.
189 * c-common.c: Or define it here.
190 * c-opts.c (c_common_handle_option): Or set it here.
193 * c-common.c (handle_transparent_union_attribute): Don't
194 make a duplicate type in C++.
196 2011-03-15 Jason Merrill <jason@redhat.com>
198 * c-common.c (max_constexpr_depth): New.
199 * c-common.h: Declare it.
200 * c-opts.c (c_common_handle_option): Set it.
201 * c.opt (fconstexpr-depth): New option.
203 2011-03-11 Jason Merrill <jason@redhat.com>
205 * c-common.c (attribute_takes_identifier_p): Add missing const.
208 * c-common.c (attribute_takes_identifier_p): Assume that an
209 unknown attribute takes an identifier.
211 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
214 * c-common.c (c_type_hash): Call list_length instead of iterating
215 through DECL_CHAIN. Rename 'i' to 'n_elements'.
217 2011-02-19 Jakub Jelinek <jakub@redhat.com>
220 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
222 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
224 * c.opt (fobjc-abi-version=) New.
225 (fobjc-nilcheck): New.
227 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
230 * c-common.h (keyword_is_decl_specifier): Declare.
231 * c-common.c (keyword_is_decl_specifier): Define.
232 (keyword_is_function_specifier): New function.
234 2011-01-26 Jakub Jelinek <jakub@redhat.com>
237 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
238 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
241 2011-01-26 Arnaud Charlet <charlet@adacore.com>
243 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
245 2011-01-26 Jakub Jelinek <jakub@redhat.com>
248 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
249 after init_c_lex if pch_file is set.
251 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
254 * c.opt (-fkeep-inline-dllexport): New switch.
256 2011-01-12 Richard Guenther <rguenther@suse.de>
259 * c-common.c (handle_weak_attribute): Warn instead of error
260 on declaring an inline function weak.
262 2011-01-05 Tom Tromey <tromey@redhat.com>
264 * c-common.h (lvalue_error): Update.
265 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
268 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
271 * c-objc.h (objc_finish_message_expr): Added argument to
274 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
276 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
279 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
281 * c-objc.h (objc_maybe_warn_exceptions): New.
282 * stub-objc.c (objc_maybe_warn_exceptions): New.
284 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
286 * c-common.h (readonly_error): Declare.
287 * c-common.c (readonly_error): Define.
289 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
291 * c-common.h (invalid_indirection_error): Declare.
292 * c-common.c (invalid_indirection_error): Define.
294 2010-12-03 Richard Guenther <rguenther@suse.de>
297 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
298 (pp_c_unary_expression): Likewise.
299 (pp_c_expression): Likewise.
301 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
303 * c-common.h (objc_finish_function): New.
304 (objc_non_volatilized_type): Removed.
305 (objc_type_quals_match): Removed.
306 * stub-objc.c (objc_finish_function): New.
307 (objc_non_volatilized_type): Removed.
308 (objc_type_quals_match): Removed.
310 2010-11-30 Joseph Myers <joseph@codesourcery.com>
312 * c-common.h (parse_optimize_options): Declare.
313 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
314 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
316 2010-11-29 Joseph Myers <joseph@codesourcery.com>
318 * c-opts.c (check_deps_environment_vars): Use getenv instead of
320 * c-pch.c (O_BINARY): Don't define here.
321 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
323 2010-11-25 Joseph Myers <joseph@codesourcery.com>
325 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
326 targetm.except_unwind_info.
328 2010-11-23 Joseph Myers <joseph@codesourcery.com>
330 * c-opts.c (c_common_handle_option): Pass location to
331 set_struct_debug_option.
333 2010-11-23 Joseph Myers <joseph@codesourcery.com>
335 * c-common.c (visibility_options): Move from ../opts.c.
336 * c-common.h (struct visibility_flags, visibility_options):
338 * c-opts.c (finish_options): Rename to c_finish_options.
339 (c_common_init): Update call to finish_options.
341 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
344 * c-lex.c (lex_string): Check that each string in an Objective-C
345 string concat sequence starts with either one or zero '@', and
346 that there are no spurious '@' signs at the end.
348 2010-11-20 Joseph Myers <joseph@codesourcery.com>
350 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
351 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
352 HANDLE_PRAGMA_VISIBILITY.
353 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
354 HANDLE_PRAGMA_VISIBILITY): Don't define.
355 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
357 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
362 * c-common.h (keyword_begins_type_specifier): Declare.
363 (keyword_is_storage_class_specifier): Declare.
364 (keyword_is_type_qualifier): Declare.
365 * c-common.c (keyword_begins_type_specifier): New function.
366 (keyword_is_storage_class_specifier): New function.
367 (keyword_is_type_qualifier): Declare.
369 2010-11-19 Joseph Myers <joseph@codesourcery.com>
372 * c-common.c (in_late_binary_op): Define.
373 (c_common_truthvalue_conversion): Check in_late_binary_op before
375 * c-common.h (in_late_binary_op): Declare.
377 2010-11-19 Joseph Myers <joseph@codesourcery.com>
379 * c-opts.c (c_common_handle_option): Update calls to
380 set_struct_debug_option.
382 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
384 * c-common.h (objc_declare_protocols): Added additional argument.
385 * stub-objc.c (objc_declare_protocol): Same change.
387 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
390 * c-common.h (build_real_imag_expr): Declare.
391 * c-semantics.c (build_real_imag_expr): Define.
393 2010-11-17 Joseph Myers <joseph@codesourcery.com>
395 * c-opts.c (c_common_parse_file): Take no arguments.
396 * c-common.h (c_common_parse_file): Update prototype.
398 2010-11-16 Jakub Jelinek <jakub@redhat.com>
401 * c-common.c (warning_candidate_p): Don't track non-const calls
404 2010-11-15 Ian Lance Taylor <iant@google.com>
406 * c-lex.c (init_c_lex): Set macro debug callbacks if
407 flag_dump_go_spec is set.
409 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
411 * c-common.h (objc_build_incr_expr_for_property_ref): New.
412 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
414 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
416 PR preprocessor/45038
417 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
420 2010-11-12 Joseph Myers <joseph@codesourcery.com>
422 * c-common.h (c_family_lang_mask): Declare.
423 * c-opts.c (c_family_lang_mask): Make extern.
424 * c-pragma.c (handle_pragma_diagnostic): Use
425 control_warning_option.
427 2010-11-12 Joseph Myers <joseph@codesourcery.com>
429 * c-common.c (parse_optimize_options): Update call to
431 * c-common.h (c_common_handle_option): Update prototype.
432 * c-opts.c (c_common_handle_option): Take location_t parameter and
433 pass it to other functions.
435 2010-11-11 Joseph Myers <joseph@codesourcery.com>
437 * c-opts.c (warning_as_error_callback): Remove.
438 (c_common_initialize_diagnostics): Don't call
439 register_warning_as_error_callback.
440 (c_common_handle_option): Handle -Werror=normalized= here.
442 2010-11-10 Joseph Myers <joseph@codesourcery.com>
444 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
446 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
448 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
449 Remove trailing '.' from diagnostics.
450 * c.opt (Wwrite-strings_: Avoid '`' in help text.
452 2010-11-10 Joseph Myers <joseph@codesourcery.com>
454 * c-common.c (parse_optimize_options): Pass global_dc to
456 * c-opts.c (c_common_handle_option): Pass &global_options to
457 set_Wstrict_aliasing.
458 * c.opt (v): Don't mark Common or document here.
460 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
463 * c-format.c (format_type): New type gcc_objc_string_format_type.
464 (valid_stringptr_type_p): New.
465 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
466 (check_format_string): Pass expected type, use
467 valid_stringptr_type_p (), check that the format string types are
468 consistent with the format specification.
469 (decode_format_attr): Warn if NSString is used outside objective-c.
470 (format_types_orig): Add NSString.
473 (check_format_arg): Handle format strings requiring an external parser.
474 first_target_format_type: New variable.
475 (handle_format_attribute): Set up first_target_format_type, pass the
476 expected format arg string type to check_format_string().
477 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
478 * stub-objc.c (objc_string_ref_type_p): New.
479 (objc_check_format_arg): New.
481 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
483 Fixed using the Objective-C 2.0 dot-syntax with class names.
484 * c-common.h (objc_build_class_component_ref): New.
485 * stub-objc.c (objc_build_class_component_ref): New.
487 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
489 * c.opt (Wproperty-assign-default): New option.
491 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
493 Implemented -fobjc-std=objc1 flag.
494 * c.opt (fobjc-std=objc1): New option.
496 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
498 Implemented format and noreturn attributes for Objective-C methods.
499 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
500 attribute for Objective-C methods.
502 2010-10-31 Jason Merrill <jason@redhat.com>
504 * c-common.c (conversion_warning, warn_for_collisions_1): Use
507 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
509 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
510 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
511 (objc_add_property_declaration): Removed arguments for copies and
513 (objc_build_getter_call): Renamed to
514 objc_maybe_build_component_ref.
515 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
516 (objc_is_property_ref): New.
517 * c-common.c (c_common_reswords): Removed copies and ivar.
518 * stub-objc.c (objc_add_property_declaration): Removed arguments
520 (objc_build_getter_call): Renamed to
521 objc_maybe_build_component_ref.
522 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
523 (objc_is_property_ref): New.
525 2010-10-29 Arnaud Charlet <charlet@adacore.com>
526 Matthew Gingell <gingell@adacore.com>
528 * c-ada-spec.c (separate_class_package): New function.
529 (pp_ada_tree_identifier): Prefix references to C++ classes with the
530 name of their enclosing package.
531 (print_ada_declaration): Use separate_class_package.
533 2010-10-27 Jason Merrill <jason@redhat.com>
535 * c-common.c (c_common_reswords): Add __is_literal_type.
536 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
538 * c-common.c (check_case_value): Remove special C++ code.
540 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
542 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
543 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
545 (objc_add_property_declaration): Added additional arguments.
546 (objc_property_attribute_kind): Removed.
547 (objc_set_property_attr): Removed.
548 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
550 * stub-objc.c (objc_add_property_declaration): Added additional
552 (objc_set_property_attr): Removed.
554 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
556 * c-common.h (objc_add_property_variable): Renamed to
557 objc_add_property_declaration. Added location argument.
558 * stub-objc.c (objc_add_property_variable): Same change.
560 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
562 * c-common.h (objc_maybe_printable_name): New.
563 * stub-objc.c (objc_maybe_printable_name): New.
565 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
566 Andrew Pinski <pinskia@gmail.com>
568 * c-common.h (c_common_mark_addressable_vec): Declare.
569 * c-common.c (c_common_mark_addressable_vec): New function.
571 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
573 * c-common.h (objc_set_method_type): Removed.
574 (objc_add_method_declaration): Added boolean argument.
575 (objc_start_method_definition): Same change.
576 (objc_build_method_signature): Same change.
577 * stub-objc.c (objc_set_method_type): Removed.
578 (objc_add_method_declaration): Added boolean argument.
579 (objc_start_method_definition): Same change.
580 (objc_build_method_signature): Same change.
582 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
584 * c-common.h (finish_file): Removed.
585 (objc_write_global_declarations): New.
586 * c-opts.c (c_common_parse_file): Do not call finish_file.
587 * stub-objc.c (objc_write_global_declarations): New.
589 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
591 Implemented parsing @synthesize and @dynamic for
592 Objective-C/Objective-C++.
593 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
594 (objc_add_synthesize_declaration): New.
595 (objc_add_dynamic_declaration): New.
596 * c-common.c (c_common_reswords): Add synthesize and dynamic.
597 * stub-objc.c (objc_add_synthesize_declaration): New.
598 (objc_add_dynamic_declaration): New.
600 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
603 * c-cppbuiltin.c (mode_has_fma): Move function here from
604 builtins.c. Don't use the fma optab, instead just use the
605 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
608 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
610 Merge from 'apple/trunk' branch on FSF servers.
612 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
615 * c-common.h (objc_non_volatilized_type): New declaration
616 * stub-objc.c (objc_non_volatilized_type): New stub.
618 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
620 Merge from 'apple/trunk' branch on FSF servers.
622 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
625 * c-common.h (objc_diagnose_private_ivar): New decl.
626 * stub-objc.c (objc_diagnose_private_ivar): New stub.
628 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
630 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
631 * c-common.h (enum rid): Add RID_AT_PACKAGE.
632 (objc_ivar_visibility_kind): New enum.
633 (objc_set_visibility): Adjust prototype to use visibility enum.
634 * stub-objc.c (objc_set_visibility): Adjust stub to use
637 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
639 * c-cppbuiltin.c (builtin_define_float_constants): Emit
640 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
641 has the appropriate fma builtins.
642 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
644 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
646 merge from FSF apple 'trunk' branch.
647 2006 Fariborz Jahanian <fjahanian@apple.com>
649 Radars 4436866, 4505126, 4506903, 4517826
650 * c-common.c (c_common_resword): Define @property and its attributes.
651 * c-common.h: Define property attribute enum entries.
652 (OBJC_IS_PATTR_KEYWORD): New.
653 (objc_property_attribute_kind): New enum.
654 Declare objc_set_property_attr (), objc_add_property_variable (),
655 objc_build_getter_call () and objc_build_setter_call ().
656 * stub-objc.c (objc_set_property_attr): New stub.
657 (objc_add_property_variable): Likewise.
658 (objc_build_getter_call): Likewise.
659 (objc_build_setter_call) Likewise.
661 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
663 merge from FSF apple 'trunk' branch.
664 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
666 Radar 3803157 (method attributes)
667 * c-common.c (handle_deprecated_attribute): Recognize
668 objc methods as valid declarations.
669 * c-common.h: Declare objc_method_decl ().
670 * stub-objc.c (objc_method_decl): New stub.
672 2010-10-08 Joseph Myers <joseph@codesourcery.com>
674 * c-common.c (parse_optimize_options): Call
675 decode_cmdline_options_to_array_default_mask before
676 decode_options. Update arguments to decode_options.
677 * c-common.h (c_common_init_options_struct): Declare.
678 * c-opts.c (c_common_init_options_struct): New. Split out from
679 c_common_init_options.
681 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
683 Implemented fast enumeration for Objective-C.
684 * c-common.h (objc_finish_foreach_loop): New.
685 * stub-objc.c (objc_finish_foreach_loop): New.
687 2010-10-05 Joseph Myers <joseph@codesourcery.com>
689 * c-common.h (struct diagnostic_context): Don't declare here.
690 (c_common_initialize_diagnostics): Declare using
691 diagnostic_context typedef.
692 * c-opts.c (c_common_handle_option): Pass global_dc to
693 handle_generated_option.
695 2010-10-04 Joseph Myers <joseph@codesourcery.com>
697 * c-opts.c (c_common_handle_option): Pass &global_options_set to
698 handle_generated_option.
700 2010-10-03 Ian Lance Taylor <iant@google.com>
702 * c.opt (-fplan9-extensions): New option.
704 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
706 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
708 (c_cpp_builtins): Call functions from cppbuiltin.c instead
711 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
713 * c-common.c: Add two new entries for @optional
714 and @required keywords.
716 merge from FSF 'apple/trunk' branch.
717 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
720 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
721 objective-c keywords.
722 (objc_set_method_opt): New declaration.
723 * stub-objc.c (objc_set_method_opt): New stub.
725 2010-09-30 Joseph Myers <joseph@codesourcery.com>
727 * c-common.c (handle_optimize_attribute): Pass &global_options to
728 cl_optimization_save and cl_optimization_restore.
729 * c-opts.c (c_common_handle_option): Pass &global_options to
730 handle_generated_option.
731 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
732 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
733 &global_options to cl_optimization_restore.
735 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
737 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
738 Objective-C/Objective-C++ keywords.
740 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
742 Merge from 'apple/trunk' branch on FSF servers.
744 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
747 * c-common.h (objc_check_global_decl): New declaration.
748 * stub-objc.c (objc_check_global_decl): New stub.
750 2010-09-29 Joseph Myers <joseph@codesourcery.com>
752 * c.opt: Don't use VarExists.
754 2010-09-29 Joseph Myers <joseph@codesourcery.com>
756 * c-common.c (c_cpp_error): Update names of diagnostic_context
758 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
759 cl_optimization members.
760 * c-opts.c (warning_as_error_callback, c_common_handle_option,
761 sanitize_cpp_opts, finish_options): Update names of cpp_options
764 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
766 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
767 (objc_is_reserved_word): Removed.
768 * c-common.c: Updated comments.
769 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
770 objc_is_reserved_word.
771 * stub-objc.c (objc_is_reserved_word): Removed.
773 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
775 * c-common.h (objc_add_method_declaration): Adjust prototype to
777 (objc_start_method_definition): Likewise.
778 (objc_build_keyword_decl): Likewise.
779 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
780 (objc_start_method_definition): Likewise.
781 (objc_build_keyword_decl): Likewise.
783 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
785 * c-common.h (objc_start_class_interface): Adjust prototype.
786 (objc_start_category_interface): Likewise.
787 (objc_start_protocol): Likewise.
788 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
789 (objc_start_class_interface): Likewise.
790 (objc_start_category_interface): Likewise.
792 2010-09-27 Ian Lance Taylor <iant@google.com>
794 * c-common.c (c_common_attribute_table): Add no_split_stack.
795 (handle_no_split_stack_attribute): New static function.
797 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
799 Merge from 'apple/trunk' branch on FSF servers.
801 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
804 * c-common.h (objc_have_common_type): New declaration.
805 * stub-objc.c (objc_have_common_type): New stub.
807 2005-06-22 Ziemowit Laski <zlaski@apple.com>
810 * c-common.h (objc_common_type): New prototype.
811 * stub-objc.c (objc_common_type): New stub.
813 2010-09-24 Jan Hubicka <jh@suse.cz>
815 * c-common.c (handle_leaf_attribute): New function.
816 (struct attribute_spec c_common_att): Add leaf.
818 2010-09-22 Joseph Myers <joseph@codesourcery.com>
820 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
821 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
822 -dump, -dump=, -imacros, -imacros=, -include, -include=,
823 -include-barrier, -include-directory, -include-directory=,
824 -include-directory-after, -include-directory-after=,
825 -include-prefix, -include-prefix=, -include-with-prefix,
826 -include-with-prefix=, -include-with-prefix-after,
827 -include-with-prefix-after=, -include-with-prefix-before,
828 -include-with-prefix-before=, -no-integrated-cpp,
829 -no-line-commands, -no-standard-includes, -no-warnings, -output,
830 -output=, -pedantic, -pedantic-errors, -preprocess,
831 -print-missing-file-dependencies, -trace-includes, -traditional,
832 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
833 -user-dependencies, -verbose, -write-dependencies,
834 -write-user-dependencies, no-integrated-cpp, traditional): New.
836 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
839 * c-common.h (objc_start_method_definition): Return bool instead
841 * stub-objc.c (objc_start_method_definition): Return bool instead
844 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
847 * c-common.h (objc_get_interface_ivars): New declaration.
848 * stub-objc.c (objc_get_interface_ivars): New stub.
850 2010-09-15 Ian Lance Taylor <iant@google.com>
852 * c-common.c (parse_optimize_options): Do not capitalize warning
853 messages. Remove period at end of warning message.
855 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
857 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
858 (handle_alias_attribute): ... here.
859 (handle_ifunc_attribute): New.
861 2010-09-06 Mark Mitchell <mark@codesourcery.com>
863 * c-common.h (do_warn_double_promotion): Declare.
864 * c-common.c (do_warn_double_promotion): Define.
866 2010-09-05 Mark Mitchell <mark@codesourcery.com>
868 * c.opt (Wdouble-promotion): New.
870 2010-09-02 Joseph Myers <joseph@codesourcery.com>
872 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
873 fvtable-thunks, fxref): Mark no longer supported in help text.
875 2010-09-02 Joseph Myers <joseph@codesourcery.com>
877 * c.opt (Wimport, fall-virtual, falt-external-templates,
878 fdefault-inline, fenum-int-equiv, fexternal-templates,
879 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
880 fname-mangling-version-, fnew-abi, fnonnull-objects,
881 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
882 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
884 (fhandle-exceptions): Mark with Alias and Warn.
885 * c-opts.c (c_common_handle_option): Don't handle options marked
888 2010-09-02 Joseph Myers <joseph@codesourcery.com>
890 * c.opt (Wcomments, Werror-implicit-function-declaration,
891 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
892 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
894 * c-common.c (option_codes): Use OPT_Wcomment instead of
896 * c-opts.c (warning_as_error_callback, c_common_handle_option):
897 Don't handle options marked as aliases.
899 2010-08-25 Richard Guenther <rguenther@suse.de>
901 * c-common.c (c_common_get_alias_set): Remove special
902 handling for pointers.
904 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
906 * c-common.c: Use FOR_EACH_VEC_ELT.
907 * c-gimplify.c: Likewise.
908 * c-pragma.c: Likewise.
910 2010-08-16 Joseph Myers <joseph@codesourcery.com>
912 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
914 (MMDX): Change back to MMD. Mark NoDriverArg instead of
916 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
917 instead of OPT_MDX and OPT_MMDX.
919 2010-08-16 Joseph Myers <joseph@codesourcery.com>
921 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
923 2010-08-12 Joseph Myers <joseph@codesourcery.com>
925 * c.opt (MD, MMD): Change to MDX and MMDX.
926 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
928 2010-08-11 Joseph Myers <joseph@codesourcery.com>
930 * c-opts.c (c_common_handle_option): Call handle_generated_option
931 instead of handle_option.
933 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
935 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
936 (maybe_apply_renaming_pragma): Delete unneeded declarations.
938 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
940 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
941 (pending_redefine_extname): Change type to a VEC.
942 (add_to_renaming_pragma_list): Update for new type of
943 pending_redefine_extname.
944 (maybe_apply_renaming_pragma): Likewise.
946 2010-08-04 Arnaud Charlet <charlet@adacore.com>
948 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
950 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
951 decide whether a type has already been declared/seen.
952 Do not go to the original type.
953 (dump_nested_types): New parameter forward.
954 Generate forward declaration if needed and mark type as visited.
955 (print_ada_declaration): Call dump_nested_types if not already done.
956 Mark types as visited.
958 2010-08-03 Joseph Myers <joseph@codesourcery.com>
960 * c.opt (-print-pch-checksum): Remove option.
961 * c-opts.c (c_common_handle_option): Don't handle
962 OPT_print_pch_checksum.
964 2010-07-27 Joseph Myers <joseph@codesourcery.com>
966 * c-common.h (c_common_handle_option): Update prototype and return
968 * c-opts.c (c_common_handle_option): Update prototype and return
969 value type. Update calls to handle_option and
970 enable_warning_as_error.
972 2010-07-27 Jakub Jelinek <jakub@redhat.com>
975 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
977 2010-07-27 Joseph Myers <joseph@codesourcery.com>
979 * c-common.h (c_common_missing_argument): Remove.
980 * c-opts.c (c_common_missing_argument): Remove.
981 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
982 idirafter, imacros, include, isysroot, isystem, iquote): Add
984 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
986 2010-07-27 Joseph Myers <joseph@codesourcery.com>
988 * c-common.h (c_common_option_lang_mask,
989 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
991 (c_common_init_options): Update prototype.
992 * c-opts.c (c_common_option_lang_mask): New.
993 (c_common_initialize_diagnostics): Split out of
994 c_common_init_options.
995 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
997 (c_common_init_options): Update prototype. Use decoded options in
998 search for -lang-asm.
1000 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1002 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1003 * c-format.c: Likewise.
1005 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1007 * c-common.h: Include diagnostic-core.h. Error if already
1009 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1011 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1013 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1014 Do not include expr.h
1015 (vector_mode_valid_p): Move here.
1017 2010-06-21 DJ Delorie <dj@redhat.com>
1019 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1020 allow these pragmas anywhere.
1022 2010-06-14 Jakub Jelinek <jakub@redhat.com>
1025 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1026 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1027 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1028 ggc_strdup instead of xstrdup.
1030 2010-06-10 Jakub Jelinek <jakub@redhat.com>
1032 * c-cppbuiltin.c: Include cpp-id-data.h.
1033 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1034 (lazy_hex_fp_value): New function.
1035 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1037 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1039 * c-gimplify.c: Do not include tree-flow.h
1041 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1044 * c-common.c: Rename targetm member:
1045 targetm.enum_va_list -> targetm.enum_va_list_p
1047 2010-06-28 Anatoly Sokolov <aesok@post.ru>
1049 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1051 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1053 * c-cppbuiltin.c: Do not include except.h.
1055 2010-06-24 Andi Kleen <ak@linux.intel.com>
1057 * c-common.c (warn_for_omitted_condop): New.
1058 * c-common.h (warn_for_omitted_condop): Add prototype.
1060 2010-06-21 Joseph Myers <joseph@codesourcery.com>
1062 * c.opt (lang-objc): Remove.
1063 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1065 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1067 * c-opts.c: Include "tm_p.h".
1069 2010-06-20 Joseph Myers <joseph@codesourcery.com>
1071 * c-common.c (parse_optimize_options): Update call to
1074 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1076 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1077 new type of types_used_by_cur_var_decl.
1079 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1082 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1083 for C++ standard compliance.
1085 2010-06-16 Jason Merrill <jason@redhat.com>
1087 * c.opt: Add -Wnoexcept.
1089 2010-06-16 Richard Guenther <rguenther@suse.de>
1092 * c-common.c (c_common_truthvalue_conversion): Remove
1093 premature and wrong optimization concering ADDR_EXPRs.
1095 2010-06-15 Arnaud Charlet <charlet@adacore.com>
1097 * c-ada-spec.c (dump_sloc): Remove column info.
1098 (is_simple_enum): New function.
1099 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1100 enum types when relevant.
1102 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1104 * c-common.c (conversion_warning): Warn at expression
1107 2010-06-10 Joseph Myers <joseph@codesourcery.com>
1109 * c-opts.c (c_common_handle_option): Don't handle
1112 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1114 * c-pragma.c (push_alignment): Use typed GC allocation.
1115 (handle_pragma_push_options): Likewise.
1117 * c-common.c (parse_optimize_options): Likewise.
1119 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1122 2010-06-07 Joseph Myers <joseph@codesourcery.com>
1124 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1125 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1126 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1127 flag_signed_bitfields, warn_strict_null_sentinel,
1128 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1129 flag_gen_declaration, flag_no_gnu_keywords,
1130 flag_implement_inlines, flag_implicit_templates,
1131 flag_implicit_inline_templates, flag_optional_diags,
1132 flag_elide_constructors, flag_default_inline, flag_rtti,
1133 flag_conserve_space, flag_access_control, flag_check_new,
1134 flag_new_for_scope, flag_weak, flag_working_directory,
1135 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1136 flag_enforce_eh_specs, flag_threadsafe_statics,
1137 flag_pretty_templates): Remove.
1138 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1139 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1140 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1141 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1142 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1143 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1144 flag_no_gnu_keywords, flag_implement_inlines,
1145 flag_implicit_templates, flag_implicit_inline_templates,
1146 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1147 flag_rtti, flag_conserve_space, flag_access_control,
1148 flag_check_new, flag_new_for_scope, flag_weak,
1149 flag_working_directory, flag_use_cxa_atexit,
1150 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1151 flag_threadsafe_statics, flag_pretty_templates,
1152 warn_strict_null_sentinel): Remove.
1153 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1154 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1155 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1156 fimplicit-inline-templates, fimplicit-templates,
1157 flax-vector-conversions, fms-extensions, fnil-receivers,
1158 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1159 frtti, fshort-double, fshort-enums, fshort-wchar,
1160 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1161 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1162 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1163 gen-decls, undef): Use Var.
1164 (fdefault-inline, foptional-diags): Document as doing nothing.
1165 * c-opts.c (c_common_handle_option): Remove cases for options now
1166 using Var. Mark ignored options as such.
1168 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1170 * c-common.c: Moved to here from parent directory.
1171 * c-common.def: Likewise.
1172 * c-common.h: Likewise.
1173 * c-cppbuiltin.c: Likewise.
1174 * c-dump.c: Likewise.
1175 * c-format.c: Likewise.
1176 * c-format.h : Likewise.
1177 * c-gimplify.c: Likewise.
1178 * c-lex.c: Likewise.
1179 * c-omp.c: Likewise.
1181 * c-opts.c: Likewise.
1182 * c-pch.c: Likewise.
1183 * c-ppoutput.c: Likewise.
1184 * c-pragma.c: Likewise.
1185 * c-pragma.h: Likewise.
1186 * c-pretty-print.c: Likewise.
1187 * c-pretty-print.h: Likewise.
1188 * c-semantics.c: Likewise.
1189 * stub-objc.c: Likewise.
1191 * c-common.c: Include gt-c-family-c-common.h.
1192 * c-pragma.c: Include gt-c-family-c-pragma.h.
1194 Copyright (C) 2010, 2011 Free Software Foundation, Inc.
1196 Copying and distribution of this file, with or without modification,
1197 are permitted in any medium without royalty provided the copyright
1198 notice and this notice are preserved.