OSDN Git Service

* real.c (real_to_integer2): Force overflow result only for
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Feb 2003 23:00:54 +0000 (23:00 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Feb 2003 23:00:54 +0000 (23:00 +0000)
        unsigned overflow.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63421 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/real.c

index 43c2417..eb767ce 100644 (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>
 
        * gcse.c (cprop_jump): Revert the 2003-02-23 change.
index 369d324..d04afab 100644 (file)
@@ -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);