This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib: Tweak conditional block skipping
- To: Richard Henderson <rth at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Subject: Re: cpplib: Tweak conditional block skipping
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Thu, 26 Jul 2001 07:31:49 +0100
Richard Henderson wrote:-
> If you insist on directly encoding line and column, I can't see
> you doing anything acceptible in under 28+16=44 bits.
I intend on keeping a separate line and column. So we might as well
go with 32+16 bits and keep it simple (I'd got the 32 bits total from
previous list discussions; no-one picked up on it then).
That would make a cpp_token 16 bytes on both 32 and 64 bit hosts, but
allow each token to contain its location including file name; they
have no location information at present.
Although this will be used only by cpplib at first, the line mapping
routines are simple, generic and in separate files, and handle the
include stack etc. So I think itdthey would be a reasonable interface
for the compiler to have to any front end (replacing stuff like
push_source_loc and pop_source_loc in toplev.c). It would also reduce
the size of some tree structures that contain file names at present.
Do you agree all this is a good idea?
Neil.