optabs.c (expand_binop_directly): Fix signed/unsigned comparison.
authorSandra Loosemore <sandra@codesourcery.com>
Thu, 5 Jul 2007 19:11:05 +0000 (15:11 -0400)
committerSandra Loosemore <sandra@gcc.gnu.org>
Thu, 5 Jul 2007 19:11:05 +0000 (15:11 -0400)
2007-07-05  Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* optabs.c (expand_binop_directly): Fix signed/unsigned comparison.

From-SVN: r126382

gcc/ChangeLog
gcc/optabs.c

index 06f8a544493fb6890340fdb4e0f98be6cad9e562..a6342261dd4bdc1f9b52884842ad30eb55aabe38 100644 (file)
@@ -1,3 +1,7 @@
+2007-07-05  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * optabs.c (expand_binop_directly): Fix signed/unsigned comparison.
+
 2007-07-05  Uros Bizjak  <ubizjak@gmail.com>
 
        * rtl.def (NOTE): Change print format string to print
index c07cc06abd6def7e146015ec9b968a8a6c34a1ed..11d88f50714c3f3df602561499a9e84e33d5d667 100644 (file)
@@ -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));