OSDN Git Service

* target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Jun 2010 17:52:17 +0000 (17:52 +0000)
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Jun 2010 17:52:17 +0000 (17:52 +0000)
* doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161620 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/doc/tm.texi.in
gcc/target.def

index 84eafdb..8fbaf93 100644 (file)
@@ -7,6 +7,9 @@
        * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
        * doc/tm.texi: Regenerate.
 
+       * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
+       * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
+
 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
 
        * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
index 33901d4..239b22c 100644 (file)
@@ -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 92454db..2c83a08 100644 (file)
@@ -1047,11 +1047,10 @@ DEFHOOK_UNDOC
 
 /* 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