Add sorry_at diagnostic function.
commit02e99bbaea0a78e23bc99e99152b8b971ef84d00
authorams <ams@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Sep 2018 10:26:57 +0000 (11 10:26 +0000)
committerams <ams@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Sep 2018 10:26:57 +0000 (11 10:26 +0000)
treed3177108bda8a7903b833775c9aafbfc6cadb6b7
parent04b1bc6ffe46beb435885d71f3ab753f2195a967
Add sorry_at diagnostic function.

The plain "sorry" diagnostic only gives the "current" location, which is
typically the last line of the function or translation unit by time we get to
the back end.

GCN uses "sorry" to report unsupported language features, such as static
constructors, so it's useful to have a "sorry_at" variant.

This patch implements "sorry_at" according to the pattern of the other "at"
variants.

2018-09-11  Andrew Stubbs  <ams@codesourcery.com>

gcc/
* diagnostic-core.h (sorry_at): New prototype.
* diagnostic.c (sorry_at): New function.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264204 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/diagnostic-core.h
gcc/diagnostic.c