OSDN Git Service

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