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

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
The for (; j; j = j + 9) loop invokes undefined behavior:

t.c: In function 'g':
t.c:11:17: warning: iteration 396462472 invokes undefined behavior
[-Waggressive-loop-optimizations]
   11 |     for (; j; j = j + 9) {
      |               ~~^~~~~~~
t.c:11:12: note: within this loop
   11 |     for (; j; j = j + 9) {
      |            ^

Reply via email to