The documentation of option -flto-partition=alg

Toon Moene toon@moene.org
Sat Jul 14 15:00:00 GMT 2012


I have been using the option -flto-partition=none recently (with Debian 
testing's gcc-4.7.1-2), but I'm not convinced - based on the 
documentation - that I am using it correctly.

I have:

for C source code:

CCFLAGS := -g -Ofast -flto -march=native -mtune=native

for Fortran source code:

FCFLAGS := -g -Ofast -flto -fprotect-parens -fbacktrace -march=native 
-mtune=native -I$(HOME)/netcdf/include

and for the final link stage:

LDFLAGS := -g -Ofast -flto -flto-partition=none -fuse-linker-plugin 
-fprotect-parens -fbacktrace -march=native -mtune=native

1. Is it correct to assume that -flto-partition=alg is only necessary 
during the final link stage ?  If so, shouldn't that be made clear in 
the documentation ?

2. What is the relation with -flto=n; doesn't no-partitioning imply 
-flto=1 ?  If so, shouldn't that be made clear in the documentation ?

-- 
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
At home: http://moene.org/~toon/; weather: http://moene.org/~hirlam/
Progress of GNU Fortran: http://gcc.gnu.org/wiki/GFortran#news



More information about the Gcc mailing list