1 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
4 (stmt_list_stack): Define.
5 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
6 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
8 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
10 * c-common.c (warning_candidate_p): Check for BLOCKs.
12 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
14 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
17 2011-05-25 Jakub Jelinek <jakub@redhat.com>
19 * c-common.c (def_fn_type): Remove extra va_end.
21 2011-05-23 Jason Merrill <jason@redhat.com>
24 * c-common.c (c_common_get_narrower): New.
25 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
27 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
29 * c-common.h (check_function_arguments): Tweak prototype of
30 check_function_arguments.
31 * c-common.c (check_function_arguments): Likewise. Adjust
32 calls to check_function_nonnull, check_function_format, and
33 check_function_sentinel.
34 (check_function_sentinel): Take a FUNCTION_TYPE rather than
35 separate attributes and typelist arguments. Use
36 FOREACH_FUNCTION_ARGS to iterate over argument types.
38 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
40 * c-common.c (c_common_reswords): Reorder.
41 * c-common.h (rid): Likewise.
43 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
45 * c-common.c (def_fn_type): Don't call build_function_type, call
46 build_function_type_array or build_varargs_function_type_array
48 (c_common_nodes_and_builtins): Likewise.
50 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
52 * c-common.c (c_add_case_label): Omit the loc argument to
54 * c-common.h (build_case_label): Remove.
55 * c-semantics.c (build_case_label): Remove.
57 2011-05-05 Joseph Myers <joseph@codesourcery.com>
59 * c-objc.h (objc_start_method_definition): Update prototype.
60 * stub-objc.c (objc_start_method_definition): Add extra parameter.
62 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
64 * c-common.c (check_main_parameter_types): Reindent. Don't use
65 TYPE_ARG_TYPES directly.
66 (handle_nonnull_attribute): Likewise.
67 (sync_resolve_params): Likewise.
68 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
69 to check_format_string.
70 (handle_format_attribute): Likewise.
71 (check_format_string): Take a function type to examine instead of
72 a type list. Use a function_arg_iterator to step through argument
75 2011-05-04 Richard Guenther <rguenther@suse.de>
77 * c-common.c (fix_string_type): Use size_int for index type bounds.
78 (start_fname_decls): Do not pass NULL to build_int_cst.
79 (c_init_attributes): Likewise.
80 * c-lex.c (c_lex_with_flags): Likewise.
82 2011-04-27 Jason Merrill <jason@redhat.com>
84 * c-common.c (make_tree_vector_from_list): New.
85 * c-common.h: Declare it.
87 2011-04-26 Richard Guenther <rguenther@suse.de>
90 * c-ppoutput.c (maybe_print_line): Always optimize newlines
91 for output size with -P.
93 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
95 * c-common.c (struct c_common_resword): Add __underlying_type.
96 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
98 2011-04-20 Jim Meyering <meyering@redhat.com>
100 * c-format.c (init_dollar_format_checking): Remove useless
103 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
105 * c-objc.h (objc_get_interface_ivars): Removed.
106 (objc_detect_field_duplicates): New.
107 * stub-objc.c: Likewise.
109 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
111 * stub-objc.c (objc_declare_protocols): Renamed to
112 objc_declare_protocol.
113 * c-objc.h: Likewise.
115 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
117 * stub-objc.c (objc_declare_class): Updated argument name.
119 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
121 * c-common.h (c_common_init_ts): Declare.
122 * c-common.c (c_common_init_ts): Define.
124 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
126 * c-objc.h (objc_build_message_expr): Updated prototype.
127 * stub-objc.c (objc_build_message_expr): Likewise.
129 2011-04-12 Martin Jambor <mjambor@suse.cz>
131 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
134 2011-04-11 Richard Guenther <rguenther@suse.de>
136 * c-common.c (complete_array_type): Build a range type of
139 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
141 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
142 (handle_type_generic_attribute): Likewise.
144 2011-04-07 Jason Merrill <jason@redhat.com>
147 * c-common.c (c_common_truthvalue_conversion): Don't ignore
148 conversion from C++0x scoped enum.
150 2011-04-06 Joseph Myers <joseph@codesourcery.com>
152 * c-target-def.h: New file.
153 * c-target.def: New file.
154 * c-target.h: New file.
155 * c-common.c (targetcm): Don't define here.
156 * c-common.h (default_handle_c_option): Declare.
157 * c-format.c: Include c-target.h instead of target.h.
158 * c-opts.c: Include c-target.h instead of target.h. Explicitly
160 (default_handle_c_option): Move from targhooks.c.
162 2011-03-29 Jakub Jelinek <jakub@redhat.com>
164 PR preprocessor/48248
165 * c-ppoutput.c (print): Add src_file field.
166 (init_pp_output): Initialize it.
167 (maybe_print_line): Don't optimize by adding up to 8 newlines
168 if map->to_file and print.src_file are different file.
169 (print_line): Update print.src_file.
171 2011-03-25 Kai Tietz <ktietz@redhat.com>
173 * c-ada-spec.c (compare_comment): Use filename_cmp
174 instead of strcmp for filename.
176 2011-03-25 Jeff Law <law@redhat.com>
178 * c-family/c-common.c (def_fn_type): Add missing va_end.
180 2011-03-25 Jason Merrill <jason@redhat.com>
182 * c.opt: Add -std=c++03.
184 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
186 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
191 * c-pretty-print.c (pp_c_specifier_qualifier_list):
192 Display allowed attributes for function pointer types.
193 (pp_c_attributes_display): New function to display
194 attributes having affects_type_identity flag set to true.
195 * c-pretty-print.h (pp_c_attributes_display): New prototype.
197 * c-common.c (c_common_attribute_table):
199 (c_common_format_attribute_table): Likewise.
201 2011-03-18 Jason Merrill <jason@redhat.com>
203 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
204 * c-common.h: Don't declare it here.
205 * c-common.c: Or define it here.
206 * c-opts.c (c_common_handle_option): Or set it here.
209 * c-common.c (handle_transparent_union_attribute): Don't
210 make a duplicate type in C++.
212 2011-03-15 Jason Merrill <jason@redhat.com>
214 * c-common.c (max_constexpr_depth): New.
215 * c-common.h: Declare it.
216 * c-opts.c (c_common_handle_option): Set it.
217 * c.opt (fconstexpr-depth): New option.
219 2011-03-11 Jason Merrill <jason@redhat.com>
221 * c-common.c (attribute_takes_identifier_p): Add missing const.
224 * c-common.c (attribute_takes_identifier_p): Assume that an
225 unknown attribute takes an identifier.
227 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
230 * c-common.c (c_type_hash): Call list_length instead of iterating
231 through DECL_CHAIN. Rename 'i' to 'n_elements'.
233 2011-02-19 Jakub Jelinek <jakub@redhat.com>
236 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
238 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
240 * c.opt (fobjc-abi-version=) New.
241 (fobjc-nilcheck): New.
243 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
246 * c-common.h (keyword_is_decl_specifier): Declare.
247 * c-common.c (keyword_is_decl_specifier): Define.
248 (keyword_is_function_specifier): New function.
250 2011-01-26 Jakub Jelinek <jakub@redhat.com>
253 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
254 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
257 2011-01-26 Arnaud Charlet <charlet@adacore.com>
259 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
261 2011-01-26 Jakub Jelinek <jakub@redhat.com>
264 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
265 after init_c_lex if pch_file is set.
267 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
270 * c.opt (-fkeep-inline-dllexport): New switch.
272 2011-01-12 Richard Guenther <rguenther@suse.de>
275 * c-common.c (handle_weak_attribute): Warn instead of error
276 on declaring an inline function weak.
278 2011-01-05 Tom Tromey <tromey@redhat.com>
280 * c-common.h (lvalue_error): Update.
281 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
284 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
287 * c-objc.h (objc_finish_message_expr): Added argument to
290 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
292 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
295 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
297 * c-objc.h (objc_maybe_warn_exceptions): New.
298 * stub-objc.c (objc_maybe_warn_exceptions): New.
300 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
302 * c-common.h (readonly_error): Declare.
303 * c-common.c (readonly_error): Define.
305 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
307 * c-common.h (invalid_indirection_error): Declare.
308 * c-common.c (invalid_indirection_error): Define.
310 2010-12-03 Richard Guenther <rguenther@suse.de>
313 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
314 (pp_c_unary_expression): Likewise.
315 (pp_c_expression): Likewise.
317 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
319 * c-common.h (objc_finish_function): New.
320 (objc_non_volatilized_type): Removed.
321 (objc_type_quals_match): Removed.
322 * stub-objc.c (objc_finish_function): New.
323 (objc_non_volatilized_type): Removed.
324 (objc_type_quals_match): Removed.
326 2010-11-30 Joseph Myers <joseph@codesourcery.com>
328 * c-common.h (parse_optimize_options): Declare.
329 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
330 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
332 2010-11-29 Joseph Myers <joseph@codesourcery.com>
334 * c-opts.c (check_deps_environment_vars): Use getenv instead of
336 * c-pch.c (O_BINARY): Don't define here.
337 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
339 2010-11-25 Joseph Myers <joseph@codesourcery.com>
341 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
342 targetm.except_unwind_info.
344 2010-11-23 Joseph Myers <joseph@codesourcery.com>
346 * c-opts.c (c_common_handle_option): Pass location to
347 set_struct_debug_option.
349 2010-11-23 Joseph Myers <joseph@codesourcery.com>
351 * c-common.c (visibility_options): Move from ../opts.c.
352 * c-common.h (struct visibility_flags, visibility_options):
354 * c-opts.c (finish_options): Rename to c_finish_options.
355 (c_common_init): Update call to finish_options.
357 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
360 * c-lex.c (lex_string): Check that each string in an Objective-C
361 string concat sequence starts with either one or zero '@', and
362 that there are no spurious '@' signs at the end.
364 2010-11-20 Joseph Myers <joseph@codesourcery.com>
366 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
367 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
368 HANDLE_PRAGMA_VISIBILITY.
369 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
370 HANDLE_PRAGMA_VISIBILITY): Don't define.
371 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
373 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
378 * c-common.h (keyword_begins_type_specifier): Declare.
379 (keyword_is_storage_class_specifier): Declare.
380 (keyword_is_type_qualifier): Declare.
381 * c-common.c (keyword_begins_type_specifier): New function.
382 (keyword_is_storage_class_specifier): New function.
383 (keyword_is_type_qualifier): Declare.
385 2010-11-19 Joseph Myers <joseph@codesourcery.com>
388 * c-common.c (in_late_binary_op): Define.
389 (c_common_truthvalue_conversion): Check in_late_binary_op before
391 * c-common.h (in_late_binary_op): Declare.
393 2010-11-19 Joseph Myers <joseph@codesourcery.com>
395 * c-opts.c (c_common_handle_option): Update calls to
396 set_struct_debug_option.
398 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
400 * c-common.h (objc_declare_protocols): Added additional argument.
401 * stub-objc.c (objc_declare_protocol): Same change.
403 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
406 * c-common.h (build_real_imag_expr): Declare.
407 * c-semantics.c (build_real_imag_expr): Define.
409 2010-11-17 Joseph Myers <joseph@codesourcery.com>
411 * c-opts.c (c_common_parse_file): Take no arguments.
412 * c-common.h (c_common_parse_file): Update prototype.
414 2010-11-16 Jakub Jelinek <jakub@redhat.com>
417 * c-common.c (warning_candidate_p): Don't track non-const calls
420 2010-11-15 Ian Lance Taylor <iant@google.com>
422 * c-lex.c (init_c_lex): Set macro debug callbacks if
423 flag_dump_go_spec is set.
425 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
427 * c-common.h (objc_build_incr_expr_for_property_ref): New.
428 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
430 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
432 PR preprocessor/45038
433 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
436 2010-11-12 Joseph Myers <joseph@codesourcery.com>
438 * c-common.h (c_family_lang_mask): Declare.
439 * c-opts.c (c_family_lang_mask): Make extern.
440 * c-pragma.c (handle_pragma_diagnostic): Use
441 control_warning_option.
443 2010-11-12 Joseph Myers <joseph@codesourcery.com>
445 * c-common.c (parse_optimize_options): Update call to
447 * c-common.h (c_common_handle_option): Update prototype.
448 * c-opts.c (c_common_handle_option): Take location_t parameter and
449 pass it to other functions.
451 2010-11-11 Joseph Myers <joseph@codesourcery.com>
453 * c-opts.c (warning_as_error_callback): Remove.
454 (c_common_initialize_diagnostics): Don't call
455 register_warning_as_error_callback.
456 (c_common_handle_option): Handle -Werror=normalized= here.
458 2010-11-10 Joseph Myers <joseph@codesourcery.com>
460 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
462 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
464 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
465 Remove trailing '.' from diagnostics.
466 * c.opt (Wwrite-strings_: Avoid '`' in help text.
468 2010-11-10 Joseph Myers <joseph@codesourcery.com>
470 * c-common.c (parse_optimize_options): Pass global_dc to
472 * c-opts.c (c_common_handle_option): Pass &global_options to
473 set_Wstrict_aliasing.
474 * c.opt (v): Don't mark Common or document here.
476 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
479 * c-format.c (format_type): New type gcc_objc_string_format_type.
480 (valid_stringptr_type_p): New.
481 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
482 (check_format_string): Pass expected type, use
483 valid_stringptr_type_p (), check that the format string types are
484 consistent with the format specification.
485 (decode_format_attr): Warn if NSString is used outside objective-c.
486 (format_types_orig): Add NSString.
489 (check_format_arg): Handle format strings requiring an external parser.
490 first_target_format_type: New variable.
491 (handle_format_attribute): Set up first_target_format_type, pass the
492 expected format arg string type to check_format_string().
493 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
494 * stub-objc.c (objc_string_ref_type_p): New.
495 (objc_check_format_arg): New.
497 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
499 Fixed using the Objective-C 2.0 dot-syntax with class names.
500 * c-common.h (objc_build_class_component_ref): New.
501 * stub-objc.c (objc_build_class_component_ref): New.
503 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
505 * c.opt (Wproperty-assign-default): New option.
507 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
509 Implemented -fobjc-std=objc1 flag.
510 * c.opt (fobjc-std=objc1): New option.
512 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
514 Implemented format and noreturn attributes for Objective-C methods.
515 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
516 attribute for Objective-C methods.
518 2010-10-31 Jason Merrill <jason@redhat.com>
520 * c-common.c (conversion_warning, warn_for_collisions_1): Use
523 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
525 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
526 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
527 (objc_add_property_declaration): Removed arguments for copies and
529 (objc_build_getter_call): Renamed to
530 objc_maybe_build_component_ref.
531 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
532 (objc_is_property_ref): New.
533 * c-common.c (c_common_reswords): Removed copies and ivar.
534 * stub-objc.c (objc_add_property_declaration): Removed arguments
536 (objc_build_getter_call): Renamed to
537 objc_maybe_build_component_ref.
538 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
539 (objc_is_property_ref): New.
541 2010-10-29 Arnaud Charlet <charlet@adacore.com>
542 Matthew Gingell <gingell@adacore.com>
544 * c-ada-spec.c (separate_class_package): New function.
545 (pp_ada_tree_identifier): Prefix references to C++ classes with the
546 name of their enclosing package.
547 (print_ada_declaration): Use separate_class_package.
549 2010-10-27 Jason Merrill <jason@redhat.com>
551 * c-common.c (c_common_reswords): Add __is_literal_type.
552 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
554 * c-common.c (check_case_value): Remove special C++ code.
556 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
558 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
559 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
561 (objc_add_property_declaration): Added additional arguments.
562 (objc_property_attribute_kind): Removed.
563 (objc_set_property_attr): Removed.
564 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
566 * stub-objc.c (objc_add_property_declaration): Added additional
568 (objc_set_property_attr): Removed.
570 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
572 * c-common.h (objc_add_property_variable): Renamed to
573 objc_add_property_declaration. Added location argument.
574 * stub-objc.c (objc_add_property_variable): Same change.
576 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
578 * c-common.h (objc_maybe_printable_name): New.
579 * stub-objc.c (objc_maybe_printable_name): New.
581 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
582 Andrew Pinski <pinskia@gmail.com>
584 * c-common.h (c_common_mark_addressable_vec): Declare.
585 * c-common.c (c_common_mark_addressable_vec): New function.
587 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
589 * c-common.h (objc_set_method_type): Removed.
590 (objc_add_method_declaration): Added boolean argument.
591 (objc_start_method_definition): Same change.
592 (objc_build_method_signature): Same change.
593 * stub-objc.c (objc_set_method_type): Removed.
594 (objc_add_method_declaration): Added boolean argument.
595 (objc_start_method_definition): Same change.
596 (objc_build_method_signature): Same change.
598 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
600 * c-common.h (finish_file): Removed.
601 (objc_write_global_declarations): New.
602 * c-opts.c (c_common_parse_file): Do not call finish_file.
603 * stub-objc.c (objc_write_global_declarations): New.
605 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
607 Implemented parsing @synthesize and @dynamic for
608 Objective-C/Objective-C++.
609 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
610 (objc_add_synthesize_declaration): New.
611 (objc_add_dynamic_declaration): New.
612 * c-common.c (c_common_reswords): Add synthesize and dynamic.
613 * stub-objc.c (objc_add_synthesize_declaration): New.
614 (objc_add_dynamic_declaration): New.
616 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
619 * c-cppbuiltin.c (mode_has_fma): Move function here from
620 builtins.c. Don't use the fma optab, instead just use the
621 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
624 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
626 Merge from 'apple/trunk' branch on FSF servers.
628 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
631 * c-common.h (objc_non_volatilized_type): New declaration
632 * stub-objc.c (objc_non_volatilized_type): New stub.
634 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
636 Merge from 'apple/trunk' branch on FSF servers.
638 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
641 * c-common.h (objc_diagnose_private_ivar): New decl.
642 * stub-objc.c (objc_diagnose_private_ivar): New stub.
644 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
646 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
647 * c-common.h (enum rid): Add RID_AT_PACKAGE.
648 (objc_ivar_visibility_kind): New enum.
649 (objc_set_visibility): Adjust prototype to use visibility enum.
650 * stub-objc.c (objc_set_visibility): Adjust stub to use
653 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
655 * c-cppbuiltin.c (builtin_define_float_constants): Emit
656 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
657 has the appropriate fma builtins.
658 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
660 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
662 merge from FSF apple 'trunk' branch.
663 2006 Fariborz Jahanian <fjahanian@apple.com>
665 Radars 4436866, 4505126, 4506903, 4517826
666 * c-common.c (c_common_resword): Define @property and its attributes.
667 * c-common.h: Define property attribute enum entries.
668 (OBJC_IS_PATTR_KEYWORD): New.
669 (objc_property_attribute_kind): New enum.
670 Declare objc_set_property_attr (), objc_add_property_variable (),
671 objc_build_getter_call () and objc_build_setter_call ().
672 * stub-objc.c (objc_set_property_attr): New stub.
673 (objc_add_property_variable): Likewise.
674 (objc_build_getter_call): Likewise.
675 (objc_build_setter_call) Likewise.
677 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
679 merge from FSF apple 'trunk' branch.
680 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
682 Radar 3803157 (method attributes)
683 * c-common.c (handle_deprecated_attribute): Recognize
684 objc methods as valid declarations.
685 * c-common.h: Declare objc_method_decl ().
686 * stub-objc.c (objc_method_decl): New stub.
688 2010-10-08 Joseph Myers <joseph@codesourcery.com>
690 * c-common.c (parse_optimize_options): Call
691 decode_cmdline_options_to_array_default_mask before
692 decode_options. Update arguments to decode_options.
693 * c-common.h (c_common_init_options_struct): Declare.
694 * c-opts.c (c_common_init_options_struct): New. Split out from
695 c_common_init_options.
697 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
699 Implemented fast enumeration for Objective-C.
700 * c-common.h (objc_finish_foreach_loop): New.
701 * stub-objc.c (objc_finish_foreach_loop): New.
703 2010-10-05 Joseph Myers <joseph@codesourcery.com>
705 * c-common.h (struct diagnostic_context): Don't declare here.
706 (c_common_initialize_diagnostics): Declare using
707 diagnostic_context typedef.
708 * c-opts.c (c_common_handle_option): Pass global_dc to
709 handle_generated_option.
711 2010-10-04 Joseph Myers <joseph@codesourcery.com>
713 * c-opts.c (c_common_handle_option): Pass &global_options_set to
714 handle_generated_option.
716 2010-10-03 Ian Lance Taylor <iant@google.com>
718 * c.opt (-fplan9-extensions): New option.
720 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
722 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
724 (c_cpp_builtins): Call functions from cppbuiltin.c instead
727 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
729 * c-common.c: Add two new entries for @optional
730 and @required keywords.
732 merge from FSF 'apple/trunk' branch.
733 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
736 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
737 objective-c keywords.
738 (objc_set_method_opt): New declaration.
739 * stub-objc.c (objc_set_method_opt): New stub.
741 2010-09-30 Joseph Myers <joseph@codesourcery.com>
743 * c-common.c (handle_optimize_attribute): Pass &global_options to
744 cl_optimization_save and cl_optimization_restore.
745 * c-opts.c (c_common_handle_option): Pass &global_options to
746 handle_generated_option.
747 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
748 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
749 &global_options to cl_optimization_restore.
751 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
753 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
754 Objective-C/Objective-C++ keywords.
756 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
758 Merge from 'apple/trunk' branch on FSF servers.
760 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
763 * c-common.h (objc_check_global_decl): New declaration.
764 * stub-objc.c (objc_check_global_decl): New stub.
766 2010-09-29 Joseph Myers <joseph@codesourcery.com>
768 * c.opt: Don't use VarExists.
770 2010-09-29 Joseph Myers <joseph@codesourcery.com>
772 * c-common.c (c_cpp_error): Update names of diagnostic_context
774 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
775 cl_optimization members.
776 * c-opts.c (warning_as_error_callback, c_common_handle_option,
777 sanitize_cpp_opts, finish_options): Update names of cpp_options
780 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
782 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
783 (objc_is_reserved_word): Removed.
784 * c-common.c: Updated comments.
785 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
786 objc_is_reserved_word.
787 * stub-objc.c (objc_is_reserved_word): Removed.
789 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
791 * c-common.h (objc_add_method_declaration): Adjust prototype to
793 (objc_start_method_definition): Likewise.
794 (objc_build_keyword_decl): Likewise.
795 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
796 (objc_start_method_definition): Likewise.
797 (objc_build_keyword_decl): Likewise.
799 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
801 * c-common.h (objc_start_class_interface): Adjust prototype.
802 (objc_start_category_interface): Likewise.
803 (objc_start_protocol): Likewise.
804 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
805 (objc_start_class_interface): Likewise.
806 (objc_start_category_interface): Likewise.
808 2010-09-27 Ian Lance Taylor <iant@google.com>
810 * c-common.c (c_common_attribute_table): Add no_split_stack.
811 (handle_no_split_stack_attribute): New static function.
813 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
815 Merge from 'apple/trunk' branch on FSF servers.
817 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
820 * c-common.h (objc_have_common_type): New declaration.
821 * stub-objc.c (objc_have_common_type): New stub.
823 2005-06-22 Ziemowit Laski <zlaski@apple.com>
826 * c-common.h (objc_common_type): New prototype.
827 * stub-objc.c (objc_common_type): New stub.
829 2010-09-24 Jan Hubicka <jh@suse.cz>
831 * c-common.c (handle_leaf_attribute): New function.
832 (struct attribute_spec c_common_att): Add leaf.
834 2010-09-22 Joseph Myers <joseph@codesourcery.com>
836 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
837 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
838 -dump, -dump=, -imacros, -imacros=, -include, -include=,
839 -include-barrier, -include-directory, -include-directory=,
840 -include-directory-after, -include-directory-after=,
841 -include-prefix, -include-prefix=, -include-with-prefix,
842 -include-with-prefix=, -include-with-prefix-after,
843 -include-with-prefix-after=, -include-with-prefix-before,
844 -include-with-prefix-before=, -no-integrated-cpp,
845 -no-line-commands, -no-standard-includes, -no-warnings, -output,
846 -output=, -pedantic, -pedantic-errors, -preprocess,
847 -print-missing-file-dependencies, -trace-includes, -traditional,
848 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
849 -user-dependencies, -verbose, -write-dependencies,
850 -write-user-dependencies, no-integrated-cpp, traditional): New.
852 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
855 * c-common.h (objc_start_method_definition): Return bool instead
857 * stub-objc.c (objc_start_method_definition): Return bool instead
860 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
863 * c-common.h (objc_get_interface_ivars): New declaration.
864 * stub-objc.c (objc_get_interface_ivars): New stub.
866 2010-09-15 Ian Lance Taylor <iant@google.com>
868 * c-common.c (parse_optimize_options): Do not capitalize warning
869 messages. Remove period at end of warning message.
871 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
873 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
874 (handle_alias_attribute): ... here.
875 (handle_ifunc_attribute): New.
877 2010-09-06 Mark Mitchell <mark@codesourcery.com>
879 * c-common.h (do_warn_double_promotion): Declare.
880 * c-common.c (do_warn_double_promotion): Define.
882 2010-09-05 Mark Mitchell <mark@codesourcery.com>
884 * c.opt (Wdouble-promotion): New.
886 2010-09-02 Joseph Myers <joseph@codesourcery.com>
888 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
889 fvtable-thunks, fxref): Mark no longer supported in help text.
891 2010-09-02 Joseph Myers <joseph@codesourcery.com>
893 * c.opt (Wimport, fall-virtual, falt-external-templates,
894 fdefault-inline, fenum-int-equiv, fexternal-templates,
895 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
896 fname-mangling-version-, fnew-abi, fnonnull-objects,
897 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
898 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
900 (fhandle-exceptions): Mark with Alias and Warn.
901 * c-opts.c (c_common_handle_option): Don't handle options marked
904 2010-09-02 Joseph Myers <joseph@codesourcery.com>
906 * c.opt (Wcomments, Werror-implicit-function-declaration,
907 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
908 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
910 * c-common.c (option_codes): Use OPT_Wcomment instead of
912 * c-opts.c (warning_as_error_callback, c_common_handle_option):
913 Don't handle options marked as aliases.
915 2010-08-25 Richard Guenther <rguenther@suse.de>
917 * c-common.c (c_common_get_alias_set): Remove special
918 handling for pointers.
920 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
922 * c-common.c: Use FOR_EACH_VEC_ELT.
923 * c-gimplify.c: Likewise.
924 * c-pragma.c: Likewise.
926 2010-08-16 Joseph Myers <joseph@codesourcery.com>
928 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
930 (MMDX): Change back to MMD. Mark NoDriverArg instead of
932 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
933 instead of OPT_MDX and OPT_MMDX.
935 2010-08-16 Joseph Myers <joseph@codesourcery.com>
937 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
939 2010-08-12 Joseph Myers <joseph@codesourcery.com>
941 * c.opt (MD, MMD): Change to MDX and MMDX.
942 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
944 2010-08-11 Joseph Myers <joseph@codesourcery.com>
946 * c-opts.c (c_common_handle_option): Call handle_generated_option
947 instead of handle_option.
949 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
951 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
952 (maybe_apply_renaming_pragma): Delete unneeded declarations.
954 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
956 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
957 (pending_redefine_extname): Change type to a VEC.
958 (add_to_renaming_pragma_list): Update for new type of
959 pending_redefine_extname.
960 (maybe_apply_renaming_pragma): Likewise.
962 2010-08-04 Arnaud Charlet <charlet@adacore.com>
964 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
966 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
967 decide whether a type has already been declared/seen.
968 Do not go to the original type.
969 (dump_nested_types): New parameter forward.
970 Generate forward declaration if needed and mark type as visited.
971 (print_ada_declaration): Call dump_nested_types if not already done.
972 Mark types as visited.
974 2010-08-03 Joseph Myers <joseph@codesourcery.com>
976 * c.opt (-print-pch-checksum): Remove option.
977 * c-opts.c (c_common_handle_option): Don't handle
978 OPT_print_pch_checksum.
980 2010-07-27 Joseph Myers <joseph@codesourcery.com>
982 * c-common.h (c_common_handle_option): Update prototype and return
984 * c-opts.c (c_common_handle_option): Update prototype and return
985 value type. Update calls to handle_option and
986 enable_warning_as_error.
988 2010-07-27 Jakub Jelinek <jakub@redhat.com>
991 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
993 2010-07-27 Joseph Myers <joseph@codesourcery.com>
995 * c-common.h (c_common_missing_argument): Remove.
996 * c-opts.c (c_common_missing_argument): Remove.
997 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
998 idirafter, imacros, include, isysroot, isystem, iquote): Add
1000 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1002 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1004 * c-common.h (c_common_option_lang_mask,
1005 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1007 (c_common_init_options): Update prototype.
1008 * c-opts.c (c_common_option_lang_mask): New.
1009 (c_common_initialize_diagnostics): Split out of
1010 c_common_init_options.
1011 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1013 (c_common_init_options): Update prototype. Use decoded options in
1014 search for -lang-asm.
1016 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1018 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1019 * c-format.c: Likewise.
1021 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1023 * c-common.h: Include diagnostic-core.h. Error if already
1025 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1027 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1029 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1030 Do not include expr.h
1031 (vector_mode_valid_p): Move here.
1033 2010-06-21 DJ Delorie <dj@redhat.com>
1035 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1036 allow these pragmas anywhere.
1038 2010-06-14 Jakub Jelinek <jakub@redhat.com>
1041 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1042 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1043 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1044 ggc_strdup instead of xstrdup.
1046 2010-06-10 Jakub Jelinek <jakub@redhat.com>
1048 * c-cppbuiltin.c: Include cpp-id-data.h.
1049 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1050 (lazy_hex_fp_value): New function.
1051 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1053 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1055 * c-gimplify.c: Do not include tree-flow.h
1057 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1060 * c-common.c: Rename targetm member:
1061 targetm.enum_va_list -> targetm.enum_va_list_p
1063 2010-06-28 Anatoly Sokolov <aesok@post.ru>
1065 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1067 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1069 * c-cppbuiltin.c: Do not include except.h.
1071 2010-06-24 Andi Kleen <ak@linux.intel.com>
1073 * c-common.c (warn_for_omitted_condop): New.
1074 * c-common.h (warn_for_omitted_condop): Add prototype.
1076 2010-06-21 Joseph Myers <joseph@codesourcery.com>
1078 * c.opt (lang-objc): Remove.
1079 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1081 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1083 * c-opts.c: Include "tm_p.h".
1085 2010-06-20 Joseph Myers <joseph@codesourcery.com>
1087 * c-common.c (parse_optimize_options): Update call to
1090 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1092 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1093 new type of types_used_by_cur_var_decl.
1095 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1098 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1099 for C++ standard compliance.
1101 2010-06-16 Jason Merrill <jason@redhat.com>
1103 * c.opt: Add -Wnoexcept.
1105 2010-06-16 Richard Guenther <rguenther@suse.de>
1108 * c-common.c (c_common_truthvalue_conversion): Remove
1109 premature and wrong optimization concering ADDR_EXPRs.
1111 2010-06-15 Arnaud Charlet <charlet@adacore.com>
1113 * c-ada-spec.c (dump_sloc): Remove column info.
1114 (is_simple_enum): New function.
1115 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1116 enum types when relevant.
1118 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1120 * c-common.c (conversion_warning): Warn at expression
1123 2010-06-10 Joseph Myers <joseph@codesourcery.com>
1125 * c-opts.c (c_common_handle_option): Don't handle
1128 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1130 * c-pragma.c (push_alignment): Use typed GC allocation.
1131 (handle_pragma_push_options): Likewise.
1133 * c-common.c (parse_optimize_options): Likewise.
1135 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1138 2010-06-07 Joseph Myers <joseph@codesourcery.com>
1140 * c-common.c (flag_preprocess_only, 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_signed_bitfields, warn_strict_null_sentinel,
1144 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1145 flag_gen_declaration, flag_no_gnu_keywords,
1146 flag_implement_inlines, flag_implicit_templates,
1147 flag_implicit_inline_templates, flag_optional_diags,
1148 flag_elide_constructors, flag_default_inline, flag_rtti,
1149 flag_conserve_space, flag_access_control, flag_check_new,
1150 flag_new_for_scope, flag_weak, flag_working_directory,
1151 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1152 flag_enforce_eh_specs, flag_threadsafe_statics,
1153 flag_pretty_templates): Remove.
1154 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1155 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1156 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1157 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1158 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1159 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1160 flag_no_gnu_keywords, flag_implement_inlines,
1161 flag_implicit_templates, flag_implicit_inline_templates,
1162 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1163 flag_rtti, flag_conserve_space, flag_access_control,
1164 flag_check_new, flag_new_for_scope, flag_weak,
1165 flag_working_directory, flag_use_cxa_atexit,
1166 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1167 flag_threadsafe_statics, flag_pretty_templates,
1168 warn_strict_null_sentinel): Remove.
1169 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1170 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1171 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1172 fimplicit-inline-templates, fimplicit-templates,
1173 flax-vector-conversions, fms-extensions, fnil-receivers,
1174 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1175 frtti, fshort-double, fshort-enums, fshort-wchar,
1176 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1177 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1178 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1179 gen-decls, undef): Use Var.
1180 (fdefault-inline, foptional-diags): Document as doing nothing.
1181 * c-opts.c (c_common_handle_option): Remove cases for options now
1182 using Var. Mark ignored options as such.
1184 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1186 * c-common.c: Moved to here from parent directory.
1187 * c-common.def: Likewise.
1188 * c-common.h: Likewise.
1189 * c-cppbuiltin.c: Likewise.
1190 * c-dump.c: Likewise.
1191 * c-format.c: Likewise.
1192 * c-format.h : Likewise.
1193 * c-gimplify.c: Likewise.
1194 * c-lex.c: Likewise.
1195 * c-omp.c: Likewise.
1197 * c-opts.c: Likewise.
1198 * c-pch.c: Likewise.
1199 * c-ppoutput.c: Likewise.
1200 * c-pragma.c: Likewise.
1201 * c-pragma.h: Likewise.
1202 * c-pretty-print.c: Likewise.
1203 * c-pretty-print.h: Likewise.
1204 * c-semantics.c: Likewise.
1205 * stub-objc.c: Likewise.
1207 * c-common.c: Include gt-c-family-c-common.h.
1208 * c-pragma.c: Include gt-c-family-c-pragma.h.
1210 Copyright (C) 2010, 2011 Free Software Foundation, Inc.
1212 Copying and distribution of this file, with or without modification,
1213 are permitted in any medium without royalty provided the copyright
1214 notice and this notice are preserved.