https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103725
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |7.1.0, 7.5.0 Known to fail| |10.1.0, 8.1.0 Last reconfirmed| |2021-12-18 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Summary|warning: assuming signed |[9/10/11/12 Regression] |overflow does not occur |warning: assuming signed |when simplifying |overflow does not occur |conditional to constant |when simplifying | |conditional to constant --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- int t = i.c >= b ? i.c - b : i.c; int t1 = i.c + 1 >= b ? i.c + 1 - b : i.c + 1; I think the warning is happening when jump threading the above in DOM. I don't think the warning makes sense really because we are inside a loop after all.