diff options
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/real.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 43c2417..eb767ce 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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> * gcse.c (cprop_jump): Revert the 2003-02-23 change. @@ -1371,7 +1371,7 @@ real_to_integer2 (plow, phigh, r) exp = r->exp; if (exp <= 0) goto underflow; - if (exp >= 2*HOST_BITS_PER_WIDE_INT) + if (exp > 2*HOST_BITS_PER_WIDE_INT) goto overflow; rshift_significand (&t, r, 2*HOST_BITS_PER_WIDE_INT - exp); |
