RFA: Set default optimization level to -O2 for -flto
hartmut.schirmer@arcor.de
hartmut.schirmer@arcor.de
Mon Mar 22 09:10:00 GMT 2010
> On Fri, 19 Mar 2010 15:05:10 +0100, Richard Guenther wrote:
[...]
> I didn't yet come up with a good idea how to best merge
> TU 1 compiled with -O1 and TU 2 compiled with -O2. [...]
May be it would make sense to set each TU's flags on any
function contained just the way one can manually request different
optimization flags for functions.
Linking without additional flags would just use the flags from .o files
Linking with optimization flags would adjust flags for each functions
like GCC would do if you compile it in a TU on its own an give the
flags on command line.
This way pure -flto at link time would behave similar to non-lto compilation
without losing your optimization choice on the TUs
Hartmut
Topp oder Hopp? Tolle Figur, scharfes Dekolleté oder sehenswertes Tatoo?! Bewerten Sie die besten Bilder und zeigen Sie auch selbst, was Sie haben! Jetzt reinklicken und mitmachen: http://www.arcor.de/rd/footer.toh
More information about the Gcc-patches
mailing list