OSDN Git Service

* c-ada-spec.c (dump_ada_template): Mark underlying instance type as
[pf3gnuchains/gcc-fork.git] / gcc / c-family / ChangeLog
1 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
2
3         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4         visited.
5         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
6         decide whether a type has already been declared/seen.
7         Do not go to the original type.
8         (dump_nested_types): New parameter forward.
9         Generate forward declaration if needed and mark type as visited.
10         (print_ada_declaration): Call dump_nested_types if not already done.
11         Mark types as visited.
12
13 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
14
15         * c.opt (-print-pch-checksum): Remove option.
16         * c-opts.c (c_common_handle_option): Don't handle
17         OPT_print_pch_checksum.
18
19 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
20
21         * c-common.h (c_common_handle_option): Update prototype and return
22         value type.
23         * c-opts.c (c_common_handle_option): Update prototype and return
24         value type.  Update calls to handle_option and
25         enable_warning_as_error.
26
27 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
28
29         PR c/45079
30         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
31
32 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
33
34         * c-common.h (c_common_missing_argument): Remove.
35         * c-opts.c (c_common_missing_argument): Remove.
36         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
37         idirafter, imacros, include, isysroot, isystem, iquote): Add
38         MissingArgError.
39         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
40
41 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
42
43         * c-common.h (c_common_option_lang_mask,
44         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
45         New.
46         (c_common_init_options): Update prototype.
47         * c-opts.c (c_common_option_lang_mask): New.
48         (c_common_initialize_diagnostics): Split out of
49         c_common_init_options.
50         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
51         New.
52         (c_common_init_options): Update prototype.  Use decoded options in
53         search for -lang-asm.
54
55 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
56
57         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
58         * c-format.c: Likewise.
59
60 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
61
62         * c-common.h: Include diagnostic-core.h. Error if already
63         included.
64         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
65
66 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
67
68         * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
69         Do not include expr.h
70         (vector_mode_valid_p): Move here.
71
72 2010-06-21  DJ Delorie  <dj@redhat.com>
73
74         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
75         allow these pragmas anywhere.
76
77 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
78
79         PR bootstrap/44509
80         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
81         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
82         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
83         ggc_strdup instead of xstrdup.
84
85 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
86
87         * c-cppbuiltin.c: Include cpp-id-data.h.
88         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
89         (lazy_hex_fp_value): New function.
90         (builtin_define_with_hex_fp_value): Provide definitions lazily.
91
92 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
93
94         * c-gimplify.c: Do not include tree-flow.h
95
96 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
97
98         PR other/44034
99         * c-common.c: Rename targetm member:
100         targetm.enum_va_list -> targetm.enum_va_list_p
101
102 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
103
104         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
105
106 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
107
108         * c-cppbuiltin.c: Do not include except.h.
109
110 2010-06-24  Andi Kleen  <ak@linux.intel.com>
111
112         * c-common.c (warn_for_omitted_condop): New.
113         * c-common.h (warn_for_omitted_condop): Add prototype.
114
115 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
116
117         * c.opt (lang-objc): Remove.
118         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
119
120 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
121
122         * c-opts.c: Include "tm_p.h".
123
124 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
125
126         * c-common.c (parse_optimize_options): Update call to
127         decode_options.
128
129 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
130
131         * c-common.c (record_types_used_by_current_var_decl): Adjust for
132         new type of types_used_by_cur_var_decl.
133
134 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
135
136         PR bootstrap/44512
137         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
138         for C++ standard compliance.
139
140 2010-06-16  Jason Merrill  <jason@redhat.com>
141
142         * c.opt: Add -Wnoexcept.
143
144 2010-06-16  Richard Guenther  <rguenther@suse.de>
145
146         PR c/44555
147         * c-common.c (c_common_truthvalue_conversion): Remove
148         premature and wrong optimization concering ADDR_EXPRs.
149
150 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
151
152         * c-ada-spec.c (dump_sloc): Remove column info.
153         (is_simple_enum): New function.
154         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
155         enum types when relevant.
156
157 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
158
159         * c-common.c (conversion_warning): Warn at expression
160         location.
161
162 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
163
164         * c-opts.c (c_common_handle_option): Don't handle
165         OPT_fshow_column.
166
167 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
168
169         * c-pragma.c (push_alignment): Use typed GC allocation.
170         (handle_pragma_push_options): Likewise.
171
172         * c-common.c (parse_optimize_options): Likewise.
173
174         * c-common.h (struct sorted_fields_type): Add variable_size GTY
175         option.
176
177 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
178
179         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
180         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
181         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
182         flag_signed_bitfields, warn_strict_null_sentinel,
183         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
184         flag_gen_declaration, flag_no_gnu_keywords,
185         flag_implement_inlines, flag_implicit_templates,
186         flag_implicit_inline_templates, flag_optional_diags,
187         flag_elide_constructors, flag_default_inline, flag_rtti,
188         flag_conserve_space, flag_access_control, flag_check_new,
189         flag_new_for_scope, flag_weak, flag_working_directory,
190         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
191         flag_enforce_eh_specs, flag_threadsafe_statics,
192         flag_pretty_templates): Remove.
193         * c-common.h (flag_preprocess_only, flag_nil_receivers,
194         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
195         flag_replace_objc_classes, flag_undef, flag_no_builtin,
196         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
197         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
198         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
199         flag_no_gnu_keywords, flag_implement_inlines,
200         flag_implicit_templates, flag_implicit_inline_templates,
201         flag_optional_diags, flag_elide_constructors, flag_default_inline,
202         flag_rtti, flag_conserve_space, flag_access_control,
203         flag_check_new, flag_new_for_scope, flag_weak,
204         flag_working_directory, flag_use_cxa_atexit,
205         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
206         flag_threadsafe_statics, flag_pretty_templates,
207         warn_strict_null_sentinel): Remove.
208         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
209         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
210         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
211         fimplicit-inline-templates, fimplicit-templates,
212         flax-vector-conversions, fms-extensions, fnil-receivers,
213         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
214         frtti, fshort-double, fshort-enums, fshort-wchar,
215         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
216         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
217         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
218         gen-decls, undef): Use Var.
219         (fdefault-inline, foptional-diags): Document as doing nothing.
220         * c-opts.c (c_common_handle_option): Remove cases for options now
221         using Var.  Mark ignored options as such.
222
223 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
224
225         * c-common.c: Moved to here from parent directory. 
226         * c-common.def: Likewise.
227         * c-common.h: Likewise.
228         * c-cppbuiltin.c: Likewise.
229         * c-dump.c: Likewise.
230         * c-format.c: Likewise.
231         * c-format.h : Likewise.
232         * c-gimplify.c: Likewise.
233         * c-lex.c: Likewise.
234         * c-omp.c: Likewise.
235         * c.opt: Likewise.
236         * c-opts.c: Likewise.
237         * c-pch.c: Likewise.
238         * c-ppoutput.c: Likewise.
239         * c-pragma.c: Likewise.
240         * c-pragma.h: Likewise.
241         * c-pretty-print.c: Likewise.
242         * c-pretty-print.h: Likewise.
243         * c-semantics.c: Likewise.
244         * stub-objc.c: Likewise.
245
246         * c-common.c: Include gt-c-family-c-common.h.
247         * c-pragma.c: Include gt-c-family-c-pragma.h.
248 \f
249 Copyright (C) 2010 Free Software Foundation, Inc.
250
251 Copying and distribution of this file, with or without modification,
252 are permitted in any medium without royalty provided the copyright
253 notice and this notice are preserved.