Re: [PATCH] libstdc++: Add align_alloc attribute to aligned operator new

2024-10-30 Thread Jakub Jelinek
On Wed, Oct 30, 2024 at 09:58:56PM +, Jonathan Wakely wrote: > I suppose the "not implicitly convertible to an integer" rule for > scoped enums is just a language constraint, the compiler sees scoped > enumerations like any other integral value. Sure. This is used in the middle-end and for it

Re: [PATCH] libstdc++: Add align_alloc attribute to aligned operator new

2024-10-30 Thread Jonathan Wakely
On Wed, 30 Oct 2024 at 21:54, Jakub Jelinek wrote: > > On Wed, Oct 30, 2024 at 09:24:05PM +, Jonathan Wakely wrote: > > The aligned versions of operator new should use the align_alloc > > attribute to help the compiler. > > > > PR c++/86878 requests that the compiler would use the attribute to

Re: [PATCH] libstdc++: Add align_alloc attribute to aligned operator new

2024-10-30 Thread Jakub Jelinek
On Wed, Oct 30, 2024 at 09:24:05PM +, Jonathan Wakely wrote: > The aligned versions of operator new should use the align_alloc > attribute to help the compiler. > > PR c++/86878 requests that the compiler would use the attribute to warn > about invalid attributes, so an XFAILed test is added f

Re: [PATCH] libstdc++: Add align_alloc attribute to aligned operator new

2024-10-30 Thread Jonathan Wakely
On Wed, 30 Oct 2024 at 21:26, Jonathan Wakely wrote: > > The aligned versions of operator new should use the align_alloc > attribute to help the compiler. > > PR c++/86878 requests that the compiler would use the attribute to warn > about invalid attributes, so an XFAILed test is added for that. >