PR tree-optimization/78965
commitf9325e71eb7dd4ab63175903fe9357b8bb353eac
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Jan 2017 07:23:11 +0000 (3 07:23 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Jan 2017 07:23:11 +0000 (3 07:23 +0000)
tree92fdd2f4310da70779ccbcbc42c0affad3c6ab51
parent418624fa006fc343b05f8e596fab7b7214c03c06
PR tree-optimization/78965
* gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
Change first argument from const call_info & to call_info &.  For %n
set info.nowrite to false.

* gcc.dg/pr78965.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244014 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimple-ssa-sprintf.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr78965.c [new file with mode: 0644]