diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-04-15 12:56:16 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-04-15 12:56:16 +0000 |
commit | 4a1370747a4e9df496b2dafb3d7ffde4e9c23d79 (patch) | |
tree | 860d0c78d022bf79771f4149527a63c6720be8d1 /gcc/common.opt | |
parent | 5ea0b505a68c6d38d2b7d675696d33ad01f3b733 (diff) | |
download | gcc-4a1370747a4e9df496b2dafb3d7ffde4e9c23d79.tar.gz |
2014-04-15 Richard Biener <rguenther@suse.de>
* common.opt (lto_partition_model): New enum.
(flto-partition=): Merge separate options with a single with argument,
add -flto-partition=one support.
* flag-types.h (enum lto_partition_model): Declare.
* opts.c (finish_options): Remove duplicate -flto-partition=
option check.
* lto-wrapper.c (run_gcc): Adjust.
lto/
* lto.c: Include params.h.
(do_whole_program_analysis): Switch on flag_lto_partition value,
add support for LTO_PARTITION_ONE.
* lto-partition.h (lto_balanced_map): Adjust.
* lto-partition.c (lto_balanced_map): Get number of desired
partitions as argument to support -flto-partition=one.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209416 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/common.opt')
-rw-r--r-- | gcc/common.opt | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index 2259f29d19e..da275e5cb45 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -1495,21 +1495,27 @@ flto= Common RejectNegative Joined Var(flag_lto) Link-time optimization with number of parallel jobs or jobserver. -flto-partition=1to1 -Common Var(flag_lto_partition_1to1) -Partition symbols and vars at linktime based on object files they originate from +Enum +Name(lto_partition_model) Type(enum lto_partition_model) UnknownError(unknown LTO partitioning model %qs) -flto-partition=balanced -Common Var(flag_lto_partition_balanced) -Partition functions and vars at linktime into approximately same sized buckets +EnumValue +Enum(lto_partition_model) String(none) Value(LTO_PARTITION_NONE) -flto-partition=max -Common Var(flag_lto_partition_max) -Put every symbol into separate partition +EnumValue +Enum(lto_partition_model) String(one) Value(LTO_PARTITION_ONE) + +EnumValue +Enum(lto_partition_model) String(balanced) Value(LTO_PARTITION_BALANCED) + +EnumValue +Enum(lto_partition_model) String(1to1) Value(LTO_PARTITION_1TO1) + +EnumValue +Enum(lto_partition_model) String(max) Value(LTO_PARTITION_MAX) -flto-partition=none -Common Var(flag_lto_partition_none) -Disable partioning and streaming +flto-partition= +Common Joined RejectNegative Enum(lto_partition_model) Var(flag_lto_partition) Init(LTO_PARTITION_BALANCED) +Specify the algorithm to partition symbols and vars at linktime ; The initial value of -1 comes from Z_DEFAULT_COMPRESSION in zlib.h. flto-compression-level= |