public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/55686] [4.8 Regression] ICE in assign_by_spills, at lra-assigns.c:1244
Date: Fri, 14 Dec 2012 11:26:00 -0000	[thread overview]
Message-ID: <bug-55686-4-3cuaDMabTu@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-55686-4@http.gcc.gnu.org/bugzilla/>


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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-12-14 11:26:15 UTC ---
Even more reduced:

struct S { unsigned long *s, *t; };
unsigned long *q;

void
foo (struct S *x, unsigned long y, unsigned long z, int w)
{
  unsigned long *d = x->t, j;
  if (w)
    for (j = 0; j < z; j++)
      *d++ = q[-j];
  register unsigned long *g __asm__ ("edi");
  register struct S *h __asm__ ("esi");
  h->s = g;
  h->t--;
  foo (h, h->t[-1], g[1], (int) g[2]);
  goto *(void *) *g;
}

ICEd with reload too, starting with
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185465
The reload ICE was
pr55686.c: In function ‘foo’:
pr55686.c:17:1: error: unable to find a register to spill in class ‘DIREG’
pr55686.c:17:1: error: this is the insn:
(insn 29 28 30 5 (parallel [
            (set (mem:SI (reg/v/f:SI 1 dx [orig:66 d ] [66]) [4 MEM[base: d_9,
offset: 4294967292B]+0 S4 A32])
                (reg:SI 0 ax [orig:67 D.1379 ] [67]))
            (set (reg/v/f:SI 1 dx [orig:66 d ] [66])
                (plus:SI (reg/v/f:SI 1 dx [orig:66 d ] [66])
                    (const_int 4 [0x4])))
        ]) pr55686.c:10 883 {*strsetsi_1}
     (expr_list:REG_DEAD (reg:SI 0 ax [orig:67 D.1379 ] [67])
        (nil)))
pr55686.c:17:1: internal compiler error: in spill_failure, at reload1.c:2120
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


  parent reply	other threads:[~2012-12-14 11:26 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-14  9:25 [Bug rtl-optimization/55686] New: " rguenth at gcc dot gnu.org
2012-12-14  9:25 ` [Bug rtl-optimization/55686] " rguenth at gcc dot gnu.org
2012-12-14 10:03 ` rguenth at gcc dot gnu.org
2012-12-14 11:16 ` mpolacek at gcc dot gnu.org
2012-12-14 11:26 ` jakub at gcc dot gnu.org [this message]
2012-12-14 11:27 ` jakub at gcc dot gnu.org
2012-12-14 15:13 ` vmakarov at gcc dot gnu.org
2012-12-14 16:34 ` jakub at gcc dot gnu.org
2012-12-17 15:41 ` steven at gcc dot gnu.org
2012-12-19 15:29 ` rguenth at gcc dot gnu.org
2012-12-19 15:32 ` jakub at gcc dot gnu.org
2012-12-21 13:48 ` hubicka at ucw dot cz
2013-01-07 15:31 ` rguenth at gcc dot gnu.org
2013-01-22  9:20 ` jakub at gcc dot gnu.org
2013-01-22 16:42 ` jakub at gcc dot gnu.org
2013-01-22 17:05 ` jakub 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-55686-4-3cuaDMabTu@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).