diff options
author | sandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-05 19:11:05 +0000 |
---|---|---|
committer | sandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-05 19:11:05 +0000 |
commit | cf53f8babcef0e6b0ca93eb2c8e161aa54cb8b1e (patch) | |
tree | 3edaafa4427aec4639dc4d42a62cfe52649084b8 /gcc/optabs.c | |
parent | ae91a3b767b7b87913a4b82c48644f58ba572e4e (diff) | |
download | gcc-cf53f8babcef0e6b0ca93eb2c8e161aa54cb8b1e.tar.gz |
2007-07-05 Sandra Loosemore <sandra@codesourcery.com>
gcc/
* optabs.c (expand_binop_directly): Fix signed/unsigned comparison.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126382 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r-- | gcc/optabs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index c07cc06abd6..11d88f50714 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -1456,7 +1456,7 @@ expand_binop (enum machine_mode mode, optab binoptab, rtx op0, rtx op1, { optab otheroptab = (binoptab == rotl_optab ? rotr_optab : rotl_optab); rtx newop1; - int bits = GET_MODE_BITSIZE (mode); + unsigned int bits = GET_MODE_BITSIZE (mode); if (GET_CODE (op1) == CONST_INT) newop1 = GEN_INT (bits - INTVAL (op1)); |