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:
parent
9e48c409cd
commit
8164b17107
@ -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.
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user