OSDN Git Service

* emit-rtl.c: Fix signed/unsigned comparison warnings.
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Dec 2003 23:46:34 +0000 (23:46 +0000)
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Dec 2003 23:46:34 +0000 (23:46 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74758 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/emit-rtl.c

index e06ce9c..e9a983b 100644 (file)
@@ -1,3 +1,7 @@
+2003-12-16  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * emit-rtl.c: Fix signed/unsigned comparison warnings.
+
 2003-12-17  Joseph S. Myers  <jsm@polyomino.org.uk>
 
        * predict.c (struct block_info_def, struct edge_info_def): Change
index f0c2fef..f88ec56 100644 (file)
@@ -1323,7 +1323,7 @@ subreg_realpart_p (rtx x)
     abort ();
 
   return ((unsigned int) SUBREG_BYTE (x)
-         < GET_MODE_UNIT_SIZE (GET_MODE (SUBREG_REG (x))));
+         < (unsigned int) GET_MODE_UNIT_SIZE (GET_MODE (SUBREG_REG (x))));
 }
 \f
 /* Assuming that X is an rtx (e.g., MEM, REG or SUBREG) for a value,
@@ -1391,7 +1391,7 @@ gen_highpart (enum machine_mode mode, rtx x)
   /* This case loses if X is a subreg.  To catch bugs early,
      complain if an invalid MODE is used even in other cases.  */
   if (msize > UNITS_PER_WORD
-      && msize != GET_MODE_UNIT_SIZE (GET_MODE (x)))
+      && msize != (unsigned int) GET_MODE_UNIT_SIZE (GET_MODE (x)))
     abort ();
 
   result = simplify_gen_subreg (mode, x, GET_MODE (x),