]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree.c (function_args_count): Remove.
authorKazu Hirata <kazu@codesourcery.com>
Sat, 18 Apr 2009 11:48:19 +0000 (11:48 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sat, 18 Apr 2009 11:48:19 +0000 (11:48 +0000)
* tree.c (function_args_count): Remove.
* tree.h: Remove the prototype for function_args_count.

From-SVN: r146312

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

index 2ee3685e9d0e50c1d4adee2aa1795263a4439e2c..fa02ee6fe2e123688a4bf32634f802dd695b4a54 100644 (file)
@@ -1,3 +1,8 @@
+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.
index ac6c31e051c87b8ec098e301b5a8f2f8b1305ed7..9fe6db3ed984c8f0d613bb4a3b493ccd374c9f9f 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 a83151dfc2ed7f53dde8d754f6ef0cb22e3a1215..793dcf38c71dc740e159dd474544e0e5eb7cdf8c 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 */