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

2014-01-28 Thread Tom Rini
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

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

2014-01-28 Thread Måns Rullgård
Tom Rini tr...@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

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

2014-01-28 Thread Tom Rini
On Tue, Jan 28, 2014 at 06:43:14PM +, Måns Rullgård wrote: Tom Rini tr...@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