This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: innovative new build failure


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]