[Bug c/106463] Incorrect value for loop terminating test. for loop runs when it should not.

gordon.lack at dsl dot pipex.com gcc-bugzilla@gcc.gnu.org
Thu Jul 28 11:36:19 GMT 2022


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

--- Comment #2 from Gordon Lack <gordon.lack at dsl dot pipex.com> ---
Compilation options:
gcc -O3 test.c -o test
(or -O1)

For gcc 4.4.7 it also needs -std=c99.

And I'll also note that the gcc10.2.1 was on an armv7l system, while the 7.4.0
was on an arm64 one.
It's also the same on 7.20 on a mips system.


More information about the Gcc-bugs mailing list