diff options
author | Jakub Jelinek <jakub@redhat.com> | 2019-04-18 12:28:21 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2019-04-18 12:28:21 +0200 |
commit | ff146a59dd0cb24043897cf90ea011eb2aa3d38b (patch) | |
tree | e311bd832b00f22e2cfd4f8f46335127c7a1ef5a /gcc/gimple-ssa-sprintf.c | |
parent | 1b73c7ef7c9c3c04610bc2d2819affea917d91d2 (diff) | |
download | gcc-ff146a59dd0cb24043897cf90ea011eb2aa3d38b.zip gcc-ff146a59dd0cb24043897cf90ea011eb2aa3d38b.tar.gz gcc-ff146a59dd0cb24043897cf90ea011eb2aa3d38b.tar.bz2 |
re PR translation/79183 (Hard coded plurals in gimple-ssa-sprintf.c:2050)
PR translation/79183
* gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
inform where appropriate.
From-SVN: r270438
Diffstat (limited to 'gcc/gimple-ssa-sprintf.c')
-rw-r--r-- | gcc/gimple-ssa-sprintf.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/gcc/gimple-ssa-sprintf.c b/gcc/gimple-ssa-sprintf.c index b6527bf..80b0bf8 100644 --- a/gcc/gimple-ssa-sprintf.c +++ b/gcc/gimple-ssa-sprintf.c @@ -3016,12 +3016,10 @@ format_directive (const sprintf_dom_walker::call_info &info, help the user figure out how big a buffer they need. */ if (min == max) - inform (callloc, - (min == 1 - ? G_("%qE output %wu byte into a destination of size %wu") - : G_("%qE output %wu bytes into a destination of size " - "%wu")), - info.func, min, info.objsize); + inform_n (callloc, min, + "%qE output %wu byte into a destination of size %wu", + "%qE output %wu bytes into a destination of size %wu", + info.func, min, info.objsize); else if (max < HOST_WIDE_INT_MAX) inform (callloc, "%qE output between %wu and %wu bytes into " @@ -3044,11 +3042,9 @@ format_directive (const sprintf_dom_walker::call_info &info, of printf with no destination size just print the computed result. */ if (min == max) - inform (callloc, - (min == 1 - ? G_("%qE output %wu byte") - : G_("%qE output %wu bytes")), - info.func, min); + inform_n (callloc, min, + "%qE output %wu byte", "%qE output %wu bytes", + info.func, min); else if (max < HOST_WIDE_INT_MAX) inform (callloc, "%qE output between %wu and %wu bytes", |