aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree.c20
-rw-r--r--gcc/tree.h1
3 files changed, 5 insertions, 21 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2ee3685..fa02ee6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2009-04-18 Kazu Hirata <kazu@codesourcery.com>
+ * tree.c (function_args_count): Remove.
+ * tree.h: Remove the prototype for function_args_count.
+
+2009-04-18 Kazu Hirata <kazu@codesourcery.com>
+
* tree-iterator.c (expr_only): Remove.
* tree.h: Remove the prototype for expr_only.
diff --git a/gcc/tree.c b/gcc/tree.c
index ac6c31e..9fe6db3 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -9071,26 +9071,6 @@ prototype_p (tree fntype)
return (t != NULL_TREE);
}
-/* Return the number of arguments that a function has. */
-
-int
-function_args_count (tree fntype)
-{
- function_args_iterator args_iter;
- tree t;
- int num = 0;
-
- if (fntype)
- {
- FOREACH_FUNCTION_ARGS(fntype, t, args_iter)
- {
- num++;
- }
- }
-
- return num;
-}
-
/* If BLOCK is inlined from an __attribute__((__artificial__))
routine, return pointer to location from where it has been
called. */
diff --git a/gcc/tree.h b/gcc/tree.h
index a83151d..793dcf3 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -4655,7 +4655,6 @@ extern tree create_artificial_label (void);
extern const char *get_name (tree);
extern bool stdarg_p (tree);
extern bool prototype_p (tree);
-extern int function_args_count (tree);
extern bool auto_var_in_fn_p (const_tree, const_tree);
/* In gimplify.c */