Fix POW2 histogram
authorMartin Liska <mliska@suse.cz>
Tue, 9 Aug 2016 20:57:14 +0000 (22:57 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 9 Aug 2016 20:57:14 +0000 (20:57 +0000)
commitdcb1e1379ea52c33e5025d6e5842c43888888afa
tree187f4b8334dcc9b7d561d703c32cb57e5646f3a5
parent54b367dbd22e07e734a8632484e763bea16ced87
Fix POW2 histogram

* gcc.dg/tree-prof/val-prof-8.c: New test.
* value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
values.
* libgcov-profiler.c (__gcov_pow2_profiler): Consider 0 as not
power of two.

From-SVN: r239304
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-prof/val-prof-8.c [new file with mode: 0644]
gcc/value-prof.c
libgcc/ChangeLog
libgcc/libgcov-profiler.c