Patchwork RFA: hook signture patches (5/11): TARGET_FOLD_BUILTIN

login
register
mail settings
Submitter Joern Rennecke
Date June 30, 2010, 2:01 a.m.
Message ID <20100629220119.9cq95ou7ms0k4www-nzlynne@webmail.spamcop.net>
Download mbox | patch
Permalink /patch/57353/
State New
Headers show

Comments

Joern Rennecke - June 30, 2010, 2:01 a.m.
2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>

	* target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
	* doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
	* doc/tm.texi: Regenerate.

Patch

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