]> git.ipfire.org Git - thirdparty/gcc.git/commit
diagnostic-show-locus: tweak rejection logic
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 3 Jun 2021 14:32:40 +0000 (10:32 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Thu, 3 Jun 2021 14:32:40 +0000 (10:32 -0400)
commit4bdc6e17c9dc621f9502a84abceb2e17ae0418f8
treef94e0d53d763354a8b26aa30b04d1ad68d35ed36
parent57ed620ebfa4275d04efeec973e88f506b0e3ba8
diagnostic-show-locus: tweak rejection logic

gcc/ChangeLog:
* diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
printing the same location twice if there are fix-it hints,
multiple locations, or a label.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/diagnostic-show-locus.c