Commit c1c7db89 by Jim Wilson Committed by Jim Wilson

Eliminate compiler warnings.

	* real.c (endian): Disable last change unless
	HOST_BITS_PER_WIDE_INT is greater than 32.

From-SVN: r24315
parent d8f8dca1
Mon Dec 14 16:23:27 1998 Jim Wilson <wilson@cygnus.com>
* 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 <amacleod@cygnus.com> Mon Dec 14 17:13:36 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
* output.h (force_data_section): New prototype. * output.h (force_data_section): New prototype.
......
...@@ -557,8 +557,10 @@ endian (e, x, mode) ...@@ -557,8 +557,10 @@ endian (e, x, mode)
/* If 32 bits is an entire word for the target, but not for the host, /* 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 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 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 (BITS_PER_WORD < HOST_BITS_PER_WIDE_INT && BITS_PER_WORD == 32)
{ {
if (x[0] & ((HOST_WIDE_INT) 1 << 31)) if (x[0] & ((HOST_WIDE_INT) 1 << 31))
...@@ -567,6 +569,7 @@ endian (e, x, mode) ...@@ -567,6 +569,7 @@ endian (e, x, mode)
if (x[1] & ((HOST_WIDE_INT) 1 << 31)) if (x[1] & ((HOST_WIDE_INT) 1 << 31))
x[1] |= ((HOST_WIDE_INT) (-1) << 32); x[1] |= ((HOST_WIDE_INT) (-1) << 32);
} }
#endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment