https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110137
--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Is the option supposed to be only about the standard global scope operator new/delete (_Znam etc.) or also user operator new/delete class methods? If the former, then I agree it is a global property (or at least a per shared library/binary property, one can arrange stuff with symbol visibility etc.). Otherwise it is a property of whatever operator new/delete you call. I think DECL_IS_OPERATOR_{NEW,DELETE} is set on both of these, the standard ones have also DECL_IS_REPLACEABLE_OPERATOR flag on them. Anyway, handling this just in IRA doesn't seem to be enough, surely it should be also handled during alias analysis etc.