OSDN Git Service

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