https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58483
--- Comment #22 from Sam James <sjames at gcc dot gnu.org> --- (In reply to Jan Hubicka from comment #19) > With Jakub's __builtin_operator_new we now optimize out the code if main is > renamed to something else. With main we know it is executed once and we > keep destructor offline which prevents from matching new/delete pairs. > Which testcase did you see that with? comment 0 and comment 17 look the same with or without main renaming. Also, maybe we should move that into its own PR if it's an issue still.