From cef976f513db5e7521eb74b350e6ae901e9cc81a Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 26 Oct 2011 09:51:57 +0000 Subject: [PATCH] * hist.c (hist_assign_samples_1): Update comment. --- gprof/ChangeLog | 4 ++++ gprof/hist.c | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gprof/ChangeLog b/gprof/ChangeLog index 20464e8da1f..06177b6f961 100644 --- a/gprof/ChangeLog +++ b/gprof/ChangeLog @@ -1,3 +1,7 @@ +2011-10-26 Nick Clifton + + * hist.c (hist_assign_samples_1): Update comment. + 2011-10-25 Wei Guozhi PR gprof/13325 diff --git a/gprof/hist.c b/gprof/hist.c index 3b77ab0e9a1..91b0000168f 100644 --- a/gprof/hist.c +++ b/gprof/hist.c @@ -389,8 +389,10 @@ hist_assign_samples_1 (histogram *r) bin_count)); total_time += count_time; - /* Credit all symbols that are covered by bin I. */ - /* PR gprof/13325: Make sure that J does not go below I. */ + /* Credit all symbols that are covered by bin I. + + PR gprof/13325: Make sure that K does not get decremented + and J will never be less than 0. */ for (j = k - 1; j < symtab.len; k = ++j) { sym_low_pc = symtab.base[j].hist.scaled_addr; -- 2.30.2