OSDN Git Service

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