diff options
| author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-25 23:00:54 +0000 |
|---|---|---|
| committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-25 23:00:54 +0000 |
| commit | 2d8a350e34aa34fc8d5f9dadc38b2c188921b880 (patch) | |
| tree | b513d54cda4f4acff87ab6f7b08ffd53a2e98571 | |
| parent | 84766aa0379ecb9398c6c27cdf2fef019fac0c35 (diff) | |
| download | ppe42-gcc-2d8a350e34aa34fc8d5f9dadc38b2c188921b880.tar.gz ppe42-gcc-2d8a350e34aa34fc8d5f9dadc38b2c188921b880.zip | |
* real.c (real_to_integer2): Force overflow result only for
unsigned overflow.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63421 138bc75d-0d04-0410-961f-82ee72b054a4
| -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 43c24171fe9..eb767ceeb57 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. diff --git a/gcc/real.c b/gcc/real.c index 369d32401fb..d04afabfe1d 100644 --- a/gcc/real.c +++ b/gcc/real.c @@ -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); |

