On Thu, 2006-11-09 at 12:32 -0800, Mark Mitchell wrote:
> 1. Add a --lto option to collect2.  When collect2 sees this option,
> treat all .o files as if they were .rpo files and recompile them.  We
> will do this after all C++ template instantiation has been done, since
> we want to optimize the .o files after the program can actually link.
> 
> 2. Modify the driver so that --lto passes -flto to the C front-end and
> --lto to collect2.
> 
> Any objections to this plan?

Maybe not an objection but a suggestion with respect of static
libraries.  It might be useful to also to look into archives for files
with LTO info in them and be able to read them inside the compiler also.

Thanks,
Andrew Pinski

Reply via email to