change the location_t type, DECL_SOURCE_LINE etc

Per Bothner per@bothner.com
Wed Dec 4 15:16:00 GMT 2002


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/



More information about the Gcc mailing list