[U-Boot] [PATCH v2] arm: Switch to -mno-unaligned-access when supported by the compiler

Wolfgang Denk
2014-02-12T15:51:09Z

Dear Tom,

In message <20140212142536.GA15819@bill-the-cat> you wrote:
>
> No. The solution is to tell the compiler which optimizations it can,
> and cannot use. If we stop telling it that native unaligned accesses
> work it won't decide to make use of those optimizations.

Can we do this in such a way that we can be absolutely sure that the
compiler will never break up larger (say 32 bit) accesses into smaller
(say, 2 x 16 bit or 4 x 8 bit or similar) accesses?

Best regards,

Wolfgang Denk

--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A wise person makes his own decisions, a weak one obeys public
opinion. -- Chinese proverb