Fix POW2 histogram
commitdefa7026d161f8d0a3a6c54516e11e7121b86702
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Aug 2016 20:57:14 +0000 (9 20:57 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Aug 2016 20:57:14 +0000 (9 20:57 +0000)
tree187f4b8334dcc9b7d561d703c32cb57e5646f3a5
parent92db55268605626d043c72078ec0a1c383e47c27
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239304 138bc75d-0d04-0410-961f-82ee72b054a4
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