diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2007-07-05 15:11:05 -0400 |
---|---|---|
committer | Sandra Loosemore <sandra@gcc.gnu.org> | 2007-07-05 15:11:05 -0400 |
commit | 9ee34274408623a1cfad9a88d93bc075a230c7ba (patch) | |
tree | 3edaafa4427aec4639dc4d42a62cfe52649084b8 /gcc/optabs.c | |
parent | 6e29b5a48842a9ef2fc2027a6abe995eda3610c7 (diff) | |
download | gcc-9ee34274408623a1cfad9a88d93bc075a230c7ba.zip gcc-9ee34274408623a1cfad9a88d93bc075a230c7ba.tar.gz gcc-9ee34274408623a1cfad9a88d93bc075a230c7ba.tar.bz2 |
optabs.c (expand_binop_directly): Fix signed/unsigned comparison.
2007-07-05 Sandra Loosemore <sandra@codesourcery.com>
gcc/
* optabs.c (expand_binop_directly): Fix signed/unsigned comparison.
From-SVN: r126382
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 c07cc06..11d88f5 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)); |