https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69985
--- Comment #19 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- (In reply to Manuel López-Ibáñez from comment #18) > I don't really understand why this is the case: we seem to waste a lot of > location numbers that do not point to anything. If there is a way to tell > which map should encode a particular line,column, then we simply should use > that map if there are free locations left to do so. Perhaps by trying first linemap_position_for_line_and_column (set, map, line, column+offset) if that returns a location >= map[1].start_location, then if (line < ORDINARY_MAP_STARTING_LINE_NUMBER (map+1)), try again with map++, until either we run out of maps or the next map encodes a higher line, and in those cases we give up.