http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45810
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-09-27 10:48:33 UTC --- For single-file programs -fwhole-program and -flto should be basically equivalent if the Frontend provides correctly merged decls. I suppose it does not and thus we do less inlining with -fwhole-program compared to -flto.