[U-Boot] warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules

Timur Tabi timur at freescale.com
Thu Sep 2 03:27:24 CEST 2010


On Wed, Sep 1, 2010 at 12:01 PM, Mike Frysinger <vapier at gentoo.org> wrote:
> On Tuesday, August 31, 2010 18:30:39 Timur Tabi wrote:
>> I ran Software Update on my Fedora 13 system, and now whenever I build
>> U-Boot, I get a bunch of warnings like this:
>
> what version of u-boot exactly ?

Any recent version.  Every version I've tried has this problem.

> for what board/architecture ?

It appears to be any PowerPC board.

> what is your
> host gcc version and your target gcc version ?

$ gcc --version
gcc (GCC) 4.4.4 20100630 (Red Hat 4.4.4-10)

$ powerpc-linux-gnu-gcc --version
powerpc-linux-gnu-gcc (Sourcery G++ Lite 4.4-194) 4.4.1

> what is the exact compile line
> that causes this warning to be displayed ?

powerpc-linux-gnu-gcc  -g  -Os   -mrelocatable -fPIC -meabi
-D__KERNEL__ -DTEXT_BASE=0xeff80000 -DRESET_VECTOR_ADDRESS=0xeffffffc
-I/home/b04825/git/u-boot.diu/include -fno-builtin -ffreestanding
-nostdinc -isystem
/opt/freescale/usr/local/gcc-4.4.194-eglibc-2.11.194/powerpc-linux-gnu/lib/gcc/powerpc-linux-gnu/4.4.1/include
-pipe  -DCONFIG_PPC -D__powerpc__ -ffixed-r2 -Wa,-me500 -msoft-float
-mno-string -mspe=yes -mno-spe -Wall -Wstrict-prototypes
-fno-stack-protector   \
                -o dlmalloc.o dlmalloc.c -c

> this is a pretty information-less
> bug report ...

It's not a bug report.  I was hoping that other people had already
seen this, since I'm not doing anything special.

-- 
Timur Tabi
Linux kernel developer at Freescale


More information about the U-Boot mailing list