public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/55775] New: [4.8 Regression] ICE when building pari
@ 2012-12-21 15:23 jakub at gcc dot gnu.org
  2012-12-21 15:24 ` [Bug middle-end/55775] " jakub at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-12-21 15:23 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55775
           Summary: [4.8 Regression] ICE when building pari
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: ra
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jakub@gcc.gnu.org
                CC: vmakarov@gcc.gnu.org


int *ptr;
int *fn1 (int *);
int fn2 (int, int);
int fn3 (void);
int fn4 (int);

static int
foo (int x, int y, int z)
{
  int b;
  asm ("" : "=a" (b), "=&d" (x) : "0" (y), "1" (x), "mr" (z));
  return x;
}

static int
bar (int x, int y)
{
  int a;
  if (!y)
    {
      for (a = 0; a <= (x >> 1); )
;
      a = foo (y, fn2 (2, x), x);
      if (x)
a = x;
      return a;
    }
}

static int
baz (int x, int y)
{
  int *a = ptr;
  int t, xk1 = fn3 (), xk = x * xk1;
  for (t = 0; t < xk; t += xk1)
    {
      if (fn4 (a[2]))
return -y;
      a = fn1 (a);
    }
  return 0;
}

void
test (int x, long y, int z)
{
  int a = fn3 ();
  int b;
  int c = bar (x, z);
  for (b = 0; b <= y; b++)
    c = baz (x, c);
  fn2 (c, a);
}

ICEs on x86_64-linux with -O1 -w:
lra_ice.i: In function ‘test’:
lra_ice.i:53:1: internal compiler error: Maximum number of LRA constraint
passes is achieved (30)

 }
 ^
0x90089c lra_constraints(bool)
../../gcc/lra-constraints.c:3334
0x8f12e6 lra(_IO_FILE*)
../../gcc/lra.c:2280
0x8a6d43 do_reload
../../gcc/ira.c:4624
0x8a6f51 rest_of_handle_reload
../../gcc/ira.c:4737
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-01-14 19:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-21 15:23 [Bug middle-end/55775] New: [4.8 Regression] ICE when building pari jakub at gcc dot gnu.org
2012-12-21 15:24 ` [Bug middle-end/55775] " jakub at gcc dot gnu.org
2012-12-21 21:21 ` vmakarov at gcc dot gnu.org
2012-12-27  8:46 ` [Bug inline-asm/55775] " jakub at gcc dot gnu.org
2013-01-14 19:36 ` steven at gcc dot gnu.org

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).