X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fc-family%2FChangeLog;h=789e44856229a68c67f87d71f50ba4c17adcb2d4;hb=ce70f43356e19c14deb3a89da25ebe89d6cb255a;hp=5fd1f206420342a1d748b5cf156bf356f369905e;hpb=5a90471fe9ead8b7cc659e9b9bd2de01189a2e7b;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 5fd1f206420..789e4485622 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,394 @@ +2011-10-15 Tom Tromey + Dodji Seketeli + + * c.opt (ftrack-macro-expansion): New option. Handle it with and + without argument. + * c-opts.c (c_common_handle_option): New + cases. Handle -ftrack-macro-expansion with and without argument. + +2011-10-15 Tom Tromey + Dodji Seketeli + + * c-ppoutput.c (scan_translation_unit, maybe_print_line) + (print_line, cb_define, do_line_change): Adjust to avoid touching + the internals of struct line_map. Use the public API instead. + * c-pch.c (c_common_read_pch): Likewise. + * c-lex.c (fe_file_change): Likewise. + +2011-10-11 Michael Meissner + + * c-common.c (def_builtin_1): Delete old interface with two + parallel arrays to hold standard builtin declarations, and replace + it with a function based interface that can support creating + builtins on the fly in the future. Change all uses, and poison + the old names. Make sure 0 is not a legitimate builtin index. + * c-omp.c (c_finish_omp_barrier): Ditto. + (c_finish_omp_taskwait): Ditto. + (c_finish_omp_flush): Ditto. + +2011-10-11 Tristan Gingold + + * c.opt: (fallow-parameterless-variadic-functions): New. + +2011-09-08 Dodji Seketeli + + PR c++/33255 - Support -Wunused-local-typedefs warning + * c-common.h (struct c_language_function::local_typedefs): New + field. + (record_locally_defined_typedef, maybe_record_typedef_use) + (maybe_warn_unused_local_typedefs): Declare new functions. + * c-common.c (record_locally_defined_typedef) + (maybe_record_typedef_use) + (maybe_warn_unused_local_typedefs): Define new functions. + * c.opt: Declare new -Wunused-local-typedefs flag. + +2011-09-06 Eric Botcazou + + PR middle-end/50266 + * c-common.c (c_fully_fold_internal) : Fold offsetof-like + computations. + +2011-09-05 Richard Guenther + + * c-common.c (complete_array_type): Use ssize_int (-1) instead + of integer_minus_one_node for empty array upper bounds. + +2011-08-28 Dodji Seketeli + + * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as + it's the first time it's being called on this main TU. + +2011-08-24 Richard Guenther + + PR c/49396 + * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional. + +2011-08-22 Gabriel Charette + + * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens + defined in cpp_init_builtins and c_cpp_builtins. + +2011-08-19 Joseph Myers + + * c-common.c (c_common_reswords): Add __builtin_complex. + * c-common.h (RID_BUILTIN_COMPLEX): New. + +2011-08-18 Joseph Myers + + * c-common.c (c_common_reswords): Add _Noreturn. + (keyword_is_function_specifier): Handle RID_NORETURN. + * c-common.h (RID_NORETURN): New. + +2011-08-10 Artjoms Sinkarovs + + * c-common.c (unsafe_conversion_p): New function. Check if it is + unsafe to convert an expression to the type. + (conversion_warning): Adjust, use unsafe_conversion_p. + * c-common.h (unsafe_conversion_p): New function declaration. + +2011-08-02 Jakub Jelinek + + * c-common.h (c_finish_omp_atomic): Adjust prototype. + (c_finish_omp_taskyield): New prototype. + * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1 + arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and + OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1 + or RHS1 have side-effects, evaluate those too in the right spot, + if it is a decl and LHS is also a decl, error out if they + aren't the same. + (c_finish_omp_taskyield): New function. + * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107. + * c-pragma.c (omp_pragmas): Add taskyield. + * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD. + (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and + PRAGMA_OMP_CLAUSE_MERGEABLE. + +2011-07-25 Dodji Seketeli + + * c-common.h (set_underlying_type): Remove parm name from + declaration. + +2011-07-25 Romain Geissler + + * c-pretty-print.h: Search c-common.h in c-family. + +2011-07-22 Jason Merrill + + PR c++/49793 + * c.opt (Wnarrowing): New. + + PR c++/30112 + * c-common.h: Declare c_linkage_bindings. + * c-pragma.c (handle_pragma_redefine_extname): Use it. + + PR c++/49813 + * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99. + * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well + as flag_isoc99 for 'restrict'. + (pp_c_specifier_qualifier_list): Likewise for _Complex. + +2011-07-21 Ian Lance Taylor + + PR middle-end/49705 + * c-common.c (c_disable_warnings): New static function. + (c_enable_warnings): New static function. + (c_fully_fold_internal): Change local unused_p to bool. Call + c_disable_warnings and c_enable_warnings rather than change + c_inhibit_evaluation_warnings. + +2011-07-20 Jason Merrill + + PR c++/6709 (DR 743) + PR c++/42603 (DR 950) + * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h. + (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise. + (CPP_DECLTYPE): New. + * c-common.c (c_parse_error): Handle CPP_DECLTYPE. + +2011-07-19 Richard Guenther + + * c-common.c (pointer_int_sum): Use fold_build_pointer_plus. + * c-omp.c (c_finish_omp_for): Likewise. + +2011-07-12 Eric Botcazou + + * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop + body on the next line. + +2011-07-08 Jason Merrill + + PR c++/45437 + * c-omp.c (check_omp_for_incr_expr): Handle preevaluation. + + PR c++/49673 + * c-common.c (c_apply_type_quals_to_decl): Don't check + TYPE_NEEDS_CONSTRUCTING. + +2011-07-06 Richard Guenther + + * c-common.c (c_common_nodes_and_builtins): + Merge calls to build_common_tree_nodes and build_common_tree_nodes_2. + +2011-07-05 Richard Guenther + + * c-common.c (c_common_nodes_and_builtins): Build all common + tree nodes first. + +2011-06-27 Jakub Jelinek + + * c-common.h (c_tree_chain_next): New static inline function. + + * c-common.c (check_builtin_function_arguments): Handle + BUILT_IN_ASSUME_ALIGNED. + +2011-06-21 Andrew MacLeod + + * c-common.c: Add sync_ or SYNC__ to builtin names. + * c-omp.c: Add sync_ or SYNC__ to builtin names. + +2011-06-20 Pierre Vittet + + * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New + handler. + (gen_pragma_handler): New union. + (internal_pragma_handler): New type. + (c_register_pragma_with_data) + (c_register_pragma_with_expansion_and_data): New functions. + + * c-pragma.c (registered_pragmas, c_register_pragma_1) + (c_register_pragma, c_register_pragma_with_expansion) + (c_invoke_pragma_handler): Changed to work with + internal_pragma_handler. + (c_register_pragma_with_data) + (c_register_pragma_with_expansion_and_data): New functions. + +2011-06-14 Joseph Myers + + * c-common.c: Include common/common-target.h. + (handle_section_attribute): Use + targetm_common.have_named_sections. + * c-cppbuiltin.c: Include common/common-target.h. + (c_cpp_builtins): Use targetm_common.except_unwind_info. + +2011-06-10 Richard Guenther + + * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier + to print a IDENTIFIER_NODE. + +2011-06-09 Rainer Orth + Joseph Myers + + * c.opt (fbuilding-libgcc): New option. + * c-cppbuiltin.c (c_cpp_builtins): Define + __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc. + +2011-06-07 Jason Merrill + + * c-common.c (max_tinst_depth): Lower default to 900. + + * c-format.c (gcc_cxxdiag_char_table): Add 'S' format. + +2011-06-07 Richard Guenther + + * c-common.c (c_common_nodes_and_builtins): Do not set + size_type_node or call set_sizetype. + +2011-06-07 Dodji Seketeli + + PR debug/49130 + * c-pretty-print.c (pp_c_integer_constant): Consider the canonical + type when using pointer comparison to compare types. + +2011-06-02 Jonathan Wakely + + * c.opt: Add -Wdelete-non-virtual-dtor. + * c-opts.c (c_common_handle_option): Include it in -Wall. + +2011-05-30 Nathan Froyd + + PR bootstrap/49190 + + Revert: + 2011-05-26 Nathan Froyd + + * c-common.h (struct c_common_identifier): Inherit from tree_typed, + not tree_common. + +2011-05-27 Jakub Jelinek + + PR c++/49165 + * c-common.c (c_common_truthvalue_conversion) : For + C++ don't call c_common_truthvalue_conversion on void type arms. + +2011-05-27 Nathan Froyd + + * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC. + (stmt_list_stack): Define. + (cur_stmt_list): Adjust for new type of x_cur_stmt_list. + * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise. + +2011-05-26 Nathan Froyd + + * c-common.c (warning_candidate_p): Check for BLOCKs. + +2011-05-26 Nathan Froyd + + * c-common.h (struct c_common_identifier): Inherit from tree_typed, + not tree_common. + +2011-05-25 Jakub Jelinek + + * c-common.c (def_fn_type): Remove extra va_end. + +2011-05-23 Jason Merrill + + PR c++/48106 + * c-common.c (c_common_get_narrower): New. + (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it. + +2011-05-23 Nathan Froyd + + * c-common.h (check_function_arguments): Tweak prototype of + check_function_arguments. + * c-common.c (check_function_arguments): Likewise. Adjust + calls to check_function_nonnull, check_function_format, and + check_function_sentinel. + (check_function_sentinel): Take a FUNCTION_TYPE rather than + separate attributes and typelist arguments. Use + FOREACH_FUNCTION_ARGS to iterate over argument types. + +2011-05-15 Paolo Carlini + + * c-common.c (c_common_reswords): Reorder. + * c-common.h (rid): Likewise. + +2011-05-10 Nathan Froyd + + * c-common.c (def_fn_type): Don't call build_function_type, call + build_function_type_array or build_varargs_function_type_array + instead. + (c_common_nodes_and_builtins): Likewise. + +2011-05-05 Nathan Froyd + + * c-common.c (c_add_case_label): Omit the loc argument to + build_case_label. + * c-common.h (build_case_label): Remove. + * c-semantics.c (build_case_label): Remove. + +2011-05-05 Joseph Myers + + * c-objc.h (objc_start_method_definition): Update prototype. + * stub-objc.c (objc_start_method_definition): Add extra parameter. + +2011-05-04 Nathan Froyd + + * c-common.c (check_main_parameter_types): Reindent. Don't use + TYPE_ARG_TYPES directly. + (handle_nonnull_attribute): Likewise. + (sync_resolve_params): Likewise. + * c-format.c (handle_format_arg_attribute): Likewise. Adjust call + to check_format_string. + (handle_format_attribute): Likewise. + (check_format_string): Take a function type to examine instead of + a type list. Use a function_arg_iterator to step through argument + types. + +2011-05-04 Richard Guenther + + * c-common.c (fix_string_type): Use size_int for index type bounds. + (start_fname_decls): Do not pass NULL to build_int_cst. + (c_init_attributes): Likewise. + * c-lex.c (c_lex_with_flags): Likewise. + +2011-04-27 Jason Merrill + + * c-common.c (make_tree_vector_from_list): New. + * c-common.h: Declare it. + +2011-04-26 Richard Guenther + + PR preprocessor/48248 + * c-ppoutput.c (maybe_print_line): Always optimize newlines + for output size with -P. + +2011-04-25 Paolo Carlini + + * c-common.c (struct c_common_resword): Add __underlying_type. + * c-common.h (enum rid): Add RID_UNDERLYING_TYPE. + +2011-04-20 Jim Meyering + + * c-format.c (init_dollar_format_checking): Remove useless + if-before-free. + +2011-04-15 Nicola Pero + + * c-objc.h (objc_get_interface_ivars): Removed. + (objc_detect_field_duplicates): New. + * stub-objc.c: Likewise. + +2011-04-14 Nicola Pero + + * stub-objc.c (objc_declare_protocols): Renamed to + objc_declare_protocol. + * c-objc.h: Likewise. + +2011-04-14 Nicola Pero + + * stub-objc.c (objc_declare_class): Updated argument name. + +2011-04-12 Nathan Froyd + + * c-common.h (c_common_init_ts): Declare. + * c-common.c (c_common_init_ts): Define. + +2011-04-12 Nicola Pero + + * c-objc.h (objc_build_message_expr): Updated prototype. + * stub-objc.c (objc_build_message_expr): Likewise. + 2011-04-12 Martin Jambor * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead @@ -153,8 +544,8 @@ * c-common.c (lvalue_error): Add 'loc' argument. Call error_at, not error. -2010-12-29 Nicola Pero - +2010-12-29 Nicola Pero + PR objc/47075 * c-objc.h (objc_finish_message_expr): Added argument to prototype. @@ -1079,7 +1470,7 @@ * c-common.c: Include gt-c-family-c-common.h. * c-pragma.c: Include gt-c-family-c-pragma.h. -Copyright (C) 2010 Free Software Foundation, Inc. +Copyright (C) 2010, 2011 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright