From patchwork Wed Jun 30 02:01:19 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: RFA: hook signture patches (5/11): TARGET_FOLD_BUILTIN Date: Tue, 29 Jun 2010 16:01:19 -0000 From: Joern Rennecke X-Patchwork-Id: 57353 Message-Id: <20100629220119.9cq95ou7ms0k4www-nzlynne@webmail.spamcop.net> To: gcc-patches@gcc.gnu.org 2010-06-29 Joern Rennecke * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK. * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook. * doc/tm.texi: Regenerate. Index: doc/tm.texi =================================================================== --- doc/tm.texi (revision 161563) +++ doc/tm.texi (working copy) @@ -10805,7 +10803,6 @@ another @code{CALL_EXPR}. @end deftypefn @deftypefn {Target Hook} tree TARGET_FOLD_BUILTIN (tree @var{fndecl}, int @var{n_args}, tree *@var{argp}, bool @var{ignore}) - Fold a call to a machine specific built-in function that was set up by @samp{TARGET_INIT_BUILTINS}. @var{fndecl} is the declaration of the built-in function. @var{n_args} is the number of arguments passed to Index: doc/tm.texi.in =================================================================== --- doc/tm.texi.in (revision 161563) +++ doc/tm.texi.in (working copy) @@ -10795,8 +10793,7 @@ another @code{CALL_EXPR}. @var{arglist} really has type @samp{VEC(tree,gc)*} @end deftypefn -@deftypefn {Target Hook} tree TARGET_FOLD_BUILTIN (tree @var{fndecl}, int @var{n_args}, tree *@var{argp}, bool @var{ignore}) - +@hook TARGET_FOLD_BUILTIN Fold a call to a machine specific built-in function that was set up by @samp{TARGET_INIT_BUILTINS}. @var{fndecl} is the declaration of the built-in function. @var{n_args} is the number of arguments passed to Index: target.def =================================================================== --- target.def (revision 161563) +++ target.def (working copy) @@ -1031,10 +1025,9 @@ DEFHOOK /* Fold a target-specific builtin. */ -/* ??? The documentation uses a different name for nargs. */ -DEFHOOK_UNDOC +DEFHOOK (fold_builtin, "", - tree, (tree fndecl, int nargs, tree *argp, bool ignore), + tree, (tree fndecl, int n_args, tree *argp, bool ignore), hook_tree_tree_int_treep_bool_null) /* Returns a code for a target-specific builtin that implements