http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55102
--- Comment #3 from Jan Hubicka <hubicka at gcc dot gnu.org> 2013-03-27 12:47:04 UTC --- Doing IPA analysis at -O0 for LTO streaming won't really solve the fact that functions are not early optimized. I would vote for at least issuing a waning when LTOing -O0 objects into -On, n>=1 LTO binary or simply declaring -O0 to be non-LTO only. But indeed, we probably should make analysis/summary streaming of all IPA passes so -fno-ipa-cp and such works as expected all the time. I have patch fot that somewhere already. We probably should lean the route of streaming the options used and honoring them rather than taking whatever is passed to linker...