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

Aldy Hernandez <aldyh at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |aldyh at gcc dot gnu.org

--- Comment #2 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Here is another testcase pulled from pr95653 which I'm marking as a duplicate
of this one.

This one needs -O2 -fno-tree-scev-cprop to reproduce.

char b (void);
char *d;
int e;
int f;
void
g (char *h)
{
  while (d)
    {
      long i = b ();
      if (h + i > d)
        break;
      if (f > 0 || e)
        do
          *h++ = *h;
        while (--i);
    }
}

Reply via email to