* [C++ PATCH] ctor name should not change
@ 2017-07-11 12:29 Nathan Sidwell
0 siblings, 0 replies; only message in thread
From: Nathan Sidwell @ 2017-07-11 12:29 UTC (permalink / raw)
To: GCC Patches
[-- Attachment #1: Type: text/plain, Size: 171 bytes --]
We no longer need to frob the ctor name here, and indeed the name lookup stuff
I'm working on would really rather it didn't.
Applied to trunk
nathan
--
Nathan Sidwell
[-- Attachment #2: ctor.diff --]
[-- Type: text/plain, Size: 710 bytes --]
2017-07-11 Nathan Sidwell <nathan@acm.org>
* decl2.c (reset_type_linkage_2): Dont't change ctor name.
Index: decl2.c
===================================================================
--- decl2.c (revision 250090)
+++ decl2.c (working copy)
@@ -2622,13 +2622,6 @@ reset_type_linkage_2 (tree type)
{
tree mem = STRIP_TEMPLATE (m);
reset_decl_linkage (mem);
- if (DECL_MAYBE_IN_CHARGE_CONSTRUCTOR_P (mem))
- {
- /* Also update its name, for cxx_dwarf_name. */
- DECL_NAME (mem) = TYPE_IDENTIFIER (type);
- if (m != mem)
- DECL_NAME (m) = TYPE_IDENTIFIER (type);
- }
}
binding_table_foreach (CLASSTYPE_NESTED_UTDS (type),
bt_reset_linkage_2, NULL);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-07-11 12:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-11 12:29 [C++ PATCH] ctor name should not change Nathan Sidwell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).