Re: new(nothrow) is malloc-like

2018-08-24 Thread Jonathan Wakely
On 24/08/18 18:25 +0200, Marc Glisse wrote: Hello, this makes the throwing and non-throwing versions of operator new more consistent with respect to __attribute__((malloc)). The throwing versions are already unconditionally declared with DECL_IS_MALLOC = 1 in the front-end.

new(nothrow) is malloc-like

2018-08-24 Thread Marc Glisse
Hello, this makes the throwing and non-throwing versions of operator new more consistent with respect to __attribute__((malloc)). The throwing versions are already unconditionally declared with DECL_IS_MALLOC = 1 in the front-end. Bootstrap+regtest on powerpc64le-unknown-linux-gnu. I