
15 Oct
2012
15 Oct
'12
8:48 p.m.
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