OSDN Git Service

PR c++/48106
[pf3gnuchains/gcc-fork.git] / gcc / c-family / ChangeLog
1 2011-05-23  Jason Merrill  <jason@redhat.com>
2
3         PR c++/48106
4         * c-common.c (c_common_get_narrower): New.
5         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
6
7 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
8
9         * c-common.h (check_function_arguments): Tweak prototype of
10         check_function_arguments.
11         * c-common.c (check_function_arguments): Likewise.  Adjust
12         calls to check_function_nonnull, check_function_format, and
13         check_function_sentinel.
14         (check_function_sentinel): Take a FUNCTION_TYPE rather than
15         separate attributes and typelist arguments.  Use
16         FOREACH_FUNCTION_ARGS to iterate over argument types.
17
18 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
19
20         * c-common.c (c_common_reswords): Reorder.
21         * c-common.h (rid): Likewise.
22
23 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
24
25         * c-common.c (def_fn_type): Don't call build_function_type, call
26         build_function_type_array or build_varargs_function_type_array
27         instead.
28         (c_common_nodes_and_builtins): Likewise.
29
30 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
31
32         * c-common.c (c_add_case_label): Omit the loc argument to
33         build_case_label.
34         * c-common.h (build_case_label): Remove.
35         * c-semantics.c (build_case_label): Remove.
36
37 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
38
39         * c-objc.h (objc_start_method_definition): Update prototype.
40         * stub-objc.c (objc_start_method_definition): Add extra parameter.
41
42 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
43
44         * c-common.c (check_main_parameter_types): Reindent.  Don't use
45         TYPE_ARG_TYPES directly.
46         (handle_nonnull_attribute): Likewise.
47         (sync_resolve_params): Likewise.
48         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
49         to check_format_string.
50         (handle_format_attribute): Likewise.
51         (check_format_string): Take a function type to examine instead of
52         a type list.  Use a function_arg_iterator to step through argument
53         types.
54
55 2011-05-04  Richard Guenther  <rguenther@suse.de>
56
57         * c-common.c (fix_string_type): Use size_int for index type bounds.
58         (start_fname_decls): Do not pass NULL to build_int_cst.
59         (c_init_attributes): Likewise.
60         * c-lex.c (c_lex_with_flags): Likewise.
61
62 2011-04-27  Jason Merrill  <jason@redhat.com>
63
64         * c-common.c (make_tree_vector_from_list): New.
65         * c-common.h: Declare it.
66
67 2011-04-26  Richard Guenther  <rguenther@suse.de>
68
69         PR preprocessor/48248
70         * c-ppoutput.c (maybe_print_line): Always optimize newlines
71         for output size with -P.
72
73 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
74
75         * c-common.c (struct c_common_resword): Add __underlying_type.
76         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
77
78 2011-04-20  Jim Meyering  <meyering@redhat.com>
79
80         * c-format.c (init_dollar_format_checking): Remove useless
81         if-before-free.
82
83 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
84
85         * c-objc.h (objc_get_interface_ivars): Removed.
86         (objc_detect_field_duplicates): New.
87         * stub-objc.c: Likewise.
88
89 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
90
91         * stub-objc.c (objc_declare_protocols): Renamed to
92         objc_declare_protocol.
93         * c-objc.h: Likewise.
94
95 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
96
97         * stub-objc.c (objc_declare_class): Updated argument name.
98
99 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
100
101         * c-common.h (c_common_init_ts): Declare.
102         * c-common.c (c_common_init_ts): Define.
103
104 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
105
106         * c-objc.h (objc_build_message_expr): Updated prototype.
107         * stub-objc.c (objc_build_message_expr): Likewise.
108         
109 2011-04-12  Martin Jambor  <mjambor@suse.cz>
110
111         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
112         of cgraph_node.
113
114 2011-04-11  Richard Guenther  <rguenther@suse.de>
115
116         * c-common.c (complete_array_type): Build a range type of
117         proper type.
118
119 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
120
121         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
122         (handle_type_generic_attribute): Likewise.
123
124 2011-04-07  Jason Merrill  <jason@redhat.com>
125
126         PR c++/48450
127         * c-common.c (c_common_truthvalue_conversion): Don't ignore
128         conversion from C++0x scoped enum.
129
130 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
131
132         * c-target-def.h: New file.
133         * c-target.def: New file.
134         * c-target.h: New file.
135         * c-common.c (targetcm): Don't define here.
136         * c-common.h (default_handle_c_option): Declare.
137         * c-format.c: Include c-target.h instead of target.h.
138         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
139         include tm.h.
140         (default_handle_c_option): Move from targhooks.c.
141
142 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
143
144         PR preprocessor/48248
145         * c-ppoutput.c (print): Add src_file field.
146         (init_pp_output): Initialize it.
147         (maybe_print_line): Don't optimize by adding up to 8 newlines
148         if map->to_file and print.src_file are different file.
149         (print_line): Update print.src_file.
150
151 2011-03-25  Kai Tietz  <ktietz@redhat.com>
152
153         * c-ada-spec.c (compare_comment): Use filename_cmp
154         instead of strcmp for filename.
155
156 2011-03-25  Jeff Law  <law@redhat.com>
157
158         * c-family/c-common.c (def_fn_type): Add missing va_end.
159
160 2011-03-25  Jason Merrill  <jason@redhat.com>
161
162         * c.opt: Add -std=c++03.
163
164 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
165
166         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
167
168 2011-03-17  Kai Tietz
169
170         PR target/12171
171         * c-pretty-print.c (pp_c_specifier_qualifier_list):
172         Display allowed attributes for function pointer types.
173         (pp_c_attributes_display): New function to display
174         attributes having affects_type_identity flag set to true.
175         * c-pretty-print.h (pp_c_attributes_display): New prototype.
176
177         * c-common.c (c_common_attribute_table):
178         Add new element.
179         (c_common_format_attribute_table): Likewise.
180
181 2011-03-18  Jason Merrill  <jason@redhat.com>
182
183         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
184         * c-common.h: Don't declare it here.
185         * c-common.c: Or define it here.
186         * c-opts.c (c_common_handle_option): Or set it here.
187
188         PR c++/35315
189         * c-common.c (handle_transparent_union_attribute): Don't
190         make a duplicate type in C++.
191
192 2011-03-15  Jason Merrill  <jason@redhat.com>
193
194         * c-common.c (max_constexpr_depth): New.
195         * c-common.h: Declare it.
196         * c-opts.c (c_common_handle_option): Set it.
197         * c.opt (fconstexpr-depth): New option.
198
199 2011-03-11  Jason Merrill  <jason@redhat.com>
200
201         * c-common.c (attribute_takes_identifier_p): Add missing const.
202
203         PR c++/46803
204         * c-common.c (attribute_takes_identifier_p): Assume that an
205         unknown attribute takes an identifier.
206
207 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
208
209         PR c/47786
210         * c-common.c (c_type_hash): Call list_length instead of iterating
211         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
212
213 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
214
215         PR c/47809
216         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
217
218 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
219
220         * c.opt (fobjc-abi-version=) New.
221         (fobjc-nilcheck): New.
222
223 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
224
225         PR c++/46890
226         * c-common.h (keyword_is_decl_specifier): Declare.
227         * c-common.c (keyword_is_decl_specifier): Define.
228         (keyword_is_function_specifier): New function.
229
230 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
231
232         PR c/47473
233         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
234         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
235         REAL_TYPE.
236
237 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
238
239         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
240
241 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
242
243         PR pch/47430
244         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
245         after init_c_lex if pch_file is set.
246
247 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
248
249         PR c++/43601
250         * c.opt (-fkeep-inline-dllexport): New switch.
251
252 2011-01-12  Richard Guenther  <rguenther@suse.de>
253
254         PR middle-end/32511
255         * c-common.c (handle_weak_attribute): Warn instead of error
256         on declaring an inline function weak.
257
258 2011-01-05  Tom Tromey  <tromey@redhat.com>
259
260         * c-common.h (lvalue_error): Update.
261         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
262         not error.
263
264 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
265         
266         PR objc/47075
267         * c-objc.h (objc_finish_message_expr): Added argument to
268         prototype.
269
270 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
271
272         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
273         Use prototype_p.
274
275 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
276
277         * c-objc.h (objc_maybe_warn_exceptions): New.
278         * stub-objc.c (objc_maybe_warn_exceptions): New.        
279
280 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
281
282         * c-common.h (readonly_error): Declare.
283         * c-common.c (readonly_error): Define.
284
285 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
286
287         * c-common.h (invalid_indirection_error): Declare.
288         * c-common.c (invalid_indirection_error): Define.
289
290 2010-12-03  Richard Guenther  <rguenther@suse.de>
291
292         PR c/46745
293         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
294         (pp_c_unary_expression): Likewise.
295         (pp_c_expression): Likewise.
296
297 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
298
299         * c-common.h (objc_finish_function): New.
300         (objc_non_volatilized_type): Removed.
301         (objc_type_quals_match): Removed.
302         * stub-objc.c (objc_finish_function): New.
303         (objc_non_volatilized_type): Removed.
304         (objc_type_quals_match): Removed.
305         
306 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
307
308         * c-common.h (parse_optimize_options): Declare.
309         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
310         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
311
312 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
313
314         * c-opts.c (check_deps_environment_vars): Use getenv instead of
315         GET_ENVIRONMENT.
316         * c-pch.c (O_BINARY): Don't define here.
317         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
318
319 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
320
321         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
322         targetm.except_unwind_info.
323
324 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
325
326         * c-opts.c (c_common_handle_option): Pass location to
327         set_struct_debug_option.
328
329 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
330
331         * c-common.c (visibility_options): Move from ../opts.c.
332         * c-common.h (struct visibility_flags, visibility_options):
333         Declare here.
334         * c-opts.c (finish_options): Rename to c_finish_options.
335         (c_common_init): Update call to finish_options.
336
337 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
338
339         PR objc/34033
340         * c-lex.c (lex_string): Check that each string in an Objective-C
341         string concat sequence starts with either one or zero '@', and
342         that there are no spurious '@' signs at the end.
343
344 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
345
346         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
347         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
348         HANDLE_PRAGMA_VISIBILITY.
349         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
350         HANDLE_PRAGMA_VISIBILITY): Don't define.
351         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
352
353 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
354
355         PR c++/16189
356         PR c++/36888
357         PR c++/45331
358         * c-common.h (keyword_begins_type_specifier): Declare.
359         (keyword_is_storage_class_specifier): Declare.
360         (keyword_is_type_qualifier): Declare.
361         * c-common.c (keyword_begins_type_specifier): New function.
362         (keyword_is_storage_class_specifier): New function.
363         (keyword_is_type_qualifier): Declare.
364
365 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
366
367         PR c/46547
368         * c-common.c (in_late_binary_op): Define.
369         (c_common_truthvalue_conversion): Check in_late_binary_op before
370         calling c_save_expr.
371         * c-common.h (in_late_binary_op): Declare.
372
373 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
374
375         * c-opts.c (c_common_handle_option): Update calls to
376         set_struct_debug_option.
377
378 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
379
380         * c-common.h (objc_declare_protocols): Added additional argument.
381         * stub-objc.c (objc_declare_protocol): Same change.
382         
383 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
384
385         PR c/33193
386         * c-common.h (build_real_imag_expr): Declare.
387         * c-semantics.c (build_real_imag_expr): Define.
388
389 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
390
391         * c-opts.c (c_common_parse_file): Take no arguments.
392         * c-common.h (c_common_parse_file): Update prototype.
393
394 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
395
396         PR c++/46401
397         * c-common.c (warning_candidate_p): Don't track non-const calls
398         or STRING_CSTs.
399
400 2010-11-15  Ian Lance Taylor  <iant@google.com>
401
402         * c-lex.c (init_c_lex): Set macro debug callbacks if
403         flag_dump_go_spec is set.
404
405 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
406
407         * c-common.h (objc_build_incr_expr_for_property_ref): New.
408         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
409
410 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
411
412         PR preprocessor/45038
413         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
414         dialects.
415
416 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
417
418         * c-common.h (c_family_lang_mask): Declare.
419         * c-opts.c (c_family_lang_mask): Make extern.
420         * c-pragma.c (handle_pragma_diagnostic): Use
421         control_warning_option.
422
423 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
424
425         * c-common.c (parse_optimize_options): Update call to
426         decode_options.
427         * c-common.h (c_common_handle_option): Update prototype.
428         * c-opts.c (c_common_handle_option): Take location_t parameter and
429         pass it to other functions.
430
431 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
432
433         * c-opts.c (warning_as_error_callback): Remove.
434         (c_common_initialize_diagnostics): Don't call
435         register_warning_as_error_callback.
436         (c_common_handle_option): Handle -Werror=normalized= here.
437
438 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
439
440         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
441         in diagnostic.
442         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
443         letter.
444         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
445         Remove trailing '.' from diagnostics.
446         * c.opt (Wwrite-strings_: Avoid '`' in help text.
447
448 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
449
450         * c-common.c (parse_optimize_options): Pass global_dc to
451         decode_options.
452         * c-opts.c (c_common_handle_option): Pass &global_options to
453         set_Wstrict_aliasing.
454         * c.opt (v): Don't mark Common or document here.
455
456 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
457
458         PR target/44981
459         * c-format.c (format_type): New type gcc_objc_string_format_type.
460         (valid_stringptr_type_p): New.
461         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
462         (check_format_string): Pass expected type, use 
463         valid_stringptr_type_p (), check that the format string types are
464         consistent with the format specification.
465         (decode_format_attr): Warn if NSString is used outside objective-c.
466         (format_types_orig): Add NSString.
467         (format_name): New.
468         (format_flags): New.
469         (check_format_arg): Handle format strings requiring an external parser.
470         first_target_format_type: New variable.
471         (handle_format_attribute): Set up first_target_format_type, pass the
472         expected format arg string type to check_format_string().
473         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL):  New flag.
474         * stub-objc.c (objc_string_ref_type_p): New.
475         (objc_check_format_arg): New.
476
477 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
478
479         Fixed using the Objective-C 2.0 dot-syntax with class names.    
480         * c-common.h (objc_build_class_component_ref): New.
481         * stub-objc.c (objc_build_class_component_ref): New.
482
483 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
484
485         * c.opt (Wproperty-assign-default): New option.
486
487 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
488
489         Implemented -fobjc-std=objc1 flag.
490         * c.opt (fobjc-std=objc1): New option.
491
492 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
493
494         Implemented format and noreturn attributes for Objective-C methods.
495         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
496         attribute for Objective-C methods.
497
498 2010-10-31  Jason Merrill  <jason@redhat.com>
499
500         * c-common.c (conversion_warning, warn_for_collisions_1): Use
501         EXPR_LOC_OR_HERE.
502
503 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
504
505         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
506         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
507         (objc_add_property_declaration): Removed arguments for copies and
508         ivar.
509         (objc_build_getter_call): Renamed to
510         objc_maybe_build_component_ref.
511         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
512         (objc_is_property_ref): New.
513         * c-common.c (c_common_reswords): Removed copies and ivar.
514         * stub-objc.c (objc_add_property_declaration): Removed arguments
515         for copies and ivar.
516         (objc_build_getter_call): Renamed to
517         objc_maybe_build_component_ref.
518         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
519         (objc_is_property_ref): New.
520         
521 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
522             Matthew Gingell  <gingell@adacore.com>
523
524         * c-ada-spec.c (separate_class_package): New function.
525         (pp_ada_tree_identifier): Prefix references to C++ classes with the
526         name of their enclosing package.
527         (print_ada_declaration): Use separate_class_package.
528
529 2010-10-27  Jason Merrill  <jason@redhat.com>
530
531         * c-common.c (c_common_reswords): Add __is_literal_type.
532         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
533
534         * c-common.c (check_case_value): Remove special C++ code.
535
536 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
537
538         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
539         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
540         and RID_LAST_PATTR.
541         (objc_add_property_declaration): Added additional arguments.
542         (objc_property_attribute_kind): Removed.
543         (objc_set_property_attr): Removed.
544         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
545         copy and nonatomic.
546         * stub-objc.c (objc_add_property_declaration): Added additional
547         arguments.
548         (objc_set_property_attr): Removed.
549         
550 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
551
552         * c-common.h (objc_add_property_variable): Renamed to
553         objc_add_property_declaration.  Added location argument.
554         * stub-objc.c (objc_add_property_variable): Same change.
555         
556 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
557
558         * c-common.h (objc_maybe_printable_name): New.
559         * stub-objc.c (objc_maybe_printable_name): New.
560
561 2010-10-22  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
562         Andrew Pinski <pinskia@gmail.com>
563
564         * c-common.h (c_common_mark_addressable_vec): Declare.
565         * c-common.c (c_common_mark_addressable_vec): New function.
566
567 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
568
569         * c-common.h (objc_set_method_type): Removed.
570         (objc_add_method_declaration): Added boolean argument.
571         (objc_start_method_definition): Same change.
572         (objc_build_method_signature): Same change.
573         * stub-objc.c (objc_set_method_type): Removed.
574         (objc_add_method_declaration): Added boolean argument.
575         (objc_start_method_definition): Same change.
576         (objc_build_method_signature): Same change.
577
578 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
579
580         * c-common.h (finish_file): Removed.
581         (objc_write_global_declarations): New.
582         * c-opts.c (c_common_parse_file): Do not call finish_file.
583         * stub-objc.c (objc_write_global_declarations): New.
584         
585 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
586
587         Implemented parsing @synthesize and @dynamic for
588         Objective-C/Objective-C++.
589         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
590         (objc_add_synthesize_declaration): New.
591         (objc_add_dynamic_declaration): New.
592         * c-common.c (c_common_reswords): Add synthesize and dynamic.
593         * stub-objc.c (objc_add_synthesize_declaration): New.
594         (objc_add_dynamic_declaration): New.
595         
596 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
597
598         PR target/46041
599         * c-cppbuiltin.c (mode_has_fma): Move function here from
600         builtins.c.  Don't use the fma optab, instead just use the
601         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
602         using -save-temps.
603
604 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
605
606         Merge from 'apple/trunk' branch on FSF servers.
607
608         2005-11-08  Fariborz Jahanian <fjahanian@apple.com>
609
610         Radar 4330422
611         * c-common.h (objc_non_volatilized_type): New declaration
612         * stub-objc.c (objc_non_volatilized_type): New stub.
613
614 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
615
616         Merge from 'apple/trunk' branch on FSF servers.
617
618         2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
619
620         Radar 4133425
621         * c-common.h (objc_diagnose_private_ivar): New decl.
622         * stub-objc.c (objc_diagnose_private_ivar): New stub.
623
624 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
625
626         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
627         * c-common.h (enum rid): Add RID_AT_PACKAGE.
628         (objc_ivar_visibility_kind): New enum.
629         (objc_set_visibility): Adjust prototype to use visibility enum.
630         * stub-objc.c (objc_set_visibility): Adjust stub to use
631         visibility enum.
632
633 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
634
635         * c-cppbuiltin.c (builtin_define_float_constants): Emit
636         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
637         has the appropriate fma builtins.
638         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
639
640 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
641
642         merge from FSF apple 'trunk' branch.
643         2006 Fariborz Jahanian <fjahanian@apple.com>
644
645         Radars 4436866, 4505126, 4506903, 4517826
646         * c-common.c (c_common_resword): Define @property and its attributes.
647         * c-common.h: Define property attribute enum entries.
648         (OBJC_IS_PATTR_KEYWORD): New.
649         (objc_property_attribute_kind): New enum.
650         Declare objc_set_property_attr (), objc_add_property_variable (),
651         objc_build_getter_call () and objc_build_setter_call ().
652         * stub-objc.c (objc_set_property_attr): New stub.
653         (objc_add_property_variable): Likewise.
654         (objc_build_getter_call): Likewise.
655         (objc_build_setter_call) Likewise.
656
657 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
658
659         merge from FSF apple 'trunk' branch.
660         2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
661
662         Radar 3803157 (method attributes)
663         * c-common.c (handle_deprecated_attribute): Recognize
664         objc methods as valid declarations.
665         * c-common.h: Declare objc_method_decl ().
666         * stub-objc.c (objc_method_decl): New stub.
667
668 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
669
670         * c-common.c (parse_optimize_options): Call
671         decode_cmdline_options_to_array_default_mask before
672         decode_options.  Update arguments to decode_options.
673         * c-common.h (c_common_init_options_struct): Declare.
674         * c-opts.c (c_common_init_options_struct): New.  Split out from
675         c_common_init_options.
676
677 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
678
679         Implemented fast enumeration for Objective-C.
680         * c-common.h (objc_finish_foreach_loop): New.
681         * stub-objc.c (objc_finish_foreach_loop): New.
682
683 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
684
685         * c-common.h (struct diagnostic_context): Don't declare here.
686         (c_common_initialize_diagnostics): Declare using
687         diagnostic_context typedef.
688         * c-opts.c (c_common_handle_option): Pass global_dc to
689         handle_generated_option.
690
691 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
692
693         * c-opts.c (c_common_handle_option): Pass &global_options_set to
694         handle_generated_option.
695
696 2010-10-03  Ian Lance Taylor  <iant@google.com>
697
698         * c.opt (-fplan9-extensions): New option.
699
700 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
701
702         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
703         Remove.
704         (c_cpp_builtins): Call functions from cppbuiltin.c instead
705         of duplicating code.
706
707 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
708
709         * c-common.c: Add two new entries for @optional
710         and @required keywords.
711
712         merge from FSF 'apple/trunk' branch.
713         2006-01-30  Fariborz Jahanian <fjahanian@apple.com>
714
715         Radar 4386773
716         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
717         objective-c keywords.
718         (objc_set_method_opt): New declaration.
719         * stub-objc.c (objc_set_method_opt): New stub.
720         
721 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
722
723         * c-common.c (handle_optimize_attribute): Pass &global_options to
724         cl_optimization_save and cl_optimization_restore.
725         * c-opts.c (c_common_handle_option): Pass &global_options to
726         handle_generated_option.
727         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
728         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
729         &global_options to cl_optimization_restore.
730
731 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
732
733         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
734         Objective-C/Objective-C++ keywords.
735
736 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
737
738         Merge from 'apple/trunk' branch on FSF servers. 
739         
740         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
741
742         Radar 4281748
743         * c-common.h (objc_check_global_decl): New declaration.
744         * stub-objc.c (objc_check_global_decl): New stub.
745
746 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
747
748         * c.opt: Don't use VarExists.
749
750 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
751
752         * c-common.c (c_cpp_error): Update names of diagnostic_context
753         members.
754         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
755         cl_optimization members.
756         * c-opts.c (warning_as_error_callback, c_common_handle_option,
757         sanitize_cpp_opts, finish_options): Update names of cpp_options
758         members.
759
760 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
761
762         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
763         (objc_is_reserved_word): Removed.
764         * c-common.c: Updated comments.
765         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
766         objc_is_reserved_word.
767         * stub-objc.c (objc_is_reserved_word): Removed.
768
769 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
770
771         * c-common.h (objc_add_method_declaration): Adjust prototype to 
772         include attributes.
773         (objc_start_method_definition): Likewise.
774         (objc_build_keyword_decl): Likewise.
775         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
776         (objc_start_method_definition): Likewise.
777         (objc_build_keyword_decl): Likewise.
778
779 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
780
781         * c-common.h (objc_start_class_interface): Adjust prototype.
782         (objc_start_category_interface): Likewise.
783         (objc_start_protocol): Likewise.
784         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
785         (objc_start_class_interface): Likewise.
786         (objc_start_category_interface): Likewise.
787
788 2010-09-27  Ian Lance Taylor  <iant@google.com>
789
790         * c-common.c (c_common_attribute_table): Add no_split_stack.
791         (handle_no_split_stack_attribute): New static function.
792
793 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
794
795         Merge from 'apple/trunk' branch on FSF servers. 
796
797         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
798
799         Radar 4229905   
800         * c-common.h (objc_have_common_type): New declaration.
801         * stub-objc.c (objc_have_common_type): New stub.
802
803         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
804
805         Radar 4154928
806         * c-common.h (objc_common_type): New prototype.
807         * stub-objc.c (objc_common_type): New stub.     
808
809 2010-09-24  Jan Hubicka  <jh@suse.cz>
810
811         * c-common.c (handle_leaf_attribute): New function.
812         (struct attribute_spec c_common_att): Add leaf.
813
814 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
815
816         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
817         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
818         -dump, -dump=, -imacros, -imacros=, -include, -include=,
819         -include-barrier, -include-directory, -include-directory=,
820         -include-directory-after, -include-directory-after=,
821         -include-prefix, -include-prefix=, -include-with-prefix,
822         -include-with-prefix=, -include-with-prefix-after,
823         -include-with-prefix-after=, -include-with-prefix-before,
824         -include-with-prefix-before=, -no-integrated-cpp,
825         -no-line-commands, -no-standard-includes, -no-warnings, -output,
826         -output=, -pedantic, -pedantic-errors, -preprocess,
827         -print-missing-file-dependencies, -trace-includes, -traditional,
828         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
829         -user-dependencies, -verbose, -write-dependencies,
830         -write-user-dependencies, no-integrated-cpp, traditional): New.
831
832 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
833
834         PR objc/23710
835         * c-common.h (objc_start_method_definition): Return bool instead
836         of void.
837         * stub-objc.c (objc_start_method_definition): Return bool instead
838         of void.
839
840 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
841
842         PR objc/25965
843         * c-common.h (objc_get_interface_ivars): New declaration.
844         * stub-objc.c (objc_get_interface_ivars): New stub.
845
846 2010-09-15  Ian Lance Taylor  <iant@google.com>
847
848         * c-common.c (parse_optimize_options): Do not capitalize warning
849         messages.  Remove period at end of warning message.
850
851 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
852
853         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
854         (handle_alias_attribute): ... here.
855         (handle_ifunc_attribute): New.
856
857 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
858
859         * c-common.h (do_warn_double_promotion): Declare.
860         * c-common.c (do_warn_double_promotion): Define.
861
862 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
863
864         * c.opt (Wdouble-promotion): New.
865
866 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
867
868         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
869         fvtable-thunks, fxref): Mark no longer supported in help text.
870
871 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
872
873         * c.opt (Wimport, fall-virtual, falt-external-templates,
874         fdefault-inline, fenum-int-equiv, fexternal-templates,
875         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
876         fname-mangling-version-, fnew-abi, fnonnull-objects,
877         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
878         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
879         applicable.
880         (fhandle-exceptions): Mark with Alias and Warn.
881         * c-opts.c (c_common_handle_option): Don't handle options marked
882         as ignored.
883
884 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
885
886         * c.opt (Wcomments, Werror-implicit-function-declaration,
887         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
888         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
889         aliases.
890         * c-common.c (option_codes): Use OPT_Wcomment instead of
891         OPT_Wcomments.
892         * c-opts.c (warning_as_error_callback, c_common_handle_option):
893         Don't handle options marked as aliases.
894
895 2010-08-25  Richard Guenther  <rguenther@suse.de>
896
897         * c-common.c (c_common_get_alias_set): Remove special
898         handling for pointers.
899
900 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
901
902         * c-common.c: Use FOR_EACH_VEC_ELT.
903         * c-gimplify.c: Likewise.
904         * c-pragma.c: Likewise.
905
906 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
907
908         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
909         RejectDriver.
910         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
911         RejectDriver.
912         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
913         instead of OPT_MDX and OPT_MMDX.
914
915 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
916
917         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
918
919 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
920
921         * c.opt (MD, MMD): Change to MDX and MMDX.
922         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
923
924 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
925
926         * c-opts.c (c_common_handle_option): Call handle_generated_option
927         instead of handle_option.
928
929 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
930
931         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
932         (maybe_apply_renaming_pragma): Delete unneeded declarations.
933
934 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
935
936         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
937         (pending_redefine_extname): Change type to a VEC.
938         (add_to_renaming_pragma_list): Update for new type of
939         pending_redefine_extname.
940         (maybe_apply_renaming_pragma): Likewise.
941
942 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
943
944         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
945         visited.
946         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
947         decide whether a type has already been declared/seen.
948         Do not go to the original type.
949         (dump_nested_types): New parameter forward.
950         Generate forward declaration if needed and mark type as visited.
951         (print_ada_declaration): Call dump_nested_types if not already done.
952         Mark types as visited.
953
954 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
955
956         * c.opt (-print-pch-checksum): Remove option.
957         * c-opts.c (c_common_handle_option): Don't handle
958         OPT_print_pch_checksum.
959
960 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
961
962         * c-common.h (c_common_handle_option): Update prototype and return
963         value type.
964         * c-opts.c (c_common_handle_option): Update prototype and return
965         value type.  Update calls to handle_option and
966         enable_warning_as_error.
967
968 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
969
970         PR c/45079
971         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
972
973 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
974
975         * c-common.h (c_common_missing_argument): Remove.
976         * c-opts.c (c_common_missing_argument): Remove.
977         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
978         idirafter, imacros, include, isysroot, isystem, iquote): Add
979         MissingArgError.
980         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
981
982 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
983
984         * c-common.h (c_common_option_lang_mask,
985         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
986         New.
987         (c_common_init_options): Update prototype.
988         * c-opts.c (c_common_option_lang_mask): New.
989         (c_common_initialize_diagnostics): Split out of
990         c_common_init_options.
991         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
992         New.
993         (c_common_init_options): Update prototype.  Use decoded options in
994         search for -lang-asm.
995
996 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
997
998         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
999         * c-format.c: Likewise.
1000
1001 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1002
1003         * c-common.h: Include diagnostic-core.h. Error if already
1004         included.
1005         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1006
1007 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1008
1009         * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1010         Do not include expr.h
1011         (vector_mode_valid_p): Move here.
1012
1013 2010-06-21  DJ Delorie  <dj@redhat.com>
1014
1015         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1016         allow these pragmas anywhere.
1017
1018 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
1019
1020         PR bootstrap/44509
1021         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1022         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1023         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1024         ggc_strdup instead of xstrdup.
1025
1026 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
1027
1028         * c-cppbuiltin.c: Include cpp-id-data.h.
1029         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1030         (lazy_hex_fp_value): New function.
1031         (builtin_define_with_hex_fp_value): Provide definitions lazily.
1032
1033 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1034
1035         * c-gimplify.c: Do not include tree-flow.h
1036
1037 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
1038
1039         PR other/44034
1040         * c-common.c: Rename targetm member:
1041         targetm.enum_va_list -> targetm.enum_va_list_p
1042
1043 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
1044
1045         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1046
1047 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
1048
1049         * c-cppbuiltin.c: Do not include except.h.
1050
1051 2010-06-24  Andi Kleen  <ak@linux.intel.com>
1052
1053         * c-common.c (warn_for_omitted_condop): New.
1054         * c-common.h (warn_for_omitted_condop): Add prototype.
1055
1056 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
1057
1058         * c.opt (lang-objc): Remove.
1059         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1060
1061 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
1062
1063         * c-opts.c: Include "tm_p.h".
1064
1065 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
1066
1067         * c-common.c (parse_optimize_options): Update call to
1068         decode_options.
1069
1070 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
1071
1072         * c-common.c (record_types_used_by_current_var_decl): Adjust for
1073         new type of types_used_by_cur_var_decl.
1074
1075 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
1076
1077         PR bootstrap/44512
1078         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1079         for C++ standard compliance.
1080
1081 2010-06-16  Jason Merrill  <jason@redhat.com>
1082
1083         * c.opt: Add -Wnoexcept.
1084
1085 2010-06-16  Richard Guenther  <rguenther@suse.de>
1086
1087         PR c/44555
1088         * c-common.c (c_common_truthvalue_conversion): Remove
1089         premature and wrong optimization concering ADDR_EXPRs.
1090
1091 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
1092
1093         * c-ada-spec.c (dump_sloc): Remove column info.
1094         (is_simple_enum): New function.
1095         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1096         enum types when relevant.
1097
1098 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1099
1100         * c-common.c (conversion_warning): Warn at expression
1101         location.
1102
1103 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
1104
1105         * c-opts.c (c_common_handle_option): Don't handle
1106         OPT_fshow_column.
1107
1108 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1109
1110         * c-pragma.c (push_alignment): Use typed GC allocation.
1111         (handle_pragma_push_options): Likewise.
1112
1113         * c-common.c (parse_optimize_options): Likewise.
1114
1115         * c-common.h (struct sorted_fields_type): Add variable_size GTY
1116         option.
1117
1118 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
1119
1120         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1121         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1122         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1123         flag_signed_bitfields, warn_strict_null_sentinel,
1124         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1125         flag_gen_declaration, flag_no_gnu_keywords,
1126         flag_implement_inlines, flag_implicit_templates,
1127         flag_implicit_inline_templates, flag_optional_diags,
1128         flag_elide_constructors, flag_default_inline, flag_rtti,
1129         flag_conserve_space, flag_access_control, flag_check_new,
1130         flag_new_for_scope, flag_weak, flag_working_directory,
1131         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1132         flag_enforce_eh_specs, flag_threadsafe_statics,
1133         flag_pretty_templates): Remove.
1134         * c-common.h (flag_preprocess_only, flag_nil_receivers,
1135         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1136         flag_replace_objc_classes, flag_undef, flag_no_builtin,
1137         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1138         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1139         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1140         flag_no_gnu_keywords, flag_implement_inlines,
1141         flag_implicit_templates, flag_implicit_inline_templates,
1142         flag_optional_diags, flag_elide_constructors, flag_default_inline,
1143         flag_rtti, flag_conserve_space, flag_access_control,
1144         flag_check_new, flag_new_for_scope, flag_weak,
1145         flag_working_directory, flag_use_cxa_atexit,
1146         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1147         flag_threadsafe_statics, flag_pretty_templates,
1148         warn_strict_null_sentinel): Remove.
1149         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1150         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1151         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1152         fimplicit-inline-templates, fimplicit-templates,
1153         flax-vector-conversions, fms-extensions, fnil-receivers,
1154         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1155         frtti, fshort-double, fshort-enums, fshort-wchar,
1156         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1157         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1158         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1159         gen-decls, undef): Use Var.
1160         (fdefault-inline, foptional-diags): Document as doing nothing.
1161         * c-opts.c (c_common_handle_option): Remove cases for options now
1162         using Var.  Mark ignored options as such.
1163
1164 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
1165
1166         * c-common.c: Moved to here from parent directory. 
1167         * c-common.def: Likewise.
1168         * c-common.h: Likewise.
1169         * c-cppbuiltin.c: Likewise.
1170         * c-dump.c: Likewise.
1171         * c-format.c: Likewise.
1172         * c-format.h : Likewise.
1173         * c-gimplify.c: Likewise.
1174         * c-lex.c: Likewise.
1175         * c-omp.c: Likewise.
1176         * c.opt: Likewise.
1177         * c-opts.c: Likewise.
1178         * c-pch.c: Likewise.
1179         * c-ppoutput.c: Likewise.
1180         * c-pragma.c: Likewise.
1181         * c-pragma.h: Likewise.
1182         * c-pretty-print.c: Likewise.
1183         * c-pretty-print.h: Likewise.
1184         * c-semantics.c: Likewise.
1185         * stub-objc.c: Likewise.
1186
1187         * c-common.c: Include gt-c-family-c-common.h.
1188         * c-pragma.c: Include gt-c-family-c-pragma.h.
1189 \f
1190 Copyright (C) 2010, 2011 Free Software Foundation, Inc.
1191
1192 Copying and distribution of this file, with or without modification,
1193 are permitted in any medium without royalty provided the copyright
1194 notice and this notice are preserved.