[PATCH v4] gcov: Add TARGET_GCOV_TYPE_SIZE target hook

Joseph Myers joseph@codesourcery.com
Thu Aug 12 16:13:01 GMT 2021

On Thu, 12 Aug 2021, Sebastian Huber wrote:

> If -fprofile-update=atomic is used, then the target must provide atomic
> operations for the counters of the type returned by get_gcov_type().
> This is a 64-bit type for targets which have a 64-bit long long type.
> On 32-bit targets this could be an issue since they may not provide
> 64-bit atomic operations.  Allow targets to override the default type
> size with the new TARGET_GCOV_TYPE_SIZE target hook.

This is not a review of the patch, but I think this version addresses all 
the issues I had with previous versions regarding target macro/hook 

Joseph S. Myers

More information about the Gcc-patches mailing list