diff options
author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-05-30 21:54:17 +0000 |
---|---|---|
committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-05-30 21:54:17 +0000 |
commit | 885fe2d11595b1bb70d9ba93c237548d1c4e63e1 (patch) | |
tree | 5d867b5400ad9fe3ae8a551c31a369e407ab4ef9 | |
parent | 03b8eaaddec1ba9a586be7987111526fa7ea088d (diff) | |
download | ppe42-gcc-885fe2d11595b1bb70d9ba93c237548d1c4e63e1.tar.gz ppe42-gcc-885fe2d11595b1bb70d9ba93c237548d1c4e63e1.zip |
* simplify-rtx.c (simplify_binary_operation_1) <LSHIFTRT>: Cast
width to HOST_WIDE_INT to avoid comparison warnings on some targets.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114248 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/simplify-rtx.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 95c9bad85ca..ed782e16ee6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2006-05-30 Roger Sayle <roger@eyesopen.com> + * simplify-rtx.c (simplify_binary_operation_1) <LSHIFTRT>: Cast + width to HOST_WIDE_INT to avoid comparison warnings on some targets. + +2006-05-30 Roger Sayle <roger@eyesopen.com> + PR tree-optimization/23452 * fold-const.c (fold_mult_zconjz): New subroutine of fold_binary, to optimize z * conj(z) as realpart(z)^2 + imagpart(z)^2. diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index 65b1d193d42..3f627e5308a 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; |