From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Tue, 16 Oct 2012 06:35:39 -0700 Subject: [U-Boot] [PATCH 4/9] ppc4xx: Fix strict-aliasing warnings in usb_ohci.c In-Reply-To: <201210160828.15393.marex@denx.de> References: <1325822097-15227-1-git-send-email-sjg@chromium.org> <1325822097-15227-5-git-send-email-sjg@chromium.org> <201210160828.15393.marex@denx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Marek, On Mon, Oct 15, 2012 at 11:28 PM, Marek Vasut wrote: > Dear Simon Glass, > >> This fixes warnings seen with my gcc 4.6. >> >> usb_ohci.c: In function 'submit_control_msg': >> usb_ohci.c:1046: warning: dereferencing pointer 'data_buf.70' does break >> strict-aliasing rules >> usb_ohci.c:1046: note: initialized from here >> usb_ohci.c:1048: warning: dereferencing pointer 'data_buf.70' does break >> strict-aliasing rules >> usb_ohci.c:1048: note: initialized from here >> usb_ohci.c:1050: warning: dereferencing pointer 'data_buf.70' does break >> strict-aliasing rules > [...] > > Are we still seeing these? I see them with my compiler, but I might be in a minority of one here. I am working on getting a new powerpc tool chain. Regards, Simon > > Best regards, > Marek Vasut