OSDN Git Service

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