[Bug lto/88147] [9 Regression] ICE in linemap_line_start, at libcpp/line-map.c:781 starting from r265875

dmalcolm at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 11 17:27:00 GMT 2019


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

--- Comment #19 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
(In reply to David Malcolm from comment #17)
> Created attachment 45660 [details]
> Selftest coverage
> 
> The attached reproduces the problem via a minimal selftest, and is also
> fixed by attachment 45653 [details].

Thanks for creating this patch.  I like that it imposes an upper limit on the
value of a line number within an ordinary linemap relative to the line map's
starting line, but I wonder if that upper limit needs to be lower than the one
in your patch (e.g. what happens if the resulting location_t value hit limits
like LINE_MAP_MAX_LOCATION etc).


More information about the Gcc-bugs mailing list