aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/real.c2
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.
diff --git a/gcc/real.c b/gcc/real.c
index 369d324..d04afab 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);