From aadb701b4ced25a8ba2d576bc262a9b83af8c6c4 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 12 Jan 2015 21:30:09 +0100 Subject: [PATCH] re PR other/64370 (sreal.c:125:23: error: 'exp2' was not declared in this scope) PR other/64370 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl. From-SVN: r219489 --- gcc/ChangeLog | 5 +++++ gcc/sreal.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4fc60ef80e5..775efde21b4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-01-12 Jakub Jelinek + + PR other/64370 + * sreal.c (sreal::to_double): Use ldexp instead of scalbnl. + 2015-01-12 Jeff Law PR target/64461 diff --git a/gcc/sreal.c b/gcc/sreal.c index 622fc2d2136..94b75dd8660 100644 --- a/gcc/sreal.c +++ b/gcc/sreal.c @@ -122,7 +122,7 @@ sreal::to_double () const { double val = m_sig; if (m_exp) - val = scalbln (val, m_exp); + val = ldexp (val, m_exp); return val; } -- 2.30.2