From: Tom Rini Date: Tue, 28 Jan 2014 13:57:52 -0500 Subject: [U-Boot] [PATCH] arm: Switch to -mno-unaligned-access when supported by the compiler In-Reply-To: References: <1390932329-22828-1-git-send-email-trini@ti.com> Message-ID: <20140128185752.GK3277@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Jan 28, 2014 at 06:43:14PM +0000, M?ns Rullg?rd wrote: > Tom Rini writes: > > > When we tell the compiler to optimize for ARMv7 it assumes a default of > > unaligned accesses being supported at the hardware level and can make > > use of this to perform what it deems as an optimization in any case, > > including allowing for data to become unaligned. We explicitly disallow > > this hardware feature so we must tell the compiler. > > > > Cc: Albert ARIBAUD > > Cc: Mans Rullgard > > Signed-off-by: Tom Rini > > --- > > arch/arm/cpu/armv7/config.mk | 6 +- > > arch/arm/cpu/armv8/config.mk | 5 +- > > common/Makefile | 4 -- > > doc/README.arm-unaligned-accesses | 122 ------------------------------------- > > fs/ubifs/Makefile | 3 - > > lib/Makefile | 3 - > > 6 files changed, 5 insertions(+), 138 deletions(-) > > delete mode 100644 doc/README.arm-unaligned-accesses > > Awesome. > > You should also remove the reference to the (deleted) readme file from > arch/arm/lib/interrupts.c And top-level README. I'll do that in a v2 later, thanks. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: