]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/46740 (vax-linux-gnu --enable-werror-always build fails for 64 bit host)
authorJoern Rennecke <amylaar@spamcop.net>
Mon, 6 Dec 2010 19:19:09 +0000 (19:19 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Mon, 6 Dec 2010 19:19:09 +0000 (19:19 +0000)
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

gcc/ChangeLog
gcc/config/vax/vax.c

index 8fc47bba247b14f02cd28c5a8c7f21ee2f4bf815..285b8b7bd78ea89621881e5bbe2403844eccab75 100644 (file)
@@ -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.
index a9e032aa695fb0333ebf0115ccf4005760fb5f0f..9656d73658153d707d1ffe892387976d7881a3bb 100644 (file)
@@ -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)
                {