This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/61982] Optimizer does not eliminate stores to destroyed objects


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61982

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The CLOBBER for non-decl expressions is added in the destructors, here we have
trivial destructor, so it is "inlined" already by the frontend and thus not
emitted.  Perhaps we could emit it in the places where we'd normally insert a
call to destructor if the object being destructed is not a decl (in that case I
believe adding the CLOBBER for it should be handled during gimplification).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]