PR c++/61982 - dead stores to destroyed objects.
authorJason Merrill <jason@redhat.com>
Mon, 30 Apr 2018 15:21:01 +0000 (11:21 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 30 Apr 2018 15:21:01 +0000 (11:21 -0400)
commitcdc184174ce56df1fcaf2355d5ecdb47244c2de8
tree9654bf8df2ca4818d260cdca690325cbc05f7405
parent4d20f49036b7a669518aab3ba4cbb062287957da
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.

From-SVN: r259772
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]