The attached code ICE's with '-m4 -O2 -fPIC'. $ sh-linux-gcc -O2 -fPIC -m4 -c XExtInt.i XExtInt.c: In function `XInputWireToEvent': XExtInt.c:663: error: unrecognizable insn: (insn 2736 2735 2737 (unspec_volatile [ (label_ref 775) (const_int 0 [0x0]) ] 4) -1 (nil) (nil)) XExtInt.c:663: internal compiler error: in insn_default_length, at insn- attrtab.c:709 It correctly compiles with '-m4 -O -fPIC'.
Created attachment 6265 [details] testcase
I've proposed a patch for this to gcc-patches: http://gcc.gnu.org/ml/gcc-patches/2004-06/msg00389.html
Joern has applied a patch which solves this issue to 3.4-branch with Mark's approval: http://gcc.gnu.org/ml/gcc-patches/2004-06/msg00747.html
Fixed for 3.4.1.