[Bug rtl-optimization/90275] [8/9/10 Regression] ICE: in insert_regs, at cse.c:1128 with -O2 -fno-dce -fno-tree-dce

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 12 16:30:00 GMT 2019


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-12-12
                 CC|                            |jakub at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Hopefully less undefined testcase that still ICEs at -O3:
int a, b, c;
long long d;
typedef __UINTPTR_TYPE__ uintptr_t;

void
foo (void)
{
  char f = c;
  for (;;)
    {
      c = a = c ? 5 : 0;
      if (f)
        {
          b = a;
          f = d;
        }
      if ((d || b) >= ((uintptr_t) a > (uintptr_t) &c))
        (b ? 0 : f) || (d -= f);
    }
}


More information about the Gcc-bugs mailing list