[PATCH] A couple of line map fixes
authorNathan Sidwell <nathan@acm.org>
Thu, 11 Oct 2018 12:42:37 +0000 (12:42 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 11 Oct 2018 12:42:37 +0000 (12:42 +0000)
commitc1b48b29294ed58e72129db4db42adab3d0d1a9a
tree32a29d7459eecd3699a84f59acf2073799e71dbc
parentc7790bdbd97889b39fde3e0249b398a9bf5fb43b
[PATCH] A couple of line map fixes

https://gcc.gnu.org/ml/gcc-patches/2018-10/msg00623.html
* include/line-map.h (LINEMAPS_MACRO_LOWEST_LOCATION): Fix
off-by-one error.
* line-map.c (linemap_enter_macro): Use RAII.  Clear all of the
macro_locations.

From-SVN: r265037
libcpp/ChangeLog
libcpp/include/line-map.h
libcpp/line-map.c