re PR tree-optimization/84339 (Wrong-code with optimizing strlen)
authorJakub Jelinek <jakub@redhat.com>
Tue, 13 Feb 2018 08:35:53 +0000 (09:35 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 13 Feb 2018 08:35:53 +0000 (09:35 +0100)
commit204a7ecb02199cdef17e445821c1effbfaf21bae
tree5acc0ef8db33596f096d2b3140f6820babe3bc45
parent848bb6fc0e502345536b25e1a110eb7f01eccbc1
re PR tree-optimization/84339 (Wrong-code with optimizing strlen)

PR tree-optimization/84339
* gimple-fold.c (get_range_strlen): Set *FLEXP to true when handling
ARRAY_REF where first operand is array_at_struct_end_p COMPONENT_REF.
Formatting fixes.

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

From-SVN: r257618
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr84339.c [new file with mode: 0644]