[U-Boot] [PATCH v2] arm: Switch to -mno-unaligned-access when supported by the compiler

Måns Rullgård
2014-02-04T17:35:42Z

Tom Rini <trini@ti.com> writes:

> When we tell the compiler to optimize for ARMv7 it assumes a default of
> unaligned accesses being supported at the hardware level and can make
> use of this to perform what it deems as an optimization in any case,
> including allowing for data to become unaligned. We explicitly disallow
> this hardware feature so we must tell the compiler.
>
> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
> Cc: Mans Rullgard <mans@mansr.com>
> Signed-off-by: Tom Rini <trini@ti.com>

Acked-by: Mans Rullgard <mans@mansr.com>

--
M?ns Rullg?rd
mans at mansr.com