https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61034
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=99912 --- Comment #14 from Andrew Pinski <pinskia at gcc dot gnu.org> --- r12-156-g8d4c374c4419a8 I think fixed things all the way for the malloc/free case (note you need -std=c++98 otherwise a different operator delete is used). Note removing the definitions of operator new/delete is still not optimized even on the trunk .... I have not checked out why though.