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

--- Comment #3 from David Binderman <dcb314 at hotmail dot com> ---
The original code is from csmith, so:

foundBugs $ rm ./a.out && ../results/bin/gcc -w bug1086.c && ./a.out 1 > /tmp/0
foundBugs $ rm ./a.out && ../results/bin/gcc -w -O1 bug1086.c && ./a.out 1 >
/tmp/1
foundBugs $ rm ./a.out && ../results/bin/gcc -w -O2 bug1086.c && ./a.out 1 >
/tmp/2
foundBugs $ rm ./a.out && ../results/bin/gcc -w -O3 bug1086.c && ./a.out 1 >
/tmp/3
foundBugs $ diff /tmp/0 /tmp/1 | head
foundBugs $ diff  /tmp/1 /tmp/2 | head
foundBugs $ diff   /tmp/2 /tmp/3 | head -20
22,31c22,31
< ...checksum after hashing g_96 : AC52A137
< ...checksum after hashing g_112 : 76BB478C
< ...checksum after hashing g_115 : E702AF55
< ...checksum after hashing g_120 : D2913B16
< ...checksum after hashing g_122 : 509DFFB2
< ...checksum after hashing g_123 : 3C438752
< ...checksum after hashing g_126 : 2EE87DAF
< ...checksum after hashing g_159.f1 : CCF3889D
< ...checksum after hashing g_171.f0 : D5BDB4B1
< ...checksum after hashing g_174[i] : 8639214
---
> ...checksum after hashing g_96 : A3A5FF7D
> ...checksum after hashing g_112 : 37CBB533
> ...checksum after hashing g_115 : 75843C96
> ...checksum after hashing g_120 : 9BB794D6
> ...checksum after hashing g_122 : 1FCEC711
> ...checksum after hashing g_123 : D3B439C9
> ...checksum after hashing g_126 : 8E5B985A
> ...checksum after hashing g_159.f1 : C699E54E
foundBugs $

Reply via email to