This is the mail archive of the
mailing list for the GCC project.
RE: Issue with LTO/-fwhole-program
Well, mixed LTO/non-LTO is quite useful. For example, we have mixed C/assembly
Application. Gold support for our target is still far away. I found -fwhole-program
is very important for our size optimization.
> -----Original Message-----
> From: Dave Korn [mailto:firstname.lastname@example.org]
> Sent: 11 June 2010 14:21
> To: Richard Guenther
> Cc: Manuel López-Ibáñez; Bingfeng Mei; email@example.com; Jan Hubicka
> Subject: Re: Issue with LTO/-fwhole-program
> On 11/06/2010 13:59, Richard Guenther wrote:
> > Well, we can't. We specifically support mixed LTO/non LTO objects
> > (think of shared libraries for example). With the linker-plugin and
> > we can do better, but with just GNU ld and collect2 we can't.
> Well then shouldn't we warn if -fwhole-program is used with mixed LTO
> non-LTO objects? Or disable it, or both?