aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndreas Tobler <a.tobler@schweiz.ch>2004-08-20 00:34:15 +0200
committerAndreas Tobler <andreast@gcc.gnu.org>2004-08-20 00:34:15 +0200
commit401d6e7bf17405f21501b602d6469c9c2384e75d (patch)
tree519c8ca4bb0533f7eb04d10bb0cde96d1f19b9c7 /gcc
parent292e0d3a8a3347c5200f7cda725743f1f1dafcbc (diff)
downloadgcc-401d6e7bf17405f21501b602d6469c9c2384e75d.zip
gcc-401d6e7bf17405f21501b602d6469c9c2384e75d.tar.gz
gcc-401d6e7bf17405f21501b602d6469c9c2384e75d.tar.bz2
tree.c: Remove unused mark_local_for_remap_r.
2004-08-20 Andreas Tobler <a.tobler@schweiz.ch> * tree.c: Remove unused mark_local_for_remap_r. From-SVN: r86289
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/tree.c46
2 files changed, 4 insertions, 46 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 79fcaeb..cf2e0b8 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2004-08-20 Andreas Tobler <a.tobler@schweiz.ch>
+
+ * tree.c: Remove unused mark_local_for_remap_r.
+
2004-08-19 Eric Christopher <echristo@redhat.com>
* cp-tree.h (cxx_unsave_expr_now): Delete prototype.
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index cb1f4e3..703d963 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -42,7 +42,6 @@ static int list_hash_eq (const void *, const void *);
static hashval_t list_hash_pieces (tree, tree, tree);
static hashval_t list_hash (const void *);
static cp_lvalue_kind lvalue_p_1 (tree, int);
-static tree mark_local_for_remap_r (tree *, int *, void *);
static tree build_target_expr (tree, tree);
static tree count_trees_r (tree *, int *, void *);
static tree verify_stmt_tree_r (tree *, int *, void *);
@@ -2125,51 +2124,6 @@ init_tree (void)
list_hash_table = htab_create_ggc (31, list_hash, list_hash_eq, NULL);
}
-/* Called via walk_tree. If *TP points to a DECL_EXPR for a local
- declaration, copies the declaration and enters it in the splay_tree
- pointed to by DATA (which is really a `splay_tree *'). */
-
-static tree
-mark_local_for_remap_r (tree* tp,
- int* walk_subtrees ATTRIBUTE_UNUSED ,
- void* data)
-{
- tree t = *tp;
- splay_tree st = (splay_tree) data;
- tree decl;
-
-
- if (TREE_CODE (t) == DECL_EXPR
- && nonstatic_local_decl_p (DECL_EXPR_DECL (t)))
- decl = DECL_EXPR_DECL (t);
- else if (TREE_CODE (t) == LABEL_EXPR)
- decl = LABEL_EXPR_LABEL (t);
- else if (TREE_CODE (t) == TARGET_EXPR
- && nonstatic_local_decl_p (TREE_OPERAND (t, 0)))
- decl = TREE_OPERAND (t, 0);
- else if (TREE_CODE (t) == CASE_LABEL_EXPR)
- decl = CASE_LABEL (t);
- else
- decl = NULL_TREE;
-
- if (decl)
- {
- tree copy;
-
- /* Make a copy. */
- copy = copy_decl_for_inlining (decl,
- DECL_CONTEXT (decl),
- DECL_CONTEXT (decl));
-
- /* Remember the copy. */
- splay_tree_insert (st,
- (splay_tree_key) decl,
- (splay_tree_value) copy);
- }
-
- return NULL_TREE;
-}
-
/* Returns the kind of special function that DECL (a FUNCTION_DECL)
is. Note that sfk_none is zero, so this function can be used as a
predicate to test whether or not DECL is a special function. */