http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34949
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-09-01 09:31:54 UTC --- Of course the C++ FE adjusts it to its vtable, it is needed if the body of the dtor or anything it calls needs to use it. Andrew's suggestion IMHO makes sense, perhaps using Micha's proposal to say that at the end of a destructor *this = volatile{}; Then DSE could happily nuke the vtable ptr stores (or any other stores to the object being destructed).