summaryrefslogtreecommitdiff
path: root/gcc/flag-types.h
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2014-04-15 12:56:16 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2014-04-15 12:56:16 +0000
commit4a1370747a4e9df496b2dafb3d7ffde4e9c23d79 (patch)
tree860d0c78d022bf79771f4149527a63c6720be8d1 /gcc/flag-types.h
parent5ea0b505a68c6d38d2b7d675696d33ad01f3b733 (diff)
downloadgcc-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/flag-types.h')
-rw-r--r--gcc/flag-types.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/flag-types.h b/gcc/flag-types.h
index ec16faa18a3..97382719ff7 100644
--- a/gcc/flag-types.h
+++ b/gcc/flag-types.h
@@ -229,4 +229,14 @@ enum vtv_priority {
VTV_STANDARD_PRIORITY = 1,
VTV_PREINIT_PRIORITY = 2
};
+
+/* flag_lto_partition initialization values. */
+enum lto_partition_model {
+ LTO_PARTITION_NONE = 0,
+ LTO_PARTITION_ONE = 1,
+ LTO_PARTITION_BALANCED = 2,
+ LTO_PARTITION_1TO1 = 3,
+ LTO_PARTITION_MAX = 4
+};
+
#endif /* ! GCC_FLAG_TYPES_H */