qemu-cvs-2006-12-9 compile error
gcc32 -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -I. -I.. -I/usr/src/Haansoft/BUILD/qemu/target-mips -I/usr/src/Haansoft/BUILD/qemu -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/src/Haansoft/BUILD/qemu/fpu -I/usr/src/Haansoft/BUILD/qemu/slirp -c -o op_helper.o /usr/src/Haansoft/BUILD/qemu/target-mips/op_helper.c /usr/src/Haansoft/BUILD/qemu/target-mips/op_helper.c: In function `invalidate_tlb':/usr/src/Haansoft/BUILD/qemu/target-mips/op_helper.c:305: unable to find a register to spill in class `SIREG'/usr/src/Haansoft/BUILD/qemu/target-mips/op_helper.c:305: this is the insn:
(insn 83 80 84 (parallel[
(set (reg:SI 2 ecx [85])
(const_int 0 [0x0]))
(set (reg/f:SI 0 eax [82])
(plus:SI (ashift:SI (reg:SI 2 ecx [84])
(const_int 2 [0x2]))
(reg/f:SI 0 eax [82])))
(set (reg/f:SI 83)
(plus:SI (ashift:SI (reg:SI 2 ecx [84])
(const_int 2 [0x2]))
(reg/v/f:SI 60)))
(set (mem/s/j:BLK (reg/f:SI 0 eax [82]) [0 <variable>.tlb S20 A32])
(mem/s:BLK (reg/v/f:SI 60) [0 S24 A32]))
(use (reg:SI 2 ecx [84]))
(use (reg:SI 19 dirflag))
] ) 603 {*rep_movsi} (insn_list 75 (insn_list 78 (insn_list 80 (nil))))
(expr_list:REG_DEAD (reg:SI 19 dirflag)
(expr_list:REG_DEAD (reg/v/f:SI 60)
(expr_list:REG_DEAD (reg:SI 2 ecx [84])
(expr_list:REG_UNUSED (reg:SI 2 ecx [85])
(expr_list:REG_UNUSED (reg/f:SI 0 eax [82])
(expr_list:REG_UNUSED (reg/f:SI 83)
(nil))))))))/usr/src/Haansoft/BUILD/qemu/target-mips/op_helper.c:305: confused by earlier errors, bailing out
I [root@localhost qemu]# gcc32 -v
Reading specs from /usr/lib/gcc-lib/i386-Haansoft-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --enable-languages=c,c++,f77 --disable-libgcj --host=i386-Haansoft-linux Thread model: posix
gcc version 3.2.3 (Haansoft Linux 3.2.3)
-------------------------------------------------
Your Life on the Net
DreamWiz Free Mail @ http://www.dreamwiz.com/
Quoted 27 lines · Hwang YunSong(??????)
gcc32 -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -I. -I.. -I/usr/src/Haansoft/BUILD/qemu/target-mips -I/usr/src/Haansoft/BUILD/qemu -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/src/Haansoft/BUILD/qemu/fpu -I/usr/src/Haansoft/BUILD/qemu/slirp -c -o op_helper.o
/usr/src/Haansoft/BUILD/qemu/target-mips/op_helper.c/usr/src/Haansoft/BUILD/qemu/target-mips/op_helper.c: In function `invalidate_tlb':/usr/src/Haansoft/BUILD/qemu/target-mips/op_helper.c:305: unable to find a register to spill in class `SIREG'/usr/src/Haansoft/BUILD/qemu/target-mips/op_helper.c:305: this is the insn:
(insn 83 80 84 (parallel[(set (reg:SI 2 ecx [85]) (const_int 0 [0x0])) (set (reg/f:SI 0 eax [82]) (plus:SI (ashift:SI (reg:SI 2 ecx [84]) (const_int 2 [0x2])) (reg/f:SI 0 eax [82]))) (set (reg/f:SI 83) (plus:SI (ashift:SI (reg:SI 2 ecx [84]) (const_int 2 [0x2])) (reg/v/f:SI 60))) (set (mem/s/j:BLK (reg/f:SI 0 eax [82]) [0 <variable>.tlb S20 A32]) (mem/s:BLK (reg/v/f:SI 60) [0 S24 A32])) (use (reg:SI 2 ecx [84])) (use (reg:SI 19 dirflag)) ] ) 603 {*rep_movsi} (insn_list 75 (insn_list 78 (insn_list 80 (nil)))) (expr_list:REG_DEAD (reg:SI 19 dirflag) (expr_list:REG_DEAD (reg/v/f:SI 60) (expr_list:REG_DEAD (reg:SI 2 ecx [84]) (expr_list:REG_UNUSED (reg:SI 2 ecx [85]) (expr_list:REG_UNUSED (reg/f:SI 0 eax [82]) (expr_list:REG_UNUSED (reg/f:SI 83) (nil))))))))
Quoted 8 lines
/usr/src/Haansoft/BUILD/qemu/target-mips/op_helper.c:305: confused by earlier errors, bailing outI [root@localhost qemu]# gcc32 -v
Reading specs from/usr/lib/gcc-lib/i386-Haansoft-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --enable-languages=c,c++,f77 --disable-libgcj --host=i386-Haansoft-linux Thread model: posix
gcc version 3.2.3 (Haansoft Linux 3.2.3)
AFAICS there's nothing special in invalidate_tlb, and it works fo me with gcc 3.4.6. I figure your gcc version has a bug which was fixed in newer versions.
Thiemo