[C++ PATCH] Move mangling alias out of ::
commite845448cb4185b9930de426983a95982fe519859
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Oct 2017 16:55:54 +0000 (4 16:55 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Oct 2017 16:55:54 +0000 (4 16:55 +0000)
tree10b8e208a125c5c7bcf4fe9a2e5783a2436fd29a
parent4692eaff44e9cb0bfaf703c753ade0dc797bc9dd
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253421 138bc75d-0d04-0410-961f-82ee72b054a4
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