OSDN Git Service

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