(-Wformat-overflow): ...to this.
authorMartin Sebor <msebor@redhat.com>
Thu, 12 Jan 2017 21:54:41 +0000 (21:54 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Thu, 12 Jan 2017 21:54:41 +0000 (14:54 -0700)
commitbce6f76013fd5f2e88a235231231c7879597220c
treea53d2324aab56f9e4903424eceb3477b0f56152e
parent3eefa646f4c90689953d63d6ef861692a858fd61
(-Wformat-overflow): ...to this.

gcc/c-family/ChangeLog:

(-Wformat-overflow): ...to this.

gcc/ChangeLog:

to -Wformat-overflow.
* gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
(min_bytes_remaining): Same.
(get_string_length): Same.
(format_string): Same.
(format_directive): Same.
(add_bytes): Same.
(pass_sprintf_length::handle_gimple_call): Same.

gcc/testsuite/ChangeLog:

* gcc.dg/pr78138.c: Adjust.
* gcc.dg/pr78768.c: Adjust.
* gcc.dg/tree-ssa/builtin-sprintf-4.c: Adjust.
* gcc.dg/tree-ssa/builtin-sprintf-warn-1.c: Adjust.
* gcc.dg/tree-ssa/builtin-sprintf-warn-2.c: Adjust.
* gcc.dg/tree-ssa/builtin-sprintf-warn-3.c: Adjust.
* gcc.dg/tree-ssa/builtin-sprintf-warn-4.c: Adjust.
* gcc.dg/tree-ssa/builtin-sprintf-warn-6.c: Adjust.
* gcc.dg/tree-ssa/builtin-sprintf-warn-7.c: Adjust.
* gcc.dg/tree-ssa/builtin-sprintf-warn-8.c: Adjust.
* gcc.dg/tree-ssa/builtin-sprintf-warn-9.c: Adjust.
* gcc.dg/tree-ssa/pr78605.c: Adjust.
* gcc.dg/tree-ssa/pr78622.c: Adjust.

From-SVN: r244385
20 files changed:
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c.opt
gcc/doc/invoke.texi
gcc/gimple-ssa-sprintf.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr78622.c
gcc/testsuite/gcc.dg/pr78138.c
gcc/testsuite/gcc.dg/pr78768.c
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-4.c
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-1.c
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-2.c
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-3.c
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-4.c
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-6.c
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-7.c
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-8.c
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-9.c
gcc/testsuite/gcc.dg/tree-ssa/pr78605.c
gcc/testsuite/gcc.dg/tree-ssa/pr78622.c