seen with 4.4 with -O1 -march=armv7-a -mthumb, works with 4.3 and 4.5, work around in 4.4 with -O0, -O2, or -O1 -marm $ gcc-4.4 -fno-strict-aliasing -O1 -g -c afs_vnop_link.i /home/packages/tmp/openafs-1.4.12.1+dfsg/src/afs/VNOPS/afs_vnop_link.c: In function 'afs_link': /home/packages/tmp/openafs-1.4.12.1+dfsg/src/afs/VNOPS/afs_vnop_link.c:164: internal compiler error: output_operand: invalid expression as operand Please submit a full bug report, with preprocessed source if appropriate.
Created attachment 20975 [details] preprocessed source
Created attachment 20982 [details] backport Nathan Sidwell's movw fix to 4.4 This ICE was fixed for 4.5 by r148788, Nathan Sidwell's "[ARM] movw fix", see http://gcc.gnu.org/ml/gcc-patches/2009-06/msg01358.html. The attached patch backports that fix to current 4.4, which fixes the ICE. I've had this in my 4.4 tree since July 2009, so I'm confident it's solid. Matthias, does this patch work for you?
yes, the ICE is fixed with this patch
Can this patch be submitted to gcc-patches@gcc.gnu.org after due testing ?
(In reply to comment #4) > Can this patch be submitted to gcc-patches@gcc.gnu.org after due testing ? Yes. Although I've tested this many times it's always been together with many other patches. I'm now running a 4.4 bootstrap+regtest with only this one applied. Will submit the patch once that succeeds, which should be less than 24 hours from now.
Patch posted after successful (re)testing: http://gcc.gnu.org/ml/gcc-patches/2010-07/msg00331.html
Fixed in 4.5+, 4.4 is no longer supported.