OSDN Git Service

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