This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] adjust warning_n() to take uhwi (PR 84207)
On 13 Feb 2018 5:58 pm, "Martin Sebor" <msebor@gmail.com> wrote:
I wanted to make the _n() functions like warning_n() more
robust by letting them accept a tree argument (as well as
offset_int and wide_int) in addition to HOST_WIDE_INT but
I can't do it if they can't work with these types.
There must be a tree-diagnostics.c where you can add those functions and
then call the general diagnostic functions. Same for RTL.
Note that pretty-printer.c works in the same way.
Cheers,
Manuel.