On Mon, Nov 18, 2024 at 01:29:02PM -0500, Eric Gallager wrote: > > The patch below makes the clang++ behavior the default (i.e. pure-ish > > operator new/delete when called from new/delete expressions, no assumptions > > when called directly) and adds options to override this behavior in both > > directions, to the pre-PR101480 state with e.g. > > -fassume-sane-operators-new-delete (in fact a little bit further; because > > the patch makes those assumptions even when calling the operators directly), > > and to the current trunk state with e.g. > > -fno-assume-sane-operators-new-delete. > > > > I've tried to explain stuff in the documentation too. > > This all seems excessively complicated; can't it be simplified a bit?
IMHO it is undesirable to simplify it, because different users will have different needs and we want to offer optimization possibilities to users whose code allows that. Jakub