This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gcov] Avoid race conditions in parallel make
> Jan Hubicka wrote:
>
> >Uhm, I was waiting for you to commit the patch and then forgot to
> >update... Here is updated patch.
> ta.
>
> I'm thinking of breaking the gcov handling functions out of profile.c into
> a new coverage.c file. That new file will handle the compile-time side
> of coverage - reading the data files, allocating counter memory, writing
> the counter structures. At the moment it's too tightly coupled with
> the arc-coverage code. do you agree?
I was thinking about sharing the code between libgcc/gcov/profile.c
somehow for some time too. It is bit dificult because gcov use
different datastructure for the flowgraph and it is not trivial to
export our CFG code as it is dependent on too many GCC internals, but I
don't see any problem with the profile reading/wrting code and we would
get some goodies for free (like locking of files on compile/gcov reads)
Honza
>
> nathan
>
> --
> Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
> The voices in my head said this was stupid too
> nathan at codesourcery dot com : http://www.cs.bris.ac.uk/~nathan/ : nathan at acm dot org
>
>