Bootstrap failure in stage1 fix-header, !HAVE_DESIGNATED_INITIALIZERS
Zack Weinberg
zack@wolery.cumb.org
Sun Aug 20 10:16:00 GMT 2000
On Sun, Aug 20, 2000 at 12:16:10PM -0400, Kaveh R. Ghazi wrote:
> > From: Neil Booth <NeilB@earthling.net>
> >
> > Zack Weinberg wrote:-
> >
> > > Argh. Right. Add a call to cpp_init() just before the call to
> > > cpp_reader_init(&scan_in) in fix-header.c:read_scan_file. That should
> > > fix the problem. (If it does, please check in a patch to that effect.)
> >
> > OK, I've done this.
> >
> > Neil.
> >
> > * fix-header.c (main): Initialize cpplib.
>
>
> Thanks, my bootstraps have managed to enter stage2 so this problem
> appears to be fixed.
>
> IMHO, it would be useful to include an assertion somewhere in the
> cpplib code (perhaps wrapped by ENABLE_CHECKING) that ensures cpp_init
> has been called even if designated initializers are available. That
> way one can catch this problem even if they are using gcc.
Good idea. I'll add something to that effect.
zw
More information about the Gcc-bugs
mailing list