https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61969
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |i?86-*-* Target Milestone|--- |4.8.4 Summary|wrong code by LTO on |[4.8/4.9/4.10 Regression] |x86_64-linux-gnu (affecting |wrong code by LTO on |trunk, 4.9.x, and 4.8.x) |i?86-linux-gnu (affecting | |trunk, 4.9.x, and 4.8.x) --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- You mean in 32bit mode. I can't reproduce it with trunk or 4.9 but only with 4.8: rguenther@murzim:/tmp> ./compile.sh gcc-4.8 32 1 rguenther@murzim:/tmp> ./t 2052 maybe it's sensitive to the linker used? it works with both GNU ld and gold for me with 4.9 and trunk.