Commit 8164b171 by Richard Henderson Committed by Richard Henderson

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
parent 9e48c409
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.
......
...@@ -1371,7 +1371,7 @@ real_to_integer2 (plow, phigh, r) ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment