From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Sat, 20 Aug 2011 20:56:41 +0200 Subject: [U-Boot] [PATCH 3/4] USB: Fix anti-aliasing complaints in OHCI-HCD In-Reply-To: <201108201407.50669.vapier@gentoo.org> References: <1313846925-31212-1-git-send-email-marek.vasut@gmail.com> <1313846925-31212-3-git-send-email-marek.vasut@gmail.com> <201108201407.50669.vapier@gentoo.org> Message-ID: <201108202056.41937.marek.vasut@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Saturday, August 20, 2011 08:07:49 PM Mike Frysinger wrote: > On Saturday, August 20, 2011 09:28:43 Marek Vasut wrote: > > - __u32 datab[4]; > > + __u8 datab[16] __attribute__((aligned(4))); > > > > __u8 *data_buf = (__u8 *)datab; > > leverage a union to avoid attributes: > union { > __u32 u32[4]; > __u8 u8[16]; > } datab; > __u8 *data_buf = datab.u8; > > also, it isn't "anti-aliasing complaints", it's "fix strict aliasing > violations". "anti-aliasing" is something completely different in the > computing world :p. Well I guess my brain just saw the compiler output differently ... thanks for the catch. > -mike