Thank you for the bug report. I've confirmed this with gcc-linaro-4.6-2011.05-0 on ARM:
michaelh@ursa1:~/linaro/bugs$ /tools/toolchains/arch/armv7l/gcc-linaro-4.6-2011.05-0-armv7l-maverick-cbuild114-ursa3-cortexa9r1/bin/gcc -c -O2 -marm lp788841.i
svga_tgsi_insn.c: In function 'svga_shader_emit_instructions':
svga_tgsi_insn.c:2889:1: internal compiler error: in push_minipool_fix, at config/arm/arm.c:12138
...
michaelh@ursa1:~/linaro/bugs$ /tools/toolchains/gcc-4.6.0-armv7l-maverick-cbuild93-ursa1-cortexa8r1/bin/gcc -c -O2 -marm lp788841.i
svga_tgsi_insn.c: In function 'svga_shader_emit_instructions':
svga_tgsi_insn.c:2889:1: internal compiler error: in push_minipool_fix, at config/arm/arm.c:12084
...
The work-around is to compile at -O1. The fault also exists in gcc-4.6.0. It does not exist in linaro-gcc-4.5-2011.05, gcc-4.5.2, or gcc-trunk r174044. As this is a regression in 4.6 compared to 4.5, Could you please also report this in GCC bugzilla and attach it to this ticket?
I've set it to medium as it is a ftbfs, the fault exists upstream, and there is a work-around.
Thank you for the bug report. I've confirmed this with gcc-linaro- 4.6-2011. 05-0 on ARM:
michaelh@ ursa1:~ /linaro/ bugs$ /tools/ toolchains/ arch/armv7l/ gcc-linaro- 4.6-2011. 05-0-armv7l- maverick- cbuild114- ursa3-cortexa9r 1/bin/gcc -c -O2 -marm lp788841.i emit_instructio ns': insn.c: 2889:1: internal compiler error: in push_minipool_fix, at config/ arm/arm. c:12138
svga_tgsi_insn.c: In function 'svga_shader_
svga_tgsi_
...
michaelh@ ursa1:~ /linaro/ bugs$ /tools/ toolchains/ gcc-4.6. 0-armv7l- maverick- cbuild93- ursa1-cortexa8r 1/bin/gcc -c -O2 -marm lp788841.i emit_instructio ns': insn.c: 2889:1: internal compiler error: in push_minipool_fix, at config/ arm/arm. c:12084
svga_tgsi_insn.c: In function 'svga_shader_
svga_tgsi_
...
The work-around is to compile at -O1. The fault also exists in gcc-4.6.0. It does not exist in linaro- gcc-4.5- 2011.05, gcc-4.5.2, or gcc-trunk r174044. As this is a regression in 4.6 compared to 4.5, Could you please also report this in GCC bugzilla and attach it to this ticket?
I've set it to medium as it is a ftbfs, the fault exists upstream, and there is a work-around.