[forwarded from http://bugs.debian.org/385505] sorry for the vague report, didn't reproduce that report yet. gcc-4.1 fails to build openmsx 0.6.1 from source when compiled with -O3. Experimenting with debian/ARM installed in qemu revealed that compiling with -O2 -funswitch-loops -fgcse-after-reload -ffast-math -funroll-loops works fine. This seems to point towards the the -finline-functions option. More detailed concerning this bug can be found in openmsx bugreport http://bugs.debian.org/385197 .
Not enough information.
I'll try to take a look.
(sid)40:tbm@usurper: ~] arm-linux-gnu-g++ -c YMF262.c (sid)41:tbm@usurper: ~] arm-linux-gnu-g++ -c -O2 YMF262.c (sid)42:tbm@usurper: ~] arm-linux-gnu-g++ -c -O3 YMF262.c /tmp/ccnnwFsk.s: Assembler messages: /tmp/ccnnwFsk.s:83: Error: bad immediate value for offset (4104) /tmp/ccnnwFsk.s:84: Error: bad immediate value for offset (4104) zsh: exit 1 arm-linux-gnu-g++ -c -O3 YMF262.c (sid)43:tbm@usurper: ~] (sid)44:tbm@usurper: ~] arm-linux-gnu-g++ -c -O2 YMF262.c (sid)45:tbm@usurper: ~] arm-linux-gnu-g++ -c -O2 -finline-functions YMF262.c /tmp/ccBUO5HO.s: Assembler messages: /tmp/ccBUO5HO.s:83: Error: bad immediate value for offset (4104) /tmp/ccBUO5HO.s:84: Error: bad immediate value for offset (4104) zsh: exit 1 arm-linux-gnu-g++ -c -O2 -finline-functions YMF262.c (sid)46:tbm@usurper: ~] This is with 4.1.2 20060926.
Created attachment 12329 [details] test case
This doesn't happen with gcc 4.2, nor, apparently, with 4.0.
Yes, 4.0 works, so it's really only a problem in 4.1.
Subject: Bug 29230 Author: pbrook Date: Wed Sep 27 17:09:40 2006 New Revision: 117253 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117253 Log: 2006-09-27 Paul Brook <paul@codesourcery.com> PR target/29230 gcc/ * config/arm/arm.md (arith_adjacentmem): Handle large offsets. Modified: trunk/gcc/ChangeLog trunk/gcc/config/arm/arm.md
Subject: Bug 29230 Author: pbrook Date: Wed Sep 27 17:10:22 2006 New Revision: 117254 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117254 Log: 2006-09-27 Paul Brook <paul@codesourcery.com> PR target/29230 Backport from mainline. * config/arm/arm.md (arith_adjacentmem): Handle large offsets. Modified: branches/gcc-4_1-branch/gcc/ChangeLog branches/gcc-4_1-branch/gcc/config/arm/arm.md
Fixed.