This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
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
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |