Skip to contentSkip to conversation

new system call mknod64

PATCH Arnd Bergmann 1 participant 1 message Apr 22, 2003 4 messages not in the archive

lore
Share & tools
lore

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]

#4 lore raw
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_64 is 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. If x86_64 is 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 <><