public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "steven at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/54814] [4.8 Regression] ICE: unable to find a register to spill in class 'R0_REG'
Date: Fri, 07 Dec 2012 22:41:00 -0000	[thread overview]
Message-ID: <bug-54814-4-fkoONPOSQD@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-54814-4@http.gcc.gnu.org/bugzilla/>


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.


  parent reply	other threads:[~2012-12-07 22:41 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-04 17:17 [Bug other/54814] New: " gjl at gcc dot gnu.org
2012-10-14 11:15 ` [Bug other/54814] " gjl at gcc dot gnu.org
2012-11-25 15:55 ` rguenth at gcc dot gnu.org
2012-12-07 11:46 ` rguenth at gcc dot gnu.org
2012-12-07 13:35 ` gjl at gcc dot gnu.org
2012-12-07 17:59 ` gjl at gcc dot gnu.org
2012-12-07 22:03 ` steven at gcc dot gnu.org
2012-12-07 22:41 ` steven at gcc dot gnu.org [this message]
2012-12-07 22:51 ` steven at gcc dot gnu.org
2012-12-08 10:28 ` gjl at gcc dot gnu.org
2012-12-08 13:17 ` steven at gcc dot gnu.org
2012-12-08 14:09 ` bernds at gcc dot gnu.org
2012-12-10 14:33 ` gjl at gcc dot gnu.org
2012-12-14 18:56 ` gjl at gcc dot gnu.org
2012-12-18  4:50 ` bernds at gcc dot gnu.org
2012-12-18 22:34 ` gjl at gcc dot gnu.org
2013-01-25 20:56 ` gjl at gcc dot gnu.org
2013-01-28 20:04 ` gjl at gcc dot gnu.org
2013-01-28 20:06 ` gjl at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-54814-4-fkoONPOSQD@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).