This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bootstrap failure on Darwin
On Sat, Jan 24, 2004 at 09:23:33AM +0100, Andreas Tobler wrote:
> 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
> - if (insn_count < sizeof insns / sizeof insn[0])
> + if (insn_count < ARRAY_SIZE(insns))
Correct. Please apply.
r~