Re: gcc-4.3 considers unaligned accesses on X86 as undefined

From: Alan Cox
Date: Tue Mar 25 2008 - 17:28:45 EST


On Tue, 25 Mar 2008 22:51:09 +0200
TÃrÃk Edwin <edwintorok@xxxxxxxxx> wrote:

> Hello x86 architecture maintainers,
>
> GCC-4.3 now considers that it is undefined behaviour to access memory
> through an int* that is not aligned to sizeof(int).
> At -O3 it generates vectorized code

FPU/MMX/SSE are not available or usable for the kernel anyway fortunately
in this case.

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/