This is the mail archive of the gcc-patches@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: [gcov] Avoid race conditions in parallel make


Jan Hubicka wrote:

Firstly, that extra check for last_prg.runs == local_prg.runs is superfluous,
the memcmp will pick it up anyway. Secondly, this will detect a difference

It is not - it is in reverse. In the case someone else is updating the profiles in parallels, the number of runs and summaries won't match, but still I must not abort.
doh! it's the memcmp returns zero on equal gotcha. I understand now.

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



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