[U-Boot] [PATCH] dlmalloc: remove manual reloc alias warning
Andreas Bießmann
biessmann at corscience.de
Mon Aug 13 17:31:40 CEST 2012
On 13.08.2012 17:14, Andreas Bießmann wrote:
> Dear Mike Frysinger,
>
> On 13.08.2012 16:54, Mike Frysinger wrote:
>> On Monday 13 August 2012 05:02:03 Andreas Bießmann wrote:
>>> From: Andreas Bießmann <biessmann at corscience.de>
>>>
>>> The avr32 architecture (and some others) require manual relocation. Due to
>>> the previous error all avr32 boards gave warnings in MAKEALL wich makes it
>>> hard to find new warnings.
>>>
>>> This patch fixes following warning:
>>> ---8<---
>>> 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
>>> --->8---
>>>
>>> Signed-off-by: Andreas Bießmann <biessmann at corscience.de>
>>> ---
>>> A question to all the other related arches, namely m68k, mips, nds32 and
>>> sparc: Do you encounter the same warnings or is this warning due to my
>>> outdated compiler (4.4.3 currently, unfortunately atmel do not bother to
>>> send their patches mainline)?
>>
>> previous thread (and i think there was one before this):
>> http://patchwork.ozlabs.org/patch/134597/
>
> thank you for the hint. I think this is a better solution so I will test
> it and try to force the other patch as the correct solution.
well, looks nice but is broken at runtime ;(
>
> Best regards
>
> Andreas Bießmann
>
>
More information about the U-Boot
mailing list