------- 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
<[email protected]> 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