This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [lto][RFC] Do not emit hybrid object files


On Fri, Oct 17, 2008 at 15:24, Ollie Wild <aaw@google.com> wrote:

> At the moment, this won't work if final code is omitted.  Collect2 requires
> the presence of -flto or -fwhopr before lto1 will be invoked.  I'm not sure
> what the new Gold plugin does.
>
> Also, this will be problematic for static archives if Gold is not used (i.e.
> collect2 is).

Ah, yes.  Though this is just a reflection of existing bugs in the
implementation.  We can add magic byte checking in collect2 to invoke
lto1 (even if -flto is not provided) and eventually we'll need to
support archives in the reader. My question was more on the principle
of the feature.

> It may make more sense to add an option for explicitly suppressing normal
> output.

Perhaps, but I'd like to avoid extraneous flags if we can do it
automatically in the drivers.


Thanks.  Diego.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]