diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-12-14 16:30:48 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-12-14 16:30:48 +0000 |
commit | 31512c89830fa6d77b0af444e38baab6164b6d1f (patch) | |
tree | 40a803aa829b70ceac306c646450a0373de6b70a /gcc/real.c | |
parent | 2b77484d7c9d10a71191221cf2bb2b24d8b1cca5 (diff) | |
download | gcc-31512c89830fa6d77b0af444e38baab6164b6d1f.tar.gz |
Eliminate compiler warnings.
* real.c (endian): Disable last change unless
HOST_BITS_PER_WIDE_INT is greater than 32.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24315 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/real.c')
-rw-r--r-- | gcc/real.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/real.c b/gcc/real.c index 8cc38cbb357..7001c5e5091 100644 --- a/gcc/real.c +++ b/gcc/real.c @@ -557,8 +557,10 @@ endian (e, x, mode) /* If 32 bits is an entire word for the target, but not for the host, then sign-extend on the host so that the number will look the same way on the host that it would on the target. See for instance - simplify_unary_operation. */ + simplify_unary_operation. The #if is needed to avoid compiler + warnings. */ +#if HOST_BITS_PER_WIDE_INT > 32 if (BITS_PER_WORD < HOST_BITS_PER_WIDE_INT && BITS_PER_WORD == 32) { if (x[0] & ((HOST_WIDE_INT) 1 << 31)) @@ -567,6 +569,7 @@ endian (e, x, mode) if (x[1] & ((HOST_WIDE_INT) 1 << 31)) x[1] |= ((HOST_WIDE_INT) (-1) << 32); } +#endif } |