http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50602
--- Comment #12 from Andi Kleen <andi-gcc at firstfloor dot org> 2012-01-08 01:37:29 UTC --- LTO saves the options in the object files and collects them for the final link. This works as far as I know. The only thing it cannot handle is different incompatible options in different files (but that's more a limitation in LTO than "incorrect code"). The test case doesn't do that. I disagree with your assessment that the test case is invalid. Please undo it.