Re: [PATCH] PR libstdc++/77691 fix resource_adaptor failures due to max_align_t bugs

2019-05-22 Thread Jonathan Wakely
On 22/05/19 23:17 +0100, Jonathan Wakely wrote: On 22/05/19 21:40 +0100, Jonathan Wakely wrote: Remove the hardcoded whitelist of allocators expected to return memory aligned to alignof(max_align_t), because that doesn't work when the platform's malloc() and GCC's max_align_t do not agree what t

Re: [PATCH] PR libstdc++/77691 fix resource_adaptor failures due to max_align_t bugs

2019-05-22 Thread Jonathan Wakely
On 22/05/19 21:40 +0100, Jonathan Wakely wrote: Remove the hardcoded whitelist of allocators expected to return memory aligned to alignof(max_align_t), because that doesn't work when the platform's malloc() and GCC's max_align_t do not agree what the largest fundamental alignment is. It's also su

[PATCH] PR libstdc++/77691 fix resource_adaptor failures due to max_align_t bugs

2019-05-22 Thread Jonathan Wakely
Remove the hardcoded whitelist of allocators expected to return memory aligned to alignof(max_align_t), because that doesn't work when the platform's malloc() and GCC's max_align_t do not agree what the largest fundamental alignment is. It's also sub-optimal for user-defined allocators that return