PR translation/84207 - Hard coded plural in gimple-fold.c
commitf4e3e4b13a0f666c5f4217e539436667cd4052ea
authormsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Feb 2018 22:06:03 +0000 (27 22:06 +0000)
committermsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Feb 2018 22:06:03 +0000 (27 22:06 +0000)
tree8c1be1842ced105c7f3ce3afef09764b30ff037a
parent5876201b64c8128bdee98f789666bde3f3406bb8
PR translation/84207 - Hard coded plural in gimple-fold.c

gcc/ChangeLog:

PR translation/84207
* diagnostic-core.h (warning_n, error_n, inform_n): Change
n argument to unsigned HOST_WIDE_INT.
* diagnostic.c (warning_n, error_n, inform_n): Ditto.
(diagnostic_n_impl): Ditto.  Handle arguments in excess of LONG_MAX.
* gimple-ssa-sprintf.c (format_directive): Simplify inform_n call.
* tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Use warning_n.

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