On Fri, Oct 17, 2008 at 15:24, Ollie Wild <[EMAIL PROTECTED]> 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.