aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/rtti.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2019-10-24 00:59:57 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2019-10-24 00:59:57 +0000
commit5a7c45058271ab8a41462a483e696e0f2480b91a (patch)
treec6ac2461e1574381a1a64828901e3925d964f8e4 /gcc/cp/rtti.c
parent61d5466b6db685ff3b484ffdd3ae57198a4dd123 (diff)
downloadgcc-5a7c45058271ab8a41462a483e696e0f2480b91a.zip
gcc-5a7c45058271ab8a41462a483e696e0f2480b91a.tar.gz
gcc-5a7c45058271ab8a41462a483e696e0f2480b91a.tar.bz2
[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
Diffstat (limited to 'gcc/cp/rtti.c')
-rw-r--r--gcc/cp/rtti.c4
1 files changed, 2 insertions, 2 deletions
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);