https://bugs.kde.org/show_bug.cgi?id=392449

Philippe Waroquiers <philippe.waroqui...@skynet.be> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |philippe.waroquiers@skynet.
                   |                            |be

--- Comment #1 from Philippe Waroquiers <philippe.waroqui...@skynet.be> ---
The below patch seems to solve the problem.
As I do not know much about callgrind, it would be nice
if Jozef could give his opinion about the patch before push.
Thanks


diff --git a/callgrind/bbcc.c b/callgrind/bbcc.c
index 5716b07a7..91018ebd7 100644
--- a/callgrind/bbcc.c
+++ b/callgrind/bbcc.c
@@ -100,8 +100,10 @@ void CLG_(zero_bbcc)(BBCC* bbcc)
     bbcc->cost[i] = 0;
   for(i=0;i <= bbcc->bb->cjmp_count;i++) {
     bbcc->jmp[i].ecounter = 0;
-    for(jcc=bbcc->jmp[i].jcc_list; jcc; jcc=jcc->next_from)
+    for(jcc=bbcc->jmp[i].jcc_list; jcc; jcc=jcc->next_from) {
        CLG_(init_cost)( CLG_(sets).full, jcc->cost );
+        jcc->call_counter = 0;
+    }
   }
   bbcc->ecounter_sum = 0;
   bbcc->ret_counter = 0;

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to