diff options
Diffstat (limited to 'gcc/gimple-ssa-sprintf.c')
-rw-r--r-- | gcc/gimple-ssa-sprintf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/gimple-ssa-sprintf.c b/gcc/gimple-ssa-sprintf.c index a9d2504c4be..13640e0fd36 100644 --- a/gcc/gimple-ssa-sprintf.c +++ b/gcc/gimple-ssa-sprintf.c @@ -2098,7 +2098,7 @@ get_string_length (tree str, unsigned eltsize, const vr_values *vr) if (res.range.max < target_int_max ()) { res.knownrange = true; - /* When the the length of the longest string is known and not + /* When the length of the longest string is known and not excessive use it as the likely length of the string(s). */ res.range.likely = res.range.max; } @@ -2478,7 +2478,7 @@ format_string (const directive &dir, tree arg, const vr_values *vr_values) is bounded by MB_LEN_MAX * wcslen (S). */ res.range.max *= target_mb_len_max (); res.range.unlikely = res.range.max; - /* It's likely that the the total length is not more that + /* It's likely that the total length is not more that 2 * wcslen (S).*/ res.range.likely = res.range.min * 2; @@ -3337,7 +3337,7 @@ format_directive (const call_info &info, } else if (!info.is_string_func ()) { - /* If the warning is for a file function function like fprintf + /* If the warning is for a file function like fprintf of printf with no destination size just print the computed result. */ if (min == max) |