Comment 8 for bug 827990

Revision history for this message
In , Loïc Minier (lool) wrote :

Hi

This was initially reported at https://bugs.launchpad.net/ubuntu/+source/gcc-4.6-armel-cross/+bug/827990 and Michael Hope produced a reduced testcase which is confirmed to affect GCC 4.6.1.

arm-linux-gnueabi-gcc -g -Os -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x80100000 -DCONFIG_SPL_TEXT_BASE=0x40304350 -I/home/lool/git/linaro/boot/u-boot-linaro-stable/obj-omap4_panda/include2 -I/home/lool/git/linaro/boot/u-boot-linaro-stable/obj-omap4_panda/include -I/home/lool/git/linaro/boot/u-boot-linaro-stable/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabi/4.6.1/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv5 -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-security -o /home/lool/git/linaro/boot/u-boot-linaro-stable/obj-omap4_panda/arch/arm/cpu/armv7/omap4/clocks.o clocks.c -c
clocks.c: In function ‘enable_basic_clocks’:
clocks.c:657:13: internal compiler error: in decode_addr_const, at varasm.c:2632
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.

Michael Hope also notes:
"Note the use of -fno-builtin to suppress a warning.

The fault occurs at -Os, -O1, -O2, and -O3. The work-around is to compile at -O0."

(I'm attaching his reduced test case, the original files are in the Launchpad bug in the unlikely case you'd need them)

Bye,