Commit 281cbf31 by Jakub Jelinek Committed by Jakub Jelinek

gimple-ssa-sprintf.c (format_directive): Use inform_n instead of inform with…

gimple-ssa-sprintf.c (format_directive): Use inform_n instead of inform with hardcoded english plural handling.

	* gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
	inform with hardcoded english plural handling.

From-SVN: r255840
parent 64cc30c5
2017-12-19 Jakub Jelinek <jakub@redhat.com>
* gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
inform with hardcoded english plural handling.
2017-12-18 Jeff Law <law@redhat.com> 2017-12-18 Jeff Law <law@redhat.com>
PR tree-optimization/83477 PR tree-optimization/83477
...@@ -2933,13 +2933,15 @@ format_directive (const sprintf_dom_walker::call_info &info, ...@@ -2933,13 +2933,15 @@ format_directive (const sprintf_dom_walker::call_info &info,
if (warned && fmtres.range.min < fmtres.range.likely if (warned && fmtres.range.min < fmtres.range.likely
&& fmtres.range.likely < fmtres.range.max) && fmtres.range.likely < fmtres.range.max)
{ /* Some languages have special plural rules even for large values,
inform (info.fmtloc, but it is periodic with period of 10, 100, 1000 etc. */
(1 == fmtres.range.likely inform_n (info.fmtloc,
? G_("assuming directive output of %wu byte") fmtres.range.likely > INT_MAX
: G_("assuming directive output of %wu bytes")), ? (fmtres.range.likely % 1000000) + 1000000
: fmtres.range.likely,
"assuming directive output of %wu byte",
"assuming directive output of %wu bytes",
fmtres.range.likely); fmtres.range.likely);
}
if (warned && fmtres.argmin) if (warned && fmtres.argmin)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment