OSDN Git Service

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