aboutsummaryrefslogtreecommitdiff
path: root/gcc/targhooks.c
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2006-01-03 05:08:19 +0000
committerBen Elliston <bje@gcc.gnu.org>2006-01-03 16:08:19 +1100
commit0884546e1b92fe109e30cca3295e6212e4b24567 (patch)
treef8c13fa669e0c671c2979bc8fa8c21d053260d92 /gcc/targhooks.c
parentf13f406e12f237894d8b44632651959863b99dff (diff)
downloadgcc-0884546e1b92fe109e30cca3295e6212e4b24567.zip
gcc-0884546e1b92fe109e30cca3295e6212e4b24567.tar.gz
gcc-0884546e1b92fe109e30cca3295e6212e4b24567.tar.bz2
targhooks.h (default_decimal_float_supported_p): Declare.
* targhooks.h (default_decimal_float_supported_p): Declare. * targhooks.c (default_decimal_float_supported_p): Define. * target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Redefine to `default_decimal_float_supported_p'. * doc/tm.texi (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Update. From-SVN: r109262
Diffstat (limited to 'gcc/targhooks.c')
-rw-r--r--gcc/targhooks.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/targhooks.c b/gcc/targhooks.c
index 5ef2369..2ff2b9b 100644
--- a/gcc/targhooks.c
+++ b/gcc/targhooks.c
@@ -270,6 +270,14 @@ default_scalar_mode_supported_p (enum machine_mode mode)
}
}
+/* True if the target supports decimal floating point. */
+
+bool
+default_decimal_float_supported_p (void)
+{
+ return ENABLE_DECIMAL_FLOAT;
+}
+
/* NULL if INSN insn is valid within a low-overhead loop, otherwise returns
an error message.