[PATCH 2/2] OMAP: disable unaligned access when building the IFT

Enrico Scholz enrico.scholz at sigma-chemnitz.de
Wed Dec 5 06:43:17 EST 2012


Enrico Scholz <enrico.scholz at sigma-chemnitz.de> writes:

>>> commit b823fd9ba56d56e3cbb5b05e7a4815fb0914204a
>>> Author: Albert ARIBAUD <albert.u.boot at aribaud.net>
>>> Date:   Tue Oct 9 09:28:15 2012 +0000
>>>     ARM: prevent misaligned array inits
>> ...
>> This patch explicitely mentions char arrays initialized on the stack
>> like this:
>
> I do not know the backgrounds of this patch but without additional
> context, I think it is wrong.

ah... found it:

 | be  actually unnecessary. In order to catch these accesses and remove
 | or optimize them, option -munaligned-access is explicitly set for all
 | versions of gcc which support it.

e.g. u-boot sets '-munaligned-access' unconditionally which is imo
silly. And now, they are trying to fix this mess by compiling single
files with '-mno-unaligned-access'...



Enrico



More information about the barebox mailing list