real.c (real_to_integer2): Force overflow result only for unsigned overflow.

* real.c (real_to_integer2): Force overflow result only for
        unsigned overflow.

From-SVN: r63421
This commit is contained in:
Richard Henderson 2003-02-25 15:00:54 -08:00 committed by Richard Henderson
parent 9e48c409cd
commit 8164b17107
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-02-25 Richard Henderson <rth@redhat.com>
* real.c (real_to_integer2): Force overflow result only for
unsigned overflow.
2003-02-25 Kazu Hirata <kazu@cs.umass.edu> 2003-02-25 Kazu Hirata <kazu@cs.umass.edu>
* gcse.c (cprop_jump): Revert the 2003-02-23 change. * gcse.c (cprop_jump): Revert the 2003-02-23 change.

View File

@ -1371,7 +1371,7 @@ real_to_integer2 (plow, phigh, r)
exp = r->exp; exp = r->exp;
if (exp <= 0) if (exp <= 0)
goto underflow; goto underflow;
if (exp >= 2*HOST_BITS_PER_WIDE_INT) if (exp > 2*HOST_BITS_PER_WIDE_INT)
goto overflow; goto overflow;
rshift_significand (&t, r, 2*HOST_BITS_PER_WIDE_INT - exp); rshift_significand (&t, r, 2*HOST_BITS_PER_WIDE_INT - exp);