1 2011-03-25 Kai Tietz <ktietz@redhat.com>
3 * c-ada-spec.c (compare_comment): Use filename_cmp
4 instead of strcmp for filename.
6 2011-03-25 Jeff Law <law@redhat.com>
8 * c-family/c-common.c (def_fn_type): Add missing va_end.
10 2011-03-25 Jason Merrill <jason@redhat.com>
12 * c.opt: Add -std=c++03.
14 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
16 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
21 * c-pretty-print.c (pp_c_specifier_qualifier_list):
22 Display allowed attributes for function pointer types.
23 (pp_c_attributes_display): New function to display
24 attributes having affects_type_identity flag set to true.
25 * c-pretty-print.h (pp_c_attributes_display): New prototype.
27 * c-common.c (c_common_attribute_table):
29 (c_common_format_attribute_table): Likewise.
31 2011-03-18 Jason Merrill <jason@redhat.com>
33 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
34 * c-common.h: Don't declare it here.
35 * c-common.c: Or define it here.
36 * c-opts.c (c_common_handle_option): Or set it here.
39 * c-common.c (handle_transparent_union_attribute): Don't
40 make a duplicate type in C++.
42 2011-03-15 Jason Merrill <jason@redhat.com>
44 * c-common.c (max_constexpr_depth): New.
45 * c-common.h: Declare it.
46 * c-opts.c (c_common_handle_option): Set it.
47 * c.opt (fconstexpr-depth): New option.
49 2011-03-11 Jason Merrill <jason@redhat.com>
51 * c-common.c (attribute_takes_identifier_p): Add missing const.
54 * c-common.c (attribute_takes_identifier_p): Assume that an
55 unknown attribute takes an identifier.
57 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
60 * c-common.c (c_type_hash): Call list_length instead of iterating
61 through DECL_CHAIN. Rename 'i' to 'n_elements'.
63 2011-02-19 Jakub Jelinek <jakub@redhat.com>
66 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
68 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
70 * c.opt (fobjc-abi-version=) New.
71 (fobjc-nilcheck): New.
73 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
76 * c-common.h (keyword_is_decl_specifier): Declare.
77 * c-common.c (keyword_is_decl_specifier): Define.
78 (keyword_is_function_specifier): New function.
80 2011-01-26 Jakub Jelinek <jakub@redhat.com>
83 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
84 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
87 2011-01-26 Arnaud Charlet <charlet@adacore.com>
89 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
91 2011-01-26 Jakub Jelinek <jakub@redhat.com>
94 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
95 after init_c_lex if pch_file is set.
97 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
100 * c.opt (-fkeep-inline-dllexport): New switch.
102 2011-01-12 Richard Guenther <rguenther@suse.de>
105 * c-common.c (handle_weak_attribute): Warn instead of error
106 on declaring an inline function weak.
108 2011-01-05 Tom Tromey <tromey@redhat.com>
110 * c-common.h (lvalue_error): Update.
111 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
114 2010-12-29 Nicola Pero <nicola@nicola.brainstorm.co.uk>
117 * c-objc.h (objc_finish_message_expr): Added argument to
120 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
122 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
125 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
127 * c-objc.h (objc_maybe_warn_exceptions): New.
128 * stub-objc.c (objc_maybe_warn_exceptions): New.
130 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
132 * c-common.h (readonly_error): Declare.
133 * c-common.c (readonly_error): Define.
135 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
137 * c-common.h (invalid_indirection_error): Declare.
138 * c-common.c (invalid_indirection_error): Define.
140 2010-12-03 Richard Guenther <rguenther@suse.de>
143 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
144 (pp_c_unary_expression): Likewise.
145 (pp_c_expression): Likewise.
147 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
149 * c-common.h (objc_finish_function): New.
150 (objc_non_volatilized_type): Removed.
151 (objc_type_quals_match): Removed.
152 * stub-objc.c (objc_finish_function): New.
153 (objc_non_volatilized_type): Removed.
154 (objc_type_quals_match): Removed.
156 2010-11-30 Joseph Myers <joseph@codesourcery.com>
158 * c-common.h (parse_optimize_options): Declare.
159 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
160 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
162 2010-11-29 Joseph Myers <joseph@codesourcery.com>
164 * c-opts.c (check_deps_environment_vars): Use getenv instead of
166 * c-pch.c (O_BINARY): Don't define here.
167 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
169 2010-11-25 Joseph Myers <joseph@codesourcery.com>
171 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
172 targetm.except_unwind_info.
174 2010-11-23 Joseph Myers <joseph@codesourcery.com>
176 * c-opts.c (c_common_handle_option): Pass location to
177 set_struct_debug_option.
179 2010-11-23 Joseph Myers <joseph@codesourcery.com>
181 * c-common.c (visibility_options): Move from ../opts.c.
182 * c-common.h (struct visibility_flags, visibility_options):
184 * c-opts.c (finish_options): Rename to c_finish_options.
185 (c_common_init): Update call to finish_options.
187 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
190 * c-lex.c (lex_string): Check that each string in an Objective-C
191 string concat sequence starts with either one or zero '@', and
192 that there are no spurious '@' signs at the end.
194 2010-11-20 Joseph Myers <joseph@codesourcery.com>
196 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
197 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
198 HANDLE_PRAGMA_VISIBILITY.
199 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
200 HANDLE_PRAGMA_VISIBILITY): Don't define.
201 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
203 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
208 * c-common.h (keyword_begins_type_specifier): Declare.
209 (keyword_is_storage_class_specifier): Declare.
210 (keyword_is_type_qualifier): Declare.
211 * c-common.c (keyword_begins_type_specifier): New function.
212 (keyword_is_storage_class_specifier): New function.
213 (keyword_is_type_qualifier): Declare.
215 2010-11-19 Joseph Myers <joseph@codesourcery.com>
218 * c-common.c (in_late_binary_op): Define.
219 (c_common_truthvalue_conversion): Check in_late_binary_op before
221 * c-common.h (in_late_binary_op): Declare.
223 2010-11-19 Joseph Myers <joseph@codesourcery.com>
225 * c-opts.c (c_common_handle_option): Update calls to
226 set_struct_debug_option.
228 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
230 * c-common.h (objc_declare_protocols): Added additional argument.
231 * stub-objc.c (objc_declare_protocol): Same change.
233 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
236 * c-common.h (build_real_imag_expr): Declare.
237 * c-semantics.c (build_real_imag_expr): Define.
239 2010-11-17 Joseph Myers <joseph@codesourcery.com>
241 * c-opts.c (c_common_parse_file): Take no arguments.
242 * c-common.h (c_common_parse_file): Update prototype.
244 2010-11-16 Jakub Jelinek <jakub@redhat.com>
247 * c-common.c (warning_candidate_p): Don't track non-const calls
250 2010-11-15 Ian Lance Taylor <iant@google.com>
252 * c-lex.c (init_c_lex): Set macro debug callbacks if
253 flag_dump_go_spec is set.
255 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
257 * c-common.h (objc_build_incr_expr_for_property_ref): New.
258 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
260 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
262 PR preprocessor/45038
263 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
266 2010-11-12 Joseph Myers <joseph@codesourcery.com>
268 * c-common.h (c_family_lang_mask): Declare.
269 * c-opts.c (c_family_lang_mask): Make extern.
270 * c-pragma.c (handle_pragma_diagnostic): Use
271 control_warning_option.
273 2010-11-12 Joseph Myers <joseph@codesourcery.com>
275 * c-common.c (parse_optimize_options): Update call to
277 * c-common.h (c_common_handle_option): Update prototype.
278 * c-opts.c (c_common_handle_option): Take location_t parameter and
279 pass it to other functions.
281 2010-11-11 Joseph Myers <joseph@codesourcery.com>
283 * c-opts.c (warning_as_error_callback): Remove.
284 (c_common_initialize_diagnostics): Don't call
285 register_warning_as_error_callback.
286 (c_common_handle_option): Handle -Werror=normalized= here.
288 2010-11-10 Joseph Myers <joseph@codesourcery.com>
290 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
292 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
294 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
295 Remove trailing '.' from diagnostics.
296 * c.opt (Wwrite-strings_: Avoid '`' in help text.
298 2010-11-10 Joseph Myers <joseph@codesourcery.com>
300 * c-common.c (parse_optimize_options): Pass global_dc to
302 * c-opts.c (c_common_handle_option): Pass &global_options to
303 set_Wstrict_aliasing.
304 * c.opt (v): Don't mark Common or document here.
306 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
309 * c-format.c (format_type): New type gcc_objc_string_format_type.
310 (valid_stringptr_type_p): New.
311 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
312 (check_format_string): Pass expected type, use
313 valid_stringptr_type_p (), check that the format string types are
314 consistent with the format specification.
315 (decode_format_attr): Warn if NSString is used outside objective-c.
316 (format_types_orig): Add NSString.
319 (check_format_arg): Handle format strings requiring an external parser.
320 first_target_format_type: New variable.
321 (handle_format_attribute): Set up first_target_format_type, pass the
322 expected format arg string type to check_format_string().
323 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
324 * stub-objc.c (objc_string_ref_type_p): New.
325 (objc_check_format_arg): New.
327 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
329 Fixed using the Objective-C 2.0 dot-syntax with class names.
330 * c-common.h (objc_build_class_component_ref): New.
331 * stub-objc.c (objc_build_class_component_ref): New.
333 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
335 * c.opt (Wproperty-assign-default): New option.
337 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
339 Implemented -fobjc-std=objc1 flag.
340 * c.opt (fobjc-std=objc1): New option.
342 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
344 Implemented format and noreturn attributes for Objective-C methods.
345 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
346 attribute for Objective-C methods.
348 2010-10-31 Jason Merrill <jason@redhat.com>
350 * c-common.c (conversion_warning, warn_for_collisions_1): Use
353 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
355 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
356 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
357 (objc_add_property_declaration): Removed arguments for copies and
359 (objc_build_getter_call): Renamed to
360 objc_maybe_build_component_ref.
361 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
362 (objc_is_property_ref): New.
363 * c-common.c (c_common_reswords): Removed copies and ivar.
364 * stub-objc.c (objc_add_property_declaration): Removed arguments
366 (objc_build_getter_call): Renamed to
367 objc_maybe_build_component_ref.
368 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
369 (objc_is_property_ref): New.
371 2010-10-29 Arnaud Charlet <charlet@adacore.com>
372 Matthew Gingell <gingell@adacore.com>
374 * c-ada-spec.c (separate_class_package): New function.
375 (pp_ada_tree_identifier): Prefix references to C++ classes with the
376 name of their enclosing package.
377 (print_ada_declaration): Use separate_class_package.
379 2010-10-27 Jason Merrill <jason@redhat.com>
381 * c-common.c (c_common_reswords): Add __is_literal_type.
382 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
384 * c-common.c (check_case_value): Remove special C++ code.
386 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
388 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
389 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
391 (objc_add_property_declaration): Added additional arguments.
392 (objc_property_attribute_kind): Removed.
393 (objc_set_property_attr): Removed.
394 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
396 * stub-objc.c (objc_add_property_declaration): Added additional
398 (objc_set_property_attr): Removed.
400 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
402 * c-common.h (objc_add_property_variable): Renamed to
403 objc_add_property_declaration. Added location argument.
404 * stub-objc.c (objc_add_property_variable): Same change.
406 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
408 * c-common.h (objc_maybe_printable_name): New.
409 * stub-objc.c (objc_maybe_printable_name): New.
411 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
412 Andrew Pinski <pinskia@gmail.com>
414 * c-common.h (c_common_mark_addressable_vec): Declare.
415 * c-common.c (c_common_mark_addressable_vec): New function.
417 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
419 * c-common.h (objc_set_method_type): Removed.
420 (objc_add_method_declaration): Added boolean argument.
421 (objc_start_method_definition): Same change.
422 (objc_build_method_signature): Same change.
423 * stub-objc.c (objc_set_method_type): Removed.
424 (objc_add_method_declaration): Added boolean argument.
425 (objc_start_method_definition): Same change.
426 (objc_build_method_signature): Same change.
428 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
430 * c-common.h (finish_file): Removed.
431 (objc_write_global_declarations): New.
432 * c-opts.c (c_common_parse_file): Do not call finish_file.
433 * stub-objc.c (objc_write_global_declarations): New.
435 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
437 Implemented parsing @synthesize and @dynamic for
438 Objective-C/Objective-C++.
439 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
440 (objc_add_synthesize_declaration): New.
441 (objc_add_dynamic_declaration): New.
442 * c-common.c (c_common_reswords): Add synthesize and dynamic.
443 * stub-objc.c (objc_add_synthesize_declaration): New.
444 (objc_add_dynamic_declaration): New.
446 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
449 * c-cppbuiltin.c (mode_has_fma): Move function here from
450 builtins.c. Don't use the fma optab, instead just use the
451 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
454 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
456 Merge from 'apple/trunk' branch on FSF servers.
458 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
461 * c-common.h (objc_non_volatilized_type): New declaration
462 * stub-objc.c (objc_non_volatilized_type): New stub.
464 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
466 Merge from 'apple/trunk' branch on FSF servers.
468 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
471 * c-common.h (objc_diagnose_private_ivar): New decl.
472 * stub-objc.c (objc_diagnose_private_ivar): New stub.
474 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
476 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
477 * c-common.h (enum rid): Add RID_AT_PACKAGE.
478 (objc_ivar_visibility_kind): New enum.
479 (objc_set_visibility): Adjust prototype to use visibility enum.
480 * stub-objc.c (objc_set_visibility): Adjust stub to use
483 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
485 * c-cppbuiltin.c (builtin_define_float_constants): Emit
486 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
487 has the appropriate fma builtins.
488 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
490 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
492 merge from FSF apple 'trunk' branch.
493 2006 Fariborz Jahanian <fjahanian@apple.com>
495 Radars 4436866, 4505126, 4506903, 4517826
496 * c-common.c (c_common_resword): Define @property and its attributes.
497 * c-common.h: Define property attribute enum entries.
498 (OBJC_IS_PATTR_KEYWORD): New.
499 (objc_property_attribute_kind): New enum.
500 Declare objc_set_property_attr (), objc_add_property_variable (),
501 objc_build_getter_call () and objc_build_setter_call ().
502 * stub-objc.c (objc_set_property_attr): New stub.
503 (objc_add_property_variable): Likewise.
504 (objc_build_getter_call): Likewise.
505 (objc_build_setter_call) Likewise.
507 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
509 merge from FSF apple 'trunk' branch.
510 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
512 Radar 3803157 (method attributes)
513 * c-common.c (handle_deprecated_attribute): Recognize
514 objc methods as valid declarations.
515 * c-common.h: Declare objc_method_decl ().
516 * stub-objc.c (objc_method_decl): New stub.
518 2010-10-08 Joseph Myers <joseph@codesourcery.com>
520 * c-common.c (parse_optimize_options): Call
521 decode_cmdline_options_to_array_default_mask before
522 decode_options. Update arguments to decode_options.
523 * c-common.h (c_common_init_options_struct): Declare.
524 * c-opts.c (c_common_init_options_struct): New. Split out from
525 c_common_init_options.
527 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
529 Implemented fast enumeration for Objective-C.
530 * c-common.h (objc_finish_foreach_loop): New.
531 * stub-objc.c (objc_finish_foreach_loop): New.
533 2010-10-05 Joseph Myers <joseph@codesourcery.com>
535 * c-common.h (struct diagnostic_context): Don't declare here.
536 (c_common_initialize_diagnostics): Declare using
537 diagnostic_context typedef.
538 * c-opts.c (c_common_handle_option): Pass global_dc to
539 handle_generated_option.
541 2010-10-04 Joseph Myers <joseph@codesourcery.com>
543 * c-opts.c (c_common_handle_option): Pass &global_options_set to
544 handle_generated_option.
546 2010-10-03 Ian Lance Taylor <iant@google.com>
548 * c.opt (-fplan9-extensions): New option.
550 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
552 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
554 (c_cpp_builtins): Call functions from cppbuiltin.c instead
557 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
559 * c-common.c: Add two new entries for @optional
560 and @required keywords.
562 merge from FSF 'apple/trunk' branch.
563 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
566 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
567 objective-c keywords.
568 (objc_set_method_opt): New declaration.
569 * stub-objc.c (objc_set_method_opt): New stub.
571 2010-09-30 Joseph Myers <joseph@codesourcery.com>
573 * c-common.c (handle_optimize_attribute): Pass &global_options to
574 cl_optimization_save and cl_optimization_restore.
575 * c-opts.c (c_common_handle_option): Pass &global_options to
576 handle_generated_option.
577 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
578 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
579 &global_options to cl_optimization_restore.
581 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
583 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
584 Objective-C/Objective-C++ keywords.
586 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
588 Merge from 'apple/trunk' branch on FSF servers.
590 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
593 * c-common.h (objc_check_global_decl): New declaration.
594 * stub-objc.c (objc_check_global_decl): New stub.
596 2010-09-29 Joseph Myers <joseph@codesourcery.com>
598 * c.opt: Don't use VarExists.
600 2010-09-29 Joseph Myers <joseph@codesourcery.com>
602 * c-common.c (c_cpp_error): Update names of diagnostic_context
604 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
605 cl_optimization members.
606 * c-opts.c (warning_as_error_callback, c_common_handle_option,
607 sanitize_cpp_opts, finish_options): Update names of cpp_options
610 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
612 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
613 (objc_is_reserved_word): Removed.
614 * c-common.c: Updated comments.
615 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
616 objc_is_reserved_word.
617 * stub-objc.c (objc_is_reserved_word): Removed.
619 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
621 * c-common.h (objc_add_method_declaration): Adjust prototype to
623 (objc_start_method_definition): Likewise.
624 (objc_build_keyword_decl): Likewise.
625 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
626 (objc_start_method_definition): Likewise.
627 (objc_build_keyword_decl): Likewise.
629 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
631 * c-common.h (objc_start_class_interface): Adjust prototype.
632 (objc_start_category_interface): Likewise.
633 (objc_start_protocol): Likewise.
634 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
635 (objc_start_class_interface): Likewise.
636 (objc_start_category_interface): Likewise.
638 2010-09-27 Ian Lance Taylor <iant@google.com>
640 * c-common.c (c_common_attribute_table): Add no_split_stack.
641 (handle_no_split_stack_attribute): New static function.
643 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
645 Merge from 'apple/trunk' branch on FSF servers.
647 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
650 * c-common.h (objc_have_common_type): New declaration.
651 * stub-objc.c (objc_have_common_type): New stub.
653 2005-06-22 Ziemowit Laski <zlaski@apple.com>
656 * c-common.h (objc_common_type): New prototype.
657 * stub-objc.c (objc_common_type): New stub.
659 2010-09-24 Jan Hubicka <jh@suse.cz>
661 * c-common.c (handle_leaf_attribute): New function.
662 (struct attribute_spec c_common_att): Add leaf.
664 2010-09-22 Joseph Myers <joseph@codesourcery.com>
666 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
667 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
668 -dump, -dump=, -imacros, -imacros=, -include, -include=,
669 -include-barrier, -include-directory, -include-directory=,
670 -include-directory-after, -include-directory-after=,
671 -include-prefix, -include-prefix=, -include-with-prefix,
672 -include-with-prefix=, -include-with-prefix-after,
673 -include-with-prefix-after=, -include-with-prefix-before,
674 -include-with-prefix-before=, -no-integrated-cpp,
675 -no-line-commands, -no-standard-includes, -no-warnings, -output,
676 -output=, -pedantic, -pedantic-errors, -preprocess,
677 -print-missing-file-dependencies, -trace-includes, -traditional,
678 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
679 -user-dependencies, -verbose, -write-dependencies,
680 -write-user-dependencies, no-integrated-cpp, traditional): New.
682 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
685 * c-common.h (objc_start_method_definition): Return bool instead
687 * stub-objc.c (objc_start_method_definition): Return bool instead
690 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
693 * c-common.h (objc_get_interface_ivars): New declaration.
694 * stub-objc.c (objc_get_interface_ivars): New stub.
696 2010-09-15 Ian Lance Taylor <iant@google.com>
698 * c-common.c (parse_optimize_options): Do not capitalize warning
699 messages. Remove period at end of warning message.
701 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
703 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
704 (handle_alias_attribute): ... here.
705 (handle_ifunc_attribute): New.
707 2010-09-06 Mark Mitchell <mark@codesourcery.com>
709 * c-common.h (do_warn_double_promotion): Declare.
710 * c-common.c (do_warn_double_promotion): Define.
712 2010-09-05 Mark Mitchell <mark@codesourcery.com>
714 * c.opt (Wdouble-promotion): New.
716 2010-09-02 Joseph Myers <joseph@codesourcery.com>
718 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
719 fvtable-thunks, fxref): Mark no longer supported in help text.
721 2010-09-02 Joseph Myers <joseph@codesourcery.com>
723 * c.opt (Wimport, fall-virtual, falt-external-templates,
724 fdefault-inline, fenum-int-equiv, fexternal-templates,
725 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
726 fname-mangling-version-, fnew-abi, fnonnull-objects,
727 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
728 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
730 (fhandle-exceptions): Mark with Alias and Warn.
731 * c-opts.c (c_common_handle_option): Don't handle options marked
734 2010-09-02 Joseph Myers <joseph@codesourcery.com>
736 * c.opt (Wcomments, Werror-implicit-function-declaration,
737 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
738 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
740 * c-common.c (option_codes): Use OPT_Wcomment instead of
742 * c-opts.c (warning_as_error_callback, c_common_handle_option):
743 Don't handle options marked as aliases.
745 2010-08-25 Richard Guenther <rguenther@suse.de>
747 * c-common.c (c_common_get_alias_set): Remove special
748 handling for pointers.
750 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
752 * c-common.c: Use FOR_EACH_VEC_ELT.
753 * c-gimplify.c: Likewise.
754 * c-pragma.c: Likewise.
756 2010-08-16 Joseph Myers <joseph@codesourcery.com>
758 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
760 (MMDX): Change back to MMD. Mark NoDriverArg instead of
762 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
763 instead of OPT_MDX and OPT_MMDX.
765 2010-08-16 Joseph Myers <joseph@codesourcery.com>
767 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
769 2010-08-12 Joseph Myers <joseph@codesourcery.com>
771 * c.opt (MD, MMD): Change to MDX and MMDX.
772 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
774 2010-08-11 Joseph Myers <joseph@codesourcery.com>
776 * c-opts.c (c_common_handle_option): Call handle_generated_option
777 instead of handle_option.
779 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
781 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
782 (maybe_apply_renaming_pragma): Delete unneeded declarations.
784 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
786 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
787 (pending_redefine_extname): Change type to a VEC.
788 (add_to_renaming_pragma_list): Update for new type of
789 pending_redefine_extname.
790 (maybe_apply_renaming_pragma): Likewise.
792 2010-08-04 Arnaud Charlet <charlet@adacore.com>
794 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
796 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
797 decide whether a type has already been declared/seen.
798 Do not go to the original type.
799 (dump_nested_types): New parameter forward.
800 Generate forward declaration if needed and mark type as visited.
801 (print_ada_declaration): Call dump_nested_types if not already done.
802 Mark types as visited.
804 2010-08-03 Joseph Myers <joseph@codesourcery.com>
806 * c.opt (-print-pch-checksum): Remove option.
807 * c-opts.c (c_common_handle_option): Don't handle
808 OPT_print_pch_checksum.
810 2010-07-27 Joseph Myers <joseph@codesourcery.com>
812 * c-common.h (c_common_handle_option): Update prototype and return
814 * c-opts.c (c_common_handle_option): Update prototype and return
815 value type. Update calls to handle_option and
816 enable_warning_as_error.
818 2010-07-27 Jakub Jelinek <jakub@redhat.com>
821 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
823 2010-07-27 Joseph Myers <joseph@codesourcery.com>
825 * c-common.h (c_common_missing_argument): Remove.
826 * c-opts.c (c_common_missing_argument): Remove.
827 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
828 idirafter, imacros, include, isysroot, isystem, iquote): Add
830 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
832 2010-07-27 Joseph Myers <joseph@codesourcery.com>
834 * c-common.h (c_common_option_lang_mask,
835 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
837 (c_common_init_options): Update prototype.
838 * c-opts.c (c_common_option_lang_mask): New.
839 (c_common_initialize_diagnostics): Split out of
840 c_common_init_options.
841 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
843 (c_common_init_options): Update prototype. Use decoded options in
844 search for -lang-asm.
846 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
848 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
849 * c-format.c: Likewise.
851 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
853 * c-common.h: Include diagnostic-core.h. Error if already
855 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
857 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
859 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
860 Do not include expr.h
861 (vector_mode_valid_p): Move here.
863 2010-06-21 DJ Delorie <dj@redhat.com>
865 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
866 allow these pragmas anywhere.
868 2010-06-14 Jakub Jelinek <jakub@redhat.com>
871 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
872 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
873 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
874 ggc_strdup instead of xstrdup.
876 2010-06-10 Jakub Jelinek <jakub@redhat.com>
878 * c-cppbuiltin.c: Include cpp-id-data.h.
879 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
880 (lazy_hex_fp_value): New function.
881 (builtin_define_with_hex_fp_value): Provide definitions lazily.
883 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
885 * c-gimplify.c: Do not include tree-flow.h
887 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
890 * c-common.c: Rename targetm member:
891 targetm.enum_va_list -> targetm.enum_va_list_p
893 2010-06-28 Anatoly Sokolov <aesok@post.ru>
895 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
897 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
899 * c-cppbuiltin.c: Do not include except.h.
901 2010-06-24 Andi Kleen <ak@linux.intel.com>
903 * c-common.c (warn_for_omitted_condop): New.
904 * c-common.h (warn_for_omitted_condop): Add prototype.
906 2010-06-21 Joseph Myers <joseph@codesourcery.com>
908 * c.opt (lang-objc): Remove.
909 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
911 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
913 * c-opts.c: Include "tm_p.h".
915 2010-06-20 Joseph Myers <joseph@codesourcery.com>
917 * c-common.c (parse_optimize_options): Update call to
920 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
922 * c-common.c (record_types_used_by_current_var_decl): Adjust for
923 new type of types_used_by_cur_var_decl.
925 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
928 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
929 for C++ standard compliance.
931 2010-06-16 Jason Merrill <jason@redhat.com>
933 * c.opt: Add -Wnoexcept.
935 2010-06-16 Richard Guenther <rguenther@suse.de>
938 * c-common.c (c_common_truthvalue_conversion): Remove
939 premature and wrong optimization concering ADDR_EXPRs.
941 2010-06-15 Arnaud Charlet <charlet@adacore.com>
943 * c-ada-spec.c (dump_sloc): Remove column info.
944 (is_simple_enum): New function.
945 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
946 enum types when relevant.
948 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
950 * c-common.c (conversion_warning): Warn at expression
953 2010-06-10 Joseph Myers <joseph@codesourcery.com>
955 * c-opts.c (c_common_handle_option): Don't handle
958 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
960 * c-pragma.c (push_alignment): Use typed GC allocation.
961 (handle_pragma_push_options): Likewise.
963 * c-common.c (parse_optimize_options): Likewise.
965 * c-common.h (struct sorted_fields_type): Add variable_size GTY
968 2010-06-07 Joseph Myers <joseph@codesourcery.com>
970 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
971 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
972 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
973 flag_signed_bitfields, warn_strict_null_sentinel,
974 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
975 flag_gen_declaration, flag_no_gnu_keywords,
976 flag_implement_inlines, flag_implicit_templates,
977 flag_implicit_inline_templates, flag_optional_diags,
978 flag_elide_constructors, flag_default_inline, flag_rtti,
979 flag_conserve_space, flag_access_control, flag_check_new,
980 flag_new_for_scope, flag_weak, flag_working_directory,
981 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
982 flag_enforce_eh_specs, flag_threadsafe_statics,
983 flag_pretty_templates): Remove.
984 * c-common.h (flag_preprocess_only, flag_nil_receivers,
985 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
986 flag_replace_objc_classes, flag_undef, flag_no_builtin,
987 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
988 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
989 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
990 flag_no_gnu_keywords, flag_implement_inlines,
991 flag_implicit_templates, flag_implicit_inline_templates,
992 flag_optional_diags, flag_elide_constructors, flag_default_inline,
993 flag_rtti, flag_conserve_space, flag_access_control,
994 flag_check_new, flag_new_for_scope, flag_weak,
995 flag_working_directory, flag_use_cxa_atexit,
996 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
997 flag_threadsafe_statics, flag_pretty_templates,
998 warn_strict_null_sentinel): Remove.
999 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1000 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1001 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1002 fimplicit-inline-templates, fimplicit-templates,
1003 flax-vector-conversions, fms-extensions, fnil-receivers,
1004 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1005 frtti, fshort-double, fshort-enums, fshort-wchar,
1006 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1007 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1008 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1009 gen-decls, undef): Use Var.
1010 (fdefault-inline, foptional-diags): Document as doing nothing.
1011 * c-opts.c (c_common_handle_option): Remove cases for options now
1012 using Var. Mark ignored options as such.
1014 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1016 * c-common.c: Moved to here from parent directory.
1017 * c-common.def: Likewise.
1018 * c-common.h: Likewise.
1019 * c-cppbuiltin.c: Likewise.
1020 * c-dump.c: Likewise.
1021 * c-format.c: Likewise.
1022 * c-format.h : Likewise.
1023 * c-gimplify.c: Likewise.
1024 * c-lex.c: Likewise.
1025 * c-omp.c: Likewise.
1027 * c-opts.c: Likewise.
1028 * c-pch.c: Likewise.
1029 * c-ppoutput.c: Likewise.
1030 * c-pragma.c: Likewise.
1031 * c-pragma.h: Likewise.
1032 * c-pretty-print.c: Likewise.
1033 * c-pretty-print.h: Likewise.
1034 * c-semantics.c: Likewise.
1035 * stub-objc.c: Likewise.
1037 * c-common.c: Include gt-c-family-c-common.h.
1038 * c-pragma.c: Include gt-c-family-c-pragma.h.
1040 Copyright (C) 2010 Free Software Foundation, Inc.
1042 Copying and distribution of this file, with or without modification,
1043 are permitted in any medium without royalty provided the copyright
1044 notice and this notice are preserved.