aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@embecosm.com>2010-06-30 17:52:17 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2010-06-30 18:52:17 +0100
commit89356d17f169556c0ac22cf962e898d8f3c43a1a (patch)
treef02f057c18ecaba511d86e193f541e0a861f4ed8 /gcc
parentad78130c8447185dbfe306f18284cff91aed4e17 (diff)
downloadgcc-89356d17f169556c0ac22cf962e898d8f3c43a1a.zip
gcc-89356d17f169556c0ac22cf962e898d8f3c43a1a.tar.gz
gcc-89356d17f169556c0ac22cf962e898d8f3c43a1a.tar.bz2
target.def (builtin_reciprocal): Change tm_fn to md_fn.
* target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK. * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook. From-SVN: r161620
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/doc/tm.texi.in2
-rw-r--r--gcc/target.def5
3 files changed, 6 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 84eafdb..8fbaf93 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
index 33901d4..239b22c 100644
--- a/gcc/doc/tm.texi.in
+++ b/gcc/doc/tm.texi.in
@@ -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
diff --git a/gcc/target.def b/gcc/target.def
index 92454db..2c83a08 100644
--- a/gcc/target.def
+++ b/gcc/target.def
@@ -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