[U-Boot] [PATCH 2/9] Fix strict-aliasing warning in dlmalloc

Mike Frysinger vapier at gentoo.org
Sun Jan 8 10:27:33 CET 2012


On Friday 06 January 2012 15:39:08 Simon Glass wrote:
> On Thu, Jan 5, 2012 at 10:48 PM, Wolfgang Denk wrote:
> > Simon Glass wrote:
> >> This fixes the following warnings in dlmalloc seen with my gcc 4.6.
> > 
> > Which exact version is this?
> > 
> >> dlmalloc.c: In function 'malloc_bin_reloc':
> >> dlmalloc.c:1493: warning: dereferencing pointer 'p' does break
> >> strict-aliasing rules dlmalloc.c:1493: warning: dereferencing pointer
> >> 'p' does break strict-aliasing rules dlmalloc.c:1490: note: initialized
> >> from here
> >> dlmalloc.c:1493: note: initialized from here
> > 
> > Can you please tell me at least one board configuration that throws
> > this error (preferrably ppc, arm or mips) ?
> 
> I can't see one with those architectures. It does happen for others though:

yes, there have been reports and patches posted in the past iirc.  first by 
Kumar i think.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120108/82c155ff/attachment.pgp>


More information about the U-Boot mailing list