PR c/77762 - Incorrect destination buffer length in -Wformat-length warning
commit3e8220152047ec55d35f3691024ee8f0759f0bf0
authormsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Sep 2016 16:24:35 +0000 (28 16:24 +0000)
committermsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Sep 2016 16:24:35 +0000 (28 16:24 +0000)
tree5b9dc746932674688e277de75393c0fa206ceb0f
parent21ce832ff7ddea51422dbcb23b3f26f50c6aff6f
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240584 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimple-ssa-sprintf.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-1.c