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: integral location_t


Carlo Wood wrote:

Assuming we have at least 32 bits, 12 bits of which are
reserved for the column, there are 20 bits for the line
number.

That's not how fileline works ... The 32 bits of a fileline are a magic cookie that indexes into a linemap that also identifies the filename *and* the include nesting.

Currently, fileline does not support column numbers, but
I did once propose an extension for it.  In any case, location_t
does not currently support column numbers either, so adding
column number support is an orthogonal issue.
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/



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