1 2011-05-23 Jason Merrill <jason@redhat.com>
4 * c-common.c (c_common_get_narrower): New.
5 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
7 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
9 * c-common.h (check_function_arguments): Tweak prototype of
10 check_function_arguments.
11 * c-common.c (check_function_arguments): Likewise. Adjust
12 calls to check_function_nonnull, check_function_format, and
13 check_function_sentinel.
14 (check_function_sentinel): Take a FUNCTION_TYPE rather than
15 separate attributes and typelist arguments. Use
16 FOREACH_FUNCTION_ARGS to iterate over argument types.
18 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
20 * c-common.c (c_common_reswords): Reorder.
21 * c-common.h (rid): Likewise.
23 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
25 * c-common.c (def_fn_type): Don't call build_function_type, call
26 build_function_type_array or build_varargs_function_type_array
28 (c_common_nodes_and_builtins): Likewise.
30 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
32 * c-common.c (c_add_case_label): Omit the loc argument to
34 * c-common.h (build_case_label): Remove.
35 * c-semantics.c (build_case_label): Remove.
37 2011-05-05 Joseph Myers <joseph@codesourcery.com>
39 * c-objc.h (objc_start_method_definition): Update prototype.
40 * stub-objc.c (objc_start_method_definition): Add extra parameter.
42 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
44 * c-common.c (check_main_parameter_types): Reindent. Don't use
45 TYPE_ARG_TYPES directly.
46 (handle_nonnull_attribute): Likewise.
47 (sync_resolve_params): Likewise.
48 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
49 to check_format_string.
50 (handle_format_attribute): Likewise.
51 (check_format_string): Take a function type to examine instead of
52 a type list. Use a function_arg_iterator to step through argument
55 2011-05-04 Richard Guenther <rguenther@suse.de>
57 * c-common.c (fix_string_type): Use size_int for index type bounds.
58 (start_fname_decls): Do not pass NULL to build_int_cst.
59 (c_init_attributes): Likewise.
60 * c-lex.c (c_lex_with_flags): Likewise.
62 2011-04-27 Jason Merrill <jason@redhat.com>
64 * c-common.c (make_tree_vector_from_list): New.
65 * c-common.h: Declare it.
67 2011-04-26 Richard Guenther <rguenther@suse.de>
70 * c-ppoutput.c (maybe_print_line): Always optimize newlines
71 for output size with -P.
73 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
75 * c-common.c (struct c_common_resword): Add __underlying_type.
76 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
78 2011-04-20 Jim Meyering <meyering@redhat.com>
80 * c-format.c (init_dollar_format_checking): Remove useless
83 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
85 * c-objc.h (objc_get_interface_ivars): Removed.
86 (objc_detect_field_duplicates): New.
87 * stub-objc.c: Likewise.
89 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
91 * stub-objc.c (objc_declare_protocols): Renamed to
92 objc_declare_protocol.
95 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
97 * stub-objc.c (objc_declare_class): Updated argument name.
99 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
101 * c-common.h (c_common_init_ts): Declare.
102 * c-common.c (c_common_init_ts): Define.
104 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
106 * c-objc.h (objc_build_message_expr): Updated prototype.
107 * stub-objc.c (objc_build_message_expr): Likewise.
109 2011-04-12 Martin Jambor <mjambor@suse.cz>
111 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
114 2011-04-11 Richard Guenther <rguenther@suse.de>
116 * c-common.c (complete_array_type): Build a range type of
119 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
121 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
122 (handle_type_generic_attribute): Likewise.
124 2011-04-07 Jason Merrill <jason@redhat.com>
127 * c-common.c (c_common_truthvalue_conversion): Don't ignore
128 conversion from C++0x scoped enum.
130 2011-04-06 Joseph Myers <joseph@codesourcery.com>
132 * c-target-def.h: New file.
133 * c-target.def: New file.
134 * c-target.h: New file.
135 * c-common.c (targetcm): Don't define here.
136 * c-common.h (default_handle_c_option): Declare.
137 * c-format.c: Include c-target.h instead of target.h.
138 * c-opts.c: Include c-target.h instead of target.h. Explicitly
140 (default_handle_c_option): Move from targhooks.c.
142 2011-03-29 Jakub Jelinek <jakub@redhat.com>
144 PR preprocessor/48248
145 * c-ppoutput.c (print): Add src_file field.
146 (init_pp_output): Initialize it.
147 (maybe_print_line): Don't optimize by adding up to 8 newlines
148 if map->to_file and print.src_file are different file.
149 (print_line): Update print.src_file.
151 2011-03-25 Kai Tietz <ktietz@redhat.com>
153 * c-ada-spec.c (compare_comment): Use filename_cmp
154 instead of strcmp for filename.
156 2011-03-25 Jeff Law <law@redhat.com>
158 * c-family/c-common.c (def_fn_type): Add missing va_end.
160 2011-03-25 Jason Merrill <jason@redhat.com>
162 * c.opt: Add -std=c++03.
164 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
166 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
171 * c-pretty-print.c (pp_c_specifier_qualifier_list):
172 Display allowed attributes for function pointer types.
173 (pp_c_attributes_display): New function to display
174 attributes having affects_type_identity flag set to true.
175 * c-pretty-print.h (pp_c_attributes_display): New prototype.
177 * c-common.c (c_common_attribute_table):
179 (c_common_format_attribute_table): Likewise.
181 2011-03-18 Jason Merrill <jason@redhat.com>
183 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
184 * c-common.h: Don't declare it here.
185 * c-common.c: Or define it here.
186 * c-opts.c (c_common_handle_option): Or set it here.
189 * c-common.c (handle_transparent_union_attribute): Don't
190 make a duplicate type in C++.
192 2011-03-15 Jason Merrill <jason@redhat.com>
194 * c-common.c (max_constexpr_depth): New.
195 * c-common.h: Declare it.
196 * c-opts.c (c_common_handle_option): Set it.
197 * c.opt (fconstexpr-depth): New option.
199 2011-03-11 Jason Merrill <jason@redhat.com>
201 * c-common.c (attribute_takes_identifier_p): Add missing const.
204 * c-common.c (attribute_takes_identifier_p): Assume that an
205 unknown attribute takes an identifier.
207 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
210 * c-common.c (c_type_hash): Call list_length instead of iterating
211 through DECL_CHAIN. Rename 'i' to 'n_elements'.
213 2011-02-19 Jakub Jelinek <jakub@redhat.com>
216 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
218 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
220 * c.opt (fobjc-abi-version=) New.
221 (fobjc-nilcheck): New.
223 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
226 * c-common.h (keyword_is_decl_specifier): Declare.
227 * c-common.c (keyword_is_decl_specifier): Define.
228 (keyword_is_function_specifier): New function.
230 2011-01-26 Jakub Jelinek <jakub@redhat.com>
233 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
234 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
237 2011-01-26 Arnaud Charlet <charlet@adacore.com>
239 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
241 2011-01-26 Jakub Jelinek <jakub@redhat.com>
244 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
245 after init_c_lex if pch_file is set.
247 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
250 * c.opt (-fkeep-inline-dllexport): New switch.
252 2011-01-12 Richard Guenther <rguenther@suse.de>
255 * c-common.c (handle_weak_attribute): Warn instead of error
256 on declaring an inline function weak.
258 2011-01-05 Tom Tromey <tromey@redhat.com>
260 * c-common.h (lvalue_error): Update.
261 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
264 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
267 * c-objc.h (objc_finish_message_expr): Added argument to
270 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
272 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
275 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
277 * c-objc.h (objc_maybe_warn_exceptions): New.
278 * stub-objc.c (objc_maybe_warn_exceptions): New.
280 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
282 * c-common.h (readonly_error): Declare.
283 * c-common.c (readonly_error): Define.
285 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
287 * c-common.h (invalid_indirection_error): Declare.
288 * c-common.c (invalid_indirection_error): Define.
290 2010-12-03 Richard Guenther <rguenther@suse.de>
293 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
294 (pp_c_unary_expression): Likewise.
295 (pp_c_expression): Likewise.
297 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
299 * c-common.h (objc_finish_function): New.
300 (objc_non_volatilized_type): Removed.
301 (objc_type_quals_match): Removed.
302 * stub-objc.c (objc_finish_function): New.
303 (objc_non_volatilized_type): Removed.
304 (objc_type_quals_match): Removed.
306 2010-11-30 Joseph Myers <joseph@codesourcery.com>
308 * c-common.h (parse_optimize_options): Declare.
309 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
310 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
312 2010-11-29 Joseph Myers <joseph@codesourcery.com>
314 * c-opts.c (check_deps_environment_vars): Use getenv instead of
316 * c-pch.c (O_BINARY): Don't define here.
317 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
319 2010-11-25 Joseph Myers <joseph@codesourcery.com>
321 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
322 targetm.except_unwind_info.
324 2010-11-23 Joseph Myers <joseph@codesourcery.com>
326 * c-opts.c (c_common_handle_option): Pass location to
327 set_struct_debug_option.
329 2010-11-23 Joseph Myers <joseph@codesourcery.com>
331 * c-common.c (visibility_options): Move from ../opts.c.
332 * c-common.h (struct visibility_flags, visibility_options):
334 * c-opts.c (finish_options): Rename to c_finish_options.
335 (c_common_init): Update call to finish_options.
337 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
340 * c-lex.c (lex_string): Check that each string in an Objective-C
341 string concat sequence starts with either one or zero '@', and
342 that there are no spurious '@' signs at the end.
344 2010-11-20 Joseph Myers <joseph@codesourcery.com>
346 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
347 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
348 HANDLE_PRAGMA_VISIBILITY.
349 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
350 HANDLE_PRAGMA_VISIBILITY): Don't define.
351 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
353 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
358 * c-common.h (keyword_begins_type_specifier): Declare.
359 (keyword_is_storage_class_specifier): Declare.
360 (keyword_is_type_qualifier): Declare.
361 * c-common.c (keyword_begins_type_specifier): New function.
362 (keyword_is_storage_class_specifier): New function.
363 (keyword_is_type_qualifier): Declare.
365 2010-11-19 Joseph Myers <joseph@codesourcery.com>
368 * c-common.c (in_late_binary_op): Define.
369 (c_common_truthvalue_conversion): Check in_late_binary_op before
371 * c-common.h (in_late_binary_op): Declare.
373 2010-11-19 Joseph Myers <joseph@codesourcery.com>
375 * c-opts.c (c_common_handle_option): Update calls to
376 set_struct_debug_option.
378 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
380 * c-common.h (objc_declare_protocols): Added additional argument.
381 * stub-objc.c (objc_declare_protocol): Same change.
383 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
386 * c-common.h (build_real_imag_expr): Declare.
387 * c-semantics.c (build_real_imag_expr): Define.
389 2010-11-17 Joseph Myers <joseph@codesourcery.com>
391 * c-opts.c (c_common_parse_file): Take no arguments.
392 * c-common.h (c_common_parse_file): Update prototype.
394 2010-11-16 Jakub Jelinek <jakub@redhat.com>
397 * c-common.c (warning_candidate_p): Don't track non-const calls
400 2010-11-15 Ian Lance Taylor <iant@google.com>
402 * c-lex.c (init_c_lex): Set macro debug callbacks if
403 flag_dump_go_spec is set.
405 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
407 * c-common.h (objc_build_incr_expr_for_property_ref): New.
408 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
410 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
412 PR preprocessor/45038
413 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
416 2010-11-12 Joseph Myers <joseph@codesourcery.com>
418 * c-common.h (c_family_lang_mask): Declare.
419 * c-opts.c (c_family_lang_mask): Make extern.
420 * c-pragma.c (handle_pragma_diagnostic): Use
421 control_warning_option.
423 2010-11-12 Joseph Myers <joseph@codesourcery.com>
425 * c-common.c (parse_optimize_options): Update call to
427 * c-common.h (c_common_handle_option): Update prototype.
428 * c-opts.c (c_common_handle_option): Take location_t parameter and
429 pass it to other functions.
431 2010-11-11 Joseph Myers <joseph@codesourcery.com>
433 * c-opts.c (warning_as_error_callback): Remove.
434 (c_common_initialize_diagnostics): Don't call
435 register_warning_as_error_callback.
436 (c_common_handle_option): Handle -Werror=normalized= here.
438 2010-11-10 Joseph Myers <joseph@codesourcery.com>
440 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
442 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
444 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
445 Remove trailing '.' from diagnostics.
446 * c.opt (Wwrite-strings_: Avoid '`' in help text.
448 2010-11-10 Joseph Myers <joseph@codesourcery.com>
450 * c-common.c (parse_optimize_options): Pass global_dc to
452 * c-opts.c (c_common_handle_option): Pass &global_options to
453 set_Wstrict_aliasing.
454 * c.opt (v): Don't mark Common or document here.
456 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
459 * c-format.c (format_type): New type gcc_objc_string_format_type.
460 (valid_stringptr_type_p): New.
461 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
462 (check_format_string): Pass expected type, use
463 valid_stringptr_type_p (), check that the format string types are
464 consistent with the format specification.
465 (decode_format_attr): Warn if NSString is used outside objective-c.
466 (format_types_orig): Add NSString.
469 (check_format_arg): Handle format strings requiring an external parser.
470 first_target_format_type: New variable.
471 (handle_format_attribute): Set up first_target_format_type, pass the
472 expected format arg string type to check_format_string().
473 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
474 * stub-objc.c (objc_string_ref_type_p): New.
475 (objc_check_format_arg): New.
477 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
479 Fixed using the Objective-C 2.0 dot-syntax with class names.
480 * c-common.h (objc_build_class_component_ref): New.
481 * stub-objc.c (objc_build_class_component_ref): New.
483 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
485 * c.opt (Wproperty-assign-default): New option.
487 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
489 Implemented -fobjc-std=objc1 flag.
490 * c.opt (fobjc-std=objc1): New option.
492 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
494 Implemented format and noreturn attributes for Objective-C methods.
495 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
496 attribute for Objective-C methods.
498 2010-10-31 Jason Merrill <jason@redhat.com>
500 * c-common.c (conversion_warning, warn_for_collisions_1): Use
503 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
505 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
506 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
507 (objc_add_property_declaration): Removed arguments for copies and
509 (objc_build_getter_call): Renamed to
510 objc_maybe_build_component_ref.
511 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
512 (objc_is_property_ref): New.
513 * c-common.c (c_common_reswords): Removed copies and ivar.
514 * stub-objc.c (objc_add_property_declaration): Removed arguments
516 (objc_build_getter_call): Renamed to
517 objc_maybe_build_component_ref.
518 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
519 (objc_is_property_ref): New.
521 2010-10-29 Arnaud Charlet <charlet@adacore.com>
522 Matthew Gingell <gingell@adacore.com>
524 * c-ada-spec.c (separate_class_package): New function.
525 (pp_ada_tree_identifier): Prefix references to C++ classes with the
526 name of their enclosing package.
527 (print_ada_declaration): Use separate_class_package.
529 2010-10-27 Jason Merrill <jason@redhat.com>
531 * c-common.c (c_common_reswords): Add __is_literal_type.
532 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
534 * c-common.c (check_case_value): Remove special C++ code.
536 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
538 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
539 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
541 (objc_add_property_declaration): Added additional arguments.
542 (objc_property_attribute_kind): Removed.
543 (objc_set_property_attr): Removed.
544 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
546 * stub-objc.c (objc_add_property_declaration): Added additional
548 (objc_set_property_attr): Removed.
550 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
552 * c-common.h (objc_add_property_variable): Renamed to
553 objc_add_property_declaration. Added location argument.
554 * stub-objc.c (objc_add_property_variable): Same change.
556 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
558 * c-common.h (objc_maybe_printable_name): New.
559 * stub-objc.c (objc_maybe_printable_name): New.
561 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
562 Andrew Pinski <pinskia@gmail.com>
564 * c-common.h (c_common_mark_addressable_vec): Declare.
565 * c-common.c (c_common_mark_addressable_vec): New function.
567 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
569 * c-common.h (objc_set_method_type): Removed.
570 (objc_add_method_declaration): Added boolean argument.
571 (objc_start_method_definition): Same change.
572 (objc_build_method_signature): Same change.
573 * stub-objc.c (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.
578 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
580 * c-common.h (finish_file): Removed.
581 (objc_write_global_declarations): New.
582 * c-opts.c (c_common_parse_file): Do not call finish_file.
583 * stub-objc.c (objc_write_global_declarations): New.
585 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
587 Implemented parsing @synthesize and @dynamic for
588 Objective-C/Objective-C++.
589 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
590 (objc_add_synthesize_declaration): New.
591 (objc_add_dynamic_declaration): New.
592 * c-common.c (c_common_reswords): Add synthesize and dynamic.
593 * stub-objc.c (objc_add_synthesize_declaration): New.
594 (objc_add_dynamic_declaration): New.
596 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
599 * c-cppbuiltin.c (mode_has_fma): Move function here from
600 builtins.c. Don't use the fma optab, instead just use the
601 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
604 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
606 Merge from 'apple/trunk' branch on FSF servers.
608 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
611 * c-common.h (objc_non_volatilized_type): New declaration
612 * stub-objc.c (objc_non_volatilized_type): New stub.
614 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
616 Merge from 'apple/trunk' branch on FSF servers.
618 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
621 * c-common.h (objc_diagnose_private_ivar): New decl.
622 * stub-objc.c (objc_diagnose_private_ivar): New stub.
624 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
626 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
627 * c-common.h (enum rid): Add RID_AT_PACKAGE.
628 (objc_ivar_visibility_kind): New enum.
629 (objc_set_visibility): Adjust prototype to use visibility enum.
630 * stub-objc.c (objc_set_visibility): Adjust stub to use
633 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
635 * c-cppbuiltin.c (builtin_define_float_constants): Emit
636 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
637 has the appropriate fma builtins.
638 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
640 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
642 merge from FSF apple 'trunk' branch.
643 2006 Fariborz Jahanian <fjahanian@apple.com>
645 Radars 4436866, 4505126, 4506903, 4517826
646 * c-common.c (c_common_resword): Define @property and its attributes.
647 * c-common.h: Define property attribute enum entries.
648 (OBJC_IS_PATTR_KEYWORD): New.
649 (objc_property_attribute_kind): New enum.
650 Declare objc_set_property_attr (), objc_add_property_variable (),
651 objc_build_getter_call () and objc_build_setter_call ().
652 * stub-objc.c (objc_set_property_attr): New stub.
653 (objc_add_property_variable): Likewise.
654 (objc_build_getter_call): Likewise.
655 (objc_build_setter_call) Likewise.
657 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
659 merge from FSF apple 'trunk' branch.
660 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
662 Radar 3803157 (method attributes)
663 * c-common.c (handle_deprecated_attribute): Recognize
664 objc methods as valid declarations.
665 * c-common.h: Declare objc_method_decl ().
666 * stub-objc.c (objc_method_decl): New stub.
668 2010-10-08 Joseph Myers <joseph@codesourcery.com>
670 * c-common.c (parse_optimize_options): Call
671 decode_cmdline_options_to_array_default_mask before
672 decode_options. Update arguments to decode_options.
673 * c-common.h (c_common_init_options_struct): Declare.
674 * c-opts.c (c_common_init_options_struct): New. Split out from
675 c_common_init_options.
677 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
679 Implemented fast enumeration for Objective-C.
680 * c-common.h (objc_finish_foreach_loop): New.
681 * stub-objc.c (objc_finish_foreach_loop): New.
683 2010-10-05 Joseph Myers <joseph@codesourcery.com>
685 * c-common.h (struct diagnostic_context): Don't declare here.
686 (c_common_initialize_diagnostics): Declare using
687 diagnostic_context typedef.
688 * c-opts.c (c_common_handle_option): Pass global_dc to
689 handle_generated_option.
691 2010-10-04 Joseph Myers <joseph@codesourcery.com>
693 * c-opts.c (c_common_handle_option): Pass &global_options_set to
694 handle_generated_option.
696 2010-10-03 Ian Lance Taylor <iant@google.com>
698 * c.opt (-fplan9-extensions): New option.
700 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
702 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
704 (c_cpp_builtins): Call functions from cppbuiltin.c instead
707 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
709 * c-common.c: Add two new entries for @optional
710 and @required keywords.
712 merge from FSF 'apple/trunk' branch.
713 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
716 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
717 objective-c keywords.
718 (objc_set_method_opt): New declaration.
719 * stub-objc.c (objc_set_method_opt): New stub.
721 2010-09-30 Joseph Myers <joseph@codesourcery.com>
723 * c-common.c (handle_optimize_attribute): Pass &global_options to
724 cl_optimization_save and cl_optimization_restore.
725 * c-opts.c (c_common_handle_option): Pass &global_options to
726 handle_generated_option.
727 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
728 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
729 &global_options to cl_optimization_restore.
731 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
733 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
734 Objective-C/Objective-C++ keywords.
736 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
738 Merge from 'apple/trunk' branch on FSF servers.
740 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
743 * c-common.h (objc_check_global_decl): New declaration.
744 * stub-objc.c (objc_check_global_decl): New stub.
746 2010-09-29 Joseph Myers <joseph@codesourcery.com>
748 * c.opt: Don't use VarExists.
750 2010-09-29 Joseph Myers <joseph@codesourcery.com>
752 * c-common.c (c_cpp_error): Update names of diagnostic_context
754 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
755 cl_optimization members.
756 * c-opts.c (warning_as_error_callback, c_common_handle_option,
757 sanitize_cpp_opts, finish_options): Update names of cpp_options
760 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
762 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
763 (objc_is_reserved_word): Removed.
764 * c-common.c: Updated comments.
765 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
766 objc_is_reserved_word.
767 * stub-objc.c (objc_is_reserved_word): Removed.
769 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
771 * c-common.h (objc_add_method_declaration): Adjust prototype to
773 (objc_start_method_definition): Likewise.
774 (objc_build_keyword_decl): Likewise.
775 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
776 (objc_start_method_definition): Likewise.
777 (objc_build_keyword_decl): Likewise.
779 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
781 * c-common.h (objc_start_class_interface): Adjust prototype.
782 (objc_start_category_interface): Likewise.
783 (objc_start_protocol): Likewise.
784 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
785 (objc_start_class_interface): Likewise.
786 (objc_start_category_interface): Likewise.
788 2010-09-27 Ian Lance Taylor <iant@google.com>
790 * c-common.c (c_common_attribute_table): Add no_split_stack.
791 (handle_no_split_stack_attribute): New static function.
793 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
795 Merge from 'apple/trunk' branch on FSF servers.
797 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
800 * c-common.h (objc_have_common_type): New declaration.
801 * stub-objc.c (objc_have_common_type): New stub.
803 2005-06-22 Ziemowit Laski <zlaski@apple.com>
806 * c-common.h (objc_common_type): New prototype.
807 * stub-objc.c (objc_common_type): New stub.
809 2010-09-24 Jan Hubicka <jh@suse.cz>
811 * c-common.c (handle_leaf_attribute): New function.
812 (struct attribute_spec c_common_att): Add leaf.
814 2010-09-22 Joseph Myers <joseph@codesourcery.com>
816 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
817 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
818 -dump, -dump=, -imacros, -imacros=, -include, -include=,
819 -include-barrier, -include-directory, -include-directory=,
820 -include-directory-after, -include-directory-after=,
821 -include-prefix, -include-prefix=, -include-with-prefix,
822 -include-with-prefix=, -include-with-prefix-after,
823 -include-with-prefix-after=, -include-with-prefix-before,
824 -include-with-prefix-before=, -no-integrated-cpp,
825 -no-line-commands, -no-standard-includes, -no-warnings, -output,
826 -output=, -pedantic, -pedantic-errors, -preprocess,
827 -print-missing-file-dependencies, -trace-includes, -traditional,
828 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
829 -user-dependencies, -verbose, -write-dependencies,
830 -write-user-dependencies, no-integrated-cpp, traditional): New.
832 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
835 * c-common.h (objc_start_method_definition): Return bool instead
837 * stub-objc.c (objc_start_method_definition): Return bool instead
840 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
843 * c-common.h (objc_get_interface_ivars): New declaration.
844 * stub-objc.c (objc_get_interface_ivars): New stub.
846 2010-09-15 Ian Lance Taylor <iant@google.com>
848 * c-common.c (parse_optimize_options): Do not capitalize warning
849 messages. Remove period at end of warning message.
851 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
853 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
854 (handle_alias_attribute): ... here.
855 (handle_ifunc_attribute): New.
857 2010-09-06 Mark Mitchell <mark@codesourcery.com>
859 * c-common.h (do_warn_double_promotion): Declare.
860 * c-common.c (do_warn_double_promotion): Define.
862 2010-09-05 Mark Mitchell <mark@codesourcery.com>
864 * c.opt (Wdouble-promotion): New.
866 2010-09-02 Joseph Myers <joseph@codesourcery.com>
868 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
869 fvtable-thunks, fxref): Mark no longer supported in help text.
871 2010-09-02 Joseph Myers <joseph@codesourcery.com>
873 * c.opt (Wimport, fall-virtual, falt-external-templates,
874 fdefault-inline, fenum-int-equiv, fexternal-templates,
875 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
876 fname-mangling-version-, fnew-abi, fnonnull-objects,
877 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
878 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
880 (fhandle-exceptions): Mark with Alias and Warn.
881 * c-opts.c (c_common_handle_option): Don't handle options marked
884 2010-09-02 Joseph Myers <joseph@codesourcery.com>
886 * c.opt (Wcomments, Werror-implicit-function-declaration,
887 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
888 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
890 * c-common.c (option_codes): Use OPT_Wcomment instead of
892 * c-opts.c (warning_as_error_callback, c_common_handle_option):
893 Don't handle options marked as aliases.
895 2010-08-25 Richard Guenther <rguenther@suse.de>
897 * c-common.c (c_common_get_alias_set): Remove special
898 handling for pointers.
900 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
902 * c-common.c: Use FOR_EACH_VEC_ELT.
903 * c-gimplify.c: Likewise.
904 * c-pragma.c: Likewise.
906 2010-08-16 Joseph Myers <joseph@codesourcery.com>
908 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
910 (MMDX): Change back to MMD. Mark NoDriverArg instead of
912 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
913 instead of OPT_MDX and OPT_MMDX.
915 2010-08-16 Joseph Myers <joseph@codesourcery.com>
917 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
919 2010-08-12 Joseph Myers <joseph@codesourcery.com>
921 * c.opt (MD, MMD): Change to MDX and MMDX.
922 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
924 2010-08-11 Joseph Myers <joseph@codesourcery.com>
926 * c-opts.c (c_common_handle_option): Call handle_generated_option
927 instead of handle_option.
929 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
931 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
932 (maybe_apply_renaming_pragma): Delete unneeded declarations.
934 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
936 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
937 (pending_redefine_extname): Change type to a VEC.
938 (add_to_renaming_pragma_list): Update for new type of
939 pending_redefine_extname.
940 (maybe_apply_renaming_pragma): Likewise.
942 2010-08-04 Arnaud Charlet <charlet@adacore.com>
944 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
946 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
947 decide whether a type has already been declared/seen.
948 Do not go to the original type.
949 (dump_nested_types): New parameter forward.
950 Generate forward declaration if needed and mark type as visited.
951 (print_ada_declaration): Call dump_nested_types if not already done.
952 Mark types as visited.
954 2010-08-03 Joseph Myers <joseph@codesourcery.com>
956 * c.opt (-print-pch-checksum): Remove option.
957 * c-opts.c (c_common_handle_option): Don't handle
958 OPT_print_pch_checksum.
960 2010-07-27 Joseph Myers <joseph@codesourcery.com>
962 * c-common.h (c_common_handle_option): Update prototype and return
964 * c-opts.c (c_common_handle_option): Update prototype and return
965 value type. Update calls to handle_option and
966 enable_warning_as_error.
968 2010-07-27 Jakub Jelinek <jakub@redhat.com>
971 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
973 2010-07-27 Joseph Myers <joseph@codesourcery.com>
975 * c-common.h (c_common_missing_argument): Remove.
976 * c-opts.c (c_common_missing_argument): Remove.
977 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
978 idirafter, imacros, include, isysroot, isystem, iquote): Add
980 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
982 2010-07-27 Joseph Myers <joseph@codesourcery.com>
984 * c-common.h (c_common_option_lang_mask,
985 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
987 (c_common_init_options): Update prototype.
988 * c-opts.c (c_common_option_lang_mask): New.
989 (c_common_initialize_diagnostics): Split out of
990 c_common_init_options.
991 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
993 (c_common_init_options): Update prototype. Use decoded options in
994 search for -lang-asm.
996 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
998 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
999 * c-format.c: Likewise.
1001 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1003 * c-common.h: Include diagnostic-core.h. Error if already
1005 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1007 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1009 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1010 Do not include expr.h
1011 (vector_mode_valid_p): Move here.
1013 2010-06-21 DJ Delorie <dj@redhat.com>
1015 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1016 allow these pragmas anywhere.
1018 2010-06-14 Jakub Jelinek <jakub@redhat.com>
1021 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1022 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1023 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1024 ggc_strdup instead of xstrdup.
1026 2010-06-10 Jakub Jelinek <jakub@redhat.com>
1028 * c-cppbuiltin.c: Include cpp-id-data.h.
1029 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1030 (lazy_hex_fp_value): New function.
1031 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1033 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1035 * c-gimplify.c: Do not include tree-flow.h
1037 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1040 * c-common.c: Rename targetm member:
1041 targetm.enum_va_list -> targetm.enum_va_list_p
1043 2010-06-28 Anatoly Sokolov <aesok@post.ru>
1045 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1047 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1049 * c-cppbuiltin.c: Do not include except.h.
1051 2010-06-24 Andi Kleen <ak@linux.intel.com>
1053 * c-common.c (warn_for_omitted_condop): New.
1054 * c-common.h (warn_for_omitted_condop): Add prototype.
1056 2010-06-21 Joseph Myers <joseph@codesourcery.com>
1058 * c.opt (lang-objc): Remove.
1059 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1061 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1063 * c-opts.c: Include "tm_p.h".
1065 2010-06-20 Joseph Myers <joseph@codesourcery.com>
1067 * c-common.c (parse_optimize_options): Update call to
1070 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1072 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1073 new type of types_used_by_cur_var_decl.
1075 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1078 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1079 for C++ standard compliance.
1081 2010-06-16 Jason Merrill <jason@redhat.com>
1083 * c.opt: Add -Wnoexcept.
1085 2010-06-16 Richard Guenther <rguenther@suse.de>
1088 * c-common.c (c_common_truthvalue_conversion): Remove
1089 premature and wrong optimization concering ADDR_EXPRs.
1091 2010-06-15 Arnaud Charlet <charlet@adacore.com>
1093 * c-ada-spec.c (dump_sloc): Remove column info.
1094 (is_simple_enum): New function.
1095 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1096 enum types when relevant.
1098 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1100 * c-common.c (conversion_warning): Warn at expression
1103 2010-06-10 Joseph Myers <joseph@codesourcery.com>
1105 * c-opts.c (c_common_handle_option): Don't handle
1108 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1110 * c-pragma.c (push_alignment): Use typed GC allocation.
1111 (handle_pragma_push_options): Likewise.
1113 * c-common.c (parse_optimize_options): Likewise.
1115 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1118 2010-06-07 Joseph Myers <joseph@codesourcery.com>
1120 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1121 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1122 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1123 flag_signed_bitfields, warn_strict_null_sentinel,
1124 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1125 flag_gen_declaration, flag_no_gnu_keywords,
1126 flag_implement_inlines, flag_implicit_templates,
1127 flag_implicit_inline_templates, flag_optional_diags,
1128 flag_elide_constructors, flag_default_inline, flag_rtti,
1129 flag_conserve_space, flag_access_control, flag_check_new,
1130 flag_new_for_scope, flag_weak, flag_working_directory,
1131 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1132 flag_enforce_eh_specs, flag_threadsafe_statics,
1133 flag_pretty_templates): Remove.
1134 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1135 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1136 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1137 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1138 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1139 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1140 flag_no_gnu_keywords, flag_implement_inlines,
1141 flag_implicit_templates, flag_implicit_inline_templates,
1142 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1143 flag_rtti, flag_conserve_space, flag_access_control,
1144 flag_check_new, flag_new_for_scope, flag_weak,
1145 flag_working_directory, flag_use_cxa_atexit,
1146 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1147 flag_threadsafe_statics, flag_pretty_templates,
1148 warn_strict_null_sentinel): Remove.
1149 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1150 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1151 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1152 fimplicit-inline-templates, fimplicit-templates,
1153 flax-vector-conversions, fms-extensions, fnil-receivers,
1154 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1155 frtti, fshort-double, fshort-enums, fshort-wchar,
1156 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1157 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1158 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1159 gen-decls, undef): Use Var.
1160 (fdefault-inline, foptional-diags): Document as doing nothing.
1161 * c-opts.c (c_common_handle_option): Remove cases for options now
1162 using Var. Mark ignored options as such.
1164 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1166 * c-common.c: Moved to here from parent directory.
1167 * c-common.def: Likewise.
1168 * c-common.h: Likewise.
1169 * c-cppbuiltin.c: Likewise.
1170 * c-dump.c: Likewise.
1171 * c-format.c: Likewise.
1172 * c-format.h : Likewise.
1173 * c-gimplify.c: Likewise.
1174 * c-lex.c: Likewise.
1175 * c-omp.c: Likewise.
1177 * c-opts.c: Likewise.
1178 * c-pch.c: Likewise.
1179 * c-ppoutput.c: Likewise.
1180 * c-pragma.c: Likewise.
1181 * c-pragma.h: Likewise.
1182 * c-pretty-print.c: Likewise.
1183 * c-pretty-print.h: Likewise.
1184 * c-semantics.c: Likewise.
1185 * stub-objc.c: Likewise.
1187 * c-common.c: Include gt-c-family-c-common.h.
1188 * c-pragma.c: Include gt-c-family-c-pragma.h.
1190 Copyright (C) 2010, 2011 Free Software Foundation, Inc.
1192 Copying and distribution of this file, with or without modification,
1193 are permitted in any medium without royalty provided the copyright
1194 notice and this notice are preserved.