[C++ PATCH] Move mangling alias out of ::
authorNathan Sidwell <nathan@acm.org>
Wed, 4 Oct 2017 16:55:54 +0000 (16:55 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 4 Oct 2017 16:55:54 +0000 (16:55 +0000)
commitb419102c126ef6fa1b80566bbe9cb299ef860432
tree10b8e208a125c5c7bcf4fe9a2e5783a2436fd29a
parentbaf20d8df23fd33363b997a423d57bb0c3405a38
[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
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl2.c
gcc/cp/mangle.c
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/abi/mangle41.C
libcc1/ChangeLog
libcc1/libcp1plugin.cc