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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|wrong code at -Os and above |[10/11/12/13/14 Regression]
                   |on x86_64-linux-gnu         |wrong code at -Os and above
                   |                            |on x86_64-linux-gnu
      Known to fail|                            |10.4.0, 11.1.0
   Target Milestone|---                         |10.5
      Known to work|                            |10.3.0

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The C++ testcase that is:
```
int a, b;
void c() {}
[[gnu::noipa]]
void h() {__builtin_abort();}
int d() {
  unsigned f[1];
  int i;
  if (a)
    goto h;
  f[0] = -1;
  while (1) {
    c();
    for (; a < 1; a++) {
      if (0) {
      j:
        continue;
      }
      i = f[0];
      if (a)
        break;
      b = i >= (b == 0);
    }
    if (!b) {
      if (0) {
      h:
        goto j;
      }
      return 0;
    }
    h();
  }
}
int main() {
  d();
  return 0;
}
```

Reply via email to