summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-24 13:06:10 +0000
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-24 13:06:10 +0000
commit9c8ace7d7775bdd4d68917ae5a0b4de8f422e419 (patch)
tree57b45ac6f7507ac7080ea2dbf25d9990772f2f13 /gcc
parent3546176d94a45fca7e516255a6b9c2ccc0f71f47 (diff)
downloadppe42-gcc-9c8ace7d7775bdd4d68917ae5a0b4de8f422e419.tar.gz
ppe42-gcc-9c8ace7d7775bdd4d68917ae5a0b4de8f422e419.zip
2011-06-23 Gabriel Charette <gchare@google.com>
* name-lookup.h (cp_binding_level): Removed unused member names_size. Update all users. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175373 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/name-lookup.c1
-rw-r--r--gcc/cp/name-lookup.h3
3 files changed, 5 insertions, 4 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 12b12e577da..e860837f4e8 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2011-06-23 Gabriel Charette <gchare@google.com>
+
+ * name-lookup.h (cp_binding_level): Removed unused
+ member names_size. Update all users.
+
2011-06-23 Jason Merrill <jason@redhat.com>
PR c++/49519
diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c
index 953edd57f22..8bf5f5fde66 100644
--- a/gcc/cp/name-lookup.c
+++ b/gcc/cp/name-lookup.c
@@ -541,7 +541,6 @@ add_decl_to_level (tree decl, cxx_scope *b)
necessary. */
TREE_CHAIN (decl) = b->names;
b->names = decl;
- b->names_size++;
/* If appropriate, add decl to separate list of statics. We
include extern variables because they might turn out to be
diff --git a/gcc/cp/name-lookup.h b/gcc/cp/name-lookup.h
index 009b5d982f1..5f266eb9fc6 100644
--- a/gcc/cp/name-lookup.h
+++ b/gcc/cp/name-lookup.h
@@ -191,9 +191,6 @@ struct GTY(()) cp_binding_level {
are wrapped in TREE_LISTs; the TREE_VALUE is the OVERLOAD. */
tree names;
- /* Count of elements in names chain. */
- size_t names_size;
-
/* A chain of NAMESPACE_DECL nodes. */
tree namespaces;
OpenPOWER on IntegriCloud