OSDN Git Service

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