Commit c5898ca8 by Kazu Hirata Committed by Kazu Hirata

* emit-rtl.c: Fix signed/unsigned comparison warnings.

From-SVN: r74758
parent 2c45a16a
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
......
......@@ -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))));
}
/* 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),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment