tree-ssa-strlen.c (get_string_length): Change assertion to STPCPY.
authorAndreas Krebbel <Andreas.Krebbel@de.ibm.com>
Mon, 24 Oct 2011 20:14:35 +0000 (20:14 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Mon, 24 Oct 2011 20:14:35 +0000 (20:14 +0000)
commit93a90db6b0ba863657dd45ecaf4c424ca4ec1acb
treebf9957eca52822e3a25fbdd6aed21bf26bfc9eea
parent980889d81482ecc88280262cdd101471f8e3c511
tree-ssa-strlen.c (get_string_length): Change assertion to STPCPY.

2011-10-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* tree-ssa-strlen.c (get_string_length): Change assertion to STPCPY.
(zero_length_string): Change assertion to accept strinfo without
length but with stmt instead.
Set the endptr pointer also if starting a new chain.
(adjust_related_strinfos): Ignore strinfos marked for delayed
length computation.
(handle_builtin_strcpy): Mark earlier strinfo elements also for
delayed length computation.

2011-10-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gcc.dg/strlenopt-22.c: New testcase.
* gcc.dg/strlenopt-4.c: Change scan value for s390(x).

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