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: Planned LTO driver work


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


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