Subject: SH3 cross-build problem
To: None <>
From: Bill Squier <>
List: current-users
Date: 04/06/2002 15:21:42
From sources updated today a cross build from i386 -> sh3 dies at:

dependall ===> usr.bin/sed
CC=/usr/obj/sh3/tools/bin/shle--netbsdelf-gcc /usr/obj/sh3/tools/bin/nbmkdep -a  -nostdinc -isystem /usr/obj/sh3/destdir/usr/include  /ssrc/src/usr.bin/sed/compile.c /ssrc/src/usr.bin/sed/main.c /ssrc/src/usr.bin/sed/misc.c /ssrc/src/usr.bin/sed/process.c
/usr/obj/sh3/tools/bin/shle--netbsdelf-gcc -O  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized  -Werror  -nostdinc -isystem /usr/obj/sh3/destdir/usr/include  -c /ssrc/src/usr.bin/sed/compile.c
/ssrc/src/usr.bin/sed/compile.c: In function `compile_flags':
/ssrc/src/usr.bin/sed/compile.c:585: fixed or forbidden register 0 (r0) was spilled for class R0_REGS.
/ssrc/src/usr.bin/sed/compile.c:585: This may be due to a compiler bug or to impossible asm
/ssrc/src/usr.bin/sed/compile.c:585: statements or clauses.
/ssrc/src/usr.bin/sed/compile.c:585: This is the instruction:
(insn 130 660 132 (set (reg/i:SI 0 r0)
        (mem/f:SI (plus:SI (reg:SI 14 r14)
                (reg:SI 8 r8)) 0)) 122 {movsi_i} (nil)
    (expr_list:REG_DEAD (reg:SI 8 r8)
*** Error code 1

nbmake: stopped in /ssrc/src/usr.bin/sed
*** Error code 1

Bill Squier (                

        I know I don't deserve another chance, but this _is_ America,
        and as an American, aren't I entitled to one?  --Sideshow Bob.