Handle new operators with no arguments in DCE.
authorMartin Liska <mliska@suse.cz>
Mon, 5 Aug 2019 12:53:01 +0000 (14:53 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 5 Aug 2019 12:53:01 +0000 (12:53 +0000)
commitefe5143f896d224c7b0811d9ee42161ac7c4171c
tree8b78b51ea36cdfbfae76a968ca5a3af62ae6b9ac
parenta2001d445a5ff419c27241019c85f1e033d89d67
Handle new operators with no arguments in DCE.

2019-08-05  Martin Liska  <mliska@suse.cz>

PR c++/91334
* tree-ssa-dce.c (propagate_necessity): Handle new operators
with not arguments.
(eliminate_unnecessary_stmts): Likewise.
2019-08-05  Martin Liska  <mliska@suse.cz>

PR c++/91334
* g++.dg/torture/pr91334.C: New test.

From-SVN: r274115
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr91334.C [new file with mode: 0644]
gcc/tree-ssa-dce.c