https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86861

--- Comment #4 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot 
Uni-Bielefeld.DE> ---
> --- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
> Great, thanks for testing it. Is it fixed for 64-bit as well as 32-bit? I was
> concerned that "the size of a word" might actually be imprecise and should be
> sizeof(void*) not sizeof(int).

It is.  In fact, I found the following comment in the OpenSolaris
sources of memalign.c, still in Illumos:

https://github.com/illumos/illumos-gate/blob/master/usr/src/lib/libc/port/gen/memalign.c#L35

#define _misaligned(p)          ((unsigned)(p) & 3)
                /* 4-byte "word" alignment is considered ok in LP64 */

Reply via email to