diff options
author | Jan Hubicka <jh@suse.cz> | 2010-10-05 19:57:09 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-10-05 17:57:09 +0000 |
commit | 852e4bd21fd96a8f6a455eeeddd73d9e9db39e99 (patch) | |
tree | 39fe2253162e98252ee98f361dabaf26193a3d46 /gcc/common.opt | |
parent | 5806d9ac5dc72814e806e61773077a263a6fc728 (diff) | |
download | gcc-852e4bd21fd96a8f6a455eeeddd73d9e9db39e99.zip gcc-852e4bd21fd96a8f6a455eeeddd73d9e9db39e99.tar.gz gcc-852e4bd21fd96a8f6a455eeeddd73d9e9db39e99.tar.bz2 |
invoke.texi (-flto-partition, [...]): Document.
* doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
Document.
* opts.c (decode_options): Handle lto partitions.
* common.opt (flto-partition=1to1, flto-partition=balanced): New.
* params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
* lto.c: Include params.h.
(add_cgraph_node_to_partition, add_varpool_node_to_partition): Do
refcounting in aux field.
(undo_partition, partition_cgraph_node_p, partition_varpool_node_p):
New functions.
(lto_1_to_1_map): Simplify.
(lto_balanced_map): New function.
(do_whole_program_analysis): Chose proper partitioning alg.
* Make-lang.in (lto.o): Add dependency on params.h
From-SVN: r164995
Diffstat (limited to 'gcc/common.opt')
-rw-r--r-- | gcc/common.opt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index 2c1bd83..4bb648d 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -1049,6 +1049,14 @@ flto Common Var(flag_lto) Enable link-time optimization. +flto-partition=1to1 +Common Var(flag_lto_partition_1to1) +Partition functions and vars at linktime based on object files they originate from + +flto-partition=balanced +Common Var(flag_lto_partition_balanced) +Partition functions and vars at linktime into approximately same sized buckets + ; The initial value of -1 comes from Z_DEFAULT_COMPRESSION in zlib.h. flto-compression-level= Common Joined RejectNegative UInteger Var(flag_lto_compression_level) Init(-1) |