diff options
author | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-06 19:19:09 +0000 |
---|---|---|
committer | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-06 19:19:09 +0000 |
commit | 3a17e644275b905b51fcb3aee55630331e3dd119 (patch) | |
tree | d320b069acc20ea1b462ae8a76dfff6f2e2ef4dc /gcc | |
parent | c6759e4f30a4833dd25da6d4fb950b751db0e62b (diff) | |
download | gcc-3a17e644275b905b51fcb3aee55630331e3dd119.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167512 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/vax/vax.c | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8fc47bba247..285b8b7bd78 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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> * config/sparc/sol2.h (PUSHSECTION_FORMAT): Redefine unconditionally. diff --git a/gcc/config/vax/vax.c b/gcc/config/vax/vax.c index a9e032aa695..9656d736581 100644 --- a/gcc/config/vax/vax.c +++ b/gcc/config/vax/vax.c @@ -1129,18 +1129,16 @@ vax_output_int_move (rtx insn ATTRIBUTE_UNUSED, rtx *operands, { lval >>= n; -#if HOST_BITS_PER_WIDE_INT == 32 /* On 32bit platforms, if the 6bits didn't overflow into the upper 32bit value that value better be 0. If we have 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))) n = 0; /* failure */ else lval |= hval << (32 - n); } -#endif /* If n is 0, then ashq is not the best way to emit this. */ if (n > 0) { |