From b396053cdf755df786563d3e20183f749b1a132c Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Tue, 20 Jul 2004 13:56:19 +0000 Subject: [PATCH] tree.h (binfo_member): Remove. .: * tree.h (binfo_member): Remove. * tree.c (binfo_member): Remove. cp: * cp-tree.h (vec_binfo_member): Remove. * tree.c (vec_binfo_member): Remove. From-SVN: r84951 --- gcc/ChangeLog | 6 ++++++ gcc/cp/ChangeLog | 3 +++ gcc/cp/cp-tree.h | 1 - gcc/cp/tree.c | 16 ---------------- gcc/tree.c | 15 --------------- gcc/tree.h | 1 - 6 files changed, 9 insertions(+), 33 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c788fc6164c..0cac3ad110f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-07-20 Nathan Sidwell + + * tree.h (binfo_member): Remove. + * tree.c (binfo_member): Remove. + 2004-07-20 Nathan Sidwell * tree.h: Include vec.h @@ -4362,4 +4367,5 @@ * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove. * optabs.c (init_optabs): Don't set gcov_init_libfunc. +VERSION_IDENT="CVS-$Name: $ $Revision: 1.46 $-$Date: 2004/07/08 15:54:45 $-UTC" See ChangeLog.11 for earlier changes. diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index fd997b04349..53406d0c454 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,8 @@ 2004-07-20 Nathan Sidwell + * cp-tree.h (vec_binfo_member): Remove. + * tree.c (vec_binfo_member): Remove. + * cp-tree.h (struct lang_type_class): Remove vfields field. (CLASSTYPE_VFIELDS): Remove. (SET_BINFO_NEW_VTABLE_MARKED): Adjust. diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 60217c4373e..a3779d88db5 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -4150,7 +4150,6 @@ extern tree array_type_nelts_total (tree); extern tree array_type_nelts_top (tree); extern tree break_out_target_exprs (tree); extern tree get_type_decl (tree); -extern tree vec_binfo_member (tree, tree); extern tree decl_namespace_context (tree); extern tree lvalue_type (tree); extern tree error_type (tree); diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index f005d7c4f7d..918849d4ab4 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -1396,22 +1396,6 @@ get_type_decl (tree t) return 0; } -/* Return first vector element whose BINFO_TYPE is ELEM. - Return 0 if ELEM is not in VEC. VEC may be NULL_TREE. */ - -tree -vec_binfo_member (tree elem, tree vec) -{ - int i; - - if (vec) - for (i = 0; i < TREE_VEC_LENGTH (vec); ++i) - if (same_type_p (elem, BINFO_TYPE (TREE_VEC_ELT (vec, i)))) - return TREE_VEC_ELT (vec, i); - - return NULL_TREE; -} - /* Returns the namespace that contains DECL, whether directly or indirectly. */ diff --git a/gcc/tree.c b/gcc/tree.c index b76b6288a5d..564cd0e9a22 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -953,21 +953,6 @@ purpose_member (tree elem, tree list) return NULL_TREE; } -/* Return first list element whose BINFO_TYPE is ELEM. - Return 0 if ELEM is not in LIST. */ - -tree -binfo_member (tree elem, tree list) -{ - while (list) - { - if (elem == BINFO_TYPE (list)) - return list; - list = TREE_CHAIN (list); - } - return NULL_TREE; -} - /* Return nonzero if ELEM is part of the chain CHAIN. */ int diff --git a/gcc/tree.h b/gcc/tree.h index 32ede7256a7..09249bde3e9 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -2752,7 +2752,6 @@ extern bool in_array_bounds_p (tree); extern tree value_member (tree, tree); extern tree purpose_member (tree, tree); -extern tree binfo_member (tree, tree); extern int attribute_list_equal (tree, tree); extern int attribute_list_contained (tree, tree); -- 2.30.2