From patchwork Wed Jun 30 02:07:52 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: RFA: hook signture patches (9/11): TARGET_RESOLVE_OVERLOADED_BUILTIN Date: Tue, 29 Jun 2010 16:07:52 -0000 From: Joern Rennecke X-Patchwork-Id: 57357 Message-Id: <20100629220752.u8q95c8tgkkkwgsg-nzlynne@webmail.spamcop.net> To: gcc-patches@gcc.gnu.org 2010-06-29 Joern Rennecke * target.def (resolve_overloaded_builtin): Rename params to arglist. Use DEFHOOK. * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook. * doc/tm.texi: Regenerate. Index: doc/tm.texi =================================================================== --- doc/tm.texi (revision 161563) +++ doc/tm.texi (working copy) @@ -10792,7 +10791,6 @@ built-in function. @end deftypefn @deftypefn {Target Hook} tree TARGET_RESOLVE_OVERLOADED_BUILTIN (unsigned int @var{loc}, tree @var{fndecl}, void *@var{arglist}) - Select a replacement for a machine specific built-in function that was set up by @samp{TARGET_INIT_BUILTINS}. This is done @emph{before} regular type checking, and so allows the target to Index: doc/tm.texi.in =================================================================== --- doc/tm.texi.in (revision 161563) +++ doc/tm.texi.in (working copy) @@ -10782,8 +10781,7 @@ ignored. This function should return th built-in function. @end deftypefn -@deftypefn {Target Hook} tree TARGET_RESOLVE_OVERLOADED_BUILTIN (unsigned int @var{loc}, tree @var{fndecl}, void *@var{arglist}) - +@hook TARGET_RESOLVE_OVERLOADED_BUILTIN Select a replacement for a machine specific built-in function that was set up by @samp{TARGET_INIT_BUILTINS}. This is done @emph{before} regular type checking, and so allows the target to Index: target.def =================================================================== --- target.def (revision 161563) +++ target.def (working copy) @@ -1031,11 +1025,9 @@ DEFHOOK implement a crude form of function overloading. The result is a complete expression that implements the operation. PARAMS really has type VEC(tree,gc)*, but we don't want to include tree.h here. */ - /* ??? params is called differently in the documentation, and we can't - fix that because of GPL / GFDL incompatibility. */ -DEFHOOK_UNDOC +DEFHOOK (resolve_overloaded_builtin, "", - tree, (unsigned int /*location_t*/ loc, tree fndecl, void *params), NULL) + tree, (unsigned int /*location_t*/ loc, tree fndecl, void *arglist), NULL) /* Fold a target-specific builtin. */