Re: [PATCH] PR libstdc++/90046 fix build failure on epiphany-elf

2019-04-16 Thread Jonathan Wakely
On 11/04/19 20:58 +0100, Jonathan Wakely wrote: The epiphany-elf target aligns structs to 8 bytes, which causes the static_assert(alignof(_Chunk) == 1) to fail. Instead of requiring _Chunks to be positionable at any alignment, ensure new buffers are aligned to alignof(_Chunk). Because the buffer

[PATCH] PR libstdc++/90046 fix build failure on epiphany-elf

2019-04-11 Thread Jonathan Wakely
The epiphany-elf target aligns structs to 8 bytes, which causes the static_assert(alignof(_Chunk) == 1) to fail. Instead of requiring _Chunks to be positionable at any alignment, ensure new buffers are aligned to alignof(_Chunk). Because the buffer size is a power of two, we know that both the bu