OSDN Git Service

* tree.c (function_args_count): Remove.
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 18 Apr 2009 11:48:19 +0000 (11:48 +0000)
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 18 Apr 2009 11:48:19 +0000 (11:48 +0000)
* tree.h: Remove the prototype for function_args_count.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146312 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree.c
gcc/tree.h

index 2ee3685..fa02ee6 100644 (file)
@@ -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.
 
index ac6c31e..9fe6db3 100644 (file)
@@ -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.  */
index a83151d..793dcf3 100644 (file)
@@ -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);
 \f
 /* In gimplify.c */