This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34949] Dead code in empty destructors.
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 03 Apr 2013 13:37:51 +0000
- Subject: [Bug c++/34949] Dead code in empty destructors.
- Auto-submitted: auto-generated
- References: <bug-34949-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34949
--- Comment #26 from Jason Merrill <jason at gcc dot gnu.org> 2013-04-03 13:37:51 UTC ---
(In reply to comment #25)
> Looking at it more, if the change to emit *this ={v} {CLOBBER}; in cleanups
> rather than just at the end of function was desirable, then IMHO we just want
> to adjust the ehcleanup1.C testcase (from 4 to 6), those 2 removed regions are
> in a::~a where previously nothing has been cleaned up.
The change was desirable so that we can do DSE on the EH path as well as normal
control flow, as needed for 50243. I've adjusted the testcase.