]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* emit-rtl.c: Fix signed/unsigned comparison warnings.
authorKazu Hirata <kazu@cs.umass.edu>
Wed, 17 Dec 2003 23:46:34 +0000 (23:46 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Wed, 17 Dec 2003 23:46:34 +0000 (23:46 +0000)
From-SVN: r74758

gcc/ChangeLog
gcc/emit-rtl.c

index e06ce9c972e5ca9c22122a70eff3dfeb0333b6ec..e9a983bb9c4593f6776413e0e998a0259615223c 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 f0c2feffb06fa77741ad326be58c21d7c9085b34..f88ec56b3fc32e9e139130655e211fb7158474d5 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),