From: Kazu Hirata Date: Wed, 17 Dec 2003 23:46:34 +0000 (+0000) Subject: * emit-rtl.c: Fix signed/unsigned comparison warnings. X-Git-Tag: releases/gcc-3.4.0~1615 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c5898ca82c742eac1451a10eaa4a99e26a33b40f;p=thirdparty%2Fgcc.git * emit-rtl.c: Fix signed/unsigned comparison warnings. From-SVN: r74758 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e06ce9c972e5..e9a983bb9c45 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-12-16 Kazu Hirata + + * emit-rtl.c: Fix signed/unsigned comparison warnings. + 2003-12-17 Joseph S. Myers * predict.c (struct block_info_def, struct edge_info_def): Change diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index f0c2feffb06f..f88ec56b3fc3 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -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),