OSDN Git Service

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