https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108721
Bug ID: 108721 Summary: csmith: really old bug with -O2 Product: gcc Version: 13.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 54436 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54436&action=edit C source code For the attached C code, generated from csmith, does this: $ ../results/bin/gcc -w -O1 bug884.c && ./a.out checksum = 749D4681 $ ../results/bin/gcc -w -O2 bug884.c && ./a.out checksum = F8019D24 $ The bug seems to exist since sometime before 20220206, about a year ago. $ ../results.20220206/bin/gcc -w -O2 bug884.c && ./a.out checksum = F8019D24 $ The git hash for 20220206 is g:8eb329e963593342855b6072e5692659107337b7