[Bug c++/34949] Dead code in empty destructors.

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Apr 3 13:37:00 GMT 2013


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.



More information about the Gcc-bugs mailing list