ons 2011-11-09 klockan 10:05 +0000 skrev Gordan Bobic:
Speaking of alignment, armv5 has been in need of a GCC option to
force
4-byte alignment of all arrays (including char[] arrays) and structs
since forever. Arguably, it should be on by default on arm. But I guess
that is unrelated to this particular alignment issue.
Are you speaking of alignment in allocation or alignment in access?
50521 is about alignment in access when accessing volatile bitfields
where the ARM ABI have quite strict rules, plus that the gcc generates
bad code when trying to implement those rules via the
-fstrict-volatile-bitfields option.
Regards
Henrik