Re: [PATCH] c++: Add __builtin_operator_{new,delete} support

2024-11-13 Thread Jan Hubicka
> Hi! > > clang++ adds __builtin_operator_{new,delete} builtins which as documented > work similarly to ::operator {new,delete}, except that it is an error > if the called ::operator {new,delete} is not a replaceable global operator > and allow optimizations which C++ normally allows just when tho

Re: [PATCH] c++: Add __builtin_operator_{new,delete} support

2024-11-11 Thread Sam James
Jakub Jelinek writes: > On Mon, Nov 11, 2024 at 06:47:43PM +, Sam James wrote: >> > Bootstrapped/regtested successfully on x86_64-linux and i686-linux. >> >> Maybe tag PR110137 given it's very related (and of interest to people >> CC'd on the bug). > > It is maybe related, but it is a distin

Re: [PATCH] c++: Add __builtin_operator_{new,delete} support

2024-11-11 Thread Jakub Jelinek
On Mon, Nov 11, 2024 at 06:47:43PM +, Sam James wrote: > > Bootstrapped/regtested successfully on x86_64-linux and i686-linux. > > Maybe tag PR110137 given it's very related (and of interest to people > CC'd on the bug). It is maybe related, but it is a distinct enhancement, so I've committed

Re: [PATCH] c++: Add __builtin_operator_{new,delete} support

2024-11-11 Thread Sam James
Jakub Jelinek writes: > On Fri, Nov 08, 2024 at 06:40:16PM +0100, Jakub Jelinek wrote: >> clang++ adds __builtin_operator_{new,delete} builtins which as documented >> work similarly to ::operator {new,delete}, except that it is an error >> if the called ::operator {new,delete} is not a replaceabl

Re: [PATCH] c++: Add __builtin_operator_{new,delete} support

2024-11-11 Thread Jason Merrill
On 11/8/24 12:40 PM, Jakub Jelinek wrote: Hi! clang++ adds __builtin_operator_{new,delete} builtins which as documented work similarly to ::operator {new,delete}, except that it is an error if the called ::operator {new,delete} is not a replaceable global operator and allow optimizations which C

Re: [PATCH] c++: Add __builtin_operator_{new,delete} support

2024-11-11 Thread Jakub Jelinek
On Fri, Nov 08, 2024 at 06:40:16PM +0100, Jakub Jelinek wrote: > clang++ adds __builtin_operator_{new,delete} builtins which as documented > work similarly to ::operator {new,delete}, except that it is an error > if the called ::operator {new,delete} is not a replaceable global operator > and allow

[PATCH] c++: Add __builtin_operator_{new,delete} support

2024-11-08 Thread Jakub Jelinek
Hi! clang++ adds __builtin_operator_{new,delete} builtins which as documented work similarly to ::operator {new,delete}, except that it is an error if the called ::operator {new,delete} is not a replaceable global operator and allow optimizations which C++ normally allows just when those are used