[U-Boot] [PATCH] arm: armv7: add compile option -mno-unaligned-access if available

Mike Frysinger
2012-07-19T04:29:23Z

On Monday 02 July 2012 12:14:40 M?ns Rullg?rd wrote:
> It's slightly more complicated than that. Data can be misaligned for a
> variety of reasons:
>
> 1. Errors in software.
> 2. Specified by a file format or communication protocol.
> 3. Deliberately misaligned by the compiler.
>
> Misaligned data of type 1 should of course be fixed properly, not worked
> around in any way.

it's also a reliability aspect. people don't write bug free software, not bug
free protocols, nor bug free compilers. when misalignment does happen in the
field, it's a hell of a lot better if the software continued to execute
correctly rather than randomly triggered an exception.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120719/aed59442/attachment.pgp>