diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-20 17:01:32 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-20 17:01:32 +0000 |
commit | 624d37a67346eddd65841cd7093190b69a5db148 (patch) | |
tree | 60cdafb935d90504cac1d3437ff96f90d70b9c09 /gcc/cp | |
parent | 628dfe67321e94b743a840ef4e2ee5d0b75a9e02 (diff) | |
download | ppe42-gcc-624d37a67346eddd65841cd7093190b69a5db148.tar.gz ppe42-gcc-624d37a67346eddd65841cd7093190b69a5db148.zip |
PR 18785
libcpp:
* charset.c (LAST_POSSIBLY_BASIC_SOURCE_CHAR): New helper macro.
(cpp_host_to_exec_charset): New function.
* include/cpplib.h: Declare cpp_host_to_exec_charset.
gcc:
* langhooks.h (struct lang_hooks): Add to_target_charset.
* langhooks.c (lhd_to_target_charset): New function.
* langhooks-def.h: Declare lhd_to_target_charset.
(LANG_HOOKS_TO_TARGET_CHARSET): New macro.
(LANG_HOOKS_INITIALIZER): Update.
* c-common.c (c_common_to_target_charset): New function.
* c-common.h: Declare it.
* c-objc-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
c_common_to_target_charset.
* defaults.c (TARGET_BELL, TARGET_BS, TARGET_CR, TARGET_DIGIT0)
(TARGET_ESC, TARGET_FF, TARGET_NEWLINE, TARGET_TAB, TARGET_VT):
Delete definitions.
* system.h: Poison them.
* doc/tm.texi: Don't discuss them.
* builtins.c (fold_builtin_isdigit): Use lang_hooks.to_target_charset.
* c-pretty-print.c (pp_c_integer_constant): Don't use pp_c_char.
(pp_c_char): Do not attempt to generate letter escapes for
newline, tab, etc.
* config/arm/arm.c (output_ascii_pseudo_op): Likewise.
* config/mips/mips.c (mips_output_ascii): Likewise.
gcc/cp:
* cp-objcp-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
c_common_to_target_charset. Delete bogus comment.
gcc/testsuite:
* gcc.dg/charset/builtin1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95304 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 226 | ||||
-rw-r--r-- | gcc/cp/cp-objcp-common.h | 2 |
2 files changed, 118 insertions, 110 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 62e7a43ee37..e190787041b 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2005-02-20 Zack Weinberg <zack@codesourcery.com> + + PR 18785 + * cp-objcp-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to + c_common_to_target_charset. Delete bogus comment. + 2005-02-18 Richard Henderson <rth@redhat.com> PR libstdc++/10606 @@ -91,8 +97,8 @@ 2005-02-11 Richard Henderson <rth@redhat.com> PR c++/19632 - * pt.c (get_mostly_instantiated_function_type): Save and restore - flag_access_control instead of push/pop_access_scope. + * pt.c (get_mostly_instantiated_function_type): Save and restore + flag_access_control instead of push/pop_access_scope. 2005-02-10 Mark Mitchell <mark@codesourcery.com> @@ -203,13 +209,13 @@ * cp-tree.h (builtin_valid_in_constant_expr_p): Declare. * parser.c (cp_parser_postfix_expression): Accept function call in constant expression if builtin_valid_in_constant_expr_p is true - for that function. + for that function. * pt.c (value_dependent_expression_p): Handle CALL_EXPRs properly. * semantics.c (finish_id_expression): Accept function call in constant expression if builtin_valid_in_constant_expr_p is true for that - function. + function. * tree.c (builtin_valid_in_constant_expr_p): New. - + 2005-02-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de> PR c++/17413 @@ -242,7 +248,7 @@ 2005-02-01 Alexandre Oliva <aoliva@redhat.com> * parser.c (cp_parser_template_id): Revert comment patch too. - + PR c++/18757 PR c++/19366 PR c++/19499 @@ -326,7 +332,7 @@ PR c++/19349 * name-lookup.c (pushdecl_namespace_level): Avoid accessing free'd - memory. + memory. 2005-01-28 Mark Mitchell <mark@codesourcery.com> @@ -399,7 +405,7 @@ * typeck.c (comptypes): Handle return code from objc_comptypes correctly. - + 2005-01-19 Kazu Hirata <kazu@cs.umass.edu> * cp-tree.h, name-lookup.h: Remove unused prototypes. @@ -562,8 +568,8 @@ names. (cp_parser_member_declaration): Adjust call to make_id_declarator. (cp_parser_check_declarator_template_parameters): Do not expect a - SCOPE_REF. - + SCOPE_REF. + * decl.c (duplicate_decls): Call ggc_free on declarations we will not be needing any longer. @@ -617,7 +623,7 @@ * call.c (build_this): In templates, do not bother with build_unary_op. * typeck.c (unary_complex_lvalue): In a template, always refuse - simplifications. + simplifications. PR c++/18492 * cp-gimplify.c (cp_genericize): Relax assertion. @@ -627,7 +633,7 @@ PR c++/18257 * rtti.c (emit_support_tinfos): On systems without weak symbols, - emit the runtime library type-info objects as non-COMDAT. + emit the runtime library type-info objects as non-COMDAT. 2004-12-21 Mark Mitchell <mark@codesourcery.com> @@ -670,14 +676,14 @@ * error.c (dump_expr): <STRING_CST case> Add parens, if needed. * cp-tree.def (TEMPLATE_TYPE_PARM, - BOUND_TEMPLATE_TEMPLATE_PARM, TYPE_OF_TYPE, TYPENAME_TYPE): Reorder + BOUND_TEMPLATE_TEMPLATE_PARM, TYPE_OF_TYPE, TYPENAME_TYPE): Reorder for better code efficiency. * cp-tree.h (CLASS_TYPE_P): Short circuit IS_AGGR_TYPE check. (CAN_HAVE_FULL_LANG_DECL_P): Reorder for better optimization. (INTEGRAL_CODE_P, CP_INTEGRAL_TYPE_P, INTEGRAL_OR_ENUMERATION_TYPE_P, SCALAR_TYPE_P, CP_AGGREGATE_TYPE_P, TYPE_PTROB_P, TYPE_REF_OBJ_P, - TYPE_PTROBV_P): Likewise. + TYPE_PTROBV_P): Likewise. PR c++/18975 * method.c (do_build_copy_constructor): Refactor. Don't const @@ -689,7 +695,7 @@ PR c++/19044 * decl.c (make_rtl_for_nonlocal_decl): Use set_builtin_user_assembler_name. - + 2004-12-19 Mark Mitchell <mark@codesourcery.com> * cp-tree.h (note_decl_for_pch): New function. @@ -826,7 +832,7 @@ PR c++/18514 * name-lookup.c (do_nonmember_using_decl): A real function declaration takes precedence over an anticipated declaration. - + 2004-12-09 Volker Reichelt <reichelt@igpm.rwth-aachen.de> * parser.c (cp_parser_member_declaration): Fix comment typo. @@ -855,7 +861,7 @@ 2004-12-08 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> PR c++/18100 - * decl.c (lookup_and_check_tag): Diagnose nested class with + * decl.c (lookup_and_check_tag): Diagnose nested class with the same name as enclosing class. 2004-12-08 Nathan Sidwell <nathan@codesourcery.com> @@ -1044,7 +1050,7 @@ make_typename_type. (tsubst_decl): Do not pre-substitute the type of the declaration. (tsubst): Hand off declarations more quickly. Adjust call to - make_typename_type. + make_typename_type. PR c++/18512 * parser.c (cp_parser_postfix_dot_deref_expression): Robustify. @@ -1140,7 +1146,7 @@ (lookup_type_scope): Adjust declaration. * decl.c (lookup_and_check_tag, xref_tag, xref_tag_from_type): Change bool parameter GLOBALIZED to TAG_SCOPE parameter SCOPE. - (start_enum): Likewise. Add assertion test that NAME is + (start_enum): Likewise. Add assertion test that NAME is IDENTIFIER_NODE. Use anonymous name for dummy ENUMERAL_TYPE in case of error. * cp-tree.h (xref_tag, xref_tag_from_type): Adjust declarations. @@ -1280,7 +1286,7 @@ PR c++/18407 * pt.c (tsubst_copy_and_build): Handle qualified names used from a derived class correctly. - + * decl2.c (import_export_decl): Fix typo in comment. * tree.c (pod_type_p): Likewise. @@ -1290,7 +1296,7 @@ 2004-11-10 Adam Nemet <anemet@lnxw.com> - PR middle-end/18160 + PR middle-end/18160 * typeck.c (cxx_mark_addressable): Issue an error if address of an explicit register variable is requested. @@ -1328,7 +1334,7 @@ search.c, typeck2.c: Fix comment formatting. 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com> - + PR tree-optimization/18184 * cp-objcp-common.c (cxx_types_compatible_p): Do not treat pointers of different modes or alias-all flags as equivalent. @@ -1380,26 +1386,26 @@ 2004-10-31 Gabriel Dos Reis <gdr@integrable-solutions.net> Convert diagnostics to use quoting flag q 9/n - * typeck.c (build_x_unary_op, convert_member_func_to_ptr, + * typeck.c (build_x_unary_op, convert_member_func_to_ptr, get_delta_difference): Use new quotation style. * repo.c (reopen_repo_file_for_write): Likewise. * pt.c (do_type_instantiation): Likewise. - * parser.c (cp_parser_diagnose_invalid_type_name): - * name-lookup.c (push_overloaded_decl, set_decl_namespace): + * parser.c (cp_parser_diagnose_invalid_type_name): + * name-lookup.c (push_overloaded_decl, set_decl_namespace): * error.c (cp_print_error_function, print_instantiation_full_context): Likewise. - * decl.c (define_label, grok_reference_init, - maybe_deduce_size_from_array_init, revert_static_member_fn): + * decl.c (define_label, grok_reference_init, + maybe_deduce_size_from_array_init, revert_static_member_fn): * decl2.c (check_classfn): Likewise. - * class.c (add_method, check_field_decls, layout_class_type, + * class.c (add_method, check_field_decls, layout_class_type, resolve_address_of_overloaded_function): Likewise. * call.c (build_x_va_arg, build_over_call): Likewise. 2004-10-31 Gabriel Dos Reis <gdr@integrable-solutions.net> Convert diagnostics to use quoting flag q 8/n - * cvt.c (cp_convert_to_pointer, warn_ref_binding, - convert_to_reference, ocp_convert, convert_to_void + * cvt.c (cp_convert_to_pointer, warn_ref_binding, + convert_to_reference, ocp_convert, convert_to_void cp_convert_to_pointer): Use new quotation style. 2004-10-31 Mark Mitchell <mark@codesourcery.com> @@ -1407,7 +1413,7 @@ PR c++/15172 * typeck2.c (store_init_value): Use split_nonconstant_init even for types that require construction. - + 1004-10-28 Matt Austern <austern@apple.com> PR c++/17542 @@ -1416,7 +1422,7 @@ and remove static qualifier. * decl.c (shadow_tag): Warn about ignored attributes in class/struct/ union/enum declaration. - + 2004-10-29 Kazu Hirata <kazu@cs.umass.edu> * pt.c: Fix a comment typo. @@ -1439,7 +1445,7 @@ PR c++/14124 * decl.c (finish_enum): Handle packed attribute. * parser.c (cp_parser_enum_specifier): Process trailing attributes. - + 2004-10-28 Mark Mitchell <mark@codesourcery.com> PR c++/17132 @@ -1579,7 +1585,7 @@ (build_reinterpret_cast_1): Add for_reinterpret_cast_p parameter. Allow function pointer conversions that DR195 suggests. (build_reinterpret_cast, build_c_cast): Update - build_reinterpret_cast_1 calls. + build_reinterpret_cast_1 calls. 2004-10-20 Kazu Hirata <kazu@cs.umass.edu> @@ -1700,7 +1706,7 @@ * parser.c (cp_parser_simple_declaration): Do not diagnose invalid type names if we have already found a valid type. (cp_parser_member_declaration): Likewise. - + PR c++/17916 * parser.c (cp_parser_member_specification_opt): Handle CPP_PRAGMA. @@ -1733,7 +1739,7 @@ * pt.c (struct pair_fn_data): Use pointer_set_t, not htab_t (for_each_template_parm): Convert from htab_t to pointer_set_t. * tree.c (cp_walk_subtrees): Last argument is pointer_set_t* now. - + 2004-10-13 Andrew Pinski <pinskia@physics.uc.edu> PR c++/17661 @@ -1765,7 +1771,7 @@ 2004-10-11 Mark Mitchell <mark@codesourcery.com> PR c++/15786 - * parser.c (cp_parser_declarator): Add member_p parameter. + * parser.c (cp_parser_declarator): Add member_p parameter. (cp_parser_condition): Adjust calls to cp_parser_declarator. (cp_parser_explicit_instantiation): Likewise. (cp_parser_init_declarator): Likewise. @@ -1849,34 +1855,34 @@ 2004-10-10 Gabriel Dos Reis <gdr@integrable-solutions.net> Convert diagnostics to use quoting flag q 7/n - * typeck.c (composite_pointer_type_r, composite_pointer_type, - cxx_sizeof_or_alignof_type, cxx_sizeof_or_alignof_expr, - string_conv_p, build_class_member_access_expr, - build_class_member_access_expr, lookup_destructor, - finish_class_member_access_expr, build_indirect_ref, - get_member_function_from_ptrfunc, build_function_call, - convert_arguments, build_binary_op, pointer_diff, build_unary_op, - check_for_casting_away_constness, build_static_cast, - build_reinterpret_cast, build_const_cast, build_c_cast, - build_modify_expr, get_delta_difference, build_ptrmemfunc, - dubious_conversion_warnings, convert_for_assignment, - convert_for_initialization, - maybe_warn_about_returning_address_of_local, check_return_expr): + * typeck.c (composite_pointer_type_r, composite_pointer_type, + cxx_sizeof_or_alignof_type, cxx_sizeof_or_alignof_expr, + string_conv_p, build_class_member_access_expr, + build_class_member_access_expr, lookup_destructor, + finish_class_member_access_expr, build_indirect_ref, + get_member_function_from_ptrfunc, build_function_call, + convert_arguments, build_binary_op, pointer_diff, build_unary_op, + check_for_casting_away_constness, build_static_cast, + build_reinterpret_cast, build_const_cast, build_c_cast, + build_modify_expr, get_delta_difference, build_ptrmemfunc, + dubious_conversion_warnings, convert_for_assignment, + convert_for_initialization, + maybe_warn_about_returning_address_of_local, check_return_expr): Use quoting marks. - * typeck2.c (error_not_base_type, readonly_error, - abstract_virtuals_error, cxx_incomplete_type_diagnostic, - store_init_value, digest_init, build_x_arrow, + * typeck2.c (error_not_base_type, readonly_error, + abstract_virtuals_error, cxx_incomplete_type_diagnostic, + store_init_value, digest_init, build_x_arrow, build_m_component_ref, require_complete_eh_spec_types): Likewise. - * tree.c (cp_build_qualified_type_real, + * tree.c (cp_build_qualified_type_real, handle_java_interface_attribute, handle_init_priority_attribute): Likewise. - * semantics.c (finish_asm_stmt, finish_non_static_data_member, - finish_pseudo_destructor_expr, - check_template_template_default_arg, begin_class_definition, - finish_base_specifier, qualified_name_lookup_error, + * semantics.c (finish_asm_stmt, finish_non_static_data_member, + finish_pseudo_destructor_expr, + check_template_template_default_arg, begin_class_definition, + finish_base_specifier, qualified_name_lookup_error, finish_id_expression, finish_typeof): Likewise. * search.c (lookup_base, check_final_overrider, @@ -1912,7 +1918,7 @@ PR c++/17685 * decl.c (grokdeclarator): Disallow declarations of operators as non-functions. - + 2004-10-08 Volker Reichelt <reichelt@igpm.rwth-aachen.de> PR c++/17868 @@ -2018,20 +2024,20 @@ 2004-10-05 Gabriel Dos Reis <gdr@integrable-solutions.net> Convert diagnostics to use quoting flag q 6/n - * pt.c (finish_member_template_decl, check_specialization_scope, - maybe_process_partial_specialization, determine_specialization, - check_explicit_specialization, maybe_check_template_type, - process_partial_specialization, check_default_tmpl_args, - push_template_decl_real, redeclare_class_template, - convert_nontype_argument, coerce_template_parms, - lookup_template_class, push_tinst_level, - instantiate_class_template, tsubst_arg_types, - tsubst_function_type, tsubst, tsubst_qualified_id, - tsubst_copy_and_build, check_instantiated_args, - do_decl_instantiation, do_type_instantiation, - invalid_nontype_parm_type_p, check_specialization_namespace, - convert_template_argument, determine_specialization, - check_template_shadow, tsubst_decl + * pt.c (finish_member_template_decl, check_specialization_scope, + maybe_process_partial_specialization, determine_specialization, + check_explicit_specialization, maybe_check_template_type, + process_partial_specialization, check_default_tmpl_args, + push_template_decl_real, redeclare_class_template, + convert_nontype_argument, coerce_template_parms, + lookup_template_class, push_tinst_level, + instantiate_class_template, tsubst_arg_types, + tsubst_function_type, tsubst, tsubst_qualified_id, + tsubst_copy_and_build, check_instantiated_args, + do_decl_instantiation, do_type_instantiation, + invalid_nontype_parm_type_p, check_specialization_namespace, + convert_template_argument, determine_specialization, + check_template_shadow, tsubst_decl instantiate_pending_templates): Use quoting marks. 2004-10-05 Nathan Sidwell <nathan@codesourcery.com> @@ -2043,41 +2049,41 @@ 2004-10-04 Gabriel Dos Reis <gdr@integrable-solutions.net> Convert diagnostics to use quoting flag q 5/n - * parser.c (cp_parser_name_lookup_error, - cp_parser_diagnose_invalid_type_name, - cp_parser_primary_expression, cp_parser_unqualified_id, - cp_parser_nested_name_specifier_opt, cp_parser_labeled_statement, - cp_parser_jump_statement, cp_parser_simple_declaration, - cp_parser_decl_specifier_seq, cp_parser_mem_initializer_id, - cp_parser_type_parameter, cp_parser_template_id, - cp_parser_template_name, cp_parser_direct_declarator, - cp_parser_parameter_declaration_list, cp_parser_class_head, - cp_parser_base_specifier, cp_parser_lookup_name, - cp_parser_late_parsing_default_args, - cp_parser_optional_template_keyword - cp_parser_elaborated_type_specifier, cp_parser_check_class_key, + * parser.c (cp_parser_name_lookup_error, + cp_parser_diagnose_invalid_type_name, + cp_parser_primary_expression, cp_parser_unqualified_id, + cp_parser_nested_name_specifier_opt, cp_parser_labeled_statement, + cp_parser_jump_statement, cp_parser_simple_declaration, + cp_parser_decl_specifier_seq, cp_parser_mem_initializer_id, + cp_parser_type_parameter, cp_parser_template_id, + cp_parser_template_name, cp_parser_direct_declarator, + cp_parser_parameter_declaration_list, cp_parser_class_head, + cp_parser_base_specifier, cp_parser_lookup_name, + cp_parser_late_parsing_default_args, + cp_parser_optional_template_keyword + cp_parser_elaborated_type_specifier, cp_parser_check_class_key, cp_parser_check_access_in_redeclaration): Use quoting marks. - * name-lookup.c (supplement_binding, pushdecl, - check_for_out_of_scope_variable, validate_nonmember_using_decl, - do_nonmember_using_decl, lookup_tag, set_decl_namespace, - push_namespace, do_namespace_alias, do_using_directive, + * name-lookup.c (supplement_binding, pushdecl, + check_for_out_of_scope_variable, validate_nonmember_using_decl, + do_nonmember_using_decl, lookup_tag, set_decl_namespace, + push_namespace, do_namespace_alias, do_using_directive, ambiguous_decl, lookup_namespace_name, add_function): Likewise. * method.c (use_thunk): Likewise. - * lex.c (unqualified_name_lookup_error, + * lex.c (unqualified_name_lookup_error, unqualified_fn_lookup_error): Likewise. 2004-10-04 Gabriel Dos Reis <gdr@integrable-solutions.net> Convert diagnostics to use quoting flag q 4/n - * except.c (decl_is_java_type, build_throw, - is_admissible_throw_operand, check_handlers_1, check_handlers): + * except.c (decl_is_java_type, build_throw, + is_admissible_throw_operand, check_handlers_1, check_handlers): Use quoting formats. * friend.c (add_friend, make_friend_class, do_friend): Likewise. - * init.c (sort_mem_initializers, emit_mem_initializers, - member_init_ok_or_else, expand_member_init, is_aggr_type, + * init.c (sort_mem_initializers, emit_mem_initializers, + member_init_ok_or_else, expand_member_init, is_aggr_type, build_offset_ref, build_java_class_ref): Likewise. 2004-10-03 Gabriel Dos Reis <gdr@integrable-solutions.net> @@ -2086,20 +2092,20 @@ * decl.c (pop_label, duplicate_decls, redeclaration_error_message, redeclaration_error_message, lookup_label, check_goto, make_typename_type, make_unbound_class_template, - fixup_anonymous_aggr, check_tag_decl, start_decl, start_decl_1, - grok_reference_init, layout_var_decl, maybe_commonize_var, - check_for_uninitialized_const_var, reshape_init_array, + fixup_anonymous_aggr, check_tag_decl, start_decl, start_decl_1, + grok_reference_init, layout_var_decl, maybe_commonize_var, + check_for_uninitialized_const_var, reshape_init_array, reshape_init, check_initializer, cp_finish_decl, - member_function_or_else, bad_specifiers, grokfndecl, grokvardecl, - check_static_variable_definition, compute_array_index_type, - create_array_type_for_decl, check_special_function_return_type, - grokdeclarator, check_default_argument, grokparms, - grok_ctor_properties, grok_op_properties, - check_elaborated_type_specifier, xref_tag, finish_enum, - build_enumerator, check_function_type, start_preparsed_function, + member_function_or_else, bad_specifiers, grokfndecl, grokvardecl, + check_static_variable_definition, compute_array_index_type, + create_array_type_for_decl, check_special_function_return_type, + grokdeclarator, check_default_argument, grokparms, + grok_ctor_properties, grok_op_properties, + check_elaborated_type_specifier, xref_tag, finish_enum, + build_enumerator, check_function_type, start_preparsed_function, store_parm_decls): Use quoting formats. - * decl2.c (grok_array_decl, delete_sanity, check_member_template, - check_java_method, check_classfn, finish_static_data_member_decl, + * decl2.c (grok_array_decl, delete_sanity, check_member_template, + check_java_method, check_classfn, finish_static_data_member_decl, grokfield, grokbitfield, grok_function_init, build_anon_union_vars, coerce_new_type, coerce_delete_type, check_default_args): Likewise. @@ -2224,7 +2230,7 @@ header that was implicitly extern "C". (cp_parser_declaration_seq_opt): Push/pop lang context as required by the token's and parser's implicit_extern_c. - + 2004-09-27 Mark Mitchell <mark@codesourcery.com> PR c++/17585 @@ -2246,11 +2252,11 @@ (dfs_depth_post, dfs_depth_q): Remove. (find_final_overrider): Use number of vbase classes as depth bound. - + * cp-tree.h (types_overlap_p): Remove. * search.c (struct overlap_info): Remove. (dfs_check_overlap, dfs_no_overlap_yet, types_overlap_p): Remove. - + * pt.c (GTB_VIA_VIRTUAL, GTB_IGNORE_TYPE): Remove. (get_template_base_recursive): Remove. Replace with ... (get_template_base_r): ... this. diff --git a/gcc/cp/cp-objcp-common.h b/gcc/cp/cp-objcp-common.h index 7a2a2343b7c..9baba3fc4ca 100644 --- a/gcc/cp/cp-objcp-common.h +++ b/gcc/cp/cp-objcp-common.h @@ -159,6 +159,8 @@ extern tree objcp_tsubst_copy_and_build (tree, tree, tsubst_flags_t, #define LANG_HOOKS_TYPE_PROMOTES_TO cxx_type_promotes_to #undef LANG_HOOKS_REGISTER_BUILTIN_TYPE #define LANG_HOOKS_REGISTER_BUILTIN_TYPE c_register_builtin_type +#undef LANG_HOOKS_TO_TARGET_CHARSET +#define LANG_HOOKS_TO_TARGET_CHARSET c_common_to_target_charset #undef LANG_HOOKS_GIMPLIFY_EXPR #define LANG_HOOKS_GIMPLIFY_EXPR cp_gimplify_expr |