]> git.ipfire.org Git - thirdparty/gcc.git/commit
Set start_location to 0 if we ran out of line map space
authorH.J. Lu <hongjiu.lu@intel.com>
Fri, 24 Aug 2018 23:37:53 +0000 (23:37 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 24 Aug 2018 23:37:53 +0000 (16:37 -0700)
commitcf806c7dc305fe14654b44ed7cfe0a35c7947af1
tree72bc779dc191ac96322f334117fcb4cbd6455084
parentacf6214eacc97d0779e73c7ab6539ecb3dd1d524
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.

From-SVN: r263845
libcpp/ChangeLog
libcpp/line-map.c