aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2002-09-18 14:23:24 -0700
committerRichard Henderson <rth@gcc.gnu.org>2002-09-18 14:23:24 -0700
commitc402b6bfbdeb1e95750bff205e441e597f1c47a6 (patch)
tree810d6d7807031584b5a724dfcc6ac010f2e6afe0 /gcc
parentdea09b1b95f7de959fa646b6fb353ed2b183abbf (diff)
downloadgcc-c402b6bfbdeb1e95750bff205e441e597f1c47a6.zip
gcc-c402b6bfbdeb1e95750bff205e441e597f1c47a6.tar.gz
gcc-c402b6bfbdeb1e95750bff205e441e597f1c47a6.tar.bz2
real.c (sticky_rshift_significand): Collect sticky as unsigned long, not bool.
* real.c (sticky_rshift_significand): Collect sticky as unsigned long, not bool. From-SVN: r57284
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/real.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 37ae814..fec1110 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2002-09-18 Richard Henderson <rth@redhat.com>
+
+ * real.c (sticky_rshift_significand): Collect sticky as
+ unsigned long, not bool.
+
2002-09-18 Ulrich Weigand <uweigand@de.ibm.com>
* config/s390/s390.c (s390_address_cost): New function.
diff --git a/gcc/real.c b/gcc/real.c
index dd9f9be..cf72b4c 100644
--- a/gcc/real.c
+++ b/gcc/real.c
@@ -239,7 +239,7 @@ sticky_rshift_significand (r, a, n)
const struct real_value *a;
unsigned int n;
{
- bool sticky = false;
+ unsigned long sticky = 0;
unsigned int i, ofs = 0;
if (n >= HOST_BITS_PER_LONG)
@@ -268,7 +268,7 @@ sticky_rshift_significand (r, a, n)
r->sig[i] = 0;
}
- r->sig[0] |= sticky;
+ r->sig[0] |= (sticky != 0);
}
/* Right-shift the significand of A by N bits; put the result in the