http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47908
--- Comment #4 from Mikael Pettersson <mikpe at it dot uu.se> 2011-04-11 07:36:17 UTC --- I have fully tested patches to fix this for 4.4.5, 4.5.2, and 4.6.0 (presumably that one will also work for 4.7 but I haven't checked), but I've avoided posting them because the FSF hasn't yet confirmed that my copyright assignment is in place. (They've had the papers for ages.) I just pinged them again. Meanwhile you can just comment out any offending attribute((optimize(...))).