tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of memcpy, memmove...
authorJeff Law <law@redhat.com>
Wed, 26 Jun 2019 18:00:00 +0000 (12:00 -0600)
committerJeff Law <law@gcc.gnu.org>
Wed, 26 Jun 2019 18:00:00 +0000 (12:00 -0600)
commit4a61cf9c62212fd04f21704efc2decffe9544651
tree8a77e9e1bb86fbebcf8adcaa6f027ce901a2a13b
parentf363fc5b49cb83aa98d89efa98fe42f57af4de05
tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of memcpy, memmove and memset builtins.

* tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
memcpy, memmove and memset builtins.
(maybe_trim_memstar_call): Likewise.

* gcc.c-torture/execute/builtins/builtins.exp: Add -fno-tree-dse
as DSE compromises several of these tests.
* gcc.dg/builtin-stringop-chk-1.c: Similarly.
* gcc.dg/memcpy-2.c: Similarly.
* gcc.dg/pr40340-1.c: Similarly.
* gcc.dg/pr40340-2.c: Similarly.
* gcc.dg/pr40340-5.c: Similarly.

From-SVN: r272704
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp
gcc/testsuite/gcc.dg/builtin-stringop-chk-1.c
gcc/testsuite/gcc.dg/memcpy-2.c
gcc/testsuite/gcc.dg/pr40340-1.c
gcc/testsuite/gcc.dg/pr40340-2.c
gcc/testsuite/gcc.dg/pr40340-5.c
gcc/tree-ssa-dse.c