1 2010-10-05 Joseph Myers <joseph@codesourcery.com>
3 * c-common.h (struct diagnostic_context): Don't declare here.
4 (c_common_initialize_diagnostics): Declare using
5 diagnostic_context typedef.
6 * c-opts.c (c_common_handle_option): Pass global_dc to
7 handle_generated_option.
9 2010-10-04 Joseph Myers <joseph@codesourcery.com>
11 * c-opts.c (c_common_handle_option): Pass &global_options_set to
12 handle_generated_option.
14 2010-10-03 Ian Lance Taylor <iant@google.com>
16 * c.opt (-fplan9-extensions): New option.
18 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
20 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
22 (c_cpp_builtins): Call functions from cppbuiltin.c instead
25 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
27 * c-common.c: Add two new entries for @optional
28 and @required keywords.
30 merge from FSF 'apple/trunk' branch.
31 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
34 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
36 (objc_set_method_opt): New declaration.
37 * stub-objc.c (objc_set_method_opt): New stub.
39 2010-09-30 Joseph Myers <joseph@codesourcery.com>
41 * c-common.c (handle_optimize_attribute): Pass &global_options to
42 cl_optimization_save and cl_optimization_restore.
43 * c-opts.c (c_common_handle_option): Pass &global_options to
44 handle_generated_option.
45 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
46 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
47 &global_options to cl_optimization_restore.
49 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
51 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
52 Objective-C/Objective-C++ keywords.
54 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
56 Merge from 'apple/trunk' branch on FSF servers.
58 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
61 * c-common.h (objc_check_global_decl): New declaration.
62 * stub-objc.c (objc_check_global_decl): New stub.
64 2010-09-29 Joseph Myers <joseph@codesourcery.com>
66 * c.opt: Don't use VarExists.
68 2010-09-29 Joseph Myers <joseph@codesourcery.com>
70 * c-common.c (c_cpp_error): Update names of diagnostic_context
72 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
73 cl_optimization members.
74 * c-opts.c (warning_as_error_callback, c_common_handle_option,
75 sanitize_cpp_opts, finish_options): Update names of cpp_options
78 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
80 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
81 (objc_is_reserved_word): Removed.
82 * c-common.c: Updated comments.
83 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
84 objc_is_reserved_word.
85 * stub-objc.c (objc_is_reserved_word): Removed.
87 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
89 * c-common.h (objc_add_method_declaration): Adjust prototype to
91 (objc_start_method_definition): Likewise.
92 (objc_build_keyword_decl): Likewise.
93 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
94 (objc_start_method_definition): Likewise.
95 (objc_build_keyword_decl): Likewise.
97 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
99 * c-common.h (objc_start_class_interface): Adjust prototype.
100 (objc_start_category_interface): Likewise.
101 (objc_start_protocol): Likewise.
102 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
103 (objc_start_class_interface): Likewise.
104 (objc_start_category_interface): Likewise.
106 2010-09-27 Ian Lance Taylor <iant@google.com>
108 * c-common.c (c_common_attribute_table): Add no_split_stack.
109 (handle_no_split_stack_attribute): New static function.
111 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
113 Merge from 'apple/trunk' branch on FSF servers.
115 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
118 * c-common.h (objc_have_common_type): New declaration.
119 * stub-objc.c (objc_have_common_type): New stub.
121 2005-06-22 Ziemowit Laski <zlaski@apple.com>
124 * c-common.h (objc_common_type): New prototype.
125 * stub-objc.c (objc_common_type): New stub.
127 2010-09-24 Jan Hubicka <jh@suse.cz>
129 * c-common.c (handle_leaf_attribute): New function.
130 (struct attribute_spec c_common_att): Add leaf.
132 2010-09-22 Joseph Myers <joseph@codesourcery.com>
134 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
135 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
136 -dump, -dump=, -imacros, -imacros=, -include, -include=,
137 -include-barrier, -include-directory, -include-directory=,
138 -include-directory-after, -include-directory-after=,
139 -include-prefix, -include-prefix=, -include-with-prefix,
140 -include-with-prefix=, -include-with-prefix-after,
141 -include-with-prefix-after=, -include-with-prefix-before,
142 -include-with-prefix-before=, -no-integrated-cpp,
143 -no-line-commands, -no-standard-includes, -no-warnings, -output,
144 -output=, -pedantic, -pedantic-errors, -preprocess,
145 -print-missing-file-dependencies, -trace-includes, -traditional,
146 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
147 -user-dependencies, -verbose, -write-dependencies,
148 -write-user-dependencies, no-integrated-cpp, traditional): New.
150 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
153 * c-common.h (objc_start_method_definition): Return bool instead
155 * stub-objc.c (objc_start_method_definition): Return bool instead
158 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
161 * c-common.h (objc_get_interface_ivars): New declaration.
162 * stub-objc.c (objc_get_interface_ivars): New stub.
164 2010-09-15 Ian Lance Taylor <iant@google.com>
166 * c-common.c (parse_optimize_options): Do not capitalize warning
167 messages. Remove period at end of warning message.
169 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
171 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
172 (handle_alias_attribute): ... here.
173 (handle_ifunc_attribute): New.
175 2010-09-06 Mark Mitchell <mark@codesourcery.com>
177 * c-common.h (do_warn_double_promotion): Declare.
178 * c-common.c (do_warn_double_promotion): Define.
180 2010-09-05 Mark Mitchell <mark@codesourcery.com>
182 * c.opt (Wdouble-promotion): New.
184 2010-09-02 Joseph Myers <joseph@codesourcery.com>
186 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
187 fvtable-thunks, fxref): Mark no longer supported in help text.
189 2010-09-02 Joseph Myers <joseph@codesourcery.com>
191 * c.opt (Wimport, fall-virtual, falt-external-templates,
192 fdefault-inline, fenum-int-equiv, fexternal-templates,
193 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
194 fname-mangling-version-, fnew-abi, fnonnull-objects,
195 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
196 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
198 (fhandle-exceptions): Mark with Alias and Warn.
199 * c-opts.c (c_common_handle_option): Don't handle options marked
202 2010-09-02 Joseph Myers <joseph@codesourcery.com>
204 * c.opt (Wcomments, Werror-implicit-function-declaration,
205 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
206 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
208 * c-common.c (option_codes): Use OPT_Wcomment instead of
210 * c-opts.c (warning_as_error_callback, c_common_handle_option):
211 Don't handle options marked as aliases.
213 2010-08-25 Richard Guenther <rguenther@suse.de>
215 * c-common.c (c_common_get_alias_set): Remove special
216 handling for pointers.
218 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
220 * c-common.c: Use FOR_EACH_VEC_ELT.
221 * c-gimplify.c: Likewise.
222 * c-pragma.c: Likewise.
224 2010-08-16 Joseph Myers <joseph@codesourcery.com>
226 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
228 (MMDX): Change back to MMD. Mark NoDriverArg instead of
230 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
231 instead of OPT_MDX and OPT_MMDX.
233 2010-08-16 Joseph Myers <joseph@codesourcery.com>
235 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
237 2010-08-12 Joseph Myers <joseph@codesourcery.com>
239 * c.opt (MD, MMD): Change to MDX and MMDX.
240 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
242 2010-08-11 Joseph Myers <joseph@codesourcery.com>
244 * c-opts.c (c_common_handle_option): Call handle_generated_option
245 instead of handle_option.
247 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
249 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
250 (maybe_apply_renaming_pragma): Delete unneeded declarations.
252 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
254 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
255 (pending_redefine_extname): Change type to a VEC.
256 (add_to_renaming_pragma_list): Update for new type of
257 pending_redefine_extname.
258 (maybe_apply_renaming_pragma): Likewise.
260 2010-08-04 Arnaud Charlet <charlet@adacore.com>
262 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
264 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
265 decide whether a type has already been declared/seen.
266 Do not go to the original type.
267 (dump_nested_types): New parameter forward.
268 Generate forward declaration if needed and mark type as visited.
269 (print_ada_declaration): Call dump_nested_types if not already done.
270 Mark types as visited.
272 2010-08-03 Joseph Myers <joseph@codesourcery.com>
274 * c.opt (-print-pch-checksum): Remove option.
275 * c-opts.c (c_common_handle_option): Don't handle
276 OPT_print_pch_checksum.
278 2010-07-27 Joseph Myers <joseph@codesourcery.com>
280 * c-common.h (c_common_handle_option): Update prototype and return
282 * c-opts.c (c_common_handle_option): Update prototype and return
283 value type. Update calls to handle_option and
284 enable_warning_as_error.
286 2010-07-27 Jakub Jelinek <jakub@redhat.com>
289 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
291 2010-07-27 Joseph Myers <joseph@codesourcery.com>
293 * c-common.h (c_common_missing_argument): Remove.
294 * c-opts.c (c_common_missing_argument): Remove.
295 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
296 idirafter, imacros, include, isysroot, isystem, iquote): Add
298 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
300 2010-07-27 Joseph Myers <joseph@codesourcery.com>
302 * c-common.h (c_common_option_lang_mask,
303 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
305 (c_common_init_options): Update prototype.
306 * c-opts.c (c_common_option_lang_mask): New.
307 (c_common_initialize_diagnostics): Split out of
308 c_common_init_options.
309 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
311 (c_common_init_options): Update prototype. Use decoded options in
312 search for -lang-asm.
314 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
316 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
317 * c-format.c: Likewise.
319 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
321 * c-common.h: Include diagnostic-core.h. Error if already
323 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
325 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
327 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
328 Do not include expr.h
329 (vector_mode_valid_p): Move here.
331 2010-06-21 DJ Delorie <dj@redhat.com>
333 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
334 allow these pragmas anywhere.
336 2010-06-14 Jakub Jelinek <jakub@redhat.com>
339 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
340 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
341 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
342 ggc_strdup instead of xstrdup.
344 2010-06-10 Jakub Jelinek <jakub@redhat.com>
346 * c-cppbuiltin.c: Include cpp-id-data.h.
347 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
348 (lazy_hex_fp_value): New function.
349 (builtin_define_with_hex_fp_value): Provide definitions lazily.
351 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
353 * c-gimplify.c: Do not include tree-flow.h
355 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
358 * c-common.c: Rename targetm member:
359 targetm.enum_va_list -> targetm.enum_va_list_p
361 2010-06-28 Anatoly Sokolov <aesok@post.ru>
363 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
365 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
367 * c-cppbuiltin.c: Do not include except.h.
369 2010-06-24 Andi Kleen <ak@linux.intel.com>
371 * c-common.c (warn_for_omitted_condop): New.
372 * c-common.h (warn_for_omitted_condop): Add prototype.
374 2010-06-21 Joseph Myers <joseph@codesourcery.com>
376 * c.opt (lang-objc): Remove.
377 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
379 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
381 * c-opts.c: Include "tm_p.h".
383 2010-06-20 Joseph Myers <joseph@codesourcery.com>
385 * c-common.c (parse_optimize_options): Update call to
388 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
390 * c-common.c (record_types_used_by_current_var_decl): Adjust for
391 new type of types_used_by_cur_var_decl.
393 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
396 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
397 for C++ standard compliance.
399 2010-06-16 Jason Merrill <jason@redhat.com>
401 * c.opt: Add -Wnoexcept.
403 2010-06-16 Richard Guenther <rguenther@suse.de>
406 * c-common.c (c_common_truthvalue_conversion): Remove
407 premature and wrong optimization concering ADDR_EXPRs.
409 2010-06-15 Arnaud Charlet <charlet@adacore.com>
411 * c-ada-spec.c (dump_sloc): Remove column info.
412 (is_simple_enum): New function.
413 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
414 enum types when relevant.
416 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
418 * c-common.c (conversion_warning): Warn at expression
421 2010-06-10 Joseph Myers <joseph@codesourcery.com>
423 * c-opts.c (c_common_handle_option): Don't handle
426 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
428 * c-pragma.c (push_alignment): Use typed GC allocation.
429 (handle_pragma_push_options): Likewise.
431 * c-common.c (parse_optimize_options): Likewise.
433 * c-common.h (struct sorted_fields_type): Add variable_size GTY
436 2010-06-07 Joseph Myers <joseph@codesourcery.com>
438 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
439 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
440 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
441 flag_signed_bitfields, warn_strict_null_sentinel,
442 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
443 flag_gen_declaration, flag_no_gnu_keywords,
444 flag_implement_inlines, flag_implicit_templates,
445 flag_implicit_inline_templates, flag_optional_diags,
446 flag_elide_constructors, flag_default_inline, flag_rtti,
447 flag_conserve_space, flag_access_control, flag_check_new,
448 flag_new_for_scope, flag_weak, flag_working_directory,
449 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
450 flag_enforce_eh_specs, flag_threadsafe_statics,
451 flag_pretty_templates): Remove.
452 * c-common.h (flag_preprocess_only, flag_nil_receivers,
453 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
454 flag_replace_objc_classes, flag_undef, flag_no_builtin,
455 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
456 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
457 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
458 flag_no_gnu_keywords, flag_implement_inlines,
459 flag_implicit_templates, flag_implicit_inline_templates,
460 flag_optional_diags, flag_elide_constructors, flag_default_inline,
461 flag_rtti, flag_conserve_space, flag_access_control,
462 flag_check_new, flag_new_for_scope, flag_weak,
463 flag_working_directory, flag_use_cxa_atexit,
464 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
465 flag_threadsafe_statics, flag_pretty_templates,
466 warn_strict_null_sentinel): Remove.
467 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
468 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
469 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
470 fimplicit-inline-templates, fimplicit-templates,
471 flax-vector-conversions, fms-extensions, fnil-receivers,
472 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
473 frtti, fshort-double, fshort-enums, fshort-wchar,
474 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
475 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
476 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
477 gen-decls, undef): Use Var.
478 (fdefault-inline, foptional-diags): Document as doing nothing.
479 * c-opts.c (c_common_handle_option): Remove cases for options now
480 using Var. Mark ignored options as such.
482 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
484 * c-common.c: Moved to here from parent directory.
485 * c-common.def: Likewise.
486 * c-common.h: Likewise.
487 * c-cppbuiltin.c: Likewise.
488 * c-dump.c: Likewise.
489 * c-format.c: Likewise.
490 * c-format.h : Likewise.
491 * c-gimplify.c: Likewise.
495 * c-opts.c: Likewise.
497 * c-ppoutput.c: Likewise.
498 * c-pragma.c: Likewise.
499 * c-pragma.h: Likewise.
500 * c-pretty-print.c: Likewise.
501 * c-pretty-print.h: Likewise.
502 * c-semantics.c: Likewise.
503 * stub-objc.c: Likewise.
505 * c-common.c: Include gt-c-family-c-common.h.
506 * c-pragma.c: Include gt-c-family-c-pragma.h.
508 Copyright (C) 2010 Free Software Foundation, Inc.
510 Copying and distribution of this file, with or without modification,
511 are permitted in any medium without royalty provided the copyright
512 notice and this notice are preserved.