1 2012-06-27 Kai Tietz <ktietz@redhat.com>
5 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
7 2012-06-14 Release Manager
11 2012-03-23 William Bader <williambader@hotmail.com>
14 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
16 2012-03-22 Release Manager
20 2012-02-13 Jakub Jelinek <jakub@redhat.com>
23 * c-common.c (sync_resolve_params): Don't decide whether to convert
24 or not based on TYPE_SIZE comparison, convert whenever arg_type
25 is unsigned INTEGER_TYPE.
27 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
30 * c.opt ([Wunused-local-typedefs]): Fix description.
32 2012-01-24 Mike Stump <mikestump@comcast.net>
34 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
37 2012-01-18 Richard Guenther <rguenther@suse.de>
39 * c-opts.c (c_common_post_options): Reset LTO flags if
40 we are about to generate a PCH.
42 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
45 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
46 use pp_unsigned_wide_integer.
48 2012-01-10 Richard Guenther <rguenther@suse.de>
51 * c-opts.c (c_common_handle_option): Move -Werror handling
52 to language independent code.
54 2012-01-05 Richard Guenther <rguenther@suse.de>
57 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
60 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
63 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
64 of array types with an unknown bound.
66 2011-12-20 Joseph Myers <joseph@codesourcery.com>
68 * c-common.c (flag_isoc99): Update comment to refer to C11.
69 (flag_isoc1x): Change to flag_isoc11.
70 * c-common.h (flag_isoc99): Update comment to refer to C11.
71 (flag_isoc1x): Change to flag_isoc11.
72 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
74 * c-opts.c (set_std_c1x): Change to set_std_c11.
75 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
77 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
78 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
79 * c.opt (std=c1x): Change to std=c11. Document as non-draft
81 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
82 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
83 (std=gnu1x): Make alias of std=gnu11.
85 2011-12-19 Jason Merrill <jason@redhat.com>
88 * c-common.c (handle_transparent_union_attribute): Check the first
89 field if the type is complete.
91 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
94 * c-common.c (RID_IS_FINAL): Add.
95 * c-common.h (RID_IS_FINAL): Add.
97 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
99 * c.opt (fgnu-runtime): Provide full description.
100 (fnext-runtime): Likewise.
101 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
103 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
105 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
106 predefines in one place. Add LOCK_FREE predefines.
107 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
110 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
113 * c-common.c (get_atomic_generic_size): Check for various error
115 (resolve_overloaded_atomic_exchange,
116 resolve_overloaded_atomic_compare_exchange,
117 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
118 error_mark_node for error conditions.
120 2011-11-08 Richard Guenther <rguenther@suse.de>
125 2011-11-07 Richard Henderson <rth@redhat.com>
126 Aldy Hernandez <aldyh@redhat.com>
127 Torvald Riegel <triegel@redhat.com>
129 Merged from transactional-memory.
131 * c-common.c (handle_tm_wrap_attribute,
132 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
133 (struct c_common_reswords): Added __transaction* keywords.
134 (struct c_common_attribute_table): Added transaction* and tm_regparm
136 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
138 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
139 find_tm_attribute): Declare.
141 2011-11-07 Jason Merrill <jason@redhat.com>
144 * c-common.c, c-common.h: Revert yesterday's changes.
146 2011-11-06 Jason Merrill <jason@redhat.com>
149 * c-common.c (decl_has_visibility_attr): Split out from...
150 (c_determine_visibility): ...here.
151 * c-common.h: Declare it.
153 2011-11-06 Joseph Myers <joseph@codesourcery.com>
155 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
156 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
158 (check_user_alignment): New. Split out of
159 handle_aligned_attribute. Disallow integer constants with
160 noninteger types. Conditionally allow zero.
161 (handle_aligned_attribute): Use check_user_alignment.
162 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
164 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
165 Richard Henderson <rth@redhat.com>
167 Merged from cxx-mem-model.
169 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
170 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
171 parameters that are the same type size.
172 (get_atomic_generic_size): New. Find size of generic
173 atomic function parameters and do typechecking.
174 (add_atomic_size_parameter): New. Insert size into parameter list.
175 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
176 either __atomic_exchange_n or external library call.
177 (resolve_overloaded_atomic_compare_exchange): Restructure
178 __atomic_compare_exchange to either _n variant or external library call.
179 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
180 __atomic_load_n or an external library call.
181 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
182 __atomic_store_n or an external library call.
183 (resolve_overloaded_builtin): Handle new __atomic builtins.
185 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
188 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
189 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
190 <INDIRECT_REF>: Return the argument.
191 <ARRAY_REF>: Remove special code for negative offset.
192 Call fold_build_pointer_plus instead of size_binop.
193 (fold_offsetof): Remove STOP_REF argument and adjust.
194 * c-common.h (fold_offsetof_1): Declare.
195 (fold_offsetof): Remove STOP_REF argument.
197 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
200 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
201 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
202 Wnarrowing for C++0x and C++98.
203 * c.opt ([Wnarrowing]): Update.
205 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
208 * c.opt: Add Wzero-as-null-pointer-constant.
210 2011-10-31 Jason Merrill <jason@redhat.com>
212 * c.opt (-fdeduce-init-list): Off by default.
215 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
216 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
218 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
220 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
223 * c.opt (fvisibility-inlines-hidden): Description change.
225 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
227 Implement C++11 user-defined literals.
228 * c-common.c (build_userdef_literal): New.
229 * c-common.def: New tree code.
230 * c-common.h (tree_userdef_literal): New tree struct and accessors.
231 * c-lex.c (interpret_float): Add suffix parm.
232 (c_lex_with_flags): Build literal tokens.
234 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
238 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
241 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
242 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
243 Wnarrowing for C++0x and C++98.
244 * c.opt ([Wnarrowing]): Update.
246 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
249 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
250 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
251 Wnarrowing for C++0x and C++98.
252 * c.opt ([Wnarrowing]): Update.
254 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
257 * c-common.c (conversion_warning): Remove code looking for
260 2011-10-18 Dodji Seketeli <dodji@redhat.com>
263 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
264 !NO_IMPLICIT_EXTERN_C.
266 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
268 * c-common.c (c_common_reswords): Add __bases,
270 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
272 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
275 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
277 2011-10-15 Tom Tromey <tromey@redhat.com>
278 Dodji Seketeli <dodji@redhat.com>
280 * c.opt (fdebug-cpp): New option.
281 * c-opts.c (c_common_handle_option): Handle the option.
282 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
283 output stream in parameter. Factorized from ...
284 (maybe_print_line): ... this. Dump location debug information when
285 -fdebug-cpp is in effect.
286 (print_line_1): New static function. Takes an output stream in
287 parameter. Factorized from ...
288 (print_line): ... here. Dump location information when -fdebug-cpp
290 (scan_translation_unit): Dump location information when
291 -fdebug-cpp is in effect.
293 2011-10-15 Tom Tromey <tromey@redhat.com>
294 Dodji Seketeli <dodji@redhat.com>
296 * c.opt (ftrack-macro-expansion): New option. Handle it with and
298 * c-opts.c (c_common_handle_option)<case
299 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
300 cases. Handle -ftrack-macro-expansion with and without argument.
302 2011-10-15 Tom Tromey <tromey@redhat.com>
303 Dodji Seketeli <dodji@redhat.com>
305 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
306 (print_line, cb_define, do_line_change): Adjust to avoid touching
307 the internals of struct line_map. Use the public API instead.
308 * c-pch.c (c_common_read_pch): Likewise.
309 * c-lex.c (fe_file_change): Likewise.
311 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
314 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
316 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
319 * c-pretty-print.c (pp_c_floating_constant): Output
320 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
322 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
324 * c-common.c (def_builtin_1): Delete old interface with two
325 parallel arrays to hold standard builtin declarations, and replace
326 it with a function based interface that can support creating
327 builtins on the fly in the future. Change all uses, and poison
328 the old names. Make sure 0 is not a legitimate builtin index.
329 * c-omp.c (c_finish_omp_barrier): Ditto.
330 (c_finish_omp_taskwait): Ditto.
331 (c_finish_omp_flush): Ditto.
333 2011-10-11 Tristan Gingold <gingold@adacore.com>
335 * c.opt: (fallow-parameterless-variadic-functions): New.
337 2011-09-08 Dodji Seketeli <dodji@redhat.com>
339 PR c++/33255 - Support -Wunused-local-typedefs warning
340 * c-common.h (struct c_language_function::local_typedefs): New
342 (record_locally_defined_typedef, maybe_record_typedef_use)
343 (maybe_warn_unused_local_typedefs): Declare new functions.
344 * c-common.c (record_locally_defined_typedef)
345 (maybe_record_typedef_use)
346 (maybe_warn_unused_local_typedefs): Define new functions.
347 * c.opt: Declare new -Wunused-local-typedefs flag.
349 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
352 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
355 2011-09-05 Richard Guenther <rguenther@suse.de>
357 * c-common.c (complete_array_type): Use ssize_int (-1) instead
358 of integer_minus_one_node for empty array upper bounds.
360 2011-08-28 Dodji Seketeli <dodji@redhat.com>
362 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
363 it's the first time it's being called on this main TU.
365 2011-08-24 Richard Guenther <rguenther@suse.de>
368 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
370 2011-08-22 Gabriel Charette <gchare@google.com>
372 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
373 defined in cpp_init_builtins and c_cpp_builtins.
375 2011-08-19 Joseph Myers <joseph@codesourcery.com>
377 * c-common.c (c_common_reswords): Add __builtin_complex.
378 * c-common.h (RID_BUILTIN_COMPLEX): New.
380 2011-08-18 Joseph Myers <joseph@codesourcery.com>
382 * c-common.c (c_common_reswords): Add _Noreturn.
383 (keyword_is_function_specifier): Handle RID_NORETURN.
384 * c-common.h (RID_NORETURN): New.
386 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
388 * c-common.c (unsafe_conversion_p): New function. Check if it is
389 unsafe to convert an expression to the type.
390 (conversion_warning): Adjust, use unsafe_conversion_p.
391 * c-common.h (unsafe_conversion_p): New function declaration.
393 2011-08-02 Jakub Jelinek <jakub@redhat.com>
395 * c-common.h (c_finish_omp_atomic): Adjust prototype.
396 (c_finish_omp_taskyield): New prototype.
397 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
398 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
399 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
400 or RHS1 have side-effects, evaluate those too in the right spot,
401 if it is a decl and LHS is also a decl, error out if they
403 (c_finish_omp_taskyield): New function.
404 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
405 * c-pragma.c (omp_pragmas): Add taskyield.
406 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
407 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
408 PRAGMA_OMP_CLAUSE_MERGEABLE.
410 2011-07-25 Dodji Seketeli <dodji@redhat.com>
412 * c-common.h (set_underlying_type): Remove parm name from
415 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
417 * c-pretty-print.h: Search c-common.h in c-family.
419 2011-07-22 Jason Merrill <jason@redhat.com>
422 * c.opt (Wnarrowing): New.
425 * c-common.h: Declare c_linkage_bindings.
426 * c-pragma.c (handle_pragma_redefine_extname): Use it.
429 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
430 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
431 as flag_isoc99 for 'restrict'.
432 (pp_c_specifier_qualifier_list): Likewise for _Complex.
434 2011-07-21 Ian Lance Taylor <iant@google.com>
437 * c-common.c (c_disable_warnings): New static function.
438 (c_enable_warnings): New static function.
439 (c_fully_fold_internal): Change local unused_p to bool. Call
440 c_disable_warnings and c_enable_warnings rather than change
441 c_inhibit_evaluation_warnings.
443 2011-07-20 Jason Merrill <jason@redhat.com>
446 PR c++/42603 (DR 950)
447 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
448 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
450 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
452 2011-07-19 Richard Guenther <rguenther@suse.de>
454 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
455 * c-omp.c (c_finish_omp_for): Likewise.
457 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
459 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
460 body on the next line.
462 2011-07-08 Jason Merrill <jason@redhat.com>
465 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
468 * c-common.c (c_apply_type_quals_to_decl): Don't check
469 TYPE_NEEDS_CONSTRUCTING.
471 2011-07-06 Richard Guenther <rguenther@suse.de>
473 * c-common.c (c_common_nodes_and_builtins):
474 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
476 2011-07-05 Richard Guenther <rguenther@suse.de>
478 * c-common.c (c_common_nodes_and_builtins): Build all common
481 2011-06-27 Jakub Jelinek <jakub@redhat.com>
483 * c-common.h (c_tree_chain_next): New static inline function.
485 * c-common.c (check_builtin_function_arguments): Handle
486 BUILT_IN_ASSUME_ALIGNED.
488 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
490 * c-common.c: Add sync_ or SYNC__ to builtin names.
491 * c-omp.c: Add sync_ or SYNC__ to builtin names.
493 2011-06-20 Pierre Vittet <piervit@pvittet.com>
495 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
497 (gen_pragma_handler): New union.
498 (internal_pragma_handler): New type.
499 (c_register_pragma_with_data)
500 (c_register_pragma_with_expansion_and_data): New functions.
502 * c-pragma.c (registered_pragmas, c_register_pragma_1)
503 (c_register_pragma, c_register_pragma_with_expansion)
504 (c_invoke_pragma_handler): Changed to work with
505 internal_pragma_handler.
506 (c_register_pragma_with_data)
507 (c_register_pragma_with_expansion_and_data): New functions.
509 2011-06-14 Joseph Myers <joseph@codesourcery.com>
511 * c-common.c: Include common/common-target.h.
512 (handle_section_attribute): Use
513 targetm_common.have_named_sections.
514 * c-cppbuiltin.c: Include common/common-target.h.
515 (c_cpp_builtins): Use targetm_common.except_unwind_info.
517 2011-06-10 Richard Guenther <rguenther@suse.de>
519 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
520 to print a IDENTIFIER_NODE.
522 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
523 Joseph Myers <joseph@codesourcery.com>
525 * c.opt (fbuilding-libgcc): New option.
526 * c-cppbuiltin.c (c_cpp_builtins): Define
527 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
529 2011-06-07 Jason Merrill <jason@redhat.com>
531 * c-common.c (max_tinst_depth): Lower default to 900.
533 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
535 2011-06-07 Richard Guenther <rguenther@suse.de>
537 * c-common.c (c_common_nodes_and_builtins): Do not set
538 size_type_node or call set_sizetype.
540 2011-06-07 Dodji Seketeli <dodji@redhat.com>
543 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
544 type when using pointer comparison to compare types.
546 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
548 * c.opt: Add -Wdelete-non-virtual-dtor.
549 * c-opts.c (c_common_handle_option): Include it in -Wall.
551 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
556 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
558 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
561 2011-05-27 Jakub Jelinek <jakub@redhat.com>
564 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
565 C++ don't call c_common_truthvalue_conversion on void type arms.
567 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
569 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
570 (stmt_list_stack): Define.
571 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
572 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
574 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
576 * c-common.c (warning_candidate_p): Check for BLOCKs.
578 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
580 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
583 2011-05-25 Jakub Jelinek <jakub@redhat.com>
585 * c-common.c (def_fn_type): Remove extra va_end.
587 2011-05-23 Jason Merrill <jason@redhat.com>
590 * c-common.c (c_common_get_narrower): New.
591 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
593 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
595 * c-common.h (check_function_arguments): Tweak prototype of
596 check_function_arguments.
597 * c-common.c (check_function_arguments): Likewise. Adjust
598 calls to check_function_nonnull, check_function_format, and
599 check_function_sentinel.
600 (check_function_sentinel): Take a FUNCTION_TYPE rather than
601 separate attributes and typelist arguments. Use
602 FOREACH_FUNCTION_ARGS to iterate over argument types.
604 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
606 * c-common.c (c_common_reswords): Reorder.
607 * c-common.h (rid): Likewise.
609 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
611 * c-common.c (def_fn_type): Don't call build_function_type, call
612 build_function_type_array or build_varargs_function_type_array
614 (c_common_nodes_and_builtins): Likewise.
616 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
618 * c-common.c (c_add_case_label): Omit the loc argument to
620 * c-common.h (build_case_label): Remove.
621 * c-semantics.c (build_case_label): Remove.
623 2011-05-05 Joseph Myers <joseph@codesourcery.com>
625 * c-objc.h (objc_start_method_definition): Update prototype.
626 * stub-objc.c (objc_start_method_definition): Add extra parameter.
628 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
630 * c-common.c (check_main_parameter_types): Reindent. Don't use
631 TYPE_ARG_TYPES directly.
632 (handle_nonnull_attribute): Likewise.
633 (sync_resolve_params): Likewise.
634 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
635 to check_format_string.
636 (handle_format_attribute): Likewise.
637 (check_format_string): Take a function type to examine instead of
638 a type list. Use a function_arg_iterator to step through argument
641 2011-05-04 Richard Guenther <rguenther@suse.de>
643 * c-common.c (fix_string_type): Use size_int for index type bounds.
644 (start_fname_decls): Do not pass NULL to build_int_cst.
645 (c_init_attributes): Likewise.
646 * c-lex.c (c_lex_with_flags): Likewise.
648 2011-04-27 Jason Merrill <jason@redhat.com>
650 * c-common.c (make_tree_vector_from_list): New.
651 * c-common.h: Declare it.
653 2011-04-26 Richard Guenther <rguenther@suse.de>
655 PR preprocessor/48248
656 * c-ppoutput.c (maybe_print_line): Always optimize newlines
657 for output size with -P.
659 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
661 * c-common.c (struct c_common_resword): Add __underlying_type.
662 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
664 2011-04-20 Jim Meyering <meyering@redhat.com>
666 * c-format.c (init_dollar_format_checking): Remove useless
669 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
671 * c-objc.h (objc_get_interface_ivars): Removed.
672 (objc_detect_field_duplicates): New.
673 * stub-objc.c: Likewise.
675 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
677 * stub-objc.c (objc_declare_protocols): Renamed to
678 objc_declare_protocol.
679 * c-objc.h: Likewise.
681 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
683 * stub-objc.c (objc_declare_class): Updated argument name.
685 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
687 * c-common.h (c_common_init_ts): Declare.
688 * c-common.c (c_common_init_ts): Define.
690 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
692 * c-objc.h (objc_build_message_expr): Updated prototype.
693 * stub-objc.c (objc_build_message_expr): Likewise.
695 2011-04-12 Martin Jambor <mjambor@suse.cz>
697 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
700 2011-04-11 Richard Guenther <rguenther@suse.de>
702 * c-common.c (complete_array_type): Build a range type of
705 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
707 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
708 (handle_type_generic_attribute): Likewise.
710 2011-04-07 Jason Merrill <jason@redhat.com>
713 * c-common.c (c_common_truthvalue_conversion): Don't ignore
714 conversion from C++0x scoped enum.
716 2011-04-06 Joseph Myers <joseph@codesourcery.com>
718 * c-target-def.h: New file.
719 * c-target.def: New file.
720 * c-target.h: New file.
721 * c-common.c (targetcm): Don't define here.
722 * c-common.h (default_handle_c_option): Declare.
723 * c-format.c: Include c-target.h instead of target.h.
724 * c-opts.c: Include c-target.h instead of target.h. Explicitly
726 (default_handle_c_option): Move from targhooks.c.
728 2011-03-29 Jakub Jelinek <jakub@redhat.com>
730 PR preprocessor/48248
731 * c-ppoutput.c (print): Add src_file field.
732 (init_pp_output): Initialize it.
733 (maybe_print_line): Don't optimize by adding up to 8 newlines
734 if map->to_file and print.src_file are different file.
735 (print_line): Update print.src_file.
737 2011-03-25 Kai Tietz <ktietz@redhat.com>
739 * c-ada-spec.c (compare_comment): Use filename_cmp
740 instead of strcmp for filename.
742 2011-03-25 Jeff Law <law@redhat.com>
744 * c-family/c-common.c (def_fn_type): Add missing va_end.
746 2011-03-25 Jason Merrill <jason@redhat.com>
748 * c.opt: Add -std=c++03.
750 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
752 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
757 * c-pretty-print.c (pp_c_specifier_qualifier_list):
758 Display allowed attributes for function pointer types.
759 (pp_c_attributes_display): New function to display
760 attributes having affects_type_identity flag set to true.
761 * c-pretty-print.h (pp_c_attributes_display): New prototype.
763 * c-common.c (c_common_attribute_table):
765 (c_common_format_attribute_table): Likewise.
767 2011-03-18 Jason Merrill <jason@redhat.com>
769 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
770 * c-common.h: Don't declare it here.
771 * c-common.c: Or define it here.
772 * c-opts.c (c_common_handle_option): Or set it here.
775 * c-common.c (handle_transparent_union_attribute): Don't
776 make a duplicate type in C++.
778 2011-03-15 Jason Merrill <jason@redhat.com>
780 * c-common.c (max_constexpr_depth): New.
781 * c-common.h: Declare it.
782 * c-opts.c (c_common_handle_option): Set it.
783 * c.opt (fconstexpr-depth): New option.
785 2011-03-11 Jason Merrill <jason@redhat.com>
787 * c-common.c (attribute_takes_identifier_p): Add missing const.
790 * c-common.c (attribute_takes_identifier_p): Assume that an
791 unknown attribute takes an identifier.
793 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
796 * c-common.c (c_type_hash): Call list_length instead of iterating
797 through DECL_CHAIN. Rename 'i' to 'n_elements'.
799 2011-02-19 Jakub Jelinek <jakub@redhat.com>
802 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
804 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
806 * c.opt (fobjc-abi-version=) New.
807 (fobjc-nilcheck): New.
809 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
812 * c-common.h (keyword_is_decl_specifier): Declare.
813 * c-common.c (keyword_is_decl_specifier): Define.
814 (keyword_is_function_specifier): New function.
816 2011-01-26 Jakub Jelinek <jakub@redhat.com>
819 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
820 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
823 2011-01-26 Arnaud Charlet <charlet@adacore.com>
825 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
827 2011-01-26 Jakub Jelinek <jakub@redhat.com>
830 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
831 after init_c_lex if pch_file is set.
833 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
836 * c.opt (-fkeep-inline-dllexport): New switch.
838 2011-01-12 Richard Guenther <rguenther@suse.de>
841 * c-common.c (handle_weak_attribute): Warn instead of error
842 on declaring an inline function weak.
844 2011-01-05 Tom Tromey <tromey@redhat.com>
846 * c-common.h (lvalue_error): Update.
847 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
850 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
853 * c-objc.h (objc_finish_message_expr): Added argument to
856 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
858 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
861 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
863 * c-objc.h (objc_maybe_warn_exceptions): New.
864 * stub-objc.c (objc_maybe_warn_exceptions): New.
866 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
868 * c-common.h (readonly_error): Declare.
869 * c-common.c (readonly_error): Define.
871 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
873 * c-common.h (invalid_indirection_error): Declare.
874 * c-common.c (invalid_indirection_error): Define.
876 2010-12-03 Richard Guenther <rguenther@suse.de>
879 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
880 (pp_c_unary_expression): Likewise.
881 (pp_c_expression): Likewise.
883 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
885 * c-common.h (objc_finish_function): New.
886 (objc_non_volatilized_type): Removed.
887 (objc_type_quals_match): Removed.
888 * stub-objc.c (objc_finish_function): New.
889 (objc_non_volatilized_type): Removed.
890 (objc_type_quals_match): Removed.
892 2010-11-30 Joseph Myers <joseph@codesourcery.com>
894 * c-common.h (parse_optimize_options): Declare.
895 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
896 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
898 2010-11-29 Joseph Myers <joseph@codesourcery.com>
900 * c-opts.c (check_deps_environment_vars): Use getenv instead of
902 * c-pch.c (O_BINARY): Don't define here.
903 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
905 2010-11-25 Joseph Myers <joseph@codesourcery.com>
907 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
908 targetm.except_unwind_info.
910 2010-11-23 Joseph Myers <joseph@codesourcery.com>
912 * c-opts.c (c_common_handle_option): Pass location to
913 set_struct_debug_option.
915 2010-11-23 Joseph Myers <joseph@codesourcery.com>
917 * c-common.c (visibility_options): Move from ../opts.c.
918 * c-common.h (struct visibility_flags, visibility_options):
920 * c-opts.c (finish_options): Rename to c_finish_options.
921 (c_common_init): Update call to finish_options.
923 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
926 * c-lex.c (lex_string): Check that each string in an Objective-C
927 string concat sequence starts with either one or zero '@', and
928 that there are no spurious '@' signs at the end.
930 2010-11-20 Joseph Myers <joseph@codesourcery.com>
932 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
933 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
934 HANDLE_PRAGMA_VISIBILITY.
935 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
936 HANDLE_PRAGMA_VISIBILITY): Don't define.
937 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
939 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
944 * c-common.h (keyword_begins_type_specifier): Declare.
945 (keyword_is_storage_class_specifier): Declare.
946 (keyword_is_type_qualifier): Declare.
947 * c-common.c (keyword_begins_type_specifier): New function.
948 (keyword_is_storage_class_specifier): New function.
949 (keyword_is_type_qualifier): Declare.
951 2010-11-19 Joseph Myers <joseph@codesourcery.com>
954 * c-common.c (in_late_binary_op): Define.
955 (c_common_truthvalue_conversion): Check in_late_binary_op before
957 * c-common.h (in_late_binary_op): Declare.
959 2010-11-19 Joseph Myers <joseph@codesourcery.com>
961 * c-opts.c (c_common_handle_option): Update calls to
962 set_struct_debug_option.
964 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
966 * c-common.h (objc_declare_protocols): Added additional argument.
967 * stub-objc.c (objc_declare_protocol): Same change.
969 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
972 * c-common.h (build_real_imag_expr): Declare.
973 * c-semantics.c (build_real_imag_expr): Define.
975 2010-11-17 Joseph Myers <joseph@codesourcery.com>
977 * c-opts.c (c_common_parse_file): Take no arguments.
978 * c-common.h (c_common_parse_file): Update prototype.
980 2010-11-16 Jakub Jelinek <jakub@redhat.com>
983 * c-common.c (warning_candidate_p): Don't track non-const calls
986 2010-11-15 Ian Lance Taylor <iant@google.com>
988 * c-lex.c (init_c_lex): Set macro debug callbacks if
989 flag_dump_go_spec is set.
991 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
993 * c-common.h (objc_build_incr_expr_for_property_ref): New.
994 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
996 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
998 PR preprocessor/45038
999 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1002 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1004 * c-common.h (c_family_lang_mask): Declare.
1005 * c-opts.c (c_family_lang_mask): Make extern.
1006 * c-pragma.c (handle_pragma_diagnostic): Use
1007 control_warning_option.
1009 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1011 * c-common.c (parse_optimize_options): Update call to
1013 * c-common.h (c_common_handle_option): Update prototype.
1014 * c-opts.c (c_common_handle_option): Take location_t parameter and
1015 pass it to other functions.
1017 2010-11-11 Joseph Myers <joseph@codesourcery.com>
1019 * c-opts.c (warning_as_error_callback): Remove.
1020 (c_common_initialize_diagnostics): Don't call
1021 register_warning_as_error_callback.
1022 (c_common_handle_option): Handle -Werror=normalized= here.
1024 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1026 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1028 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1030 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1031 Remove trailing '.' from diagnostics.
1032 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1034 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1036 * c-common.c (parse_optimize_options): Pass global_dc to
1038 * c-opts.c (c_common_handle_option): Pass &global_options to
1039 set_Wstrict_aliasing.
1040 * c.opt (v): Don't mark Common or document here.
1042 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1045 * c-format.c (format_type): New type gcc_objc_string_format_type.
1046 (valid_stringptr_type_p): New.
1047 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1048 (check_format_string): Pass expected type, use
1049 valid_stringptr_type_p (), check that the format string types are
1050 consistent with the format specification.
1051 (decode_format_attr): Warn if NSString is used outside objective-c.
1052 (format_types_orig): Add NSString.
1054 (format_flags): New.
1055 (check_format_arg): Handle format strings requiring an external parser.
1056 first_target_format_type: New variable.
1057 (handle_format_attribute): Set up first_target_format_type, pass the
1058 expected format arg string type to check_format_string().
1059 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1060 * stub-objc.c (objc_string_ref_type_p): New.
1061 (objc_check_format_arg): New.
1063 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1065 Fixed using the Objective-C 2.0 dot-syntax with class names.
1066 * c-common.h (objc_build_class_component_ref): New.
1067 * stub-objc.c (objc_build_class_component_ref): New.
1069 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1071 * c.opt (Wproperty-assign-default): New option.
1073 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1075 Implemented -fobjc-std=objc1 flag.
1076 * c.opt (fobjc-std=objc1): New option.
1078 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1080 Implemented format and noreturn attributes for Objective-C methods.
1081 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1082 attribute for Objective-C methods.
1084 2010-10-31 Jason Merrill <jason@redhat.com>
1086 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1089 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1091 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1092 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1093 (objc_add_property_declaration): Removed arguments for copies and
1095 (objc_build_getter_call): Renamed to
1096 objc_maybe_build_component_ref.
1097 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1098 (objc_is_property_ref): New.
1099 * c-common.c (c_common_reswords): Removed copies and ivar.
1100 * stub-objc.c (objc_add_property_declaration): Removed arguments
1101 for copies and ivar.
1102 (objc_build_getter_call): Renamed to
1103 objc_maybe_build_component_ref.
1104 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1105 (objc_is_property_ref): New.
1107 2010-10-29 Arnaud Charlet <charlet@adacore.com>
1108 Matthew Gingell <gingell@adacore.com>
1110 * c-ada-spec.c (separate_class_package): New function.
1111 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1112 name of their enclosing package.
1113 (print_ada_declaration): Use separate_class_package.
1115 2010-10-27 Jason Merrill <jason@redhat.com>
1117 * c-common.c (c_common_reswords): Add __is_literal_type.
1118 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1120 * c-common.c (check_case_value): Remove special C++ code.
1122 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1124 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1125 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1127 (objc_add_property_declaration): Added additional arguments.
1128 (objc_property_attribute_kind): Removed.
1129 (objc_set_property_attr): Removed.
1130 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1132 * stub-objc.c (objc_add_property_declaration): Added additional
1134 (objc_set_property_attr): Removed.
1136 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1138 * c-common.h (objc_add_property_variable): Renamed to
1139 objc_add_property_declaration. Added location argument.
1140 * stub-objc.c (objc_add_property_variable): Same change.
1142 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1144 * c-common.h (objc_maybe_printable_name): New.
1145 * stub-objc.c (objc_maybe_printable_name): New.
1147 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1148 Andrew Pinski <pinskia@gmail.com>
1150 * c-common.h (c_common_mark_addressable_vec): Declare.
1151 * c-common.c (c_common_mark_addressable_vec): New function.
1153 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1155 * c-common.h (objc_set_method_type): Removed.
1156 (objc_add_method_declaration): Added boolean argument.
1157 (objc_start_method_definition): Same change.
1158 (objc_build_method_signature): Same change.
1159 * stub-objc.c (objc_set_method_type): Removed.
1160 (objc_add_method_declaration): Added boolean argument.
1161 (objc_start_method_definition): Same change.
1162 (objc_build_method_signature): Same change.
1164 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1166 * c-common.h (finish_file): Removed.
1167 (objc_write_global_declarations): New.
1168 * c-opts.c (c_common_parse_file): Do not call finish_file.
1169 * stub-objc.c (objc_write_global_declarations): New.
1171 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1173 Implemented parsing @synthesize and @dynamic for
1174 Objective-C/Objective-C++.
1175 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1176 (objc_add_synthesize_declaration): New.
1177 (objc_add_dynamic_declaration): New.
1178 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1179 * stub-objc.c (objc_add_synthesize_declaration): New.
1180 (objc_add_dynamic_declaration): New.
1182 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1185 * c-cppbuiltin.c (mode_has_fma): Move function here from
1186 builtins.c. Don't use the fma optab, instead just use the
1187 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1190 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1192 Merge from 'apple/trunk' branch on FSF servers.
1194 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1197 * c-common.h (objc_non_volatilized_type): New declaration
1198 * stub-objc.c (objc_non_volatilized_type): New stub.
1200 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1202 Merge from 'apple/trunk' branch on FSF servers.
1204 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1207 * c-common.h (objc_diagnose_private_ivar): New decl.
1208 * stub-objc.c (objc_diagnose_private_ivar): New stub.
1210 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1212 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1213 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1214 (objc_ivar_visibility_kind): New enum.
1215 (objc_set_visibility): Adjust prototype to use visibility enum.
1216 * stub-objc.c (objc_set_visibility): Adjust stub to use
1219 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1221 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1222 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1223 has the appropriate fma builtins.
1224 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1226 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1228 merge from FSF apple 'trunk' branch.
1229 2006 Fariborz Jahanian <fjahanian@apple.com>
1231 Radars 4436866, 4505126, 4506903, 4517826
1232 * c-common.c (c_common_resword): Define @property and its attributes.
1233 * c-common.h: Define property attribute enum entries.
1234 (OBJC_IS_PATTR_KEYWORD): New.
1235 (objc_property_attribute_kind): New enum.
1236 Declare objc_set_property_attr (), objc_add_property_variable (),
1237 objc_build_getter_call () and objc_build_setter_call ().
1238 * stub-objc.c (objc_set_property_attr): New stub.
1239 (objc_add_property_variable): Likewise.
1240 (objc_build_getter_call): Likewise.
1241 (objc_build_setter_call) Likewise.
1243 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1245 merge from FSF apple 'trunk' branch.
1246 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1248 Radar 3803157 (method attributes)
1249 * c-common.c (handle_deprecated_attribute): Recognize
1250 objc methods as valid declarations.
1251 * c-common.h: Declare objc_method_decl ().
1252 * stub-objc.c (objc_method_decl): New stub.
1254 2010-10-08 Joseph Myers <joseph@codesourcery.com>
1256 * c-common.c (parse_optimize_options): Call
1257 decode_cmdline_options_to_array_default_mask before
1258 decode_options. Update arguments to decode_options.
1259 * c-common.h (c_common_init_options_struct): Declare.
1260 * c-opts.c (c_common_init_options_struct): New. Split out from
1261 c_common_init_options.
1263 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1265 Implemented fast enumeration for Objective-C.
1266 * c-common.h (objc_finish_foreach_loop): New.
1267 * stub-objc.c (objc_finish_foreach_loop): New.
1269 2010-10-05 Joseph Myers <joseph@codesourcery.com>
1271 * c-common.h (struct diagnostic_context): Don't declare here.
1272 (c_common_initialize_diagnostics): Declare using
1273 diagnostic_context typedef.
1274 * c-opts.c (c_common_handle_option): Pass global_dc to
1275 handle_generated_option.
1277 2010-10-04 Joseph Myers <joseph@codesourcery.com>
1279 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1280 handle_generated_option.
1282 2010-10-03 Ian Lance Taylor <iant@google.com>
1284 * c.opt (-fplan9-extensions): New option.
1286 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1288 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1290 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1291 of duplicating code.
1293 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1295 * c-common.c: Add two new entries for @optional
1296 and @required keywords.
1298 merge from FSF 'apple/trunk' branch.
1299 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1302 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1303 objective-c keywords.
1304 (objc_set_method_opt): New declaration.
1305 * stub-objc.c (objc_set_method_opt): New stub.
1307 2010-09-30 Joseph Myers <joseph@codesourcery.com>
1309 * c-common.c (handle_optimize_attribute): Pass &global_options to
1310 cl_optimization_save and cl_optimization_restore.
1311 * c-opts.c (c_common_handle_option): Pass &global_options to
1312 handle_generated_option.
1313 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1314 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1315 &global_options to cl_optimization_restore.
1317 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1319 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1320 Objective-C/Objective-C++ keywords.
1322 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1324 Merge from 'apple/trunk' branch on FSF servers.
1326 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1329 * c-common.h (objc_check_global_decl): New declaration.
1330 * stub-objc.c (objc_check_global_decl): New stub.
1332 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1334 * c.opt: Don't use VarExists.
1336 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1338 * c-common.c (c_cpp_error): Update names of diagnostic_context
1340 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1341 cl_optimization members.
1342 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1343 sanitize_cpp_opts, finish_options): Update names of cpp_options
1346 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1348 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1349 (objc_is_reserved_word): Removed.
1350 * c-common.c: Updated comments.
1351 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1352 objc_is_reserved_word.
1353 * stub-objc.c (objc_is_reserved_word): Removed.
1355 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1357 * c-common.h (objc_add_method_declaration): Adjust prototype to
1359 (objc_start_method_definition): Likewise.
1360 (objc_build_keyword_decl): Likewise.
1361 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1362 (objc_start_method_definition): Likewise.
1363 (objc_build_keyword_decl): Likewise.
1365 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1367 * c-common.h (objc_start_class_interface): Adjust prototype.
1368 (objc_start_category_interface): Likewise.
1369 (objc_start_protocol): Likewise.
1370 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1371 (objc_start_class_interface): Likewise.
1372 (objc_start_category_interface): Likewise.
1374 2010-09-27 Ian Lance Taylor <iant@google.com>
1376 * c-common.c (c_common_attribute_table): Add no_split_stack.
1377 (handle_no_split_stack_attribute): New static function.
1379 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1381 Merge from 'apple/trunk' branch on FSF servers.
1383 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1386 * c-common.h (objc_have_common_type): New declaration.
1387 * stub-objc.c (objc_have_common_type): New stub.
1389 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1392 * c-common.h (objc_common_type): New prototype.
1393 * stub-objc.c (objc_common_type): New stub.
1395 2010-09-24 Jan Hubicka <jh@suse.cz>
1397 * c-common.c (handle_leaf_attribute): New function.
1398 (struct attribute_spec c_common_att): Add leaf.
1400 2010-09-22 Joseph Myers <joseph@codesourcery.com>
1402 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1403 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1404 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1405 -include-barrier, -include-directory, -include-directory=,
1406 -include-directory-after, -include-directory-after=,
1407 -include-prefix, -include-prefix=, -include-with-prefix,
1408 -include-with-prefix=, -include-with-prefix-after,
1409 -include-with-prefix-after=, -include-with-prefix-before,
1410 -include-with-prefix-before=, -no-integrated-cpp,
1411 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1412 -output=, -pedantic, -pedantic-errors, -preprocess,
1413 -print-missing-file-dependencies, -trace-includes, -traditional,
1414 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1415 -user-dependencies, -verbose, -write-dependencies,
1416 -write-user-dependencies, no-integrated-cpp, traditional): New.
1418 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1421 * c-common.h (objc_start_method_definition): Return bool instead
1423 * stub-objc.c (objc_start_method_definition): Return bool instead
1426 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1429 * c-common.h (objc_get_interface_ivars): New declaration.
1430 * stub-objc.c (objc_get_interface_ivars): New stub.
1432 2010-09-15 Ian Lance Taylor <iant@google.com>
1434 * c-common.c (parse_optimize_options): Do not capitalize warning
1435 messages. Remove period at end of warning message.
1437 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1439 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1440 (handle_alias_attribute): ... here.
1441 (handle_ifunc_attribute): New.
1443 2010-09-06 Mark Mitchell <mark@codesourcery.com>
1445 * c-common.h (do_warn_double_promotion): Declare.
1446 * c-common.c (do_warn_double_promotion): Define.
1448 2010-09-05 Mark Mitchell <mark@codesourcery.com>
1450 * c.opt (Wdouble-promotion): New.
1452 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1454 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1455 fvtable-thunks, fxref): Mark no longer supported in help text.
1457 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1459 * c.opt (Wimport, fall-virtual, falt-external-templates,
1460 fdefault-inline, fenum-int-equiv, fexternal-templates,
1461 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1462 fname-mangling-version-, fnew-abi, fnonnull-objects,
1463 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1464 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1466 (fhandle-exceptions): Mark with Alias and Warn.
1467 * c-opts.c (c_common_handle_option): Don't handle options marked
1470 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1472 * c.opt (Wcomments, Werror-implicit-function-declaration,
1473 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1474 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1476 * c-common.c (option_codes): Use OPT_Wcomment instead of
1478 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1479 Don't handle options marked as aliases.
1481 2010-08-25 Richard Guenther <rguenther@suse.de>
1483 * c-common.c (c_common_get_alias_set): Remove special
1484 handling for pointers.
1486 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1488 * c-common.c: Use FOR_EACH_VEC_ELT.
1489 * c-gimplify.c: Likewise.
1490 * c-pragma.c: Likewise.
1492 2010-08-16 Joseph Myers <joseph@codesourcery.com>
1494 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1496 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1498 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1499 instead of OPT_MDX and OPT_MMDX.
1501 2010-08-16 Joseph Myers <joseph@codesourcery.com>
1503 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1505 2010-08-12 Joseph Myers <joseph@codesourcery.com>
1507 * c.opt (MD, MMD): Change to MDX and MMDX.
1508 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1510 2010-08-11 Joseph Myers <joseph@codesourcery.com>
1512 * c-opts.c (c_common_handle_option): Call handle_generated_option
1513 instead of handle_option.
1515 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1517 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1518 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1520 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1522 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1523 (pending_redefine_extname): Change type to a VEC.
1524 (add_to_renaming_pragma_list): Update for new type of
1525 pending_redefine_extname.
1526 (maybe_apply_renaming_pragma): Likewise.
1528 2010-08-04 Arnaud Charlet <charlet@adacore.com>
1530 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1532 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1533 decide whether a type has already been declared/seen.
1534 Do not go to the original type.
1535 (dump_nested_types): New parameter forward.
1536 Generate forward declaration if needed and mark type as visited.
1537 (print_ada_declaration): Call dump_nested_types if not already done.
1538 Mark types as visited.
1540 2010-08-03 Joseph Myers <joseph@codesourcery.com>
1542 * c.opt (-print-pch-checksum): Remove option.
1543 * c-opts.c (c_common_handle_option): Don't handle
1544 OPT_print_pch_checksum.
1546 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1548 * c-common.h (c_common_handle_option): Update prototype and return
1550 * c-opts.c (c_common_handle_option): Update prototype and return
1551 value type. Update calls to handle_option and
1552 enable_warning_as_error.
1554 2010-07-27 Jakub Jelinek <jakub@redhat.com>
1557 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1559 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1561 * c-common.h (c_common_missing_argument): Remove.
1562 * c-opts.c (c_common_missing_argument): Remove.
1563 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1564 idirafter, imacros, include, isysroot, isystem, iquote): Add
1566 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1568 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1570 * c-common.h (c_common_option_lang_mask,
1571 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1573 (c_common_init_options): Update prototype.
1574 * c-opts.c (c_common_option_lang_mask): New.
1575 (c_common_initialize_diagnostics): Split out of
1576 c_common_init_options.
1577 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1579 (c_common_init_options): Update prototype. Use decoded options in
1580 search for -lang-asm.
1582 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1584 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1585 * c-format.c: Likewise.
1587 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1589 * c-common.h: Include diagnostic-core.h. Error if already
1591 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1593 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1595 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1596 Do not include expr.h
1597 (vector_mode_valid_p): Move here.
1599 2010-06-21 DJ Delorie <dj@redhat.com>
1601 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1602 allow these pragmas anywhere.
1604 2010-06-14 Jakub Jelinek <jakub@redhat.com>
1607 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1608 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1609 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1610 ggc_strdup instead of xstrdup.
1612 2010-06-10 Jakub Jelinek <jakub@redhat.com>
1614 * c-cppbuiltin.c: Include cpp-id-data.h.
1615 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1616 (lazy_hex_fp_value): New function.
1617 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1619 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1621 * c-gimplify.c: Do not include tree-flow.h
1623 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1626 * c-common.c: Rename targetm member:
1627 targetm.enum_va_list -> targetm.enum_va_list_p
1629 2010-06-28 Anatoly Sokolov <aesok@post.ru>
1631 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1633 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1635 * c-cppbuiltin.c: Do not include except.h.
1637 2010-06-24 Andi Kleen <ak@linux.intel.com>
1639 * c-common.c (warn_for_omitted_condop): New.
1640 * c-common.h (warn_for_omitted_condop): Add prototype.
1642 2010-06-21 Joseph Myers <joseph@codesourcery.com>
1644 * c.opt (lang-objc): Remove.
1645 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1647 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1649 * c-opts.c: Include "tm_p.h".
1651 2010-06-20 Joseph Myers <joseph@codesourcery.com>
1653 * c-common.c (parse_optimize_options): Update call to
1656 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1658 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1659 new type of types_used_by_cur_var_decl.
1661 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1664 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1665 for C++ standard compliance.
1667 2010-06-16 Jason Merrill <jason@redhat.com>
1669 * c.opt: Add -Wnoexcept.
1671 2010-06-16 Richard Guenther <rguenther@suse.de>
1674 * c-common.c (c_common_truthvalue_conversion): Remove
1675 premature and wrong optimization concering ADDR_EXPRs.
1677 2010-06-15 Arnaud Charlet <charlet@adacore.com>
1679 * c-ada-spec.c (dump_sloc): Remove column info.
1680 (is_simple_enum): New function.
1681 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1682 enum types when relevant.
1684 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1686 * c-common.c (conversion_warning): Warn at expression
1689 2010-06-10 Joseph Myers <joseph@codesourcery.com>
1691 * c-opts.c (c_common_handle_option): Don't handle
1694 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1696 * c-pragma.c (push_alignment): Use typed GC allocation.
1697 (handle_pragma_push_options): Likewise.
1699 * c-common.c (parse_optimize_options): Likewise.
1701 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1704 2010-06-07 Joseph Myers <joseph@codesourcery.com>
1706 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1707 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1708 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1709 flag_signed_bitfields, warn_strict_null_sentinel,
1710 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1711 flag_gen_declaration, flag_no_gnu_keywords,
1712 flag_implement_inlines, flag_implicit_templates,
1713 flag_implicit_inline_templates, flag_optional_diags,
1714 flag_elide_constructors, flag_default_inline, flag_rtti,
1715 flag_conserve_space, flag_access_control, flag_check_new,
1716 flag_new_for_scope, flag_weak, flag_working_directory,
1717 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1718 flag_enforce_eh_specs, flag_threadsafe_statics,
1719 flag_pretty_templates): Remove.
1720 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1721 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1722 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1723 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1724 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1725 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1726 flag_no_gnu_keywords, flag_implement_inlines,
1727 flag_implicit_templates, flag_implicit_inline_templates,
1728 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1729 flag_rtti, flag_conserve_space, flag_access_control,
1730 flag_check_new, flag_new_for_scope, flag_weak,
1731 flag_working_directory, flag_use_cxa_atexit,
1732 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1733 flag_threadsafe_statics, flag_pretty_templates,
1734 warn_strict_null_sentinel): Remove.
1735 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1736 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1737 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1738 fimplicit-inline-templates, fimplicit-templates,
1739 flax-vector-conversions, fms-extensions, fnil-receivers,
1740 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1741 frtti, fshort-double, fshort-enums, fshort-wchar,
1742 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1743 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1744 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1745 gen-decls, undef): Use Var.
1746 (fdefault-inline, foptional-diags): Document as doing nothing.
1747 * c-opts.c (c_common_handle_option): Remove cases for options now
1748 using Var. Mark ignored options as such.
1750 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1752 * c-common.c: Moved to here from parent directory.
1753 * c-common.def: Likewise.
1754 * c-common.h: Likewise.
1755 * c-cppbuiltin.c: Likewise.
1756 * c-dump.c: Likewise.
1757 * c-format.c: Likewise.
1758 * c-format.h : Likewise.
1759 * c-gimplify.c: Likewise.
1760 * c-lex.c: Likewise.
1761 * c-omp.c: Likewise.
1763 * c-opts.c: Likewise.
1764 * c-pch.c: Likewise.
1765 * c-ppoutput.c: Likewise.
1766 * c-pragma.c: Likewise.
1767 * c-pragma.h: Likewise.
1768 * c-pretty-print.c: Likewise.
1769 * c-pretty-print.h: Likewise.
1770 * c-semantics.c: Likewise.
1771 * stub-objc.c: Likewise.
1773 * c-common.c: Include gt-c-family-c-common.h.
1774 * c-pragma.c: Include gt-c-family-c-pragma.h.
1776 Copyright (C) 2010, 2011 Free Software Foundation, Inc.
1778 Copying and distribution of this file, with or without modification,
1779 are permitted in any medium without royalty provided the copyright
1780 notice and this notice are preserved.