This is the mail archive of the gcc-patches@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: Fix -fwhole-program on LTO -- Another SPEC2000 benchmakring round


On Mon, Oct 12, 2009 at 10:07 PM, Richard Guenther <rguenther@suse.de> wrote:
> On Mon, 12 Oct 2009, Andi Kleen wrote:
>
>> Diego Novillo <dnovillo@google.com> writes:
>> >
>> > Yes, we compile everything twice since .o files have both final object
>> > code and gimple bytecode.
>>
>> Would it be possible to add a flag to turn the final object code
>> generation off?
>
> Patches welcome ;)

But IIUC, you can compile with "-O0 -flto" and then link with "-O[123]
-flto", right?  So that should already have almost the same desired
result (faster compile times) as turning off code generation
completely.

If the above is true, is it then also possible to the following:
1. compile with "-O0 -flto -g3"
2. link with "-O0 -g3" to have a binary with all debug info to do debugging
3. link with "-O[123] -flto" to have an optimized binary
?

That would be really useful for people like me who can never get their
Fortran programs "right-first-time" :-)

Ciao!
Steven


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