Fixed dates in ChangeLogs for my last commit - apologies
[official-gcc.git] / gcc / c-family / ChangeLog
blob03b4e360313f42fb488a2b93324def69d35ad9f4
1 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3         Merge from 'apple/trunk' branch on FSF servers. 
4         
5         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
7         Radar 4281748
8         * c-common.h (objc_check_global_decl): New declaration.
9         * stub-objc.c (objc_check_global_decl): New stub.
11 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
13         * c.opt: Don't use VarExists.
15 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
17         * c-common.c (c_cpp_error): Update names of diagnostic_context
18         members.
19         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
20         cl_optimization members.
21         * c-opts.c (warning_as_error_callback, c_common_handle_option,
22         sanitize_cpp_opts, finish_options): Update names of cpp_options
23         members.
25 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
27         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
28         (objc_is_reserved_word): Removed.
29         * c-common.c: Updated comments.
30         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
31         objc_is_reserved_word.
32         * stub-objc.c (objc_is_reserved_word): Removed.
34 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
36         * c-common.h (objc_add_method_declaration): Adjust prototype to 
37         include attributes.
38         (objc_start_method_definition): Likewise.
39         (objc_build_keyword_decl): Likewise.
40         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
41         (objc_start_method_definition): Likewise.
42         (objc_build_keyword_decl): Likewise.
44 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
46         * c-common.h (objc_start_class_interface): Adjust prototype.
47         (objc_start_category_interface): Likewise.
48         (objc_start_protocol): Likewise.
49         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
50         (objc_start_class_interface): Likewise.
51         (objc_start_category_interface): Likewise.
53 2010-09-27  Ian Lance Taylor  <iant@google.com>
55         * c-common.c (c_common_attribute_table): Add no_split_stack.
56         (handle_no_split_stack_attribute): New static function.
58 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
60         Merge from 'apple/trunk' branch on FSF servers. 
62         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
64         Radar 4229905   
65         * c-common.h (objc_have_common_type): New declaration.
66         * stub-objc.c (objc_have_common_type): New stub.
68         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
70         Radar 4154928
71         * c-common.h (objc_common_type): New prototype.
72         * stub-objc.c (objc_common_type): New stub.     
74 2010-09-24  Jan Hubicka  <jh@suse.cz>
76         * c-common.c (handle_leaf_attribute): New function.
77         (struct attribute_spec c_common_att): Add leaf.
79 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
81         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
82         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
83         -dump, -dump=, -imacros, -imacros=, -include, -include=,
84         -include-barrier, -include-directory, -include-directory=,
85         -include-directory-after, -include-directory-after=,
86         -include-prefix, -include-prefix=, -include-with-prefix,
87         -include-with-prefix=, -include-with-prefix-after,
88         -include-with-prefix-after=, -include-with-prefix-before,
89         -include-with-prefix-before=, -no-integrated-cpp,
90         -no-line-commands, -no-standard-includes, -no-warnings, -output,
91         -output=, -pedantic, -pedantic-errors, -preprocess,
92         -print-missing-file-dependencies, -trace-includes, -traditional,
93         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
94         -user-dependencies, -verbose, -write-dependencies,
95         -write-user-dependencies, no-integrated-cpp, traditional): New.
97 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
99         PR objc/23710
100         * c-common.h (objc_start_method_definition): Return bool instead
101         of void.
102         * stub-objc.c (objc_start_method_definition): Return bool instead
103         of void.
105 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
107         PR objc/25965
108         * c-common.h (objc_get_interface_ivars): New declaration.
109         * stub-objc.c (objc_get_interface_ivars): New stub.
111 2010-09-15  Ian Lance Taylor  <iant@google.com>
113         * c-common.c (parse_optimize_options): Do not capitalize warning
114         messages.  Remove period at end of warning message.
116 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
118         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
119         (handle_alias_attribute): ... here.
120         (handle_ifunc_attribute): New.
122 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
124         * c-common.h (do_warn_double_promotion): Declare.
125         * c-common.c (do_warn_double_promotion): Define.
127 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
129         * c.opt (Wdouble-promotion): New.
131 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
133         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
134         fvtable-thunks, fxref): Mark no longer supported in help text.
136 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
138         * c.opt (Wimport, fall-virtual, falt-external-templates,
139         fdefault-inline, fenum-int-equiv, fexternal-templates,
140         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
141         fname-mangling-version-, fnew-abi, fnonnull-objects,
142         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
143         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
144         applicable.
145         (fhandle-exceptions): Mark with Alias and Warn.
146         * c-opts.c (c_common_handle_option): Don't handle options marked
147         as ignored.
149 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
151         * c.opt (Wcomments, Werror-implicit-function-declaration,
152         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
153         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
154         aliases.
155         * c-common.c (option_codes): Use OPT_Wcomment instead of
156         OPT_Wcomments.
157         * c-opts.c (warning_as_error_callback, c_common_handle_option):
158         Don't handle options marked as aliases.
160 2010-08-25  Richard Guenther  <rguenther@suse.de>
162         * c-common.c (c_common_get_alias_set): Remove special
163         handling for pointers.
165 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
167         * c-common.c: Use FOR_EACH_VEC_ELT.
168         * c-gimplify.c: Likewise.
169         * c-pragma.c: Likewise.
171 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
173         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
174         RejectDriver.
175         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
176         RejectDriver.
177         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
178         instead of OPT_MDX and OPT_MMDX.
180 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
182         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
184 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
186         * c.opt (MD, MMD): Change to MDX and MMDX.
187         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
189 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
191         * c-opts.c (c_common_handle_option): Call handle_generated_option
192         instead of handle_option.
194 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
196         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
197         (maybe_apply_renaming_pragma): Delete unneeded declarations.
199 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
201         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
202         (pending_redefine_extname): Change type to a VEC.
203         (add_to_renaming_pragma_list): Update for new type of
204         pending_redefine_extname.
205         (maybe_apply_renaming_pragma): Likewise.
207 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
209         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
210         visited.
211         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
212         decide whether a type has already been declared/seen.
213         Do not go to the original type.
214         (dump_nested_types): New parameter forward.
215         Generate forward declaration if needed and mark type as visited.
216         (print_ada_declaration): Call dump_nested_types if not already done.
217         Mark types as visited.
219 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
221         * c.opt (-print-pch-checksum): Remove option.
222         * c-opts.c (c_common_handle_option): Don't handle
223         OPT_print_pch_checksum.
225 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
227         * c-common.h (c_common_handle_option): Update prototype and return
228         value type.
229         * c-opts.c (c_common_handle_option): Update prototype and return
230         value type.  Update calls to handle_option and
231         enable_warning_as_error.
233 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
235         PR c/45079
236         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
238 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
240         * c-common.h (c_common_missing_argument): Remove.
241         * c-opts.c (c_common_missing_argument): Remove.
242         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
243         idirafter, imacros, include, isysroot, isystem, iquote): Add
244         MissingArgError.
245         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
247 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
249         * c-common.h (c_common_option_lang_mask,
250         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
251         New.
252         (c_common_init_options): Update prototype.
253         * c-opts.c (c_common_option_lang_mask): New.
254         (c_common_initialize_diagnostics): Split out of
255         c_common_init_options.
256         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
257         New.
258         (c_common_init_options): Update prototype.  Use decoded options in
259         search for -lang-asm.
261 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
263         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
264         * c-format.c: Likewise.
266 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
268         * c-common.h: Include diagnostic-core.h. Error if already
269         included.
270         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
272 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
274         * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
275         Do not include expr.h
276         (vector_mode_valid_p): Move here.
278 2010-06-21  DJ Delorie  <dj@redhat.com>
280         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
281         allow these pragmas anywhere.
283 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
285         PR bootstrap/44509
286         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
287         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
288         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
289         ggc_strdup instead of xstrdup.
291 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
293         * c-cppbuiltin.c: Include cpp-id-data.h.
294         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
295         (lazy_hex_fp_value): New function.
296         (builtin_define_with_hex_fp_value): Provide definitions lazily.
298 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
300         * c-gimplify.c: Do not include tree-flow.h
302 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
304         PR other/44034
305         * c-common.c: Rename targetm member:
306         targetm.enum_va_list -> targetm.enum_va_list_p
308 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
310         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
312 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
314         * c-cppbuiltin.c: Do not include except.h.
316 2010-06-24  Andi Kleen  <ak@linux.intel.com>
318         * c-common.c (warn_for_omitted_condop): New.
319         * c-common.h (warn_for_omitted_condop): Add prototype.
321 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
323         * c.opt (lang-objc): Remove.
324         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
326 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
328         * c-opts.c: Include "tm_p.h".
330 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
332         * c-common.c (parse_optimize_options): Update call to
333         decode_options.
335 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
337         * c-common.c (record_types_used_by_current_var_decl): Adjust for
338         new type of types_used_by_cur_var_decl.
340 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
342         PR bootstrap/44512
343         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
344         for C++ standard compliance.
346 2010-06-16  Jason Merrill  <jason@redhat.com>
348         * c.opt: Add -Wnoexcept.
350 2010-06-16  Richard Guenther  <rguenther@suse.de>
352         PR c/44555
353         * c-common.c (c_common_truthvalue_conversion): Remove
354         premature and wrong optimization concering ADDR_EXPRs.
356 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
358         * c-ada-spec.c (dump_sloc): Remove column info.
359         (is_simple_enum): New function.
360         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
361         enum types when relevant.
363 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
365         * c-common.c (conversion_warning): Warn at expression
366         location.
368 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
370         * c-opts.c (c_common_handle_option): Don't handle
371         OPT_fshow_column.
373 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
375         * c-pragma.c (push_alignment): Use typed GC allocation.
376         (handle_pragma_push_options): Likewise.
378         * c-common.c (parse_optimize_options): Likewise.
380         * c-common.h (struct sorted_fields_type): Add variable_size GTY
381         option.
383 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
385         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
386         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
387         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
388         flag_signed_bitfields, warn_strict_null_sentinel,
389         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
390         flag_gen_declaration, flag_no_gnu_keywords,
391         flag_implement_inlines, flag_implicit_templates,
392         flag_implicit_inline_templates, flag_optional_diags,
393         flag_elide_constructors, flag_default_inline, flag_rtti,
394         flag_conserve_space, flag_access_control, flag_check_new,
395         flag_new_for_scope, flag_weak, flag_working_directory,
396         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
397         flag_enforce_eh_specs, flag_threadsafe_statics,
398         flag_pretty_templates): Remove.
399         * c-common.h (flag_preprocess_only, flag_nil_receivers,
400         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
401         flag_replace_objc_classes, flag_undef, flag_no_builtin,
402         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
403         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
404         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
405         flag_no_gnu_keywords, flag_implement_inlines,
406         flag_implicit_templates, flag_implicit_inline_templates,
407         flag_optional_diags, flag_elide_constructors, flag_default_inline,
408         flag_rtti, flag_conserve_space, flag_access_control,
409         flag_check_new, flag_new_for_scope, flag_weak,
410         flag_working_directory, flag_use_cxa_atexit,
411         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
412         flag_threadsafe_statics, flag_pretty_templates,
413         warn_strict_null_sentinel): Remove.
414         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
415         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
416         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
417         fimplicit-inline-templates, fimplicit-templates,
418         flax-vector-conversions, fms-extensions, fnil-receivers,
419         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
420         frtti, fshort-double, fshort-enums, fshort-wchar,
421         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
422         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
423         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
424         gen-decls, undef): Use Var.
425         (fdefault-inline, foptional-diags): Document as doing nothing.
426         * c-opts.c (c_common_handle_option): Remove cases for options now
427         using Var.  Mark ignored options as such.
429 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
431         * c-common.c: Moved to here from parent directory. 
432         * c-common.def: Likewise.
433         * c-common.h: Likewise.
434         * c-cppbuiltin.c: Likewise.
435         * c-dump.c: Likewise.
436         * c-format.c: Likewise.
437         * c-format.h : Likewise.
438         * c-gimplify.c: Likewise.
439         * c-lex.c: Likewise.
440         * c-omp.c: Likewise.
441         * c.opt: Likewise.
442         * c-opts.c: Likewise.
443         * c-pch.c: Likewise.
444         * c-ppoutput.c: Likewise.
445         * c-pragma.c: Likewise.
446         * c-pragma.h: Likewise.
447         * c-pretty-print.c: Likewise.
448         * c-pretty-print.h: Likewise.
449         * c-semantics.c: Likewise.
450         * stub-objc.c: Likewise.
452         * c-common.c: Include gt-c-family-c-common.h.
453         * c-pragma.c: Include gt-c-family-c-pragma.h.
455 Copyright (C) 2010 Free Software Foundation, Inc.
457 Copying and distribution of this file, with or without modification,
458 are permitted in any medium without royalty provided the copyright
459 notice and this notice are preserved.