[PATCH 5/5] diagnostics: don't print annotation lines when there's no column info
David Malcolm
dmalcolm@redhat.com
Tue Nov 28 01:25:26 GMT 2023
On Tue, 2023-11-21 at 17:20 -0500, David Malcolm wrote:
> gcc/ChangeLog:
> * diagnostic-show-locus.cc
> (layout::maybe_add_location_range):
> Don't print annotation lines for ranges when there's no
> column
> info.
> (selftest::test_one_liner_no_column): New.
> (selftest::test_diagnostic_show_locus_one_liner): Call it.
Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu.
Not a bugfix, but low-risk and useful for libdiagnostics, so I've taken
the liberty of pushing this to gcc trunk as r14-5896-g5099525bff4f7c.
Dave
More information about the Binutils
mailing list