1 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3 * c-common.c (c_add_case_label): Omit the loc argument to
5 * c-common.h (build_case_label): Remove.
6 * c-semantics.c (build_case_label): Remove.
8 2011-05-05 Joseph Myers <joseph@codesourcery.com>
10 * c-objc.h (objc_start_method_definition): Update prototype.
11 * stub-objc.c (objc_start_method_definition): Add extra parameter.
13 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
15 * c-common.c (check_main_parameter_types): Reindent. Don't use
16 TYPE_ARG_TYPES directly.
17 (handle_nonnull_attribute): Likewise.
18 (sync_resolve_params): Likewise.
19 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
20 to check_format_string.
21 (handle_format_attribute): Likewise.
22 (check_format_string): Take a function type to examine instead of
23 a type list. Use a function_arg_iterator to step through argument
26 2011-05-04 Richard Guenther <rguenther@suse.de>
28 * c-common.c (fix_string_type): Use size_int for index type bounds.
29 (start_fname_decls): Do not pass NULL to build_int_cst.
30 (c_init_attributes): Likewise.
31 * c-lex.c (c_lex_with_flags): Likewise.
33 2011-04-27 Jason Merrill <jason@redhat.com>
35 * c-common.c (make_tree_vector_from_list): New.
36 * c-common.h: Declare it.
38 2011-04-26 Richard Guenther <rguenther@suse.de>
41 * c-ppoutput.c (maybe_print_line): Always optimize newlines
42 for output size with -P.
44 2011-04-20 Jim Meyering <meyering@redhat.com>
46 * c-format.c (init_dollar_format_checking): Remove useless
49 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
51 * c-objc.h (objc_get_interface_ivars): Removed.
52 (objc_detect_field_duplicates): New.
53 * stub-objc.c: Likewise.
55 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
57 * stub-objc.c (objc_declare_protocols): Renamed to
58 objc_declare_protocol.
61 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
63 * stub-objc.c (objc_declare_class): Updated argument name.
65 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
67 * c-common.h (c_common_init_ts): Declare.
68 * c-common.c (c_common_init_ts): Define.
70 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
72 * c-objc.h (objc_build_message_expr): Updated prototype.
73 * stub-objc.c (objc_build_message_expr): Likewise.
75 2011-04-12 Martin Jambor <mjambor@suse.cz>
77 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
80 2011-04-11 Richard Guenther <rguenther@suse.de>
82 * c-common.c (complete_array_type): Build a range type of
85 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
87 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
88 (handle_type_generic_attribute): Likewise.
90 2011-04-07 Jason Merrill <jason@redhat.com>
93 * c-common.c (c_common_truthvalue_conversion): Don't ignore
94 conversion from C++0x scoped enum.
96 2011-04-06 Joseph Myers <joseph@codesourcery.com>
98 * c-target-def.h: New file.
99 * c-target.def: New file.
100 * c-target.h: New file.
101 * c-common.c (targetcm): Don't define here.
102 * c-common.h (default_handle_c_option): Declare.
103 * c-format.c: Include c-target.h instead of target.h.
104 * c-opts.c: Include c-target.h instead of target.h. Explicitly
106 (default_handle_c_option): Move from targhooks.c.
108 2011-03-29 Jakub Jelinek <jakub@redhat.com>
110 PR preprocessor/48248
111 * c-ppoutput.c (print): Add src_file field.
112 (init_pp_output): Initialize it.
113 (maybe_print_line): Don't optimize by adding up to 8 newlines
114 if map->to_file and print.src_file are different file.
115 (print_line): Update print.src_file.
117 2011-03-25 Kai Tietz <ktietz@redhat.com>
119 * c-ada-spec.c (compare_comment): Use filename_cmp
120 instead of strcmp for filename.
122 2011-03-25 Jeff Law <law@redhat.com>
124 * c-family/c-common.c (def_fn_type): Add missing va_end.
126 2011-03-25 Jason Merrill <jason@redhat.com>
128 * c.opt: Add -std=c++03.
130 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
132 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
137 * c-pretty-print.c (pp_c_specifier_qualifier_list):
138 Display allowed attributes for function pointer types.
139 (pp_c_attributes_display): New function to display
140 attributes having affects_type_identity flag set to true.
141 * c-pretty-print.h (pp_c_attributes_display): New prototype.
143 * c-common.c (c_common_attribute_table):
145 (c_common_format_attribute_table): Likewise.
147 2011-03-18 Jason Merrill <jason@redhat.com>
149 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
150 * c-common.h: Don't declare it here.
151 * c-common.c: Or define it here.
152 * c-opts.c (c_common_handle_option): Or set it here.
155 * c-common.c (handle_transparent_union_attribute): Don't
156 make a duplicate type in C++.
158 2011-03-15 Jason Merrill <jason@redhat.com>
160 * c-common.c (max_constexpr_depth): New.
161 * c-common.h: Declare it.
162 * c-opts.c (c_common_handle_option): Set it.
163 * c.opt (fconstexpr-depth): New option.
165 2011-03-11 Jason Merrill <jason@redhat.com>
167 * c-common.c (attribute_takes_identifier_p): Add missing const.
170 * c-common.c (attribute_takes_identifier_p): Assume that an
171 unknown attribute takes an identifier.
173 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
176 * c-common.c (c_type_hash): Call list_length instead of iterating
177 through DECL_CHAIN. Rename 'i' to 'n_elements'.
179 2011-02-19 Jakub Jelinek <jakub@redhat.com>
182 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
184 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
186 * c.opt (fobjc-abi-version=) New.
187 (fobjc-nilcheck): New.
189 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
192 * c-common.h (keyword_is_decl_specifier): Declare.
193 * c-common.c (keyword_is_decl_specifier): Define.
194 (keyword_is_function_specifier): New function.
196 2011-01-26 Jakub Jelinek <jakub@redhat.com>
199 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
200 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
203 2011-01-26 Arnaud Charlet <charlet@adacore.com>
205 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
207 2011-01-26 Jakub Jelinek <jakub@redhat.com>
210 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
211 after init_c_lex if pch_file is set.
213 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
216 * c.opt (-fkeep-inline-dllexport): New switch.
218 2011-01-12 Richard Guenther <rguenther@suse.de>
221 * c-common.c (handle_weak_attribute): Warn instead of error
222 on declaring an inline function weak.
224 2011-01-05 Tom Tromey <tromey@redhat.com>
226 * c-common.h (lvalue_error): Update.
227 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
230 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
233 * c-objc.h (objc_finish_message_expr): Added argument to
236 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
238 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
241 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
243 * c-objc.h (objc_maybe_warn_exceptions): New.
244 * stub-objc.c (objc_maybe_warn_exceptions): New.
246 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
248 * c-common.h (readonly_error): Declare.
249 * c-common.c (readonly_error): Define.
251 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
253 * c-common.h (invalid_indirection_error): Declare.
254 * c-common.c (invalid_indirection_error): Define.
256 2010-12-03 Richard Guenther <rguenther@suse.de>
259 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
260 (pp_c_unary_expression): Likewise.
261 (pp_c_expression): Likewise.
263 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
265 * c-common.h (objc_finish_function): New.
266 (objc_non_volatilized_type): Removed.
267 (objc_type_quals_match): Removed.
268 * stub-objc.c (objc_finish_function): New.
269 (objc_non_volatilized_type): Removed.
270 (objc_type_quals_match): Removed.
272 2010-11-30 Joseph Myers <joseph@codesourcery.com>
274 * c-common.h (parse_optimize_options): Declare.
275 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
276 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
278 2010-11-29 Joseph Myers <joseph@codesourcery.com>
280 * c-opts.c (check_deps_environment_vars): Use getenv instead of
282 * c-pch.c (O_BINARY): Don't define here.
283 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
285 2010-11-25 Joseph Myers <joseph@codesourcery.com>
287 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
288 targetm.except_unwind_info.
290 2010-11-23 Joseph Myers <joseph@codesourcery.com>
292 * c-opts.c (c_common_handle_option): Pass location to
293 set_struct_debug_option.
295 2010-11-23 Joseph Myers <joseph@codesourcery.com>
297 * c-common.c (visibility_options): Move from ../opts.c.
298 * c-common.h (struct visibility_flags, visibility_options):
300 * c-opts.c (finish_options): Rename to c_finish_options.
301 (c_common_init): Update call to finish_options.
303 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
306 * c-lex.c (lex_string): Check that each string in an Objective-C
307 string concat sequence starts with either one or zero '@', and
308 that there are no spurious '@' signs at the end.
310 2010-11-20 Joseph Myers <joseph@codesourcery.com>
312 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
313 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
314 HANDLE_PRAGMA_VISIBILITY.
315 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
316 HANDLE_PRAGMA_VISIBILITY): Don't define.
317 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
319 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
324 * c-common.h (keyword_begins_type_specifier): Declare.
325 (keyword_is_storage_class_specifier): Declare.
326 (keyword_is_type_qualifier): Declare.
327 * c-common.c (keyword_begins_type_specifier): New function.
328 (keyword_is_storage_class_specifier): New function.
329 (keyword_is_type_qualifier): Declare.
331 2010-11-19 Joseph Myers <joseph@codesourcery.com>
334 * c-common.c (in_late_binary_op): Define.
335 (c_common_truthvalue_conversion): Check in_late_binary_op before
337 * c-common.h (in_late_binary_op): Declare.
339 2010-11-19 Joseph Myers <joseph@codesourcery.com>
341 * c-opts.c (c_common_handle_option): Update calls to
342 set_struct_debug_option.
344 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
346 * c-common.h (objc_declare_protocols): Added additional argument.
347 * stub-objc.c (objc_declare_protocol): Same change.
349 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
352 * c-common.h (build_real_imag_expr): Declare.
353 * c-semantics.c (build_real_imag_expr): Define.
355 2010-11-17 Joseph Myers <joseph@codesourcery.com>
357 * c-opts.c (c_common_parse_file): Take no arguments.
358 * c-common.h (c_common_parse_file): Update prototype.
360 2010-11-16 Jakub Jelinek <jakub@redhat.com>
363 * c-common.c (warning_candidate_p): Don't track non-const calls
366 2010-11-15 Ian Lance Taylor <iant@google.com>
368 * c-lex.c (init_c_lex): Set macro debug callbacks if
369 flag_dump_go_spec is set.
371 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
373 * c-common.h (objc_build_incr_expr_for_property_ref): New.
374 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
376 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
378 PR preprocessor/45038
379 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
382 2010-11-12 Joseph Myers <joseph@codesourcery.com>
384 * c-common.h (c_family_lang_mask): Declare.
385 * c-opts.c (c_family_lang_mask): Make extern.
386 * c-pragma.c (handle_pragma_diagnostic): Use
387 control_warning_option.
389 2010-11-12 Joseph Myers <joseph@codesourcery.com>
391 * c-common.c (parse_optimize_options): Update call to
393 * c-common.h (c_common_handle_option): Update prototype.
394 * c-opts.c (c_common_handle_option): Take location_t parameter and
395 pass it to other functions.
397 2010-11-11 Joseph Myers <joseph@codesourcery.com>
399 * c-opts.c (warning_as_error_callback): Remove.
400 (c_common_initialize_diagnostics): Don't call
401 register_warning_as_error_callback.
402 (c_common_handle_option): Handle -Werror=normalized= here.
404 2010-11-10 Joseph Myers <joseph@codesourcery.com>
406 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
408 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
410 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
411 Remove trailing '.' from diagnostics.
412 * c.opt (Wwrite-strings_: Avoid '`' in help text.
414 2010-11-10 Joseph Myers <joseph@codesourcery.com>
416 * c-common.c (parse_optimize_options): Pass global_dc to
418 * c-opts.c (c_common_handle_option): Pass &global_options to
419 set_Wstrict_aliasing.
420 * c.opt (v): Don't mark Common or document here.
422 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
425 * c-format.c (format_type): New type gcc_objc_string_format_type.
426 (valid_stringptr_type_p): New.
427 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
428 (check_format_string): Pass expected type, use
429 valid_stringptr_type_p (), check that the format string types are
430 consistent with the format specification.
431 (decode_format_attr): Warn if NSString is used outside objective-c.
432 (format_types_orig): Add NSString.
435 (check_format_arg): Handle format strings requiring an external parser.
436 first_target_format_type: New variable.
437 (handle_format_attribute): Set up first_target_format_type, pass the
438 expected format arg string type to check_format_string().
439 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
440 * stub-objc.c (objc_string_ref_type_p): New.
441 (objc_check_format_arg): New.
443 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
445 Fixed using the Objective-C 2.0 dot-syntax with class names.
446 * c-common.h (objc_build_class_component_ref): New.
447 * stub-objc.c (objc_build_class_component_ref): New.
449 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
451 * c.opt (Wproperty-assign-default): New option.
453 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
455 Implemented -fobjc-std=objc1 flag.
456 * c.opt (fobjc-std=objc1): New option.
458 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
460 Implemented format and noreturn attributes for Objective-C methods.
461 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
462 attribute for Objective-C methods.
464 2010-10-31 Jason Merrill <jason@redhat.com>
466 * c-common.c (conversion_warning, warn_for_collisions_1): Use
469 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
471 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
472 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
473 (objc_add_property_declaration): Removed arguments for copies and
475 (objc_build_getter_call): Renamed to
476 objc_maybe_build_component_ref.
477 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
478 (objc_is_property_ref): New.
479 * c-common.c (c_common_reswords): Removed copies and ivar.
480 * stub-objc.c (objc_add_property_declaration): Removed arguments
482 (objc_build_getter_call): Renamed to
483 objc_maybe_build_component_ref.
484 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
485 (objc_is_property_ref): New.
487 2010-10-29 Arnaud Charlet <charlet@adacore.com>
488 Matthew Gingell <gingell@adacore.com>
490 * c-ada-spec.c (separate_class_package): New function.
491 (pp_ada_tree_identifier): Prefix references to C++ classes with the
492 name of their enclosing package.
493 (print_ada_declaration): Use separate_class_package.
495 2010-10-27 Jason Merrill <jason@redhat.com>
497 * c-common.c (c_common_reswords): Add __is_literal_type.
498 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
500 * c-common.c (check_case_value): Remove special C++ code.
502 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
504 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
505 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
507 (objc_add_property_declaration): Added additional arguments.
508 (objc_property_attribute_kind): Removed.
509 (objc_set_property_attr): Removed.
510 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
512 * stub-objc.c (objc_add_property_declaration): Added additional
514 (objc_set_property_attr): Removed.
516 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
518 * c-common.h (objc_add_property_variable): Renamed to
519 objc_add_property_declaration. Added location argument.
520 * stub-objc.c (objc_add_property_variable): Same change.
522 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
524 * c-common.h (objc_maybe_printable_name): New.
525 * stub-objc.c (objc_maybe_printable_name): New.
527 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
528 Andrew Pinski <pinskia@gmail.com>
530 * c-common.h (c_common_mark_addressable_vec): Declare.
531 * c-common.c (c_common_mark_addressable_vec): New function.
533 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
535 * c-common.h (objc_set_method_type): Removed.
536 (objc_add_method_declaration): Added boolean argument.
537 (objc_start_method_definition): Same change.
538 (objc_build_method_signature): Same change.
539 * stub-objc.c (objc_set_method_type): Removed.
540 (objc_add_method_declaration): Added boolean argument.
541 (objc_start_method_definition): Same change.
542 (objc_build_method_signature): Same change.
544 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
546 * c-common.h (finish_file): Removed.
547 (objc_write_global_declarations): New.
548 * c-opts.c (c_common_parse_file): Do not call finish_file.
549 * stub-objc.c (objc_write_global_declarations): New.
551 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
553 Implemented parsing @synthesize and @dynamic for
554 Objective-C/Objective-C++.
555 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
556 (objc_add_synthesize_declaration): New.
557 (objc_add_dynamic_declaration): New.
558 * c-common.c (c_common_reswords): Add synthesize and dynamic.
559 * stub-objc.c (objc_add_synthesize_declaration): New.
560 (objc_add_dynamic_declaration): New.
562 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
565 * c-cppbuiltin.c (mode_has_fma): Move function here from
566 builtins.c. Don't use the fma optab, instead just use the
567 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
570 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
572 Merge from 'apple/trunk' branch on FSF servers.
574 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
577 * c-common.h (objc_non_volatilized_type): New declaration
578 * stub-objc.c (objc_non_volatilized_type): New stub.
580 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
582 Merge from 'apple/trunk' branch on FSF servers.
584 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
587 * c-common.h (objc_diagnose_private_ivar): New decl.
588 * stub-objc.c (objc_diagnose_private_ivar): New stub.
590 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
592 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
593 * c-common.h (enum rid): Add RID_AT_PACKAGE.
594 (objc_ivar_visibility_kind): New enum.
595 (objc_set_visibility): Adjust prototype to use visibility enum.
596 * stub-objc.c (objc_set_visibility): Adjust stub to use
599 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
601 * c-cppbuiltin.c (builtin_define_float_constants): Emit
602 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
603 has the appropriate fma builtins.
604 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
606 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
608 merge from FSF apple 'trunk' branch.
609 2006 Fariborz Jahanian <fjahanian@apple.com>
611 Radars 4436866, 4505126, 4506903, 4517826
612 * c-common.c (c_common_resword): Define @property and its attributes.
613 * c-common.h: Define property attribute enum entries.
614 (OBJC_IS_PATTR_KEYWORD): New.
615 (objc_property_attribute_kind): New enum.
616 Declare objc_set_property_attr (), objc_add_property_variable (),
617 objc_build_getter_call () and objc_build_setter_call ().
618 * stub-objc.c (objc_set_property_attr): New stub.
619 (objc_add_property_variable): Likewise.
620 (objc_build_getter_call): Likewise.
621 (objc_build_setter_call) Likewise.
623 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
625 merge from FSF apple 'trunk' branch.
626 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
628 Radar 3803157 (method attributes)
629 * c-common.c (handle_deprecated_attribute): Recognize
630 objc methods as valid declarations.
631 * c-common.h: Declare objc_method_decl ().
632 * stub-objc.c (objc_method_decl): New stub.
634 2010-10-08 Joseph Myers <joseph@codesourcery.com>
636 * c-common.c (parse_optimize_options): Call
637 decode_cmdline_options_to_array_default_mask before
638 decode_options. Update arguments to decode_options.
639 * c-common.h (c_common_init_options_struct): Declare.
640 * c-opts.c (c_common_init_options_struct): New. Split out from
641 c_common_init_options.
643 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
645 Implemented fast enumeration for Objective-C.
646 * c-common.h (objc_finish_foreach_loop): New.
647 * stub-objc.c (objc_finish_foreach_loop): New.
649 2010-10-05 Joseph Myers <joseph@codesourcery.com>
651 * c-common.h (struct diagnostic_context): Don't declare here.
652 (c_common_initialize_diagnostics): Declare using
653 diagnostic_context typedef.
654 * c-opts.c (c_common_handle_option): Pass global_dc to
655 handle_generated_option.
657 2010-10-04 Joseph Myers <joseph@codesourcery.com>
659 * c-opts.c (c_common_handle_option): Pass &global_options_set to
660 handle_generated_option.
662 2010-10-03 Ian Lance Taylor <iant@google.com>
664 * c.opt (-fplan9-extensions): New option.
666 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
668 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
670 (c_cpp_builtins): Call functions from cppbuiltin.c instead
673 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
675 * c-common.c: Add two new entries for @optional
676 and @required keywords.
678 merge from FSF 'apple/trunk' branch.
679 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
682 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
683 objective-c keywords.
684 (objc_set_method_opt): New declaration.
685 * stub-objc.c (objc_set_method_opt): New stub.
687 2010-09-30 Joseph Myers <joseph@codesourcery.com>
689 * c-common.c (handle_optimize_attribute): Pass &global_options to
690 cl_optimization_save and cl_optimization_restore.
691 * c-opts.c (c_common_handle_option): Pass &global_options to
692 handle_generated_option.
693 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
694 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
695 &global_options to cl_optimization_restore.
697 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
699 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
700 Objective-C/Objective-C++ keywords.
702 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
704 Merge from 'apple/trunk' branch on FSF servers.
706 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
709 * c-common.h (objc_check_global_decl): New declaration.
710 * stub-objc.c (objc_check_global_decl): New stub.
712 2010-09-29 Joseph Myers <joseph@codesourcery.com>
714 * c.opt: Don't use VarExists.
716 2010-09-29 Joseph Myers <joseph@codesourcery.com>
718 * c-common.c (c_cpp_error): Update names of diagnostic_context
720 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
721 cl_optimization members.
722 * c-opts.c (warning_as_error_callback, c_common_handle_option,
723 sanitize_cpp_opts, finish_options): Update names of cpp_options
726 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
728 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
729 (objc_is_reserved_word): Removed.
730 * c-common.c: Updated comments.
731 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
732 objc_is_reserved_word.
733 * stub-objc.c (objc_is_reserved_word): Removed.
735 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
737 * c-common.h (objc_add_method_declaration): Adjust prototype to
739 (objc_start_method_definition): Likewise.
740 (objc_build_keyword_decl): Likewise.
741 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
742 (objc_start_method_definition): Likewise.
743 (objc_build_keyword_decl): Likewise.
745 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
747 * c-common.h (objc_start_class_interface): Adjust prototype.
748 (objc_start_category_interface): Likewise.
749 (objc_start_protocol): Likewise.
750 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
751 (objc_start_class_interface): Likewise.
752 (objc_start_category_interface): Likewise.
754 2010-09-27 Ian Lance Taylor <iant@google.com>
756 * c-common.c (c_common_attribute_table): Add no_split_stack.
757 (handle_no_split_stack_attribute): New static function.
759 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
761 Merge from 'apple/trunk' branch on FSF servers.
763 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
766 * c-common.h (objc_have_common_type): New declaration.
767 * stub-objc.c (objc_have_common_type): New stub.
769 2005-06-22 Ziemowit Laski <zlaski@apple.com>
772 * c-common.h (objc_common_type): New prototype.
773 * stub-objc.c (objc_common_type): New stub.
775 2010-09-24 Jan Hubicka <jh@suse.cz>
777 * c-common.c (handle_leaf_attribute): New function.
778 (struct attribute_spec c_common_att): Add leaf.
780 2010-09-22 Joseph Myers <joseph@codesourcery.com>
782 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
783 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
784 -dump, -dump=, -imacros, -imacros=, -include, -include=,
785 -include-barrier, -include-directory, -include-directory=,
786 -include-directory-after, -include-directory-after=,
787 -include-prefix, -include-prefix=, -include-with-prefix,
788 -include-with-prefix=, -include-with-prefix-after,
789 -include-with-prefix-after=, -include-with-prefix-before,
790 -include-with-prefix-before=, -no-integrated-cpp,
791 -no-line-commands, -no-standard-includes, -no-warnings, -output,
792 -output=, -pedantic, -pedantic-errors, -preprocess,
793 -print-missing-file-dependencies, -trace-includes, -traditional,
794 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
795 -user-dependencies, -verbose, -write-dependencies,
796 -write-user-dependencies, no-integrated-cpp, traditional): New.
798 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
801 * c-common.h (objc_start_method_definition): Return bool instead
803 * stub-objc.c (objc_start_method_definition): Return bool instead
806 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
809 * c-common.h (objc_get_interface_ivars): New declaration.
810 * stub-objc.c (objc_get_interface_ivars): New stub.
812 2010-09-15 Ian Lance Taylor <iant@google.com>
814 * c-common.c (parse_optimize_options): Do not capitalize warning
815 messages. Remove period at end of warning message.
817 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
819 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
820 (handle_alias_attribute): ... here.
821 (handle_ifunc_attribute): New.
823 2010-09-06 Mark Mitchell <mark@codesourcery.com>
825 * c-common.h (do_warn_double_promotion): Declare.
826 * c-common.c (do_warn_double_promotion): Define.
828 2010-09-05 Mark Mitchell <mark@codesourcery.com>
830 * c.opt (Wdouble-promotion): New.
832 2010-09-02 Joseph Myers <joseph@codesourcery.com>
834 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
835 fvtable-thunks, fxref): Mark no longer supported in help text.
837 2010-09-02 Joseph Myers <joseph@codesourcery.com>
839 * c.opt (Wimport, fall-virtual, falt-external-templates,
840 fdefault-inline, fenum-int-equiv, fexternal-templates,
841 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
842 fname-mangling-version-, fnew-abi, fnonnull-objects,
843 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
844 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
846 (fhandle-exceptions): Mark with Alias and Warn.
847 * c-opts.c (c_common_handle_option): Don't handle options marked
850 2010-09-02 Joseph Myers <joseph@codesourcery.com>
852 * c.opt (Wcomments, Werror-implicit-function-declaration,
853 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
854 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
856 * c-common.c (option_codes): Use OPT_Wcomment instead of
858 * c-opts.c (warning_as_error_callback, c_common_handle_option):
859 Don't handle options marked as aliases.
861 2010-08-25 Richard Guenther <rguenther@suse.de>
863 * c-common.c (c_common_get_alias_set): Remove special
864 handling for pointers.
866 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
868 * c-common.c: Use FOR_EACH_VEC_ELT.
869 * c-gimplify.c: Likewise.
870 * c-pragma.c: Likewise.
872 2010-08-16 Joseph Myers <joseph@codesourcery.com>
874 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
876 (MMDX): Change back to MMD. Mark NoDriverArg instead of
878 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
879 instead of OPT_MDX and OPT_MMDX.
881 2010-08-16 Joseph Myers <joseph@codesourcery.com>
883 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
885 2010-08-12 Joseph Myers <joseph@codesourcery.com>
887 * c.opt (MD, MMD): Change to MDX and MMDX.
888 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
890 2010-08-11 Joseph Myers <joseph@codesourcery.com>
892 * c-opts.c (c_common_handle_option): Call handle_generated_option
893 instead of handle_option.
895 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
897 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
898 (maybe_apply_renaming_pragma): Delete unneeded declarations.
900 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
902 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
903 (pending_redefine_extname): Change type to a VEC.
904 (add_to_renaming_pragma_list): Update for new type of
905 pending_redefine_extname.
906 (maybe_apply_renaming_pragma): Likewise.
908 2010-08-04 Arnaud Charlet <charlet@adacore.com>
910 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
912 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
913 decide whether a type has already been declared/seen.
914 Do not go to the original type.
915 (dump_nested_types): New parameter forward.
916 Generate forward declaration if needed and mark type as visited.
917 (print_ada_declaration): Call dump_nested_types if not already done.
918 Mark types as visited.
920 2010-08-03 Joseph Myers <joseph@codesourcery.com>
922 * c.opt (-print-pch-checksum): Remove option.
923 * c-opts.c (c_common_handle_option): Don't handle
924 OPT_print_pch_checksum.
926 2010-07-27 Joseph Myers <joseph@codesourcery.com>
928 * c-common.h (c_common_handle_option): Update prototype and return
930 * c-opts.c (c_common_handle_option): Update prototype and return
931 value type. Update calls to handle_option and
932 enable_warning_as_error.
934 2010-07-27 Jakub Jelinek <jakub@redhat.com>
937 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
939 2010-07-27 Joseph Myers <joseph@codesourcery.com>
941 * c-common.h (c_common_missing_argument): Remove.
942 * c-opts.c (c_common_missing_argument): Remove.
943 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
944 idirafter, imacros, include, isysroot, isystem, iquote): Add
946 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
948 2010-07-27 Joseph Myers <joseph@codesourcery.com>
950 * c-common.h (c_common_option_lang_mask,
951 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
953 (c_common_init_options): Update prototype.
954 * c-opts.c (c_common_option_lang_mask): New.
955 (c_common_initialize_diagnostics): Split out of
956 c_common_init_options.
957 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
959 (c_common_init_options): Update prototype. Use decoded options in
960 search for -lang-asm.
962 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
964 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
965 * c-format.c: Likewise.
967 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
969 * c-common.h: Include diagnostic-core.h. Error if already
971 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
973 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
975 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
976 Do not include expr.h
977 (vector_mode_valid_p): Move here.
979 2010-06-21 DJ Delorie <dj@redhat.com>
981 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
982 allow these pragmas anywhere.
984 2010-06-14 Jakub Jelinek <jakub@redhat.com>
987 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
988 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
989 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
990 ggc_strdup instead of xstrdup.
992 2010-06-10 Jakub Jelinek <jakub@redhat.com>
994 * c-cppbuiltin.c: Include cpp-id-data.h.
995 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
996 (lazy_hex_fp_value): New function.
997 (builtin_define_with_hex_fp_value): Provide definitions lazily.
999 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1001 * c-gimplify.c: Do not include tree-flow.h
1003 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1006 * c-common.c: Rename targetm member:
1007 targetm.enum_va_list -> targetm.enum_va_list_p
1009 2010-06-28 Anatoly Sokolov <aesok@post.ru>
1011 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1013 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1015 * c-cppbuiltin.c: Do not include except.h.
1017 2010-06-24 Andi Kleen <ak@linux.intel.com>
1019 * c-common.c (warn_for_omitted_condop): New.
1020 * c-common.h (warn_for_omitted_condop): Add prototype.
1022 2010-06-21 Joseph Myers <joseph@codesourcery.com>
1024 * c.opt (lang-objc): Remove.
1025 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1027 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1029 * c-opts.c: Include "tm_p.h".
1031 2010-06-20 Joseph Myers <joseph@codesourcery.com>
1033 * c-common.c (parse_optimize_options): Update call to
1036 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1038 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1039 new type of types_used_by_cur_var_decl.
1041 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1044 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1045 for C++ standard compliance.
1047 2010-06-16 Jason Merrill <jason@redhat.com>
1049 * c.opt: Add -Wnoexcept.
1051 2010-06-16 Richard Guenther <rguenther@suse.de>
1054 * c-common.c (c_common_truthvalue_conversion): Remove
1055 premature and wrong optimization concering ADDR_EXPRs.
1057 2010-06-15 Arnaud Charlet <charlet@adacore.com>
1059 * c-ada-spec.c (dump_sloc): Remove column info.
1060 (is_simple_enum): New function.
1061 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1062 enum types when relevant.
1064 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1066 * c-common.c (conversion_warning): Warn at expression
1069 2010-06-10 Joseph Myers <joseph@codesourcery.com>
1071 * c-opts.c (c_common_handle_option): Don't handle
1074 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1076 * c-pragma.c (push_alignment): Use typed GC allocation.
1077 (handle_pragma_push_options): Likewise.
1079 * c-common.c (parse_optimize_options): Likewise.
1081 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1084 2010-06-07 Joseph Myers <joseph@codesourcery.com>
1086 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1087 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1088 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1089 flag_signed_bitfields, warn_strict_null_sentinel,
1090 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1091 flag_gen_declaration, flag_no_gnu_keywords,
1092 flag_implement_inlines, flag_implicit_templates,
1093 flag_implicit_inline_templates, flag_optional_diags,
1094 flag_elide_constructors, flag_default_inline, flag_rtti,
1095 flag_conserve_space, flag_access_control, flag_check_new,
1096 flag_new_for_scope, flag_weak, flag_working_directory,
1097 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1098 flag_enforce_eh_specs, flag_threadsafe_statics,
1099 flag_pretty_templates): Remove.
1100 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1101 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1102 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1103 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1104 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1105 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1106 flag_no_gnu_keywords, flag_implement_inlines,
1107 flag_implicit_templates, flag_implicit_inline_templates,
1108 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1109 flag_rtti, flag_conserve_space, flag_access_control,
1110 flag_check_new, flag_new_for_scope, flag_weak,
1111 flag_working_directory, flag_use_cxa_atexit,
1112 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1113 flag_threadsafe_statics, flag_pretty_templates,
1114 warn_strict_null_sentinel): Remove.
1115 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1116 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1117 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1118 fimplicit-inline-templates, fimplicit-templates,
1119 flax-vector-conversions, fms-extensions, fnil-receivers,
1120 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1121 frtti, fshort-double, fshort-enums, fshort-wchar,
1122 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1123 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1124 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1125 gen-decls, undef): Use Var.
1126 (fdefault-inline, foptional-diags): Document as doing nothing.
1127 * c-opts.c (c_common_handle_option): Remove cases for options now
1128 using Var. Mark ignored options as such.
1130 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1132 * c-common.c: Moved to here from parent directory.
1133 * c-common.def: Likewise.
1134 * c-common.h: Likewise.
1135 * c-cppbuiltin.c: Likewise.
1136 * c-dump.c: Likewise.
1137 * c-format.c: Likewise.
1138 * c-format.h : Likewise.
1139 * c-gimplify.c: Likewise.
1140 * c-lex.c: Likewise.
1141 * c-omp.c: Likewise.
1143 * c-opts.c: Likewise.
1144 * c-pch.c: Likewise.
1145 * c-ppoutput.c: Likewise.
1146 * c-pragma.c: Likewise.
1147 * c-pragma.h: Likewise.
1148 * c-pretty-print.c: Likewise.
1149 * c-pretty-print.h: Likewise.
1150 * c-semantics.c: Likewise.
1151 * stub-objc.c: Likewise.
1153 * c-common.c: Include gt-c-family-c-common.h.
1154 * c-pragma.c: Include gt-c-family-c-pragma.h.
1156 Copyright (C) 2010, 2011 Free Software Foundation, Inc.
1158 Copying and distribution of this file, with or without modification,
1159 are permitted in any medium without royalty provided the copyright
1160 notice and this notice are preserved.