1 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3 * c-cppbuiltin.c (builtin_define_float_constants): Emit
4 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
5 has the appropriate fma builtins.
6 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
8 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
10 merge from FSF apple 'trunk' branch.
11 2006 Fariborz Jahanian <fjahanian@apple.com>
13 Radars 4436866, 4505126, 4506903, 4517826
14 * c-common.c (c_common_resword): Define @property and its attributes.
15 * c-common.h: Define property attribute enum entries.
16 (OBJC_IS_PATTR_KEYWORD): New.
17 (objc_property_attribute_kind): New enum.
18 Declare objc_set_property_attr (), objc_add_property_variable (),
19 objc_build_getter_call () and objc_build_setter_call ().
20 * stub-objc.c (objc_set_property_attr): New stub.
21 (objc_add_property_variable): Likewise.
22 (objc_build_getter_call): Likewise.
23 (objc_build_setter_call) Likewise.
25 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
27 merge from FSF apple 'trunk' branch.
28 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
30 Radar 3803157 (method attributes)
31 * c-common.c (handle_deprecated_attribute): Recognize
32 objc methods as valid declarations.
33 * c-common.h: Declare objc_method_decl ().
34 * stub-objc.c (objc_method_decl): New stub.
36 2010-10-08 Joseph Myers <joseph@codesourcery.com>
38 * c-common.c (parse_optimize_options): Call
39 decode_cmdline_options_to_array_default_mask before
40 decode_options. Update arguments to decode_options.
41 * c-common.h (c_common_init_options_struct): Declare.
42 * c-opts.c (c_common_init_options_struct): New. Split out from
43 c_common_init_options.
45 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
47 Implemented fast enumeration for Objective-C.
48 * c-common.h (objc_finish_foreach_loop): New.
49 * stub-objc.c (objc_finish_foreach_loop): New.
51 2010-10-05 Joseph Myers <joseph@codesourcery.com>
53 * c-common.h (struct diagnostic_context): Don't declare here.
54 (c_common_initialize_diagnostics): Declare using
55 diagnostic_context typedef.
56 * c-opts.c (c_common_handle_option): Pass global_dc to
57 handle_generated_option.
59 2010-10-04 Joseph Myers <joseph@codesourcery.com>
61 * c-opts.c (c_common_handle_option): Pass &global_options_set to
62 handle_generated_option.
64 2010-10-03 Ian Lance Taylor <iant@google.com>
66 * c.opt (-fplan9-extensions): New option.
68 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
70 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
72 (c_cpp_builtins): Call functions from cppbuiltin.c instead
75 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
77 * c-common.c: Add two new entries for @optional
78 and @required keywords.
80 merge from FSF 'apple/trunk' branch.
81 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
84 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
86 (objc_set_method_opt): New declaration.
87 * stub-objc.c (objc_set_method_opt): New stub.
89 2010-09-30 Joseph Myers <joseph@codesourcery.com>
91 * c-common.c (handle_optimize_attribute): Pass &global_options to
92 cl_optimization_save and cl_optimization_restore.
93 * c-opts.c (c_common_handle_option): Pass &global_options to
94 handle_generated_option.
95 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
96 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
97 &global_options to cl_optimization_restore.
99 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
101 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
102 Objective-C/Objective-C++ keywords.
104 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
106 Merge from 'apple/trunk' branch on FSF servers.
108 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
111 * c-common.h (objc_check_global_decl): New declaration.
112 * stub-objc.c (objc_check_global_decl): New stub.
114 2010-09-29 Joseph Myers <joseph@codesourcery.com>
116 * c.opt: Don't use VarExists.
118 2010-09-29 Joseph Myers <joseph@codesourcery.com>
120 * c-common.c (c_cpp_error): Update names of diagnostic_context
122 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
123 cl_optimization members.
124 * c-opts.c (warning_as_error_callback, c_common_handle_option,
125 sanitize_cpp_opts, finish_options): Update names of cpp_options
128 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
130 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
131 (objc_is_reserved_word): Removed.
132 * c-common.c: Updated comments.
133 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
134 objc_is_reserved_word.
135 * stub-objc.c (objc_is_reserved_word): Removed.
137 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
139 * c-common.h (objc_add_method_declaration): Adjust prototype to
141 (objc_start_method_definition): Likewise.
142 (objc_build_keyword_decl): Likewise.
143 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
144 (objc_start_method_definition): Likewise.
145 (objc_build_keyword_decl): Likewise.
147 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
149 * c-common.h (objc_start_class_interface): Adjust prototype.
150 (objc_start_category_interface): Likewise.
151 (objc_start_protocol): Likewise.
152 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
153 (objc_start_class_interface): Likewise.
154 (objc_start_category_interface): Likewise.
156 2010-09-27 Ian Lance Taylor <iant@google.com>
158 * c-common.c (c_common_attribute_table): Add no_split_stack.
159 (handle_no_split_stack_attribute): New static function.
161 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
163 Merge from 'apple/trunk' branch on FSF servers.
165 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
168 * c-common.h (objc_have_common_type): New declaration.
169 * stub-objc.c (objc_have_common_type): New stub.
171 2005-06-22 Ziemowit Laski <zlaski@apple.com>
174 * c-common.h (objc_common_type): New prototype.
175 * stub-objc.c (objc_common_type): New stub.
177 2010-09-24 Jan Hubicka <jh@suse.cz>
179 * c-common.c (handle_leaf_attribute): New function.
180 (struct attribute_spec c_common_att): Add leaf.
182 2010-09-22 Joseph Myers <joseph@codesourcery.com>
184 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
185 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
186 -dump, -dump=, -imacros, -imacros=, -include, -include=,
187 -include-barrier, -include-directory, -include-directory=,
188 -include-directory-after, -include-directory-after=,
189 -include-prefix, -include-prefix=, -include-with-prefix,
190 -include-with-prefix=, -include-with-prefix-after,
191 -include-with-prefix-after=, -include-with-prefix-before,
192 -include-with-prefix-before=, -no-integrated-cpp,
193 -no-line-commands, -no-standard-includes, -no-warnings, -output,
194 -output=, -pedantic, -pedantic-errors, -preprocess,
195 -print-missing-file-dependencies, -trace-includes, -traditional,
196 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
197 -user-dependencies, -verbose, -write-dependencies,
198 -write-user-dependencies, no-integrated-cpp, traditional): New.
200 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
203 * c-common.h (objc_start_method_definition): Return bool instead
205 * stub-objc.c (objc_start_method_definition): Return bool instead
208 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
211 * c-common.h (objc_get_interface_ivars): New declaration.
212 * stub-objc.c (objc_get_interface_ivars): New stub.
214 2010-09-15 Ian Lance Taylor <iant@google.com>
216 * c-common.c (parse_optimize_options): Do not capitalize warning
217 messages. Remove period at end of warning message.
219 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
221 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
222 (handle_alias_attribute): ... here.
223 (handle_ifunc_attribute): New.
225 2010-09-06 Mark Mitchell <mark@codesourcery.com>
227 * c-common.h (do_warn_double_promotion): Declare.
228 * c-common.c (do_warn_double_promotion): Define.
230 2010-09-05 Mark Mitchell <mark@codesourcery.com>
232 * c.opt (Wdouble-promotion): New.
234 2010-09-02 Joseph Myers <joseph@codesourcery.com>
236 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
237 fvtable-thunks, fxref): Mark no longer supported in help text.
239 2010-09-02 Joseph Myers <joseph@codesourcery.com>
241 * c.opt (Wimport, fall-virtual, falt-external-templates,
242 fdefault-inline, fenum-int-equiv, fexternal-templates,
243 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
244 fname-mangling-version-, fnew-abi, fnonnull-objects,
245 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
246 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
248 (fhandle-exceptions): Mark with Alias and Warn.
249 * c-opts.c (c_common_handle_option): Don't handle options marked
252 2010-09-02 Joseph Myers <joseph@codesourcery.com>
254 * c.opt (Wcomments, Werror-implicit-function-declaration,
255 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
256 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
258 * c-common.c (option_codes): Use OPT_Wcomment instead of
260 * c-opts.c (warning_as_error_callback, c_common_handle_option):
261 Don't handle options marked as aliases.
263 2010-08-25 Richard Guenther <rguenther@suse.de>
265 * c-common.c (c_common_get_alias_set): Remove special
266 handling for pointers.
268 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
270 * c-common.c: Use FOR_EACH_VEC_ELT.
271 * c-gimplify.c: Likewise.
272 * c-pragma.c: Likewise.
274 2010-08-16 Joseph Myers <joseph@codesourcery.com>
276 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
278 (MMDX): Change back to MMD. Mark NoDriverArg instead of
280 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
281 instead of OPT_MDX and OPT_MMDX.
283 2010-08-16 Joseph Myers <joseph@codesourcery.com>
285 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
287 2010-08-12 Joseph Myers <joseph@codesourcery.com>
289 * c.opt (MD, MMD): Change to MDX and MMDX.
290 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
292 2010-08-11 Joseph Myers <joseph@codesourcery.com>
294 * c-opts.c (c_common_handle_option): Call handle_generated_option
295 instead of handle_option.
297 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
299 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
300 (maybe_apply_renaming_pragma): Delete unneeded declarations.
302 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
304 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
305 (pending_redefine_extname): Change type to a VEC.
306 (add_to_renaming_pragma_list): Update for new type of
307 pending_redefine_extname.
308 (maybe_apply_renaming_pragma): Likewise.
310 2010-08-04 Arnaud Charlet <charlet@adacore.com>
312 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
314 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
315 decide whether a type has already been declared/seen.
316 Do not go to the original type.
317 (dump_nested_types): New parameter forward.
318 Generate forward declaration if needed and mark type as visited.
319 (print_ada_declaration): Call dump_nested_types if not already done.
320 Mark types as visited.
322 2010-08-03 Joseph Myers <joseph@codesourcery.com>
324 * c.opt (-print-pch-checksum): Remove option.
325 * c-opts.c (c_common_handle_option): Don't handle
326 OPT_print_pch_checksum.
328 2010-07-27 Joseph Myers <joseph@codesourcery.com>
330 * c-common.h (c_common_handle_option): Update prototype and return
332 * c-opts.c (c_common_handle_option): Update prototype and return
333 value type. Update calls to handle_option and
334 enable_warning_as_error.
336 2010-07-27 Jakub Jelinek <jakub@redhat.com>
339 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
341 2010-07-27 Joseph Myers <joseph@codesourcery.com>
343 * c-common.h (c_common_missing_argument): Remove.
344 * c-opts.c (c_common_missing_argument): Remove.
345 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
346 idirafter, imacros, include, isysroot, isystem, iquote): Add
348 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
350 2010-07-27 Joseph Myers <joseph@codesourcery.com>
352 * c-common.h (c_common_option_lang_mask,
353 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
355 (c_common_init_options): Update prototype.
356 * c-opts.c (c_common_option_lang_mask): New.
357 (c_common_initialize_diagnostics): Split out of
358 c_common_init_options.
359 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
361 (c_common_init_options): Update prototype. Use decoded options in
362 search for -lang-asm.
364 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
366 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
367 * c-format.c: Likewise.
369 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
371 * c-common.h: Include diagnostic-core.h. Error if already
373 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
375 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
377 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
378 Do not include expr.h
379 (vector_mode_valid_p): Move here.
381 2010-06-21 DJ Delorie <dj@redhat.com>
383 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
384 allow these pragmas anywhere.
386 2010-06-14 Jakub Jelinek <jakub@redhat.com>
389 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
390 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
391 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
392 ggc_strdup instead of xstrdup.
394 2010-06-10 Jakub Jelinek <jakub@redhat.com>
396 * c-cppbuiltin.c: Include cpp-id-data.h.
397 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
398 (lazy_hex_fp_value): New function.
399 (builtin_define_with_hex_fp_value): Provide definitions lazily.
401 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
403 * c-gimplify.c: Do not include tree-flow.h
405 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
408 * c-common.c: Rename targetm member:
409 targetm.enum_va_list -> targetm.enum_va_list_p
411 2010-06-28 Anatoly Sokolov <aesok@post.ru>
413 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
415 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
417 * c-cppbuiltin.c: Do not include except.h.
419 2010-06-24 Andi Kleen <ak@linux.intel.com>
421 * c-common.c (warn_for_omitted_condop): New.
422 * c-common.h (warn_for_omitted_condop): Add prototype.
424 2010-06-21 Joseph Myers <joseph@codesourcery.com>
426 * c.opt (lang-objc): Remove.
427 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
429 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
431 * c-opts.c: Include "tm_p.h".
433 2010-06-20 Joseph Myers <joseph@codesourcery.com>
435 * c-common.c (parse_optimize_options): Update call to
438 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
440 * c-common.c (record_types_used_by_current_var_decl): Adjust for
441 new type of types_used_by_cur_var_decl.
443 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
446 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
447 for C++ standard compliance.
449 2010-06-16 Jason Merrill <jason@redhat.com>
451 * c.opt: Add -Wnoexcept.
453 2010-06-16 Richard Guenther <rguenther@suse.de>
456 * c-common.c (c_common_truthvalue_conversion): Remove
457 premature and wrong optimization concering ADDR_EXPRs.
459 2010-06-15 Arnaud Charlet <charlet@adacore.com>
461 * c-ada-spec.c (dump_sloc): Remove column info.
462 (is_simple_enum): New function.
463 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
464 enum types when relevant.
466 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
468 * c-common.c (conversion_warning): Warn at expression
471 2010-06-10 Joseph Myers <joseph@codesourcery.com>
473 * c-opts.c (c_common_handle_option): Don't handle
476 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
478 * c-pragma.c (push_alignment): Use typed GC allocation.
479 (handle_pragma_push_options): Likewise.
481 * c-common.c (parse_optimize_options): Likewise.
483 * c-common.h (struct sorted_fields_type): Add variable_size GTY
486 2010-06-07 Joseph Myers <joseph@codesourcery.com>
488 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
489 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
490 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
491 flag_signed_bitfields, warn_strict_null_sentinel,
492 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
493 flag_gen_declaration, flag_no_gnu_keywords,
494 flag_implement_inlines, flag_implicit_templates,
495 flag_implicit_inline_templates, flag_optional_diags,
496 flag_elide_constructors, flag_default_inline, flag_rtti,
497 flag_conserve_space, flag_access_control, flag_check_new,
498 flag_new_for_scope, flag_weak, flag_working_directory,
499 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
500 flag_enforce_eh_specs, flag_threadsafe_statics,
501 flag_pretty_templates): Remove.
502 * c-common.h (flag_preprocess_only, flag_nil_receivers,
503 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
504 flag_replace_objc_classes, flag_undef, flag_no_builtin,
505 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
506 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
507 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
508 flag_no_gnu_keywords, flag_implement_inlines,
509 flag_implicit_templates, flag_implicit_inline_templates,
510 flag_optional_diags, flag_elide_constructors, flag_default_inline,
511 flag_rtti, flag_conserve_space, flag_access_control,
512 flag_check_new, flag_new_for_scope, flag_weak,
513 flag_working_directory, flag_use_cxa_atexit,
514 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
515 flag_threadsafe_statics, flag_pretty_templates,
516 warn_strict_null_sentinel): Remove.
517 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
518 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
519 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
520 fimplicit-inline-templates, fimplicit-templates,
521 flax-vector-conversions, fms-extensions, fnil-receivers,
522 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
523 frtti, fshort-double, fshort-enums, fshort-wchar,
524 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
525 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
526 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
527 gen-decls, undef): Use Var.
528 (fdefault-inline, foptional-diags): Document as doing nothing.
529 * c-opts.c (c_common_handle_option): Remove cases for options now
530 using Var. Mark ignored options as such.
532 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
534 * c-common.c: Moved to here from parent directory.
535 * c-common.def: Likewise.
536 * c-common.h: Likewise.
537 * c-cppbuiltin.c: Likewise.
538 * c-dump.c: Likewise.
539 * c-format.c: Likewise.
540 * c-format.h : Likewise.
541 * c-gimplify.c: Likewise.
545 * c-opts.c: Likewise.
547 * c-ppoutput.c: Likewise.
548 * c-pragma.c: Likewise.
549 * c-pragma.h: Likewise.
550 * c-pretty-print.c: Likewise.
551 * c-pretty-print.h: Likewise.
552 * c-semantics.c: Likewise.
553 * stub-objc.c: Likewise.
555 * c-common.c: Include gt-c-family-c-common.h.
556 * c-pragma.c: Include gt-c-family-c-pragma.h.
558 Copyright (C) 2010 Free Software Foundation, Inc.
560 Copying and distribution of this file, with or without modification,
561 are permitted in any medium without royalty provided the copyright
562 notice and this notice are preserved.