This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: make gcov counters 64bit take 2
- To: Jan Hubicka <jh at suse dot cz>
- Subject: Re: make gcov counters 64bit take 2
- From: Richard Henderson <rth at redhat dot com>
- Date: Thu, 14 Jun 2001 09:11:07 -0700
- Cc: gcc-patches at gcc dot gnu dot org, patches at x86-64 dot org
- References: <20010614164621.X25388@atrey.karlin.mff.cuni.cz>
On Thu, Jun 14, 2001 at 04:46:21PM +0200, Jan Hubicka wrote:
> updated patch. Now chooses the GCOV_TYPE_SIZE as LONG_TYPE_SIZE if it is
> greater or equal to 64. Otherwise LONG_LONG_TYPE_SIZE is used.
> This way 72bit long targets noted by Lars will be happy.
One thing -- GCOV_TYPE_SIZE should be overridable by the target.
At some point we need the option to generate atomic updates to
the counters so that we can collect profile data for threaded
programs. Since we're annotating those edges off the minimal
spanning tree, any missed updates means we can't solve the
graph. The target may not be able to do atomic updates on a
64-bit counter.
r~