gcc dies with an ice in gen_reg_rtx() while compiling net/sunrpc/svcauth_unix.c in the 2.6.x Linux kernel.
Created attachment 4420 [details] preprocessed test case To reproduce run: gcc -O2 -mcmodel=medlow -ffixed-g4 -fcall-used-g5 -fcall-used-g7 -S -o bug.s bug.i
Reproducible on sparc64-sun-solaris2.9 too.
I checked in a fix written by Richard Henderson to both the 3.3 branch and the mainline sources. 2003-07-18 Richard Henderson <rth@redhat.com> David S. Miller <davem@redhat.com> * optabs.c (prepare_operand): Fail gracefully instead of abort if the predicate doesn't satisfy. (gen_cond_trap): Allow prepare_operand to fail. Pass correct opnum argument to prepare_operand.
Please put PR numbers in ChangeLog entries, so that Bugzilla can automatically pick up the patches. Thanks.
Fixed, sorry about that.