This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Profiling
- From: Rajkishore Barik <rajbarik at in dot ibm dot com>
- To: James E Wilson <wilson at specifixinc dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 17 Aug 2004 15:39:44 +0530
- Subject: 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