http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47538
--- Comment #5 from Jack Howarth <howarth at nitro dot med.uc.edu> 2011-01-30 03:10:37 UTC --- Interestingly adding all of the options enabled at -O1 to -O0... -O0 -fcombine-stack-adjustments -fcompare-elim -fcprop-registers -fdefer-pop -fforward-propagate -fguess-branch-probability -fif-conversion -fif-conversion2 -fipa-profile -fipa-pure-const -fipa-reference -fmerge-constants -fsplit-wide-types -ftree-bit-ccp -ftree-ccp -ftree-ch -ftree-copy-prop -ftree-copyrename -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-fre -ftree-sink -ftree-sra -ftree-ter doesn't trigger the miscompilation.