This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug other/54814] [4.8 Regression] ICE: unable to find a register to spill in class 'R0_REG'


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54814

Steven Bosscher <steven at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |steven at gcc dot gnu.org

--- Comment #5 from Steven Bosscher <steven at gcc dot gnu.org> 2012-12-07 22:41:02 UTC ---
For 20010426-1.c at -O1:
(gdb) p debug_rtx(insn)
(insn 168 167 169 10 (set (reg:QI 3 r3 [orig:118 a_I_m_lsm.5+1 ] [118])
        (subreg:QI (reg/f:HI 105 [ a_I_m_lsm.5 ]) 1)) 20010426-1.c:12 70
{movqi_insn}
     (nil))
$1 = void
(gdb) p debug_reload_to_stream(stderr)
Reload 0: reload_in (HI) = (symbol_ref/f:HI ("*.LC0") [flags 0x2] <var_decl
0x7ffff63f0720 *.LC0>)
        R0_REG, RELOAD_FOR_INPUT (opnum = 1)
        reload_in_reg: (symbol_ref/f:HI ("*.LC0") [flags 0x2] <var_decl
0x7ffff63f0720 *.LC0>)
Reload 1: reload_in (QI) = (subreg:QI (symbol_ref/f:HI ("*.LC0") [flags 0x2]
<var_decl 0x7ffff63f0720 *.LC0>) 1)
        GENERAL_REGS, RELOAD_FOR_INPUT (opnum = 1), can't combine
        reload_in_reg: (subreg:QI (reg/f:HI 105 [ a_I_m_lsm.5 ]) 1)
        reload_reg_rtx: (reg:QI 3 r3 [orig:118 a_I_m_lsm.5+1 ] [118])
$2 = void


For 930120-1.c at -O2:
Breakpoint 1, spill_failure (insn=0x7ffff6444990, rclass=R0_REG) at
../../trunk/gcc/reload1.c:2108
2108      if (asm_noperands (PATTERN (insn)) >= 0)
(gdb) p debug_rtx(insn)
(insn 173 170 176 28 (set (mem:QI (post_dec:HI (reg/f:HI 32 __SP_L__)) [0 S1
A8])
        (subreg:QI (reg/f:HI 487) 1)) 930120-1.c:67 1 {pushqi1}
     (expr_list:REG_ARGS_SIZE (const_int 3 [0x3])
        (nil)))
$1 = void
(gdb) p debug_reload_to_stream(stderr)
Reload 0: reload_in (HI) = (symbol_ref/f:HI ("*.LC2") [flags 0x2] <var_decl
0x7ffff6420850 *.LC2>)
        R0_REG, RELOAD_FOR_INPUT (opnum = 0)
        reload_in_reg: (symbol_ref/f:HI ("*.LC2") [flags 0x2] <var_decl
0x7ffff6420850 *.LC2>)
Reload 1: reload_in (QI) = (subreg:QI (symbol_ref/f:HI ("*.LC2") [flags 0x2]
<var_decl 0x7ffff6420850 *.LC2>) 1)
        GENERAL_REGS, RELOAD_FOR_INPUT (opnum = 0), can't combine
        reload_in_reg: (subreg:QI (reg/f:HI 487) 1)
$2 = void
(gdb) 

In both cases reload is trying to reload a symbol_ref to an R0_REG class.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]