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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2023-09-19
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
Reduced further and fails at -O1 and above now:
```
long f;
char *g;
[[gnu::noinline]]
char o() {
  char l;
  while (f)
    ;
  l = *g;
  return l;
}
[[gnu::noinline]]
unsigned short gg(unsigned short a, unsigned short b)
{
  short d;
  if (a > b)
  {
    d= b;
  }
  else
  {
    o();
    d = a;
  }
  return d;
}

int main(void)
{
  gg(3, 2);
}


```

Reply via email to