diff options
author | Nathan Sidwell <nathan@acm.org> | 2019-10-24 00:59:57 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2019-10-24 00:59:57 +0000 |
commit | 5a7c45058271ab8a41462a483e696e0f2480b91a (patch) | |
tree | c6ac2461e1574381a1a64828901e3925d964f8e4 /gcc/cp/except.c | |
parent | 61d5466b6db685ff3b484ffdd3ae57198a4dd123 (diff) | |
download | gcc-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/except.c')
-rw-r--r-- | gcc/cp/except.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/except.c b/gcc/cp/except.c index 1f87c5a..025262c 100644 --- a/gcc/cp/except.c +++ b/gcc/cp/except.c @@ -51,14 +51,14 @@ init_exception_processing (void) tree tmp; /* void std::terminate (); */ - push_namespace (std_identifier); + push_nested_namespace (std_node); tmp = build_function_type_list (void_type_node, NULL_TREE); terminate_fn = build_cp_library_fn_ptr ("terminate", tmp, ECF_NOTHROW | ECF_NORETURN | ECF_COLD); gcc_checking_assert (TREE_THIS_VOLATILE (terminate_fn) && TREE_NOTHROW (terminate_fn)); - pop_namespace (); + pop_nested_namespace (std_node); /* void __cxa_call_unexpected(void *); */ tmp = build_function_type_list (void_type_node, ptr_type_node, NULL_TREE); |