PR tree-optimization/86914 - wrong code with strlen() of poor-man's flexible array...
authorMartin Sebor <msebor@redhat.com>
Tue, 28 Aug 2018 00:25:50 +0000 (00:25 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Tue, 28 Aug 2018 00:25:50 +0000 (18:25 -0600)
commitd1af2f668fb0fca982183265e1a56e23d4f25fa8
treedda636af1797625923bd2ed2310ed569091e2033
parent37223543da6e58eb12b19611b5f20dd5a1fec39e
PR tree-optimization/86914 - wrong code with strlen() of poor-man's flexible array member plus offset

gcc/ChangeLog:

PR tree-optimization/86914
* tree-ssa-strlen.c (maybe_set_strlen_range): Avoid MEM_REF.

gcc/testsuite/ChangeLog:

PR tree-optimization/86914
* gcc.dg/strlenopt-57.c: New test.

From-SVN: r263905
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/strlenopt-57.c [new file with mode: 0644]
gcc/tree-ssa-strlen.c