OSDN Git Service

2746d04fe4af918fd4a7a4139b53b63736615bc6
[pf3gnuchains/gcc-fork.git] / gcc / c-family / ChangeLog
1 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
2
3         PR c++/51777
4         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
5         use pp_unsigned_wide_integer.
6
7 2012-01-10  Richard Guenther  <rguenther@suse.de>
8
9         PR middle-end/51806
10         * c-opts.c (c_common_handle_option): Move -Werror handling
11         to language independent code.
12
13 2012-01-05  Richard Guenther  <rguenther@suse.de>
14
15         PR middle-end/51764
16         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
17         from common.opt.
18
19 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
20
21         PR c++/51316
22         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
23         of array types with an unknown bound.
24
25 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
26
27         * c-common.c (flag_isoc99): Update comment to refer to C11.
28         (flag_isoc1x): Change to flag_isoc11.
29         * c-common.h (flag_isoc99): Update comment to refer to C11.
30         (flag_isoc1x): Change to flag_isoc11.
31         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
32         C11.
33         * c-opts.c (set_std_c1x): Change to set_std_c11.
34         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
35         Call set_std_c11.
36         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
37         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
38         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
39         standard.
40         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
41         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
42         (std=gnu1x): Make alias of std=gnu11.
43
44 2011-12-19  Jason Merrill  <jason@redhat.com>
45
46         PR c++/51228
47         * c-common.c (handle_transparent_union_attribute): Check the first
48         field if the type is complete.
49
50 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
51
52         PR libstdc++/51365
53         * c-common.c (RID_IS_FINAL): Add.
54         * c-common.h (RID_IS_FINAL): Add.
55
56 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
57
58         * c.opt (fgnu-runtime): Provide full description.
59         (fnext-runtime): Likewise.
60         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
61
62 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
63
64         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
65         predefines in one place.  Add LOCK_FREE predefines.
66         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
67         new func.
68
69 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
70
71         PR c/51256
72         * c-common.c (get_atomic_generic_size): Check for various error 
73         conditions
74         (resolve_overloaded_atomic_exchange, 
75         resolve_overloaded_atomic_compare_exchange, 
76         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
77         error_mark_node for error conditions.
78         
79 2011-11-08  Richard Guenther  <rguenther@suse.de>
80
81         PR middle-end/51010
82         c-family/
83
84 2011-11-07  Richard Henderson  <rth@redhat.com>
85             Aldy Hernandez  <aldyh@redhat.com>
86             Torvald Riegel  <triegel@redhat.com>
87
88         Merged from transactional-memory.
89
90         * c-common.c (handle_tm_wrap_attribute,
91         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
92         (struct c_common_reswords): Added __transaction* keywords.
93         (struct c_common_attribute_table): Added transaction* and tm_regparm
94         attributes.
95         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
96         masks.
97         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
98         find_tm_attribute): Declare.
99
100 2011-11-07  Jason Merrill  <jason@redhat.com>
101
102         PR c++/35688
103         * c-common.c, c-common.h: Revert yesterday's changes.
104
105 2011-11-06  Jason Merrill  <jason@redhat.com>
106
107         PR c++/35688
108         * c-common.c (decl_has_visibility_attr): Split out from...
109         (c_determine_visibility): ...here.
110         * c-common.h: Declare it.
111
112 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
113
114         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
115         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
116         type.
117         (check_user_alignment): New.  Split out of
118         handle_aligned_attribute.  Disallow integer constants with
119         noninteger types.  Conditionally allow zero.
120         (handle_aligned_attribute): Use check_user_alignment.
121         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
122
123 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
124             Richard Henderson  <rth@redhat.com>
125
126         Merged from cxx-mem-model.
127
128         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
129         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak 
130         parameters that are the same type size.
131         (get_atomic_generic_size): New.  Find size of generic
132         atomic function parameters and do typechecking.
133         (add_atomic_size_parameter): New.  Insert size into parameter list.
134         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
135         either __atomic_exchange_n or external library call.
136         (resolve_overloaded_atomic_compare_exchange): Restructure 
137         __atomic_compare_exchange to either _n variant or external library call.
138         (resolve_overloaded_atomic_load): Restructure __atomic_load to either 
139         __atomic_load_n or an external library call.
140         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
141         __atomic_store_n or an external library call.
142         (resolve_overloaded_builtin): Handle new __atomic builtins.
143
144 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
145
146         PR c++/50608
147         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
148         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
149         <INDIRECT_REF>: Return the argument.
150         <ARRAY_REF>: Remove special code for negative offset.
151         Call fold_build_pointer_plus instead of size_binop.
152         (fold_offsetof): Remove STOP_REF argument and adjust.
153         * c-common.h (fold_offsetof_1): Declare.
154         (fold_offsetof): Remove STOP_REF argument.
155
156 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
157
158         PR c++/50810
159         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
160         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
161         Wnarrowing for C++0x and C++98.
162         * c.opt ([Wnarrowing]): Update.
163
164 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
165
166         PR c++/44277
167         * c.opt: Add Wzero-as-null-pointer-constant.
168
169 2011-10-31  Jason Merrill  <jason@redhat.com>
170
171         * c.opt (-fdeduce-init-list): Off by default.
172
173         PR c++/50920
174         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
175         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
176         and -Wc++11-compat.
177         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
178
179 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
180
181         PR c++/30066
182         * c.opt (fvisibility-inlines-hidden): Description change.
183
184 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
185
186         Implement C++11 user-defined literals.
187         * c-common.c (build_userdef_literal): New.
188         * c-common.def: New tree code.
189         * c-common.h (tree_userdef_literal): New tree struct and accessors.
190         * c-lex.c (interpret_float): Add suffix parm.
191         (c_lex_with_flags): Build literal tokens.
192
193 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
194
195         PR c++/50841
196         Revert:
197         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
198
199         PR c++/50810
200         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
201         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
202         Wnarrowing for C++0x and C++98.
203         * c.opt ([Wnarrowing]): Update.
204
205 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
206
207         PR c++/50810
208         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
209         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
210         Wnarrowing for C++0x and C++98.
211         * c.opt ([Wnarrowing]): Update.
212
213 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
214
215         PR c++/45385
216         * c-common.c (conversion_warning): Remove code looking for
217         artificial operands.
218
219 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
220
221         PR bootstrap/50760
222         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
223         !NO_IMPLICIT_EXTERN_C.
224
225 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
226
227         * c-common.c (c_common_reswords): Add __bases,
228         __direct_bases.
229         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
230
231 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
232
233         PR c++/50757
234         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
235
236 2011-10-15  Tom Tromey  <tromey@redhat.com>
237             Dodji Seketeli  <dodji@redhat.com>
238
239         * c.opt (fdebug-cpp): New option.
240         * c-opts.c (c_common_handle_option): Handle the option.
241         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
242         output stream in parameter. Factorized from ...
243         (maybe_print_line): ... this. Dump location debug information when
244         -fdebug-cpp is in effect.
245         (print_line_1): New static function. Takes an output stream in
246         parameter. Factorized from ...
247         (print_line): ... here. Dump location information when -fdebug-cpp
248         is in effect.
249         (scan_translation_unit): Dump location information when
250         -fdebug-cpp is in effect.
251
252 2011-10-15  Tom Tromey  <tromey@redhat.com>
253             Dodji Seketeli  <dodji@redhat.com>
254
255         * c.opt (ftrack-macro-expansion): New option. Handle it with and
256         without argument.
257         * c-opts.c (c_common_handle_option)<case
258         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
259         cases. Handle -ftrack-macro-expansion with and without argument.
260
261 2011-10-15  Tom Tromey  <tromey@redhat.com>
262             Dodji Seketeli  <dodji@redhat.com>
263
264         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
265         (print_line, cb_define, do_line_change): Adjust to avoid touching
266         the internals of struct line_map.  Use the public API instead.
267         * c-pch.c (c_common_read_pch): Likewise.
268         * c-lex.c (fe_file_change): Likewise.
269
270 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
271
272         PR c++/17212
273         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
274
275 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
276
277         PR c++/33067
278         * c-pretty-print.c (pp_c_floating_constant): Output
279         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
280
281 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
282
283         * c-common.c (def_builtin_1): Delete old interface with two
284         parallel arrays to hold standard builtin declarations, and replace
285         it with a function based interface that can support creating
286         builtins on the fly in the future.  Change all uses, and poison
287         the old names.  Make sure 0 is not a legitimate builtin index.
288         * c-omp.c (c_finish_omp_barrier): Ditto.
289         (c_finish_omp_taskwait): Ditto.
290         (c_finish_omp_flush): Ditto.
291
292 2011-10-11  Tristan Gingold  <gingold@adacore.com>
293
294         * c.opt: (fallow-parameterless-variadic-functions): New.
295
296 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
297
298         PR c++/33255 - Support -Wunused-local-typedefs warning
299         * c-common.h (struct c_language_function::local_typedefs): New
300         field.
301         (record_locally_defined_typedef, maybe_record_typedef_use)
302         (maybe_warn_unused_local_typedefs): Declare new functions.
303         * c-common.c (record_locally_defined_typedef)
304         (maybe_record_typedef_use)
305         (maybe_warn_unused_local_typedefs): Define new functions.
306         * c.opt: Declare new -Wunused-local-typedefs flag.
307
308 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
309
310         PR middle-end/50266
311         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
312         computations.
313
314 2011-09-05  Richard Guenther  <rguenther@suse.de>
315
316         * c-common.c (complete_array_type): Use ssize_int (-1) instead
317         of integer_minus_one_node for empty array upper bounds.
318
319 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
320
321         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
322         it's the first time it's being called on this main TU.
323
324 2011-08-24  Richard Guenther  <rguenther@suse.de>
325
326         PR c/49396
327         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
328
329 2011-08-22  Gabriel Charette  <gchare@google.com>
330
331         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
332         defined in cpp_init_builtins and c_cpp_builtins.
333
334 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
335
336         * c-common.c (c_common_reswords): Add __builtin_complex.
337         * c-common.h (RID_BUILTIN_COMPLEX): New.
338
339 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
340
341         * c-common.c (c_common_reswords): Add _Noreturn.
342         (keyword_is_function_specifier): Handle RID_NORETURN.
343         * c-common.h (RID_NORETURN): New.
344
345 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
346
347         * c-common.c (unsafe_conversion_p): New function. Check if it is
348         unsafe to convert an expression to the type.
349         (conversion_warning): Adjust, use unsafe_conversion_p.
350         * c-common.h (unsafe_conversion_p): New function declaration.
351
352 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
353
354         * c-common.h (c_finish_omp_atomic): Adjust prototype.
355         (c_finish_omp_taskyield): New prototype.
356         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
357         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
358         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
359         or RHS1 have side-effects, evaluate those too in the right spot,
360         if it is a decl and LHS is also a decl, error out if they
361         aren't the same.
362         (c_finish_omp_taskyield): New function.
363         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
364         * c-pragma.c (omp_pragmas): Add taskyield.
365         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
366         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
367         PRAGMA_OMP_CLAUSE_MERGEABLE.
368
369 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
370
371         * c-common.h (set_underlying_type): Remove parm name from
372         declaration.
373
374 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
375
376         * c-pretty-print.h: Search c-common.h in c-family.
377         
378 2011-07-22  Jason Merrill  <jason@redhat.com>
379
380         PR c++/49793
381         * c.opt (Wnarrowing): New.
382
383         PR c++/30112
384         * c-common.h: Declare c_linkage_bindings.
385         * c-pragma.c (handle_pragma_redefine_extname): Use it.
386
387         PR c++/49813
388         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
389         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
390         as flag_isoc99 for 'restrict'.
391         (pp_c_specifier_qualifier_list): Likewise for _Complex.
392
393 2011-07-21  Ian Lance Taylor  <iant@google.com>
394
395         PR middle-end/49705
396         * c-common.c (c_disable_warnings): New static function.
397         (c_enable_warnings): New static function.
398         (c_fully_fold_internal): Change local unused_p to bool.  Call
399         c_disable_warnings and c_enable_warnings rather than change
400         c_inhibit_evaluation_warnings.
401
402 2011-07-20  Jason Merrill  <jason@redhat.com>
403
404         PR c++/6709 (DR 743)
405         PR c++/42603 (DR 950)
406         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
407         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
408         (CPP_DECLTYPE): New.
409         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
410
411 2011-07-19  Richard Guenther  <rguenther@suse.de>
412
413         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
414         * c-omp.c (c_finish_omp_for): Likewise.
415
416 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
417
418         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
419         body on the next line.
420
421 2011-07-08  Jason Merrill  <jason@redhat.com>
422
423         PR c++/45437
424         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
425
426         PR c++/49673
427         * c-common.c (c_apply_type_quals_to_decl): Don't check
428         TYPE_NEEDS_CONSTRUCTING.
429
430 2011-07-06  Richard Guenther  <rguenther@suse.de>
431
432         * c-common.c (c_common_nodes_and_builtins):
433         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
434
435 2011-07-05  Richard Guenther  <rguenther@suse.de>
436
437         * c-common.c (c_common_nodes_and_builtins): Build all common
438         tree nodes first.
439
440 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
441
442         * c-common.h (c_tree_chain_next): New static inline function.
443
444         * c-common.c (check_builtin_function_arguments): Handle
445         BUILT_IN_ASSUME_ALIGNED.
446
447 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
448
449         * c-common.c: Add sync_ or SYNC__ to builtin names.
450         * c-omp.c: Add sync_ or SYNC__ to builtin names.
451
452 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
453
454         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
455         handler.
456         (gen_pragma_handler): New union.
457         (internal_pragma_handler): New type.
458         (c_register_pragma_with_data)
459         (c_register_pragma_with_expansion_and_data): New functions.
460
461         * c-pragma.c (registered_pragmas, c_register_pragma_1)
462         (c_register_pragma, c_register_pragma_with_expansion)
463         (c_invoke_pragma_handler): Changed to work with
464         internal_pragma_handler.
465         (c_register_pragma_with_data)
466         (c_register_pragma_with_expansion_and_data): New functions.
467
468 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
469
470         * c-common.c: Include common/common-target.h.
471         (handle_section_attribute): Use
472         targetm_common.have_named_sections.
473         * c-cppbuiltin.c: Include common/common-target.h.
474         (c_cpp_builtins): Use targetm_common.except_unwind_info.
475
476 2011-06-10  Richard Guenther  <rguenther@suse.de>
477
478         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
479         to print a IDENTIFIER_NODE.
480
481 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
482             Joseph Myers  <joseph@codesourcery.com>
483
484         * c.opt (fbuilding-libgcc): New option.
485         * c-cppbuiltin.c (c_cpp_builtins): Define
486         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
487
488 2011-06-07  Jason Merrill  <jason@redhat.com>
489
490         * c-common.c (max_tinst_depth): Lower default to 900.
491
492         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
493
494 2011-06-07  Richard Guenther  <rguenther@suse.de>
495
496         * c-common.c (c_common_nodes_and_builtins): Do not set
497         size_type_node or call set_sizetype.
498
499 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
500
501         PR debug/49130
502         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
503         type when using pointer comparison to compare types.
504
505 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
506
507         * c.opt: Add -Wdelete-non-virtual-dtor.
508         * c-opts.c (c_common_handle_option): Include it in -Wall.
509
510 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
511
512         PR bootstrap/49190
513
514         Revert:
515         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
516
517         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
518         not tree_common.
519
520 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
521
522         PR c++/49165
523         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
524         C++ don't call c_common_truthvalue_conversion on void type arms.
525
526 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
527
528         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
529         (stmt_list_stack): Define.
530         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
531         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
532
533 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
534
535         * c-common.c (warning_candidate_p): Check for BLOCKs.
536
537 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
538
539         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
540         not tree_common.
541
542 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
543
544         * c-common.c (def_fn_type): Remove extra va_end.
545
546 2011-05-23  Jason Merrill  <jason@redhat.com>
547
548         PR c++/48106
549         * c-common.c (c_common_get_narrower): New.
550         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
551
552 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
553
554         * c-common.h (check_function_arguments): Tweak prototype of
555         check_function_arguments.
556         * c-common.c (check_function_arguments): Likewise.  Adjust
557         calls to check_function_nonnull, check_function_format, and
558         check_function_sentinel.
559         (check_function_sentinel): Take a FUNCTION_TYPE rather than
560         separate attributes and typelist arguments.  Use
561         FOREACH_FUNCTION_ARGS to iterate over argument types.
562
563 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
564
565         * c-common.c (c_common_reswords): Reorder.
566         * c-common.h (rid): Likewise.
567
568 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
569
570         * c-common.c (def_fn_type): Don't call build_function_type, call
571         build_function_type_array or build_varargs_function_type_array
572         instead.
573         (c_common_nodes_and_builtins): Likewise.
574
575 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
576
577         * c-common.c (c_add_case_label): Omit the loc argument to
578         build_case_label.
579         * c-common.h (build_case_label): Remove.
580         * c-semantics.c (build_case_label): Remove.
581
582 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
583
584         * c-objc.h (objc_start_method_definition): Update prototype.
585         * stub-objc.c (objc_start_method_definition): Add extra parameter.
586
587 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
588
589         * c-common.c (check_main_parameter_types): Reindent.  Don't use
590         TYPE_ARG_TYPES directly.
591         (handle_nonnull_attribute): Likewise.
592         (sync_resolve_params): Likewise.
593         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
594         to check_format_string.
595         (handle_format_attribute): Likewise.
596         (check_format_string): Take a function type to examine instead of
597         a type list.  Use a function_arg_iterator to step through argument
598         types.
599
600 2011-05-04  Richard Guenther  <rguenther@suse.de>
601
602         * c-common.c (fix_string_type): Use size_int for index type bounds.
603         (start_fname_decls): Do not pass NULL to build_int_cst.
604         (c_init_attributes): Likewise.
605         * c-lex.c (c_lex_with_flags): Likewise.
606
607 2011-04-27  Jason Merrill  <jason@redhat.com>
608
609         * c-common.c (make_tree_vector_from_list): New.
610         * c-common.h: Declare it.
611
612 2011-04-26  Richard Guenther  <rguenther@suse.de>
613
614         PR preprocessor/48248
615         * c-ppoutput.c (maybe_print_line): Always optimize newlines
616         for output size with -P.
617
618 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
619
620         * c-common.c (struct c_common_resword): Add __underlying_type.
621         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
622
623 2011-04-20  Jim Meyering  <meyering@redhat.com>
624
625         * c-format.c (init_dollar_format_checking): Remove useless
626         if-before-free.
627
628 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
629
630         * c-objc.h (objc_get_interface_ivars): Removed.
631         (objc_detect_field_duplicates): New.
632         * stub-objc.c: Likewise.
633
634 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
635
636         * stub-objc.c (objc_declare_protocols): Renamed to
637         objc_declare_protocol.
638         * c-objc.h: Likewise.
639
640 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
641
642         * stub-objc.c (objc_declare_class): Updated argument name.
643
644 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
645
646         * c-common.h (c_common_init_ts): Declare.
647         * c-common.c (c_common_init_ts): Define.
648
649 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
650
651         * c-objc.h (objc_build_message_expr): Updated prototype.
652         * stub-objc.c (objc_build_message_expr): Likewise.
653         
654 2011-04-12  Martin Jambor  <mjambor@suse.cz>
655
656         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
657         of cgraph_node.
658
659 2011-04-11  Richard Guenther  <rguenther@suse.de>
660
661         * c-common.c (complete_array_type): Build a range type of
662         proper type.
663
664 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
665
666         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
667         (handle_type_generic_attribute): Likewise.
668
669 2011-04-07  Jason Merrill  <jason@redhat.com>
670
671         PR c++/48450
672         * c-common.c (c_common_truthvalue_conversion): Don't ignore
673         conversion from C++0x scoped enum.
674
675 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
676
677         * c-target-def.h: New file.
678         * c-target.def: New file.
679         * c-target.h: New file.
680         * c-common.c (targetcm): Don't define here.
681         * c-common.h (default_handle_c_option): Declare.
682         * c-format.c: Include c-target.h instead of target.h.
683         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
684         include tm.h.
685         (default_handle_c_option): Move from targhooks.c.
686
687 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
688
689         PR preprocessor/48248
690         * c-ppoutput.c (print): Add src_file field.
691         (init_pp_output): Initialize it.
692         (maybe_print_line): Don't optimize by adding up to 8 newlines
693         if map->to_file and print.src_file are different file.
694         (print_line): Update print.src_file.
695
696 2011-03-25  Kai Tietz  <ktietz@redhat.com>
697
698         * c-ada-spec.c (compare_comment): Use filename_cmp
699         instead of strcmp for filename.
700
701 2011-03-25  Jeff Law  <law@redhat.com>
702
703         * c-family/c-common.c (def_fn_type): Add missing va_end.
704
705 2011-03-25  Jason Merrill  <jason@redhat.com>
706
707         * c.opt: Add -std=c++03.
708
709 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
710
711         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
712
713 2011-03-17  Kai Tietz
714
715         PR target/12171
716         * c-pretty-print.c (pp_c_specifier_qualifier_list):
717         Display allowed attributes for function pointer types.
718         (pp_c_attributes_display): New function to display
719         attributes having affects_type_identity flag set to true.
720         * c-pretty-print.h (pp_c_attributes_display): New prototype.
721
722         * c-common.c (c_common_attribute_table):
723         Add new element.
724         (c_common_format_attribute_table): Likewise.
725
726 2011-03-18  Jason Merrill  <jason@redhat.com>
727
728         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
729         * c-common.h: Don't declare it here.
730         * c-common.c: Or define it here.
731         * c-opts.c (c_common_handle_option): Or set it here.
732
733         PR c++/35315
734         * c-common.c (handle_transparent_union_attribute): Don't
735         make a duplicate type in C++.
736
737 2011-03-15  Jason Merrill  <jason@redhat.com>
738
739         * c-common.c (max_constexpr_depth): New.
740         * c-common.h: Declare it.
741         * c-opts.c (c_common_handle_option): Set it.
742         * c.opt (fconstexpr-depth): New option.
743
744 2011-03-11  Jason Merrill  <jason@redhat.com>
745
746         * c-common.c (attribute_takes_identifier_p): Add missing const.
747
748         PR c++/46803
749         * c-common.c (attribute_takes_identifier_p): Assume that an
750         unknown attribute takes an identifier.
751
752 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
753
754         PR c/47786
755         * c-common.c (c_type_hash): Call list_length instead of iterating
756         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
757
758 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
759
760         PR c/47809
761         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
762
763 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
764
765         * c.opt (fobjc-abi-version=) New.
766         (fobjc-nilcheck): New.
767
768 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
769
770         PR c++/46890
771         * c-common.h (keyword_is_decl_specifier): Declare.
772         * c-common.c (keyword_is_decl_specifier): Define.
773         (keyword_is_function_specifier): New function.
774
775 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
776
777         PR c/47473
778         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
779         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
780         REAL_TYPE.
781
782 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
783
784         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
785
786 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
787
788         PR pch/47430
789         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
790         after init_c_lex if pch_file is set.
791
792 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
793
794         PR c++/43601
795         * c.opt (-fkeep-inline-dllexport): New switch.
796
797 2011-01-12  Richard Guenther  <rguenther@suse.de>
798
799         PR middle-end/32511
800         * c-common.c (handle_weak_attribute): Warn instead of error
801         on declaring an inline function weak.
802
803 2011-01-05  Tom Tromey  <tromey@redhat.com>
804
805         * c-common.h (lvalue_error): Update.
806         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
807         not error.
808
809 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
810         
811         PR objc/47075
812         * c-objc.h (objc_finish_message_expr): Added argument to
813         prototype.
814
815 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
816
817         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
818         Use prototype_p.
819
820 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
821
822         * c-objc.h (objc_maybe_warn_exceptions): New.
823         * stub-objc.c (objc_maybe_warn_exceptions): New.        
824
825 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
826
827         * c-common.h (readonly_error): Declare.
828         * c-common.c (readonly_error): Define.
829
830 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
831
832         * c-common.h (invalid_indirection_error): Declare.
833         * c-common.c (invalid_indirection_error): Define.
834
835 2010-12-03  Richard Guenther  <rguenther@suse.de>
836
837         PR c/46745
838         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
839         (pp_c_unary_expression): Likewise.
840         (pp_c_expression): Likewise.
841
842 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
843
844         * c-common.h (objc_finish_function): New.
845         (objc_non_volatilized_type): Removed.
846         (objc_type_quals_match): Removed.
847         * stub-objc.c (objc_finish_function): New.
848         (objc_non_volatilized_type): Removed.
849         (objc_type_quals_match): Removed.
850         
851 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
852
853         * c-common.h (parse_optimize_options): Declare.
854         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
855         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
856
857 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
858
859         * c-opts.c (check_deps_environment_vars): Use getenv instead of
860         GET_ENVIRONMENT.
861         * c-pch.c (O_BINARY): Don't define here.
862         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
863
864 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
865
866         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
867         targetm.except_unwind_info.
868
869 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
870
871         * c-opts.c (c_common_handle_option): Pass location to
872         set_struct_debug_option.
873
874 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
875
876         * c-common.c (visibility_options): Move from ../opts.c.
877         * c-common.h (struct visibility_flags, visibility_options):
878         Declare here.
879         * c-opts.c (finish_options): Rename to c_finish_options.
880         (c_common_init): Update call to finish_options.
881
882 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
883
884         PR objc/34033
885         * c-lex.c (lex_string): Check that each string in an Objective-C
886         string concat sequence starts with either one or zero '@', and
887         that there are no spurious '@' signs at the end.
888
889 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
890
891         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
892         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
893         HANDLE_PRAGMA_VISIBILITY.
894         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
895         HANDLE_PRAGMA_VISIBILITY): Don't define.
896         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
897
898 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
899
900         PR c++/16189
901         PR c++/36888
902         PR c++/45331
903         * c-common.h (keyword_begins_type_specifier): Declare.
904         (keyword_is_storage_class_specifier): Declare.
905         (keyword_is_type_qualifier): Declare.
906         * c-common.c (keyword_begins_type_specifier): New function.
907         (keyword_is_storage_class_specifier): New function.
908         (keyword_is_type_qualifier): Declare.
909
910 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
911
912         PR c/46547
913         * c-common.c (in_late_binary_op): Define.
914         (c_common_truthvalue_conversion): Check in_late_binary_op before
915         calling c_save_expr.
916         * c-common.h (in_late_binary_op): Declare.
917
918 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
919
920         * c-opts.c (c_common_handle_option): Update calls to
921         set_struct_debug_option.
922
923 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
924
925         * c-common.h (objc_declare_protocols): Added additional argument.
926         * stub-objc.c (objc_declare_protocol): Same change.
927         
928 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
929
930         PR c/33193
931         * c-common.h (build_real_imag_expr): Declare.
932         * c-semantics.c (build_real_imag_expr): Define.
933
934 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
935
936         * c-opts.c (c_common_parse_file): Take no arguments.
937         * c-common.h (c_common_parse_file): Update prototype.
938
939 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
940
941         PR c++/46401
942         * c-common.c (warning_candidate_p): Don't track non-const calls
943         or STRING_CSTs.
944
945 2010-11-15  Ian Lance Taylor  <iant@google.com>
946
947         * c-lex.c (init_c_lex): Set macro debug callbacks if
948         flag_dump_go_spec is set.
949
950 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
951
952         * c-common.h (objc_build_incr_expr_for_property_ref): New.
953         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
954
955 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
956
957         PR preprocessor/45038
958         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
959         dialects.
960
961 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
962
963         * c-common.h (c_family_lang_mask): Declare.
964         * c-opts.c (c_family_lang_mask): Make extern.
965         * c-pragma.c (handle_pragma_diagnostic): Use
966         control_warning_option.
967
968 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
969
970         * c-common.c (parse_optimize_options): Update call to
971         decode_options.
972         * c-common.h (c_common_handle_option): Update prototype.
973         * c-opts.c (c_common_handle_option): Take location_t parameter and
974         pass it to other functions.
975
976 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
977
978         * c-opts.c (warning_as_error_callback): Remove.
979         (c_common_initialize_diagnostics): Don't call
980         register_warning_as_error_callback.
981         (c_common_handle_option): Handle -Werror=normalized= here.
982
983 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
984
985         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
986         in diagnostic.
987         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
988         letter.
989         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
990         Remove trailing '.' from diagnostics.
991         * c.opt (Wwrite-strings_: Avoid '`' in help text.
992
993 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
994
995         * c-common.c (parse_optimize_options): Pass global_dc to
996         decode_options.
997         * c-opts.c (c_common_handle_option): Pass &global_options to
998         set_Wstrict_aliasing.
999         * c.opt (v): Don't mark Common or document here.
1000
1001 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
1002
1003         PR target/44981
1004         * c-format.c (format_type): New type gcc_objc_string_format_type.
1005         (valid_stringptr_type_p): New.
1006         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1007         (check_format_string): Pass expected type, use 
1008         valid_stringptr_type_p (), check that the format string types are
1009         consistent with the format specification.
1010         (decode_format_attr): Warn if NSString is used outside objective-c.
1011         (format_types_orig): Add NSString.
1012         (format_name): New.
1013         (format_flags): New.
1014         (check_format_arg): Handle format strings requiring an external parser.
1015         first_target_format_type: New variable.
1016         (handle_format_attribute): Set up first_target_format_type, pass the
1017         expected format arg string type to check_format_string().
1018         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL):  New flag.
1019         * stub-objc.c (objc_string_ref_type_p): New.
1020         (objc_check_format_arg): New.
1021
1022 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
1023
1024         Fixed using the Objective-C 2.0 dot-syntax with class names.    
1025         * c-common.h (objc_build_class_component_ref): New.
1026         * stub-objc.c (objc_build_class_component_ref): New.
1027
1028 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
1029
1030         * c.opt (Wproperty-assign-default): New option.
1031
1032 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
1033
1034         Implemented -fobjc-std=objc1 flag.
1035         * c.opt (fobjc-std=objc1): New option.
1036
1037 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
1038
1039         Implemented format and noreturn attributes for Objective-C methods.
1040         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1041         attribute for Objective-C methods.
1042
1043 2010-10-31  Jason Merrill  <jason@redhat.com>
1044
1045         * c-common.c (conversion_warning, warn_for_collisions_1): Use
1046         EXPR_LOC_OR_HERE.
1047
1048 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
1049
1050         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1051         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1052         (objc_add_property_declaration): Removed arguments for copies and
1053         ivar.
1054         (objc_build_getter_call): Renamed to
1055         objc_maybe_build_component_ref.
1056         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1057         (objc_is_property_ref): New.
1058         * c-common.c (c_common_reswords): Removed copies and ivar.
1059         * stub-objc.c (objc_add_property_declaration): Removed arguments
1060         for copies and ivar.
1061         (objc_build_getter_call): Renamed to
1062         objc_maybe_build_component_ref.
1063         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1064         (objc_is_property_ref): New.
1065         
1066 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
1067             Matthew Gingell  <gingell@adacore.com>
1068
1069         * c-ada-spec.c (separate_class_package): New function.
1070         (pp_ada_tree_identifier): Prefix references to C++ classes with the
1071         name of their enclosing package.
1072         (print_ada_declaration): Use separate_class_package.
1073
1074 2010-10-27  Jason Merrill  <jason@redhat.com>
1075
1076         * c-common.c (c_common_reswords): Add __is_literal_type.
1077         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1078
1079         * c-common.c (check_case_value): Remove special C++ code.
1080
1081 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1082
1083         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1084         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
1085         and RID_LAST_PATTR.
1086         (objc_add_property_declaration): Added additional arguments.
1087         (objc_property_attribute_kind): Removed.
1088         (objc_set_property_attr): Removed.
1089         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1090         copy and nonatomic.
1091         * stub-objc.c (objc_add_property_declaration): Added additional
1092         arguments.
1093         (objc_set_property_attr): Removed.
1094         
1095 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1096
1097         * c-common.h (objc_add_property_variable): Renamed to
1098         objc_add_property_declaration.  Added location argument.
1099         * stub-objc.c (objc_add_property_variable): Same change.
1100         
1101 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
1102
1103         * c-common.h (objc_maybe_printable_name): New.
1104         * stub-objc.c (objc_maybe_printable_name): New.
1105
1106 2010-10-22  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1107         Andrew Pinski <pinskia@gmail.com>
1108
1109         * c-common.h (c_common_mark_addressable_vec): Declare.
1110         * c-common.c (c_common_mark_addressable_vec): New function.
1111
1112 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
1113
1114         * c-common.h (objc_set_method_type): Removed.
1115         (objc_add_method_declaration): Added boolean argument.
1116         (objc_start_method_definition): Same change.
1117         (objc_build_method_signature): Same change.
1118         * stub-objc.c (objc_set_method_type): Removed.
1119         (objc_add_method_declaration): Added boolean argument.
1120         (objc_start_method_definition): Same change.
1121         (objc_build_method_signature): Same change.
1122
1123 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
1124
1125         * c-common.h (finish_file): Removed.
1126         (objc_write_global_declarations): New.
1127         * c-opts.c (c_common_parse_file): Do not call finish_file.
1128         * stub-objc.c (objc_write_global_declarations): New.
1129         
1130 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
1131
1132         Implemented parsing @synthesize and @dynamic for
1133         Objective-C/Objective-C++.
1134         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1135         (objc_add_synthesize_declaration): New.
1136         (objc_add_dynamic_declaration): New.
1137         * c-common.c (c_common_reswords): Add synthesize and dynamic.
1138         * stub-objc.c (objc_add_synthesize_declaration): New.
1139         (objc_add_dynamic_declaration): New.
1140         
1141 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
1142
1143         PR target/46041
1144         * c-cppbuiltin.c (mode_has_fma): Move function here from
1145         builtins.c.  Don't use the fma optab, instead just use the
1146         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1147         using -save-temps.
1148
1149 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
1150
1151         Merge from 'apple/trunk' branch on FSF servers.
1152
1153         2005-11-08  Fariborz Jahanian <fjahanian@apple.com>
1154
1155         Radar 4330422
1156         * c-common.h (objc_non_volatilized_type): New declaration
1157         * stub-objc.c (objc_non_volatilized_type): New stub.
1158
1159 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
1160
1161         Merge from 'apple/trunk' branch on FSF servers.
1162
1163         2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1164
1165         Radar 4133425
1166         * c-common.h (objc_diagnose_private_ivar): New decl.
1167         * stub-objc.c (objc_diagnose_private_ivar): New stub.
1168
1169 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
1170
1171         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1172         * c-common.h (enum rid): Add RID_AT_PACKAGE.
1173         (objc_ivar_visibility_kind): New enum.
1174         (objc_set_visibility): Adjust prototype to use visibility enum.
1175         * stub-objc.c (objc_set_visibility): Adjust stub to use
1176         visibility enum.
1177
1178 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
1179
1180         * c-cppbuiltin.c (builtin_define_float_constants): Emit
1181         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1182         has the appropriate fma builtins.
1183         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1184
1185 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
1186
1187         merge from FSF apple 'trunk' branch.
1188         2006 Fariborz Jahanian <fjahanian@apple.com>
1189
1190         Radars 4436866, 4505126, 4506903, 4517826
1191         * c-common.c (c_common_resword): Define @property and its attributes.
1192         * c-common.h: Define property attribute enum entries.
1193         (OBJC_IS_PATTR_KEYWORD): New.
1194         (objc_property_attribute_kind): New enum.
1195         Declare objc_set_property_attr (), objc_add_property_variable (),
1196         objc_build_getter_call () and objc_build_setter_call ().
1197         * stub-objc.c (objc_set_property_attr): New stub.
1198         (objc_add_property_variable): Likewise.
1199         (objc_build_getter_call): Likewise.
1200         (objc_build_setter_call) Likewise.
1201
1202 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
1203
1204         merge from FSF apple 'trunk' branch.
1205         2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1206
1207         Radar 3803157 (method attributes)
1208         * c-common.c (handle_deprecated_attribute): Recognize
1209         objc methods as valid declarations.
1210         * c-common.h: Declare objc_method_decl ().
1211         * stub-objc.c (objc_method_decl): New stub.
1212
1213 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
1214
1215         * c-common.c (parse_optimize_options): Call
1216         decode_cmdline_options_to_array_default_mask before
1217         decode_options.  Update arguments to decode_options.
1218         * c-common.h (c_common_init_options_struct): Declare.
1219         * c-opts.c (c_common_init_options_struct): New.  Split out from
1220         c_common_init_options.
1221
1222 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
1223
1224         Implemented fast enumeration for Objective-C.
1225         * c-common.h (objc_finish_foreach_loop): New.
1226         * stub-objc.c (objc_finish_foreach_loop): New.
1227
1228 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
1229
1230         * c-common.h (struct diagnostic_context): Don't declare here.
1231         (c_common_initialize_diagnostics): Declare using
1232         diagnostic_context typedef.
1233         * c-opts.c (c_common_handle_option): Pass global_dc to
1234         handle_generated_option.
1235
1236 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
1237
1238         * c-opts.c (c_common_handle_option): Pass &global_options_set to
1239         handle_generated_option.
1240
1241 2010-10-03  Ian Lance Taylor  <iant@google.com>
1242
1243         * c.opt (-fplan9-extensions): New option.
1244
1245 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1246
1247         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1248         Remove.
1249         (c_cpp_builtins): Call functions from cppbuiltin.c instead
1250         of duplicating code.
1251
1252 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
1253
1254         * c-common.c: Add two new entries for @optional
1255         and @required keywords.
1256
1257         merge from FSF 'apple/trunk' branch.
1258         2006-01-30  Fariborz Jahanian <fjahanian@apple.com>
1259
1260         Radar 4386773
1261         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1262         objective-c keywords.
1263         (objc_set_method_opt): New declaration.
1264         * stub-objc.c (objc_set_method_opt): New stub.
1265         
1266 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
1267
1268         * c-common.c (handle_optimize_attribute): Pass &global_options to
1269         cl_optimization_save and cl_optimization_restore.
1270         * c-opts.c (c_common_handle_option): Pass &global_options to
1271         handle_generated_option.
1272         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1273         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1274         &global_options to cl_optimization_restore.
1275
1276 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
1277
1278         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1279         Objective-C/Objective-C++ keywords.
1280
1281 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1282
1283         Merge from 'apple/trunk' branch on FSF servers. 
1284         
1285         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
1286
1287         Radar 4281748
1288         * c-common.h (objc_check_global_decl): New declaration.
1289         * stub-objc.c (objc_check_global_decl): New stub.
1290
1291 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
1292
1293         * c.opt: Don't use VarExists.
1294
1295 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
1296
1297         * c-common.c (c_cpp_error): Update names of diagnostic_context
1298         members.
1299         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1300         cl_optimization members.
1301         * c-opts.c (warning_as_error_callback, c_common_handle_option,
1302         sanitize_cpp_opts, finish_options): Update names of cpp_options
1303         members.
1304
1305 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1306
1307         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
1308         (objc_is_reserved_word): Removed.
1309         * c-common.c: Updated comments.
1310         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1311         objc_is_reserved_word.
1312         * stub-objc.c (objc_is_reserved_word): Removed.
1313
1314 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
1315
1316         * c-common.h (objc_add_method_declaration): Adjust prototype to 
1317         include attributes.
1318         (objc_start_method_definition): Likewise.
1319         (objc_build_keyword_decl): Likewise.
1320         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1321         (objc_start_method_definition): Likewise.
1322         (objc_build_keyword_decl): Likewise.
1323
1324 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
1325
1326         * c-common.h (objc_start_class_interface): Adjust prototype.
1327         (objc_start_category_interface): Likewise.
1328         (objc_start_protocol): Likewise.
1329         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1330         (objc_start_class_interface): Likewise.
1331         (objc_start_category_interface): Likewise.
1332
1333 2010-09-27  Ian Lance Taylor  <iant@google.com>
1334
1335         * c-common.c (c_common_attribute_table): Add no_split_stack.
1336         (handle_no_split_stack_attribute): New static function.
1337
1338 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1339
1340         Merge from 'apple/trunk' branch on FSF servers. 
1341
1342         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
1343
1344         Radar 4229905   
1345         * c-common.h (objc_have_common_type): New declaration.
1346         * stub-objc.c (objc_have_common_type): New stub.
1347
1348         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
1349
1350         Radar 4154928
1351         * c-common.h (objc_common_type): New prototype.
1352         * stub-objc.c (objc_common_type): New stub.     
1353
1354 2010-09-24  Jan Hubicka  <jh@suse.cz>
1355
1356         * c-common.c (handle_leaf_attribute): New function.
1357         (struct attribute_spec c_common_att): Add leaf.
1358
1359 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
1360
1361         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1362         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1363         -dump, -dump=, -imacros, -imacros=, -include, -include=,
1364         -include-barrier, -include-directory, -include-directory=,
1365         -include-directory-after, -include-directory-after=,
1366         -include-prefix, -include-prefix=, -include-with-prefix,
1367         -include-with-prefix=, -include-with-prefix-after,
1368         -include-with-prefix-after=, -include-with-prefix-before,
1369         -include-with-prefix-before=, -no-integrated-cpp,
1370         -no-line-commands, -no-standard-includes, -no-warnings, -output,
1371         -output=, -pedantic, -pedantic-errors, -preprocess,
1372         -print-missing-file-dependencies, -trace-includes, -traditional,
1373         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1374         -user-dependencies, -verbose, -write-dependencies,
1375         -write-user-dependencies, no-integrated-cpp, traditional): New.
1376
1377 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
1378
1379         PR objc/23710
1380         * c-common.h (objc_start_method_definition): Return bool instead
1381         of void.
1382         * stub-objc.c (objc_start_method_definition): Return bool instead
1383         of void.
1384
1385 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
1386
1387         PR objc/25965
1388         * c-common.h (objc_get_interface_ivars): New declaration.
1389         * stub-objc.c (objc_get_interface_ivars): New stub.
1390
1391 2010-09-15  Ian Lance Taylor  <iant@google.com>
1392
1393         * c-common.c (parse_optimize_options): Do not capitalize warning
1394         messages.  Remove period at end of warning message.
1395
1396 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
1397
1398         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1399         (handle_alias_attribute): ... here.
1400         (handle_ifunc_attribute): New.
1401
1402 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
1403
1404         * c-common.h (do_warn_double_promotion): Declare.
1405         * c-common.c (do_warn_double_promotion): Define.
1406
1407 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
1408
1409         * c.opt (Wdouble-promotion): New.
1410
1411 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
1412
1413         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1414         fvtable-thunks, fxref): Mark no longer supported in help text.
1415
1416 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
1417
1418         * c.opt (Wimport, fall-virtual, falt-external-templates,
1419         fdefault-inline, fenum-int-equiv, fexternal-templates,
1420         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1421         fname-mangling-version-, fnew-abi, fnonnull-objects,
1422         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1423         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1424         applicable.
1425         (fhandle-exceptions): Mark with Alias and Warn.
1426         * c-opts.c (c_common_handle_option): Don't handle options marked
1427         as ignored.
1428
1429 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
1430
1431         * c.opt (Wcomments, Werror-implicit-function-declaration,
1432         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1433         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1434         aliases.
1435         * c-common.c (option_codes): Use OPT_Wcomment instead of
1436         OPT_Wcomments.
1437         * c-opts.c (warning_as_error_callback, c_common_handle_option):
1438         Don't handle options marked as aliases.
1439
1440 2010-08-25  Richard Guenther  <rguenther@suse.de>
1441
1442         * c-common.c (c_common_get_alias_set): Remove special
1443         handling for pointers.
1444
1445 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
1446
1447         * c-common.c: Use FOR_EACH_VEC_ELT.
1448         * c-gimplify.c: Likewise.
1449         * c-pragma.c: Likewise.
1450
1451 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
1452
1453         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
1454         RejectDriver.
1455         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
1456         RejectDriver.
1457         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1458         instead of OPT_MDX and OPT_MMDX.
1459
1460 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
1461
1462         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1463
1464 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
1465
1466         * c.opt (MD, MMD): Change to MDX and MMDX.
1467         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1468
1469 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
1470
1471         * c-opts.c (c_common_handle_option): Call handle_generated_option
1472         instead of handle_option.
1473
1474 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
1475
1476         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1477         (maybe_apply_renaming_pragma): Delete unneeded declarations.
1478
1479 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
1480
1481         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
1482         (pending_redefine_extname): Change type to a VEC.
1483         (add_to_renaming_pragma_list): Update for new type of
1484         pending_redefine_extname.
1485         (maybe_apply_renaming_pragma): Likewise.
1486
1487 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
1488
1489         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1490         visited.
1491         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1492         decide whether a type has already been declared/seen.
1493         Do not go to the original type.
1494         (dump_nested_types): New parameter forward.
1495         Generate forward declaration if needed and mark type as visited.
1496         (print_ada_declaration): Call dump_nested_types if not already done.
1497         Mark types as visited.
1498
1499 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
1500
1501         * c.opt (-print-pch-checksum): Remove option.
1502         * c-opts.c (c_common_handle_option): Don't handle
1503         OPT_print_pch_checksum.
1504
1505 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
1506
1507         * c-common.h (c_common_handle_option): Update prototype and return
1508         value type.
1509         * c-opts.c (c_common_handle_option): Update prototype and return
1510         value type.  Update calls to handle_option and
1511         enable_warning_as_error.
1512
1513 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
1514
1515         PR c/45079
1516         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1517
1518 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
1519
1520         * c-common.h (c_common_missing_argument): Remove.
1521         * c-opts.c (c_common_missing_argument): Remove.
1522         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1523         idirafter, imacros, include, isysroot, isystem, iquote): Add
1524         MissingArgError.
1525         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1526
1527 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
1528
1529         * c-common.h (c_common_option_lang_mask,
1530         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1531         New.
1532         (c_common_init_options): Update prototype.
1533         * c-opts.c (c_common_option_lang_mask): New.
1534         (c_common_initialize_diagnostics): Split out of
1535         c_common_init_options.
1536         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1537         New.
1538         (c_common_init_options): Update prototype.  Use decoded options in
1539         search for -lang-asm.
1540
1541 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
1542
1543         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1544         * c-format.c: Likewise.
1545
1546 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1547
1548         * c-common.h: Include diagnostic-core.h. Error if already
1549         included.
1550         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1551
1552 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1553
1554         * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1555         Do not include expr.h
1556         (vector_mode_valid_p): Move here.
1557
1558 2010-06-21  DJ Delorie  <dj@redhat.com>
1559
1560         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1561         allow these pragmas anywhere.
1562
1563 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
1564
1565         PR bootstrap/44509
1566         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1567         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1568         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1569         ggc_strdup instead of xstrdup.
1570
1571 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
1572
1573         * c-cppbuiltin.c: Include cpp-id-data.h.
1574         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1575         (lazy_hex_fp_value): New function.
1576         (builtin_define_with_hex_fp_value): Provide definitions lazily.
1577
1578 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1579
1580         * c-gimplify.c: Do not include tree-flow.h
1581
1582 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
1583
1584         PR other/44034
1585         * c-common.c: Rename targetm member:
1586         targetm.enum_va_list -> targetm.enum_va_list_p
1587
1588 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
1589
1590         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1591
1592 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
1593
1594         * c-cppbuiltin.c: Do not include except.h.
1595
1596 2010-06-24  Andi Kleen  <ak@linux.intel.com>
1597
1598         * c-common.c (warn_for_omitted_condop): New.
1599         * c-common.h (warn_for_omitted_condop): Add prototype.
1600
1601 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
1602
1603         * c.opt (lang-objc): Remove.
1604         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1605
1606 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
1607
1608         * c-opts.c: Include "tm_p.h".
1609
1610 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
1611
1612         * c-common.c (parse_optimize_options): Update call to
1613         decode_options.
1614
1615 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
1616
1617         * c-common.c (record_types_used_by_current_var_decl): Adjust for
1618         new type of types_used_by_cur_var_decl.
1619
1620 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
1621
1622         PR bootstrap/44512
1623         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1624         for C++ standard compliance.
1625
1626 2010-06-16  Jason Merrill  <jason@redhat.com>
1627
1628         * c.opt: Add -Wnoexcept.
1629
1630 2010-06-16  Richard Guenther  <rguenther@suse.de>
1631
1632         PR c/44555
1633         * c-common.c (c_common_truthvalue_conversion): Remove
1634         premature and wrong optimization concering ADDR_EXPRs.
1635
1636 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
1637
1638         * c-ada-spec.c (dump_sloc): Remove column info.
1639         (is_simple_enum): New function.
1640         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1641         enum types when relevant.
1642
1643 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1644
1645         * c-common.c (conversion_warning): Warn at expression
1646         location.
1647
1648 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
1649
1650         * c-opts.c (c_common_handle_option): Don't handle
1651         OPT_fshow_column.
1652
1653 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1654
1655         * c-pragma.c (push_alignment): Use typed GC allocation.
1656         (handle_pragma_push_options): Likewise.
1657
1658         * c-common.c (parse_optimize_options): Likewise.
1659
1660         * c-common.h (struct sorted_fields_type): Add variable_size GTY
1661         option.
1662
1663 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
1664
1665         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1666         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1667         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1668         flag_signed_bitfields, warn_strict_null_sentinel,
1669         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1670         flag_gen_declaration, flag_no_gnu_keywords,
1671         flag_implement_inlines, flag_implicit_templates,
1672         flag_implicit_inline_templates, flag_optional_diags,
1673         flag_elide_constructors, flag_default_inline, flag_rtti,
1674         flag_conserve_space, flag_access_control, flag_check_new,
1675         flag_new_for_scope, flag_weak, flag_working_directory,
1676         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1677         flag_enforce_eh_specs, flag_threadsafe_statics,
1678         flag_pretty_templates): Remove.
1679         * c-common.h (flag_preprocess_only, flag_nil_receivers,
1680         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1681         flag_replace_objc_classes, flag_undef, flag_no_builtin,
1682         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1683         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1684         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1685         flag_no_gnu_keywords, flag_implement_inlines,
1686         flag_implicit_templates, flag_implicit_inline_templates,
1687         flag_optional_diags, flag_elide_constructors, flag_default_inline,
1688         flag_rtti, flag_conserve_space, flag_access_control,
1689         flag_check_new, flag_new_for_scope, flag_weak,
1690         flag_working_directory, flag_use_cxa_atexit,
1691         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1692         flag_threadsafe_statics, flag_pretty_templates,
1693         warn_strict_null_sentinel): Remove.
1694         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1695         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1696         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1697         fimplicit-inline-templates, fimplicit-templates,
1698         flax-vector-conversions, fms-extensions, fnil-receivers,
1699         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1700         frtti, fshort-double, fshort-enums, fshort-wchar,
1701         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1702         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1703         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1704         gen-decls, undef): Use Var.
1705         (fdefault-inline, foptional-diags): Document as doing nothing.
1706         * c-opts.c (c_common_handle_option): Remove cases for options now
1707         using Var.  Mark ignored options as such.
1708
1709 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
1710
1711         * c-common.c: Moved to here from parent directory. 
1712         * c-common.def: Likewise.
1713         * c-common.h: Likewise.
1714         * c-cppbuiltin.c: Likewise.
1715         * c-dump.c: Likewise.
1716         * c-format.c: Likewise.
1717         * c-format.h : Likewise.
1718         * c-gimplify.c: Likewise.
1719         * c-lex.c: Likewise.
1720         * c-omp.c: Likewise.
1721         * c.opt: Likewise.
1722         * c-opts.c: Likewise.
1723         * c-pch.c: Likewise.
1724         * c-ppoutput.c: Likewise.
1725         * c-pragma.c: Likewise.
1726         * c-pragma.h: Likewise.
1727         * c-pretty-print.c: Likewise.
1728         * c-pretty-print.h: Likewise.
1729         * c-semantics.c: Likewise.
1730         * stub-objc.c: Likewise.
1731
1732         * c-common.c: Include gt-c-family-c-common.h.
1733         * c-pragma.c: Include gt-c-family-c-pragma.h.
1734 \f
1735 Copyright (C) 2010, 2011 Free Software Foundation, Inc.
1736
1737 Copying and distribution of this file, with or without modification,
1738 are permitted in any medium without royalty provided the copyright
1739 notice and this notice are preserved.