https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86872
--- Comment #6 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> --- Author: hjl Date: Fri Aug 24 23:37:53 2018 New Revision: 263845 URL: https://gcc.gnu.org/viewcvs?rev=263845&root=gcc&view=rev Log: Set start_location to 0 if we ran out of line map space With profiledbootstrap and --with-build-config=bootstrap-lto, linemap_add may create a macro map when we run out of line map space. This patch changes start_location to UNKNOWN_LOCATION (0) in this case. Tested with profiledbootstrap and --with-build-config=bootstrap-lto on Linux/x86-64. PR bootstrap/86872 * line-map.c (pure_location_p): Return true if linemap_lookup returns NULL. (linemap_add): Set start_location to 0 if we run out of line map space. Modified: trunk/libcpp/ChangeLog trunk/libcpp/line-map.c