https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68819

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu.org

--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to David Malcolm from comment #1)
> Is it a file with many includes?  libcpp can go into a fallback mode where
> it stops supplying column numbers, when location_t goes >=
> LINE_MAP_MAX_LOCATION_WITH_COLS.

Note that the limits for triggering the fall-back mode are quite arbitrary. LTO
triggers it quite often. I did some experiments increasing the limits and one
should be able to tackle very large files without losing column numbers.

Perhaps more importantly, when one runs out of locations, weird things happen
without warning. I think line-maps should detect this and start returning
UNKNOWN_LOCATION instead of arbitrary values.

Reply via email to