[Bug tree-optimization/124528] New signed overflow introduced by sccp

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Mar 15 22:15:20 GMT 2026


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2026-03-15
     Ever confirmed|0                           |1

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> Can you reproduce it without a recusive function?

Yes:
```
int baz (int n, int m)
{
  int r = 100;
  while (n != 0) {
    n = n - 1;
    r = r - m;
  }
  return r;
}
```


More information about the Gcc-bugs mailing list