https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67781
Mikael Pettersson <mikpelinux at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikpelinux at gmail dot com --- Comment #3 from Mikael Pettersson <mikpelinux at gmail dot com> --- SPARC (big-endian) is also affected. gcc-6 and gcc-5 generate wrong code with -O2 or -O1 -fexpensive-optimizations, but working code with just -O1. gcc-4.9 generates working code at all optimization levels.