* [C++ PATCH] remove unused identifier
@ 2017-06-20 16:29 Nathan Sidwell
0 siblings, 0 replies; only message in thread
From: Nathan Sidwell @ 2017-06-20 16:29 UTC (permalink / raw)
To: GCC Patches
[-- Attachment #1: Type: text/plain, Size: 142 bytes --]
'nelts' was a suspiciously gnu user space identifier to have. Turns out
we don't use it anywhere. so killed ...
nathan
--
Nathan Sidwell
[-- Attachment #2: elt.diff --]
[-- Type: text/x-patch, Size: 1623 bytes --]
2017-06-20 Nathan Sidwell <nathan@acm.org>
* cp-tree.h (CPTI_NELTS_IDENTIFIER): Delete.
(nelts_identifier): Delete.
* decl.c (initialize_predefined_identifiers): Remove nelts.
Index: cp-tree.h
===================================================================
--- cp-tree.h (revision 249418)
+++ cp-tree.h (working copy)
@@ -136,7 +136,6 @@ enum cp_tree_index
CPTI_DELTA_IDENTIFIER,
CPTI_IN_CHARGE_IDENTIFIER,
CPTI_VTT_PARM_IDENTIFIER,
- CPTI_NELTS_IDENTIFIER,
CPTI_THIS_IDENTIFIER,
CPTI_PFN_IDENTIFIER,
CPTI_VPTR_IDENTIFIER,
@@ -234,7 +233,6 @@ extern GTY(()) tree cp_global_trees[CPTI
/* The name of the parameter that contains a pointer to the VTT to use
for this subobject constructor or destructor. */
#define vtt_parm_identifier cp_global_trees[CPTI_VTT_PARM_IDENTIFIER]
-#define nelts_identifier cp_global_trees[CPTI_NELTS_IDENTIFIER]
#define this_identifier cp_global_trees[CPTI_THIS_IDENTIFIER]
#define pfn_identifier cp_global_trees[CPTI_PFN_IDENTIFIER]
#define vptr_identifier cp_global_trees[CPTI_VPTR_IDENTIFIER]
Index: decl.c
===================================================================
--- decl.c (revision 249418)
+++ decl.c (working copy)
@@ -3982,7 +3982,6 @@ initialize_predefined_identifiers (void)
{ "__base_dtor ", &base_dtor_identifier, 1 },
{ "__deleting_dtor ", &deleting_dtor_identifier, 1 },
{ IN_CHARGE_NAME, &in_charge_identifier, 0 },
- { "nelts", &nelts_identifier, 0 },
{ THIS_NAME, &this_identifier, 0 },
{ VTABLE_DELTA_NAME, &delta_identifier, 0 },
{ VTABLE_PFN_NAME, &pfn_identifier, 0 },
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-06-20 16:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-20 16:29 [C++ PATCH] remove unused identifier 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).