mirror of git://git.musl-libc.org/musl
321f4fa906
unfortunately this needs to be able to vary by arch, because of a huge mess GCC made: the GCC definition, which became the ABI, depends on quirks in GCC's definition of __alignof__, which does not match the formal alignment of the type. GCC's __alignof__ unexpectedly exposes the an implementation detail, its "preferred alignment" for the type, rather than the formal/ABI alignment of the type, which it only actually uses in structures. on most archs the two values are the same, but on some (at least i386) the preferred alignment is greater than the ABI alignment. I considered using _Alignas(8) unconditionally, but on at least one arch (or1k), the alignment of max_align_t with GCC's definition is only 4 (even the "preferred alignment" for these types is only 4). |
||
---|---|---|
.. | ||
alltypes.h.in | ||
endian.h | ||
errno.h | ||
fcntl.h | ||
fenv.h | ||
float.h | ||
io.h | ||
ioctl.h | ||
ipc.h | ||
limits.h | ||
mman.h | ||
msg.h | ||
posix.h | ||
resource.h | ||
sem.h | ||
setjmp.h | ||
shm.h | ||
signal.h | ||
socket.h | ||
stat.h | ||
statfs.h | ||
stdarg.h | ||
stdint.h | ||
syscall.h | ||
termios.h | ||
user.h |