1 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3 * c-objc.h (objc_get_interface_ivars): Removed.
4 (objc_detect_field_duplicates): New.
5 * stub-objc.c: Likewise.
7 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9 * stub-objc.c (objc_declare_protocols): Renamed to
10 objc_declare_protocol.
13 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
15 * stub-objc.c (objc_declare_class): Updated argument name.
17 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
19 * c-common.h (c_common_init_ts): Declare.
20 * c-common.c (c_common_init_ts): Define.
22 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
24 * c-objc.h (objc_build_message_expr): Updated prototype.
25 * stub-objc.c (objc_build_message_expr): Likewise.
27 2011-04-12 Martin Jambor <mjambor@suse.cz>
29 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
32 2011-04-11 Richard Guenther <rguenther@suse.de>
34 * c-common.c (complete_array_type): Build a range type of
37 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
39 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
40 (handle_type_generic_attribute): Likewise.
42 2011-04-07 Jason Merrill <jason@redhat.com>
45 * c-common.c (c_common_truthvalue_conversion): Don't ignore
46 conversion from C++0x scoped enum.
48 2011-04-06 Joseph Myers <joseph@codesourcery.com>
50 * c-target-def.h: New file.
51 * c-target.def: New file.
52 * c-target.h: New file.
53 * c-common.c (targetcm): Don't define here.
54 * c-common.h (default_handle_c_option): Declare.
55 * c-format.c: Include c-target.h instead of target.h.
56 * c-opts.c: Include c-target.h instead of target.h. Explicitly
58 (default_handle_c_option): Move from targhooks.c.
60 2011-03-29 Jakub Jelinek <jakub@redhat.com>
63 * c-ppoutput.c (print): Add src_file field.
64 (init_pp_output): Initialize it.
65 (maybe_print_line): Don't optimize by adding up to 8 newlines
66 if map->to_file and print.src_file are different file.
67 (print_line): Update print.src_file.
69 2011-03-25 Kai Tietz <ktietz@redhat.com>
71 * c-ada-spec.c (compare_comment): Use filename_cmp
72 instead of strcmp for filename.
74 2011-03-25 Jeff Law <law@redhat.com>
76 * c-family/c-common.c (def_fn_type): Add missing va_end.
78 2011-03-25 Jason Merrill <jason@redhat.com>
80 * c.opt: Add -std=c++03.
82 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
84 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
89 * c-pretty-print.c (pp_c_specifier_qualifier_list):
90 Display allowed attributes for function pointer types.
91 (pp_c_attributes_display): New function to display
92 attributes having affects_type_identity flag set to true.
93 * c-pretty-print.h (pp_c_attributes_display): New prototype.
95 * c-common.c (c_common_attribute_table):
97 (c_common_format_attribute_table): Likewise.
99 2011-03-18 Jason Merrill <jason@redhat.com>
101 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
102 * c-common.h: Don't declare it here.
103 * c-common.c: Or define it here.
104 * c-opts.c (c_common_handle_option): Or set it here.
107 * c-common.c (handle_transparent_union_attribute): Don't
108 make a duplicate type in C++.
110 2011-03-15 Jason Merrill <jason@redhat.com>
112 * c-common.c (max_constexpr_depth): New.
113 * c-common.h: Declare it.
114 * c-opts.c (c_common_handle_option): Set it.
115 * c.opt (fconstexpr-depth): New option.
117 2011-03-11 Jason Merrill <jason@redhat.com>
119 * c-common.c (attribute_takes_identifier_p): Add missing const.
122 * c-common.c (attribute_takes_identifier_p): Assume that an
123 unknown attribute takes an identifier.
125 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
128 * c-common.c (c_type_hash): Call list_length instead of iterating
129 through DECL_CHAIN. Rename 'i' to 'n_elements'.
131 2011-02-19 Jakub Jelinek <jakub@redhat.com>
134 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
136 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
138 * c.opt (fobjc-abi-version=) New.
139 (fobjc-nilcheck): New.
141 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
144 * c-common.h (keyword_is_decl_specifier): Declare.
145 * c-common.c (keyword_is_decl_specifier): Define.
146 (keyword_is_function_specifier): New function.
148 2011-01-26 Jakub Jelinek <jakub@redhat.com>
151 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
152 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
155 2011-01-26 Arnaud Charlet <charlet@adacore.com>
157 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
159 2011-01-26 Jakub Jelinek <jakub@redhat.com>
162 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
163 after init_c_lex if pch_file is set.
165 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
168 * c.opt (-fkeep-inline-dllexport): New switch.
170 2011-01-12 Richard Guenther <rguenther@suse.de>
173 * c-common.c (handle_weak_attribute): Warn instead of error
174 on declaring an inline function weak.
176 2011-01-05 Tom Tromey <tromey@redhat.com>
178 * c-common.h (lvalue_error): Update.
179 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
182 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
185 * c-objc.h (objc_finish_message_expr): Added argument to
188 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
190 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
193 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
195 * c-objc.h (objc_maybe_warn_exceptions): New.
196 * stub-objc.c (objc_maybe_warn_exceptions): New.
198 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
200 * c-common.h (readonly_error): Declare.
201 * c-common.c (readonly_error): Define.
203 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
205 * c-common.h (invalid_indirection_error): Declare.
206 * c-common.c (invalid_indirection_error): Define.
208 2010-12-03 Richard Guenther <rguenther@suse.de>
211 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
212 (pp_c_unary_expression): Likewise.
213 (pp_c_expression): Likewise.
215 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
217 * c-common.h (objc_finish_function): New.
218 (objc_non_volatilized_type): Removed.
219 (objc_type_quals_match): Removed.
220 * stub-objc.c (objc_finish_function): New.
221 (objc_non_volatilized_type): Removed.
222 (objc_type_quals_match): Removed.
224 2010-11-30 Joseph Myers <joseph@codesourcery.com>
226 * c-common.h (parse_optimize_options): Declare.
227 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
228 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
230 2010-11-29 Joseph Myers <joseph@codesourcery.com>
232 * c-opts.c (check_deps_environment_vars): Use getenv instead of
234 * c-pch.c (O_BINARY): Don't define here.
235 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
237 2010-11-25 Joseph Myers <joseph@codesourcery.com>
239 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
240 targetm.except_unwind_info.
242 2010-11-23 Joseph Myers <joseph@codesourcery.com>
244 * c-opts.c (c_common_handle_option): Pass location to
245 set_struct_debug_option.
247 2010-11-23 Joseph Myers <joseph@codesourcery.com>
249 * c-common.c (visibility_options): Move from ../opts.c.
250 * c-common.h (struct visibility_flags, visibility_options):
252 * c-opts.c (finish_options): Rename to c_finish_options.
253 (c_common_init): Update call to finish_options.
255 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
258 * c-lex.c (lex_string): Check that each string in an Objective-C
259 string concat sequence starts with either one or zero '@', and
260 that there are no spurious '@' signs at the end.
262 2010-11-20 Joseph Myers <joseph@codesourcery.com>
264 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
265 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
266 HANDLE_PRAGMA_VISIBILITY.
267 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
268 HANDLE_PRAGMA_VISIBILITY): Don't define.
269 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
271 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
276 * c-common.h (keyword_begins_type_specifier): Declare.
277 (keyword_is_storage_class_specifier): Declare.
278 (keyword_is_type_qualifier): Declare.
279 * c-common.c (keyword_begins_type_specifier): New function.
280 (keyword_is_storage_class_specifier): New function.
281 (keyword_is_type_qualifier): Declare.
283 2010-11-19 Joseph Myers <joseph@codesourcery.com>
286 * c-common.c (in_late_binary_op): Define.
287 (c_common_truthvalue_conversion): Check in_late_binary_op before
289 * c-common.h (in_late_binary_op): Declare.
291 2010-11-19 Joseph Myers <joseph@codesourcery.com>
293 * c-opts.c (c_common_handle_option): Update calls to
294 set_struct_debug_option.
296 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
298 * c-common.h (objc_declare_protocols): Added additional argument.
299 * stub-objc.c (objc_declare_protocol): Same change.
301 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
304 * c-common.h (build_real_imag_expr): Declare.
305 * c-semantics.c (build_real_imag_expr): Define.
307 2010-11-17 Joseph Myers <joseph@codesourcery.com>
309 * c-opts.c (c_common_parse_file): Take no arguments.
310 * c-common.h (c_common_parse_file): Update prototype.
312 2010-11-16 Jakub Jelinek <jakub@redhat.com>
315 * c-common.c (warning_candidate_p): Don't track non-const calls
318 2010-11-15 Ian Lance Taylor <iant@google.com>
320 * c-lex.c (init_c_lex): Set macro debug callbacks if
321 flag_dump_go_spec is set.
323 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
325 * c-common.h (objc_build_incr_expr_for_property_ref): New.
326 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
328 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
330 PR preprocessor/45038
331 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
334 2010-11-12 Joseph Myers <joseph@codesourcery.com>
336 * c-common.h (c_family_lang_mask): Declare.
337 * c-opts.c (c_family_lang_mask): Make extern.
338 * c-pragma.c (handle_pragma_diagnostic): Use
339 control_warning_option.
341 2010-11-12 Joseph Myers <joseph@codesourcery.com>
343 * c-common.c (parse_optimize_options): Update call to
345 * c-common.h (c_common_handle_option): Update prototype.
346 * c-opts.c (c_common_handle_option): Take location_t parameter and
347 pass it to other functions.
349 2010-11-11 Joseph Myers <joseph@codesourcery.com>
351 * c-opts.c (warning_as_error_callback): Remove.
352 (c_common_initialize_diagnostics): Don't call
353 register_warning_as_error_callback.
354 (c_common_handle_option): Handle -Werror=normalized= here.
356 2010-11-10 Joseph Myers <joseph@codesourcery.com>
358 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
360 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
362 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
363 Remove trailing '.' from diagnostics.
364 * c.opt (Wwrite-strings_: Avoid '`' in help text.
366 2010-11-10 Joseph Myers <joseph@codesourcery.com>
368 * c-common.c (parse_optimize_options): Pass global_dc to
370 * c-opts.c (c_common_handle_option): Pass &global_options to
371 set_Wstrict_aliasing.
372 * c.opt (v): Don't mark Common or document here.
374 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
377 * c-format.c (format_type): New type gcc_objc_string_format_type.
378 (valid_stringptr_type_p): New.
379 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
380 (check_format_string): Pass expected type, use
381 valid_stringptr_type_p (), check that the format string types are
382 consistent with the format specification.
383 (decode_format_attr): Warn if NSString is used outside objective-c.
384 (format_types_orig): Add NSString.
387 (check_format_arg): Handle format strings requiring an external parser.
388 first_target_format_type: New variable.
389 (handle_format_attribute): Set up first_target_format_type, pass the
390 expected format arg string type to check_format_string().
391 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
392 * stub-objc.c (objc_string_ref_type_p): New.
393 (objc_check_format_arg): New.
395 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
397 Fixed using the Objective-C 2.0 dot-syntax with class names.
398 * c-common.h (objc_build_class_component_ref): New.
399 * stub-objc.c (objc_build_class_component_ref): New.
401 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
403 * c.opt (Wproperty-assign-default): New option.
405 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
407 Implemented -fobjc-std=objc1 flag.
408 * c.opt (fobjc-std=objc1): New option.
410 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
412 Implemented format and noreturn attributes for Objective-C methods.
413 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
414 attribute for Objective-C methods.
416 2010-10-31 Jason Merrill <jason@redhat.com>
418 * c-common.c (conversion_warning, warn_for_collisions_1): Use
421 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
423 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
424 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
425 (objc_add_property_declaration): Removed arguments for copies and
427 (objc_build_getter_call): Renamed to
428 objc_maybe_build_component_ref.
429 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
430 (objc_is_property_ref): New.
431 * c-common.c (c_common_reswords): Removed copies and ivar.
432 * stub-objc.c (objc_add_property_declaration): Removed arguments
434 (objc_build_getter_call): Renamed to
435 objc_maybe_build_component_ref.
436 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
437 (objc_is_property_ref): New.
439 2010-10-29 Arnaud Charlet <charlet@adacore.com>
440 Matthew Gingell <gingell@adacore.com>
442 * c-ada-spec.c (separate_class_package): New function.
443 (pp_ada_tree_identifier): Prefix references to C++ classes with the
444 name of their enclosing package.
445 (print_ada_declaration): Use separate_class_package.
447 2010-10-27 Jason Merrill <jason@redhat.com>
449 * c-common.c (c_common_reswords): Add __is_literal_type.
450 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
452 * c-common.c (check_case_value): Remove special C++ code.
454 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
456 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
457 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
459 (objc_add_property_declaration): Added additional arguments.
460 (objc_property_attribute_kind): Removed.
461 (objc_set_property_attr): Removed.
462 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
464 * stub-objc.c (objc_add_property_declaration): Added additional
466 (objc_set_property_attr): Removed.
468 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
470 * c-common.h (objc_add_property_variable): Renamed to
471 objc_add_property_declaration. Added location argument.
472 * stub-objc.c (objc_add_property_variable): Same change.
474 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
476 * c-common.h (objc_maybe_printable_name): New.
477 * stub-objc.c (objc_maybe_printable_name): New.
479 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
480 Andrew Pinski <pinskia@gmail.com>
482 * c-common.h (c_common_mark_addressable_vec): Declare.
483 * c-common.c (c_common_mark_addressable_vec): New function.
485 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
487 * c-common.h (objc_set_method_type): Removed.
488 (objc_add_method_declaration): Added boolean argument.
489 (objc_start_method_definition): Same change.
490 (objc_build_method_signature): Same change.
491 * stub-objc.c (objc_set_method_type): Removed.
492 (objc_add_method_declaration): Added boolean argument.
493 (objc_start_method_definition): Same change.
494 (objc_build_method_signature): Same change.
496 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
498 * c-common.h (finish_file): Removed.
499 (objc_write_global_declarations): New.
500 * c-opts.c (c_common_parse_file): Do not call finish_file.
501 * stub-objc.c (objc_write_global_declarations): New.
503 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
505 Implemented parsing @synthesize and @dynamic for
506 Objective-C/Objective-C++.
507 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
508 (objc_add_synthesize_declaration): New.
509 (objc_add_dynamic_declaration): New.
510 * c-common.c (c_common_reswords): Add synthesize and dynamic.
511 * stub-objc.c (objc_add_synthesize_declaration): New.
512 (objc_add_dynamic_declaration): New.
514 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
517 * c-cppbuiltin.c (mode_has_fma): Move function here from
518 builtins.c. Don't use the fma optab, instead just use the
519 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
522 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
524 Merge from 'apple/trunk' branch on FSF servers.
526 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
529 * c-common.h (objc_non_volatilized_type): New declaration
530 * stub-objc.c (objc_non_volatilized_type): New stub.
532 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
534 Merge from 'apple/trunk' branch on FSF servers.
536 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
539 * c-common.h (objc_diagnose_private_ivar): New decl.
540 * stub-objc.c (objc_diagnose_private_ivar): New stub.
542 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
544 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
545 * c-common.h (enum rid): Add RID_AT_PACKAGE.
546 (objc_ivar_visibility_kind): New enum.
547 (objc_set_visibility): Adjust prototype to use visibility enum.
548 * stub-objc.c (objc_set_visibility): Adjust stub to use
551 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
553 * c-cppbuiltin.c (builtin_define_float_constants): Emit
554 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
555 has the appropriate fma builtins.
556 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
558 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
560 merge from FSF apple 'trunk' branch.
561 2006 Fariborz Jahanian <fjahanian@apple.com>
563 Radars 4436866, 4505126, 4506903, 4517826
564 * c-common.c (c_common_resword): Define @property and its attributes.
565 * c-common.h: Define property attribute enum entries.
566 (OBJC_IS_PATTR_KEYWORD): New.
567 (objc_property_attribute_kind): New enum.
568 Declare objc_set_property_attr (), objc_add_property_variable (),
569 objc_build_getter_call () and objc_build_setter_call ().
570 * stub-objc.c (objc_set_property_attr): New stub.
571 (objc_add_property_variable): Likewise.
572 (objc_build_getter_call): Likewise.
573 (objc_build_setter_call) Likewise.
575 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
577 merge from FSF apple 'trunk' branch.
578 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
580 Radar 3803157 (method attributes)
581 * c-common.c (handle_deprecated_attribute): Recognize
582 objc methods as valid declarations.
583 * c-common.h: Declare objc_method_decl ().
584 * stub-objc.c (objc_method_decl): New stub.
586 2010-10-08 Joseph Myers <joseph@codesourcery.com>
588 * c-common.c (parse_optimize_options): Call
589 decode_cmdline_options_to_array_default_mask before
590 decode_options. Update arguments to decode_options.
591 * c-common.h (c_common_init_options_struct): Declare.
592 * c-opts.c (c_common_init_options_struct): New. Split out from
593 c_common_init_options.
595 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
597 Implemented fast enumeration for Objective-C.
598 * c-common.h (objc_finish_foreach_loop): New.
599 * stub-objc.c (objc_finish_foreach_loop): New.
601 2010-10-05 Joseph Myers <joseph@codesourcery.com>
603 * c-common.h (struct diagnostic_context): Don't declare here.
604 (c_common_initialize_diagnostics): Declare using
605 diagnostic_context typedef.
606 * c-opts.c (c_common_handle_option): Pass global_dc to
607 handle_generated_option.
609 2010-10-04 Joseph Myers <joseph@codesourcery.com>
611 * c-opts.c (c_common_handle_option): Pass &global_options_set to
612 handle_generated_option.
614 2010-10-03 Ian Lance Taylor <iant@google.com>
616 * c.opt (-fplan9-extensions): New option.
618 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
620 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
622 (c_cpp_builtins): Call functions from cppbuiltin.c instead
625 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
627 * c-common.c: Add two new entries for @optional
628 and @required keywords.
630 merge from FSF 'apple/trunk' branch.
631 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
634 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
635 objective-c keywords.
636 (objc_set_method_opt): New declaration.
637 * stub-objc.c (objc_set_method_opt): New stub.
639 2010-09-30 Joseph Myers <joseph@codesourcery.com>
641 * c-common.c (handle_optimize_attribute): Pass &global_options to
642 cl_optimization_save and cl_optimization_restore.
643 * c-opts.c (c_common_handle_option): Pass &global_options to
644 handle_generated_option.
645 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
646 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
647 &global_options to cl_optimization_restore.
649 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
651 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
652 Objective-C/Objective-C++ keywords.
654 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
656 Merge from 'apple/trunk' branch on FSF servers.
658 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
661 * c-common.h (objc_check_global_decl): New declaration.
662 * stub-objc.c (objc_check_global_decl): New stub.
664 2010-09-29 Joseph Myers <joseph@codesourcery.com>
666 * c.opt: Don't use VarExists.
668 2010-09-29 Joseph Myers <joseph@codesourcery.com>
670 * c-common.c (c_cpp_error): Update names of diagnostic_context
672 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
673 cl_optimization members.
674 * c-opts.c (warning_as_error_callback, c_common_handle_option,
675 sanitize_cpp_opts, finish_options): Update names of cpp_options
678 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
680 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
681 (objc_is_reserved_word): Removed.
682 * c-common.c: Updated comments.
683 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
684 objc_is_reserved_word.
685 * stub-objc.c (objc_is_reserved_word): Removed.
687 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
689 * c-common.h (objc_add_method_declaration): Adjust prototype to
691 (objc_start_method_definition): Likewise.
692 (objc_build_keyword_decl): Likewise.
693 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
694 (objc_start_method_definition): Likewise.
695 (objc_build_keyword_decl): Likewise.
697 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
699 * c-common.h (objc_start_class_interface): Adjust prototype.
700 (objc_start_category_interface): Likewise.
701 (objc_start_protocol): Likewise.
702 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
703 (objc_start_class_interface): Likewise.
704 (objc_start_category_interface): Likewise.
706 2010-09-27 Ian Lance Taylor <iant@google.com>
708 * c-common.c (c_common_attribute_table): Add no_split_stack.
709 (handle_no_split_stack_attribute): New static function.
711 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
713 Merge from 'apple/trunk' branch on FSF servers.
715 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
718 * c-common.h (objc_have_common_type): New declaration.
719 * stub-objc.c (objc_have_common_type): New stub.
721 2005-06-22 Ziemowit Laski <zlaski@apple.com>
724 * c-common.h (objc_common_type): New prototype.
725 * stub-objc.c (objc_common_type): New stub.
727 2010-09-24 Jan Hubicka <jh@suse.cz>
729 * c-common.c (handle_leaf_attribute): New function.
730 (struct attribute_spec c_common_att): Add leaf.
732 2010-09-22 Joseph Myers <joseph@codesourcery.com>
734 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
735 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
736 -dump, -dump=, -imacros, -imacros=, -include, -include=,
737 -include-barrier, -include-directory, -include-directory=,
738 -include-directory-after, -include-directory-after=,
739 -include-prefix, -include-prefix=, -include-with-prefix,
740 -include-with-prefix=, -include-with-prefix-after,
741 -include-with-prefix-after=, -include-with-prefix-before,
742 -include-with-prefix-before=, -no-integrated-cpp,
743 -no-line-commands, -no-standard-includes, -no-warnings, -output,
744 -output=, -pedantic, -pedantic-errors, -preprocess,
745 -print-missing-file-dependencies, -trace-includes, -traditional,
746 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
747 -user-dependencies, -verbose, -write-dependencies,
748 -write-user-dependencies, no-integrated-cpp, traditional): New.
750 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
753 * c-common.h (objc_start_method_definition): Return bool instead
755 * stub-objc.c (objc_start_method_definition): Return bool instead
758 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
761 * c-common.h (objc_get_interface_ivars): New declaration.
762 * stub-objc.c (objc_get_interface_ivars): New stub.
764 2010-09-15 Ian Lance Taylor <iant@google.com>
766 * c-common.c (parse_optimize_options): Do not capitalize warning
767 messages. Remove period at end of warning message.
769 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
771 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
772 (handle_alias_attribute): ... here.
773 (handle_ifunc_attribute): New.
775 2010-09-06 Mark Mitchell <mark@codesourcery.com>
777 * c-common.h (do_warn_double_promotion): Declare.
778 * c-common.c (do_warn_double_promotion): Define.
780 2010-09-05 Mark Mitchell <mark@codesourcery.com>
782 * c.opt (Wdouble-promotion): New.
784 2010-09-02 Joseph Myers <joseph@codesourcery.com>
786 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
787 fvtable-thunks, fxref): Mark no longer supported in help text.
789 2010-09-02 Joseph Myers <joseph@codesourcery.com>
791 * c.opt (Wimport, fall-virtual, falt-external-templates,
792 fdefault-inline, fenum-int-equiv, fexternal-templates,
793 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
794 fname-mangling-version-, fnew-abi, fnonnull-objects,
795 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
796 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
798 (fhandle-exceptions): Mark with Alias and Warn.
799 * c-opts.c (c_common_handle_option): Don't handle options marked
802 2010-09-02 Joseph Myers <joseph@codesourcery.com>
804 * c.opt (Wcomments, Werror-implicit-function-declaration,
805 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
806 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
808 * c-common.c (option_codes): Use OPT_Wcomment instead of
810 * c-opts.c (warning_as_error_callback, c_common_handle_option):
811 Don't handle options marked as aliases.
813 2010-08-25 Richard Guenther <rguenther@suse.de>
815 * c-common.c (c_common_get_alias_set): Remove special
816 handling for pointers.
818 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
820 * c-common.c: Use FOR_EACH_VEC_ELT.
821 * c-gimplify.c: Likewise.
822 * c-pragma.c: Likewise.
824 2010-08-16 Joseph Myers <joseph@codesourcery.com>
826 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
828 (MMDX): Change back to MMD. Mark NoDriverArg instead of
830 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
831 instead of OPT_MDX and OPT_MMDX.
833 2010-08-16 Joseph Myers <joseph@codesourcery.com>
835 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
837 2010-08-12 Joseph Myers <joseph@codesourcery.com>
839 * c.opt (MD, MMD): Change to MDX and MMDX.
840 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
842 2010-08-11 Joseph Myers <joseph@codesourcery.com>
844 * c-opts.c (c_common_handle_option): Call handle_generated_option
845 instead of handle_option.
847 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
849 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
850 (maybe_apply_renaming_pragma): Delete unneeded declarations.
852 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
854 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
855 (pending_redefine_extname): Change type to a VEC.
856 (add_to_renaming_pragma_list): Update for new type of
857 pending_redefine_extname.
858 (maybe_apply_renaming_pragma): Likewise.
860 2010-08-04 Arnaud Charlet <charlet@adacore.com>
862 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
864 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
865 decide whether a type has already been declared/seen.
866 Do not go to the original type.
867 (dump_nested_types): New parameter forward.
868 Generate forward declaration if needed and mark type as visited.
869 (print_ada_declaration): Call dump_nested_types if not already done.
870 Mark types as visited.
872 2010-08-03 Joseph Myers <joseph@codesourcery.com>
874 * c.opt (-print-pch-checksum): Remove option.
875 * c-opts.c (c_common_handle_option): Don't handle
876 OPT_print_pch_checksum.
878 2010-07-27 Joseph Myers <joseph@codesourcery.com>
880 * c-common.h (c_common_handle_option): Update prototype and return
882 * c-opts.c (c_common_handle_option): Update prototype and return
883 value type. Update calls to handle_option and
884 enable_warning_as_error.
886 2010-07-27 Jakub Jelinek <jakub@redhat.com>
889 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
891 2010-07-27 Joseph Myers <joseph@codesourcery.com>
893 * c-common.h (c_common_missing_argument): Remove.
894 * c-opts.c (c_common_missing_argument): Remove.
895 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
896 idirafter, imacros, include, isysroot, isystem, iquote): Add
898 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
900 2010-07-27 Joseph Myers <joseph@codesourcery.com>
902 * c-common.h (c_common_option_lang_mask,
903 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
905 (c_common_init_options): Update prototype.
906 * c-opts.c (c_common_option_lang_mask): New.
907 (c_common_initialize_diagnostics): Split out of
908 c_common_init_options.
909 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
911 (c_common_init_options): Update prototype. Use decoded options in
912 search for -lang-asm.
914 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
916 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
917 * c-format.c: Likewise.
919 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
921 * c-common.h: Include diagnostic-core.h. Error if already
923 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
925 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
927 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
928 Do not include expr.h
929 (vector_mode_valid_p): Move here.
931 2010-06-21 DJ Delorie <dj@redhat.com>
933 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
934 allow these pragmas anywhere.
936 2010-06-14 Jakub Jelinek <jakub@redhat.com>
939 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
940 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
941 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
942 ggc_strdup instead of xstrdup.
944 2010-06-10 Jakub Jelinek <jakub@redhat.com>
946 * c-cppbuiltin.c: Include cpp-id-data.h.
947 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
948 (lazy_hex_fp_value): New function.
949 (builtin_define_with_hex_fp_value): Provide definitions lazily.
951 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
953 * c-gimplify.c: Do not include tree-flow.h
955 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
958 * c-common.c: Rename targetm member:
959 targetm.enum_va_list -> targetm.enum_va_list_p
961 2010-06-28 Anatoly Sokolov <aesok@post.ru>
963 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
965 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
967 * c-cppbuiltin.c: Do not include except.h.
969 2010-06-24 Andi Kleen <ak@linux.intel.com>
971 * c-common.c (warn_for_omitted_condop): New.
972 * c-common.h (warn_for_omitted_condop): Add prototype.
974 2010-06-21 Joseph Myers <joseph@codesourcery.com>
976 * c.opt (lang-objc): Remove.
977 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
979 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
981 * c-opts.c: Include "tm_p.h".
983 2010-06-20 Joseph Myers <joseph@codesourcery.com>
985 * c-common.c (parse_optimize_options): Update call to
988 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
990 * c-common.c (record_types_used_by_current_var_decl): Adjust for
991 new type of types_used_by_cur_var_decl.
993 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
996 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
997 for C++ standard compliance.
999 2010-06-16 Jason Merrill <jason@redhat.com>
1001 * c.opt: Add -Wnoexcept.
1003 2010-06-16 Richard Guenther <rguenther@suse.de>
1006 * c-common.c (c_common_truthvalue_conversion): Remove
1007 premature and wrong optimization concering ADDR_EXPRs.
1009 2010-06-15 Arnaud Charlet <charlet@adacore.com>
1011 * c-ada-spec.c (dump_sloc): Remove column info.
1012 (is_simple_enum): New function.
1013 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1014 enum types when relevant.
1016 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1018 * c-common.c (conversion_warning): Warn at expression
1021 2010-06-10 Joseph Myers <joseph@codesourcery.com>
1023 * c-opts.c (c_common_handle_option): Don't handle
1026 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1028 * c-pragma.c (push_alignment): Use typed GC allocation.
1029 (handle_pragma_push_options): Likewise.
1031 * c-common.c (parse_optimize_options): Likewise.
1033 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1036 2010-06-07 Joseph Myers <joseph@codesourcery.com>
1038 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1039 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1040 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1041 flag_signed_bitfields, warn_strict_null_sentinel,
1042 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1043 flag_gen_declaration, flag_no_gnu_keywords,
1044 flag_implement_inlines, flag_implicit_templates,
1045 flag_implicit_inline_templates, flag_optional_diags,
1046 flag_elide_constructors, flag_default_inline, flag_rtti,
1047 flag_conserve_space, flag_access_control, flag_check_new,
1048 flag_new_for_scope, flag_weak, flag_working_directory,
1049 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1050 flag_enforce_eh_specs, flag_threadsafe_statics,
1051 flag_pretty_templates): Remove.
1052 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1053 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1054 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1055 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1056 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1057 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1058 flag_no_gnu_keywords, flag_implement_inlines,
1059 flag_implicit_templates, flag_implicit_inline_templates,
1060 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1061 flag_rtti, flag_conserve_space, flag_access_control,
1062 flag_check_new, flag_new_for_scope, flag_weak,
1063 flag_working_directory, flag_use_cxa_atexit,
1064 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1065 flag_threadsafe_statics, flag_pretty_templates,
1066 warn_strict_null_sentinel): Remove.
1067 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1068 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1069 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1070 fimplicit-inline-templates, fimplicit-templates,
1071 flax-vector-conversions, fms-extensions, fnil-receivers,
1072 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1073 frtti, fshort-double, fshort-enums, fshort-wchar,
1074 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1075 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1076 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1077 gen-decls, undef): Use Var.
1078 (fdefault-inline, foptional-diags): Document as doing nothing.
1079 * c-opts.c (c_common_handle_option): Remove cases for options now
1080 using Var. Mark ignored options as such.
1082 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1084 * c-common.c: Moved to here from parent directory.
1085 * c-common.def: Likewise.
1086 * c-common.h: Likewise.
1087 * c-cppbuiltin.c: Likewise.
1088 * c-dump.c: Likewise.
1089 * c-format.c: Likewise.
1090 * c-format.h : Likewise.
1091 * c-gimplify.c: Likewise.
1092 * c-lex.c: Likewise.
1093 * c-omp.c: Likewise.
1095 * c-opts.c: Likewise.
1096 * c-pch.c: Likewise.
1097 * c-ppoutput.c: Likewise.
1098 * c-pragma.c: Likewise.
1099 * c-pragma.h: Likewise.
1100 * c-pretty-print.c: Likewise.
1101 * c-pretty-print.h: Likewise.
1102 * c-semantics.c: Likewise.
1103 * stub-objc.c: Likewise.
1105 * c-common.c: Include gt-c-family-c-common.h.
1106 * c-pragma.c: Include gt-c-family-c-pragma.h.
1108 Copyright (C) 2010 Free Software Foundation, Inc.
1110 Copying and distribution of this file, with or without modification,
1111 are permitted in any medium without royalty provided the copyright
1112 notice and this notice are preserved.