aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-prof.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2019-06-12 09:17:42 +0200
committerMartin Liska <marxin@gcc.gnu.org>2019-06-12 07:17:42 +0000
commitd134323ba975f2f62178030c2eeaa2b83bd61117 (patch)
treeadd8dbc5b0765f8b2f6ce9f5a776411cb13902bd /gcc/value-prof.c
parentf3139680c36885f772828607e2e4a6a3df7ec4aa (diff)
downloadgcc-d134323ba975f2f62178030c2eeaa2b83bd61117.zip
gcc-d134323ba975f2f62178030c2eeaa2b83bd61117.tar.gz
gcc-d134323ba975f2f62178030c2eeaa2b83bd61117.tar.bz2
Remove wrong assert about single value profiler.
2019-06-12 Martin Liska <mliska@suse.cz> * value-prof.c (stream_out_histogram_value): Only first value can't be negative. From-SVN: r272179
Diffstat (limited to 'gcc/value-prof.c')
-rw-r--r--gcc/value-prof.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/value-prof.c b/gcc/value-prof.c
index 57ef9e4..7289a69 100644
--- a/gcc/value-prof.c
+++ b/gcc/value-prof.c
@@ -331,7 +331,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_SINGLE_VALUE && (i > 0 && ((i - 1) % 2) == 0))
+ if (hist->type == HIST_TYPE_SINGLE_VALUE && i > 0)
;
else
gcc_assert (value >= 0);