PR tree-optimization/93213 - wrong code with -Og -foptimize-strlen
authorMartin Sebor <msebor@redhat.com>
Mon, 13 Jan 2020 13:20:41 +0000 (13:20 +0000)
committerMartin Sebor <msebor@redhat.com>
Mon, 13 Jan 2020 13:33:37 +0000 (13:33 +0000)
commite13f37d9f7600d337f8a4589b5f985ded9e05852
tree7361c300da40923fd58cd3686a65e1460ae75dda
parent5ab08934e5f44dbdd5b0e4226755b46bf4e2e1af
PR tree-optimization/93213 - wrong code with -Og -foptimize-strlen

gcc/testsuite/ChangeLog:

PR tree-optimization/93213
* gcc.c-torture/execute/pr93213.c: New test.

gcc/ChangeLog:

PR tree-optimization/93213
* tree-ssa-strlen.c (handle_store): Only allow single-byte nul-over-nul
stores to be eliminated.
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr93213.c [new file with mode: 0644]
gcc/tree-ssa-strlen.c