[PATCH 2/2] Use C11 _Alignas on scratch_buffer internal buffer
Florian Weimer
fweimer@redhat.com
Mon Sep 18 16:41:00 GMT 2017
On 09/18/2017 06:10 PM, Paul Eggert wrote:
> This patch could cause problems on non-GCC platforms. According to the
> Gnulib documentation
> <https://www.gnu.org/software/gnulib/manual/html_node/stdalign_002eh.html>,
> Sun C 5.11 supports _Alignas but not on auto variables. In practice, the
> unpatched scratch_buffer.h uses 1024-byte buffers everywhere,
Are you sure? sizeof (max_align_t) is 48 on i386, after all.
Thanks,
Florian
More information about the Libc-alpha
mailing list