http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60766
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Target| |x86_64-*-*-* Known to work| |4.4.5 Target Milestone|--- |4.8.3 Summary|Wrong optimization with -O2 |[4.8/4.9 Regression] Wrong | |optimization with -O2 Known to fail| |4.9.0 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Looks like IV-opt is creating some overflows that were not there in the original code. Fails with: g++ (GCC) 4.9.0 20131026 (experimental) [trunk revision 204095] I have not updated my compiler since then.