1 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
4 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
5 use pp_unsigned_wide_integer.
7 2012-01-10 Richard Guenther <rguenther@suse.de>
10 * c-opts.c (c_common_handle_option): Move -Werror handling
11 to language independent code.
13 2012-01-05 Richard Guenther <rguenther@suse.de>
16 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
19 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
22 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
23 of array types with an unknown bound.
25 2011-12-20 Joseph Myers <joseph@codesourcery.com>
27 * c-common.c (flag_isoc99): Update comment to refer to C11.
28 (flag_isoc1x): Change to flag_isoc11.
29 * c-common.h (flag_isoc99): Update comment to refer to C11.
30 (flag_isoc1x): Change to flag_isoc11.
31 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
33 * c-opts.c (set_std_c1x): Change to set_std_c11.
34 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
36 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
37 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
38 * c.opt (std=c1x): Change to std=c11. Document as non-draft
40 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
41 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
42 (std=gnu1x): Make alias of std=gnu11.
44 2011-12-19 Jason Merrill <jason@redhat.com>
47 * c-common.c (handle_transparent_union_attribute): Check the first
48 field if the type is complete.
50 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
53 * c-common.c (RID_IS_FINAL): Add.
54 * c-common.h (RID_IS_FINAL): Add.
56 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
58 * c.opt (fgnu-runtime): Provide full description.
59 (fnext-runtime): Likewise.
60 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
62 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
64 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
65 predefines in one place. Add LOCK_FREE predefines.
66 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
69 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
72 * c-common.c (get_atomic_generic_size): Check for various error
74 (resolve_overloaded_atomic_exchange,
75 resolve_overloaded_atomic_compare_exchange,
76 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
77 error_mark_node for error conditions.
79 2011-11-08 Richard Guenther <rguenther@suse.de>
84 2011-11-07 Richard Henderson <rth@redhat.com>
85 Aldy Hernandez <aldyh@redhat.com>
86 Torvald Riegel <triegel@redhat.com>
88 Merged from transactional-memory.
90 * c-common.c (handle_tm_wrap_attribute,
91 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
92 (struct c_common_reswords): Added __transaction* keywords.
93 (struct c_common_attribute_table): Added transaction* and tm_regparm
95 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
97 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
98 find_tm_attribute): Declare.
100 2011-11-07 Jason Merrill <jason@redhat.com>
103 * c-common.c, c-common.h: Revert yesterday's changes.
105 2011-11-06 Jason Merrill <jason@redhat.com>
108 * c-common.c (decl_has_visibility_attr): Split out from...
109 (c_determine_visibility): ...here.
110 * c-common.h: Declare it.
112 2011-11-06 Joseph Myers <joseph@codesourcery.com>
114 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
115 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
117 (check_user_alignment): New. Split out of
118 handle_aligned_attribute. Disallow integer constants with
119 noninteger types. Conditionally allow zero.
120 (handle_aligned_attribute): Use check_user_alignment.
121 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
123 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
124 Richard Henderson <rth@redhat.com>
126 Merged from cxx-mem-model.
128 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
129 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
130 parameters that are the same type size.
131 (get_atomic_generic_size): New. Find size of generic
132 atomic function parameters and do typechecking.
133 (add_atomic_size_parameter): New. Insert size into parameter list.
134 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
135 either __atomic_exchange_n or external library call.
136 (resolve_overloaded_atomic_compare_exchange): Restructure
137 __atomic_compare_exchange to either _n variant or external library call.
138 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
139 __atomic_load_n or an external library call.
140 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
141 __atomic_store_n or an external library call.
142 (resolve_overloaded_builtin): Handle new __atomic builtins.
144 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
147 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
148 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
149 <INDIRECT_REF>: Return the argument.
150 <ARRAY_REF>: Remove special code for negative offset.
151 Call fold_build_pointer_plus instead of size_binop.
152 (fold_offsetof): Remove STOP_REF argument and adjust.
153 * c-common.h (fold_offsetof_1): Declare.
154 (fold_offsetof): Remove STOP_REF argument.
156 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
159 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
160 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
161 Wnarrowing for C++0x and C++98.
162 * c.opt ([Wnarrowing]): Update.
164 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
167 * c.opt: Add Wzero-as-null-pointer-constant.
169 2011-10-31 Jason Merrill <jason@redhat.com>
171 * c.opt (-fdeduce-init-list): Off by default.
174 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
175 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
177 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
179 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
182 * c.opt (fvisibility-inlines-hidden): Description change.
184 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
186 Implement C++11 user-defined literals.
187 * c-common.c (build_userdef_literal): New.
188 * c-common.def: New tree code.
189 * c-common.h (tree_userdef_literal): New tree struct and accessors.
190 * c-lex.c (interpret_float): Add suffix parm.
191 (c_lex_with_flags): Build literal tokens.
193 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
197 2011-10-23 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-10-23 Paolo Carlini <paolo.carlini@oracle.com>
208 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
209 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
210 Wnarrowing for C++0x and C++98.
211 * c.opt ([Wnarrowing]): Update.
213 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
216 * c-common.c (conversion_warning): Remove code looking for
219 2011-10-18 Dodji Seketeli <dodji@redhat.com>
222 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
223 !NO_IMPLICIT_EXTERN_C.
225 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
227 * c-common.c (c_common_reswords): Add __bases,
229 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
231 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
234 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
236 2011-10-15 Tom Tromey <tromey@redhat.com>
237 Dodji Seketeli <dodji@redhat.com>
239 * c.opt (fdebug-cpp): New option.
240 * c-opts.c (c_common_handle_option): Handle the option.
241 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
242 output stream in parameter. Factorized from ...
243 (maybe_print_line): ... this. Dump location debug information when
244 -fdebug-cpp is in effect.
245 (print_line_1): New static function. Takes an output stream in
246 parameter. Factorized from ...
247 (print_line): ... here. Dump location information when -fdebug-cpp
249 (scan_translation_unit): Dump location information when
250 -fdebug-cpp is in effect.
252 2011-10-15 Tom Tromey <tromey@redhat.com>
253 Dodji Seketeli <dodji@redhat.com>
255 * c.opt (ftrack-macro-expansion): New option. Handle it with and
257 * c-opts.c (c_common_handle_option)<case
258 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
259 cases. Handle -ftrack-macro-expansion with and without argument.
261 2011-10-15 Tom Tromey <tromey@redhat.com>
262 Dodji Seketeli <dodji@redhat.com>
264 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
265 (print_line, cb_define, do_line_change): Adjust to avoid touching
266 the internals of struct line_map. Use the public API instead.
267 * c-pch.c (c_common_read_pch): Likewise.
268 * c-lex.c (fe_file_change): Likewise.
270 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
273 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
275 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
278 * c-pretty-print.c (pp_c_floating_constant): Output
279 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
281 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
283 * c-common.c (def_builtin_1): Delete old interface with two
284 parallel arrays to hold standard builtin declarations, and replace
285 it with a function based interface that can support creating
286 builtins on the fly in the future. Change all uses, and poison
287 the old names. Make sure 0 is not a legitimate builtin index.
288 * c-omp.c (c_finish_omp_barrier): Ditto.
289 (c_finish_omp_taskwait): Ditto.
290 (c_finish_omp_flush): Ditto.
292 2011-10-11 Tristan Gingold <gingold@adacore.com>
294 * c.opt: (fallow-parameterless-variadic-functions): New.
296 2011-09-08 Dodji Seketeli <dodji@redhat.com>
298 PR c++/33255 - Support -Wunused-local-typedefs warning
299 * c-common.h (struct c_language_function::local_typedefs): New
301 (record_locally_defined_typedef, maybe_record_typedef_use)
302 (maybe_warn_unused_local_typedefs): Declare new functions.
303 * c-common.c (record_locally_defined_typedef)
304 (maybe_record_typedef_use)
305 (maybe_warn_unused_local_typedefs): Define new functions.
306 * c.opt: Declare new -Wunused-local-typedefs flag.
308 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
311 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
314 2011-09-05 Richard Guenther <rguenther@suse.de>
316 * c-common.c (complete_array_type): Use ssize_int (-1) instead
317 of integer_minus_one_node for empty array upper bounds.
319 2011-08-28 Dodji Seketeli <dodji@redhat.com>
321 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
322 it's the first time it's being called on this main TU.
324 2011-08-24 Richard Guenther <rguenther@suse.de>
327 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
329 2011-08-22 Gabriel Charette <gchare@google.com>
331 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
332 defined in cpp_init_builtins and c_cpp_builtins.
334 2011-08-19 Joseph Myers <joseph@codesourcery.com>
336 * c-common.c (c_common_reswords): Add __builtin_complex.
337 * c-common.h (RID_BUILTIN_COMPLEX): New.
339 2011-08-18 Joseph Myers <joseph@codesourcery.com>
341 * c-common.c (c_common_reswords): Add _Noreturn.
342 (keyword_is_function_specifier): Handle RID_NORETURN.
343 * c-common.h (RID_NORETURN): New.
345 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
347 * c-common.c (unsafe_conversion_p): New function. Check if it is
348 unsafe to convert an expression to the type.
349 (conversion_warning): Adjust, use unsafe_conversion_p.
350 * c-common.h (unsafe_conversion_p): New function declaration.
352 2011-08-02 Jakub Jelinek <jakub@redhat.com>
354 * c-common.h (c_finish_omp_atomic): Adjust prototype.
355 (c_finish_omp_taskyield): New prototype.
356 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
357 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
358 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
359 or RHS1 have side-effects, evaluate those too in the right spot,
360 if it is a decl and LHS is also a decl, error out if they
362 (c_finish_omp_taskyield): New function.
363 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
364 * c-pragma.c (omp_pragmas): Add taskyield.
365 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
366 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
367 PRAGMA_OMP_CLAUSE_MERGEABLE.
369 2011-07-25 Dodji Seketeli <dodji@redhat.com>
371 * c-common.h (set_underlying_type): Remove parm name from
374 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
376 * c-pretty-print.h: Search c-common.h in c-family.
378 2011-07-22 Jason Merrill <jason@redhat.com>
381 * c.opt (Wnarrowing): New.
384 * c-common.h: Declare c_linkage_bindings.
385 * c-pragma.c (handle_pragma_redefine_extname): Use it.
388 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
389 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
390 as flag_isoc99 for 'restrict'.
391 (pp_c_specifier_qualifier_list): Likewise for _Complex.
393 2011-07-21 Ian Lance Taylor <iant@google.com>
396 * c-common.c (c_disable_warnings): New static function.
397 (c_enable_warnings): New static function.
398 (c_fully_fold_internal): Change local unused_p to bool. Call
399 c_disable_warnings and c_enable_warnings rather than change
400 c_inhibit_evaluation_warnings.
402 2011-07-20 Jason Merrill <jason@redhat.com>
405 PR c++/42603 (DR 950)
406 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
407 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
409 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
411 2011-07-19 Richard Guenther <rguenther@suse.de>
413 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
414 * c-omp.c (c_finish_omp_for): Likewise.
416 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
418 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
419 body on the next line.
421 2011-07-08 Jason Merrill <jason@redhat.com>
424 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
427 * c-common.c (c_apply_type_quals_to_decl): Don't check
428 TYPE_NEEDS_CONSTRUCTING.
430 2011-07-06 Richard Guenther <rguenther@suse.de>
432 * c-common.c (c_common_nodes_and_builtins):
433 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
435 2011-07-05 Richard Guenther <rguenther@suse.de>
437 * c-common.c (c_common_nodes_and_builtins): Build all common
440 2011-06-27 Jakub Jelinek <jakub@redhat.com>
442 * c-common.h (c_tree_chain_next): New static inline function.
444 * c-common.c (check_builtin_function_arguments): Handle
445 BUILT_IN_ASSUME_ALIGNED.
447 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
449 * c-common.c: Add sync_ or SYNC__ to builtin names.
450 * c-omp.c: Add sync_ or SYNC__ to builtin names.
452 2011-06-20 Pierre Vittet <piervit@pvittet.com>
454 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
456 (gen_pragma_handler): New union.
457 (internal_pragma_handler): New type.
458 (c_register_pragma_with_data)
459 (c_register_pragma_with_expansion_and_data): New functions.
461 * c-pragma.c (registered_pragmas, c_register_pragma_1)
462 (c_register_pragma, c_register_pragma_with_expansion)
463 (c_invoke_pragma_handler): Changed to work with
464 internal_pragma_handler.
465 (c_register_pragma_with_data)
466 (c_register_pragma_with_expansion_and_data): New functions.
468 2011-06-14 Joseph Myers <joseph@codesourcery.com>
470 * c-common.c: Include common/common-target.h.
471 (handle_section_attribute): Use
472 targetm_common.have_named_sections.
473 * c-cppbuiltin.c: Include common/common-target.h.
474 (c_cpp_builtins): Use targetm_common.except_unwind_info.
476 2011-06-10 Richard Guenther <rguenther@suse.de>
478 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
479 to print a IDENTIFIER_NODE.
481 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
482 Joseph Myers <joseph@codesourcery.com>
484 * c.opt (fbuilding-libgcc): New option.
485 * c-cppbuiltin.c (c_cpp_builtins): Define
486 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
488 2011-06-07 Jason Merrill <jason@redhat.com>
490 * c-common.c (max_tinst_depth): Lower default to 900.
492 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
494 2011-06-07 Richard Guenther <rguenther@suse.de>
496 * c-common.c (c_common_nodes_and_builtins): Do not set
497 size_type_node or call set_sizetype.
499 2011-06-07 Dodji Seketeli <dodji@redhat.com>
502 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
503 type when using pointer comparison to compare types.
505 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
507 * c.opt: Add -Wdelete-non-virtual-dtor.
508 * c-opts.c (c_common_handle_option): Include it in -Wall.
510 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
515 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
517 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
520 2011-05-27 Jakub Jelinek <jakub@redhat.com>
523 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
524 C++ don't call c_common_truthvalue_conversion on void type arms.
526 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
528 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
529 (stmt_list_stack): Define.
530 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
531 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
533 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
535 * c-common.c (warning_candidate_p): Check for BLOCKs.
537 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
539 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
542 2011-05-25 Jakub Jelinek <jakub@redhat.com>
544 * c-common.c (def_fn_type): Remove extra va_end.
546 2011-05-23 Jason Merrill <jason@redhat.com>
549 * c-common.c (c_common_get_narrower): New.
550 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
552 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
554 * c-common.h (check_function_arguments): Tweak prototype of
555 check_function_arguments.
556 * c-common.c (check_function_arguments): Likewise. Adjust
557 calls to check_function_nonnull, check_function_format, and
558 check_function_sentinel.
559 (check_function_sentinel): Take a FUNCTION_TYPE rather than
560 separate attributes and typelist arguments. Use
561 FOREACH_FUNCTION_ARGS to iterate over argument types.
563 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
565 * c-common.c (c_common_reswords): Reorder.
566 * c-common.h (rid): Likewise.
568 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
570 * c-common.c (def_fn_type): Don't call build_function_type, call
571 build_function_type_array or build_varargs_function_type_array
573 (c_common_nodes_and_builtins): Likewise.
575 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
577 * c-common.c (c_add_case_label): Omit the loc argument to
579 * c-common.h (build_case_label): Remove.
580 * c-semantics.c (build_case_label): Remove.
582 2011-05-05 Joseph Myers <joseph@codesourcery.com>
584 * c-objc.h (objc_start_method_definition): Update prototype.
585 * stub-objc.c (objc_start_method_definition): Add extra parameter.
587 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
589 * c-common.c (check_main_parameter_types): Reindent. Don't use
590 TYPE_ARG_TYPES directly.
591 (handle_nonnull_attribute): Likewise.
592 (sync_resolve_params): Likewise.
593 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
594 to check_format_string.
595 (handle_format_attribute): Likewise.
596 (check_format_string): Take a function type to examine instead of
597 a type list. Use a function_arg_iterator to step through argument
600 2011-05-04 Richard Guenther <rguenther@suse.de>
602 * c-common.c (fix_string_type): Use size_int for index type bounds.
603 (start_fname_decls): Do not pass NULL to build_int_cst.
604 (c_init_attributes): Likewise.
605 * c-lex.c (c_lex_with_flags): Likewise.
607 2011-04-27 Jason Merrill <jason@redhat.com>
609 * c-common.c (make_tree_vector_from_list): New.
610 * c-common.h: Declare it.
612 2011-04-26 Richard Guenther <rguenther@suse.de>
614 PR preprocessor/48248
615 * c-ppoutput.c (maybe_print_line): Always optimize newlines
616 for output size with -P.
618 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
620 * c-common.c (struct c_common_resword): Add __underlying_type.
621 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
623 2011-04-20 Jim Meyering <meyering@redhat.com>
625 * c-format.c (init_dollar_format_checking): Remove useless
628 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
630 * c-objc.h (objc_get_interface_ivars): Removed.
631 (objc_detect_field_duplicates): New.
632 * stub-objc.c: Likewise.
634 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
636 * stub-objc.c (objc_declare_protocols): Renamed to
637 objc_declare_protocol.
638 * c-objc.h: Likewise.
640 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
642 * stub-objc.c (objc_declare_class): Updated argument name.
644 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
646 * c-common.h (c_common_init_ts): Declare.
647 * c-common.c (c_common_init_ts): Define.
649 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
651 * c-objc.h (objc_build_message_expr): Updated prototype.
652 * stub-objc.c (objc_build_message_expr): Likewise.
654 2011-04-12 Martin Jambor <mjambor@suse.cz>
656 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
659 2011-04-11 Richard Guenther <rguenther@suse.de>
661 * c-common.c (complete_array_type): Build a range type of
664 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
666 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
667 (handle_type_generic_attribute): Likewise.
669 2011-04-07 Jason Merrill <jason@redhat.com>
672 * c-common.c (c_common_truthvalue_conversion): Don't ignore
673 conversion from C++0x scoped enum.
675 2011-04-06 Joseph Myers <joseph@codesourcery.com>
677 * c-target-def.h: New file.
678 * c-target.def: New file.
679 * c-target.h: New file.
680 * c-common.c (targetcm): Don't define here.
681 * c-common.h (default_handle_c_option): Declare.
682 * c-format.c: Include c-target.h instead of target.h.
683 * c-opts.c: Include c-target.h instead of target.h. Explicitly
685 (default_handle_c_option): Move from targhooks.c.
687 2011-03-29 Jakub Jelinek <jakub@redhat.com>
689 PR preprocessor/48248
690 * c-ppoutput.c (print): Add src_file field.
691 (init_pp_output): Initialize it.
692 (maybe_print_line): Don't optimize by adding up to 8 newlines
693 if map->to_file and print.src_file are different file.
694 (print_line): Update print.src_file.
696 2011-03-25 Kai Tietz <ktietz@redhat.com>
698 * c-ada-spec.c (compare_comment): Use filename_cmp
699 instead of strcmp for filename.
701 2011-03-25 Jeff Law <law@redhat.com>
703 * c-family/c-common.c (def_fn_type): Add missing va_end.
705 2011-03-25 Jason Merrill <jason@redhat.com>
707 * c.opt: Add -std=c++03.
709 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
711 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
716 * c-pretty-print.c (pp_c_specifier_qualifier_list):
717 Display allowed attributes for function pointer types.
718 (pp_c_attributes_display): New function to display
719 attributes having affects_type_identity flag set to true.
720 * c-pretty-print.h (pp_c_attributes_display): New prototype.
722 * c-common.c (c_common_attribute_table):
724 (c_common_format_attribute_table): Likewise.
726 2011-03-18 Jason Merrill <jason@redhat.com>
728 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
729 * c-common.h: Don't declare it here.
730 * c-common.c: Or define it here.
731 * c-opts.c (c_common_handle_option): Or set it here.
734 * c-common.c (handle_transparent_union_attribute): Don't
735 make a duplicate type in C++.
737 2011-03-15 Jason Merrill <jason@redhat.com>
739 * c-common.c (max_constexpr_depth): New.
740 * c-common.h: Declare it.
741 * c-opts.c (c_common_handle_option): Set it.
742 * c.opt (fconstexpr-depth): New option.
744 2011-03-11 Jason Merrill <jason@redhat.com>
746 * c-common.c (attribute_takes_identifier_p): Add missing const.
749 * c-common.c (attribute_takes_identifier_p): Assume that an
750 unknown attribute takes an identifier.
752 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
755 * c-common.c (c_type_hash): Call list_length instead of iterating
756 through DECL_CHAIN. Rename 'i' to 'n_elements'.
758 2011-02-19 Jakub Jelinek <jakub@redhat.com>
761 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
763 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
765 * c.opt (fobjc-abi-version=) New.
766 (fobjc-nilcheck): New.
768 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
771 * c-common.h (keyword_is_decl_specifier): Declare.
772 * c-common.c (keyword_is_decl_specifier): Define.
773 (keyword_is_function_specifier): New function.
775 2011-01-26 Jakub Jelinek <jakub@redhat.com>
778 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
779 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
782 2011-01-26 Arnaud Charlet <charlet@adacore.com>
784 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
786 2011-01-26 Jakub Jelinek <jakub@redhat.com>
789 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
790 after init_c_lex if pch_file is set.
792 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
795 * c.opt (-fkeep-inline-dllexport): New switch.
797 2011-01-12 Richard Guenther <rguenther@suse.de>
800 * c-common.c (handle_weak_attribute): Warn instead of error
801 on declaring an inline function weak.
803 2011-01-05 Tom Tromey <tromey@redhat.com>
805 * c-common.h (lvalue_error): Update.
806 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
809 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
812 * c-objc.h (objc_finish_message_expr): Added argument to
815 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
817 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
820 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
822 * c-objc.h (objc_maybe_warn_exceptions): New.
823 * stub-objc.c (objc_maybe_warn_exceptions): New.
825 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
827 * c-common.h (readonly_error): Declare.
828 * c-common.c (readonly_error): Define.
830 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
832 * c-common.h (invalid_indirection_error): Declare.
833 * c-common.c (invalid_indirection_error): Define.
835 2010-12-03 Richard Guenther <rguenther@suse.de>
838 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
839 (pp_c_unary_expression): Likewise.
840 (pp_c_expression): Likewise.
842 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
844 * c-common.h (objc_finish_function): New.
845 (objc_non_volatilized_type): Removed.
846 (objc_type_quals_match): Removed.
847 * stub-objc.c (objc_finish_function): New.
848 (objc_non_volatilized_type): Removed.
849 (objc_type_quals_match): Removed.
851 2010-11-30 Joseph Myers <joseph@codesourcery.com>
853 * c-common.h (parse_optimize_options): Declare.
854 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
855 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
857 2010-11-29 Joseph Myers <joseph@codesourcery.com>
859 * c-opts.c (check_deps_environment_vars): Use getenv instead of
861 * c-pch.c (O_BINARY): Don't define here.
862 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
864 2010-11-25 Joseph Myers <joseph@codesourcery.com>
866 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
867 targetm.except_unwind_info.
869 2010-11-23 Joseph Myers <joseph@codesourcery.com>
871 * c-opts.c (c_common_handle_option): Pass location to
872 set_struct_debug_option.
874 2010-11-23 Joseph Myers <joseph@codesourcery.com>
876 * c-common.c (visibility_options): Move from ../opts.c.
877 * c-common.h (struct visibility_flags, visibility_options):
879 * c-opts.c (finish_options): Rename to c_finish_options.
880 (c_common_init): Update call to finish_options.
882 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
885 * c-lex.c (lex_string): Check that each string in an Objective-C
886 string concat sequence starts with either one or zero '@', and
887 that there are no spurious '@' signs at the end.
889 2010-11-20 Joseph Myers <joseph@codesourcery.com>
891 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
892 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
893 HANDLE_PRAGMA_VISIBILITY.
894 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
895 HANDLE_PRAGMA_VISIBILITY): Don't define.
896 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
898 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
903 * c-common.h (keyword_begins_type_specifier): Declare.
904 (keyword_is_storage_class_specifier): Declare.
905 (keyword_is_type_qualifier): Declare.
906 * c-common.c (keyword_begins_type_specifier): New function.
907 (keyword_is_storage_class_specifier): New function.
908 (keyword_is_type_qualifier): Declare.
910 2010-11-19 Joseph Myers <joseph@codesourcery.com>
913 * c-common.c (in_late_binary_op): Define.
914 (c_common_truthvalue_conversion): Check in_late_binary_op before
916 * c-common.h (in_late_binary_op): Declare.
918 2010-11-19 Joseph Myers <joseph@codesourcery.com>
920 * c-opts.c (c_common_handle_option): Update calls to
921 set_struct_debug_option.
923 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
925 * c-common.h (objc_declare_protocols): Added additional argument.
926 * stub-objc.c (objc_declare_protocol): Same change.
928 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
931 * c-common.h (build_real_imag_expr): Declare.
932 * c-semantics.c (build_real_imag_expr): Define.
934 2010-11-17 Joseph Myers <joseph@codesourcery.com>
936 * c-opts.c (c_common_parse_file): Take no arguments.
937 * c-common.h (c_common_parse_file): Update prototype.
939 2010-11-16 Jakub Jelinek <jakub@redhat.com>
942 * c-common.c (warning_candidate_p): Don't track non-const calls
945 2010-11-15 Ian Lance Taylor <iant@google.com>
947 * c-lex.c (init_c_lex): Set macro debug callbacks if
948 flag_dump_go_spec is set.
950 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
952 * c-common.h (objc_build_incr_expr_for_property_ref): New.
953 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
955 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
957 PR preprocessor/45038
958 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
961 2010-11-12 Joseph Myers <joseph@codesourcery.com>
963 * c-common.h (c_family_lang_mask): Declare.
964 * c-opts.c (c_family_lang_mask): Make extern.
965 * c-pragma.c (handle_pragma_diagnostic): Use
966 control_warning_option.
968 2010-11-12 Joseph Myers <joseph@codesourcery.com>
970 * c-common.c (parse_optimize_options): Update call to
972 * c-common.h (c_common_handle_option): Update prototype.
973 * c-opts.c (c_common_handle_option): Take location_t parameter and
974 pass it to other functions.
976 2010-11-11 Joseph Myers <joseph@codesourcery.com>
978 * c-opts.c (warning_as_error_callback): Remove.
979 (c_common_initialize_diagnostics): Don't call
980 register_warning_as_error_callback.
981 (c_common_handle_option): Handle -Werror=normalized= here.
983 2010-11-10 Joseph Myers <joseph@codesourcery.com>
985 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
987 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
989 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
990 Remove trailing '.' from diagnostics.
991 * c.opt (Wwrite-strings_: Avoid '`' in help text.
993 2010-11-10 Joseph Myers <joseph@codesourcery.com>
995 * c-common.c (parse_optimize_options): Pass global_dc to
997 * c-opts.c (c_common_handle_option): Pass &global_options to
998 set_Wstrict_aliasing.
999 * c.opt (v): Don't mark Common or document here.
1001 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1004 * c-format.c (format_type): New type gcc_objc_string_format_type.
1005 (valid_stringptr_type_p): New.
1006 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1007 (check_format_string): Pass expected type, use
1008 valid_stringptr_type_p (), check that the format string types are
1009 consistent with the format specification.
1010 (decode_format_attr): Warn if NSString is used outside objective-c.
1011 (format_types_orig): Add NSString.
1013 (format_flags): New.
1014 (check_format_arg): Handle format strings requiring an external parser.
1015 first_target_format_type: New variable.
1016 (handle_format_attribute): Set up first_target_format_type, pass the
1017 expected format arg string type to check_format_string().
1018 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1019 * stub-objc.c (objc_string_ref_type_p): New.
1020 (objc_check_format_arg): New.
1022 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1024 Fixed using the Objective-C 2.0 dot-syntax with class names.
1025 * c-common.h (objc_build_class_component_ref): New.
1026 * stub-objc.c (objc_build_class_component_ref): New.
1028 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1030 * c.opt (Wproperty-assign-default): New option.
1032 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1034 Implemented -fobjc-std=objc1 flag.
1035 * c.opt (fobjc-std=objc1): New option.
1037 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1039 Implemented format and noreturn attributes for Objective-C methods.
1040 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1041 attribute for Objective-C methods.
1043 2010-10-31 Jason Merrill <jason@redhat.com>
1045 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1048 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1050 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1051 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1052 (objc_add_property_declaration): Removed arguments for copies and
1054 (objc_build_getter_call): Renamed to
1055 objc_maybe_build_component_ref.
1056 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1057 (objc_is_property_ref): New.
1058 * c-common.c (c_common_reswords): Removed copies and ivar.
1059 * stub-objc.c (objc_add_property_declaration): Removed arguments
1060 for copies and ivar.
1061 (objc_build_getter_call): Renamed to
1062 objc_maybe_build_component_ref.
1063 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1064 (objc_is_property_ref): New.
1066 2010-10-29 Arnaud Charlet <charlet@adacore.com>
1067 Matthew Gingell <gingell@adacore.com>
1069 * c-ada-spec.c (separate_class_package): New function.
1070 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1071 name of their enclosing package.
1072 (print_ada_declaration): Use separate_class_package.
1074 2010-10-27 Jason Merrill <jason@redhat.com>
1076 * c-common.c (c_common_reswords): Add __is_literal_type.
1077 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1079 * c-common.c (check_case_value): Remove special C++ code.
1081 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1083 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1084 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1086 (objc_add_property_declaration): Added additional arguments.
1087 (objc_property_attribute_kind): Removed.
1088 (objc_set_property_attr): Removed.
1089 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1091 * stub-objc.c (objc_add_property_declaration): Added additional
1093 (objc_set_property_attr): Removed.
1095 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1097 * c-common.h (objc_add_property_variable): Renamed to
1098 objc_add_property_declaration. Added location argument.
1099 * stub-objc.c (objc_add_property_variable): Same change.
1101 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1103 * c-common.h (objc_maybe_printable_name): New.
1104 * stub-objc.c (objc_maybe_printable_name): New.
1106 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1107 Andrew Pinski <pinskia@gmail.com>
1109 * c-common.h (c_common_mark_addressable_vec): Declare.
1110 * c-common.c (c_common_mark_addressable_vec): New function.
1112 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1114 * c-common.h (objc_set_method_type): Removed.
1115 (objc_add_method_declaration): Added boolean argument.
1116 (objc_start_method_definition): Same change.
1117 (objc_build_method_signature): Same change.
1118 * stub-objc.c (objc_set_method_type): Removed.
1119 (objc_add_method_declaration): Added boolean argument.
1120 (objc_start_method_definition): Same change.
1121 (objc_build_method_signature): Same change.
1123 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1125 * c-common.h (finish_file): Removed.
1126 (objc_write_global_declarations): New.
1127 * c-opts.c (c_common_parse_file): Do not call finish_file.
1128 * stub-objc.c (objc_write_global_declarations): New.
1130 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1132 Implemented parsing @synthesize and @dynamic for
1133 Objective-C/Objective-C++.
1134 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1135 (objc_add_synthesize_declaration): New.
1136 (objc_add_dynamic_declaration): New.
1137 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1138 * stub-objc.c (objc_add_synthesize_declaration): New.
1139 (objc_add_dynamic_declaration): New.
1141 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1144 * c-cppbuiltin.c (mode_has_fma): Move function here from
1145 builtins.c. Don't use the fma optab, instead just use the
1146 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1149 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1151 Merge from 'apple/trunk' branch on FSF servers.
1153 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1156 * c-common.h (objc_non_volatilized_type): New declaration
1157 * stub-objc.c (objc_non_volatilized_type): New stub.
1159 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1161 Merge from 'apple/trunk' branch on FSF servers.
1163 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1166 * c-common.h (objc_diagnose_private_ivar): New decl.
1167 * stub-objc.c (objc_diagnose_private_ivar): New stub.
1169 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1171 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1172 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1173 (objc_ivar_visibility_kind): New enum.
1174 (objc_set_visibility): Adjust prototype to use visibility enum.
1175 * stub-objc.c (objc_set_visibility): Adjust stub to use
1178 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1180 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1181 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1182 has the appropriate fma builtins.
1183 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1185 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1187 merge from FSF apple 'trunk' branch.
1188 2006 Fariborz Jahanian <fjahanian@apple.com>
1190 Radars 4436866, 4505126, 4506903, 4517826
1191 * c-common.c (c_common_resword): Define @property and its attributes.
1192 * c-common.h: Define property attribute enum entries.
1193 (OBJC_IS_PATTR_KEYWORD): New.
1194 (objc_property_attribute_kind): New enum.
1195 Declare objc_set_property_attr (), objc_add_property_variable (),
1196 objc_build_getter_call () and objc_build_setter_call ().
1197 * stub-objc.c (objc_set_property_attr): New stub.
1198 (objc_add_property_variable): Likewise.
1199 (objc_build_getter_call): Likewise.
1200 (objc_build_setter_call) Likewise.
1202 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1204 merge from FSF apple 'trunk' branch.
1205 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1207 Radar 3803157 (method attributes)
1208 * c-common.c (handle_deprecated_attribute): Recognize
1209 objc methods as valid declarations.
1210 * c-common.h: Declare objc_method_decl ().
1211 * stub-objc.c (objc_method_decl): New stub.
1213 2010-10-08 Joseph Myers <joseph@codesourcery.com>
1215 * c-common.c (parse_optimize_options): Call
1216 decode_cmdline_options_to_array_default_mask before
1217 decode_options. Update arguments to decode_options.
1218 * c-common.h (c_common_init_options_struct): Declare.
1219 * c-opts.c (c_common_init_options_struct): New. Split out from
1220 c_common_init_options.
1222 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1224 Implemented fast enumeration for Objective-C.
1225 * c-common.h (objc_finish_foreach_loop): New.
1226 * stub-objc.c (objc_finish_foreach_loop): New.
1228 2010-10-05 Joseph Myers <joseph@codesourcery.com>
1230 * c-common.h (struct diagnostic_context): Don't declare here.
1231 (c_common_initialize_diagnostics): Declare using
1232 diagnostic_context typedef.
1233 * c-opts.c (c_common_handle_option): Pass global_dc to
1234 handle_generated_option.
1236 2010-10-04 Joseph Myers <joseph@codesourcery.com>
1238 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1239 handle_generated_option.
1241 2010-10-03 Ian Lance Taylor <iant@google.com>
1243 * c.opt (-fplan9-extensions): New option.
1245 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1247 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1249 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1250 of duplicating code.
1252 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1254 * c-common.c: Add two new entries for @optional
1255 and @required keywords.
1257 merge from FSF 'apple/trunk' branch.
1258 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1261 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1262 objective-c keywords.
1263 (objc_set_method_opt): New declaration.
1264 * stub-objc.c (objc_set_method_opt): New stub.
1266 2010-09-30 Joseph Myers <joseph@codesourcery.com>
1268 * c-common.c (handle_optimize_attribute): Pass &global_options to
1269 cl_optimization_save and cl_optimization_restore.
1270 * c-opts.c (c_common_handle_option): Pass &global_options to
1271 handle_generated_option.
1272 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1273 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1274 &global_options to cl_optimization_restore.
1276 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1278 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1279 Objective-C/Objective-C++ keywords.
1281 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1283 Merge from 'apple/trunk' branch on FSF servers.
1285 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1288 * c-common.h (objc_check_global_decl): New declaration.
1289 * stub-objc.c (objc_check_global_decl): New stub.
1291 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1293 * c.opt: Don't use VarExists.
1295 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1297 * c-common.c (c_cpp_error): Update names of diagnostic_context
1299 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1300 cl_optimization members.
1301 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1302 sanitize_cpp_opts, finish_options): Update names of cpp_options
1305 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1307 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1308 (objc_is_reserved_word): Removed.
1309 * c-common.c: Updated comments.
1310 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1311 objc_is_reserved_word.
1312 * stub-objc.c (objc_is_reserved_word): Removed.
1314 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1316 * c-common.h (objc_add_method_declaration): Adjust prototype to
1318 (objc_start_method_definition): Likewise.
1319 (objc_build_keyword_decl): Likewise.
1320 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1321 (objc_start_method_definition): Likewise.
1322 (objc_build_keyword_decl): Likewise.
1324 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1326 * c-common.h (objc_start_class_interface): Adjust prototype.
1327 (objc_start_category_interface): Likewise.
1328 (objc_start_protocol): Likewise.
1329 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1330 (objc_start_class_interface): Likewise.
1331 (objc_start_category_interface): Likewise.
1333 2010-09-27 Ian Lance Taylor <iant@google.com>
1335 * c-common.c (c_common_attribute_table): Add no_split_stack.
1336 (handle_no_split_stack_attribute): New static function.
1338 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1340 Merge from 'apple/trunk' branch on FSF servers.
1342 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1345 * c-common.h (objc_have_common_type): New declaration.
1346 * stub-objc.c (objc_have_common_type): New stub.
1348 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1351 * c-common.h (objc_common_type): New prototype.
1352 * stub-objc.c (objc_common_type): New stub.
1354 2010-09-24 Jan Hubicka <jh@suse.cz>
1356 * c-common.c (handle_leaf_attribute): New function.
1357 (struct attribute_spec c_common_att): Add leaf.
1359 2010-09-22 Joseph Myers <joseph@codesourcery.com>
1361 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1362 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1363 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1364 -include-barrier, -include-directory, -include-directory=,
1365 -include-directory-after, -include-directory-after=,
1366 -include-prefix, -include-prefix=, -include-with-prefix,
1367 -include-with-prefix=, -include-with-prefix-after,
1368 -include-with-prefix-after=, -include-with-prefix-before,
1369 -include-with-prefix-before=, -no-integrated-cpp,
1370 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1371 -output=, -pedantic, -pedantic-errors, -preprocess,
1372 -print-missing-file-dependencies, -trace-includes, -traditional,
1373 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1374 -user-dependencies, -verbose, -write-dependencies,
1375 -write-user-dependencies, no-integrated-cpp, traditional): New.
1377 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1380 * c-common.h (objc_start_method_definition): Return bool instead
1382 * stub-objc.c (objc_start_method_definition): Return bool instead
1385 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1388 * c-common.h (objc_get_interface_ivars): New declaration.
1389 * stub-objc.c (objc_get_interface_ivars): New stub.
1391 2010-09-15 Ian Lance Taylor <iant@google.com>
1393 * c-common.c (parse_optimize_options): Do not capitalize warning
1394 messages. Remove period at end of warning message.
1396 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1398 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1399 (handle_alias_attribute): ... here.
1400 (handle_ifunc_attribute): New.
1402 2010-09-06 Mark Mitchell <mark@codesourcery.com>
1404 * c-common.h (do_warn_double_promotion): Declare.
1405 * c-common.c (do_warn_double_promotion): Define.
1407 2010-09-05 Mark Mitchell <mark@codesourcery.com>
1409 * c.opt (Wdouble-promotion): New.
1411 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1413 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1414 fvtable-thunks, fxref): Mark no longer supported in help text.
1416 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1418 * c.opt (Wimport, fall-virtual, falt-external-templates,
1419 fdefault-inline, fenum-int-equiv, fexternal-templates,
1420 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1421 fname-mangling-version-, fnew-abi, fnonnull-objects,
1422 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1423 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1425 (fhandle-exceptions): Mark with Alias and Warn.
1426 * c-opts.c (c_common_handle_option): Don't handle options marked
1429 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1431 * c.opt (Wcomments, Werror-implicit-function-declaration,
1432 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1433 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1435 * c-common.c (option_codes): Use OPT_Wcomment instead of
1437 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1438 Don't handle options marked as aliases.
1440 2010-08-25 Richard Guenther <rguenther@suse.de>
1442 * c-common.c (c_common_get_alias_set): Remove special
1443 handling for pointers.
1445 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1447 * c-common.c: Use FOR_EACH_VEC_ELT.
1448 * c-gimplify.c: Likewise.
1449 * c-pragma.c: Likewise.
1451 2010-08-16 Joseph Myers <joseph@codesourcery.com>
1453 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1455 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1457 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1458 instead of OPT_MDX and OPT_MMDX.
1460 2010-08-16 Joseph Myers <joseph@codesourcery.com>
1462 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1464 2010-08-12 Joseph Myers <joseph@codesourcery.com>
1466 * c.opt (MD, MMD): Change to MDX and MMDX.
1467 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1469 2010-08-11 Joseph Myers <joseph@codesourcery.com>
1471 * c-opts.c (c_common_handle_option): Call handle_generated_option
1472 instead of handle_option.
1474 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1476 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1477 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1479 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1481 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1482 (pending_redefine_extname): Change type to a VEC.
1483 (add_to_renaming_pragma_list): Update for new type of
1484 pending_redefine_extname.
1485 (maybe_apply_renaming_pragma): Likewise.
1487 2010-08-04 Arnaud Charlet <charlet@adacore.com>
1489 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1491 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1492 decide whether a type has already been declared/seen.
1493 Do not go to the original type.
1494 (dump_nested_types): New parameter forward.
1495 Generate forward declaration if needed and mark type as visited.
1496 (print_ada_declaration): Call dump_nested_types if not already done.
1497 Mark types as visited.
1499 2010-08-03 Joseph Myers <joseph@codesourcery.com>
1501 * c.opt (-print-pch-checksum): Remove option.
1502 * c-opts.c (c_common_handle_option): Don't handle
1503 OPT_print_pch_checksum.
1505 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1507 * c-common.h (c_common_handle_option): Update prototype and return
1509 * c-opts.c (c_common_handle_option): Update prototype and return
1510 value type. Update calls to handle_option and
1511 enable_warning_as_error.
1513 2010-07-27 Jakub Jelinek <jakub@redhat.com>
1516 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1518 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1520 * c-common.h (c_common_missing_argument): Remove.
1521 * c-opts.c (c_common_missing_argument): Remove.
1522 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1523 idirafter, imacros, include, isysroot, isystem, iquote): Add
1525 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1527 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1529 * c-common.h (c_common_option_lang_mask,
1530 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1532 (c_common_init_options): Update prototype.
1533 * c-opts.c (c_common_option_lang_mask): New.
1534 (c_common_initialize_diagnostics): Split out of
1535 c_common_init_options.
1536 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1538 (c_common_init_options): Update prototype. Use decoded options in
1539 search for -lang-asm.
1541 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1543 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1544 * c-format.c: Likewise.
1546 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1548 * c-common.h: Include diagnostic-core.h. Error if already
1550 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1552 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1554 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1555 Do not include expr.h
1556 (vector_mode_valid_p): Move here.
1558 2010-06-21 DJ Delorie <dj@redhat.com>
1560 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1561 allow these pragmas anywhere.
1563 2010-06-14 Jakub Jelinek <jakub@redhat.com>
1566 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1567 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1568 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1569 ggc_strdup instead of xstrdup.
1571 2010-06-10 Jakub Jelinek <jakub@redhat.com>
1573 * c-cppbuiltin.c: Include cpp-id-data.h.
1574 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1575 (lazy_hex_fp_value): New function.
1576 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1578 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1580 * c-gimplify.c: Do not include tree-flow.h
1582 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1585 * c-common.c: Rename targetm member:
1586 targetm.enum_va_list -> targetm.enum_va_list_p
1588 2010-06-28 Anatoly Sokolov <aesok@post.ru>
1590 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1592 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1594 * c-cppbuiltin.c: Do not include except.h.
1596 2010-06-24 Andi Kleen <ak@linux.intel.com>
1598 * c-common.c (warn_for_omitted_condop): New.
1599 * c-common.h (warn_for_omitted_condop): Add prototype.
1601 2010-06-21 Joseph Myers <joseph@codesourcery.com>
1603 * c.opt (lang-objc): Remove.
1604 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1606 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1608 * c-opts.c: Include "tm_p.h".
1610 2010-06-20 Joseph Myers <joseph@codesourcery.com>
1612 * c-common.c (parse_optimize_options): Update call to
1615 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1617 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1618 new type of types_used_by_cur_var_decl.
1620 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1623 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1624 for C++ standard compliance.
1626 2010-06-16 Jason Merrill <jason@redhat.com>
1628 * c.opt: Add -Wnoexcept.
1630 2010-06-16 Richard Guenther <rguenther@suse.de>
1633 * c-common.c (c_common_truthvalue_conversion): Remove
1634 premature and wrong optimization concering ADDR_EXPRs.
1636 2010-06-15 Arnaud Charlet <charlet@adacore.com>
1638 * c-ada-spec.c (dump_sloc): Remove column info.
1639 (is_simple_enum): New function.
1640 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1641 enum types when relevant.
1643 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1645 * c-common.c (conversion_warning): Warn at expression
1648 2010-06-10 Joseph Myers <joseph@codesourcery.com>
1650 * c-opts.c (c_common_handle_option): Don't handle
1653 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1655 * c-pragma.c (push_alignment): Use typed GC allocation.
1656 (handle_pragma_push_options): Likewise.
1658 * c-common.c (parse_optimize_options): Likewise.
1660 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1663 2010-06-07 Joseph Myers <joseph@codesourcery.com>
1665 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1666 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1667 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1668 flag_signed_bitfields, warn_strict_null_sentinel,
1669 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1670 flag_gen_declaration, flag_no_gnu_keywords,
1671 flag_implement_inlines, flag_implicit_templates,
1672 flag_implicit_inline_templates, flag_optional_diags,
1673 flag_elide_constructors, flag_default_inline, flag_rtti,
1674 flag_conserve_space, flag_access_control, flag_check_new,
1675 flag_new_for_scope, flag_weak, flag_working_directory,
1676 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1677 flag_enforce_eh_specs, flag_threadsafe_statics,
1678 flag_pretty_templates): Remove.
1679 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1680 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1681 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1682 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1683 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1684 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1685 flag_no_gnu_keywords, flag_implement_inlines,
1686 flag_implicit_templates, flag_implicit_inline_templates,
1687 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1688 flag_rtti, flag_conserve_space, flag_access_control,
1689 flag_check_new, flag_new_for_scope, flag_weak,
1690 flag_working_directory, flag_use_cxa_atexit,
1691 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1692 flag_threadsafe_statics, flag_pretty_templates,
1693 warn_strict_null_sentinel): Remove.
1694 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1695 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1696 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1697 fimplicit-inline-templates, fimplicit-templates,
1698 flax-vector-conversions, fms-extensions, fnil-receivers,
1699 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1700 frtti, fshort-double, fshort-enums, fshort-wchar,
1701 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1702 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1703 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1704 gen-decls, undef): Use Var.
1705 (fdefault-inline, foptional-diags): Document as doing nothing.
1706 * c-opts.c (c_common_handle_option): Remove cases for options now
1707 using Var. Mark ignored options as such.
1709 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1711 * c-common.c: Moved to here from parent directory.
1712 * c-common.def: Likewise.
1713 * c-common.h: Likewise.
1714 * c-cppbuiltin.c: Likewise.
1715 * c-dump.c: Likewise.
1716 * c-format.c: Likewise.
1717 * c-format.h : Likewise.
1718 * c-gimplify.c: Likewise.
1719 * c-lex.c: Likewise.
1720 * c-omp.c: Likewise.
1722 * c-opts.c: Likewise.
1723 * c-pch.c: Likewise.
1724 * c-ppoutput.c: Likewise.
1725 * c-pragma.c: Likewise.
1726 * c-pragma.h: Likewise.
1727 * c-pretty-print.c: Likewise.
1728 * c-pretty-print.h: Likewise.
1729 * c-semantics.c: Likewise.
1730 * stub-objc.c: Likewise.
1732 * c-common.c: Include gt-c-family-c-common.h.
1733 * c-pragma.c: Include gt-c-family-c-pragma.h.
1735 Copyright (C) 2010, 2011 Free Software Foundation, Inc.
1737 Copying and distribution of this file, with or without modification,
1738 are permitted in any medium without royalty provided the copyright
1739 notice and this notice are preserved.