OSDN Git Service

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