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