From: Martin Liska Date: Tue, 18 Feb 2020 15:33:44 +0000 (+0100) Subject: Restore LTO PGO bootstrap after ea0b12523d0d9a9059b5. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fa1160f6e50500aa38162fefb43bfb10c25e0363;p=gcc.git Restore LTO PGO bootstrap after ea0b12523d0d9a9059b5. * value-prof.c (stream_out_histogram_value): Restore LTO PGO bootstrap by missing removal of invalid sanity check. --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c107f19a0f4..731bae4bbda 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2020-02-18 Martin Liska + + * value-prof.c (stream_out_histogram_value): Restore LTO PGO + bootstrap by missing removal of invalid sanity check. + 2020-02-18 Martin Liska PR ipa/92518 diff --git a/gcc/value-prof.c b/gcc/value-prof.c index 5f940f40399..8e9f129708a 100644 --- a/gcc/value-prof.c +++ b/gcc/value-prof.c @@ -332,7 +332,7 @@ stream_out_histogram_value (struct output_block *ob, histogram_value hist) /* When user uses an unsigned type with a big value, constant converted to gcov_type (a signed type) can be negative. */ gcov_type value = hist->hvalue.counters[i]; - if (hist->type == HIST_TYPE_TOPN_VALUES && i > 0) + if (hist->type == HIST_TYPE_TOPN_VALUES) ; else gcc_assert (value >= 0);