Re: [PATCH] new system call mknod64

Arnd Bergmann
2003-04-22T19:52:23Z

Shachar Shemesh wrote:

>>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