This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cpplib: Tweak conditional block skipping


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]