This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Make gcov_type unsigned.
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org, mark at codesourcery dot com
- Date: Wed, 04 Sep 2002 18:30:46 +0100
- Subject: Re: PATCH: Make gcov_type unsigned.
- Organization: Codesourcery LLC
- References: <3D760D9F.C97EF5FA@codesourcery.com> <20020904143256.GD12089@kam.mff.cuni.cz>
Jan Hubicka wrote:
> Hmm, this can make writing the code to update profiles even more
> problematic than it is now.
> It is easy to get negative counters when profile is inexact and detect
> the underflows in signed arithmetics, but in unsigned it is little bit
> unnatural and since this is easy to get wrong, I am not quite sure this
> is best idea.
How can the profile be 'inexact' -- what do you mean? Is it a rounding
error thing?
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org