Re: [PATCH] gimple: Return fnspec only for replaceable new/delete operators called from new/delete [PR98130]

2020-12-04 Thread Richard Biener
On December 4, 2020 6:06:20 PM GMT+01:00, Jakub Jelinek wrote: >Hi! > >As mentioned in the PR, we shouldn't treat non-replaceable operator >new/delete (e.g. with the placement new) as replaceable ones. > >There is some pending discussion that perhaps operator delete called >from >delete if not

[PATCH] gimple: Return fnspec only for replaceable new/delete operators called from new/delete [PR98130]

2020-12-04 Thread Jakub Jelinek via Gcc-patches
Hi! As mentioned in the PR, we shouldn't treat non-replaceable operator new/delete (e.g. with the placement new) as replaceable ones. There is some pending discussion that perhaps operator delete called from delete if not replaceable should return some other fnspec, but can we handle that