re PR tree-optimization/78965 (Invalid -fprintf-return-value optimization)
authorJakub Jelinek <jakub@redhat.com>
Tue, 3 Jan 2017 07:23:11 +0000 (08:23 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 3 Jan 2017 07:23:11 +0000 (08:23 +0100)
commit51ad5d5ba376c1eaf76fee8e2457b8bfb9b000c1
tree92fdd2f4310da70779ccbcbc42c0affad3c6ab51
parentcd123354c511316c020bf7ff7e4527989b440223
re PR tree-optimization/78965 (Invalid -fprintf-return-value optimization)

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.

From-SVN: r244014
gcc/ChangeLog
gcc/gimple-ssa-sprintf.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr78965.c [new file with mode: 0644]