PR tree-optimization
authorMartin Sebor <msebor@redhat.com>
Tue, 9 Jul 2019 23:29:33 +0000 (23:29 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Tue, 9 Jul 2019 23:29:33 +0000 (17:29 -0600)
commitc2e8bd51418b927c2b31f48aa9cd630d94a59b3a
treea7ddb5fb711afabfe5545986fb93805959e02ae4
parenta0aeb7fb93da156b64fd08391c79ff35a69af7ba
PR tree-optimization

gcc/ChangeLog:

PR tree-optimization
* tree-ssa-strlen.c (handle_char_store): Constrain a single character
optimization to just single character stores.

gcc/testsuite/ChangeLog:

PR tree-optimization
* gcc.dg/strlenopt-26.c: Exit with test result status.
* gcc.dg/strlenopt-67.c: New test.

From-SVN: r273317
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/strlenopt-26.c
gcc/testsuite/gcc.dg/strlenopt-67.c [new file with mode: 0644]
gcc/tree-ssa-strlen.c