aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2003-01-28 11:02:28 +0000
committerAndreas Schwab <schwab@gcc.gnu.org>2003-01-28 11:02:28 +0000
commit43196589ebc92f13364f70aaf29b818163fe00e0 (patch)
treefbcee0404487bf3414274aecd8885b253b514d30 /gcc/combine.c
parentd52c5b0a9c001de6e197b57a2ecf822afb3a5c79 (diff)
downloadgcc-43196589ebc92f13364f70aaf29b818163fe00e0.zip
gcc-43196589ebc92f13364f70aaf29b818163fe00e0.tar.gz
gcc-43196589ebc92f13364f70aaf29b818163fe00e0.tar.bz2
combine.c (force_to_mode): Add cast to fix warning when STORE_FLAG_VALUE is negative.
* combine.c (force_to_mode): Add cast to fix warning when STORE_FLAG_VALUE is negative. From-SVN: r61961
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index 5c5bfce..4f03d00 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -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;