public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "bergner at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/29558] [4.2/4.3 Regression] ICE in set_variable_part, at var-tracking.c:2140
Date: Fri, 19 Jan 2007 22:30:00 -0000	[thread overview]
Message-ID: <20070119223039.30074.qmail@sourceware.org> (raw)
In-Reply-To: <bug-29558-10053@http.gcc.gnu.org/bugzilla/>



------- Comment #5 from bergner at gcc dot gnu dot org  2007-01-19 22:30 -------
The src we seem to be having problems with is:

    temp[0] |= bit;

After local-alloc, we have the following RTL:

(insn 143 28 29 6 pr29558.c:7 (set (reg:QI 142)
        (const_int -128 [0xffffffffffffff80])) 327 {*movqi_internal} (nil)
    (expr_list:REG_EQUIV (const_int -128 [0xffffffffffffff80])
        (nil)))

(insn 29 143 30 6 pr29558.c:7 (set (reg:SI 144)
        (ior:SI (subreg:SI (reg:QI 143 [ temp ]) 0)
            (subreg:SI (reg:QI 142) 0))) 137 {*boolsi3_internal1}
(insn_list:REG_DEP_TRUE 27 (insn_list:REG_DEP_TRUE 28 (nil)))
    (expr_list:REG_DEAD (reg:QI 143 [ temp ])
        (expr_list:REG_DEAD (reg:QI 142)
            (nil))))

(insn 30 29 138 6 pr29558.c:7 (set (mem/s/j:QI (plus:DI (reg/f:DI 113 sfp)
                (const_int 48 [0x30])) [0 temp+0 S1 A128])
        (subreg:QI (reg:SI 144) 3)) 327 {*movqi_internal}
(insn_list:REG_DEP_TRUE 29 (nil))
    (expr_list:REG_DEAD (reg:SI 144)
        (nil)))

Which looks ok, but then after global-alloc/reload, we end up with:

(insn 143 28 29 6 pr29558.c:7 (set (reg:QI 9 9 [142])
        (const_int -128 [0xffffffffffffff80])) 327 {*movqi_internal} (nil)
    (expr_list:REG_EQUIV (const_int -128 [0xffffffffffffff80])
        (nil)))

(insn 29 143 30 6 pr29558.c:7 (set (reg:SI 0 0 [144])
        (ior:SI (reg:SI 0 0 [orig:143 temp+-3 ] [143])
            (reg:SI 9 9 [orig:142+-3 ] [142]))) 137 {*boolsi3_internal1}
(insn_list:REG_DEP_TRUE 27 (insn_list:REG_DEP_TRUE 28 
(nil)))
    (nil))

(insn 30 29 138 6 pr29558.c:7 (set (mem/s/j:QI (plus:DI (reg/f:DI 1 1)
                (const_int -16 [0xfffffffffffffff0])) [0 temp+0 S1 A128])
        (reg:QI 0 0 [orig:144+3 ] [144])) 327 {*movqi_internal}
(insn_list:REG_DEP_TRUE 29 (nil))
    (nil))

I'm not sure why yet, but it seems the -3 offset in reg:SI 0 0 [orig:143
temp+-3 ] [143]) is causing problems in the var tracking code, such that
find_variable_location_part() always returns -1 (ie, failure) which puts us
into the code we ICE in.


-- 


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


  parent reply	other threads:[~2007-01-19 22:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-23  9:07 [Bug target/29558] New: " rguenth at gcc dot gnu dot org
2006-10-23 10:14 ` [Bug target/29558] " rguenth at gcc dot gnu dot org
2006-10-23 11:29 ` rguenth at gcc dot gnu dot org
2006-10-23 15:48 ` [Bug middle-end/29558] [4.2 Regression] " pinskia at gcc dot gnu dot org
2006-10-23 16:06 ` [Bug debug/29558] " pinskia at gcc dot gnu dot org
2006-11-07 19:18 ` [Bug debug/29558] [4.2/4.3 " janis at gcc dot gnu dot org
2007-01-19 22:30 ` bergner at gcc dot gnu dot org [this message]
2007-01-19 22:32 ` bergner at gcc dot gnu dot org
2007-02-15 17:51 ` rth at gcc dot gnu dot org
2007-02-19 16:11 ` rth at gcc dot gnu dot org
2007-02-19 16:22 ` rth at gcc dot gnu dot org
2007-02-19 20:35 ` mmitchel at gcc dot gnu dot org
2007-02-19 23:45 ` rth at gcc dot gnu dot 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=20070119223039.30074.qmail@sourceware.org \
    --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).