aboutsummaryrefslogtreecommitdiff
path: root/gcc/simplify-rtx.c
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2006-05-30 21:54:17 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2006-05-30 21:54:17 +0000
commite40122f0fa19366975e6bcacc9ec0d93fa2151d7 (patch)
tree5d867b5400ad9fe3ae8a551c31a369e407ab4ef9 /gcc/simplify-rtx.c
parent8c0633b7cd3e6a311ad8b6d5b819e0224fe4d1cd (diff)
downloadgcc-e40122f0fa19366975e6bcacc9ec0d93fa2151d7.zip
gcc-e40122f0fa19366975e6bcacc9ec0d93fa2151d7.tar.gz
gcc-e40122f0fa19366975e6bcacc9ec0d93fa2151d7.tar.bz2
simplify-rtx.c (simplify_binary_operation_1): Cast width to HOST_WIDE_INT to avoid comparison warnings on some targets.
* simplify-rtx.c (simplify_binary_operation_1) <LSHIFTRT>: Cast width to HOST_WIDE_INT to avoid comparison warnings on some targets. From-SVN: r114248
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r--gcc/simplify-rtx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index 65b1d19..3f627e5 100644
--- a/gcc/simplify-rtx.c
+++ b/gcc/simplify-rtx.c
@@ -2464,7 +2464,7 @@ simplify_binary_operation_1 (enum rtx_code code, enum machine_mode mode,
if (GET_CODE (op0) == CLZ
&& GET_CODE (trueop1) == CONST_INT
&& STORE_FLAG_VALUE == 1
- && INTVAL (trueop1) < width)
+ && INTVAL (trueop1) < (HOST_WIDE_INT)width)
{
enum machine_mode imode = GET_MODE (XEXP (op0, 0));
unsigned HOST_WIDE_INT zero_val = 0;