re PR tree-optimization/71588 (ICE on valid code at -O2 and -O3 on x86_64-linux-gnu...
authorJakub Jelinek <jakub@redhat.com>
Tue, 21 Jun 2016 06:59:33 +0000 (08:59 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 21 Jun 2016 06:59:33 +0000 (08:59 +0200)
commit0ad84f34fc91885b187c302c8abf1dd6bae4a671
treee44c3058192b42758cc768621ec38577922dc5f1
parente71e8d944ff47afe91ed2610d71b1a11f85f93c5
re PR tree-optimization/71588 (ICE on valid code at -O2 and -O3 on x86_64-linux-gnu: in execute_todo, at passes.c:2009)

PR tree-optimization/71588
* tree-ssa-strlen.c (valid_builtin_call): New function.
(adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
it.

* gcc.dg/pr71558.c: New test.

From-SVN: r237628
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr71558.c [new file with mode: 0644]
gcc/tree-ssa-strlen.c