[PATCH 4/9] Sync scratch_buffer with gnulib
Florian Weimer
fweimer@redhat.com
Mon Sep 18 06:09:00 GMT 2017
On 09/05/2017 10:25 PM, Adhemerval Zanella wrote:
> - char __space[1024]
> - __attribute__ ((aligned (__alignof__ (max_align_t))));
> + max_align_t __space[(1023 + sizeof (max_align_t)) / sizeof (max_align_t)];
This change needs a declaration from the GCC folks (probably from
Richard Biener) that it does not break aliasing analysis. The old code
uses a GCC extension (writing to a char array changes its dynamic type);
it is not valid C. I don't know if the GCC extension also applies if
the storage site is declared with a non-char type.
Thanks,
Florian
More information about the Libc-alpha
mailing list