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

Andreas Bießmann andreas.devel at googlemail.com
Wed Sep 5 11:41:33 CEST 2012


Dear all,

On 04.09.2012 23:31, andreas.devel at googlemail.com wrote:
> From: Simon Glass <sjg at chromium.org>
> 
> This fixes the following warnings in dlmalloc seen with my gcc 4.6.
> 
> 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
> 
> This version is tested on avr32 arch boards.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Signed-off-by: Andreas Bießmann <andreas.devel at googlemail.com>
> ---

if no one complains I will apply this through u-boot-avr32 next weekend.

Best regards

Andreas Bießmann



More information about the U-Boot mailing list