This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] tree.c: Remove function_args_count.


On Sat, Apr 18, 2009 at 3:13 AM, Kazu Hirata <kazu@codesourcery.com> wrote:
> Hi,
>
> Attached is a patch to remove function_args_count.
>
> AFAICT, this function has been unused ever since it was introduced at
> Revision 128455.
>
> Bootstrapped on x86_64-pc-linux-gnu. ?OK to apply?

Ok.

Thanks,
Richard.

> Kazu Hirata
>
> 2009-04-17 ?Kazu Hirata ?<kazu@codesourcery.com>
>
> ? ? ? ?* tree.c (function_args_count): Remove.
> ? ? ? ?* tree.h: Remove the prototype for function_args_count.
>
> Index: gcc/tree.c
> ===================================================================
> --- gcc/tree.c ?(revision 146215)
> +++ gcc/tree.c ?(working copy)
> @@ -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: gcc/tree.h
> ===================================================================
> --- gcc/tree.h ?(revision 146215)
> +++ gcc/tree.h ?(working copy)
> @@ -4656,7 +4656,6 @@ extern tree create_artificial_label (voi
> ?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 */
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]