------- Comment #2 from rguenth at gcc dot gnu dot org 2008-09-01 13:42 ------- Uh, well. The code ist mostly inline assembly which doesn't give GCC much freedom to do something. I guess -O2 simply optimizes "too much" around the asm. Try not using inline assembly instead.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37312