------- Comment #13 from dnovillo at google dot com 2009-02-18 12:26 ------- Subject: Re: LTO and -fwhole-program do not play along well
On Tue, Feb 17, 2009 at 20:42, hubicka at ucw dot cz <gcc-bugzi...@gcc.gnu.org> wrote: > > > ------- Comment #12 from hubicka at ucw dot cz 2009-02-18 01:42 ------- > Subject: Re: LTO and -fwhole-program do not play along well > >> I believe we should be set already. During LTO read, we execute >> ipa_passes, which runs all_small_ipa_passes. So, >> pass_ipa_function_and_variable_visibility is run both while writing >> the IL and right after we read it in. >> >> Is that what you were referring to? > > Well, you need to localize stuff at WHOPR stage, so small IPA passes are > unlikely going to be executable there except for those not needing > function bodies (like the visibility pass, but unlike inlining and other > stuff included). Are those still skipped via the lto flag gate? Yes, with whopr, the only time we can ever operate in whole-program mode is when we run the analysis stage (-fwpa). The other two stages cannot operate in whole-program mode as they only deal with a partial graph. For -flto, however, we can enable whole-program mode as we are dealing with the whole callgraph at once. Diego. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39203