From patchwork Wed Jun 30 01:58:42 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: RFA: hook signture patches (3/11): TARGET_BUILTIN_RECIPROCAL Date: Tue, 29 Jun 2010 15:58:42 -0000 From: Joern Rennecke X-Patchwork-Id: 57351 Message-Id: <20100629215842.y2kra1asgkko4ckc-nzlynne@webmail.spamcop.net> To: gcc-patches@gcc.gnu.org 2010-06-29 Joern Rennecke * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK. * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook. Index: doc/tm.texi =================================================================== --- doc/tm.texi.in (revision 161563) +++ doc/tm.texi.in (working copy) @@ -5645,7 +5645,7 @@ of @var{x}. The default version returns false for all constants. @end deftypefn -@deftypefn {Target Hook} tree TARGET_BUILTIN_RECIPROCAL (unsigned @var{fn}, bool @var{md_fn}, bool @var{sqrt}) +@hook TARGET_BUILTIN_RECIPROCAL This hook should return the DECL of a function that implements reciprocal of the builtin function with builtin function code @var{fn}, or @code{NULL_TREE} if such a function is not available. @var{md_fn} is true Index: target.def =================================================================== --- target.def (revision 161563) +++ target.def (working copy) @@ -1031,11 +1025,10 @@ DEFHOOK /* Returns a code for a target-specific builtin that implements reciprocal of the function, or NULL_TREE if not available. */ -/* ??? The documentation uses a different name for tm_fn. */ -DEFHOOK_UNDOC +DEFHOOK (builtin_reciprocal, "", - tree, (unsigned fn, bool tm_fn, bool sqrt), + tree, (unsigned fn, bool md_fn, bool sqrt), default_builtin_reciprocal) /* For a vendor-specific TYPE, return a pointer to a statically-allocated