https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61572

            Bug ID: 61572
           Summary: [4.10 Regression] ICE: in assign_by_spills, at
                    lra-assigns.c:1335
           Product: gcc
           Version: 4.10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org

Happens while building the Linux kernel:

markus@x4 linux-3.15 % cat test.i
struct autofs_sb_info
{
  int exp_timeout;
};
void *f;
int g;
int fn1 (struct autofs_sb_info *p1)
{
  int a, b;
  a = (
      {
        register __typeof__(0) c asm("rdx");
        b = c;
        int d;
        __typeof__(0) e;
        e = p1->exp_timeout / 1000;
        switch (0)
        default:
        asm("" : "=a"(d) : "0"(e), ""(0));
        d;
      });
  if (a)
    return 1;
  if (b)
    p1->exp_timeout = 0;
  return 0;
}

int fn2 ()
{
  struct autofs_sb_info *h = f;
  switch (g)
    {
    case 0 ?:
      0 : return fn1 (h);
    default:
      return 0;
    }
}

markus@x4 linux-3.15 % gcc -c -O2 root.i
fs/autofs4/root.c: In function ‘autofs4_root_ioctl_unlocked.isra.14’:
fs/autofs4/root.c:874:1: internal compiler error: in assign_by_spills, at
lra-assigns.c:1335
 }
 ^
0x8aa979 assign_by_spills
        ../../gcc/gcc/lra-assigns.c:1335
0x8ab2f3 lra_assign()
        ../../gcc/gcc/lra-assigns.c:1500
0x8a707b lra(_IO_FILE*)
        ../../gcc/gcc/lra.c:2230
0x8670c6 do_reload
        ../../gcc/gcc/ira.c:5325
0x8670c6 execute
        ../../gcc/gcc/ira.c:5486
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.

Reply via email to