From 5a7c45058271ab8a41462a483e696e0f2480b91a Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Thu, 24 Oct 2019 00:59:57 +0000 Subject: [C++ PATCH] 'std' identifier not needed https://gcc.gnu.org/ml/gcc-patches/2019-10/msg01707.html * cp-tree.c (CPTI_STD_IDENTIFIER): Delete. (std_identifier): Delete. (DECL_NAME_SPACE_STD_P): Compare against std_node. * decl.c (initialize_predefined_identifiers): 'std' is not needed. (cxx_init_decl_processing): Adjust creation of ::std. Use {push,pop}_nested_namespace. (cxx_builtin_function): Use {push,pop}_nested_namespace. * except.c (init_exception_processing): Likewise. * rtti.c (init_rtti_processing): Likewise. From-SVN: r277365 --- gcc/cp/rtti.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/cp/rtti.c') diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index c905799..b3d579f 100644 --- a/gcc/cp/rtti.c +++ b/gcc/cp/rtti.c @@ -168,10 +168,10 @@ init_rtti_processing (void) { tree type_info_type; - push_namespace (std_identifier); + push_nested_namespace (std_node); type_info_type = xref_tag (class_type, get_identifier ("type_info"), /*tag_scope=*/ts_current, false); - pop_namespace (); + pop_nested_namespace (std_node); const_type_info_type_node = cp_build_qualified_type (type_info_type, TYPE_QUAL_CONST); type_info_ptr_type = build_pointer_type (const_type_info_type_node); -- cgit v1.1