[Bug target/123102] [ARM] Different runtime with -O1 for csmith code
dcb314 at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Dec 15 11:12:09 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123102
--- Comment #3 from David Binderman <dcb314 at hotmail dot com> ---
I tried the same code out on x86_64 and it was fine:
csmith $ source ./checkAll.sh bug1159.c
Mon 15 Dec 10:11:24 GMT 2025
bug1159.c -O0
checksum = F94475D2
bug1159.c -g -O0
checksum = F94475D2
bug1159.c -g -O1
checksum = F94475D2
bug1159.c -g -O2
checksum = F94475D2
bug1159.c -g -O2 -march=native
checksum = F94475D2
bug1159.c -g -O3
checksum = F94475D2
bug1159.c -g -O3 -march=native
checksum = F94475D2
Mon 15 Dec 10:13:31 GMT 2025
csmith $
So some part of -O1 on ARM doesn't happen on x86_64 and
that seems to be causing the problem.
More information about the Gcc-bugs
mailing list