http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60718 --- Comment #2 from Bernd Edlinger <bernd.edlinger at hotmail dot de> --- Hmm... adding the option -fno-strict-aliasing generates correct code at -O2 and -O3.