[U-Boot] [PATCH V6] [RESEND] ARM: prevent misaligned array inits

Tom Rini
2012-10-15T18:48:52Z

On Tue, Oct 09, 2012 at 09:28:15PM +0200, Albert ARIBAUD wrote:
> Under option -munaligned-access, gcc can perform local char
> or 16-bit array initializations using misaligned native
> accesses which will throw a data abort exception. Fix files
> where these array initializations were unneeded, and for
> files known to contain such initializations, enforce gcc
> option -mno-unaligned-access.
>
> Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
> ---
> V6: Make sure that gcc does not silently drop -mno-unaligned-access
> if it does not support it.

OK, you were correct. We need to use cc-option since older compilers
which were not causing issues don't support it either, making this
workable. I will just fix this in-line rather than make you do a v7.

--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121015/2ce1ce8d/attachment.pgp>