------- Comment #3 from rguenth at gcc dot gnu dot org 2009-09-07 09:45 ------- Works for me with g++-4.4 (Debian 4.4.1-3) 4.4.1. But I can reproduce it with the 4.4.1 release on both x86_64 and x86_64 with -m32. 4.4.0 seems to work, so does trunk and 4.4.2.
Thus, fixed. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Component|c++ |tree-optimization GCC target triplet|i586-redhat-linux |i?86-*-* x86_64-*-* Keywords| |wrong-code Known to fail| |4.4.1 Known to work| |4.3.3 4.4.0 4.4.2 4.5.0 Priority|P3 |P1 Resolution| |FIXED Summary|-O1 optimisation of for |[4.4 Regression] -O1 |loops in some cases omits |optimisation of for loops in |essential functionality |some cases omits essential |resulting in failed |functionality resulting in |applications |failed applications Target Milestone|--- |4.4.2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41287