From: Tom Rini Date: Mon, 15 Oct 2012 11:48:52 -0700 Subject: [U-Boot] [PATCH V6] [RESEND] ARM: prevent misaligned array inits In-Reply-To: <1349810895-25809-1-git-send-email-albert.u.boot@aribaud.net> References: <1349809714-16267-1-git-send-email-albert.u.boot@aribaud.net> <1349725818-8500-1-git-send-email-albert.u.boot@aribaud.net> <1349723944-8188-1-git-send-email-albert.u.boot@aribaud.net> <1349464558-7311-1-git-send-email-albert.u.boot@aribaud.net> <1349810895-25809-1-git-send-email-albert.u.boot@aribaud.net> Message-ID: <20121015184852.GF25082@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, 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 > --- > 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: