summaryrefslogtreecommitdiff
path: root/gcc/coretypes.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2020-02-18 14:28:22 +0100
committerMartin Liska <mliska@suse.cz>2020-02-18 14:28:22 +0100
commitea0b12523d0d9a9059b5173ce9653b92ddfb284f (patch)
tree76bb545094dd99e705bce5e82aa1456d7bcdd26e /gcc/coretypes.h
parent0b2b45a68f48817e2310b12db3e03e648d4d2005 (diff)
Introduce -fprofile-reproducibility and support it with TOP N.
PR ipa/92924 * common.opt: Add -fprofile-reproducibility. * doc/invoke.texi: Document it. * value-prof.c (dump_histogram_value): Document and support behavior for counters[0] being a negative value. (get_nth_most_common_value): Handle negative counters[0] in respect to flag_profile_reproducible. PR ipa/92924 * libgcov-merge.c (merge_topn_values_set): Record when a TOP N counter becomes invalid. When merging remove a smallest value if the space is needed.
Diffstat (limited to 'gcc/coretypes.h')
-rw-r--r--gcc/coretypes.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/coretypes.h b/gcc/coretypes.h
index d8fd50d79a4..cda22697cc3 100644
--- a/gcc/coretypes.h
+++ b/gcc/coretypes.h
@@ -212,6 +212,13 @@ enum profile_update {
PROFILE_UPDATE_PREFER_ATOMIC
};
+/* Type of profile reproducibility methods. */
+enum profile_reproducibility {
+ PROFILE_REPRODUCIBILITY_SERIAL,
+ PROFILE_REPRODUCIBILITY_PARALLEL_RUNS,
+ PROFILE_REPRODUCIBILITY_MULTITHREADED
+};
+
/* Types of unwind/exception handling info that can be generated. */
enum unwind_info_type