Commit ce7190e5 by Joern Rennecke Committed by Joern Rennecke

re PR target/46740 (vax-linux-gnu --enable-werror-always build fails for 64 bit host)

2010-12-06  Joern Rennecke  <amylaar@spamcop.net>
	    Richard Henderson  <rth@redhat.com>

	PR target/46740
	* config/vax/vax.c (vax_output_int_move): Fold #if into if.

Co-Authored-By: Richard Henderson <rth@redhat.com>

From-SVN: r167512
parent 50ad5a00
2010-12-06 Joern Rennecke <amylaar@spamcop.net>
Richard Henderson <rth@redhat.com>
PR target/46740
* config/vax/vax.c (vax_output_int_move): Fold #if into if.
2010-12-06 Eric Botcazou <ebotcazou@adacore.com> 2010-12-06 Eric Botcazou <ebotcazou@adacore.com>
* config/sparc/sol2.h (PUSHSECTION_FORMAT): Redefine unconditionally. * config/sparc/sol2.h (PUSHSECTION_FORMAT): Redefine unconditionally.
...@@ -1129,18 +1129,16 @@ vax_output_int_move (rtx insn ATTRIBUTE_UNUSED, rtx *operands, ...@@ -1129,18 +1129,16 @@ vax_output_int_move (rtx insn ATTRIBUTE_UNUSED, rtx *operands,
{ {
lval >>= n; lval >>= n;
#if HOST_BITS_PER_WIDE_INT == 32
/* On 32bit platforms, if the 6bits didn't overflow into the /* On 32bit platforms, if the 6bits didn't overflow into the
upper 32bit value that value better be 0. If we have upper 32bit value that value better be 0. If we have
overflowed, make sure it wasn't too much. */ overflowed, make sure it wasn't too much. */
if (hval != 0) if (HOST_BITS_PER_WIDE_INT == 32 && hval != 0)
{ {
if (n <= 26 || hval >= ((unsigned)1 << (n - 26))) if (n <= 26 || hval >= ((unsigned)1 << (n - 26)))
n = 0; /* failure */ n = 0; /* failure */
else else
lval |= hval << (32 - n); lval |= hval << (32 - n);
} }
#endif
/* If n is 0, then ashq is not the best way to emit this. */ /* If n is 0, then ashq is not the best way to emit this. */
if (n > 0) if (n > 0)
{ {
......
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