public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "wilson at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/31684] [4.3 Regression] ICE in get_attr_first_insn, at config/ia64/itanium2.md:1839 at -O2
Date: Tue, 01 May 2007 00:53:00 -0000	[thread overview]
Message-ID: <20070501005328.20000.qmail@sourceware.org> (raw)
In-Reply-To: <bug-31684-12387@http.gcc.gnu.org/bugzilla/>



------- Comment #1 from wilson at gcc dot gnu dot org  2007-05-01 01:53 -------
It dies in recog because of an invalid extended asm insn rtl.  In an asm with 2
or more outputs, we end up with 2 or more copies of the input vector.  These
vectors must be shared.  They are not in this case.

The problem occurs in haifa-sched, in the speculative instruction support.  It
uses copy_rtx to make a copy of an insn when speculatively scheduling it. 
However, copy_rtx does not preserve the special sharing semantics of asm
operands, so the result is a corrupted insn.  There exists a special routine
copy_insn to solve this problem.  So the solution here is to just replace the
copy_rtx call with a copy_insn call.  This works on mainline for this testcase
but is not otherwise tested.


-- 

wilson at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wilson at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-05-01 01:53:27
               date|                            |


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


  parent reply	other threads:[~2007-05-01  0:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-24 15:12 [Bug target/31684] New: " tbm at cyrius dot com
2007-04-30 10:25 ` [Bug target/31684] " pinskia at gcc dot gnu dot org
2007-05-01  0:53 ` wilson at gcc dot gnu dot org [this message]
2007-05-01  0:56 ` wilson at gcc dot gnu dot org
2007-05-09 22:12 ` sje at cup dot hp dot com
2007-06-19  6:39 ` tbm at cyrius dot com
2007-06-29 18:14 ` mmitchel at gcc dot gnu dot org
2007-07-02 17:15 ` sje at gcc dot gnu dot org
2007-07-02 17:16 ` sje at cup dot hp dot com
2008-01-09 19:45 ` wilson 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=20070501005328.20000.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).