diff options
author | Nathan Sidwell <nathan@acm.org> | 2017-10-04 16:55:54 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-10-04 16:55:54 +0000 |
commit | b419102c126ef6fa1b80566bbe9cb299ef860432 (patch) | |
tree | 10b8e208a125c5c7bcf4fe9a2e5783a2436fd29a /libcc1/libcp1plugin.cc | |
parent | baf20d8df23fd33363b997a423d57bb0c3405a38 (diff) | |
download | gcc-b419102c126ef6fa1b80566bbe9cb299ef860432.tar.gz |
[C++ PATCH] Move mangling alias out of ::
https://gcc.gnu.org/ml/gcc-patches/2017-10/msg00199.html
gcc/cp/
Move mangling aliases out of global namespace.
* cp-tree.h (record_mangling): New.
(maybe_remove_implicit_alias): Delete.
* decl2.c (mangled_decls): New hash map.
(generate_mangling_alias): Reimplement using mangled_decls.
(record_mangling): New.
* mangle.c (decl_implicit_alias_p,
maybe_remove_implicit_alias): Delete.
(mangle_decl): Use record_mangling.
* name-lookup.c (supplement_binding_1): Remove
maybe_remove_implicit_alias check.
* call.c (convert_arg_to_ellipsis): Correct comment about passing
by reference.
gcc/testsuite/
* g++.dg/abi/mangle41.C: Adjust diagnostics.
libcc1/
* libcp1plugin.cc (supplement_binding): Don't use
maybe_remove_implicit_alias.
From-SVN: r253421
Diffstat (limited to 'libcc1/libcp1plugin.cc')
-rw-r--r-- | libcc1/libcp1plugin.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/libcc1/libcp1plugin.cc b/libcc1/libcp1plugin.cc index d7bf5a29d6d..12ea4ed84e0 100644 --- a/libcc1/libcp1plugin.cc +++ b/libcc1/libcp1plugin.cc @@ -422,12 +422,6 @@ supplement_binding (cxx_binding *binding, tree decl) region to refer only to the namespace to which it already refers. */ ok = false; - else if (maybe_remove_implicit_alias (bval)) - { - /* There was a mangling compatibility alias using this mangled name, - but now we have a real decl that wants to use it instead. */ - binding->value = decl; - } else { // _1: diagnose_name_conflict (decl, bval); |