http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55461
Andi Kleen <andi-gcc at firstfloor dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |WONTFIX --- Comment #4 from Andi Kleen <andi-gcc at firstfloor dot org> 2012-11-25 19:15:36 UTC --- Ok fair enough. Yes -O2 seems to DTRT. The penalty for doing this can be large on some older CPUs of course. I chose -Os because -O2 made a mess out of the loop. Just one more on my list to avoid -Os.