1 2011-03-11 Jason Merrill <jason@redhat.com>
3 * c-common.c (attribute_takes_identifier_p): Add missing const.
6 * c-common.c (attribute_takes_identifier_p): Assume that an
7 unknown attribute takes an identifier.
9 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
12 * c-common.c (c_type_hash): Call list_length instead of iterating
13 through DECL_CHAIN. Rename 'i' to 'n_elements'.
15 2011-02-19 Jakub Jelinek <jakub@redhat.com>
18 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
20 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
22 * c.opt (fobjc-abi-version=) New.
23 (fobjc-nilcheck): New.
25 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
28 * c-common.h (keyword_is_decl_specifier): Declare.
29 * c-common.c (keyword_is_decl_specifier): Define.
30 (keyword_is_function_specifier): New function.
32 2011-01-26 Jakub Jelinek <jakub@redhat.com>
35 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
36 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
39 2011-01-26 Arnaud Charlet <charlet@adacore.com>
41 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
43 2011-01-26 Jakub Jelinek <jakub@redhat.com>
46 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
47 after init_c_lex if pch_file is set.
49 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
52 * c.opt (-fkeep-inline-dllexport): New switch.
54 2011-01-12 Richard Guenther <rguenther@suse.de>
57 * c-common.c (handle_weak_attribute): Warn instead of error
58 on declaring an inline function weak.
60 2011-01-05 Tom Tromey <tromey@redhat.com>
62 * c-common.h (lvalue_error): Update.
63 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
66 2010-12-29 Nicola Pero <nicola@nicola.brainstorm.co.uk>
69 * c-objc.h (objc_finish_message_expr): Added argument to
72 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
74 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
77 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
79 * c-objc.h (objc_maybe_warn_exceptions): New.
80 * stub-objc.c (objc_maybe_warn_exceptions): New.
82 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
84 * c-common.h (readonly_error): Declare.
85 * c-common.c (readonly_error): Define.
87 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
89 * c-common.h (invalid_indirection_error): Declare.
90 * c-common.c (invalid_indirection_error): Define.
92 2010-12-03 Richard Guenther <rguenther@suse.de>
95 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
96 (pp_c_unary_expression): Likewise.
97 (pp_c_expression): Likewise.
99 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
101 * c-common.h (objc_finish_function): New.
102 (objc_non_volatilized_type): Removed.
103 (objc_type_quals_match): Removed.
104 * stub-objc.c (objc_finish_function): New.
105 (objc_non_volatilized_type): Removed.
106 (objc_type_quals_match): Removed.
108 2010-11-30 Joseph Myers <joseph@codesourcery.com>
110 * c-common.h (parse_optimize_options): Declare.
111 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
112 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
114 2010-11-29 Joseph Myers <joseph@codesourcery.com>
116 * c-opts.c (check_deps_environment_vars): Use getenv instead of
118 * c-pch.c (O_BINARY): Don't define here.
119 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
121 2010-11-25 Joseph Myers <joseph@codesourcery.com>
123 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
124 targetm.except_unwind_info.
126 2010-11-23 Joseph Myers <joseph@codesourcery.com>
128 * c-opts.c (c_common_handle_option): Pass location to
129 set_struct_debug_option.
131 2010-11-23 Joseph Myers <joseph@codesourcery.com>
133 * c-common.c (visibility_options): Move from ../opts.c.
134 * c-common.h (struct visibility_flags, visibility_options):
136 * c-opts.c (finish_options): Rename to c_finish_options.
137 (c_common_init): Update call to finish_options.
139 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
142 * c-lex.c (lex_string): Check that each string in an Objective-C
143 string concat sequence starts with either one or zero '@', and
144 that there are no spurious '@' signs at the end.
146 2010-11-20 Joseph Myers <joseph@codesourcery.com>
148 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
149 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
150 HANDLE_PRAGMA_VISIBILITY.
151 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
152 HANDLE_PRAGMA_VISIBILITY): Don't define.
153 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
155 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
160 * c-common.h (keyword_begins_type_specifier): Declare.
161 (keyword_is_storage_class_specifier): Declare.
162 (keyword_is_type_qualifier): Declare.
163 * c-common.c (keyword_begins_type_specifier): New function.
164 (keyword_is_storage_class_specifier): New function.
165 (keyword_is_type_qualifier): Declare.
167 2010-11-19 Joseph Myers <joseph@codesourcery.com>
170 * c-common.c (in_late_binary_op): Define.
171 (c_common_truthvalue_conversion): Check in_late_binary_op before
173 * c-common.h (in_late_binary_op): Declare.
175 2010-11-19 Joseph Myers <joseph@codesourcery.com>
177 * c-opts.c (c_common_handle_option): Update calls to
178 set_struct_debug_option.
180 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
182 * c-common.h (objc_declare_protocols): Added additional argument.
183 * stub-objc.c (objc_declare_protocol): Same change.
185 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
188 * c-common.h (build_real_imag_expr): Declare.
189 * c-semantics.c (build_real_imag_expr): Define.
191 2010-11-17 Joseph Myers <joseph@codesourcery.com>
193 * c-opts.c (c_common_parse_file): Take no arguments.
194 * c-common.h (c_common_parse_file): Update prototype.
196 2010-11-16 Jakub Jelinek <jakub@redhat.com>
199 * c-common.c (warning_candidate_p): Don't track non-const calls
202 2010-11-15 Ian Lance Taylor <iant@google.com>
204 * c-lex.c (init_c_lex): Set macro debug callbacks if
205 flag_dump_go_spec is set.
207 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
209 * c-common.h (objc_build_incr_expr_for_property_ref): New.
210 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
212 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
214 PR preprocessor/45038
215 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
218 2010-11-12 Joseph Myers <joseph@codesourcery.com>
220 * c-common.h (c_family_lang_mask): Declare.
221 * c-opts.c (c_family_lang_mask): Make extern.
222 * c-pragma.c (handle_pragma_diagnostic): Use
223 control_warning_option.
225 2010-11-12 Joseph Myers <joseph@codesourcery.com>
227 * c-common.c (parse_optimize_options): Update call to
229 * c-common.h (c_common_handle_option): Update prototype.
230 * c-opts.c (c_common_handle_option): Take location_t parameter and
231 pass it to other functions.
233 2010-11-11 Joseph Myers <joseph@codesourcery.com>
235 * c-opts.c (warning_as_error_callback): Remove.
236 (c_common_initialize_diagnostics): Don't call
237 register_warning_as_error_callback.
238 (c_common_handle_option): Handle -Werror=normalized= here.
240 2010-11-10 Joseph Myers <joseph@codesourcery.com>
242 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
244 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
246 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
247 Remove trailing '.' from diagnostics.
248 * c.opt (Wwrite-strings_: Avoid '`' in help text.
250 2010-11-10 Joseph Myers <joseph@codesourcery.com>
252 * c-common.c (parse_optimize_options): Pass global_dc to
254 * c-opts.c (c_common_handle_option): Pass &global_options to
255 set_Wstrict_aliasing.
256 * c.opt (v): Don't mark Common or document here.
258 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
261 * c-format.c (format_type): New type gcc_objc_string_format_type.
262 (valid_stringptr_type_p): New.
263 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
264 (check_format_string): Pass expected type, use
265 valid_stringptr_type_p (), check that the format string types are
266 consistent with the format specification.
267 (decode_format_attr): Warn if NSString is used outside objective-c.
268 (format_types_orig): Add NSString.
271 (check_format_arg): Handle format strings requiring an external parser.
272 first_target_format_type: New variable.
273 (handle_format_attribute): Set up first_target_format_type, pass the
274 expected format arg string type to check_format_string().
275 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
276 * stub-objc.c (objc_string_ref_type_p): New.
277 (objc_check_format_arg): New.
279 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
281 Fixed using the Objective-C 2.0 dot-syntax with class names.
282 * c-common.h (objc_build_class_component_ref): New.
283 * stub-objc.c (objc_build_class_component_ref): New.
285 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
287 * c.opt (Wproperty-assign-default): New option.
289 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
291 Implemented -fobjc-std=objc1 flag.
292 * c.opt (fobjc-std=objc1): New option.
294 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
296 Implemented format and noreturn attributes for Objective-C methods.
297 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
298 attribute for Objective-C methods.
300 2010-10-31 Jason Merrill <jason@redhat.com>
302 * c-common.c (conversion_warning, warn_for_collisions_1): Use
305 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
307 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
308 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
309 (objc_add_property_declaration): Removed arguments for copies and
311 (objc_build_getter_call): Renamed to
312 objc_maybe_build_component_ref.
313 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
314 (objc_is_property_ref): New.
315 * c-common.c (c_common_reswords): Removed copies and ivar.
316 * stub-objc.c (objc_add_property_declaration): Removed arguments
318 (objc_build_getter_call): Renamed to
319 objc_maybe_build_component_ref.
320 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
321 (objc_is_property_ref): New.
323 2010-10-29 Arnaud Charlet <charlet@adacore.com>
324 Matthew Gingell <gingell@adacore.com>
326 * c-ada-spec.c (separate_class_package): New function.
327 (pp_ada_tree_identifier): Prefix references to C++ classes with the
328 name of their enclosing package.
329 (print_ada_declaration): Use separate_class_package.
331 2010-10-27 Jason Merrill <jason@redhat.com>
333 * c-common.c (c_common_reswords): Add __is_literal_type.
334 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
336 * c-common.c (check_case_value): Remove special C++ code.
338 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
340 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
341 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
343 (objc_add_property_declaration): Added additional arguments.
344 (objc_property_attribute_kind): Removed.
345 (objc_set_property_attr): Removed.
346 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
348 * stub-objc.c (objc_add_property_declaration): Added additional
350 (objc_set_property_attr): Removed.
352 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
354 * c-common.h (objc_add_property_variable): Renamed to
355 objc_add_property_declaration. Added location argument.
356 * stub-objc.c (objc_add_property_variable): Same change.
358 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
360 * c-common.h (objc_maybe_printable_name): New.
361 * stub-objc.c (objc_maybe_printable_name): New.
363 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
364 Andrew Pinski <pinskia@gmail.com>
366 * c-common.h (c_common_mark_addressable_vec): Declare.
367 * c-common.c (c_common_mark_addressable_vec): New function.
369 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
371 * c-common.h (objc_set_method_type): Removed.
372 (objc_add_method_declaration): Added boolean argument.
373 (objc_start_method_definition): Same change.
374 (objc_build_method_signature): Same change.
375 * stub-objc.c (objc_set_method_type): Removed.
376 (objc_add_method_declaration): Added boolean argument.
377 (objc_start_method_definition): Same change.
378 (objc_build_method_signature): Same change.
380 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
382 * c-common.h (finish_file): Removed.
383 (objc_write_global_declarations): New.
384 * c-opts.c (c_common_parse_file): Do not call finish_file.
385 * stub-objc.c (objc_write_global_declarations): New.
387 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
389 Implemented parsing @synthesize and @dynamic for
390 Objective-C/Objective-C++.
391 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
392 (objc_add_synthesize_declaration): New.
393 (objc_add_dynamic_declaration): New.
394 * c-common.c (c_common_reswords): Add synthesize and dynamic.
395 * stub-objc.c (objc_add_synthesize_declaration): New.
396 (objc_add_dynamic_declaration): New.
398 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
401 * c-cppbuiltin.c (mode_has_fma): Move function here from
402 builtins.c. Don't use the fma optab, instead just use the
403 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
406 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
408 Merge from 'apple/trunk' branch on FSF servers.
410 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
413 * c-common.h (objc_non_volatilized_type): New declaration
414 * stub-objc.c (objc_non_volatilized_type): New stub.
416 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
418 Merge from 'apple/trunk' branch on FSF servers.
420 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
423 * c-common.h (objc_diagnose_private_ivar): New decl.
424 * stub-objc.c (objc_diagnose_private_ivar): New stub.
426 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
428 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
429 * c-common.h (enum rid): Add RID_AT_PACKAGE.
430 (objc_ivar_visibility_kind): New enum.
431 (objc_set_visibility): Adjust prototype to use visibility enum.
432 * stub-objc.c (objc_set_visibility): Adjust stub to use
435 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
437 * c-cppbuiltin.c (builtin_define_float_constants): Emit
438 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
439 has the appropriate fma builtins.
440 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
442 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
444 merge from FSF apple 'trunk' branch.
445 2006 Fariborz Jahanian <fjahanian@apple.com>
447 Radars 4436866, 4505126, 4506903, 4517826
448 * c-common.c (c_common_resword): Define @property and its attributes.
449 * c-common.h: Define property attribute enum entries.
450 (OBJC_IS_PATTR_KEYWORD): New.
451 (objc_property_attribute_kind): New enum.
452 Declare objc_set_property_attr (), objc_add_property_variable (),
453 objc_build_getter_call () and objc_build_setter_call ().
454 * stub-objc.c (objc_set_property_attr): New stub.
455 (objc_add_property_variable): Likewise.
456 (objc_build_getter_call): Likewise.
457 (objc_build_setter_call) Likewise.
459 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
461 merge from FSF apple 'trunk' branch.
462 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
464 Radar 3803157 (method attributes)
465 * c-common.c (handle_deprecated_attribute): Recognize
466 objc methods as valid declarations.
467 * c-common.h: Declare objc_method_decl ().
468 * stub-objc.c (objc_method_decl): New stub.
470 2010-10-08 Joseph Myers <joseph@codesourcery.com>
472 * c-common.c (parse_optimize_options): Call
473 decode_cmdline_options_to_array_default_mask before
474 decode_options. Update arguments to decode_options.
475 * c-common.h (c_common_init_options_struct): Declare.
476 * c-opts.c (c_common_init_options_struct): New. Split out from
477 c_common_init_options.
479 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
481 Implemented fast enumeration for Objective-C.
482 * c-common.h (objc_finish_foreach_loop): New.
483 * stub-objc.c (objc_finish_foreach_loop): New.
485 2010-10-05 Joseph Myers <joseph@codesourcery.com>
487 * c-common.h (struct diagnostic_context): Don't declare here.
488 (c_common_initialize_diagnostics): Declare using
489 diagnostic_context typedef.
490 * c-opts.c (c_common_handle_option): Pass global_dc to
491 handle_generated_option.
493 2010-10-04 Joseph Myers <joseph@codesourcery.com>
495 * c-opts.c (c_common_handle_option): Pass &global_options_set to
496 handle_generated_option.
498 2010-10-03 Ian Lance Taylor <iant@google.com>
500 * c.opt (-fplan9-extensions): New option.
502 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
504 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
506 (c_cpp_builtins): Call functions from cppbuiltin.c instead
509 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
511 * c-common.c: Add two new entries for @optional
512 and @required keywords.
514 merge from FSF 'apple/trunk' branch.
515 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
518 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
519 objective-c keywords.
520 (objc_set_method_opt): New declaration.
521 * stub-objc.c (objc_set_method_opt): New stub.
523 2010-09-30 Joseph Myers <joseph@codesourcery.com>
525 * c-common.c (handle_optimize_attribute): Pass &global_options to
526 cl_optimization_save and cl_optimization_restore.
527 * c-opts.c (c_common_handle_option): Pass &global_options to
528 handle_generated_option.
529 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
530 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
531 &global_options to cl_optimization_restore.
533 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
535 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
536 Objective-C/Objective-C++ keywords.
538 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
540 Merge from 'apple/trunk' branch on FSF servers.
542 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
545 * c-common.h (objc_check_global_decl): New declaration.
546 * stub-objc.c (objc_check_global_decl): New stub.
548 2010-09-29 Joseph Myers <joseph@codesourcery.com>
550 * c.opt: Don't use VarExists.
552 2010-09-29 Joseph Myers <joseph@codesourcery.com>
554 * c-common.c (c_cpp_error): Update names of diagnostic_context
556 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
557 cl_optimization members.
558 * c-opts.c (warning_as_error_callback, c_common_handle_option,
559 sanitize_cpp_opts, finish_options): Update names of cpp_options
562 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
564 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
565 (objc_is_reserved_word): Removed.
566 * c-common.c: Updated comments.
567 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
568 objc_is_reserved_word.
569 * stub-objc.c (objc_is_reserved_word): Removed.
571 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
573 * c-common.h (objc_add_method_declaration): Adjust prototype to
575 (objc_start_method_definition): Likewise.
576 (objc_build_keyword_decl): Likewise.
577 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
578 (objc_start_method_definition): Likewise.
579 (objc_build_keyword_decl): Likewise.
581 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
583 * c-common.h (objc_start_class_interface): Adjust prototype.
584 (objc_start_category_interface): Likewise.
585 (objc_start_protocol): Likewise.
586 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
587 (objc_start_class_interface): Likewise.
588 (objc_start_category_interface): Likewise.
590 2010-09-27 Ian Lance Taylor <iant@google.com>
592 * c-common.c (c_common_attribute_table): Add no_split_stack.
593 (handle_no_split_stack_attribute): New static function.
595 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
597 Merge from 'apple/trunk' branch on FSF servers.
599 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
602 * c-common.h (objc_have_common_type): New declaration.
603 * stub-objc.c (objc_have_common_type): New stub.
605 2005-06-22 Ziemowit Laski <zlaski@apple.com>
608 * c-common.h (objc_common_type): New prototype.
609 * stub-objc.c (objc_common_type): New stub.
611 2010-09-24 Jan Hubicka <jh@suse.cz>
613 * c-common.c (handle_leaf_attribute): New function.
614 (struct attribute_spec c_common_att): Add leaf.
616 2010-09-22 Joseph Myers <joseph@codesourcery.com>
618 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
619 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
620 -dump, -dump=, -imacros, -imacros=, -include, -include=,
621 -include-barrier, -include-directory, -include-directory=,
622 -include-directory-after, -include-directory-after=,
623 -include-prefix, -include-prefix=, -include-with-prefix,
624 -include-with-prefix=, -include-with-prefix-after,
625 -include-with-prefix-after=, -include-with-prefix-before,
626 -include-with-prefix-before=, -no-integrated-cpp,
627 -no-line-commands, -no-standard-includes, -no-warnings, -output,
628 -output=, -pedantic, -pedantic-errors, -preprocess,
629 -print-missing-file-dependencies, -trace-includes, -traditional,
630 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
631 -user-dependencies, -verbose, -write-dependencies,
632 -write-user-dependencies, no-integrated-cpp, traditional): New.
634 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
637 * c-common.h (objc_start_method_definition): Return bool instead
639 * stub-objc.c (objc_start_method_definition): Return bool instead
642 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
645 * c-common.h (objc_get_interface_ivars): New declaration.
646 * stub-objc.c (objc_get_interface_ivars): New stub.
648 2010-09-15 Ian Lance Taylor <iant@google.com>
650 * c-common.c (parse_optimize_options): Do not capitalize warning
651 messages. Remove period at end of warning message.
653 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
655 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
656 (handle_alias_attribute): ... here.
657 (handle_ifunc_attribute): New.
659 2010-09-06 Mark Mitchell <mark@codesourcery.com>
661 * c-common.h (do_warn_double_promotion): Declare.
662 * c-common.c (do_warn_double_promotion): Define.
664 2010-09-05 Mark Mitchell <mark@codesourcery.com>
666 * c.opt (Wdouble-promotion): New.
668 2010-09-02 Joseph Myers <joseph@codesourcery.com>
670 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
671 fvtable-thunks, fxref): Mark no longer supported in help text.
673 2010-09-02 Joseph Myers <joseph@codesourcery.com>
675 * c.opt (Wimport, fall-virtual, falt-external-templates,
676 fdefault-inline, fenum-int-equiv, fexternal-templates,
677 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
678 fname-mangling-version-, fnew-abi, fnonnull-objects,
679 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
680 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
682 (fhandle-exceptions): Mark with Alias and Warn.
683 * c-opts.c (c_common_handle_option): Don't handle options marked
686 2010-09-02 Joseph Myers <joseph@codesourcery.com>
688 * c.opt (Wcomments, Werror-implicit-function-declaration,
689 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
690 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
692 * c-common.c (option_codes): Use OPT_Wcomment instead of
694 * c-opts.c (warning_as_error_callback, c_common_handle_option):
695 Don't handle options marked as aliases.
697 2010-08-25 Richard Guenther <rguenther@suse.de>
699 * c-common.c (c_common_get_alias_set): Remove special
700 handling for pointers.
702 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
704 * c-common.c: Use FOR_EACH_VEC_ELT.
705 * c-gimplify.c: Likewise.
706 * c-pragma.c: Likewise.
708 2010-08-16 Joseph Myers <joseph@codesourcery.com>
710 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
712 (MMDX): Change back to MMD. Mark NoDriverArg instead of
714 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
715 instead of OPT_MDX and OPT_MMDX.
717 2010-08-16 Joseph Myers <joseph@codesourcery.com>
719 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
721 2010-08-12 Joseph Myers <joseph@codesourcery.com>
723 * c.opt (MD, MMD): Change to MDX and MMDX.
724 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
726 2010-08-11 Joseph Myers <joseph@codesourcery.com>
728 * c-opts.c (c_common_handle_option): Call handle_generated_option
729 instead of handle_option.
731 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
733 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
734 (maybe_apply_renaming_pragma): Delete unneeded declarations.
736 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
738 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
739 (pending_redefine_extname): Change type to a VEC.
740 (add_to_renaming_pragma_list): Update for new type of
741 pending_redefine_extname.
742 (maybe_apply_renaming_pragma): Likewise.
744 2010-08-04 Arnaud Charlet <charlet@adacore.com>
746 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
748 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
749 decide whether a type has already been declared/seen.
750 Do not go to the original type.
751 (dump_nested_types): New parameter forward.
752 Generate forward declaration if needed and mark type as visited.
753 (print_ada_declaration): Call dump_nested_types if not already done.
754 Mark types as visited.
756 2010-08-03 Joseph Myers <joseph@codesourcery.com>
758 * c.opt (-print-pch-checksum): Remove option.
759 * c-opts.c (c_common_handle_option): Don't handle
760 OPT_print_pch_checksum.
762 2010-07-27 Joseph Myers <joseph@codesourcery.com>
764 * c-common.h (c_common_handle_option): Update prototype and return
766 * c-opts.c (c_common_handle_option): Update prototype and return
767 value type. Update calls to handle_option and
768 enable_warning_as_error.
770 2010-07-27 Jakub Jelinek <jakub@redhat.com>
773 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
775 2010-07-27 Joseph Myers <joseph@codesourcery.com>
777 * c-common.h (c_common_missing_argument): Remove.
778 * c-opts.c (c_common_missing_argument): Remove.
779 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
780 idirafter, imacros, include, isysroot, isystem, iquote): Add
782 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
784 2010-07-27 Joseph Myers <joseph@codesourcery.com>
786 * c-common.h (c_common_option_lang_mask,
787 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
789 (c_common_init_options): Update prototype.
790 * c-opts.c (c_common_option_lang_mask): New.
791 (c_common_initialize_diagnostics): Split out of
792 c_common_init_options.
793 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
795 (c_common_init_options): Update prototype. Use decoded options in
796 search for -lang-asm.
798 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
800 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
801 * c-format.c: Likewise.
803 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
805 * c-common.h: Include diagnostic-core.h. Error if already
807 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
809 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
811 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
812 Do not include expr.h
813 (vector_mode_valid_p): Move here.
815 2010-06-21 DJ Delorie <dj@redhat.com>
817 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
818 allow these pragmas anywhere.
820 2010-06-14 Jakub Jelinek <jakub@redhat.com>
823 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
824 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
825 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
826 ggc_strdup instead of xstrdup.
828 2010-06-10 Jakub Jelinek <jakub@redhat.com>
830 * c-cppbuiltin.c: Include cpp-id-data.h.
831 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
832 (lazy_hex_fp_value): New function.
833 (builtin_define_with_hex_fp_value): Provide definitions lazily.
835 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
837 * c-gimplify.c: Do not include tree-flow.h
839 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
842 * c-common.c: Rename targetm member:
843 targetm.enum_va_list -> targetm.enum_va_list_p
845 2010-06-28 Anatoly Sokolov <aesok@post.ru>
847 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
849 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
851 * c-cppbuiltin.c: Do not include except.h.
853 2010-06-24 Andi Kleen <ak@linux.intel.com>
855 * c-common.c (warn_for_omitted_condop): New.
856 * c-common.h (warn_for_omitted_condop): Add prototype.
858 2010-06-21 Joseph Myers <joseph@codesourcery.com>
860 * c.opt (lang-objc): Remove.
861 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
863 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
865 * c-opts.c: Include "tm_p.h".
867 2010-06-20 Joseph Myers <joseph@codesourcery.com>
869 * c-common.c (parse_optimize_options): Update call to
872 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
874 * c-common.c (record_types_used_by_current_var_decl): Adjust for
875 new type of types_used_by_cur_var_decl.
877 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
880 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
881 for C++ standard compliance.
883 2010-06-16 Jason Merrill <jason@redhat.com>
885 * c.opt: Add -Wnoexcept.
887 2010-06-16 Richard Guenther <rguenther@suse.de>
890 * c-common.c (c_common_truthvalue_conversion): Remove
891 premature and wrong optimization concering ADDR_EXPRs.
893 2010-06-15 Arnaud Charlet <charlet@adacore.com>
895 * c-ada-spec.c (dump_sloc): Remove column info.
896 (is_simple_enum): New function.
897 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
898 enum types when relevant.
900 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
902 * c-common.c (conversion_warning): Warn at expression
905 2010-06-10 Joseph Myers <joseph@codesourcery.com>
907 * c-opts.c (c_common_handle_option): Don't handle
910 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
912 * c-pragma.c (push_alignment): Use typed GC allocation.
913 (handle_pragma_push_options): Likewise.
915 * c-common.c (parse_optimize_options): Likewise.
917 * c-common.h (struct sorted_fields_type): Add variable_size GTY
920 2010-06-07 Joseph Myers <joseph@codesourcery.com>
922 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
923 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
924 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
925 flag_signed_bitfields, warn_strict_null_sentinel,
926 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
927 flag_gen_declaration, flag_no_gnu_keywords,
928 flag_implement_inlines, flag_implicit_templates,
929 flag_implicit_inline_templates, flag_optional_diags,
930 flag_elide_constructors, flag_default_inline, flag_rtti,
931 flag_conserve_space, flag_access_control, flag_check_new,
932 flag_new_for_scope, flag_weak, flag_working_directory,
933 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
934 flag_enforce_eh_specs, flag_threadsafe_statics,
935 flag_pretty_templates): Remove.
936 * c-common.h (flag_preprocess_only, flag_nil_receivers,
937 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
938 flag_replace_objc_classes, flag_undef, flag_no_builtin,
939 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
940 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
941 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
942 flag_no_gnu_keywords, flag_implement_inlines,
943 flag_implicit_templates, flag_implicit_inline_templates,
944 flag_optional_diags, flag_elide_constructors, flag_default_inline,
945 flag_rtti, flag_conserve_space, flag_access_control,
946 flag_check_new, flag_new_for_scope, flag_weak,
947 flag_working_directory, flag_use_cxa_atexit,
948 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
949 flag_threadsafe_statics, flag_pretty_templates,
950 warn_strict_null_sentinel): Remove.
951 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
952 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
953 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
954 fimplicit-inline-templates, fimplicit-templates,
955 flax-vector-conversions, fms-extensions, fnil-receivers,
956 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
957 frtti, fshort-double, fshort-enums, fshort-wchar,
958 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
959 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
960 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
961 gen-decls, undef): Use Var.
962 (fdefault-inline, foptional-diags): Document as doing nothing.
963 * c-opts.c (c_common_handle_option): Remove cases for options now
964 using Var. Mark ignored options as such.
966 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
968 * c-common.c: Moved to here from parent directory.
969 * c-common.def: Likewise.
970 * c-common.h: Likewise.
971 * c-cppbuiltin.c: Likewise.
972 * c-dump.c: Likewise.
973 * c-format.c: Likewise.
974 * c-format.h : Likewise.
975 * c-gimplify.c: Likewise.
979 * c-opts.c: Likewise.
981 * c-ppoutput.c: Likewise.
982 * c-pragma.c: Likewise.
983 * c-pragma.h: Likewise.
984 * c-pretty-print.c: Likewise.
985 * c-pretty-print.h: Likewise.
986 * c-semantics.c: Likewise.
987 * stub-objc.c: Likewise.
989 * c-common.c: Include gt-c-family-c-common.h.
990 * c-pragma.c: Include gt-c-family-c-pragma.h.
992 Copyright (C) 2010 Free Software Foundation, Inc.
994 Copying and distribution of this file, with or without modification,
995 are permitted in any medium without royalty provided the copyright
996 notice and this notice are preserved.