tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle strncpy.
authorJeff Law <law@redhat.com>
Fri, 19 Jul 2019 17:04:51 +0000 (11:04 -0600)
committerJeff Law <law@gcc.gnu.org>
Fri, 19 Jul 2019 17:04:51 +0000 (11:04 -0600)
commit192ece9e15d25fd9b6534b2a8bd271684bf76d38
treecafced4d63e287c50081c43251c95d717ea12d4a
parent6b68f00d4c2b375dad66bd6e72c01c309b4085c5
tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle strncpy.

* tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
strncpy.  Drop some trivial dead code.
(maybe_trim_memstar_call): Handle strncpy.

* gcc.dg/tree-ssa/ssa-dse-37.c: New test.
* gcc.dg/tree-ssa/ssa-dse-38.c: New test.

From-SVN: r273606
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-37.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-38.c [new file with mode: 0644]
gcc/tree-ssa-dse.c