PR c++/61982 - dead stores to destroyed objects.
commit6ae0d78c82115b358460f9586cc5a2d530d98a7b
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Apr 2018 15:21:01 +0000 (30 15:21 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Apr 2018 15:21:01 +0000 (30 15:21 +0000)
tree9654bf8df2ca4818d260cdca690325cbc05f7405
parent38dba48bd4dc052916fcad18c243ab0866f1996d
PR c++/61982 - dead stores to destroyed objects.

gcc/cp/
* call.c (build_trivial_dtor_call): New, assigns a clobber.
(build_over_call, build_special_member_call): Use it.
* cp-tree.h: Declare it.
* init.c (build_delete): Remove trivial path.
gcc/
* gimplify.c (gimplify_modify_expr): Simplify complex lvalue on LHS
of clobber.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259772 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/init.c
gcc/gimplify.c
gcc/testsuite/g++.dg/tree-ssa/lifetime-dse1.C [new file with mode: 0644]