PR tree-optimization/ 79376 - wrong lower bound with %s and non-constant
authorMartin Sebor <msebor@redhat.com>
Mon, 6 Feb 2017 20:11:51 +0000 (20:11 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Mon, 6 Feb 2017 20:11:51 +0000 (13:11 -0700)
commite495e31a20d8193166945c7417176da2535e6366
treebc768ffcdcb8e346b3fac3d979a9bd371ae07479
parent98e092450153399c1c2b6db5eee6722ebfcb2957
PR tree-optimization/ 79376 - wrong lower bound with %s and non-constant
strings in -Wformat-overflow

gcc/ChangeLog:
* gimple-fold.c (get_range_strlen): Set the minimum length to zero.

From-SVN: r245221
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-14.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr79376.c [new file with mode: 0644]