OSDN Git Service

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