This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: innovative new build failure
- From: Ian Lance Taylor <iant at google dot com>
- To: Mike Stump <mrs at apple dot com>
- Cc: gcc Development <gcc at gcc dot gnu dot org>
- Date: 19 Jan 2007 20:50:45 -0800
- Subject: Re: innovative new build failure
- References: <B93E87F2-7C05-4840-B586-642C21B36A05@apple.com>
Mike Stump <mrs@apple.com> writes:
> Here is an innovative new build failure, as seen on i686-apple-darwin9:
>
> ../../gcc/gcc/expmed.c:4179: warning: signed and unsigned type in
> conditional expression
> make[3]: *** [expmed.o] Error 1
> make[2]: *** [all-stage2-gcc] Error 2
Fixed like so. Tested only by a bubblestrap, and checked in before a
testsuite run to fix the build.
Sorry about that.
Ian
Index: expmed.c
===================================================================
--- expmed.c (revision 120996)
+++ expmed.c (working copy)
@@ -4176,7 +4176,9 @@ expand_divmod (int rem_flag, enum tree_c
HOST_WIDE_INT d = INTVAL (op1);
unsigned HOST_WIDE_INT abs_d;
- abs_d = d >= 0 ? d : - (unsigned HOST_WIDE_INT) d;
+ abs_d = (d >= 0
+ ? (unsigned HOST_WIDE_INT) d
+ : - (unsigned HOST_WIDE_INT) d);
/* n rem d = n rem -d */
if (rem_flag && d < 0)