1 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3 * c-common.c (warn_if_unused_value): Move definition to here.
4 * c-common.h (warn_if_unused_value): Move declaration to here.
6 2012-03-23 William Bader <williambader@hotmail.com>
8 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
10 2012-03-20 Jason Merrill <jason@redhat.com>
12 * c-common.h (enum cxx_dialect): Add cxx1y.
13 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
15 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
16 * c-opts.c (c_common_post_options): Likewise.
18 (c_common_handle_option): Call it.
19 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
21 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
24 * c.opt ([Wuseless-cast]): Add.
26 2012-03-16 Richard Guenther <rguenther@suse.de>
28 * c-pretty-print.c (pp_c_initializer_list): Adjust.
30 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
33 * c.opt (ftemplate-backtrace-limit) Add.
35 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
39 * c-pragma.c (handle_pragma_extern_prefix): Remove.
40 (init_pragma): Don't register extern_prefix.
42 2012-03-12 Richard Guenther <rguenther@suse.de>
44 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
45 (builtin_type_for_size): Likewise.
47 2012-02-13 Jakub Jelinek <jakub@redhat.com>
50 * c-common.c (sync_resolve_params): Don't decide whether to convert
51 or not based on TYPE_SIZE comparison, convert whenever arg_type
52 is unsigned INTEGER_TYPE.
54 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
57 * c.opt ([Wunused-local-typedefs]): Fix description.
59 2012-01-24 Mike Stump <mikestump@comcast.net>
61 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
64 2012-01-18 Richard Guenther <rguenther@suse.de>
66 * c-opts.c (c_common_post_options): Reset LTO flags if
67 we are about to generate a PCH.
69 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
72 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
73 use pp_unsigned_wide_integer.
75 2012-01-10 Richard Guenther <rguenther@suse.de>
78 * c-opts.c (c_common_handle_option): Move -Werror handling
79 to language independent code.
81 2012-01-05 Richard Guenther <rguenther@suse.de>
84 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
87 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
90 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
91 of array types with an unknown bound.
93 2011-12-20 Joseph Myers <joseph@codesourcery.com>
95 * c-common.c (flag_isoc99): Update comment to refer to C11.
96 (flag_isoc1x): Change to flag_isoc11.
97 * c-common.h (flag_isoc99): Update comment to refer to C11.
98 (flag_isoc1x): Change to flag_isoc11.
99 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
101 * c-opts.c (set_std_c1x): Change to set_std_c11.
102 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
104 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
105 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
106 * c.opt (std=c1x): Change to std=c11. Document as non-draft
108 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
109 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
110 (std=gnu1x): Make alias of std=gnu11.
112 2011-12-19 Jason Merrill <jason@redhat.com>
115 * c-common.c (handle_transparent_union_attribute): Check the first
116 field if the type is complete.
118 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
121 * c-common.c (RID_IS_FINAL): Add.
122 * c-common.h (RID_IS_FINAL): Add.
124 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
126 * c.opt (fgnu-runtime): Provide full description.
127 (fnext-runtime): Likewise.
128 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
130 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
132 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
133 predefines in one place. Add LOCK_FREE predefines.
134 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
137 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
140 * c-common.c (get_atomic_generic_size): Check for various error
142 (resolve_overloaded_atomic_exchange,
143 resolve_overloaded_atomic_compare_exchange,
144 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
145 error_mark_node for error conditions.
147 2011-11-08 Richard Guenther <rguenther@suse.de>
152 2011-11-07 Richard Henderson <rth@redhat.com>
153 Aldy Hernandez <aldyh@redhat.com>
154 Torvald Riegel <triegel@redhat.com>
156 Merged from transactional-memory.
158 * c-common.c (handle_tm_wrap_attribute,
159 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
160 (struct c_common_reswords): Added __transaction* keywords.
161 (struct c_common_attribute_table): Added transaction* and tm_regparm
163 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
165 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
166 find_tm_attribute): Declare.
168 2011-11-07 Jason Merrill <jason@redhat.com>
171 * c-common.c, c-common.h: Revert yesterday's changes.
173 2011-11-06 Jason Merrill <jason@redhat.com>
176 * c-common.c (decl_has_visibility_attr): Split out from...
177 (c_determine_visibility): ...here.
178 * c-common.h: Declare it.
180 2011-11-06 Joseph Myers <joseph@codesourcery.com>
182 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
183 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
185 (check_user_alignment): New. Split out of
186 handle_aligned_attribute. Disallow integer constants with
187 noninteger types. Conditionally allow zero.
188 (handle_aligned_attribute): Use check_user_alignment.
189 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
191 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
192 Richard Henderson <rth@redhat.com>
194 Merged from cxx-mem-model.
196 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
197 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
198 parameters that are the same type size.
199 (get_atomic_generic_size): New. Find size of generic
200 atomic function parameters and do typechecking.
201 (add_atomic_size_parameter): New. Insert size into parameter list.
202 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
203 either __atomic_exchange_n or external library call.
204 (resolve_overloaded_atomic_compare_exchange): Restructure
205 __atomic_compare_exchange to either _n variant or external library call.
206 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
207 __atomic_load_n or an external library call.
208 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
209 __atomic_store_n or an external library call.
210 (resolve_overloaded_builtin): Handle new __atomic builtins.
212 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
215 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
216 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
217 <INDIRECT_REF>: Return the argument.
218 <ARRAY_REF>: Remove special code for negative offset.
219 Call fold_build_pointer_plus instead of size_binop.
220 (fold_offsetof): Remove STOP_REF argument and adjust.
221 * c-common.h (fold_offsetof_1): Declare.
222 (fold_offsetof): Remove STOP_REF argument.
224 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
227 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
228 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
229 Wnarrowing for C++0x and C++98.
230 * c.opt ([Wnarrowing]): Update.
232 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
235 * c.opt: Add Wzero-as-null-pointer-constant.
237 2011-10-31 Jason Merrill <jason@redhat.com>
239 * c.opt (-fdeduce-init-list): Off by default.
242 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
243 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
245 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
247 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
250 * c.opt (fvisibility-inlines-hidden): Description change.
252 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
254 Implement C++11 user-defined literals.
255 * c-common.c (build_userdef_literal): New.
256 * c-common.def: New tree code.
257 * c-common.h (tree_userdef_literal): New tree struct and accessors.
258 * c-lex.c (interpret_float): Add suffix parm.
259 (c_lex_with_flags): Build literal tokens.
261 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
265 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
268 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
269 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
270 Wnarrowing for C++0x and C++98.
271 * c.opt ([Wnarrowing]): Update.
273 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
276 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
277 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
278 Wnarrowing for C++0x and C++98.
279 * c.opt ([Wnarrowing]): Update.
281 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
284 * c-common.c (conversion_warning): Remove code looking for
287 2011-10-18 Dodji Seketeli <dodji@redhat.com>
290 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
291 !NO_IMPLICIT_EXTERN_C.
293 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
295 * c-common.c (c_common_reswords): Add __bases,
297 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
299 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
302 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
304 2011-10-15 Tom Tromey <tromey@redhat.com>
305 Dodji Seketeli <dodji@redhat.com>
307 * c.opt (fdebug-cpp): New option.
308 * c-opts.c (c_common_handle_option): Handle the option.
309 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
310 output stream in parameter. Factorized from ...
311 (maybe_print_line): ... this. Dump location debug information when
312 -fdebug-cpp is in effect.
313 (print_line_1): New static function. Takes an output stream in
314 parameter. Factorized from ...
315 (print_line): ... here. Dump location information when -fdebug-cpp
317 (scan_translation_unit): Dump location information when
318 -fdebug-cpp is in effect.
320 2011-10-15 Tom Tromey <tromey@redhat.com>
321 Dodji Seketeli <dodji@redhat.com>
323 * c.opt (ftrack-macro-expansion): New option. Handle it with and
325 * c-opts.c (c_common_handle_option)<case
326 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
327 cases. Handle -ftrack-macro-expansion with and without argument.
329 2011-10-15 Tom Tromey <tromey@redhat.com>
330 Dodji Seketeli <dodji@redhat.com>
332 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
333 (print_line, cb_define, do_line_change): Adjust to avoid touching
334 the internals of struct line_map. Use the public API instead.
335 * c-pch.c (c_common_read_pch): Likewise.
336 * c-lex.c (fe_file_change): Likewise.
338 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
341 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
343 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
346 * c-pretty-print.c (pp_c_floating_constant): Output
347 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
349 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
351 * c-common.c (def_builtin_1): Delete old interface with two
352 parallel arrays to hold standard builtin declarations, and replace
353 it with a function based interface that can support creating
354 builtins on the fly in the future. Change all uses, and poison
355 the old names. Make sure 0 is not a legitimate builtin index.
356 * c-omp.c (c_finish_omp_barrier): Ditto.
357 (c_finish_omp_taskwait): Ditto.
358 (c_finish_omp_flush): Ditto.
360 2011-10-11 Tristan Gingold <gingold@adacore.com>
362 * c.opt: (fallow-parameterless-variadic-functions): New.
364 2011-09-08 Dodji Seketeli <dodji@redhat.com>
366 PR c++/33255 - Support -Wunused-local-typedefs warning
367 * c-common.h (struct c_language_function::local_typedefs): New
369 (record_locally_defined_typedef, maybe_record_typedef_use)
370 (maybe_warn_unused_local_typedefs): Declare new functions.
371 * c-common.c (record_locally_defined_typedef)
372 (maybe_record_typedef_use)
373 (maybe_warn_unused_local_typedefs): Define new functions.
374 * c.opt: Declare new -Wunused-local-typedefs flag.
376 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
379 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
382 2011-09-05 Richard Guenther <rguenther@suse.de>
384 * c-common.c (complete_array_type): Use ssize_int (-1) instead
385 of integer_minus_one_node for empty array upper bounds.
387 2011-08-28 Dodji Seketeli <dodji@redhat.com>
389 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
390 it's the first time it's being called on this main TU.
392 2011-08-24 Richard Guenther <rguenther@suse.de>
395 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
397 2011-08-22 Gabriel Charette <gchare@google.com>
399 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
400 defined in cpp_init_builtins and c_cpp_builtins.
402 2011-08-19 Joseph Myers <joseph@codesourcery.com>
404 * c-common.c (c_common_reswords): Add __builtin_complex.
405 * c-common.h (RID_BUILTIN_COMPLEX): New.
407 2011-08-18 Joseph Myers <joseph@codesourcery.com>
409 * c-common.c (c_common_reswords): Add _Noreturn.
410 (keyword_is_function_specifier): Handle RID_NORETURN.
411 * c-common.h (RID_NORETURN): New.
413 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
415 * c-common.c (unsafe_conversion_p): New function. Check if it is
416 unsafe to convert an expression to the type.
417 (conversion_warning): Adjust, use unsafe_conversion_p.
418 * c-common.h (unsafe_conversion_p): New function declaration.
420 2011-08-02 Jakub Jelinek <jakub@redhat.com>
422 * c-common.h (c_finish_omp_atomic): Adjust prototype.
423 (c_finish_omp_taskyield): New prototype.
424 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
425 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
426 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
427 or RHS1 have side-effects, evaluate those too in the right spot,
428 if it is a decl and LHS is also a decl, error out if they
430 (c_finish_omp_taskyield): New function.
431 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
432 * c-pragma.c (omp_pragmas): Add taskyield.
433 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
434 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
435 PRAGMA_OMP_CLAUSE_MERGEABLE.
437 2011-07-25 Dodji Seketeli <dodji@redhat.com>
439 * c-common.h (set_underlying_type): Remove parm name from
442 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
444 * c-pretty-print.h: Search c-common.h in c-family.
446 2011-07-22 Jason Merrill <jason@redhat.com>
449 * c.opt (Wnarrowing): New.
452 * c-common.h: Declare c_linkage_bindings.
453 * c-pragma.c (handle_pragma_redefine_extname): Use it.
456 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
457 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
458 as flag_isoc99 for 'restrict'.
459 (pp_c_specifier_qualifier_list): Likewise for _Complex.
461 2011-07-21 Ian Lance Taylor <iant@google.com>
464 * c-common.c (c_disable_warnings): New static function.
465 (c_enable_warnings): New static function.
466 (c_fully_fold_internal): Change local unused_p to bool. Call
467 c_disable_warnings and c_enable_warnings rather than change
468 c_inhibit_evaluation_warnings.
470 2011-07-20 Jason Merrill <jason@redhat.com>
473 PR c++/42603 (DR 950)
474 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
475 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
477 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
479 2011-07-19 Richard Guenther <rguenther@suse.de>
481 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
482 * c-omp.c (c_finish_omp_for): Likewise.
484 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
486 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
487 body on the next line.
489 2011-07-08 Jason Merrill <jason@redhat.com>
492 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
495 * c-common.c (c_apply_type_quals_to_decl): Don't check
496 TYPE_NEEDS_CONSTRUCTING.
498 2011-07-06 Richard Guenther <rguenther@suse.de>
500 * c-common.c (c_common_nodes_and_builtins):
501 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
503 2011-07-05 Richard Guenther <rguenther@suse.de>
505 * c-common.c (c_common_nodes_and_builtins): Build all common
508 2011-06-27 Jakub Jelinek <jakub@redhat.com>
510 * c-common.h (c_tree_chain_next): New static inline function.
512 * c-common.c (check_builtin_function_arguments): Handle
513 BUILT_IN_ASSUME_ALIGNED.
515 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
517 * c-common.c: Add sync_ or SYNC__ to builtin names.
518 * c-omp.c: Add sync_ or SYNC__ to builtin names.
520 2011-06-20 Pierre Vittet <piervit@pvittet.com>
522 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
524 (gen_pragma_handler): New union.
525 (internal_pragma_handler): New type.
526 (c_register_pragma_with_data)
527 (c_register_pragma_with_expansion_and_data): New functions.
529 * c-pragma.c (registered_pragmas, c_register_pragma_1)
530 (c_register_pragma, c_register_pragma_with_expansion)
531 (c_invoke_pragma_handler): Changed to work with
532 internal_pragma_handler.
533 (c_register_pragma_with_data)
534 (c_register_pragma_with_expansion_and_data): New functions.
536 2011-06-14 Joseph Myers <joseph@codesourcery.com>
538 * c-common.c: Include common/common-target.h.
539 (handle_section_attribute): Use
540 targetm_common.have_named_sections.
541 * c-cppbuiltin.c: Include common/common-target.h.
542 (c_cpp_builtins): Use targetm_common.except_unwind_info.
544 2011-06-10 Richard Guenther <rguenther@suse.de>
546 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
547 to print a IDENTIFIER_NODE.
549 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
550 Joseph Myers <joseph@codesourcery.com>
552 * c.opt (fbuilding-libgcc): New option.
553 * c-cppbuiltin.c (c_cpp_builtins): Define
554 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
556 2011-06-07 Jason Merrill <jason@redhat.com>
558 * c-common.c (max_tinst_depth): Lower default to 900.
560 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
562 2011-06-07 Richard Guenther <rguenther@suse.de>
564 * c-common.c (c_common_nodes_and_builtins): Do not set
565 size_type_node or call set_sizetype.
567 2011-06-07 Dodji Seketeli <dodji@redhat.com>
570 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
571 type when using pointer comparison to compare types.
573 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
575 * c.opt: Add -Wdelete-non-virtual-dtor.
576 * c-opts.c (c_common_handle_option): Include it in -Wall.
578 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
583 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
585 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
588 2011-05-27 Jakub Jelinek <jakub@redhat.com>
591 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
592 C++ don't call c_common_truthvalue_conversion on void type arms.
594 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
596 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
597 (stmt_list_stack): Define.
598 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
599 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
601 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
603 * c-common.c (warning_candidate_p): Check for BLOCKs.
605 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
607 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
610 2011-05-25 Jakub Jelinek <jakub@redhat.com>
612 * c-common.c (def_fn_type): Remove extra va_end.
614 2011-05-23 Jason Merrill <jason@redhat.com>
617 * c-common.c (c_common_get_narrower): New.
618 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
620 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
622 * c-common.h (check_function_arguments): Tweak prototype of
623 check_function_arguments.
624 * c-common.c (check_function_arguments): Likewise. Adjust
625 calls to check_function_nonnull, check_function_format, and
626 check_function_sentinel.
627 (check_function_sentinel): Take a FUNCTION_TYPE rather than
628 separate attributes and typelist arguments. Use
629 FOREACH_FUNCTION_ARGS to iterate over argument types.
631 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
633 * c-common.c (c_common_reswords): Reorder.
634 * c-common.h (rid): Likewise.
636 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
638 * c-common.c (def_fn_type): Don't call build_function_type, call
639 build_function_type_array or build_varargs_function_type_array
641 (c_common_nodes_and_builtins): Likewise.
643 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
645 * c-common.c (c_add_case_label): Omit the loc argument to
647 * c-common.h (build_case_label): Remove.
648 * c-semantics.c (build_case_label): Remove.
650 2011-05-05 Joseph Myers <joseph@codesourcery.com>
652 * c-objc.h (objc_start_method_definition): Update prototype.
653 * stub-objc.c (objc_start_method_definition): Add extra parameter.
655 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
657 * c-common.c (check_main_parameter_types): Reindent. Don't use
658 TYPE_ARG_TYPES directly.
659 (handle_nonnull_attribute): Likewise.
660 (sync_resolve_params): Likewise.
661 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
662 to check_format_string.
663 (handle_format_attribute): Likewise.
664 (check_format_string): Take a function type to examine instead of
665 a type list. Use a function_arg_iterator to step through argument
668 2011-05-04 Richard Guenther <rguenther@suse.de>
670 * c-common.c (fix_string_type): Use size_int for index type bounds.
671 (start_fname_decls): Do not pass NULL to build_int_cst.
672 (c_init_attributes): Likewise.
673 * c-lex.c (c_lex_with_flags): Likewise.
675 2011-04-27 Jason Merrill <jason@redhat.com>
677 * c-common.c (make_tree_vector_from_list): New.
678 * c-common.h: Declare it.
680 2011-04-26 Richard Guenther <rguenther@suse.de>
682 PR preprocessor/48248
683 * c-ppoutput.c (maybe_print_line): Always optimize newlines
684 for output size with -P.
686 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
688 * c-common.c (struct c_common_resword): Add __underlying_type.
689 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
691 2011-04-20 Jim Meyering <meyering@redhat.com>
693 * c-format.c (init_dollar_format_checking): Remove useless
696 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
698 * c-objc.h (objc_get_interface_ivars): Removed.
699 (objc_detect_field_duplicates): New.
700 * stub-objc.c: Likewise.
702 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
704 * stub-objc.c (objc_declare_protocols): Renamed to
705 objc_declare_protocol.
706 * c-objc.h: Likewise.
708 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
710 * stub-objc.c (objc_declare_class): Updated argument name.
712 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
714 * c-common.h (c_common_init_ts): Declare.
715 * c-common.c (c_common_init_ts): Define.
717 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
719 * c-objc.h (objc_build_message_expr): Updated prototype.
720 * stub-objc.c (objc_build_message_expr): Likewise.
722 2011-04-12 Martin Jambor <mjambor@suse.cz>
724 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
727 2011-04-11 Richard Guenther <rguenther@suse.de>
729 * c-common.c (complete_array_type): Build a range type of
732 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
734 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
735 (handle_type_generic_attribute): Likewise.
737 2011-04-07 Jason Merrill <jason@redhat.com>
740 * c-common.c (c_common_truthvalue_conversion): Don't ignore
741 conversion from C++0x scoped enum.
743 2011-04-06 Joseph Myers <joseph@codesourcery.com>
745 * c-target-def.h: New file.
746 * c-target.def: New file.
747 * c-target.h: New file.
748 * c-common.c (targetcm): Don't define here.
749 * c-common.h (default_handle_c_option): Declare.
750 * c-format.c: Include c-target.h instead of target.h.
751 * c-opts.c: Include c-target.h instead of target.h. Explicitly
753 (default_handle_c_option): Move from targhooks.c.
755 2011-03-29 Jakub Jelinek <jakub@redhat.com>
757 PR preprocessor/48248
758 * c-ppoutput.c (print): Add src_file field.
759 (init_pp_output): Initialize it.
760 (maybe_print_line): Don't optimize by adding up to 8 newlines
761 if map->to_file and print.src_file are different file.
762 (print_line): Update print.src_file.
764 2011-03-25 Kai Tietz <ktietz@redhat.com>
766 * c-ada-spec.c (compare_comment): Use filename_cmp
767 instead of strcmp for filename.
769 2011-03-25 Jeff Law <law@redhat.com>
771 * c-family/c-common.c (def_fn_type): Add missing va_end.
773 2011-03-25 Jason Merrill <jason@redhat.com>
775 * c.opt: Add -std=c++03.
777 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
779 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
784 * c-pretty-print.c (pp_c_specifier_qualifier_list):
785 Display allowed attributes for function pointer types.
786 (pp_c_attributes_display): New function to display
787 attributes having affects_type_identity flag set to true.
788 * c-pretty-print.h (pp_c_attributes_display): New prototype.
790 * c-common.c (c_common_attribute_table):
792 (c_common_format_attribute_table): Likewise.
794 2011-03-18 Jason Merrill <jason@redhat.com>
796 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
797 * c-common.h: Don't declare it here.
798 * c-common.c: Or define it here.
799 * c-opts.c (c_common_handle_option): Or set it here.
802 * c-common.c (handle_transparent_union_attribute): Don't
803 make a duplicate type in C++.
805 2011-03-15 Jason Merrill <jason@redhat.com>
807 * c-common.c (max_constexpr_depth): New.
808 * c-common.h: Declare it.
809 * c-opts.c (c_common_handle_option): Set it.
810 * c.opt (fconstexpr-depth): New option.
812 2011-03-11 Jason Merrill <jason@redhat.com>
814 * c-common.c (attribute_takes_identifier_p): Add missing const.
817 * c-common.c (attribute_takes_identifier_p): Assume that an
818 unknown attribute takes an identifier.
820 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
823 * c-common.c (c_type_hash): Call list_length instead of iterating
824 through DECL_CHAIN. Rename 'i' to 'n_elements'.
826 2011-02-19 Jakub Jelinek <jakub@redhat.com>
829 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
831 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
833 * c.opt (fobjc-abi-version=) New.
834 (fobjc-nilcheck): New.
836 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
839 * c-common.h (keyword_is_decl_specifier): Declare.
840 * c-common.c (keyword_is_decl_specifier): Define.
841 (keyword_is_function_specifier): New function.
843 2011-01-26 Jakub Jelinek <jakub@redhat.com>
846 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
847 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
850 2011-01-26 Arnaud Charlet <charlet@adacore.com>
852 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
854 2011-01-26 Jakub Jelinek <jakub@redhat.com>
857 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
858 after init_c_lex if pch_file is set.
860 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
863 * c.opt (-fkeep-inline-dllexport): New switch.
865 2011-01-12 Richard Guenther <rguenther@suse.de>
868 * c-common.c (handle_weak_attribute): Warn instead of error
869 on declaring an inline function weak.
871 2011-01-05 Tom Tromey <tromey@redhat.com>
873 * c-common.h (lvalue_error): Update.
874 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
877 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
880 * c-objc.h (objc_finish_message_expr): Added argument to
883 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
885 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
888 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
890 * c-objc.h (objc_maybe_warn_exceptions): New.
891 * stub-objc.c (objc_maybe_warn_exceptions): New.
893 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
895 * c-common.h (readonly_error): Declare.
896 * c-common.c (readonly_error): Define.
898 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
900 * c-common.h (invalid_indirection_error): Declare.
901 * c-common.c (invalid_indirection_error): Define.
903 2010-12-03 Richard Guenther <rguenther@suse.de>
906 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
907 (pp_c_unary_expression): Likewise.
908 (pp_c_expression): Likewise.
910 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
912 * c-common.h (objc_finish_function): New.
913 (objc_non_volatilized_type): Removed.
914 (objc_type_quals_match): Removed.
915 * stub-objc.c (objc_finish_function): New.
916 (objc_non_volatilized_type): Removed.
917 (objc_type_quals_match): Removed.
919 2010-11-30 Joseph Myers <joseph@codesourcery.com>
921 * c-common.h (parse_optimize_options): Declare.
922 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
923 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
925 2010-11-29 Joseph Myers <joseph@codesourcery.com>
927 * c-opts.c (check_deps_environment_vars): Use getenv instead of
929 * c-pch.c (O_BINARY): Don't define here.
930 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
932 2010-11-25 Joseph Myers <joseph@codesourcery.com>
934 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
935 targetm.except_unwind_info.
937 2010-11-23 Joseph Myers <joseph@codesourcery.com>
939 * c-opts.c (c_common_handle_option): Pass location to
940 set_struct_debug_option.
942 2010-11-23 Joseph Myers <joseph@codesourcery.com>
944 * c-common.c (visibility_options): Move from ../opts.c.
945 * c-common.h (struct visibility_flags, visibility_options):
947 * c-opts.c (finish_options): Rename to c_finish_options.
948 (c_common_init): Update call to finish_options.
950 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
953 * c-lex.c (lex_string): Check that each string in an Objective-C
954 string concat sequence starts with either one or zero '@', and
955 that there are no spurious '@' signs at the end.
957 2010-11-20 Joseph Myers <joseph@codesourcery.com>
959 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
960 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
961 HANDLE_PRAGMA_VISIBILITY.
962 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
963 HANDLE_PRAGMA_VISIBILITY): Don't define.
964 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
966 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
971 * c-common.h (keyword_begins_type_specifier): Declare.
972 (keyword_is_storage_class_specifier): Declare.
973 (keyword_is_type_qualifier): Declare.
974 * c-common.c (keyword_begins_type_specifier): New function.
975 (keyword_is_storage_class_specifier): New function.
976 (keyword_is_type_qualifier): Declare.
978 2010-11-19 Joseph Myers <joseph@codesourcery.com>
981 * c-common.c (in_late_binary_op): Define.
982 (c_common_truthvalue_conversion): Check in_late_binary_op before
984 * c-common.h (in_late_binary_op): Declare.
986 2010-11-19 Joseph Myers <joseph@codesourcery.com>
988 * c-opts.c (c_common_handle_option): Update calls to
989 set_struct_debug_option.
991 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
993 * c-common.h (objc_declare_protocols): Added additional argument.
994 * stub-objc.c (objc_declare_protocol): Same change.
996 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
999 * c-common.h (build_real_imag_expr): Declare.
1000 * c-semantics.c (build_real_imag_expr): Define.
1002 2010-11-17 Joseph Myers <joseph@codesourcery.com>
1004 * c-opts.c (c_common_parse_file): Take no arguments.
1005 * c-common.h (c_common_parse_file): Update prototype.
1007 2010-11-16 Jakub Jelinek <jakub@redhat.com>
1010 * c-common.c (warning_candidate_p): Don't track non-const calls
1013 2010-11-15 Ian Lance Taylor <iant@google.com>
1015 * c-lex.c (init_c_lex): Set macro debug callbacks if
1016 flag_dump_go_spec is set.
1018 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1020 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1021 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1023 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1025 PR preprocessor/45038
1026 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1029 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1031 * c-common.h (c_family_lang_mask): Declare.
1032 * c-opts.c (c_family_lang_mask): Make extern.
1033 * c-pragma.c (handle_pragma_diagnostic): Use
1034 control_warning_option.
1036 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1038 * c-common.c (parse_optimize_options): Update call to
1040 * c-common.h (c_common_handle_option): Update prototype.
1041 * c-opts.c (c_common_handle_option): Take location_t parameter and
1042 pass it to other functions.
1044 2010-11-11 Joseph Myers <joseph@codesourcery.com>
1046 * c-opts.c (warning_as_error_callback): Remove.
1047 (c_common_initialize_diagnostics): Don't call
1048 register_warning_as_error_callback.
1049 (c_common_handle_option): Handle -Werror=normalized= here.
1051 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1053 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1055 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1057 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1058 Remove trailing '.' from diagnostics.
1059 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1061 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1063 * c-common.c (parse_optimize_options): Pass global_dc to
1065 * c-opts.c (c_common_handle_option): Pass &global_options to
1066 set_Wstrict_aliasing.
1067 * c.opt (v): Don't mark Common or document here.
1069 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1072 * c-format.c (format_type): New type gcc_objc_string_format_type.
1073 (valid_stringptr_type_p): New.
1074 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1075 (check_format_string): Pass expected type, use
1076 valid_stringptr_type_p (), check that the format string types are
1077 consistent with the format specification.
1078 (decode_format_attr): Warn if NSString is used outside objective-c.
1079 (format_types_orig): Add NSString.
1081 (format_flags): New.
1082 (check_format_arg): Handle format strings requiring an external parser.
1083 first_target_format_type: New variable.
1084 (handle_format_attribute): Set up first_target_format_type, pass the
1085 expected format arg string type to check_format_string().
1086 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1087 * stub-objc.c (objc_string_ref_type_p): New.
1088 (objc_check_format_arg): New.
1090 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1092 Fixed using the Objective-C 2.0 dot-syntax with class names.
1093 * c-common.h (objc_build_class_component_ref): New.
1094 * stub-objc.c (objc_build_class_component_ref): New.
1096 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1098 * c.opt (Wproperty-assign-default): New option.
1100 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1102 Implemented -fobjc-std=objc1 flag.
1103 * c.opt (fobjc-std=objc1): New option.
1105 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1107 Implemented format and noreturn attributes for Objective-C methods.
1108 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1109 attribute for Objective-C methods.
1111 2010-10-31 Jason Merrill <jason@redhat.com>
1113 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1116 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1118 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1119 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1120 (objc_add_property_declaration): Removed arguments for copies and
1122 (objc_build_getter_call): Renamed to
1123 objc_maybe_build_component_ref.
1124 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1125 (objc_is_property_ref): New.
1126 * c-common.c (c_common_reswords): Removed copies and ivar.
1127 * stub-objc.c (objc_add_property_declaration): Removed arguments
1128 for copies and ivar.
1129 (objc_build_getter_call): Renamed to
1130 objc_maybe_build_component_ref.
1131 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1132 (objc_is_property_ref): New.
1134 2010-10-29 Arnaud Charlet <charlet@adacore.com>
1135 Matthew Gingell <gingell@adacore.com>
1137 * c-ada-spec.c (separate_class_package): New function.
1138 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1139 name of their enclosing package.
1140 (print_ada_declaration): Use separate_class_package.
1142 2010-10-27 Jason Merrill <jason@redhat.com>
1144 * c-common.c (c_common_reswords): Add __is_literal_type.
1145 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1147 * c-common.c (check_case_value): Remove special C++ code.
1149 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1151 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1152 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1154 (objc_add_property_declaration): Added additional arguments.
1155 (objc_property_attribute_kind): Removed.
1156 (objc_set_property_attr): Removed.
1157 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1159 * stub-objc.c (objc_add_property_declaration): Added additional
1161 (objc_set_property_attr): Removed.
1163 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1165 * c-common.h (objc_add_property_variable): Renamed to
1166 objc_add_property_declaration. Added location argument.
1167 * stub-objc.c (objc_add_property_variable): Same change.
1169 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1171 * c-common.h (objc_maybe_printable_name): New.
1172 * stub-objc.c (objc_maybe_printable_name): New.
1174 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1175 Andrew Pinski <pinskia@gmail.com>
1177 * c-common.h (c_common_mark_addressable_vec): Declare.
1178 * c-common.c (c_common_mark_addressable_vec): New function.
1180 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1182 * c-common.h (objc_set_method_type): Removed.
1183 (objc_add_method_declaration): Added boolean argument.
1184 (objc_start_method_definition): Same change.
1185 (objc_build_method_signature): Same change.
1186 * stub-objc.c (objc_set_method_type): Removed.
1187 (objc_add_method_declaration): Added boolean argument.
1188 (objc_start_method_definition): Same change.
1189 (objc_build_method_signature): Same change.
1191 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1193 * c-common.h (finish_file): Removed.
1194 (objc_write_global_declarations): New.
1195 * c-opts.c (c_common_parse_file): Do not call finish_file.
1196 * stub-objc.c (objc_write_global_declarations): New.
1198 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1200 Implemented parsing @synthesize and @dynamic for
1201 Objective-C/Objective-C++.
1202 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1203 (objc_add_synthesize_declaration): New.
1204 (objc_add_dynamic_declaration): New.
1205 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1206 * stub-objc.c (objc_add_synthesize_declaration): New.
1207 (objc_add_dynamic_declaration): New.
1209 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1212 * c-cppbuiltin.c (mode_has_fma): Move function here from
1213 builtins.c. Don't use the fma optab, instead just use the
1214 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1217 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1219 Merge from 'apple/trunk' branch on FSF servers.
1221 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1224 * c-common.h (objc_non_volatilized_type): New declaration
1225 * stub-objc.c (objc_non_volatilized_type): New stub.
1227 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1229 Merge from 'apple/trunk' branch on FSF servers.
1231 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1234 * c-common.h (objc_diagnose_private_ivar): New decl.
1235 * stub-objc.c (objc_diagnose_private_ivar): New stub.
1237 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1239 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1240 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1241 (objc_ivar_visibility_kind): New enum.
1242 (objc_set_visibility): Adjust prototype to use visibility enum.
1243 * stub-objc.c (objc_set_visibility): Adjust stub to use
1246 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1248 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1249 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1250 has the appropriate fma builtins.
1251 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1253 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1255 merge from FSF apple 'trunk' branch.
1256 2006 Fariborz Jahanian <fjahanian@apple.com>
1258 Radars 4436866, 4505126, 4506903, 4517826
1259 * c-common.c (c_common_resword): Define @property and its attributes.
1260 * c-common.h: Define property attribute enum entries.
1261 (OBJC_IS_PATTR_KEYWORD): New.
1262 (objc_property_attribute_kind): New enum.
1263 Declare objc_set_property_attr (), objc_add_property_variable (),
1264 objc_build_getter_call () and objc_build_setter_call ().
1265 * stub-objc.c (objc_set_property_attr): New stub.
1266 (objc_add_property_variable): Likewise.
1267 (objc_build_getter_call): Likewise.
1268 (objc_build_setter_call) Likewise.
1270 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1272 merge from FSF apple 'trunk' branch.
1273 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1275 Radar 3803157 (method attributes)
1276 * c-common.c (handle_deprecated_attribute): Recognize
1277 objc methods as valid declarations.
1278 * c-common.h: Declare objc_method_decl ().
1279 * stub-objc.c (objc_method_decl): New stub.
1281 2010-10-08 Joseph Myers <joseph@codesourcery.com>
1283 * c-common.c (parse_optimize_options): Call
1284 decode_cmdline_options_to_array_default_mask before
1285 decode_options. Update arguments to decode_options.
1286 * c-common.h (c_common_init_options_struct): Declare.
1287 * c-opts.c (c_common_init_options_struct): New. Split out from
1288 c_common_init_options.
1290 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1292 Implemented fast enumeration for Objective-C.
1293 * c-common.h (objc_finish_foreach_loop): New.
1294 * stub-objc.c (objc_finish_foreach_loop): New.
1296 2010-10-05 Joseph Myers <joseph@codesourcery.com>
1298 * c-common.h (struct diagnostic_context): Don't declare here.
1299 (c_common_initialize_diagnostics): Declare using
1300 diagnostic_context typedef.
1301 * c-opts.c (c_common_handle_option): Pass global_dc to
1302 handle_generated_option.
1304 2010-10-04 Joseph Myers <joseph@codesourcery.com>
1306 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1307 handle_generated_option.
1309 2010-10-03 Ian Lance Taylor <iant@google.com>
1311 * c.opt (-fplan9-extensions): New option.
1313 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1315 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1317 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1318 of duplicating code.
1320 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1322 * c-common.c: Add two new entries for @optional
1323 and @required keywords.
1325 merge from FSF 'apple/trunk' branch.
1326 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1329 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1330 objective-c keywords.
1331 (objc_set_method_opt): New declaration.
1332 * stub-objc.c (objc_set_method_opt): New stub.
1334 2010-09-30 Joseph Myers <joseph@codesourcery.com>
1336 * c-common.c (handle_optimize_attribute): Pass &global_options to
1337 cl_optimization_save and cl_optimization_restore.
1338 * c-opts.c (c_common_handle_option): Pass &global_options to
1339 handle_generated_option.
1340 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1341 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1342 &global_options to cl_optimization_restore.
1344 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1346 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1347 Objective-C/Objective-C++ keywords.
1349 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1351 Merge from 'apple/trunk' branch on FSF servers.
1353 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1356 * c-common.h (objc_check_global_decl): New declaration.
1357 * stub-objc.c (objc_check_global_decl): New stub.
1359 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1361 * c.opt: Don't use VarExists.
1363 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1365 * c-common.c (c_cpp_error): Update names of diagnostic_context
1367 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1368 cl_optimization members.
1369 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1370 sanitize_cpp_opts, finish_options): Update names of cpp_options
1373 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1375 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1376 (objc_is_reserved_word): Removed.
1377 * c-common.c: Updated comments.
1378 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1379 objc_is_reserved_word.
1380 * stub-objc.c (objc_is_reserved_word): Removed.
1382 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1384 * c-common.h (objc_add_method_declaration): Adjust prototype to
1386 (objc_start_method_definition): Likewise.
1387 (objc_build_keyword_decl): Likewise.
1388 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1389 (objc_start_method_definition): Likewise.
1390 (objc_build_keyword_decl): Likewise.
1392 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1394 * c-common.h (objc_start_class_interface): Adjust prototype.
1395 (objc_start_category_interface): Likewise.
1396 (objc_start_protocol): Likewise.
1397 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1398 (objc_start_class_interface): Likewise.
1399 (objc_start_category_interface): Likewise.
1401 2010-09-27 Ian Lance Taylor <iant@google.com>
1403 * c-common.c (c_common_attribute_table): Add no_split_stack.
1404 (handle_no_split_stack_attribute): New static function.
1406 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1408 Merge from 'apple/trunk' branch on FSF servers.
1410 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1413 * c-common.h (objc_have_common_type): New declaration.
1414 * stub-objc.c (objc_have_common_type): New stub.
1416 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1419 * c-common.h (objc_common_type): New prototype.
1420 * stub-objc.c (objc_common_type): New stub.
1422 2010-09-24 Jan Hubicka <jh@suse.cz>
1424 * c-common.c (handle_leaf_attribute): New function.
1425 (struct attribute_spec c_common_att): Add leaf.
1427 2010-09-22 Joseph Myers <joseph@codesourcery.com>
1429 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1430 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1431 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1432 -include-barrier, -include-directory, -include-directory=,
1433 -include-directory-after, -include-directory-after=,
1434 -include-prefix, -include-prefix=, -include-with-prefix,
1435 -include-with-prefix=, -include-with-prefix-after,
1436 -include-with-prefix-after=, -include-with-prefix-before,
1437 -include-with-prefix-before=, -no-integrated-cpp,
1438 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1439 -output=, -pedantic, -pedantic-errors, -preprocess,
1440 -print-missing-file-dependencies, -trace-includes, -traditional,
1441 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1442 -user-dependencies, -verbose, -write-dependencies,
1443 -write-user-dependencies, no-integrated-cpp, traditional): New.
1445 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1448 * c-common.h (objc_start_method_definition): Return bool instead
1450 * stub-objc.c (objc_start_method_definition): Return bool instead
1453 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1456 * c-common.h (objc_get_interface_ivars): New declaration.
1457 * stub-objc.c (objc_get_interface_ivars): New stub.
1459 2010-09-15 Ian Lance Taylor <iant@google.com>
1461 * c-common.c (parse_optimize_options): Do not capitalize warning
1462 messages. Remove period at end of warning message.
1464 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1466 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1467 (handle_alias_attribute): ... here.
1468 (handle_ifunc_attribute): New.
1470 2010-09-06 Mark Mitchell <mark@codesourcery.com>
1472 * c-common.h (do_warn_double_promotion): Declare.
1473 * c-common.c (do_warn_double_promotion): Define.
1475 2010-09-05 Mark Mitchell <mark@codesourcery.com>
1477 * c.opt (Wdouble-promotion): New.
1479 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1481 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1482 fvtable-thunks, fxref): Mark no longer supported in help text.
1484 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1486 * c.opt (Wimport, fall-virtual, falt-external-templates,
1487 fdefault-inline, fenum-int-equiv, fexternal-templates,
1488 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1489 fname-mangling-version-, fnew-abi, fnonnull-objects,
1490 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1491 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1493 (fhandle-exceptions): Mark with Alias and Warn.
1494 * c-opts.c (c_common_handle_option): Don't handle options marked
1497 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1499 * c.opt (Wcomments, Werror-implicit-function-declaration,
1500 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1501 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1503 * c-common.c (option_codes): Use OPT_Wcomment instead of
1505 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1506 Don't handle options marked as aliases.
1508 2010-08-25 Richard Guenther <rguenther@suse.de>
1510 * c-common.c (c_common_get_alias_set): Remove special
1511 handling for pointers.
1513 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1515 * c-common.c: Use FOR_EACH_VEC_ELT.
1516 * c-gimplify.c: Likewise.
1517 * c-pragma.c: Likewise.
1519 2010-08-16 Joseph Myers <joseph@codesourcery.com>
1521 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1523 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1525 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1526 instead of OPT_MDX and OPT_MMDX.
1528 2010-08-16 Joseph Myers <joseph@codesourcery.com>
1530 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1532 2010-08-12 Joseph Myers <joseph@codesourcery.com>
1534 * c.opt (MD, MMD): Change to MDX and MMDX.
1535 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1537 2010-08-11 Joseph Myers <joseph@codesourcery.com>
1539 * c-opts.c (c_common_handle_option): Call handle_generated_option
1540 instead of handle_option.
1542 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1544 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1545 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1547 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1549 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1550 (pending_redefine_extname): Change type to a VEC.
1551 (add_to_renaming_pragma_list): Update for new type of
1552 pending_redefine_extname.
1553 (maybe_apply_renaming_pragma): Likewise.
1555 2010-08-04 Arnaud Charlet <charlet@adacore.com>
1557 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1559 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1560 decide whether a type has already been declared/seen.
1561 Do not go to the original type.
1562 (dump_nested_types): New parameter forward.
1563 Generate forward declaration if needed and mark type as visited.
1564 (print_ada_declaration): Call dump_nested_types if not already done.
1565 Mark types as visited.
1567 2010-08-03 Joseph Myers <joseph@codesourcery.com>
1569 * c.opt (-print-pch-checksum): Remove option.
1570 * c-opts.c (c_common_handle_option): Don't handle
1571 OPT_print_pch_checksum.
1573 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1575 * c-common.h (c_common_handle_option): Update prototype and return
1577 * c-opts.c (c_common_handle_option): Update prototype and return
1578 value type. Update calls to handle_option and
1579 enable_warning_as_error.
1581 2010-07-27 Jakub Jelinek <jakub@redhat.com>
1584 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1586 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1588 * c-common.h (c_common_missing_argument): Remove.
1589 * c-opts.c (c_common_missing_argument): Remove.
1590 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1591 idirafter, imacros, include, isysroot, isystem, iquote): Add
1593 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1595 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1597 * c-common.h (c_common_option_lang_mask,
1598 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1600 (c_common_init_options): Update prototype.
1601 * c-opts.c (c_common_option_lang_mask): New.
1602 (c_common_initialize_diagnostics): Split out of
1603 c_common_init_options.
1604 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1606 (c_common_init_options): Update prototype. Use decoded options in
1607 search for -lang-asm.
1609 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1611 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1612 * c-format.c: Likewise.
1614 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1616 * c-common.h: Include diagnostic-core.h. Error if already
1618 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1620 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1622 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1623 Do not include expr.h
1624 (vector_mode_valid_p): Move here.
1626 2010-06-21 DJ Delorie <dj@redhat.com>
1628 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1629 allow these pragmas anywhere.
1631 2010-06-14 Jakub Jelinek <jakub@redhat.com>
1634 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1635 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1636 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1637 ggc_strdup instead of xstrdup.
1639 2010-06-10 Jakub Jelinek <jakub@redhat.com>
1641 * c-cppbuiltin.c: Include cpp-id-data.h.
1642 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1643 (lazy_hex_fp_value): New function.
1644 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1646 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1648 * c-gimplify.c: Do not include tree-flow.h
1650 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1653 * c-common.c: Rename targetm member:
1654 targetm.enum_va_list -> targetm.enum_va_list_p
1656 2010-06-28 Anatoly Sokolov <aesok@post.ru>
1658 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1660 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1662 * c-cppbuiltin.c: Do not include except.h.
1664 2010-06-24 Andi Kleen <ak@linux.intel.com>
1666 * c-common.c (warn_for_omitted_condop): New.
1667 * c-common.h (warn_for_omitted_condop): Add prototype.
1669 2010-06-21 Joseph Myers <joseph@codesourcery.com>
1671 * c.opt (lang-objc): Remove.
1672 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1674 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1676 * c-opts.c: Include "tm_p.h".
1678 2010-06-20 Joseph Myers <joseph@codesourcery.com>
1680 * c-common.c (parse_optimize_options): Update call to
1683 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1685 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1686 new type of types_used_by_cur_var_decl.
1688 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1691 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1692 for C++ standard compliance.
1694 2010-06-16 Jason Merrill <jason@redhat.com>
1696 * c.opt: Add -Wnoexcept.
1698 2010-06-16 Richard Guenther <rguenther@suse.de>
1701 * c-common.c (c_common_truthvalue_conversion): Remove
1702 premature and wrong optimization concering ADDR_EXPRs.
1704 2010-06-15 Arnaud Charlet <charlet@adacore.com>
1706 * c-ada-spec.c (dump_sloc): Remove column info.
1707 (is_simple_enum): New function.
1708 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1709 enum types when relevant.
1711 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1713 * c-common.c (conversion_warning): Warn at expression
1716 2010-06-10 Joseph Myers <joseph@codesourcery.com>
1718 * c-opts.c (c_common_handle_option): Don't handle
1721 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1723 * c-pragma.c (push_alignment): Use typed GC allocation.
1724 (handle_pragma_push_options): Likewise.
1726 * c-common.c (parse_optimize_options): Likewise.
1728 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1731 2010-06-07 Joseph Myers <joseph@codesourcery.com>
1733 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1734 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1735 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1736 flag_signed_bitfields, warn_strict_null_sentinel,
1737 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1738 flag_gen_declaration, flag_no_gnu_keywords,
1739 flag_implement_inlines, flag_implicit_templates,
1740 flag_implicit_inline_templates, flag_optional_diags,
1741 flag_elide_constructors, flag_default_inline, flag_rtti,
1742 flag_conserve_space, flag_access_control, flag_check_new,
1743 flag_new_for_scope, flag_weak, flag_working_directory,
1744 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1745 flag_enforce_eh_specs, flag_threadsafe_statics,
1746 flag_pretty_templates): Remove.
1747 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1748 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1749 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1750 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1751 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1752 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1753 flag_no_gnu_keywords, flag_implement_inlines,
1754 flag_implicit_templates, flag_implicit_inline_templates,
1755 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1756 flag_rtti, flag_conserve_space, flag_access_control,
1757 flag_check_new, flag_new_for_scope, flag_weak,
1758 flag_working_directory, flag_use_cxa_atexit,
1759 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1760 flag_threadsafe_statics, flag_pretty_templates,
1761 warn_strict_null_sentinel): Remove.
1762 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1763 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1764 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1765 fimplicit-inline-templates, fimplicit-templates,
1766 flax-vector-conversions, fms-extensions, fnil-receivers,
1767 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1768 frtti, fshort-double, fshort-enums, fshort-wchar,
1769 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1770 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1771 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1772 gen-decls, undef): Use Var.
1773 (fdefault-inline, foptional-diags): Document as doing nothing.
1774 * c-opts.c (c_common_handle_option): Remove cases for options now
1775 using Var. Mark ignored options as such.
1777 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1779 * c-common.c: Moved to here from parent directory.
1780 * c-common.def: Likewise.
1781 * c-common.h: Likewise.
1782 * c-cppbuiltin.c: Likewise.
1783 * c-dump.c: Likewise.
1784 * c-format.c: Likewise.
1785 * c-format.h : Likewise.
1786 * c-gimplify.c: Likewise.
1787 * c-lex.c: Likewise.
1788 * c-omp.c: Likewise.
1790 * c-opts.c: Likewise.
1791 * c-pch.c: Likewise.
1792 * c-ppoutput.c: Likewise.
1793 * c-pragma.c: Likewise.
1794 * c-pragma.h: Likewise.
1795 * c-pretty-print.c: Likewise.
1796 * c-pretty-print.h: Likewise.
1797 * c-semantics.c: Likewise.
1798 * stub-objc.c: Likewise.
1800 * c-common.c: Include gt-c-family-c-common.h.
1801 * c-pragma.c: Include gt-c-family-c-pragma.h.
1803 Copyright (C) 2010, 2011 Free Software Foundation, Inc.
1805 Copying and distribution of this file, with or without modification,
1806 are permitted in any medium without royalty provided the copyright
1807 notice and this notice are preserved.