public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
From: "danglin at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: java-prs@gcc.gnu.org
Subject: [Bug middle-end/34150] ICE: output_operand: invalid expression as operand on hppa
Date: Mon, 21 Jan 2008 17:47:00 -0000	[thread overview]
Message-ID: <20080121174715.11992.qmail@sourceware.org> (raw)
In-Reply-To: <bug-34150-12387@http.gcc.gnu.org/bugzilla/>



------- Comment #10 from danglin at gcc dot gnu dot org  2008-01-21 17:47 -------
The patch appears to fix the problem, but I think it isn't a good fix.
The problem is the backend doesn't know when the LABEL_NUSES counter
needs to be incorrected and when it doesn't.

I think this is reload bug.  We are losing LABEL_NUSES counts when a
reload occurs for insns like the following:

(insn 1838 1854 1615 282 (set (reg/f:SI 1154)
        (label_ref:SI 1897)) 46 {*pa.md:2898} (nil)
    (expr_list:REG_EQUIV (label_ref:SI 1897)
        (insn_list:REG_LABEL 1897 (nil))))

Reloads for insn # 2938
Reload 0: R1_REGS, RELOAD_FOR_INPUT_ADDRESS (opnum = 1), can't combine,
secondary_reload_p
        reload_reg_rtx: (reg/f:SI 1 %r1)
Reload 1: reload_in (SI) = (label_ref:SI 1897)
        GENERAL_REGS, RELOAD_FOR_INPUT (opnum = 1), can't combine
        reload_in_reg: (reg/f:SI 1154)
        reload_reg_rtx: (reg/f:SI 3 %r3 [orig:313 #ref#21#111 ] [313])
        secondary_in_reload = 0
        secondary_in_icode = reload_insi_r

Shouldn't reload update the label uses count when it completes a reload
sequence?


-- 


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


  parent reply	other threads:[~2008-01-21 17:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-19 11:29 [Bug java/34150] New: " tbm at cyrius dot com
2007-11-19 11:29 ` [Bug java/34150] " tbm at cyrius dot com
2008-01-06 21:35 ` [Bug target/34150] " danglin at gcc dot gnu dot org
2008-01-06 21:59 ` dave at hiauly1 dot hia dot nrc dot ca
2008-01-06 23:27 ` [Bug middle-end/34150] " danglin at gcc dot gnu dot org
2008-01-21  0:27 ` dave at hiauly1 dot hia dot nrc dot ca
2008-01-21 17:47 ` danglin at gcc dot gnu dot org [this message]
2008-02-09 21:02 ` danglin 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=20080121174715.11992.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=java-prs@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).