This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Profiling


> > I wrote a new __gcov_merge_range function in "libgcov.c" file. 
> > However, every execution of the executable file produces "Overflow 
> > merging" error. 

>The code you wrote has a bug.  You will have to try to debug it using 
>gdb.  No one else can do this for you.


After doing a thorough check, I found out that I was using 
"gcov_write_counter" to store negative values. 
The checks for "value < 0" in these functions ("gcov_write_counter" and 
"gcov_read_counter") restrict the counters from generic usage.

--Raj





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]