OSDN Git Service

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