OSDN Git Service

* common.opt (debug_struct_ordinary, debug_struct_generic): New
[pf3gnuchains/gcc-fork.git] / gcc / c-family / ChangeLog
1 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2
3         * c-opts.c (c_common_handle_option): Update calls to
4         set_struct_debug_option.
5
6 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
7
8         * c-common.h (objc_declare_protocols): Added additional argument.
9         * stub-objc.c (objc_declare_protocol): Same change.
10         
11 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
12
13         PR c/33193
14         * c-common.h (build_real_imag_expr): Declare.
15         * c-semantics.c (build_real_imag_expr): Define.
16
17 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
18
19         * c-opts.c (c_common_parse_file): Take no arguments.
20         * c-common.h (c_common_parse_file): Update prototype.
21
22 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
23
24         PR c++/46401
25         * c-common.c (warning_candidate_p): Don't track non-const calls
26         or STRING_CSTs.
27
28 2010-11-15  Ian Lance Taylor  <iant@google.com>
29
30         * c-lex.c (init_c_lex): Set macro debug callbacks if
31         flag_dump_go_spec is set.
32
33 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
34
35         * c-common.h (objc_build_incr_expr_for_property_ref): New.
36         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
37
38 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
39
40         PR preprocessor/45038
41         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
42         dialects.
43
44 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
45
46         * c-common.h (c_family_lang_mask): Declare.
47         * c-opts.c (c_family_lang_mask): Make extern.
48         * c-pragma.c (handle_pragma_diagnostic): Use
49         control_warning_option.
50
51 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
52
53         * c-common.c (parse_optimize_options): Update call to
54         decode_options.
55         * c-common.h (c_common_handle_option): Update prototype.
56         * c-opts.c (c_common_handle_option): Take location_t parameter and
57         pass it to other functions.
58
59 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
60
61         * c-opts.c (warning_as_error_callback): Remove.
62         (c_common_initialize_diagnostics): Don't call
63         register_warning_as_error_callback.
64         (c_common_handle_option): Handle -Werror=normalized= here.
65
66 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
67
68         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
69         in diagnostic.
70         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
71         letter.
72         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
73         Remove trailing '.' from diagnostics.
74         * c.opt (Wwrite-strings_: Avoid '`' in help text.
75
76 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
77
78         * c-common.c (parse_optimize_options): Pass global_dc to
79         decode_options.
80         * c-opts.c (c_common_handle_option): Pass &global_options to
81         set_Wstrict_aliasing.
82         * c.opt (v): Don't mark Common or document here.
83
84 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
85
86         PR target/44981
87         * c-format.c (format_type): New type gcc_objc_string_format_type.
88         (valid_stringptr_type_p): New.
89         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
90         (check_format_string): Pass expected type, use 
91         valid_stringptr_type_p (), check that the format string types are
92         consistent with the format specification.
93         (decode_format_attr): Warn if NSString is used outside objective-c.
94         (format_types_orig): Add NSString.
95         (format_name): New.
96         (format_flags): New.
97         (check_format_arg): Handle format strings requiring an external parser.
98         first_target_format_type: New variable.
99         (handle_format_attribute): Set up first_target_format_type, pass the
100         expected format arg string type to check_format_string().
101         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL):  New flag.
102         * stub-objc.c (objc_string_ref_type_p): New.
103         (objc_check_format_arg): New.
104
105 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
106
107         Fixed using the Objective-C 2.0 dot-syntax with class names.    
108         * c-common.h (objc_build_class_component_ref): New.
109         * stub-objc.c (objc_build_class_component_ref): New.
110
111 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
112
113         * c.opt (Wproperty-assign-default): New option.
114
115 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
116
117         Implemented -fobjc-std=objc1 flag.
118         * c.opt (fobjc-std=objc1): New option.
119
120 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
121
122         Implemented format and noreturn attributes for Objective-C methods.
123         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
124         attribute for Objective-C methods.
125
126 2010-10-31  Jason Merrill  <jason@redhat.com>
127
128         * c-common.c (conversion_warning, warn_for_collisions_1): Use
129         EXPR_LOC_OR_HERE.
130
131 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
132
133         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
134         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
135         (objc_add_property_declaration): Removed arguments for copies and
136         ivar.
137         (objc_build_getter_call): Renamed to
138         objc_maybe_build_component_ref.
139         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
140         (objc_is_property_ref): New.
141         * c-common.c (c_common_reswords): Removed copies and ivar.
142         * stub-objc.c (objc_add_property_declaration): Removed arguments
143         for copies and ivar.
144         (objc_build_getter_call): Renamed to
145         objc_maybe_build_component_ref.
146         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
147         (objc_is_property_ref): New.
148         
149 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
150             Matthew Gingell  <gingell@adacore.com>
151
152         * c-ada-spec.c (separate_class_package): New function.
153         (pp_ada_tree_identifier): Prefix references to C++ classes with the
154         name of their enclosing package.
155         (print_ada_declaration): Use separate_class_package.
156
157 2010-10-27  Jason Merrill  <jason@redhat.com>
158
159         * c-common.c (c_common_reswords): Add __is_literal_type.
160         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
161
162         * c-common.c (check_case_value): Remove special C++ code.
163
164 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
165
166         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
167         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
168         and RID_LAST_PATTR.
169         (objc_add_property_declaration): Added additional arguments.
170         (objc_property_attribute_kind): Removed.
171         (objc_set_property_attr): Removed.
172         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
173         copy and nonatomic.
174         * stub-objc.c (objc_add_property_declaration): Added additional
175         arguments.
176         (objc_set_property_attr): Removed.
177         
178 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
179
180         * c-common.h (objc_add_property_variable): Renamed to
181         objc_add_property_declaration.  Added location argument.
182         * stub-objc.c (objc_add_property_variable): Same change.
183         
184 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
185
186         * c-common.h (objc_maybe_printable_name): New.
187         * stub-objc.c (objc_maybe_printable_name): New.
188
189 2010-10-22  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
190         Andrew Pinski <pinskia@gmail.com>
191
192         * c-common.h (c_common_mark_addressable_vec): Declare.
193         * c-common.c (c_common_mark_addressable_vec): New function.
194
195 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
196
197         * c-common.h (objc_set_method_type): Removed.
198         (objc_add_method_declaration): Added boolean argument.
199         (objc_start_method_definition): Same change.
200         (objc_build_method_signature): Same change.
201         * stub-objc.c (objc_set_method_type): Removed.
202         (objc_add_method_declaration): Added boolean argument.
203         (objc_start_method_definition): Same change.
204         (objc_build_method_signature): Same change.
205
206 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
207
208         * c-common.h (finish_file): Removed.
209         (objc_write_global_declarations): New.
210         * c-opts.c (c_common_parse_file): Do not call finish_file.
211         * stub-objc.c (objc_write_global_declarations): New.
212         
213 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
214
215         Implemented parsing @synthesize and @dynamic for
216         Objective-C/Objective-C++.
217         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
218         (objc_add_synthesize_declaration): New.
219         (objc_add_dynamic_declaration): New.
220         * c-common.c (c_common_reswords): Add synthesize and dynamic.
221         * stub-objc.c (objc_add_synthesize_declaration): New.
222         (objc_add_dynamic_declaration): New.
223         
224 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
225
226         PR target/46041
227         * c-cppbuiltin.c (mode_has_fma): Move function here from
228         builtins.c.  Don't use the fma optab, instead just use the
229         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
230         using -save-temps.
231
232 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
233
234         Merge from 'apple/trunk' branch on FSF servers.
235
236         2005-11-08  Fariborz Jahanian <fjahanian@apple.com>
237
238         Radar 4330422
239         * c-common.h (objc_non_volatilized_type): New declaration
240         * stub-objc.c (objc_non_volatilized_type): New stub.
241
242 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
243
244         Merge from 'apple/trunk' branch on FSF servers.
245
246         2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
247
248         Radar 4133425
249         * c-common.h (objc_diagnose_private_ivar): New decl.
250         * stub-objc.c (objc_diagnose_private_ivar): New stub.
251
252 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
253
254         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
255         * c-common.h (enum rid): Add RID_AT_PACKAGE.
256         (objc_ivar_visibility_kind): New enum.
257         (objc_set_visibility): Adjust prototype to use visibility enum.
258         * stub-objc.c (objc_set_visibility): Adjust stub to use
259         visibility enum.
260
261 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
262
263         * c-cppbuiltin.c (builtin_define_float_constants): Emit
264         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
265         has the appropriate fma builtins.
266         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
267
268 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
269
270         merge from FSF apple 'trunk' branch.
271         2006 Fariborz Jahanian <fjahanian@apple.com>
272
273         Radars 4436866, 4505126, 4506903, 4517826
274         * c-common.c (c_common_resword): Define @property and its attributes.
275         * c-common.h: Define property attribute enum entries.
276         (OBJC_IS_PATTR_KEYWORD): New.
277         (objc_property_attribute_kind): New enum.
278         Declare objc_set_property_attr (), objc_add_property_variable (),
279         objc_build_getter_call () and objc_build_setter_call ().
280         * stub-objc.c (objc_set_property_attr): New stub.
281         (objc_add_property_variable): Likewise.
282         (objc_build_getter_call): Likewise.
283         (objc_build_setter_call) Likewise.
284
285 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
286
287         merge from FSF apple 'trunk' branch.
288         2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
289
290         Radar 3803157 (method attributes)
291         * c-common.c (handle_deprecated_attribute): Recognize
292         objc methods as valid declarations.
293         * c-common.h: Declare objc_method_decl ().
294         * stub-objc.c (objc_method_decl): New stub.
295
296 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
297
298         * c-common.c (parse_optimize_options): Call
299         decode_cmdline_options_to_array_default_mask before
300         decode_options.  Update arguments to decode_options.
301         * c-common.h (c_common_init_options_struct): Declare.
302         * c-opts.c (c_common_init_options_struct): New.  Split out from
303         c_common_init_options.
304
305 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
306
307         Implemented fast enumeration for Objective-C.
308         * c-common.h (objc_finish_foreach_loop): New.
309         * stub-objc.c (objc_finish_foreach_loop): New.
310
311 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
312
313         * c-common.h (struct diagnostic_context): Don't declare here.
314         (c_common_initialize_diagnostics): Declare using
315         diagnostic_context typedef.
316         * c-opts.c (c_common_handle_option): Pass global_dc to
317         handle_generated_option.
318
319 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
320
321         * c-opts.c (c_common_handle_option): Pass &global_options_set to
322         handle_generated_option.
323
324 2010-10-03  Ian Lance Taylor  <iant@google.com>
325
326         * c.opt (-fplan9-extensions): New option.
327
328 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
329
330         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
331         Remove.
332         (c_cpp_builtins): Call functions from cppbuiltin.c instead
333         of duplicating code.
334
335 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
336
337         * c-common.c: Add two new entries for @optional
338         and @required keywords.
339
340         merge from FSF 'apple/trunk' branch.
341         2006-01-30  Fariborz Jahanian <fjahanian@apple.com>
342
343         Radar 4386773
344         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
345         objective-c keywords.
346         (objc_set_method_opt): New declaration.
347         * stub-objc.c (objc_set_method_opt): New stub.
348         
349 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
350
351         * c-common.c (handle_optimize_attribute): Pass &global_options to
352         cl_optimization_save and cl_optimization_restore.
353         * c-opts.c (c_common_handle_option): Pass &global_options to
354         handle_generated_option.
355         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
356         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
357         &global_options to cl_optimization_restore.
358
359 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
360
361         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
362         Objective-C/Objective-C++ keywords.
363
364 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
365
366         Merge from 'apple/trunk' branch on FSF servers. 
367         
368         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
369
370         Radar 4281748
371         * c-common.h (objc_check_global_decl): New declaration.
372         * stub-objc.c (objc_check_global_decl): New stub.
373
374 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
375
376         * c.opt: Don't use VarExists.
377
378 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
379
380         * c-common.c (c_cpp_error): Update names of diagnostic_context
381         members.
382         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
383         cl_optimization members.
384         * c-opts.c (warning_as_error_callback, c_common_handle_option,
385         sanitize_cpp_opts, finish_options): Update names of cpp_options
386         members.
387
388 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
389
390         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
391         (objc_is_reserved_word): Removed.
392         * c-common.c: Updated comments.
393         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
394         objc_is_reserved_word.
395         * stub-objc.c (objc_is_reserved_word): Removed.
396
397 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
398
399         * c-common.h (objc_add_method_declaration): Adjust prototype to 
400         include attributes.
401         (objc_start_method_definition): Likewise.
402         (objc_build_keyword_decl): Likewise.
403         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
404         (objc_start_method_definition): Likewise.
405         (objc_build_keyword_decl): Likewise.
406
407 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
408
409         * c-common.h (objc_start_class_interface): Adjust prototype.
410         (objc_start_category_interface): Likewise.
411         (objc_start_protocol): Likewise.
412         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
413         (objc_start_class_interface): Likewise.
414         (objc_start_category_interface): Likewise.
415
416 2010-09-27  Ian Lance Taylor  <iant@google.com>
417
418         * c-common.c (c_common_attribute_table): Add no_split_stack.
419         (handle_no_split_stack_attribute): New static function.
420
421 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
422
423         Merge from 'apple/trunk' branch on FSF servers. 
424
425         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
426
427         Radar 4229905   
428         * c-common.h (objc_have_common_type): New declaration.
429         * stub-objc.c (objc_have_common_type): New stub.
430
431         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
432
433         Radar 4154928
434         * c-common.h (objc_common_type): New prototype.
435         * stub-objc.c (objc_common_type): New stub.     
436
437 2010-09-24  Jan Hubicka  <jh@suse.cz>
438
439         * c-common.c (handle_leaf_attribute): New function.
440         (struct attribute_spec c_common_att): Add leaf.
441
442 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
443
444         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
445         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
446         -dump, -dump=, -imacros, -imacros=, -include, -include=,
447         -include-barrier, -include-directory, -include-directory=,
448         -include-directory-after, -include-directory-after=,
449         -include-prefix, -include-prefix=, -include-with-prefix,
450         -include-with-prefix=, -include-with-prefix-after,
451         -include-with-prefix-after=, -include-with-prefix-before,
452         -include-with-prefix-before=, -no-integrated-cpp,
453         -no-line-commands, -no-standard-includes, -no-warnings, -output,
454         -output=, -pedantic, -pedantic-errors, -preprocess,
455         -print-missing-file-dependencies, -trace-includes, -traditional,
456         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
457         -user-dependencies, -verbose, -write-dependencies,
458         -write-user-dependencies, no-integrated-cpp, traditional): New.
459
460 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
461
462         PR objc/23710
463         * c-common.h (objc_start_method_definition): Return bool instead
464         of void.
465         * stub-objc.c (objc_start_method_definition): Return bool instead
466         of void.
467
468 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
469
470         PR objc/25965
471         * c-common.h (objc_get_interface_ivars): New declaration.
472         * stub-objc.c (objc_get_interface_ivars): New stub.
473
474 2010-09-15  Ian Lance Taylor  <iant@google.com>
475
476         * c-common.c (parse_optimize_options): Do not capitalize warning
477         messages.  Remove period at end of warning message.
478
479 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
480
481         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
482         (handle_alias_attribute): ... here.
483         (handle_ifunc_attribute): New.
484
485 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
486
487         * c-common.h (do_warn_double_promotion): Declare.
488         * c-common.c (do_warn_double_promotion): Define.
489
490 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
491
492         * c.opt (Wdouble-promotion): New.
493
494 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
495
496         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
497         fvtable-thunks, fxref): Mark no longer supported in help text.
498
499 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
500
501         * c.opt (Wimport, fall-virtual, falt-external-templates,
502         fdefault-inline, fenum-int-equiv, fexternal-templates,
503         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
504         fname-mangling-version-, fnew-abi, fnonnull-objects,
505         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
506         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
507         applicable.
508         (fhandle-exceptions): Mark with Alias and Warn.
509         * c-opts.c (c_common_handle_option): Don't handle options marked
510         as ignored.
511
512 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
513
514         * c.opt (Wcomments, Werror-implicit-function-declaration,
515         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
516         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
517         aliases.
518         * c-common.c (option_codes): Use OPT_Wcomment instead of
519         OPT_Wcomments.
520         * c-opts.c (warning_as_error_callback, c_common_handle_option):
521         Don't handle options marked as aliases.
522
523 2010-08-25  Richard Guenther  <rguenther@suse.de>
524
525         * c-common.c (c_common_get_alias_set): Remove special
526         handling for pointers.
527
528 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
529
530         * c-common.c: Use FOR_EACH_VEC_ELT.
531         * c-gimplify.c: Likewise.
532         * c-pragma.c: Likewise.
533
534 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
535
536         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
537         RejectDriver.
538         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
539         RejectDriver.
540         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
541         instead of OPT_MDX and OPT_MMDX.
542
543 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
544
545         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
546
547 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
548
549         * c.opt (MD, MMD): Change to MDX and MMDX.
550         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
551
552 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
553
554         * c-opts.c (c_common_handle_option): Call handle_generated_option
555         instead of handle_option.
556
557 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
558
559         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
560         (maybe_apply_renaming_pragma): Delete unneeded declarations.
561
562 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
563
564         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
565         (pending_redefine_extname): Change type to a VEC.
566         (add_to_renaming_pragma_list): Update for new type of
567         pending_redefine_extname.
568         (maybe_apply_renaming_pragma): Likewise.
569
570 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
571
572         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
573         visited.
574         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
575         decide whether a type has already been declared/seen.
576         Do not go to the original type.
577         (dump_nested_types): New parameter forward.
578         Generate forward declaration if needed and mark type as visited.
579         (print_ada_declaration): Call dump_nested_types if not already done.
580         Mark types as visited.
581
582 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
583
584         * c.opt (-print-pch-checksum): Remove option.
585         * c-opts.c (c_common_handle_option): Don't handle
586         OPT_print_pch_checksum.
587
588 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
589
590         * c-common.h (c_common_handle_option): Update prototype and return
591         value type.
592         * c-opts.c (c_common_handle_option): Update prototype and return
593         value type.  Update calls to handle_option and
594         enable_warning_as_error.
595
596 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
597
598         PR c/45079
599         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
600
601 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
602
603         * c-common.h (c_common_missing_argument): Remove.
604         * c-opts.c (c_common_missing_argument): Remove.
605         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
606         idirafter, imacros, include, isysroot, isystem, iquote): Add
607         MissingArgError.
608         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
609
610 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
611
612         * c-common.h (c_common_option_lang_mask,
613         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
614         New.
615         (c_common_init_options): Update prototype.
616         * c-opts.c (c_common_option_lang_mask): New.
617         (c_common_initialize_diagnostics): Split out of
618         c_common_init_options.
619         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
620         New.
621         (c_common_init_options): Update prototype.  Use decoded options in
622         search for -lang-asm.
623
624 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
625
626         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
627         * c-format.c: Likewise.
628
629 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
630
631         * c-common.h: Include diagnostic-core.h. Error if already
632         included.
633         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
634
635 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
636
637         * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
638         Do not include expr.h
639         (vector_mode_valid_p): Move here.
640
641 2010-06-21  DJ Delorie  <dj@redhat.com>
642
643         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
644         allow these pragmas anywhere.
645
646 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
647
648         PR bootstrap/44509
649         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
650         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
651         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
652         ggc_strdup instead of xstrdup.
653
654 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
655
656         * c-cppbuiltin.c: Include cpp-id-data.h.
657         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
658         (lazy_hex_fp_value): New function.
659         (builtin_define_with_hex_fp_value): Provide definitions lazily.
660
661 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
662
663         * c-gimplify.c: Do not include tree-flow.h
664
665 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
666
667         PR other/44034
668         * c-common.c: Rename targetm member:
669         targetm.enum_va_list -> targetm.enum_va_list_p
670
671 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
672
673         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
674
675 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
676
677         * c-cppbuiltin.c: Do not include except.h.
678
679 2010-06-24  Andi Kleen  <ak@linux.intel.com>
680
681         * c-common.c (warn_for_omitted_condop): New.
682         * c-common.h (warn_for_omitted_condop): Add prototype.
683
684 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
685
686         * c.opt (lang-objc): Remove.
687         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
688
689 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
690
691         * c-opts.c: Include "tm_p.h".
692
693 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
694
695         * c-common.c (parse_optimize_options): Update call to
696         decode_options.
697
698 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
699
700         * c-common.c (record_types_used_by_current_var_decl): Adjust for
701         new type of types_used_by_cur_var_decl.
702
703 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
704
705         PR bootstrap/44512
706         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
707         for C++ standard compliance.
708
709 2010-06-16  Jason Merrill  <jason@redhat.com>
710
711         * c.opt: Add -Wnoexcept.
712
713 2010-06-16  Richard Guenther  <rguenther@suse.de>
714
715         PR c/44555
716         * c-common.c (c_common_truthvalue_conversion): Remove
717         premature and wrong optimization concering ADDR_EXPRs.
718
719 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
720
721         * c-ada-spec.c (dump_sloc): Remove column info.
722         (is_simple_enum): New function.
723         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
724         enum types when relevant.
725
726 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
727
728         * c-common.c (conversion_warning): Warn at expression
729         location.
730
731 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
732
733         * c-opts.c (c_common_handle_option): Don't handle
734         OPT_fshow_column.
735
736 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
737
738         * c-pragma.c (push_alignment): Use typed GC allocation.
739         (handle_pragma_push_options): Likewise.
740
741         * c-common.c (parse_optimize_options): Likewise.
742
743         * c-common.h (struct sorted_fields_type): Add variable_size GTY
744         option.
745
746 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
747
748         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
749         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
750         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
751         flag_signed_bitfields, warn_strict_null_sentinel,
752         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
753         flag_gen_declaration, flag_no_gnu_keywords,
754         flag_implement_inlines, flag_implicit_templates,
755         flag_implicit_inline_templates, flag_optional_diags,
756         flag_elide_constructors, flag_default_inline, flag_rtti,
757         flag_conserve_space, flag_access_control, flag_check_new,
758         flag_new_for_scope, flag_weak, flag_working_directory,
759         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
760         flag_enforce_eh_specs, flag_threadsafe_statics,
761         flag_pretty_templates): Remove.
762         * c-common.h (flag_preprocess_only, flag_nil_receivers,
763         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
764         flag_replace_objc_classes, flag_undef, flag_no_builtin,
765         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
766         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
767         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
768         flag_no_gnu_keywords, flag_implement_inlines,
769         flag_implicit_templates, flag_implicit_inline_templates,
770         flag_optional_diags, flag_elide_constructors, flag_default_inline,
771         flag_rtti, flag_conserve_space, flag_access_control,
772         flag_check_new, flag_new_for_scope, flag_weak,
773         flag_working_directory, flag_use_cxa_atexit,
774         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
775         flag_threadsafe_statics, flag_pretty_templates,
776         warn_strict_null_sentinel): Remove.
777         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
778         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
779         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
780         fimplicit-inline-templates, fimplicit-templates,
781         flax-vector-conversions, fms-extensions, fnil-receivers,
782         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
783         frtti, fshort-double, fshort-enums, fshort-wchar,
784         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
785         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
786         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
787         gen-decls, undef): Use Var.
788         (fdefault-inline, foptional-diags): Document as doing nothing.
789         * c-opts.c (c_common_handle_option): Remove cases for options now
790         using Var.  Mark ignored options as such.
791
792 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
793
794         * c-common.c: Moved to here from parent directory. 
795         * c-common.def: Likewise.
796         * c-common.h: Likewise.
797         * c-cppbuiltin.c: Likewise.
798         * c-dump.c: Likewise.
799         * c-format.c: Likewise.
800         * c-format.h : Likewise.
801         * c-gimplify.c: Likewise.
802         * c-lex.c: Likewise.
803         * c-omp.c: Likewise.
804         * c.opt: Likewise.
805         * c-opts.c: Likewise.
806         * c-pch.c: Likewise.
807         * c-ppoutput.c: Likewise.
808         * c-pragma.c: Likewise.
809         * c-pragma.h: Likewise.
810         * c-pretty-print.c: Likewise.
811         * c-pretty-print.h: Likewise.
812         * c-semantics.c: Likewise.
813         * stub-objc.c: Likewise.
814
815         * c-common.c: Include gt-c-family-c-common.h.
816         * c-pragma.c: Include gt-c-family-c-pragma.h.
817 \f
818 Copyright (C) 2010 Free Software Foundation, Inc.
819
820 Copying and distribution of this file, with or without modification,
821 are permitted in any medium without royalty provided the copyright
822 notice and this notice are preserved.