This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Planned LTO driver work
- From: Andrew Pinski <pinskia at gmail dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: GCC <gcc at gcc dot gnu dot org>
- Date: Thu, 09 Nov 2006 20:37:26 -0800
- Subject: Re: Planned LTO driver work
- References: <45539064.5090807@codesourcery.com>
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