1 2012-03-23 William Bader <williambader@hotmail.com>
4 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
6 2012-03-22 Release Manager
10 2012-02-13 Jakub Jelinek <jakub@redhat.com>
13 * c-common.c (sync_resolve_params): Don't decide whether to convert
14 or not based on TYPE_SIZE comparison, convert whenever arg_type
15 is unsigned INTEGER_TYPE.
17 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
20 * c.opt ([Wunused-local-typedefs]): Fix description.
22 2012-01-24 Mike Stump <mikestump@comcast.net>
24 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
27 2012-01-18 Richard Guenther <rguenther@suse.de>
29 * c-opts.c (c_common_post_options): Reset LTO flags if
30 we are about to generate a PCH.
32 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
35 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
36 use pp_unsigned_wide_integer.
38 2012-01-10 Richard Guenther <rguenther@suse.de>
41 * c-opts.c (c_common_handle_option): Move -Werror handling
42 to language independent code.
44 2012-01-05 Richard Guenther <rguenther@suse.de>
47 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
50 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
53 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
54 of array types with an unknown bound.
56 2011-12-20 Joseph Myers <joseph@codesourcery.com>
58 * c-common.c (flag_isoc99): Update comment to refer to C11.
59 (flag_isoc1x): Change to flag_isoc11.
60 * c-common.h (flag_isoc99): Update comment to refer to C11.
61 (flag_isoc1x): Change to flag_isoc11.
62 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
64 * c-opts.c (set_std_c1x): Change to set_std_c11.
65 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
67 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
68 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
69 * c.opt (std=c1x): Change to std=c11. Document as non-draft
71 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
72 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
73 (std=gnu1x): Make alias of std=gnu11.
75 2011-12-19 Jason Merrill <jason@redhat.com>
78 * c-common.c (handle_transparent_union_attribute): Check the first
79 field if the type is complete.
81 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
84 * c-common.c (RID_IS_FINAL): Add.
85 * c-common.h (RID_IS_FINAL): Add.
87 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
89 * c.opt (fgnu-runtime): Provide full description.
90 (fnext-runtime): Likewise.
91 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
93 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
95 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
96 predefines in one place. Add LOCK_FREE predefines.
97 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
100 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
103 * c-common.c (get_atomic_generic_size): Check for various error
105 (resolve_overloaded_atomic_exchange,
106 resolve_overloaded_atomic_compare_exchange,
107 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
108 error_mark_node for error conditions.
110 2011-11-08 Richard Guenther <rguenther@suse.de>
115 2011-11-07 Richard Henderson <rth@redhat.com>
116 Aldy Hernandez <aldyh@redhat.com>
117 Torvald Riegel <triegel@redhat.com>
119 Merged from transactional-memory.
121 * c-common.c (handle_tm_wrap_attribute,
122 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
123 (struct c_common_reswords): Added __transaction* keywords.
124 (struct c_common_attribute_table): Added transaction* and tm_regparm
126 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
128 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
129 find_tm_attribute): Declare.
131 2011-11-07 Jason Merrill <jason@redhat.com>
134 * c-common.c, c-common.h: Revert yesterday's changes.
136 2011-11-06 Jason Merrill <jason@redhat.com>
139 * c-common.c (decl_has_visibility_attr): Split out from...
140 (c_determine_visibility): ...here.
141 * c-common.h: Declare it.
143 2011-11-06 Joseph Myers <joseph@codesourcery.com>
145 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
146 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
148 (check_user_alignment): New. Split out of
149 handle_aligned_attribute. Disallow integer constants with
150 noninteger types. Conditionally allow zero.
151 (handle_aligned_attribute): Use check_user_alignment.
152 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
154 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
155 Richard Henderson <rth@redhat.com>
157 Merged from cxx-mem-model.
159 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
160 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
161 parameters that are the same type size.
162 (get_atomic_generic_size): New. Find size of generic
163 atomic function parameters and do typechecking.
164 (add_atomic_size_parameter): New. Insert size into parameter list.
165 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
166 either __atomic_exchange_n or external library call.
167 (resolve_overloaded_atomic_compare_exchange): Restructure
168 __atomic_compare_exchange to either _n variant or external library call.
169 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
170 __atomic_load_n or an external library call.
171 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
172 __atomic_store_n or an external library call.
173 (resolve_overloaded_builtin): Handle new __atomic builtins.
175 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
178 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
179 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
180 <INDIRECT_REF>: Return the argument.
181 <ARRAY_REF>: Remove special code for negative offset.
182 Call fold_build_pointer_plus instead of size_binop.
183 (fold_offsetof): Remove STOP_REF argument and adjust.
184 * c-common.h (fold_offsetof_1): Declare.
185 (fold_offsetof): Remove STOP_REF argument.
187 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
190 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
191 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
192 Wnarrowing for C++0x and C++98.
193 * c.opt ([Wnarrowing]): Update.
195 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
198 * c.opt: Add Wzero-as-null-pointer-constant.
200 2011-10-31 Jason Merrill <jason@redhat.com>
202 * c.opt (-fdeduce-init-list): Off by default.
205 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
206 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
208 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
210 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
213 * c.opt (fvisibility-inlines-hidden): Description change.
215 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
217 Implement C++11 user-defined literals.
218 * c-common.c (build_userdef_literal): New.
219 * c-common.def: New tree code.
220 * c-common.h (tree_userdef_literal): New tree struct and accessors.
221 * c-lex.c (interpret_float): Add suffix parm.
222 (c_lex_with_flags): Build literal tokens.
224 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
228 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
231 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
232 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
233 Wnarrowing for C++0x and C++98.
234 * c.opt ([Wnarrowing]): Update.
236 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
239 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
240 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
241 Wnarrowing for C++0x and C++98.
242 * c.opt ([Wnarrowing]): Update.
244 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
247 * c-common.c (conversion_warning): Remove code looking for
250 2011-10-18 Dodji Seketeli <dodji@redhat.com>
253 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
254 !NO_IMPLICIT_EXTERN_C.
256 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
258 * c-common.c (c_common_reswords): Add __bases,
260 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
262 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
265 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
267 2011-10-15 Tom Tromey <tromey@redhat.com>
268 Dodji Seketeli <dodji@redhat.com>
270 * c.opt (fdebug-cpp): New option.
271 * c-opts.c (c_common_handle_option): Handle the option.
272 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
273 output stream in parameter. Factorized from ...
274 (maybe_print_line): ... this. Dump location debug information when
275 -fdebug-cpp is in effect.
276 (print_line_1): New static function. Takes an output stream in
277 parameter. Factorized from ...
278 (print_line): ... here. Dump location information when -fdebug-cpp
280 (scan_translation_unit): Dump location information when
281 -fdebug-cpp is in effect.
283 2011-10-15 Tom Tromey <tromey@redhat.com>
284 Dodji Seketeli <dodji@redhat.com>
286 * c.opt (ftrack-macro-expansion): New option. Handle it with and
288 * c-opts.c (c_common_handle_option)<case
289 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
290 cases. Handle -ftrack-macro-expansion with and without argument.
292 2011-10-15 Tom Tromey <tromey@redhat.com>
293 Dodji Seketeli <dodji@redhat.com>
295 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
296 (print_line, cb_define, do_line_change): Adjust to avoid touching
297 the internals of struct line_map. Use the public API instead.
298 * c-pch.c (c_common_read_pch): Likewise.
299 * c-lex.c (fe_file_change): Likewise.
301 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
304 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
306 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
309 * c-pretty-print.c (pp_c_floating_constant): Output
310 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
312 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
314 * c-common.c (def_builtin_1): Delete old interface with two
315 parallel arrays to hold standard builtin declarations, and replace
316 it with a function based interface that can support creating
317 builtins on the fly in the future. Change all uses, and poison
318 the old names. Make sure 0 is not a legitimate builtin index.
319 * c-omp.c (c_finish_omp_barrier): Ditto.
320 (c_finish_omp_taskwait): Ditto.
321 (c_finish_omp_flush): Ditto.
323 2011-10-11 Tristan Gingold <gingold@adacore.com>
325 * c.opt: (fallow-parameterless-variadic-functions): New.
327 2011-09-08 Dodji Seketeli <dodji@redhat.com>
329 PR c++/33255 - Support -Wunused-local-typedefs warning
330 * c-common.h (struct c_language_function::local_typedefs): New
332 (record_locally_defined_typedef, maybe_record_typedef_use)
333 (maybe_warn_unused_local_typedefs): Declare new functions.
334 * c-common.c (record_locally_defined_typedef)
335 (maybe_record_typedef_use)
336 (maybe_warn_unused_local_typedefs): Define new functions.
337 * c.opt: Declare new -Wunused-local-typedefs flag.
339 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
342 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
345 2011-09-05 Richard Guenther <rguenther@suse.de>
347 * c-common.c (complete_array_type): Use ssize_int (-1) instead
348 of integer_minus_one_node for empty array upper bounds.
350 2011-08-28 Dodji Seketeli <dodji@redhat.com>
352 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
353 it's the first time it's being called on this main TU.
355 2011-08-24 Richard Guenther <rguenther@suse.de>
358 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
360 2011-08-22 Gabriel Charette <gchare@google.com>
362 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
363 defined in cpp_init_builtins and c_cpp_builtins.
365 2011-08-19 Joseph Myers <joseph@codesourcery.com>
367 * c-common.c (c_common_reswords): Add __builtin_complex.
368 * c-common.h (RID_BUILTIN_COMPLEX): New.
370 2011-08-18 Joseph Myers <joseph@codesourcery.com>
372 * c-common.c (c_common_reswords): Add _Noreturn.
373 (keyword_is_function_specifier): Handle RID_NORETURN.
374 * c-common.h (RID_NORETURN): New.
376 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
378 * c-common.c (unsafe_conversion_p): New function. Check if it is
379 unsafe to convert an expression to the type.
380 (conversion_warning): Adjust, use unsafe_conversion_p.
381 * c-common.h (unsafe_conversion_p): New function declaration.
383 2011-08-02 Jakub Jelinek <jakub@redhat.com>
385 * c-common.h (c_finish_omp_atomic): Adjust prototype.
386 (c_finish_omp_taskyield): New prototype.
387 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
388 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
389 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
390 or RHS1 have side-effects, evaluate those too in the right spot,
391 if it is a decl and LHS is also a decl, error out if they
393 (c_finish_omp_taskyield): New function.
394 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
395 * c-pragma.c (omp_pragmas): Add taskyield.
396 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
397 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
398 PRAGMA_OMP_CLAUSE_MERGEABLE.
400 2011-07-25 Dodji Seketeli <dodji@redhat.com>
402 * c-common.h (set_underlying_type): Remove parm name from
405 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
407 * c-pretty-print.h: Search c-common.h in c-family.
409 2011-07-22 Jason Merrill <jason@redhat.com>
412 * c.opt (Wnarrowing): New.
415 * c-common.h: Declare c_linkage_bindings.
416 * c-pragma.c (handle_pragma_redefine_extname): Use it.
419 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
420 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
421 as flag_isoc99 for 'restrict'.
422 (pp_c_specifier_qualifier_list): Likewise for _Complex.
424 2011-07-21 Ian Lance Taylor <iant@google.com>
427 * c-common.c (c_disable_warnings): New static function.
428 (c_enable_warnings): New static function.
429 (c_fully_fold_internal): Change local unused_p to bool. Call
430 c_disable_warnings and c_enable_warnings rather than change
431 c_inhibit_evaluation_warnings.
433 2011-07-20 Jason Merrill <jason@redhat.com>
436 PR c++/42603 (DR 950)
437 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
438 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
440 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
442 2011-07-19 Richard Guenther <rguenther@suse.de>
444 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
445 * c-omp.c (c_finish_omp_for): Likewise.
447 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
449 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
450 body on the next line.
452 2011-07-08 Jason Merrill <jason@redhat.com>
455 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
458 * c-common.c (c_apply_type_quals_to_decl): Don't check
459 TYPE_NEEDS_CONSTRUCTING.
461 2011-07-06 Richard Guenther <rguenther@suse.de>
463 * c-common.c (c_common_nodes_and_builtins):
464 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
466 2011-07-05 Richard Guenther <rguenther@suse.de>
468 * c-common.c (c_common_nodes_and_builtins): Build all common
471 2011-06-27 Jakub Jelinek <jakub@redhat.com>
473 * c-common.h (c_tree_chain_next): New static inline function.
475 * c-common.c (check_builtin_function_arguments): Handle
476 BUILT_IN_ASSUME_ALIGNED.
478 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
480 * c-common.c: Add sync_ or SYNC__ to builtin names.
481 * c-omp.c: Add sync_ or SYNC__ to builtin names.
483 2011-06-20 Pierre Vittet <piervit@pvittet.com>
485 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
487 (gen_pragma_handler): New union.
488 (internal_pragma_handler): New type.
489 (c_register_pragma_with_data)
490 (c_register_pragma_with_expansion_and_data): New functions.
492 * c-pragma.c (registered_pragmas, c_register_pragma_1)
493 (c_register_pragma, c_register_pragma_with_expansion)
494 (c_invoke_pragma_handler): Changed to work with
495 internal_pragma_handler.
496 (c_register_pragma_with_data)
497 (c_register_pragma_with_expansion_and_data): New functions.
499 2011-06-14 Joseph Myers <joseph@codesourcery.com>
501 * c-common.c: Include common/common-target.h.
502 (handle_section_attribute): Use
503 targetm_common.have_named_sections.
504 * c-cppbuiltin.c: Include common/common-target.h.
505 (c_cpp_builtins): Use targetm_common.except_unwind_info.
507 2011-06-10 Richard Guenther <rguenther@suse.de>
509 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
510 to print a IDENTIFIER_NODE.
512 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
513 Joseph Myers <joseph@codesourcery.com>
515 * c.opt (fbuilding-libgcc): New option.
516 * c-cppbuiltin.c (c_cpp_builtins): Define
517 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
519 2011-06-07 Jason Merrill <jason@redhat.com>
521 * c-common.c (max_tinst_depth): Lower default to 900.
523 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
525 2011-06-07 Richard Guenther <rguenther@suse.de>
527 * c-common.c (c_common_nodes_and_builtins): Do not set
528 size_type_node or call set_sizetype.
530 2011-06-07 Dodji Seketeli <dodji@redhat.com>
533 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
534 type when using pointer comparison to compare types.
536 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
538 * c.opt: Add -Wdelete-non-virtual-dtor.
539 * c-opts.c (c_common_handle_option): Include it in -Wall.
541 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
546 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
548 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
551 2011-05-27 Jakub Jelinek <jakub@redhat.com>
554 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
555 C++ don't call c_common_truthvalue_conversion on void type arms.
557 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
559 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
560 (stmt_list_stack): Define.
561 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
562 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
564 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
566 * c-common.c (warning_candidate_p): Check for BLOCKs.
568 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
570 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
573 2011-05-25 Jakub Jelinek <jakub@redhat.com>
575 * c-common.c (def_fn_type): Remove extra va_end.
577 2011-05-23 Jason Merrill <jason@redhat.com>
580 * c-common.c (c_common_get_narrower): New.
581 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
583 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
585 * c-common.h (check_function_arguments): Tweak prototype of
586 check_function_arguments.
587 * c-common.c (check_function_arguments): Likewise. Adjust
588 calls to check_function_nonnull, check_function_format, and
589 check_function_sentinel.
590 (check_function_sentinel): Take a FUNCTION_TYPE rather than
591 separate attributes and typelist arguments. Use
592 FOREACH_FUNCTION_ARGS to iterate over argument types.
594 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
596 * c-common.c (c_common_reswords): Reorder.
597 * c-common.h (rid): Likewise.
599 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
601 * c-common.c (def_fn_type): Don't call build_function_type, call
602 build_function_type_array or build_varargs_function_type_array
604 (c_common_nodes_and_builtins): Likewise.
606 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
608 * c-common.c (c_add_case_label): Omit the loc argument to
610 * c-common.h (build_case_label): Remove.
611 * c-semantics.c (build_case_label): Remove.
613 2011-05-05 Joseph Myers <joseph@codesourcery.com>
615 * c-objc.h (objc_start_method_definition): Update prototype.
616 * stub-objc.c (objc_start_method_definition): Add extra parameter.
618 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
620 * c-common.c (check_main_parameter_types): Reindent. Don't use
621 TYPE_ARG_TYPES directly.
622 (handle_nonnull_attribute): Likewise.
623 (sync_resolve_params): Likewise.
624 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
625 to check_format_string.
626 (handle_format_attribute): Likewise.
627 (check_format_string): Take a function type to examine instead of
628 a type list. Use a function_arg_iterator to step through argument
631 2011-05-04 Richard Guenther <rguenther@suse.de>
633 * c-common.c (fix_string_type): Use size_int for index type bounds.
634 (start_fname_decls): Do not pass NULL to build_int_cst.
635 (c_init_attributes): Likewise.
636 * c-lex.c (c_lex_with_flags): Likewise.
638 2011-04-27 Jason Merrill <jason@redhat.com>
640 * c-common.c (make_tree_vector_from_list): New.
641 * c-common.h: Declare it.
643 2011-04-26 Richard Guenther <rguenther@suse.de>
645 PR preprocessor/48248
646 * c-ppoutput.c (maybe_print_line): Always optimize newlines
647 for output size with -P.
649 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
651 * c-common.c (struct c_common_resword): Add __underlying_type.
652 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
654 2011-04-20 Jim Meyering <meyering@redhat.com>
656 * c-format.c (init_dollar_format_checking): Remove useless
659 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
661 * c-objc.h (objc_get_interface_ivars): Removed.
662 (objc_detect_field_duplicates): New.
663 * stub-objc.c: Likewise.
665 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
667 * stub-objc.c (objc_declare_protocols): Renamed to
668 objc_declare_protocol.
669 * c-objc.h: Likewise.
671 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
673 * stub-objc.c (objc_declare_class): Updated argument name.
675 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
677 * c-common.h (c_common_init_ts): Declare.
678 * c-common.c (c_common_init_ts): Define.
680 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
682 * c-objc.h (objc_build_message_expr): Updated prototype.
683 * stub-objc.c (objc_build_message_expr): Likewise.
685 2011-04-12 Martin Jambor <mjambor@suse.cz>
687 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
690 2011-04-11 Richard Guenther <rguenther@suse.de>
692 * c-common.c (complete_array_type): Build a range type of
695 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
697 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
698 (handle_type_generic_attribute): Likewise.
700 2011-04-07 Jason Merrill <jason@redhat.com>
703 * c-common.c (c_common_truthvalue_conversion): Don't ignore
704 conversion from C++0x scoped enum.
706 2011-04-06 Joseph Myers <joseph@codesourcery.com>
708 * c-target-def.h: New file.
709 * c-target.def: New file.
710 * c-target.h: New file.
711 * c-common.c (targetcm): Don't define here.
712 * c-common.h (default_handle_c_option): Declare.
713 * c-format.c: Include c-target.h instead of target.h.
714 * c-opts.c: Include c-target.h instead of target.h. Explicitly
716 (default_handle_c_option): Move from targhooks.c.
718 2011-03-29 Jakub Jelinek <jakub@redhat.com>
720 PR preprocessor/48248
721 * c-ppoutput.c (print): Add src_file field.
722 (init_pp_output): Initialize it.
723 (maybe_print_line): Don't optimize by adding up to 8 newlines
724 if map->to_file and print.src_file are different file.
725 (print_line): Update print.src_file.
727 2011-03-25 Kai Tietz <ktietz@redhat.com>
729 * c-ada-spec.c (compare_comment): Use filename_cmp
730 instead of strcmp for filename.
732 2011-03-25 Jeff Law <law@redhat.com>
734 * c-family/c-common.c (def_fn_type): Add missing va_end.
736 2011-03-25 Jason Merrill <jason@redhat.com>
738 * c.opt: Add -std=c++03.
740 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
742 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
747 * c-pretty-print.c (pp_c_specifier_qualifier_list):
748 Display allowed attributes for function pointer types.
749 (pp_c_attributes_display): New function to display
750 attributes having affects_type_identity flag set to true.
751 * c-pretty-print.h (pp_c_attributes_display): New prototype.
753 * c-common.c (c_common_attribute_table):
755 (c_common_format_attribute_table): Likewise.
757 2011-03-18 Jason Merrill <jason@redhat.com>
759 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
760 * c-common.h: Don't declare it here.
761 * c-common.c: Or define it here.
762 * c-opts.c (c_common_handle_option): Or set it here.
765 * c-common.c (handle_transparent_union_attribute): Don't
766 make a duplicate type in C++.
768 2011-03-15 Jason Merrill <jason@redhat.com>
770 * c-common.c (max_constexpr_depth): New.
771 * c-common.h: Declare it.
772 * c-opts.c (c_common_handle_option): Set it.
773 * c.opt (fconstexpr-depth): New option.
775 2011-03-11 Jason Merrill <jason@redhat.com>
777 * c-common.c (attribute_takes_identifier_p): Add missing const.
780 * c-common.c (attribute_takes_identifier_p): Assume that an
781 unknown attribute takes an identifier.
783 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
786 * c-common.c (c_type_hash): Call list_length instead of iterating
787 through DECL_CHAIN. Rename 'i' to 'n_elements'.
789 2011-02-19 Jakub Jelinek <jakub@redhat.com>
792 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
794 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
796 * c.opt (fobjc-abi-version=) New.
797 (fobjc-nilcheck): New.
799 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
802 * c-common.h (keyword_is_decl_specifier): Declare.
803 * c-common.c (keyword_is_decl_specifier): Define.
804 (keyword_is_function_specifier): New function.
806 2011-01-26 Jakub Jelinek <jakub@redhat.com>
809 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
810 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
813 2011-01-26 Arnaud Charlet <charlet@adacore.com>
815 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
817 2011-01-26 Jakub Jelinek <jakub@redhat.com>
820 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
821 after init_c_lex if pch_file is set.
823 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
826 * c.opt (-fkeep-inline-dllexport): New switch.
828 2011-01-12 Richard Guenther <rguenther@suse.de>
831 * c-common.c (handle_weak_attribute): Warn instead of error
832 on declaring an inline function weak.
834 2011-01-05 Tom Tromey <tromey@redhat.com>
836 * c-common.h (lvalue_error): Update.
837 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
840 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
843 * c-objc.h (objc_finish_message_expr): Added argument to
846 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
848 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
851 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
853 * c-objc.h (objc_maybe_warn_exceptions): New.
854 * stub-objc.c (objc_maybe_warn_exceptions): New.
856 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
858 * c-common.h (readonly_error): Declare.
859 * c-common.c (readonly_error): Define.
861 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
863 * c-common.h (invalid_indirection_error): Declare.
864 * c-common.c (invalid_indirection_error): Define.
866 2010-12-03 Richard Guenther <rguenther@suse.de>
869 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
870 (pp_c_unary_expression): Likewise.
871 (pp_c_expression): Likewise.
873 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
875 * c-common.h (objc_finish_function): New.
876 (objc_non_volatilized_type): Removed.
877 (objc_type_quals_match): Removed.
878 * stub-objc.c (objc_finish_function): New.
879 (objc_non_volatilized_type): Removed.
880 (objc_type_quals_match): Removed.
882 2010-11-30 Joseph Myers <joseph@codesourcery.com>
884 * c-common.h (parse_optimize_options): Declare.
885 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
886 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
888 2010-11-29 Joseph Myers <joseph@codesourcery.com>
890 * c-opts.c (check_deps_environment_vars): Use getenv instead of
892 * c-pch.c (O_BINARY): Don't define here.
893 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
895 2010-11-25 Joseph Myers <joseph@codesourcery.com>
897 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
898 targetm.except_unwind_info.
900 2010-11-23 Joseph Myers <joseph@codesourcery.com>
902 * c-opts.c (c_common_handle_option): Pass location to
903 set_struct_debug_option.
905 2010-11-23 Joseph Myers <joseph@codesourcery.com>
907 * c-common.c (visibility_options): Move from ../opts.c.
908 * c-common.h (struct visibility_flags, visibility_options):
910 * c-opts.c (finish_options): Rename to c_finish_options.
911 (c_common_init): Update call to finish_options.
913 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
916 * c-lex.c (lex_string): Check that each string in an Objective-C
917 string concat sequence starts with either one or zero '@', and
918 that there are no spurious '@' signs at the end.
920 2010-11-20 Joseph Myers <joseph@codesourcery.com>
922 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
923 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
924 HANDLE_PRAGMA_VISIBILITY.
925 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
926 HANDLE_PRAGMA_VISIBILITY): Don't define.
927 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
929 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
934 * c-common.h (keyword_begins_type_specifier): Declare.
935 (keyword_is_storage_class_specifier): Declare.
936 (keyword_is_type_qualifier): Declare.
937 * c-common.c (keyword_begins_type_specifier): New function.
938 (keyword_is_storage_class_specifier): New function.
939 (keyword_is_type_qualifier): Declare.
941 2010-11-19 Joseph Myers <joseph@codesourcery.com>
944 * c-common.c (in_late_binary_op): Define.
945 (c_common_truthvalue_conversion): Check in_late_binary_op before
947 * c-common.h (in_late_binary_op): Declare.
949 2010-11-19 Joseph Myers <joseph@codesourcery.com>
951 * c-opts.c (c_common_handle_option): Update calls to
952 set_struct_debug_option.
954 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
956 * c-common.h (objc_declare_protocols): Added additional argument.
957 * stub-objc.c (objc_declare_protocol): Same change.
959 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
962 * c-common.h (build_real_imag_expr): Declare.
963 * c-semantics.c (build_real_imag_expr): Define.
965 2010-11-17 Joseph Myers <joseph@codesourcery.com>
967 * c-opts.c (c_common_parse_file): Take no arguments.
968 * c-common.h (c_common_parse_file): Update prototype.
970 2010-11-16 Jakub Jelinek <jakub@redhat.com>
973 * c-common.c (warning_candidate_p): Don't track non-const calls
976 2010-11-15 Ian Lance Taylor <iant@google.com>
978 * c-lex.c (init_c_lex): Set macro debug callbacks if
979 flag_dump_go_spec is set.
981 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
983 * c-common.h (objc_build_incr_expr_for_property_ref): New.
984 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
986 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
988 PR preprocessor/45038
989 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
992 2010-11-12 Joseph Myers <joseph@codesourcery.com>
994 * c-common.h (c_family_lang_mask): Declare.
995 * c-opts.c (c_family_lang_mask): Make extern.
996 * c-pragma.c (handle_pragma_diagnostic): Use
997 control_warning_option.
999 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1001 * c-common.c (parse_optimize_options): Update call to
1003 * c-common.h (c_common_handle_option): Update prototype.
1004 * c-opts.c (c_common_handle_option): Take location_t parameter and
1005 pass it to other functions.
1007 2010-11-11 Joseph Myers <joseph@codesourcery.com>
1009 * c-opts.c (warning_as_error_callback): Remove.
1010 (c_common_initialize_diagnostics): Don't call
1011 register_warning_as_error_callback.
1012 (c_common_handle_option): Handle -Werror=normalized= here.
1014 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1016 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1018 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1020 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1021 Remove trailing '.' from diagnostics.
1022 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1024 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1026 * c-common.c (parse_optimize_options): Pass global_dc to
1028 * c-opts.c (c_common_handle_option): Pass &global_options to
1029 set_Wstrict_aliasing.
1030 * c.opt (v): Don't mark Common or document here.
1032 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1035 * c-format.c (format_type): New type gcc_objc_string_format_type.
1036 (valid_stringptr_type_p): New.
1037 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1038 (check_format_string): Pass expected type, use
1039 valid_stringptr_type_p (), check that the format string types are
1040 consistent with the format specification.
1041 (decode_format_attr): Warn if NSString is used outside objective-c.
1042 (format_types_orig): Add NSString.
1044 (format_flags): New.
1045 (check_format_arg): Handle format strings requiring an external parser.
1046 first_target_format_type: New variable.
1047 (handle_format_attribute): Set up first_target_format_type, pass the
1048 expected format arg string type to check_format_string().
1049 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1050 * stub-objc.c (objc_string_ref_type_p): New.
1051 (objc_check_format_arg): New.
1053 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1055 Fixed using the Objective-C 2.0 dot-syntax with class names.
1056 * c-common.h (objc_build_class_component_ref): New.
1057 * stub-objc.c (objc_build_class_component_ref): New.
1059 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1061 * c.opt (Wproperty-assign-default): New option.
1063 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1065 Implemented -fobjc-std=objc1 flag.
1066 * c.opt (fobjc-std=objc1): New option.
1068 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1070 Implemented format and noreturn attributes for Objective-C methods.
1071 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1072 attribute for Objective-C methods.
1074 2010-10-31 Jason Merrill <jason@redhat.com>
1076 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1079 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1081 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1082 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1083 (objc_add_property_declaration): Removed arguments for copies and
1085 (objc_build_getter_call): Renamed to
1086 objc_maybe_build_component_ref.
1087 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1088 (objc_is_property_ref): New.
1089 * c-common.c (c_common_reswords): Removed copies and ivar.
1090 * stub-objc.c (objc_add_property_declaration): Removed arguments
1091 for copies and ivar.
1092 (objc_build_getter_call): Renamed to
1093 objc_maybe_build_component_ref.
1094 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1095 (objc_is_property_ref): New.
1097 2010-10-29 Arnaud Charlet <charlet@adacore.com>
1098 Matthew Gingell <gingell@adacore.com>
1100 * c-ada-spec.c (separate_class_package): New function.
1101 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1102 name of their enclosing package.
1103 (print_ada_declaration): Use separate_class_package.
1105 2010-10-27 Jason Merrill <jason@redhat.com>
1107 * c-common.c (c_common_reswords): Add __is_literal_type.
1108 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1110 * c-common.c (check_case_value): Remove special C++ code.
1112 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1114 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1115 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1117 (objc_add_property_declaration): Added additional arguments.
1118 (objc_property_attribute_kind): Removed.
1119 (objc_set_property_attr): Removed.
1120 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1122 * stub-objc.c (objc_add_property_declaration): Added additional
1124 (objc_set_property_attr): Removed.
1126 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1128 * c-common.h (objc_add_property_variable): Renamed to
1129 objc_add_property_declaration. Added location argument.
1130 * stub-objc.c (objc_add_property_variable): Same change.
1132 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1134 * c-common.h (objc_maybe_printable_name): New.
1135 * stub-objc.c (objc_maybe_printable_name): New.
1137 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1138 Andrew Pinski <pinskia@gmail.com>
1140 * c-common.h (c_common_mark_addressable_vec): Declare.
1141 * c-common.c (c_common_mark_addressable_vec): New function.
1143 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1145 * c-common.h (objc_set_method_type): Removed.
1146 (objc_add_method_declaration): Added boolean argument.
1147 (objc_start_method_definition): Same change.
1148 (objc_build_method_signature): Same change.
1149 * stub-objc.c (objc_set_method_type): Removed.
1150 (objc_add_method_declaration): Added boolean argument.
1151 (objc_start_method_definition): Same change.
1152 (objc_build_method_signature): Same change.
1154 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1156 * c-common.h (finish_file): Removed.
1157 (objc_write_global_declarations): New.
1158 * c-opts.c (c_common_parse_file): Do not call finish_file.
1159 * stub-objc.c (objc_write_global_declarations): New.
1161 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1163 Implemented parsing @synthesize and @dynamic for
1164 Objective-C/Objective-C++.
1165 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1166 (objc_add_synthesize_declaration): New.
1167 (objc_add_dynamic_declaration): New.
1168 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1169 * stub-objc.c (objc_add_synthesize_declaration): New.
1170 (objc_add_dynamic_declaration): New.
1172 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1175 * c-cppbuiltin.c (mode_has_fma): Move function here from
1176 builtins.c. Don't use the fma optab, instead just use the
1177 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1180 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1182 Merge from 'apple/trunk' branch on FSF servers.
1184 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1187 * c-common.h (objc_non_volatilized_type): New declaration
1188 * stub-objc.c (objc_non_volatilized_type): New stub.
1190 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1192 Merge from 'apple/trunk' branch on FSF servers.
1194 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1197 * c-common.h (objc_diagnose_private_ivar): New decl.
1198 * stub-objc.c (objc_diagnose_private_ivar): New stub.
1200 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1202 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1203 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1204 (objc_ivar_visibility_kind): New enum.
1205 (objc_set_visibility): Adjust prototype to use visibility enum.
1206 * stub-objc.c (objc_set_visibility): Adjust stub to use
1209 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1211 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1212 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1213 has the appropriate fma builtins.
1214 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1216 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1218 merge from FSF apple 'trunk' branch.
1219 2006 Fariborz Jahanian <fjahanian@apple.com>
1221 Radars 4436866, 4505126, 4506903, 4517826
1222 * c-common.c (c_common_resword): Define @property and its attributes.
1223 * c-common.h: Define property attribute enum entries.
1224 (OBJC_IS_PATTR_KEYWORD): New.
1225 (objc_property_attribute_kind): New enum.
1226 Declare objc_set_property_attr (), objc_add_property_variable (),
1227 objc_build_getter_call () and objc_build_setter_call ().
1228 * stub-objc.c (objc_set_property_attr): New stub.
1229 (objc_add_property_variable): Likewise.
1230 (objc_build_getter_call): Likewise.
1231 (objc_build_setter_call) Likewise.
1233 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1235 merge from FSF apple 'trunk' branch.
1236 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1238 Radar 3803157 (method attributes)
1239 * c-common.c (handle_deprecated_attribute): Recognize
1240 objc methods as valid declarations.
1241 * c-common.h: Declare objc_method_decl ().
1242 * stub-objc.c (objc_method_decl): New stub.
1244 2010-10-08 Joseph Myers <joseph@codesourcery.com>
1246 * c-common.c (parse_optimize_options): Call
1247 decode_cmdline_options_to_array_default_mask before
1248 decode_options. Update arguments to decode_options.
1249 * c-common.h (c_common_init_options_struct): Declare.
1250 * c-opts.c (c_common_init_options_struct): New. Split out from
1251 c_common_init_options.
1253 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1255 Implemented fast enumeration for Objective-C.
1256 * c-common.h (objc_finish_foreach_loop): New.
1257 * stub-objc.c (objc_finish_foreach_loop): New.
1259 2010-10-05 Joseph Myers <joseph@codesourcery.com>
1261 * c-common.h (struct diagnostic_context): Don't declare here.
1262 (c_common_initialize_diagnostics): Declare using
1263 diagnostic_context typedef.
1264 * c-opts.c (c_common_handle_option): Pass global_dc to
1265 handle_generated_option.
1267 2010-10-04 Joseph Myers <joseph@codesourcery.com>
1269 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1270 handle_generated_option.
1272 2010-10-03 Ian Lance Taylor <iant@google.com>
1274 * c.opt (-fplan9-extensions): New option.
1276 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1278 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1280 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1281 of duplicating code.
1283 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1285 * c-common.c: Add two new entries for @optional
1286 and @required keywords.
1288 merge from FSF 'apple/trunk' branch.
1289 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1292 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1293 objective-c keywords.
1294 (objc_set_method_opt): New declaration.
1295 * stub-objc.c (objc_set_method_opt): New stub.
1297 2010-09-30 Joseph Myers <joseph@codesourcery.com>
1299 * c-common.c (handle_optimize_attribute): Pass &global_options to
1300 cl_optimization_save and cl_optimization_restore.
1301 * c-opts.c (c_common_handle_option): Pass &global_options to
1302 handle_generated_option.
1303 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1304 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1305 &global_options to cl_optimization_restore.
1307 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1309 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1310 Objective-C/Objective-C++ keywords.
1312 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1314 Merge from 'apple/trunk' branch on FSF servers.
1316 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1319 * c-common.h (objc_check_global_decl): New declaration.
1320 * stub-objc.c (objc_check_global_decl): New stub.
1322 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1324 * c.opt: Don't use VarExists.
1326 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1328 * c-common.c (c_cpp_error): Update names of diagnostic_context
1330 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1331 cl_optimization members.
1332 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1333 sanitize_cpp_opts, finish_options): Update names of cpp_options
1336 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1338 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1339 (objc_is_reserved_word): Removed.
1340 * c-common.c: Updated comments.
1341 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1342 objc_is_reserved_word.
1343 * stub-objc.c (objc_is_reserved_word): Removed.
1345 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1347 * c-common.h (objc_add_method_declaration): Adjust prototype to
1349 (objc_start_method_definition): Likewise.
1350 (objc_build_keyword_decl): Likewise.
1351 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1352 (objc_start_method_definition): Likewise.
1353 (objc_build_keyword_decl): Likewise.
1355 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1357 * c-common.h (objc_start_class_interface): Adjust prototype.
1358 (objc_start_category_interface): Likewise.
1359 (objc_start_protocol): Likewise.
1360 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1361 (objc_start_class_interface): Likewise.
1362 (objc_start_category_interface): Likewise.
1364 2010-09-27 Ian Lance Taylor <iant@google.com>
1366 * c-common.c (c_common_attribute_table): Add no_split_stack.
1367 (handle_no_split_stack_attribute): New static function.
1369 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1371 Merge from 'apple/trunk' branch on FSF servers.
1373 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1376 * c-common.h (objc_have_common_type): New declaration.
1377 * stub-objc.c (objc_have_common_type): New stub.
1379 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1382 * c-common.h (objc_common_type): New prototype.
1383 * stub-objc.c (objc_common_type): New stub.
1385 2010-09-24 Jan Hubicka <jh@suse.cz>
1387 * c-common.c (handle_leaf_attribute): New function.
1388 (struct attribute_spec c_common_att): Add leaf.
1390 2010-09-22 Joseph Myers <joseph@codesourcery.com>
1392 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1393 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1394 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1395 -include-barrier, -include-directory, -include-directory=,
1396 -include-directory-after, -include-directory-after=,
1397 -include-prefix, -include-prefix=, -include-with-prefix,
1398 -include-with-prefix=, -include-with-prefix-after,
1399 -include-with-prefix-after=, -include-with-prefix-before,
1400 -include-with-prefix-before=, -no-integrated-cpp,
1401 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1402 -output=, -pedantic, -pedantic-errors, -preprocess,
1403 -print-missing-file-dependencies, -trace-includes, -traditional,
1404 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1405 -user-dependencies, -verbose, -write-dependencies,
1406 -write-user-dependencies, no-integrated-cpp, traditional): New.
1408 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1411 * c-common.h (objc_start_method_definition): Return bool instead
1413 * stub-objc.c (objc_start_method_definition): Return bool instead
1416 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1419 * c-common.h (objc_get_interface_ivars): New declaration.
1420 * stub-objc.c (objc_get_interface_ivars): New stub.
1422 2010-09-15 Ian Lance Taylor <iant@google.com>
1424 * c-common.c (parse_optimize_options): Do not capitalize warning
1425 messages. Remove period at end of warning message.
1427 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1429 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1430 (handle_alias_attribute): ... here.
1431 (handle_ifunc_attribute): New.
1433 2010-09-06 Mark Mitchell <mark@codesourcery.com>
1435 * c-common.h (do_warn_double_promotion): Declare.
1436 * c-common.c (do_warn_double_promotion): Define.
1438 2010-09-05 Mark Mitchell <mark@codesourcery.com>
1440 * c.opt (Wdouble-promotion): New.
1442 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1444 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1445 fvtable-thunks, fxref): Mark no longer supported in help text.
1447 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1449 * c.opt (Wimport, fall-virtual, falt-external-templates,
1450 fdefault-inline, fenum-int-equiv, fexternal-templates,
1451 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1452 fname-mangling-version-, fnew-abi, fnonnull-objects,
1453 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1454 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1456 (fhandle-exceptions): Mark with Alias and Warn.
1457 * c-opts.c (c_common_handle_option): Don't handle options marked
1460 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1462 * c.opt (Wcomments, Werror-implicit-function-declaration,
1463 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1464 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1466 * c-common.c (option_codes): Use OPT_Wcomment instead of
1468 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1469 Don't handle options marked as aliases.
1471 2010-08-25 Richard Guenther <rguenther@suse.de>
1473 * c-common.c (c_common_get_alias_set): Remove special
1474 handling for pointers.
1476 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1478 * c-common.c: Use FOR_EACH_VEC_ELT.
1479 * c-gimplify.c: Likewise.
1480 * c-pragma.c: Likewise.
1482 2010-08-16 Joseph Myers <joseph@codesourcery.com>
1484 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1486 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1488 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1489 instead of OPT_MDX and OPT_MMDX.
1491 2010-08-16 Joseph Myers <joseph@codesourcery.com>
1493 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1495 2010-08-12 Joseph Myers <joseph@codesourcery.com>
1497 * c.opt (MD, MMD): Change to MDX and MMDX.
1498 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1500 2010-08-11 Joseph Myers <joseph@codesourcery.com>
1502 * c-opts.c (c_common_handle_option): Call handle_generated_option
1503 instead of handle_option.
1505 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1507 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1508 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1510 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1512 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1513 (pending_redefine_extname): Change type to a VEC.
1514 (add_to_renaming_pragma_list): Update for new type of
1515 pending_redefine_extname.
1516 (maybe_apply_renaming_pragma): Likewise.
1518 2010-08-04 Arnaud Charlet <charlet@adacore.com>
1520 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1522 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1523 decide whether a type has already been declared/seen.
1524 Do not go to the original type.
1525 (dump_nested_types): New parameter forward.
1526 Generate forward declaration if needed and mark type as visited.
1527 (print_ada_declaration): Call dump_nested_types if not already done.
1528 Mark types as visited.
1530 2010-08-03 Joseph Myers <joseph@codesourcery.com>
1532 * c.opt (-print-pch-checksum): Remove option.
1533 * c-opts.c (c_common_handle_option): Don't handle
1534 OPT_print_pch_checksum.
1536 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1538 * c-common.h (c_common_handle_option): Update prototype and return
1540 * c-opts.c (c_common_handle_option): Update prototype and return
1541 value type. Update calls to handle_option and
1542 enable_warning_as_error.
1544 2010-07-27 Jakub Jelinek <jakub@redhat.com>
1547 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1549 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1551 * c-common.h (c_common_missing_argument): Remove.
1552 * c-opts.c (c_common_missing_argument): Remove.
1553 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1554 idirafter, imacros, include, isysroot, isystem, iquote): Add
1556 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1558 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1560 * c-common.h (c_common_option_lang_mask,
1561 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1563 (c_common_init_options): Update prototype.
1564 * c-opts.c (c_common_option_lang_mask): New.
1565 (c_common_initialize_diagnostics): Split out of
1566 c_common_init_options.
1567 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1569 (c_common_init_options): Update prototype. Use decoded options in
1570 search for -lang-asm.
1572 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1574 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1575 * c-format.c: Likewise.
1577 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1579 * c-common.h: Include diagnostic-core.h. Error if already
1581 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1583 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1585 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1586 Do not include expr.h
1587 (vector_mode_valid_p): Move here.
1589 2010-06-21 DJ Delorie <dj@redhat.com>
1591 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1592 allow these pragmas anywhere.
1594 2010-06-14 Jakub Jelinek <jakub@redhat.com>
1597 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1598 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1599 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1600 ggc_strdup instead of xstrdup.
1602 2010-06-10 Jakub Jelinek <jakub@redhat.com>
1604 * c-cppbuiltin.c: Include cpp-id-data.h.
1605 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1606 (lazy_hex_fp_value): New function.
1607 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1609 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1611 * c-gimplify.c: Do not include tree-flow.h
1613 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1616 * c-common.c: Rename targetm member:
1617 targetm.enum_va_list -> targetm.enum_va_list_p
1619 2010-06-28 Anatoly Sokolov <aesok@post.ru>
1621 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1623 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1625 * c-cppbuiltin.c: Do not include except.h.
1627 2010-06-24 Andi Kleen <ak@linux.intel.com>
1629 * c-common.c (warn_for_omitted_condop): New.
1630 * c-common.h (warn_for_omitted_condop): Add prototype.
1632 2010-06-21 Joseph Myers <joseph@codesourcery.com>
1634 * c.opt (lang-objc): Remove.
1635 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1637 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1639 * c-opts.c: Include "tm_p.h".
1641 2010-06-20 Joseph Myers <joseph@codesourcery.com>
1643 * c-common.c (parse_optimize_options): Update call to
1646 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1648 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1649 new type of types_used_by_cur_var_decl.
1651 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1654 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1655 for C++ standard compliance.
1657 2010-06-16 Jason Merrill <jason@redhat.com>
1659 * c.opt: Add -Wnoexcept.
1661 2010-06-16 Richard Guenther <rguenther@suse.de>
1664 * c-common.c (c_common_truthvalue_conversion): Remove
1665 premature and wrong optimization concering ADDR_EXPRs.
1667 2010-06-15 Arnaud Charlet <charlet@adacore.com>
1669 * c-ada-spec.c (dump_sloc): Remove column info.
1670 (is_simple_enum): New function.
1671 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1672 enum types when relevant.
1674 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1676 * c-common.c (conversion_warning): Warn at expression
1679 2010-06-10 Joseph Myers <joseph@codesourcery.com>
1681 * c-opts.c (c_common_handle_option): Don't handle
1684 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1686 * c-pragma.c (push_alignment): Use typed GC allocation.
1687 (handle_pragma_push_options): Likewise.
1689 * c-common.c (parse_optimize_options): Likewise.
1691 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1694 2010-06-07 Joseph Myers <joseph@codesourcery.com>
1696 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1697 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1698 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1699 flag_signed_bitfields, warn_strict_null_sentinel,
1700 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1701 flag_gen_declaration, flag_no_gnu_keywords,
1702 flag_implement_inlines, flag_implicit_templates,
1703 flag_implicit_inline_templates, flag_optional_diags,
1704 flag_elide_constructors, flag_default_inline, flag_rtti,
1705 flag_conserve_space, flag_access_control, flag_check_new,
1706 flag_new_for_scope, flag_weak, flag_working_directory,
1707 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1708 flag_enforce_eh_specs, flag_threadsafe_statics,
1709 flag_pretty_templates): Remove.
1710 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1711 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1712 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1713 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1714 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1715 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1716 flag_no_gnu_keywords, flag_implement_inlines,
1717 flag_implicit_templates, flag_implicit_inline_templates,
1718 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1719 flag_rtti, flag_conserve_space, flag_access_control,
1720 flag_check_new, flag_new_for_scope, flag_weak,
1721 flag_working_directory, flag_use_cxa_atexit,
1722 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1723 flag_threadsafe_statics, flag_pretty_templates,
1724 warn_strict_null_sentinel): Remove.
1725 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1726 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1727 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1728 fimplicit-inline-templates, fimplicit-templates,
1729 flax-vector-conversions, fms-extensions, fnil-receivers,
1730 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1731 frtti, fshort-double, fshort-enums, fshort-wchar,
1732 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1733 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1734 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1735 gen-decls, undef): Use Var.
1736 (fdefault-inline, foptional-diags): Document as doing nothing.
1737 * c-opts.c (c_common_handle_option): Remove cases for options now
1738 using Var. Mark ignored options as such.
1740 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1742 * c-common.c: Moved to here from parent directory.
1743 * c-common.def: Likewise.
1744 * c-common.h: Likewise.
1745 * c-cppbuiltin.c: Likewise.
1746 * c-dump.c: Likewise.
1747 * c-format.c: Likewise.
1748 * c-format.h : Likewise.
1749 * c-gimplify.c: Likewise.
1750 * c-lex.c: Likewise.
1751 * c-omp.c: Likewise.
1753 * c-opts.c: Likewise.
1754 * c-pch.c: Likewise.
1755 * c-ppoutput.c: Likewise.
1756 * c-pragma.c: Likewise.
1757 * c-pragma.h: Likewise.
1758 * c-pretty-print.c: Likewise.
1759 * c-pretty-print.h: Likewise.
1760 * c-semantics.c: Likewise.
1761 * stub-objc.c: Likewise.
1763 * c-common.c: Include gt-c-family-c-common.h.
1764 * c-pragma.c: Include gt-c-family-c-pragma.h.
1766 Copyright (C) 2010, 2011 Free Software Foundation, Inc.
1768 Copying and distribution of this file, with or without modification,
1769 are permitted in any medium without royalty provided the copyright
1770 notice and this notice are preserved.