tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
authorMartin Sebor <msebor@redhat.com>
Mon, 28 Oct 2019 23:53:08 +0000 (23:53 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Mon, 28 Oct 2019 23:53:08 +0000 (17:53 -0600)
commitefe646c468656959236de0fbe2224561873fb189
treedbf3a51d2e92be9f3a8a1d7b0358423b3a5b815a
parent02c4de7631a177ea44149332aa1294a60ed9adad
tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.

gcc/ChangeLog:

* tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
(handle_store): Pass argument to get_addr_stridx.

gcc/testsuite/ChangeLog:

* gcc.dg/strlenopt-89.c: New test.
* gcc.dg/strlenopt-90.c: New test.
* gcc.dg/Wstringop-overflow-20.c: New test.

From-SVN: r277546
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wstringop-overflow-20.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/strlenopt-89.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/strlenopt-90.c [new file with mode: 0644]
gcc/tree-ssa-strlen.c