This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
The documentation of option -flto-partition=alg
- From: Toon Moene <toon at moene dot org>
- To: gcc mailing list <gcc at gcc dot gnu dot org>
- Date: Sat, 14 Jul 2012 17:00:08 +0200
- Subject: The documentation of option -flto-partition=alg
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