re PR tree-optimization/92691 (ICE in strlen_dom_walker::before_dom_children at gcc...
authorJakub Jelinek <jakub@redhat.com>
Thu, 28 Nov 2019 08:36:06 +0000 (09:36 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 28 Nov 2019 08:36:06 +0000 (09:36 +0100)
commit79d2e61495d84a2fed4fce6ff7dacfe19a8b99ca
tree5a5df5a2b8c1b5daafe7aaef4120157ebbce57d9
parent99150b053e1840ffc47704a9188e26c889d07517
re PR tree-optimization/92691 (ICE in strlen_dom_walker::before_dom_children at gcc/tree-ssa-strlen.c:5177 since r274933)

PR tree-optimization/92691
* tree-ssa-strlen.c (handle_store): Clarify return value meaning
in function comment.
(strlen_check_and_optimize_call): Likewise.  For handle_printf_call
calls, return !handle_printf_call rather than always returning true.
(check_and_optimize_stmt): Describe return value meaning in function
comment.  Formatting fix.

* gcc.dg/tree-ssa/builtin-snprintf-10.c: New test.

From-SVN: r278803
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/builtin-snprintf-10.c [new file with mode: 0644]
gcc/tree-ssa-strlen.c