[PATCH] remove build_nt_call_list
Nathan Froyd
froydnj@codesourcery.com
Tue Jun 1 18:22:00 GMT 2010
This patch removes build_nt_call_list, which grep indicates is unused:
-*- mode: grep; default-directory: "/scratch/froydnj/fsf/src/gcc-mainline/gcc/" -*-
Grep started at Tue Jun 1 11:18:39
find . -type f \( -name \*.\[ch\] \) -print0 | xargs -0 -e grep -i -nH -e build_nt_call_list
./tree.c:3859:build_nt_call_list (tree fn, tree arglist)
./tree.h:3974:extern tree build_nt_call_list (tree, tree);
Grep exited abnormally with code 123 at Tue Jun 1 11:18:48
Tested on x86_64-unknown-linux-gnu. OK to commit?
-Nathan
* tree.h (build_nt_call_list): Delete.
* tree.c (build_nt_call_list): Delete.
Index: tree.c
===================================================================
--- tree.c (revision 160112)
+++ tree.c (working copy)
@@ -3852,23 +3852,6 @@ build_nt (enum tree_code code, ...)
return t;
}
-/* Similar to build_nt, but for creating a CALL_EXPR object with
- ARGLIST passed as a list. */
-
-tree
-build_nt_call_list (tree fn, tree arglist)
-{
- tree t;
- int i;
-
- t = build_vl_exp (CALL_EXPR, list_length (arglist) + 3);
- CALL_EXPR_FN (t) = fn;
- CALL_EXPR_STATIC_CHAIN (t) = NULL_TREE;
- for (i = 0; arglist; arglist = TREE_CHAIN (arglist), i++)
- CALL_EXPR_ARG (t, i) = TREE_VALUE (arglist);
- return t;
-}
-
/* Similar to build_nt, but for creating a CALL_EXPR object with a
tree VEC. */
Index: tree.h
===================================================================
--- tree.h (revision 160112)
+++ tree.h (working copy)
@@ -3971,7 +3971,6 @@ extern tree maybe_get_identifier (const
/* Construct various types of nodes. */
extern tree build_nt (enum tree_code, ...);
-extern tree build_nt_call_list (tree, tree);
extern tree build_nt_call_vec (tree, VEC(tree,gc) *);
extern tree build0_stat (enum tree_code, tree MEM_STAT_DECL);
More information about the Gcc-patches
mailing list