combine.c (force_to_mode): Add cast to fix warning when STORE_FLAG_VALUE is negative.
authorAndreas Schwab <schwab@suse.de>
Tue, 28 Jan 2003 11:02:28 +0000 (11:02 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Tue, 28 Jan 2003 11:02:28 +0000 (11:02 +0000)
* combine.c (force_to_mode): Add cast to fix warning when
STORE_FLAG_VALUE is negative.

From-SVN: r61961

gcc/ChangeLog
gcc/combine.c

index 5bb0bad637bdcbdff5adacef751f05b8801a680f..6ffdabadaf293868e443225b4d33ed80408219fe 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-28  Andreas Schwab  <schwab@suse.de>
+
+       * combine.c (force_to_mode): Add cast to fix warning when
+       STORE_FLAG_VALUE is negative.
+
 2003-01-27  Richard Henderson  <rth@redhat.com>
 
        * Makefile.in (cse.o): Depend on TARGET_H.
index 5c5bfceb0f2861af13921894c50294801f80bf60..4f03d008e7e4b7d19f90a883b259dc3f73735c9e 100644 (file)
@@ -7310,7 +7310,8 @@ force_to_mode (x, mode, mask, reg, just_select)
         which is equal to STORE_FLAG_VALUE.  */
       if ((mask & ~STORE_FLAG_VALUE) == 0 && XEXP (x, 1) == const0_rtx
          && exact_log2 (nonzero_bits (XEXP (x, 0), mode)) >= 0
-         && nonzero_bits (XEXP (x, 0), mode) == STORE_FLAG_VALUE)
+         && (nonzero_bits (XEXP (x, 0), mode)
+             == (unsigned HOST_WIDE_INT) STORE_FLAG_VALUE))
        return force_to_mode (XEXP (x, 0), mode, mask, reg, next_select);
 
       break;