From: Jim Wilson Date: Mon, 14 Dec 1998 16:30:48 +0000 (+0000) Subject: Eliminate compiler warnings. X-Git-Tag: prereleases/libgcj-0.1~1628 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c1c7db89c03daaed2fdfb1713b4857b56143f75f;p=thirdparty%2Fgcc.git Eliminate compiler warnings. * real.c (endian): Disable last change unless HOST_BITS_PER_WIDE_INT is greater than 32. From-SVN: r24315 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 526c53942420..f56cbc37e324 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Mon Dec 14 16:23:27 1998 Jim Wilson + + * real.c (endian): Disable last change unless + HOST_BITS_PER_WIDE_INT is greater than 32. + Mon Dec 14 17:13:36 EST 1998 Andrew MacLeod * output.h (force_data_section): New prototype. diff --git a/gcc/real.c b/gcc/real.c index 8cc38cbb3572..7001c5e50913 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 }