Thank you for the bug report. I've confirmed this with gcc-linaro-4.6-2012.01 on ARM:
asa-san@ursa4:~/bugs/mp$ /scratch/asa-san/cbuild/slaves/ursa4/gcc-linaro-4.6-2012.01/gcc-binary/bin/gcc -c -o mp.o mp.c -O3 -funroll-loops
/tmp/ccv0lfQ5.s: Assembler messages:
/tmp/ccv0lfQ5.s:116: Error: branch out of range
/tmp/ccv0lfQ5.s:343: Error: branch out of range
The work around is to compiler at -O1 or to remove the -funroll-loops flag.
The fault does not exist in FSF gcc-4.5.3 or gcc-4.6.2
Neither does it exist on gcc-linaro-4.5-2012.01.
The fault exists in gcc 4.7 (r183205).
The fault was introduced in gcc-linaro-4.6-2011.09.
I've set it to low priority as it is a ftbfs, there is a work-around,
and the fault exists upstream.
Thank you for the bug report. I've confirmed this with gcc-linaro- 4.6-2012. 01 on ARM:
asa-san@ ursa4:~ /bugs/mp$ /scratch/ asa-san/ cbuild/ slaves/ ursa4/gcc- linaro- 4.6-2012. 01/gcc- binary/ bin/gcc -c -o mp.o mp.c -O3 -funroll-loops s:116: Error: branch out of range s:343: Error: branch out of range
/tmp/ccv0lfQ5.s: Assembler messages:
/tmp/ccv0lfQ5.
/tmp/ccv0lfQ5.
The work around is to compiler at -O1 or to remove the -funroll-loops flag.
The fault does not exist in FSF gcc-4.5.3 or gcc-4.6.2 4.5-2012. 01.
Neither does it exist on gcc-linaro-
The fault exists in gcc 4.7 (r183205). 4.6-2011. 09.
The fault was introduced in gcc-linaro-
I've set it to low priority as it is a ftbfs, there is a work-around,
and the fault exists upstream.