This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: change the location_t type, DECL_SOURCE_LINE etc


Neil Booth wrote:

This is great; we've been planning to do this for a while.
But please use (or modify if you have to, though you shouldn't need
to) line-map.c; it provides the line -> (file, line) mapping already
for cpplib; I've wanted to get the whole compiler using it for a while.
I'm don't understand what you're suggesting.  It appears to me that
the line-map stuctues are solving a different problem tham I am,
which is how to compactly represent file/line[/column] pairs[/triples].

Also, we've discussed before squeezing line and col information into
32-bits and it was rejected by rth, Fergus and others.  The only
thing that would work would be a "logical character" offset in the
translation unit, but that's a much larger and more dubious change
IMO.  Can we please stick to 32-bit lines and 16-bit columns,
at least for now?
I really want to pack file/line[/column] pairs[/triples] into 32 bits.
However, I have a suggestion for a more complex but less size-limited
encoding it port shortly.
--
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/


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