This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bootstrap failure on Darwin
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: Matt Austern <austern at apple dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 24 Jan 2004 09:23:33 +0100
- Subject: Re: Bootstrap failure on Darwin
- References: <DDB7093E-4E43-11D8-B926-000A95BCF344@apple.com>
Matt Austern wrote:
The bootstrap just failed for me:
stage1/xgcc -Bstage1/ -B/work/root/powerpc-apple-darwin7.2.0/bin/ -c
-g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition
-Werror -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc
-I../../gcc/gcc/. -I../../gcc/gcc/../include -I../intl
../../gcc/gcc/cse.c -o cse.o
../../gcc/gcc/cse.c: In function `cse_cc_succs':
../../gcc/gcc/cse.c:7809: warning: comparison of unsigned expression < 0
is always false
make[2]: *** [cse.o] Error 1
make[1]: *** [stage2_build] Error 2
make: *** [bootstrap] Error 2
The line in question is:
if (insn_count < sizeof insns / sizeof insn[0])
...
This is a new problem. Has anyone else seen it?
Happens on all platforms here.
Does this sound correct? tm not by me :)
Andreas
P.S,
Index: cse.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cse.c,v
retrieving revision 1.281
diff -u -r1.281 cse.c
--- cse.c 23 Jan 2004 21:05:13 -0000 1.281
+++ cse.c 24 Jan 2004 08:22:30 -0000
@@ -7806,7 +7806,7 @@
if (found)
{
found_equiv = true;
- if (insn_count < sizeof insns / sizeof insn[0])
+ if (insn_count < ARRAY_SIZE(insns))
{
insns[insn_count] = insn;
modes[insn_count] = set_mode;