new system call mknod64
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 7 lines · Shachar Shemesh
Quoted 3 lines
On
x86_64, the struct produces the same code as the scalar. The same is true on s390x.I don't know how
x86_64is doing, but x86 does not issue a bus error when unaligned value is being accessed. It is therefor reasonable for the compiler not to worry about it. Ifx86_64is the same, the results you report seem like a reasonable feature of gcc, rather than a bug.
Right, from include/asm-*/unaligned.h, you can see which archs are able to do unaligned accesses:
cris, i386, m68k, ppc, ppc64, s390, s390x and x86_64
Arnd <><