[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

Hi,

I am now trying to run Debian on Renesas SH(sh4) CPU.
http://buildd.debian-ports.org/status/architecture.php?suite=unstable&a=sh4&priority=

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

-----
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
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])
                   (nil))))))
scoring.c:770: confused by earlier errors, bailing out
Preprocessed source stored into /tmp/ccQXsbwo.out file
-----

This can revise  by following patch
  http://gcc.gnu.org/ml/gcc-patches/2009-05/msg00681.html

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,
  Nobuhiro



Reply to: