OSDN Git Service

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