This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] tree.c: Remove add_var_to_bind_expr.
- From: Kazu Hirata <kazu at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 28 Jan 2006 14:08:22 -0800
- Subject: [patch] tree.c: Remove add_var_to_bind_expr.
Hi,
Attached is a patch to remove add_var_to_bind_expr as it is unused in
4.1 and mainline. In 4.0 branch, tree-inline.c used to use the
function.
Bootstrapped on x86_64-pc-linux-gnu. OK to apply?
Kazu Hirata
2006-01-28 Kazu Hirata <kazu@codesourcery.com>
* tree.c (add_var_to_bind_expr): Remove.
* tree.h: Remove the prototype for add_var_to_bind_expr.
Index: tree.c
===================================================================
--- tree.c (revision 110325)
+++ tree.c (working copy)
@@ -6820,16 +6820,6 @@ initializer_zerop (tree init)
}
}
-void
-add_var_to_bind_expr (tree bind_expr, tree var)
-{
- BIND_EXPR_VARS (bind_expr)
- = chainon (BIND_EXPR_VARS (bind_expr), var);
- if (BIND_EXPR_BLOCK (bind_expr))
- BLOCK_VARS (BIND_EXPR_BLOCK (bind_expr))
- = BIND_EXPR_VARS (bind_expr);
-}
-
/* Build an empty statement. */
tree
Index: tree.h
===================================================================
--- tree.h (revision 110325)
+++ tree.h (working copy)
@@ -3871,10 +3871,6 @@ extern void categorize_ctor_elements (tr
HOST_WIDE_INT *, bool *);
extern HOST_WIDE_INT count_type_elements (tree, bool);
-/* add_var_to_bind_expr (bind_expr, var) binds var to bind_expr. */
-
-extern void add_var_to_bind_expr (tree, tree);
-
/* integer_zerop (tree x) is nonzero if X is an integer constant of value 0. */
extern int integer_zerop (tree);