[U-Boot] [PATCH 4/9] ppc4xx: Fix strict-aliasing warnings in usb_ohci.c

Simon Glass sjg at chromium.org
Tue Oct 16 15:35:39 CEST 2012


Hi Marek,

On Mon, Oct 15, 2012 at 11:28 PM, Marek Vasut <marex at denx.de> 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


More information about the U-Boot mailing list