OSDN Git Service

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