diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2009-04-18 11:48:19 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2009-04-18 11:48:19 +0000 |
commit | aa424b01a1291050106737b4dded3de16da986b6 (patch) | |
tree | 3ed439ad4c47d4d271b9d68c28f8cd9a445c8e52 /gcc | |
parent | 613a896b5802a4825303b417974cea6a68b84030 (diff) | |
download | gcc-aa424b01a1291050106737b4dded3de16da986b6.zip gcc-aa424b01a1291050106737b4dded3de16da986b6.tar.gz gcc-aa424b01a1291050106737b4dded3de16da986b6.tar.bz2 |
tree.c (function_args_count): Remove.
* tree.c (function_args_count): Remove.
* tree.h: Remove the prototype for function_args_count.
From-SVN: r146312
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree.c | 20 | ||||
-rw-r--r-- | gcc/tree.h | 1 |
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. @@ -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. */ @@ -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 */ |