[U-Boot-Users] help with warnings and gcc-4.3.0

Scott Wood scottwood at freescale.com
Thu May 29 18:44:11 CEST 2008


On Thu, May 29, 2008 at 11:31:28AM -0500, Kumar Gala wrote:
> #define bin_at(i)      ((mbinptr)((char*)&(av_[2*(i) + 2]) - 2*SIZE_SZ))
> #define next_bin(b)    ((mbinptr)((char*)(b) + 2 * sizeof(mbinptr)))
> #define prev_bin(b)    ((mbinptr)((char*)(b) - 2 * sizeof(mbinptr)))
> ..
> 
> #define top            (bin_at(0)->fd)   /* The topmost chunk */
> #define last_remainder (bin_at(1))       /* remainder from last split */
> 
> 
> but I can't seem to do anything to bin_at() to make them stop.  Was  
> wondering if anyone had any suggestions.

We could compile that file with -fno-strict-aliasing, which is probably
warranted anyway for the kind of pointer manipulation that malloc needs to
do.

-Scott




More information about the U-Boot mailing list