summaryrefslogtreecommitdiff
path: root/libquadmath
diff options
context:
space:
mode:
authorburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-25 19:59:07 +0000
committerburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-25 19:59:07 +0000
commit0765f45dda08afe7c1df85766a8c2ecc76c560be (patch)
tree2a35ce4f765dbdf2224b38acad28a92811887f7a /libquadmath
parent67323d3009497672ec80d7a297f880032612c299 (diff)
downloadgcc-0765f45dda08afe7c1df85766a8c2ecc76c560be.tar.gz
2012-11-25 Tobias Burnus <burnus@net-b.de>
PR libquadmath/55462 * strtod/strtod_l.c (round_and_return): Use HAVE_FENV_H instead of nonexisting HAVE_GET_ROUNDING_MODE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193796 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libquadmath')
-rw-r--r--libquadmath/ChangeLog6
-rw-r--r--libquadmath/strtod/strtod_l.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/libquadmath/ChangeLog b/libquadmath/ChangeLog
index 365c4bb0d55..8b052dcf390 100644
--- a/libquadmath/ChangeLog
+++ b/libquadmath/ChangeLog
@@ -1,3 +1,9 @@
+2012-11-25 Tobias Burnus <burnus@net-b.de>
+
+ PR libquadmath/55462
+ * strtod/strtod_l.c (round_and_return): Use HAVE_FENV_H
+ instead of nonexisting HAVE_GET_ROUNDING_MODE.
+
2012-11-23 H.J. Lu <hongjiu.lu@intel.com>
PR bootstrap/55455
diff --git a/libquadmath/strtod/strtod_l.c b/libquadmath/strtod/strtod_l.c
index 5e3321fd742..cd0c1f2da25 100644
--- a/libquadmath/strtod/strtod_l.c
+++ b/libquadmath/strtod/strtod_l.c
@@ -223,7 +223,7 @@ round_and_return (mp_limb_t *retval, intmax_t exponent, int negative,
}
else if (shift > 0)
{
-#ifdef HAVE_GET_ROUNDING_MODE
+#ifdef HAVE_FENV_H
if (TININESS_AFTER_ROUNDING && shift == 1)
{
/* Whether the result counts as tiny depends on whether,
@@ -279,7 +279,7 @@ round_and_return (mp_limb_t *retval, intmax_t exponent, int negative,
if (exponent > MAX_EXP)
goto overflow;
-#ifdef HAVE_GET_ROUNDING_MODE
+#ifdef HAVE_FENV_H
if (round_away (negative,
(retval[0] & 1) != 0,
(round_limb & (((mp_limb_t) 1) << round_bit)) != 0,