OSDN Git Service

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