diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7f24eb9bcaf..bd11923d955 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +1998-09-19 Torbjorn Granlund + + * fp-bit.c (pack_d): Do not clear SIGN when fraction is 0. + (_fpadd_parts): Get sign right for 0. + 1998-09-19 Michael Hayes * ginclude/varargs.h: Add support for C4x target. diff --git a/gcc/config/fp-bit.c b/gcc/config/fp-bit.c index f4a1e2ad8fd..2acc3852dd7 100644 --- a/gcc/config/fp-bit.c +++ b/gcc/config/fp-bit.c @@ -460,7 +460,6 @@ pack_d ( fp_number_type * src) else if (fraction == 0) { exp = 0; - sign = 0; } else { @@ -735,7 +734,7 @@ _fpadd_parts (fp_number_type * a, { tfraction = a_fraction - b_fraction; } - if (tfraction > 0) + if (tfraction >= 0) { tmp->sign = 0; tmp->normal_exp = a_normal_exp;