1 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
3 * c-common.h (readonly_error): Declare.
4 * c-common.c (readonly_error): Define.
6 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
8 * c-common.h (invalid_indirection_error): Declare.
9 * c-common.c (invalid_indirection_error): Define.
11 2010-12-03 Richard Guenther <rguenther@suse.de>
14 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
15 (pp_c_unary_expression): Likewise.
16 (pp_c_expression): Likewise.
18 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
20 * c-common.h (objc_finish_function): New.
21 (objc_non_volatilized_type): Removed.
22 (objc_type_quals_match): Removed.
23 * stub-objc.c (objc_finish_function): New.
24 (objc_non_volatilized_type): Removed.
25 (objc_type_quals_match): Removed.
27 2010-11-30 Joseph Myers <joseph@codesourcery.com>
29 * c-common.h (parse_optimize_options): Declare.
30 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
31 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
33 2010-11-29 Joseph Myers <joseph@codesourcery.com>
35 * c-opts.c (check_deps_environment_vars): Use getenv instead of
37 * c-pch.c (O_BINARY): Don't define here.
38 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
40 2010-11-25 Joseph Myers <joseph@codesourcery.com>
42 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
43 targetm.except_unwind_info.
45 2010-11-23 Joseph Myers <joseph@codesourcery.com>
47 * c-opts.c (c_common_handle_option): Pass location to
48 set_struct_debug_option.
50 2010-11-23 Joseph Myers <joseph@codesourcery.com>
52 * c-common.c (visibility_options): Move from ../opts.c.
53 * c-common.h (struct visibility_flags, visibility_options):
55 * c-opts.c (finish_options): Rename to c_finish_options.
56 (c_common_init): Update call to finish_options.
58 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
61 * c-lex.c (lex_string): Check that each string in an Objective-C
62 string concat sequence starts with either one or zero '@', and
63 that there are no spurious '@' signs at the end.
65 2010-11-20 Joseph Myers <joseph@codesourcery.com>
67 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
68 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
69 HANDLE_PRAGMA_VISIBILITY.
70 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
71 HANDLE_PRAGMA_VISIBILITY): Don't define.
72 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
74 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
79 * c-common.h (keyword_begins_type_specifier): Declare.
80 (keyword_is_storage_class_specifier): Declare.
81 (keyword_is_type_qualifier): Declare.
82 * c-common.c (keyword_begins_type_specifier): New function.
83 (keyword_is_storage_class_specifier): New function.
84 (keyword_is_type_qualifier): Declare.
86 2010-11-19 Joseph Myers <joseph@codesourcery.com>
89 * c-common.c (in_late_binary_op): Define.
90 (c_common_truthvalue_conversion): Check in_late_binary_op before
92 * c-common.h (in_late_binary_op): Declare.
94 2010-11-19 Joseph Myers <joseph@codesourcery.com>
96 * c-opts.c (c_common_handle_option): Update calls to
97 set_struct_debug_option.
99 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
101 * c-common.h (objc_declare_protocols): Added additional argument.
102 * stub-objc.c (objc_declare_protocol): Same change.
104 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
107 * c-common.h (build_real_imag_expr): Declare.
108 * c-semantics.c (build_real_imag_expr): Define.
110 2010-11-17 Joseph Myers <joseph@codesourcery.com>
112 * c-opts.c (c_common_parse_file): Take no arguments.
113 * c-common.h (c_common_parse_file): Update prototype.
115 2010-11-16 Jakub Jelinek <jakub@redhat.com>
118 * c-common.c (warning_candidate_p): Don't track non-const calls
121 2010-11-15 Ian Lance Taylor <iant@google.com>
123 * c-lex.c (init_c_lex): Set macro debug callbacks if
124 flag_dump_go_spec is set.
126 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
128 * c-common.h (objc_build_incr_expr_for_property_ref): New.
129 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
131 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
133 PR preprocessor/45038
134 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
137 2010-11-12 Joseph Myers <joseph@codesourcery.com>
139 * c-common.h (c_family_lang_mask): Declare.
140 * c-opts.c (c_family_lang_mask): Make extern.
141 * c-pragma.c (handle_pragma_diagnostic): Use
142 control_warning_option.
144 2010-11-12 Joseph Myers <joseph@codesourcery.com>
146 * c-common.c (parse_optimize_options): Update call to
148 * c-common.h (c_common_handle_option): Update prototype.
149 * c-opts.c (c_common_handle_option): Take location_t parameter and
150 pass it to other functions.
152 2010-11-11 Joseph Myers <joseph@codesourcery.com>
154 * c-opts.c (warning_as_error_callback): Remove.
155 (c_common_initialize_diagnostics): Don't call
156 register_warning_as_error_callback.
157 (c_common_handle_option): Handle -Werror=normalized= here.
159 2010-11-10 Joseph Myers <joseph@codesourcery.com>
161 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
163 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
165 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
166 Remove trailing '.' from diagnostics.
167 * c.opt (Wwrite-strings_: Avoid '`' in help text.
169 2010-11-10 Joseph Myers <joseph@codesourcery.com>
171 * c-common.c (parse_optimize_options): Pass global_dc to
173 * c-opts.c (c_common_handle_option): Pass &global_options to
174 set_Wstrict_aliasing.
175 * c.opt (v): Don't mark Common or document here.
177 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
180 * c-format.c (format_type): New type gcc_objc_string_format_type.
181 (valid_stringptr_type_p): New.
182 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
183 (check_format_string): Pass expected type, use
184 valid_stringptr_type_p (), check that the format string types are
185 consistent with the format specification.
186 (decode_format_attr): Warn if NSString is used outside objective-c.
187 (format_types_orig): Add NSString.
190 (check_format_arg): Handle format strings requiring an external parser.
191 first_target_format_type: New variable.
192 (handle_format_attribute): Set up first_target_format_type, pass the
193 expected format arg string type to check_format_string().
194 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
195 * stub-objc.c (objc_string_ref_type_p): New.
196 (objc_check_format_arg): New.
198 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
200 Fixed using the Objective-C 2.0 dot-syntax with class names.
201 * c-common.h (objc_build_class_component_ref): New.
202 * stub-objc.c (objc_build_class_component_ref): New.
204 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
206 * c.opt (Wproperty-assign-default): New option.
208 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
210 Implemented -fobjc-std=objc1 flag.
211 * c.opt (fobjc-std=objc1): New option.
213 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
215 Implemented format and noreturn attributes for Objective-C methods.
216 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
217 attribute for Objective-C methods.
219 2010-10-31 Jason Merrill <jason@redhat.com>
221 * c-common.c (conversion_warning, warn_for_collisions_1): Use
224 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
226 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
227 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
228 (objc_add_property_declaration): Removed arguments for copies and
230 (objc_build_getter_call): Renamed to
231 objc_maybe_build_component_ref.
232 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
233 (objc_is_property_ref): New.
234 * c-common.c (c_common_reswords): Removed copies and ivar.
235 * stub-objc.c (objc_add_property_declaration): Removed arguments
237 (objc_build_getter_call): Renamed to
238 objc_maybe_build_component_ref.
239 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
240 (objc_is_property_ref): New.
242 2010-10-29 Arnaud Charlet <charlet@adacore.com>
243 Matthew Gingell <gingell@adacore.com>
245 * c-ada-spec.c (separate_class_package): New function.
246 (pp_ada_tree_identifier): Prefix references to C++ classes with the
247 name of their enclosing package.
248 (print_ada_declaration): Use separate_class_package.
250 2010-10-27 Jason Merrill <jason@redhat.com>
252 * c-common.c (c_common_reswords): Add __is_literal_type.
253 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
255 * c-common.c (check_case_value): Remove special C++ code.
257 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
259 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
260 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
262 (objc_add_property_declaration): Added additional arguments.
263 (objc_property_attribute_kind): Removed.
264 (objc_set_property_attr): Removed.
265 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
267 * stub-objc.c (objc_add_property_declaration): Added additional
269 (objc_set_property_attr): Removed.
271 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
273 * c-common.h (objc_add_property_variable): Renamed to
274 objc_add_property_declaration. Added location argument.
275 * stub-objc.c (objc_add_property_variable): Same change.
277 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
279 * c-common.h (objc_maybe_printable_name): New.
280 * stub-objc.c (objc_maybe_printable_name): New.
282 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
283 Andrew Pinski <pinskia@gmail.com>
285 * c-common.h (c_common_mark_addressable_vec): Declare.
286 * c-common.c (c_common_mark_addressable_vec): New function.
288 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
290 * c-common.h (objc_set_method_type): Removed.
291 (objc_add_method_declaration): Added boolean argument.
292 (objc_start_method_definition): Same change.
293 (objc_build_method_signature): Same change.
294 * stub-objc.c (objc_set_method_type): Removed.
295 (objc_add_method_declaration): Added boolean argument.
296 (objc_start_method_definition): Same change.
297 (objc_build_method_signature): Same change.
299 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
301 * c-common.h (finish_file): Removed.
302 (objc_write_global_declarations): New.
303 * c-opts.c (c_common_parse_file): Do not call finish_file.
304 * stub-objc.c (objc_write_global_declarations): New.
306 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
308 Implemented parsing @synthesize and @dynamic for
309 Objective-C/Objective-C++.
310 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
311 (objc_add_synthesize_declaration): New.
312 (objc_add_dynamic_declaration): New.
313 * c-common.c (c_common_reswords): Add synthesize and dynamic.
314 * stub-objc.c (objc_add_synthesize_declaration): New.
315 (objc_add_dynamic_declaration): New.
317 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
320 * c-cppbuiltin.c (mode_has_fma): Move function here from
321 builtins.c. Don't use the fma optab, instead just use the
322 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
325 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
327 Merge from 'apple/trunk' branch on FSF servers.
329 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
332 * c-common.h (objc_non_volatilized_type): New declaration
333 * stub-objc.c (objc_non_volatilized_type): New stub.
335 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
337 Merge from 'apple/trunk' branch on FSF servers.
339 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
342 * c-common.h (objc_diagnose_private_ivar): New decl.
343 * stub-objc.c (objc_diagnose_private_ivar): New stub.
345 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
347 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
348 * c-common.h (enum rid): Add RID_AT_PACKAGE.
349 (objc_ivar_visibility_kind): New enum.
350 (objc_set_visibility): Adjust prototype to use visibility enum.
351 * stub-objc.c (objc_set_visibility): Adjust stub to use
354 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
356 * c-cppbuiltin.c (builtin_define_float_constants): Emit
357 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
358 has the appropriate fma builtins.
359 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
361 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
363 merge from FSF apple 'trunk' branch.
364 2006 Fariborz Jahanian <fjahanian@apple.com>
366 Radars 4436866, 4505126, 4506903, 4517826
367 * c-common.c (c_common_resword): Define @property and its attributes.
368 * c-common.h: Define property attribute enum entries.
369 (OBJC_IS_PATTR_KEYWORD): New.
370 (objc_property_attribute_kind): New enum.
371 Declare objc_set_property_attr (), objc_add_property_variable (),
372 objc_build_getter_call () and objc_build_setter_call ().
373 * stub-objc.c (objc_set_property_attr): New stub.
374 (objc_add_property_variable): Likewise.
375 (objc_build_getter_call): Likewise.
376 (objc_build_setter_call) Likewise.
378 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
380 merge from FSF apple 'trunk' branch.
381 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
383 Radar 3803157 (method attributes)
384 * c-common.c (handle_deprecated_attribute): Recognize
385 objc methods as valid declarations.
386 * c-common.h: Declare objc_method_decl ().
387 * stub-objc.c (objc_method_decl): New stub.
389 2010-10-08 Joseph Myers <joseph@codesourcery.com>
391 * c-common.c (parse_optimize_options): Call
392 decode_cmdline_options_to_array_default_mask before
393 decode_options. Update arguments to decode_options.
394 * c-common.h (c_common_init_options_struct): Declare.
395 * c-opts.c (c_common_init_options_struct): New. Split out from
396 c_common_init_options.
398 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
400 Implemented fast enumeration for Objective-C.
401 * c-common.h (objc_finish_foreach_loop): New.
402 * stub-objc.c (objc_finish_foreach_loop): New.
404 2010-10-05 Joseph Myers <joseph@codesourcery.com>
406 * c-common.h (struct diagnostic_context): Don't declare here.
407 (c_common_initialize_diagnostics): Declare using
408 diagnostic_context typedef.
409 * c-opts.c (c_common_handle_option): Pass global_dc to
410 handle_generated_option.
412 2010-10-04 Joseph Myers <joseph@codesourcery.com>
414 * c-opts.c (c_common_handle_option): Pass &global_options_set to
415 handle_generated_option.
417 2010-10-03 Ian Lance Taylor <iant@google.com>
419 * c.opt (-fplan9-extensions): New option.
421 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
423 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
425 (c_cpp_builtins): Call functions from cppbuiltin.c instead
428 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
430 * c-common.c: Add two new entries for @optional
431 and @required keywords.
433 merge from FSF 'apple/trunk' branch.
434 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
437 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
438 objective-c keywords.
439 (objc_set_method_opt): New declaration.
440 * stub-objc.c (objc_set_method_opt): New stub.
442 2010-09-30 Joseph Myers <joseph@codesourcery.com>
444 * c-common.c (handle_optimize_attribute): Pass &global_options to
445 cl_optimization_save and cl_optimization_restore.
446 * c-opts.c (c_common_handle_option): Pass &global_options to
447 handle_generated_option.
448 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
449 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
450 &global_options to cl_optimization_restore.
452 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
454 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
455 Objective-C/Objective-C++ keywords.
457 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
459 Merge from 'apple/trunk' branch on FSF servers.
461 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
464 * c-common.h (objc_check_global_decl): New declaration.
465 * stub-objc.c (objc_check_global_decl): New stub.
467 2010-09-29 Joseph Myers <joseph@codesourcery.com>
469 * c.opt: Don't use VarExists.
471 2010-09-29 Joseph Myers <joseph@codesourcery.com>
473 * c-common.c (c_cpp_error): Update names of diagnostic_context
475 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
476 cl_optimization members.
477 * c-opts.c (warning_as_error_callback, c_common_handle_option,
478 sanitize_cpp_opts, finish_options): Update names of cpp_options
481 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
483 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
484 (objc_is_reserved_word): Removed.
485 * c-common.c: Updated comments.
486 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
487 objc_is_reserved_word.
488 * stub-objc.c (objc_is_reserved_word): Removed.
490 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
492 * c-common.h (objc_add_method_declaration): Adjust prototype to
494 (objc_start_method_definition): Likewise.
495 (objc_build_keyword_decl): Likewise.
496 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
497 (objc_start_method_definition): Likewise.
498 (objc_build_keyword_decl): Likewise.
500 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
502 * c-common.h (objc_start_class_interface): Adjust prototype.
503 (objc_start_category_interface): Likewise.
504 (objc_start_protocol): Likewise.
505 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
506 (objc_start_class_interface): Likewise.
507 (objc_start_category_interface): Likewise.
509 2010-09-27 Ian Lance Taylor <iant@google.com>
511 * c-common.c (c_common_attribute_table): Add no_split_stack.
512 (handle_no_split_stack_attribute): New static function.
514 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
516 Merge from 'apple/trunk' branch on FSF servers.
518 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
521 * c-common.h (objc_have_common_type): New declaration.
522 * stub-objc.c (objc_have_common_type): New stub.
524 2005-06-22 Ziemowit Laski <zlaski@apple.com>
527 * c-common.h (objc_common_type): New prototype.
528 * stub-objc.c (objc_common_type): New stub.
530 2010-09-24 Jan Hubicka <jh@suse.cz>
532 * c-common.c (handle_leaf_attribute): New function.
533 (struct attribute_spec c_common_att): Add leaf.
535 2010-09-22 Joseph Myers <joseph@codesourcery.com>
537 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
538 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
539 -dump, -dump=, -imacros, -imacros=, -include, -include=,
540 -include-barrier, -include-directory, -include-directory=,
541 -include-directory-after, -include-directory-after=,
542 -include-prefix, -include-prefix=, -include-with-prefix,
543 -include-with-prefix=, -include-with-prefix-after,
544 -include-with-prefix-after=, -include-with-prefix-before,
545 -include-with-prefix-before=, -no-integrated-cpp,
546 -no-line-commands, -no-standard-includes, -no-warnings, -output,
547 -output=, -pedantic, -pedantic-errors, -preprocess,
548 -print-missing-file-dependencies, -trace-includes, -traditional,
549 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
550 -user-dependencies, -verbose, -write-dependencies,
551 -write-user-dependencies, no-integrated-cpp, traditional): New.
553 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
556 * c-common.h (objc_start_method_definition): Return bool instead
558 * stub-objc.c (objc_start_method_definition): Return bool instead
561 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
564 * c-common.h (objc_get_interface_ivars): New declaration.
565 * stub-objc.c (objc_get_interface_ivars): New stub.
567 2010-09-15 Ian Lance Taylor <iant@google.com>
569 * c-common.c (parse_optimize_options): Do not capitalize warning
570 messages. Remove period at end of warning message.
572 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
574 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
575 (handle_alias_attribute): ... here.
576 (handle_ifunc_attribute): New.
578 2010-09-06 Mark Mitchell <mark@codesourcery.com>
580 * c-common.h (do_warn_double_promotion): Declare.
581 * c-common.c (do_warn_double_promotion): Define.
583 2010-09-05 Mark Mitchell <mark@codesourcery.com>
585 * c.opt (Wdouble-promotion): New.
587 2010-09-02 Joseph Myers <joseph@codesourcery.com>
589 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
590 fvtable-thunks, fxref): Mark no longer supported in help text.
592 2010-09-02 Joseph Myers <joseph@codesourcery.com>
594 * c.opt (Wimport, fall-virtual, falt-external-templates,
595 fdefault-inline, fenum-int-equiv, fexternal-templates,
596 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
597 fname-mangling-version-, fnew-abi, fnonnull-objects,
598 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
599 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
601 (fhandle-exceptions): Mark with Alias and Warn.
602 * c-opts.c (c_common_handle_option): Don't handle options marked
605 2010-09-02 Joseph Myers <joseph@codesourcery.com>
607 * c.opt (Wcomments, Werror-implicit-function-declaration,
608 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
609 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
611 * c-common.c (option_codes): Use OPT_Wcomment instead of
613 * c-opts.c (warning_as_error_callback, c_common_handle_option):
614 Don't handle options marked as aliases.
616 2010-08-25 Richard Guenther <rguenther@suse.de>
618 * c-common.c (c_common_get_alias_set): Remove special
619 handling for pointers.
621 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
623 * c-common.c: Use FOR_EACH_VEC_ELT.
624 * c-gimplify.c: Likewise.
625 * c-pragma.c: Likewise.
627 2010-08-16 Joseph Myers <joseph@codesourcery.com>
629 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
631 (MMDX): Change back to MMD. Mark NoDriverArg instead of
633 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
634 instead of OPT_MDX and OPT_MMDX.
636 2010-08-16 Joseph Myers <joseph@codesourcery.com>
638 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
640 2010-08-12 Joseph Myers <joseph@codesourcery.com>
642 * c.opt (MD, MMD): Change to MDX and MMDX.
643 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
645 2010-08-11 Joseph Myers <joseph@codesourcery.com>
647 * c-opts.c (c_common_handle_option): Call handle_generated_option
648 instead of handle_option.
650 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
652 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
653 (maybe_apply_renaming_pragma): Delete unneeded declarations.
655 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
657 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
658 (pending_redefine_extname): Change type to a VEC.
659 (add_to_renaming_pragma_list): Update for new type of
660 pending_redefine_extname.
661 (maybe_apply_renaming_pragma): Likewise.
663 2010-08-04 Arnaud Charlet <charlet@adacore.com>
665 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
667 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
668 decide whether a type has already been declared/seen.
669 Do not go to the original type.
670 (dump_nested_types): New parameter forward.
671 Generate forward declaration if needed and mark type as visited.
672 (print_ada_declaration): Call dump_nested_types if not already done.
673 Mark types as visited.
675 2010-08-03 Joseph Myers <joseph@codesourcery.com>
677 * c.opt (-print-pch-checksum): Remove option.
678 * c-opts.c (c_common_handle_option): Don't handle
679 OPT_print_pch_checksum.
681 2010-07-27 Joseph Myers <joseph@codesourcery.com>
683 * c-common.h (c_common_handle_option): Update prototype and return
685 * c-opts.c (c_common_handle_option): Update prototype and return
686 value type. Update calls to handle_option and
687 enable_warning_as_error.
689 2010-07-27 Jakub Jelinek <jakub@redhat.com>
692 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
694 2010-07-27 Joseph Myers <joseph@codesourcery.com>
696 * c-common.h (c_common_missing_argument): Remove.
697 * c-opts.c (c_common_missing_argument): Remove.
698 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
699 idirafter, imacros, include, isysroot, isystem, iquote): Add
701 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
703 2010-07-27 Joseph Myers <joseph@codesourcery.com>
705 * c-common.h (c_common_option_lang_mask,
706 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
708 (c_common_init_options): Update prototype.
709 * c-opts.c (c_common_option_lang_mask): New.
710 (c_common_initialize_diagnostics): Split out of
711 c_common_init_options.
712 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
714 (c_common_init_options): Update prototype. Use decoded options in
715 search for -lang-asm.
717 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
719 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
720 * c-format.c: Likewise.
722 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
724 * c-common.h: Include diagnostic-core.h. Error if already
726 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
728 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
730 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
731 Do not include expr.h
732 (vector_mode_valid_p): Move here.
734 2010-06-21 DJ Delorie <dj@redhat.com>
736 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
737 allow these pragmas anywhere.
739 2010-06-14 Jakub Jelinek <jakub@redhat.com>
742 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
743 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
744 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
745 ggc_strdup instead of xstrdup.
747 2010-06-10 Jakub Jelinek <jakub@redhat.com>
749 * c-cppbuiltin.c: Include cpp-id-data.h.
750 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
751 (lazy_hex_fp_value): New function.
752 (builtin_define_with_hex_fp_value): Provide definitions lazily.
754 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
756 * c-gimplify.c: Do not include tree-flow.h
758 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
761 * c-common.c: Rename targetm member:
762 targetm.enum_va_list -> targetm.enum_va_list_p
764 2010-06-28 Anatoly Sokolov <aesok@post.ru>
766 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
768 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
770 * c-cppbuiltin.c: Do not include except.h.
772 2010-06-24 Andi Kleen <ak@linux.intel.com>
774 * c-common.c (warn_for_omitted_condop): New.
775 * c-common.h (warn_for_omitted_condop): Add prototype.
777 2010-06-21 Joseph Myers <joseph@codesourcery.com>
779 * c.opt (lang-objc): Remove.
780 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
782 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
784 * c-opts.c: Include "tm_p.h".
786 2010-06-20 Joseph Myers <joseph@codesourcery.com>
788 * c-common.c (parse_optimize_options): Update call to
791 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
793 * c-common.c (record_types_used_by_current_var_decl): Adjust for
794 new type of types_used_by_cur_var_decl.
796 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
799 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
800 for C++ standard compliance.
802 2010-06-16 Jason Merrill <jason@redhat.com>
804 * c.opt: Add -Wnoexcept.
806 2010-06-16 Richard Guenther <rguenther@suse.de>
809 * c-common.c (c_common_truthvalue_conversion): Remove
810 premature and wrong optimization concering ADDR_EXPRs.
812 2010-06-15 Arnaud Charlet <charlet@adacore.com>
814 * c-ada-spec.c (dump_sloc): Remove column info.
815 (is_simple_enum): New function.
816 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
817 enum types when relevant.
819 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
821 * c-common.c (conversion_warning): Warn at expression
824 2010-06-10 Joseph Myers <joseph@codesourcery.com>
826 * c-opts.c (c_common_handle_option): Don't handle
829 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
831 * c-pragma.c (push_alignment): Use typed GC allocation.
832 (handle_pragma_push_options): Likewise.
834 * c-common.c (parse_optimize_options): Likewise.
836 * c-common.h (struct sorted_fields_type): Add variable_size GTY
839 2010-06-07 Joseph Myers <joseph@codesourcery.com>
841 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
842 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
843 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
844 flag_signed_bitfields, warn_strict_null_sentinel,
845 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
846 flag_gen_declaration, flag_no_gnu_keywords,
847 flag_implement_inlines, flag_implicit_templates,
848 flag_implicit_inline_templates, flag_optional_diags,
849 flag_elide_constructors, flag_default_inline, flag_rtti,
850 flag_conserve_space, flag_access_control, flag_check_new,
851 flag_new_for_scope, flag_weak, flag_working_directory,
852 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
853 flag_enforce_eh_specs, flag_threadsafe_statics,
854 flag_pretty_templates): Remove.
855 * c-common.h (flag_preprocess_only, flag_nil_receivers,
856 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
857 flag_replace_objc_classes, flag_undef, flag_no_builtin,
858 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
859 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
860 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
861 flag_no_gnu_keywords, flag_implement_inlines,
862 flag_implicit_templates, flag_implicit_inline_templates,
863 flag_optional_diags, flag_elide_constructors, flag_default_inline,
864 flag_rtti, flag_conserve_space, flag_access_control,
865 flag_check_new, flag_new_for_scope, flag_weak,
866 flag_working_directory, flag_use_cxa_atexit,
867 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
868 flag_threadsafe_statics, flag_pretty_templates,
869 warn_strict_null_sentinel): Remove.
870 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
871 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
872 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
873 fimplicit-inline-templates, fimplicit-templates,
874 flax-vector-conversions, fms-extensions, fnil-receivers,
875 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
876 frtti, fshort-double, fshort-enums, fshort-wchar,
877 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
878 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
879 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
880 gen-decls, undef): Use Var.
881 (fdefault-inline, foptional-diags): Document as doing nothing.
882 * c-opts.c (c_common_handle_option): Remove cases for options now
883 using Var. Mark ignored options as such.
885 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
887 * c-common.c: Moved to here from parent directory.
888 * c-common.def: Likewise.
889 * c-common.h: Likewise.
890 * c-cppbuiltin.c: Likewise.
891 * c-dump.c: Likewise.
892 * c-format.c: Likewise.
893 * c-format.h : Likewise.
894 * c-gimplify.c: Likewise.
898 * c-opts.c: Likewise.
900 * c-ppoutput.c: Likewise.
901 * c-pragma.c: Likewise.
902 * c-pragma.h: Likewise.
903 * c-pretty-print.c: Likewise.
904 * c-pretty-print.h: Likewise.
905 * c-semantics.c: Likewise.
906 * stub-objc.c: Likewise.
908 * c-common.c: Include gt-c-family-c-common.h.
909 * c-pragma.c: Include gt-c-family-c-pragma.h.
911 Copyright (C) 2010 Free Software Foundation, Inc.
913 Copying and distribution of this file, with or without modification,
914 are permitted in any medium without royalty provided the copyright
915 notice and this notice are preserved.