public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/61094] [4.9/4.10 Regression] -O3 insn Internal compiler error in copyprop_hardreg_forward_1, at regcprop.c:775
Date: Fri, 09 May 2014 19:05:00 -0000	[thread overview]
Message-ID: <bug-61094-4-49YFALXl6o@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-61094-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #3 from Marc Glisse <glisse at gcc dot gnu.org> ---
template <typename> struct A {
  unsigned _width, _height, _depth, _spectrum;
  template <typename t> A(t p1) {
    int a = p1.size();
    if (a) {
      _width = p1._width;
      _depth = _height = _spectrum = p1._spectrum;
    }
  }
  long size() { return (long)_width * _height * _depth * _spectrum; }
};

int d;
void fn1(void *);
A<int> *fn2();
void fn3() {
  int b;
  for (;;) {
    A<char> c(*fn2());
    fn1(&c);
    if (d || !b)
      throw;
  }
}




a.ii: In function 'void fn3()':
a.ii:24:1: error: insn does not satisfy its constraints:
 }
 ^
(insn 67 20 62 3 (set (reg:DI 21 xmm0)
        (reg:DI 2 cx)) 89 {*movdi_internal}
     (expr_list:REG_DEAD (reg:DI 2 cx)
        (nil)))
a.ii:24:1: internal compiler error: in copyprop_hardreg_forward_1, at
regcprop.c:775


  parent reply	other threads:[~2014-05-09 19:05 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-07 10:42 [Bug c++/61094] New: " prsodk at gmail dot com
2014-05-07 12:58 ` [Bug c++/61094] " rguenth at gcc dot gnu.org
2014-05-07 13:01 ` [Bug rtl-optimization/61094] [4.9/4.10 Regression] " rguenth at gcc dot gnu.org
2014-05-09 13:00 ` rguenth at gcc dot gnu.org
2014-05-09 19:05 ` glisse at gcc dot gnu.org [this message]
2014-05-10  0:19 ` hjl.tools at gmail dot com
2014-05-11 14:12 ` steven at gcc dot gnu.org
2014-05-12  8:33 ` jakub at gcc dot gnu.org
2014-05-12 12:21 ` law at redhat dot com
2014-05-14 13:53 ` jakub at gcc dot gnu.org
2014-05-14 14:07 ` law at redhat dot com
2014-05-15 19:47 ` law at redhat dot com
2014-05-16  8:03 ` jakub at gcc dot gnu.org
2014-05-16 15:59 ` law at redhat dot com
2014-06-02 19:12 ` law at gcc dot gnu.org
2014-06-13 16:41 ` [Bug rtl-optimization/61094] [4.9 " law at gcc dot gnu.org
2014-06-13 16:50 ` law at gcc dot gnu.org
2014-06-13 16:50 ` law at gcc dot gnu.org
2014-06-13 16:51 ` law at redhat dot com
2014-06-18 20:02 ` uros 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-61094-4-49YFALXl6o@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).