PR translation/84207 - Hard coded plural in gimple-fold.c
authorMartin Sebor <msebor@redhat.com>
Tue, 27 Feb 2018 22:06:03 +0000 (22:06 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Tue, 27 Feb 2018 22:06:03 +0000 (15:06 -0700)
commit1c89478aef3ef9576f40013c3969179b3189ee95
tree8c1be1842ced105c7f3ce3afef09764b30ff037a
parent76bd270a7df7dbf5a02046072947802365bb67f6
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.

From-SVN: r258044
gcc/ChangeLog
gcc/diagnostic-core.h
gcc/diagnostic.c
gcc/gimple-ssa-sprintf.c
gcc/tree-ssa-strlen.c