aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2015-01-12 21:30:09 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2015-01-12 21:30:09 +0100
commitaadb701b4ced25a8ba2d576bc262a9b83af8c6c4 (patch)
tree9d558c52a3759660ebc26f399a15923941e308f3
parent351f160060e5e08b2ea98f0e1faddd28d8f4b081 (diff)
downloadgcc-aadb701b4ced25a8ba2d576bc262a9b83af8c6c4.zip
gcc-aadb701b4ced25a8ba2d576bc262a9b83af8c6c4.tar.gz
gcc-aadb701b4ced25a8ba2d576bc262a9b83af8c6c4.tar.bz2
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/sreal.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4fc60ef..775efde 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2015-01-12 Jakub Jelinek <jakub@redhat.com>
+
+ PR other/64370
+ * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
+
2015-01-12 Jeff Law <law@redhat.com>
PR target/64461
diff --git a/gcc/sreal.c b/gcc/sreal.c
index 622fc2d..94b75dd 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;
}