aboutsummaryrefslogtreecommitdiff
path: root/gcc/targhooks.c
diff options
context:
space:
mode:
authorJames Greenhalgh <james.greenhalgh@arm.com>2016-11-23 17:14:07 +0000
committerJames Greenhalgh <jgreenhalgh@gcc.gnu.org>2016-11-23 17:14:07 +0000
commit42e02b207fdf71f09020eef2bba3e25f5f57a946 (patch)
treec7ee3fc4890a00af4ef7dfacfa95f70282c9cdd3 /gcc/targhooks.c
parentaecc521b46ac451c0547d8693bfcfabfb3832401 (diff)
downloadgcc-42e02b207fdf71f09020eef2bba3e25f5f57a946.zip
gcc-42e02b207fdf71f09020eef2bba3e25f5f57a946.tar.gz
gcc-42e02b207fdf71f09020eef2bba3e25f5f57a946.tar.bz2
[Patch 1/17] Add a new target hook for describing excess precision intentions
gcc/ * target.def (excess_precision): New hook. * target.h (flt_eval_method): New. (excess_precision_type): Likewise. * targhooks.c (default_excess_precision): New. * targhooks.h (default_excess_precision): New. * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New. * doc/tm.texi: Regenerate. From-SVN: r242771
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 866747a..73e1c25 100644
--- a/gcc/targhooks.c
+++ b/gcc/targhooks.c
@@ -2135,4 +2135,12 @@ default_min_arithmetic_precision (void)
return WORD_REGISTER_OPERATIONS ? BITS_PER_WORD : BITS_PER_UNIT;
}
+/* Default implementation of TARGET_C_EXCESS_PRECISION. */
+
+enum flt_eval_method
+default_excess_precision (enum excess_precision_type ATTRIBUTE_UNUSED)
+{
+ return FLT_EVAL_METHOD_PROMOTE_TO_FLOAT;
+}
+
#include "gt-targhooks.h"