https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92924
--- Comment #29 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Liska <mar...@gcc.gnu.org>: https://gcc.gnu.org/g:ea0b12523d0d9a9059b5173ce9653b92ddfb284f commit r10-6698-gea0b12523d0d9a9059b5173ce9653b92ddfb284f Author: Martin Liska <mli...@suse.cz> Date: Tue Feb 18 14:28:22 2020 +0100 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.