1 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
4 * c-lex.c (lex_string): Check that each string in an Objective-C
5 string concat sequence starts with either one or zero '@', and
6 that there are no spurious '@' signs at the end.
8 2010-11-20 Joseph Myers <joseph@codesourcery.com>
10 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
11 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
12 HANDLE_PRAGMA_VISIBILITY.
13 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
14 HANDLE_PRAGMA_VISIBILITY): Don't define.
15 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
17 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
22 * c-common.h (keyword_begins_type_specifier): Declare.
23 (keyword_is_storage_class_specifier): Declare.
24 (keyword_is_type_qualifier): Declare.
25 * c-common.c (keyword_begins_type_specifier): New function.
26 (keyword_is_storage_class_specifier): New function.
27 (keyword_is_type_qualifier): Declare.
29 2010-11-19 Joseph Myers <joseph@codesourcery.com>
32 * c-common.c (in_late_binary_op): Define.
33 (c_common_truthvalue_conversion): Check in_late_binary_op before
35 * c-common.h (in_late_binary_op): Declare.
37 2010-11-19 Joseph Myers <joseph@codesourcery.com>
39 * c-opts.c (c_common_handle_option): Update calls to
40 set_struct_debug_option.
42 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
44 * c-common.h (objc_declare_protocols): Added additional argument.
45 * stub-objc.c (objc_declare_protocol): Same change.
47 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
50 * c-common.h (build_real_imag_expr): Declare.
51 * c-semantics.c (build_real_imag_expr): Define.
53 2010-11-17 Joseph Myers <joseph@codesourcery.com>
55 * c-opts.c (c_common_parse_file): Take no arguments.
56 * c-common.h (c_common_parse_file): Update prototype.
58 2010-11-16 Jakub Jelinek <jakub@redhat.com>
61 * c-common.c (warning_candidate_p): Don't track non-const calls
64 2010-11-15 Ian Lance Taylor <iant@google.com>
66 * c-lex.c (init_c_lex): Set macro debug callbacks if
67 flag_dump_go_spec is set.
69 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
71 * c-common.h (objc_build_incr_expr_for_property_ref): New.
72 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
74 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
77 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
80 2010-11-12 Joseph Myers <joseph@codesourcery.com>
82 * c-common.h (c_family_lang_mask): Declare.
83 * c-opts.c (c_family_lang_mask): Make extern.
84 * c-pragma.c (handle_pragma_diagnostic): Use
85 control_warning_option.
87 2010-11-12 Joseph Myers <joseph@codesourcery.com>
89 * c-common.c (parse_optimize_options): Update call to
91 * c-common.h (c_common_handle_option): Update prototype.
92 * c-opts.c (c_common_handle_option): Take location_t parameter and
93 pass it to other functions.
95 2010-11-11 Joseph Myers <joseph@codesourcery.com>
97 * c-opts.c (warning_as_error_callback): Remove.
98 (c_common_initialize_diagnostics): Don't call
99 register_warning_as_error_callback.
100 (c_common_handle_option): Handle -Werror=normalized= here.
102 2010-11-10 Joseph Myers <joseph@codesourcery.com>
104 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
106 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
108 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
109 Remove trailing '.' from diagnostics.
110 * c.opt (Wwrite-strings_: Avoid '`' in help text.
112 2010-11-10 Joseph Myers <joseph@codesourcery.com>
114 * c-common.c (parse_optimize_options): Pass global_dc to
116 * c-opts.c (c_common_handle_option): Pass &global_options to
117 set_Wstrict_aliasing.
118 * c.opt (v): Don't mark Common or document here.
120 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
123 * c-format.c (format_type): New type gcc_objc_string_format_type.
124 (valid_stringptr_type_p): New.
125 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
126 (check_format_string): Pass expected type, use
127 valid_stringptr_type_p (), check that the format string types are
128 consistent with the format specification.
129 (decode_format_attr): Warn if NSString is used outside objective-c.
130 (format_types_orig): Add NSString.
133 (check_format_arg): Handle format strings requiring an external parser.
134 first_target_format_type: New variable.
135 (handle_format_attribute): Set up first_target_format_type, pass the
136 expected format arg string type to check_format_string().
137 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
138 * stub-objc.c (objc_string_ref_type_p): New.
139 (objc_check_format_arg): New.
141 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
143 Fixed using the Objective-C 2.0 dot-syntax with class names.
144 * c-common.h (objc_build_class_component_ref): New.
145 * stub-objc.c (objc_build_class_component_ref): New.
147 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
149 * c.opt (Wproperty-assign-default): New option.
151 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
153 Implemented -fobjc-std=objc1 flag.
154 * c.opt (fobjc-std=objc1): New option.
156 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
158 Implemented format and noreturn attributes for Objective-C methods.
159 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
160 attribute for Objective-C methods.
162 2010-10-31 Jason Merrill <jason@redhat.com>
164 * c-common.c (conversion_warning, warn_for_collisions_1): Use
167 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
169 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
170 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
171 (objc_add_property_declaration): Removed arguments for copies and
173 (objc_build_getter_call): Renamed to
174 objc_maybe_build_component_ref.
175 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
176 (objc_is_property_ref): New.
177 * c-common.c (c_common_reswords): Removed copies and ivar.
178 * stub-objc.c (objc_add_property_declaration): Removed arguments
180 (objc_build_getter_call): Renamed to
181 objc_maybe_build_component_ref.
182 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
183 (objc_is_property_ref): New.
185 2010-10-29 Arnaud Charlet <charlet@adacore.com>
186 Matthew Gingell <gingell@adacore.com>
188 * c-ada-spec.c (separate_class_package): New function.
189 (pp_ada_tree_identifier): Prefix references to C++ classes with the
190 name of their enclosing package.
191 (print_ada_declaration): Use separate_class_package.
193 2010-10-27 Jason Merrill <jason@redhat.com>
195 * c-common.c (c_common_reswords): Add __is_literal_type.
196 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
198 * c-common.c (check_case_value): Remove special C++ code.
200 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
202 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
203 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
205 (objc_add_property_declaration): Added additional arguments.
206 (objc_property_attribute_kind): Removed.
207 (objc_set_property_attr): Removed.
208 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
210 * stub-objc.c (objc_add_property_declaration): Added additional
212 (objc_set_property_attr): Removed.
214 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
216 * c-common.h (objc_add_property_variable): Renamed to
217 objc_add_property_declaration. Added location argument.
218 * stub-objc.c (objc_add_property_variable): Same change.
220 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
222 * c-common.h (objc_maybe_printable_name): New.
223 * stub-objc.c (objc_maybe_printable_name): New.
225 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
226 Andrew Pinski <pinskia@gmail.com>
228 * c-common.h (c_common_mark_addressable_vec): Declare.
229 * c-common.c (c_common_mark_addressable_vec): New function.
231 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
233 * c-common.h (objc_set_method_type): Removed.
234 (objc_add_method_declaration): Added boolean argument.
235 (objc_start_method_definition): Same change.
236 (objc_build_method_signature): Same change.
237 * stub-objc.c (objc_set_method_type): Removed.
238 (objc_add_method_declaration): Added boolean argument.
239 (objc_start_method_definition): Same change.
240 (objc_build_method_signature): Same change.
242 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
244 * c-common.h (finish_file): Removed.
245 (objc_write_global_declarations): New.
246 * c-opts.c (c_common_parse_file): Do not call finish_file.
247 * stub-objc.c (objc_write_global_declarations): New.
249 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
251 Implemented parsing @synthesize and @dynamic for
252 Objective-C/Objective-C++.
253 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
254 (objc_add_synthesize_declaration): New.
255 (objc_add_dynamic_declaration): New.
256 * c-common.c (c_common_reswords): Add synthesize and dynamic.
257 * stub-objc.c (objc_add_synthesize_declaration): New.
258 (objc_add_dynamic_declaration): New.
260 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
263 * c-cppbuiltin.c (mode_has_fma): Move function here from
264 builtins.c. Don't use the fma optab, instead just use the
265 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
268 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
270 Merge from 'apple/trunk' branch on FSF servers.
272 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
275 * c-common.h (objc_non_volatilized_type): New declaration
276 * stub-objc.c (objc_non_volatilized_type): New stub.
278 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
280 Merge from 'apple/trunk' branch on FSF servers.
282 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
285 * c-common.h (objc_diagnose_private_ivar): New decl.
286 * stub-objc.c (objc_diagnose_private_ivar): New stub.
288 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
290 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
291 * c-common.h (enum rid): Add RID_AT_PACKAGE.
292 (objc_ivar_visibility_kind): New enum.
293 (objc_set_visibility): Adjust prototype to use visibility enum.
294 * stub-objc.c (objc_set_visibility): Adjust stub to use
297 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
299 * c-cppbuiltin.c (builtin_define_float_constants): Emit
300 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
301 has the appropriate fma builtins.
302 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
304 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
306 merge from FSF apple 'trunk' branch.
307 2006 Fariborz Jahanian <fjahanian@apple.com>
309 Radars 4436866, 4505126, 4506903, 4517826
310 * c-common.c (c_common_resword): Define @property and its attributes.
311 * c-common.h: Define property attribute enum entries.
312 (OBJC_IS_PATTR_KEYWORD): New.
313 (objc_property_attribute_kind): New enum.
314 Declare objc_set_property_attr (), objc_add_property_variable (),
315 objc_build_getter_call () and objc_build_setter_call ().
316 * stub-objc.c (objc_set_property_attr): New stub.
317 (objc_add_property_variable): Likewise.
318 (objc_build_getter_call): Likewise.
319 (objc_build_setter_call) Likewise.
321 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
323 merge from FSF apple 'trunk' branch.
324 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
326 Radar 3803157 (method attributes)
327 * c-common.c (handle_deprecated_attribute): Recognize
328 objc methods as valid declarations.
329 * c-common.h: Declare objc_method_decl ().
330 * stub-objc.c (objc_method_decl): New stub.
332 2010-10-08 Joseph Myers <joseph@codesourcery.com>
334 * c-common.c (parse_optimize_options): Call
335 decode_cmdline_options_to_array_default_mask before
336 decode_options. Update arguments to decode_options.
337 * c-common.h (c_common_init_options_struct): Declare.
338 * c-opts.c (c_common_init_options_struct): New. Split out from
339 c_common_init_options.
341 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
343 Implemented fast enumeration for Objective-C.
344 * c-common.h (objc_finish_foreach_loop): New.
345 * stub-objc.c (objc_finish_foreach_loop): New.
347 2010-10-05 Joseph Myers <joseph@codesourcery.com>
349 * c-common.h (struct diagnostic_context): Don't declare here.
350 (c_common_initialize_diagnostics): Declare using
351 diagnostic_context typedef.
352 * c-opts.c (c_common_handle_option): Pass global_dc to
353 handle_generated_option.
355 2010-10-04 Joseph Myers <joseph@codesourcery.com>
357 * c-opts.c (c_common_handle_option): Pass &global_options_set to
358 handle_generated_option.
360 2010-10-03 Ian Lance Taylor <iant@google.com>
362 * c.opt (-fplan9-extensions): New option.
364 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
366 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
368 (c_cpp_builtins): Call functions from cppbuiltin.c instead
371 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
373 * c-common.c: Add two new entries for @optional
374 and @required keywords.
376 merge from FSF 'apple/trunk' branch.
377 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
380 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
381 objective-c keywords.
382 (objc_set_method_opt): New declaration.
383 * stub-objc.c (objc_set_method_opt): New stub.
385 2010-09-30 Joseph Myers <joseph@codesourcery.com>
387 * c-common.c (handle_optimize_attribute): Pass &global_options to
388 cl_optimization_save and cl_optimization_restore.
389 * c-opts.c (c_common_handle_option): Pass &global_options to
390 handle_generated_option.
391 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
392 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
393 &global_options to cl_optimization_restore.
395 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
397 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
398 Objective-C/Objective-C++ keywords.
400 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
402 Merge from 'apple/trunk' branch on FSF servers.
404 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
407 * c-common.h (objc_check_global_decl): New declaration.
408 * stub-objc.c (objc_check_global_decl): New stub.
410 2010-09-29 Joseph Myers <joseph@codesourcery.com>
412 * c.opt: Don't use VarExists.
414 2010-09-29 Joseph Myers <joseph@codesourcery.com>
416 * c-common.c (c_cpp_error): Update names of diagnostic_context
418 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
419 cl_optimization members.
420 * c-opts.c (warning_as_error_callback, c_common_handle_option,
421 sanitize_cpp_opts, finish_options): Update names of cpp_options
424 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
426 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
427 (objc_is_reserved_word): Removed.
428 * c-common.c: Updated comments.
429 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
430 objc_is_reserved_word.
431 * stub-objc.c (objc_is_reserved_word): Removed.
433 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
435 * c-common.h (objc_add_method_declaration): Adjust prototype to
437 (objc_start_method_definition): Likewise.
438 (objc_build_keyword_decl): Likewise.
439 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
440 (objc_start_method_definition): Likewise.
441 (objc_build_keyword_decl): Likewise.
443 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
445 * c-common.h (objc_start_class_interface): Adjust prototype.
446 (objc_start_category_interface): Likewise.
447 (objc_start_protocol): Likewise.
448 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
449 (objc_start_class_interface): Likewise.
450 (objc_start_category_interface): Likewise.
452 2010-09-27 Ian Lance Taylor <iant@google.com>
454 * c-common.c (c_common_attribute_table): Add no_split_stack.
455 (handle_no_split_stack_attribute): New static function.
457 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
459 Merge from 'apple/trunk' branch on FSF servers.
461 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
464 * c-common.h (objc_have_common_type): New declaration.
465 * stub-objc.c (objc_have_common_type): New stub.
467 2005-06-22 Ziemowit Laski <zlaski@apple.com>
470 * c-common.h (objc_common_type): New prototype.
471 * stub-objc.c (objc_common_type): New stub.
473 2010-09-24 Jan Hubicka <jh@suse.cz>
475 * c-common.c (handle_leaf_attribute): New function.
476 (struct attribute_spec c_common_att): Add leaf.
478 2010-09-22 Joseph Myers <joseph@codesourcery.com>
480 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
481 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
482 -dump, -dump=, -imacros, -imacros=, -include, -include=,
483 -include-barrier, -include-directory, -include-directory=,
484 -include-directory-after, -include-directory-after=,
485 -include-prefix, -include-prefix=, -include-with-prefix,
486 -include-with-prefix=, -include-with-prefix-after,
487 -include-with-prefix-after=, -include-with-prefix-before,
488 -include-with-prefix-before=, -no-integrated-cpp,
489 -no-line-commands, -no-standard-includes, -no-warnings, -output,
490 -output=, -pedantic, -pedantic-errors, -preprocess,
491 -print-missing-file-dependencies, -trace-includes, -traditional,
492 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
493 -user-dependencies, -verbose, -write-dependencies,
494 -write-user-dependencies, no-integrated-cpp, traditional): New.
496 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
499 * c-common.h (objc_start_method_definition): Return bool instead
501 * stub-objc.c (objc_start_method_definition): Return bool instead
504 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
507 * c-common.h (objc_get_interface_ivars): New declaration.
508 * stub-objc.c (objc_get_interface_ivars): New stub.
510 2010-09-15 Ian Lance Taylor <iant@google.com>
512 * c-common.c (parse_optimize_options): Do not capitalize warning
513 messages. Remove period at end of warning message.
515 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
517 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
518 (handle_alias_attribute): ... here.
519 (handle_ifunc_attribute): New.
521 2010-09-06 Mark Mitchell <mark@codesourcery.com>
523 * c-common.h (do_warn_double_promotion): Declare.
524 * c-common.c (do_warn_double_promotion): Define.
526 2010-09-05 Mark Mitchell <mark@codesourcery.com>
528 * c.opt (Wdouble-promotion): New.
530 2010-09-02 Joseph Myers <joseph@codesourcery.com>
532 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
533 fvtable-thunks, fxref): Mark no longer supported in help text.
535 2010-09-02 Joseph Myers <joseph@codesourcery.com>
537 * c.opt (Wimport, fall-virtual, falt-external-templates,
538 fdefault-inline, fenum-int-equiv, fexternal-templates,
539 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
540 fname-mangling-version-, fnew-abi, fnonnull-objects,
541 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
542 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
544 (fhandle-exceptions): Mark with Alias and Warn.
545 * c-opts.c (c_common_handle_option): Don't handle options marked
548 2010-09-02 Joseph Myers <joseph@codesourcery.com>
550 * c.opt (Wcomments, Werror-implicit-function-declaration,
551 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
552 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
554 * c-common.c (option_codes): Use OPT_Wcomment instead of
556 * c-opts.c (warning_as_error_callback, c_common_handle_option):
557 Don't handle options marked as aliases.
559 2010-08-25 Richard Guenther <rguenther@suse.de>
561 * c-common.c (c_common_get_alias_set): Remove special
562 handling for pointers.
564 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
566 * c-common.c: Use FOR_EACH_VEC_ELT.
567 * c-gimplify.c: Likewise.
568 * c-pragma.c: Likewise.
570 2010-08-16 Joseph Myers <joseph@codesourcery.com>
572 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
574 (MMDX): Change back to MMD. Mark NoDriverArg instead of
576 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
577 instead of OPT_MDX and OPT_MMDX.
579 2010-08-16 Joseph Myers <joseph@codesourcery.com>
581 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
583 2010-08-12 Joseph Myers <joseph@codesourcery.com>
585 * c.opt (MD, MMD): Change to MDX and MMDX.
586 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
588 2010-08-11 Joseph Myers <joseph@codesourcery.com>
590 * c-opts.c (c_common_handle_option): Call handle_generated_option
591 instead of handle_option.
593 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
595 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
596 (maybe_apply_renaming_pragma): Delete unneeded declarations.
598 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
600 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
601 (pending_redefine_extname): Change type to a VEC.
602 (add_to_renaming_pragma_list): Update for new type of
603 pending_redefine_extname.
604 (maybe_apply_renaming_pragma): Likewise.
606 2010-08-04 Arnaud Charlet <charlet@adacore.com>
608 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
610 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
611 decide whether a type has already been declared/seen.
612 Do not go to the original type.
613 (dump_nested_types): New parameter forward.
614 Generate forward declaration if needed and mark type as visited.
615 (print_ada_declaration): Call dump_nested_types if not already done.
616 Mark types as visited.
618 2010-08-03 Joseph Myers <joseph@codesourcery.com>
620 * c.opt (-print-pch-checksum): Remove option.
621 * c-opts.c (c_common_handle_option): Don't handle
622 OPT_print_pch_checksum.
624 2010-07-27 Joseph Myers <joseph@codesourcery.com>
626 * c-common.h (c_common_handle_option): Update prototype and return
628 * c-opts.c (c_common_handle_option): Update prototype and return
629 value type. Update calls to handle_option and
630 enable_warning_as_error.
632 2010-07-27 Jakub Jelinek <jakub@redhat.com>
635 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
637 2010-07-27 Joseph Myers <joseph@codesourcery.com>
639 * c-common.h (c_common_missing_argument): Remove.
640 * c-opts.c (c_common_missing_argument): Remove.
641 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
642 idirafter, imacros, include, isysroot, isystem, iquote): Add
644 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
646 2010-07-27 Joseph Myers <joseph@codesourcery.com>
648 * c-common.h (c_common_option_lang_mask,
649 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
651 (c_common_init_options): Update prototype.
652 * c-opts.c (c_common_option_lang_mask): New.
653 (c_common_initialize_diagnostics): Split out of
654 c_common_init_options.
655 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
657 (c_common_init_options): Update prototype. Use decoded options in
658 search for -lang-asm.
660 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
662 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
663 * c-format.c: Likewise.
665 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
667 * c-common.h: Include diagnostic-core.h. Error if already
669 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
671 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
673 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
674 Do not include expr.h
675 (vector_mode_valid_p): Move here.
677 2010-06-21 DJ Delorie <dj@redhat.com>
679 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
680 allow these pragmas anywhere.
682 2010-06-14 Jakub Jelinek <jakub@redhat.com>
685 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
686 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
687 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
688 ggc_strdup instead of xstrdup.
690 2010-06-10 Jakub Jelinek <jakub@redhat.com>
692 * c-cppbuiltin.c: Include cpp-id-data.h.
693 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
694 (lazy_hex_fp_value): New function.
695 (builtin_define_with_hex_fp_value): Provide definitions lazily.
697 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
699 * c-gimplify.c: Do not include tree-flow.h
701 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
704 * c-common.c: Rename targetm member:
705 targetm.enum_va_list -> targetm.enum_va_list_p
707 2010-06-28 Anatoly Sokolov <aesok@post.ru>
709 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
711 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
713 * c-cppbuiltin.c: Do not include except.h.
715 2010-06-24 Andi Kleen <ak@linux.intel.com>
717 * c-common.c (warn_for_omitted_condop): New.
718 * c-common.h (warn_for_omitted_condop): Add prototype.
720 2010-06-21 Joseph Myers <joseph@codesourcery.com>
722 * c.opt (lang-objc): Remove.
723 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
725 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
727 * c-opts.c: Include "tm_p.h".
729 2010-06-20 Joseph Myers <joseph@codesourcery.com>
731 * c-common.c (parse_optimize_options): Update call to
734 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
736 * c-common.c (record_types_used_by_current_var_decl): Adjust for
737 new type of types_used_by_cur_var_decl.
739 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
742 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
743 for C++ standard compliance.
745 2010-06-16 Jason Merrill <jason@redhat.com>
747 * c.opt: Add -Wnoexcept.
749 2010-06-16 Richard Guenther <rguenther@suse.de>
752 * c-common.c (c_common_truthvalue_conversion): Remove
753 premature and wrong optimization concering ADDR_EXPRs.
755 2010-06-15 Arnaud Charlet <charlet@adacore.com>
757 * c-ada-spec.c (dump_sloc): Remove column info.
758 (is_simple_enum): New function.
759 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
760 enum types when relevant.
762 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
764 * c-common.c (conversion_warning): Warn at expression
767 2010-06-10 Joseph Myers <joseph@codesourcery.com>
769 * c-opts.c (c_common_handle_option): Don't handle
772 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
774 * c-pragma.c (push_alignment): Use typed GC allocation.
775 (handle_pragma_push_options): Likewise.
777 * c-common.c (parse_optimize_options): Likewise.
779 * c-common.h (struct sorted_fields_type): Add variable_size GTY
782 2010-06-07 Joseph Myers <joseph@codesourcery.com>
784 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
785 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
786 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
787 flag_signed_bitfields, warn_strict_null_sentinel,
788 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
789 flag_gen_declaration, flag_no_gnu_keywords,
790 flag_implement_inlines, flag_implicit_templates,
791 flag_implicit_inline_templates, flag_optional_diags,
792 flag_elide_constructors, flag_default_inline, flag_rtti,
793 flag_conserve_space, flag_access_control, flag_check_new,
794 flag_new_for_scope, flag_weak, flag_working_directory,
795 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
796 flag_enforce_eh_specs, flag_threadsafe_statics,
797 flag_pretty_templates): Remove.
798 * c-common.h (flag_preprocess_only, flag_nil_receivers,
799 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
800 flag_replace_objc_classes, flag_undef, flag_no_builtin,
801 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
802 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
803 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
804 flag_no_gnu_keywords, flag_implement_inlines,
805 flag_implicit_templates, flag_implicit_inline_templates,
806 flag_optional_diags, flag_elide_constructors, flag_default_inline,
807 flag_rtti, flag_conserve_space, flag_access_control,
808 flag_check_new, flag_new_for_scope, flag_weak,
809 flag_working_directory, flag_use_cxa_atexit,
810 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
811 flag_threadsafe_statics, flag_pretty_templates,
812 warn_strict_null_sentinel): Remove.
813 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
814 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
815 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
816 fimplicit-inline-templates, fimplicit-templates,
817 flax-vector-conversions, fms-extensions, fnil-receivers,
818 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
819 frtti, fshort-double, fshort-enums, fshort-wchar,
820 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
821 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
822 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
823 gen-decls, undef): Use Var.
824 (fdefault-inline, foptional-diags): Document as doing nothing.
825 * c-opts.c (c_common_handle_option): Remove cases for options now
826 using Var. Mark ignored options as such.
828 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
830 * c-common.c: Moved to here from parent directory.
831 * c-common.def: Likewise.
832 * c-common.h: Likewise.
833 * c-cppbuiltin.c: Likewise.
834 * c-dump.c: Likewise.
835 * c-format.c: Likewise.
836 * c-format.h : Likewise.
837 * c-gimplify.c: Likewise.
841 * c-opts.c: Likewise.
843 * c-ppoutput.c: Likewise.
844 * c-pragma.c: Likewise.
845 * c-pragma.h: Likewise.
846 * c-pretty-print.c: Likewise.
847 * c-pretty-print.h: Likewise.
848 * c-semantics.c: Likewise.
849 * stub-objc.c: Likewise.
851 * c-common.c: Include gt-c-family-c-common.h.
852 * c-pragma.c: Include gt-c-family-c-pragma.h.
854 Copyright (C) 2010 Free Software Foundation, Inc.
856 Copying and distribution of this file, with or without modification,
857 are permitted in any medium without royalty provided the copyright
858 notice and this notice are preserved.