PR c/77762 - Incorrect destination buffer length in -Wformat-length warning
authorMartin Sebor <msebor@redhat.com>
Wed, 28 Sep 2016 16:24:35 +0000 (16:24 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Wed, 28 Sep 2016 16:24:35 +0000 (10:24 -0600)
commit2b1b5938422ef07c10509de00d52b735e55a86f4
tree5b9dc746932674688e277de75393c0fa206ceb0f
parent30dc6ee97026f393813f0a31f2294ac1d0898c56
PR c/77762 - Incorrect destination buffer length in -Wformat-length warning

gcc/testsuite/ChangeLog:

PR c/77762
* gcc.dg/tree-ssa/builtin-sprintf-warn-1.c (test_vsnprintf_chk_s):
Call __builtin___vsnprintf_chk, not __builtin___snprintf_chk.
(test_sprintf_p_const): Adjust line numbers to avoid failures
introduced in r240503.

gcc/ChangeLog:

PR c/77762
* gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
Fix typos.

From-SVN: r240584
gcc/ChangeLog
gcc/gimple-ssa-sprintf.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-1.c