summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Brown <julian@codesourcery.com>2006-04-24 21:37:24 +0000
committerJulian Brown <julian@codesourcery.com>2006-04-24 21:37:24 +0000
commita7f5b5a58f6f30b5cd3530add9c8b1ee426029d2 (patch)
tree399b1ef9ebac904425bb12dc56e05ec4821c1c1e
parent514fbb35197f5958aa765d11a35deef9a07fe927 (diff)
downloadbinutils-redhat-a7f5b5a58f6f30b5cd3530add9c8b1ee426029d2.tar.gz
* libiberty/floatformat.c (floatformat_to_double): Fix (biased)binutils-csl-sourcerygxx-3_4_4-17
exponent=0 case.
-rw-r--r--ChangeLog.csl5
-rw-r--r--libiberty/floatformat.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog.csl b/ChangeLog.csl
index 121f6fd6d3..d0cc33389e 100644
--- a/ChangeLog.csl
+++ b/ChangeLog.csl
@@ -1,3 +1,8 @@
+2006-04-24 Julian Brown <julian@codesourcery.com>
+
+ * libiberty/floatformat.c (floatformat_to_double): Fix (biased)
+ exponent=0 case.
+
2006-04-12 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.tpl: Add install-html to install target deps.
diff --git a/libiberty/floatformat.c b/libiberty/floatformat.c
index bd31efac7c..0bbb8ed988 100644
--- a/libiberty/floatformat.c
+++ b/libiberty/floatformat.c
@@ -394,7 +394,7 @@ floatformat_to_double (const struct floatformat *fmt,
/* Handle denormalized numbers. FIXME: What should we do for
non-IEEE formats? */
- if (exponent == 0 && mant != 0)
+ if (special_exponent && exponent == 0 && mant != 0)
dto += ldexp ((double)mant,
(- fmt->exp_bias
- mant_bits