This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Issue with LTO/-fwhole-program
On Fri, Jun 11, 2010 at 3:21 PM, Dave Korn <dave.korn.cygwin@gmail.com> wrote:
> 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 gold
>> 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 and
> non-LTO objects? ?Or disable it, or both?
Hum. Maybe - currently we figure out whether an object is LTO or not
in collect2, so that's where the warning should reside (but collect2
has no idea about compilation flags but just passes them through).
Richard.
> ? ?cheers,
> ? ? ?DaveK
>