PR tree-optimization/ 79376 - wrong lower bound with %s and non-constant
commitdd66e0282bf64bfb4132216ccdfeecb90d165954
authormsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Feb 2017 20:11:51 +0000 (6 20:11 +0000)
committermsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Feb 2017 20:11:51 +0000 (6 20:11 +0000)
treebc768ffcdcb8e346b3fac3d979a9bd371ae07479
parent24c6ee98efa4e208eaf8b18b3ae1ae5d1b882e7c
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245221 138bc75d-0d04-0410-961f-82ee72b054a4
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]