https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113396
Bug ID: 113396 Summary: csmith: differences from -O2 to -O3 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Created attachment 57082 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57082&action=edit C source code The attached Csmith generated code does this: foundBugs $ ~/gcc/results/bin/gcc -w bug998.c foundBugs $ valgrind -q ./a.out checksum = 77A231E6 foundBugs $ ~/gcc/results/bin/gcc -w -O2 bug998.c foundBugs $ valgrind -q ./a.out checksum = 77A231E6 foundBugs $ ~/gcc/results/bin/gcc -w -O3 bug998.c foundBugs $ valgrind -q ./a.out checksum = 130B5204 foundBugs $ ~/gcc/results/bin/gcc -w -O3 -fno-strict-aliasing -fno-loop-interchange bug998.c foundBugs $ valgrind -q ./a.out checksum = 130B5204 foundBugs $