This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: stage1 bootstrap failuer to build gcc.3.3: cppfiles.c:1168: error: parse error before ']' token etc.
Zack Weinberg wrote:-
> > What is happening is that the file is being mmap-ed, but for some reason
> > the mapped memory is not NUL-padded. It might be an idea for me to add
> > a check to cppfiles.c for this case and abort if it's not a NUL. What do
> > you think, Zack?
>
> I'm coming to feel that mmap is more trouble than it's worth. Would
> your contempated line-at-a-time lexer be happy with files being read
> in 4k or 8k chunks with plain old read()?
It certainly could be made so. Let's see if is fits nicely with
whatever comes up.
I'm working on tweaking CPP in the BIB to do line-at-a-time tokens
now, but don't know when I'll have something working. This is separate
to prescanning for stages 1 and 2.
Although doing a preprass on logical lines to do stages 1 and 2 first
would make some things nice, it makes some things harder. For example,
it's hard to avoid warning about trigraphs in comments as it has no
idea whether it's in a comment. Issues like this make me wonder whether
a prescan is worth it.
Neil.