re PR tree-optimization/88693 (Wrong code since r263018)
authorJakub Jelinek <jakub@redhat.com>
Fri, 11 Jan 2019 19:04:32 +0000 (20:04 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 11 Jan 2019 19:04:32 +0000 (20:04 +0100)
commite17fa93eca7611415368af47d6e4dd2796c8fd7b
treee9be5dbe9676ad05dd0f5d1a798704ef081424ea
parent0f64d96d93ce2fb7b7e5cd174c17e903f66c4a1e
re PR tree-optimization/88693 (Wrong code since r263018)

PR tree-optimization/88693
* tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
for STRING_CSTs that don't contain any NUL characters in the first
TREE_STRING_LENGTH bytes.

* gcc.c-torture/execute/pr88693.c: New test.

From-SVN: r267852
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr88693.c [new file with mode: 0644]
gcc/tree-ssa-strlen.c