1 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3 Merge from 'apple/trunk' branch on FSF servers.
5 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
8 * c-common.h (objc_diagnose_private_ivar): New decl.
9 * stub-objc.c (objc_diagnose_private_ivar): New stub.
11 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
13 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
14 * c-common.h (enum rid): Add RID_AT_PACKAGE.
15 (objc_ivar_visibility_kind): New enum.
16 (objc_set_visibility): Adjust prototype to use visibility enum.
17 * stub-objc.c (objc_set_visibility): Adjust stub to use
20 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
22 * c-cppbuiltin.c (builtin_define_float_constants): Emit
23 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
24 has the appropriate fma builtins.
25 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
27 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
29 merge from FSF apple 'trunk' branch.
30 2006 Fariborz Jahanian <fjahanian@apple.com>
32 Radars 4436866, 4505126, 4506903, 4517826
33 * c-common.c (c_common_resword): Define @property and its attributes.
34 * c-common.h: Define property attribute enum entries.
35 (OBJC_IS_PATTR_KEYWORD): New.
36 (objc_property_attribute_kind): New enum.
37 Declare objc_set_property_attr (), objc_add_property_variable (),
38 objc_build_getter_call () and objc_build_setter_call ().
39 * stub-objc.c (objc_set_property_attr): New stub.
40 (objc_add_property_variable): Likewise.
41 (objc_build_getter_call): Likewise.
42 (objc_build_setter_call) Likewise.
44 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
46 merge from FSF apple 'trunk' branch.
47 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
49 Radar 3803157 (method attributes)
50 * c-common.c (handle_deprecated_attribute): Recognize
51 objc methods as valid declarations.
52 * c-common.h: Declare objc_method_decl ().
53 * stub-objc.c (objc_method_decl): New stub.
55 2010-10-08 Joseph Myers <joseph@codesourcery.com>
57 * c-common.c (parse_optimize_options): Call
58 decode_cmdline_options_to_array_default_mask before
59 decode_options. Update arguments to decode_options.
60 * c-common.h (c_common_init_options_struct): Declare.
61 * c-opts.c (c_common_init_options_struct): New. Split out from
62 c_common_init_options.
64 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
66 Implemented fast enumeration for Objective-C.
67 * c-common.h (objc_finish_foreach_loop): New.
68 * stub-objc.c (objc_finish_foreach_loop): New.
70 2010-10-05 Joseph Myers <joseph@codesourcery.com>
72 * c-common.h (struct diagnostic_context): Don't declare here.
73 (c_common_initialize_diagnostics): Declare using
74 diagnostic_context typedef.
75 * c-opts.c (c_common_handle_option): Pass global_dc to
76 handle_generated_option.
78 2010-10-04 Joseph Myers <joseph@codesourcery.com>
80 * c-opts.c (c_common_handle_option): Pass &global_options_set to
81 handle_generated_option.
83 2010-10-03 Ian Lance Taylor <iant@google.com>
85 * c.opt (-fplan9-extensions): New option.
87 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
89 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
91 (c_cpp_builtins): Call functions from cppbuiltin.c instead
94 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
96 * c-common.c: Add two new entries for @optional
97 and @required keywords.
99 merge from FSF 'apple/trunk' branch.
100 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
103 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
104 objective-c keywords.
105 (objc_set_method_opt): New declaration.
106 * stub-objc.c (objc_set_method_opt): New stub.
108 2010-09-30 Joseph Myers <joseph@codesourcery.com>
110 * c-common.c (handle_optimize_attribute): Pass &global_options to
111 cl_optimization_save and cl_optimization_restore.
112 * c-opts.c (c_common_handle_option): Pass &global_options to
113 handle_generated_option.
114 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
115 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
116 &global_options to cl_optimization_restore.
118 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
120 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
121 Objective-C/Objective-C++ keywords.
123 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
125 Merge from 'apple/trunk' branch on FSF servers.
127 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
130 * c-common.h (objc_check_global_decl): New declaration.
131 * stub-objc.c (objc_check_global_decl): New stub.
133 2010-09-29 Joseph Myers <joseph@codesourcery.com>
135 * c.opt: Don't use VarExists.
137 2010-09-29 Joseph Myers <joseph@codesourcery.com>
139 * c-common.c (c_cpp_error): Update names of diagnostic_context
141 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
142 cl_optimization members.
143 * c-opts.c (warning_as_error_callback, c_common_handle_option,
144 sanitize_cpp_opts, finish_options): Update names of cpp_options
147 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
149 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
150 (objc_is_reserved_word): Removed.
151 * c-common.c: Updated comments.
152 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
153 objc_is_reserved_word.
154 * stub-objc.c (objc_is_reserved_word): Removed.
156 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
158 * c-common.h (objc_add_method_declaration): Adjust prototype to
160 (objc_start_method_definition): Likewise.
161 (objc_build_keyword_decl): Likewise.
162 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
163 (objc_start_method_definition): Likewise.
164 (objc_build_keyword_decl): Likewise.
166 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
168 * c-common.h (objc_start_class_interface): Adjust prototype.
169 (objc_start_category_interface): Likewise.
170 (objc_start_protocol): Likewise.
171 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
172 (objc_start_class_interface): Likewise.
173 (objc_start_category_interface): Likewise.
175 2010-09-27 Ian Lance Taylor <iant@google.com>
177 * c-common.c (c_common_attribute_table): Add no_split_stack.
178 (handle_no_split_stack_attribute): New static function.
180 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
182 Merge from 'apple/trunk' branch on FSF servers.
184 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
187 * c-common.h (objc_have_common_type): New declaration.
188 * stub-objc.c (objc_have_common_type): New stub.
190 2005-06-22 Ziemowit Laski <zlaski@apple.com>
193 * c-common.h (objc_common_type): New prototype.
194 * stub-objc.c (objc_common_type): New stub.
196 2010-09-24 Jan Hubicka <jh@suse.cz>
198 * c-common.c (handle_leaf_attribute): New function.
199 (struct attribute_spec c_common_att): Add leaf.
201 2010-09-22 Joseph Myers <joseph@codesourcery.com>
203 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
204 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
205 -dump, -dump=, -imacros, -imacros=, -include, -include=,
206 -include-barrier, -include-directory, -include-directory=,
207 -include-directory-after, -include-directory-after=,
208 -include-prefix, -include-prefix=, -include-with-prefix,
209 -include-with-prefix=, -include-with-prefix-after,
210 -include-with-prefix-after=, -include-with-prefix-before,
211 -include-with-prefix-before=, -no-integrated-cpp,
212 -no-line-commands, -no-standard-includes, -no-warnings, -output,
213 -output=, -pedantic, -pedantic-errors, -preprocess,
214 -print-missing-file-dependencies, -trace-includes, -traditional,
215 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
216 -user-dependencies, -verbose, -write-dependencies,
217 -write-user-dependencies, no-integrated-cpp, traditional): New.
219 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
222 * c-common.h (objc_start_method_definition): Return bool instead
224 * stub-objc.c (objc_start_method_definition): Return bool instead
227 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
230 * c-common.h (objc_get_interface_ivars): New declaration.
231 * stub-objc.c (objc_get_interface_ivars): New stub.
233 2010-09-15 Ian Lance Taylor <iant@google.com>
235 * c-common.c (parse_optimize_options): Do not capitalize warning
236 messages. Remove period at end of warning message.
238 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
240 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
241 (handle_alias_attribute): ... here.
242 (handle_ifunc_attribute): New.
244 2010-09-06 Mark Mitchell <mark@codesourcery.com>
246 * c-common.h (do_warn_double_promotion): Declare.
247 * c-common.c (do_warn_double_promotion): Define.
249 2010-09-05 Mark Mitchell <mark@codesourcery.com>
251 * c.opt (Wdouble-promotion): New.
253 2010-09-02 Joseph Myers <joseph@codesourcery.com>
255 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
256 fvtable-thunks, fxref): Mark no longer supported in help text.
258 2010-09-02 Joseph Myers <joseph@codesourcery.com>
260 * c.opt (Wimport, fall-virtual, falt-external-templates,
261 fdefault-inline, fenum-int-equiv, fexternal-templates,
262 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
263 fname-mangling-version-, fnew-abi, fnonnull-objects,
264 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
265 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
267 (fhandle-exceptions): Mark with Alias and Warn.
268 * c-opts.c (c_common_handle_option): Don't handle options marked
271 2010-09-02 Joseph Myers <joseph@codesourcery.com>
273 * c.opt (Wcomments, Werror-implicit-function-declaration,
274 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
275 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
277 * c-common.c (option_codes): Use OPT_Wcomment instead of
279 * c-opts.c (warning_as_error_callback, c_common_handle_option):
280 Don't handle options marked as aliases.
282 2010-08-25 Richard Guenther <rguenther@suse.de>
284 * c-common.c (c_common_get_alias_set): Remove special
285 handling for pointers.
287 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
289 * c-common.c: Use FOR_EACH_VEC_ELT.
290 * c-gimplify.c: Likewise.
291 * c-pragma.c: Likewise.
293 2010-08-16 Joseph Myers <joseph@codesourcery.com>
295 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
297 (MMDX): Change back to MMD. Mark NoDriverArg instead of
299 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
300 instead of OPT_MDX and OPT_MMDX.
302 2010-08-16 Joseph Myers <joseph@codesourcery.com>
304 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
306 2010-08-12 Joseph Myers <joseph@codesourcery.com>
308 * c.opt (MD, MMD): Change to MDX and MMDX.
309 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
311 2010-08-11 Joseph Myers <joseph@codesourcery.com>
313 * c-opts.c (c_common_handle_option): Call handle_generated_option
314 instead of handle_option.
316 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
318 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
319 (maybe_apply_renaming_pragma): Delete unneeded declarations.
321 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
323 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
324 (pending_redefine_extname): Change type to a VEC.
325 (add_to_renaming_pragma_list): Update for new type of
326 pending_redefine_extname.
327 (maybe_apply_renaming_pragma): Likewise.
329 2010-08-04 Arnaud Charlet <charlet@adacore.com>
331 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
333 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
334 decide whether a type has already been declared/seen.
335 Do not go to the original type.
336 (dump_nested_types): New parameter forward.
337 Generate forward declaration if needed and mark type as visited.
338 (print_ada_declaration): Call dump_nested_types if not already done.
339 Mark types as visited.
341 2010-08-03 Joseph Myers <joseph@codesourcery.com>
343 * c.opt (-print-pch-checksum): Remove option.
344 * c-opts.c (c_common_handle_option): Don't handle
345 OPT_print_pch_checksum.
347 2010-07-27 Joseph Myers <joseph@codesourcery.com>
349 * c-common.h (c_common_handle_option): Update prototype and return
351 * c-opts.c (c_common_handle_option): Update prototype and return
352 value type. Update calls to handle_option and
353 enable_warning_as_error.
355 2010-07-27 Jakub Jelinek <jakub@redhat.com>
358 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
360 2010-07-27 Joseph Myers <joseph@codesourcery.com>
362 * c-common.h (c_common_missing_argument): Remove.
363 * c-opts.c (c_common_missing_argument): Remove.
364 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
365 idirafter, imacros, include, isysroot, isystem, iquote): Add
367 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
369 2010-07-27 Joseph Myers <joseph@codesourcery.com>
371 * c-common.h (c_common_option_lang_mask,
372 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
374 (c_common_init_options): Update prototype.
375 * c-opts.c (c_common_option_lang_mask): New.
376 (c_common_initialize_diagnostics): Split out of
377 c_common_init_options.
378 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
380 (c_common_init_options): Update prototype. Use decoded options in
381 search for -lang-asm.
383 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
385 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
386 * c-format.c: Likewise.
388 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
390 * c-common.h: Include diagnostic-core.h. Error if already
392 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
394 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
396 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
397 Do not include expr.h
398 (vector_mode_valid_p): Move here.
400 2010-06-21 DJ Delorie <dj@redhat.com>
402 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
403 allow these pragmas anywhere.
405 2010-06-14 Jakub Jelinek <jakub@redhat.com>
408 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
409 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
410 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
411 ggc_strdup instead of xstrdup.
413 2010-06-10 Jakub Jelinek <jakub@redhat.com>
415 * c-cppbuiltin.c: Include cpp-id-data.h.
416 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
417 (lazy_hex_fp_value): New function.
418 (builtin_define_with_hex_fp_value): Provide definitions lazily.
420 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
422 * c-gimplify.c: Do not include tree-flow.h
424 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
427 * c-common.c: Rename targetm member:
428 targetm.enum_va_list -> targetm.enum_va_list_p
430 2010-06-28 Anatoly Sokolov <aesok@post.ru>
432 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
434 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
436 * c-cppbuiltin.c: Do not include except.h.
438 2010-06-24 Andi Kleen <ak@linux.intel.com>
440 * c-common.c (warn_for_omitted_condop): New.
441 * c-common.h (warn_for_omitted_condop): Add prototype.
443 2010-06-21 Joseph Myers <joseph@codesourcery.com>
445 * c.opt (lang-objc): Remove.
446 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
448 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
450 * c-opts.c: Include "tm_p.h".
452 2010-06-20 Joseph Myers <joseph@codesourcery.com>
454 * c-common.c (parse_optimize_options): Update call to
457 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
459 * c-common.c (record_types_used_by_current_var_decl): Adjust for
460 new type of types_used_by_cur_var_decl.
462 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
465 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
466 for C++ standard compliance.
468 2010-06-16 Jason Merrill <jason@redhat.com>
470 * c.opt: Add -Wnoexcept.
472 2010-06-16 Richard Guenther <rguenther@suse.de>
475 * c-common.c (c_common_truthvalue_conversion): Remove
476 premature and wrong optimization concering ADDR_EXPRs.
478 2010-06-15 Arnaud Charlet <charlet@adacore.com>
480 * c-ada-spec.c (dump_sloc): Remove column info.
481 (is_simple_enum): New function.
482 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
483 enum types when relevant.
485 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
487 * c-common.c (conversion_warning): Warn at expression
490 2010-06-10 Joseph Myers <joseph@codesourcery.com>
492 * c-opts.c (c_common_handle_option): Don't handle
495 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
497 * c-pragma.c (push_alignment): Use typed GC allocation.
498 (handle_pragma_push_options): Likewise.
500 * c-common.c (parse_optimize_options): Likewise.
502 * c-common.h (struct sorted_fields_type): Add variable_size GTY
505 2010-06-07 Joseph Myers <joseph@codesourcery.com>
507 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
508 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
509 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
510 flag_signed_bitfields, warn_strict_null_sentinel,
511 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
512 flag_gen_declaration, flag_no_gnu_keywords,
513 flag_implement_inlines, flag_implicit_templates,
514 flag_implicit_inline_templates, flag_optional_diags,
515 flag_elide_constructors, flag_default_inline, flag_rtti,
516 flag_conserve_space, flag_access_control, flag_check_new,
517 flag_new_for_scope, flag_weak, flag_working_directory,
518 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
519 flag_enforce_eh_specs, flag_threadsafe_statics,
520 flag_pretty_templates): Remove.
521 * c-common.h (flag_preprocess_only, flag_nil_receivers,
522 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
523 flag_replace_objc_classes, flag_undef, flag_no_builtin,
524 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
525 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
526 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
527 flag_no_gnu_keywords, flag_implement_inlines,
528 flag_implicit_templates, flag_implicit_inline_templates,
529 flag_optional_diags, flag_elide_constructors, flag_default_inline,
530 flag_rtti, flag_conserve_space, flag_access_control,
531 flag_check_new, flag_new_for_scope, flag_weak,
532 flag_working_directory, flag_use_cxa_atexit,
533 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
534 flag_threadsafe_statics, flag_pretty_templates,
535 warn_strict_null_sentinel): Remove.
536 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
537 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
538 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
539 fimplicit-inline-templates, fimplicit-templates,
540 flax-vector-conversions, fms-extensions, fnil-receivers,
541 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
542 frtti, fshort-double, fshort-enums, fshort-wchar,
543 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
544 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
545 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
546 gen-decls, undef): Use Var.
547 (fdefault-inline, foptional-diags): Document as doing nothing.
548 * c-opts.c (c_common_handle_option): Remove cases for options now
549 using Var. Mark ignored options as such.
551 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
553 * c-common.c: Moved to here from parent directory.
554 * c-common.def: Likewise.
555 * c-common.h: Likewise.
556 * c-cppbuiltin.c: Likewise.
557 * c-dump.c: Likewise.
558 * c-format.c: Likewise.
559 * c-format.h : Likewise.
560 * c-gimplify.c: Likewise.
564 * c-opts.c: Likewise.
566 * c-ppoutput.c: Likewise.
567 * c-pragma.c: Likewise.
568 * c-pragma.h: Likewise.
569 * c-pretty-print.c: Likewise.
570 * c-pretty-print.h: Likewise.
571 * c-semantics.c: Likewise.
572 * stub-objc.c: Likewise.
574 * c-common.c: Include gt-c-family-c-common.h.
575 * c-pragma.c: Include gt-c-family-c-pragma.h.
577 Copyright (C) 2010 Free Software Foundation, Inc.
579 Copying and distribution of this file, with or without modification,
580 are permitted in any medium without royalty provided the copyright
581 notice and this notice are preserved.