This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[gcov, commited] Fix summary generation
- From: Jan Hubicka <jh at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 29 Sep 2003 19:08:52 +0200
- Subject: [gcov, commited] Fix summary generation
Hi,
this patch fix two pastos in gcov_exit function so the summaries at least does
not come out empty. I am still investigating other breakage causing bootstrap
failure.
The code became very hard to follow, Nathan, would you mind at least add some
comments on how it should work?
Honza
Mon Sep 29 19:05:46 CEST 2003 Jan Hubicka <jh@suse.cz>
* libgcov.c (gcov_exit): Fix two pastos.
Index: libgcov.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/libgcov.c,v
retrieving revision 1.21
diff -c -3 -p -r1.21 libgcov.c
*** libgcov.c 2 Aug 2003 10:30:48 -0000 1.21
--- libgcov.c 29 Sep 2003 17:05:36 -0000
*************** gcov_exit (void)
*** 174,180 ****
if (!((1 << t_ix) & gi_ptr->ctr_mask))
continue;
! cs_ptr = &this_program.ctrs[t_ix];
cs_ptr->num += ci_ptr->num;
for (c_num = 0; c_num < ci_ptr->num; c_num++)
{
--- 174,180 ----
if (!((1 << t_ix) & gi_ptr->ctr_mask))
continue;
! cs_ptr = &this_object.ctrs[t_ix];
cs_ptr->num += ci_ptr->num;
for (c_num = 0; c_num < ci_ptr->num; c_num++)
{
*************** gcov_exit (void)
*** 324,330 ****
cs_obj = &object.ctrs[t_ix];
cs_tobj = &this_object.ctrs[t_ix];
cs_prg = &program.ctrs[t_ix];
! cs_tprg = &program.ctrs[t_ix];
cs_all = &all.ctrs[t_ix];
if ((1 << t_ix) & gi_ptr->ctr_mask)
--- 324,330 ----
cs_obj = &object.ctrs[t_ix];
cs_tobj = &this_object.ctrs[t_ix];
cs_prg = &program.ctrs[t_ix];
! cs_tprg = &this_program.ctrs[t_ix];
cs_all = &all.ctrs[t_ix];
if ((1 << t_ix) & gi_ptr->ctr_mask)