From: Julian Brown Date: Mon, 24 Apr 2006 21:37:24 +0000 (+0000) Subject: * libiberty/floatformat.c (floatformat_to_double): Fix (biased) X-Git-Tag: binutils-csl-sourcerygxx-3_4_4-17~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f92e2bf4ff9754315dba1cc1383ee1e51818569c;p=thirdparty%2Fbinutils-gdb.git * libiberty/floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case. --- diff --git a/ChangeLog.csl b/ChangeLog.csl index 121f6fd6d35..d0cc33389e7 100644 --- a/ChangeLog.csl +++ b/ChangeLog.csl @@ -1,3 +1,8 @@ +2006-04-24 Julian Brown + + * libiberty/floatformat.c (floatformat_to_double): Fix (biased) + exponent=0 case. + 2006-04-12 Carlos O'Donell * Makefile.tpl: Add install-html to install target deps. diff --git a/libiberty/floatformat.c b/libiberty/floatformat.c index bd31efac7c1..0bbb8ed9889 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