[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#551556: gcc-4.3: error: unable to find a register to spill in class 'R0_REGS'

Package: gcc-4.3
Version: 4.3.4-5
Severity: normal
Tags: patch
User: debian-sh4@superh.org
Usertags: sh4
X-Debbugs-CC: debian-superh@lists.debian.org


I am now trying to run Debian on Renesas SH(sh4) CPU.

Some package has error of "unable to find a register to spill in class

package: mah-jong
gcc  -g -O2 -Wall  `pkg-config --cflags gtk+-2.0`  -DTILESET='NULL'
-DTILESETPATH='"/usr/share/mah-jong"'  -DGTK2=1   -c -o scoring.o
scoring.c: In function 'score_of_hand':
scoring.c:770: error: unable to find a register to spill in class 'R0_REGS'
scoring.c:770: error: this is the insn:
(insn:HI 8162 10158 8272 561 scoring.c:766 (set (mem/s:QI (plus:SI
(reg/f:SI 4384)
               (reg:SI 3 r3 [4355])) [0 buf S1 A8])
       (reg:QI 2 r2 [4356])) 182 {movqi_i} (expr_list:REG_DEAD (reg/f:SI 4384)
       (expr_list:REG_DEAD (reg:QI 2 r2 [4356])
           (expr_list:REG_DEAD (reg:SI 3 r3 [4355])
               (expr_list:REG_EQUAL (const_int 0 [0x0])
scoring.c:770: confused by earlier errors, bailing out
Preprocessed source stored into /tmp/ccQXsbwo.out file

This can revise  by following patch

By the way, this problem is in gcc-4.4 too. And this patch is not
taken in in gcc-4.4 either.
Would you apply to both gcc-4.3 and gcc-4.4?

Best regards,

Reply to: