https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86083
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> --- Author: msebor Date: Mon Jun 11 20:01:40 2018 New Revision: 261452 URL: https://gcc.gnu.org/viewcvs?rev=261452&root=gcc&view=rev Log: PR tree-optimization/86083 - handle non-constant assignments in strlen gcc/ChangeLog: PR tree-optimization/86083 * tree-ssa-strlen.c (handle_char_store): Use tree_expr_nonzero_p. gcc/testsuite/ChangeLog: PR tree-optimization/86083 * gcc.dg/strlenopt-44.c: New test. Added: trunk/gcc/testsuite/gcc.dg/strlenopt-44.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-ssa-strlen.c