OSDN Git Service

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