https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109184
--- Comment #3 from David Binderman <dcb314 at hotmail dot com> --- After checking the flags that move -O2 to -O3, flag -floop-interchange seems to be at fault. $ ~/gcc/results/bin/gcc -w -O2 -fno-strict-aliasing bug897.c $ ./a.out 1 > 1 $ ~/gcc/results/bin/gcc -w -O2 -floop-interchange -fno-strict-aliasing bug897.c $./a.out 1 > 2 $ diff 1 2 | head 2038c2038 < ...checksum after hashing g_1731[i][j] : 351CD463 --- > ...checksum after hashing g_1731[i][j] : 7739D31E 2040c2040 < ...checksum after hashing g_1731[i][j] : 791FAA71 --- > ...checksum after hashing g_1731[i][j] : FEBF8F12