[Bug tree-optimization/39203] LTO and -fwhole-program do not play along well

dnovillo at google dot com gcc-bugzilla@gcc.gnu.org
Tue Feb 17 18:06:00 GMT 2009



------- Comment #7 from dnovillo at google dot com  2009-02-17 18:05 -------
Subject: Re:  LTO and -fwhole-program do not play 
        along well

On Tue, Feb 17, 2009 at 13:01, hubicka at ucw dot cz
<gcc-bugzilla@gcc.gnu.org> wrote:

> This is intended behaviour.

Agreed.

> -fwhole-program essentially hides everything except for main and
> functions/variables explicitly marked via attribute, so this is
> exepcted.  You need to use --combine and or -lto to compile programs
> consisting of multiple compilation units with -fwhole-program.

Yes.  As I just replied upthread, I think we could just turn off
flag_whole_program when we know we are just generating IL out of the
front ends.


Diego.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39203



More information about the Gcc-bugs mailing list