[PATCH] Cygwin: Make gcc-specific code in <sys/cpuset.h> compiler-agnostic

Jon Turney jon.turney@dronecode.org.uk
Fri Jul 7 15:46:24 GMT 2023


On 07/07/2023 10:44, Corinna Vinschen wrote:
> Hi Mark,
> 
> On Jul  7 00:41, Mark Geisert wrote:
>> The current version of <sys/cpuset.h> cannot be compiled by Clang due to
>> the use of __builtin* functions.  Their presence here was a dubious
>> optimization anyway, so their usage has been converted to standard
>> library functions.  A popcnt (population count of 1 bits in a word)
>> function is provided here because there isn't one in the standard library
>> or elsewhere in the Cygwin DLL.
> 
> And clang really doesn't provide it?  That's unfortunate.

I suspect if we had a current clang this would not be a problem.

There's probably something to be said for solving this problem by 
removing our old and unmaintained clang packages...



More information about the Cygwin-patches mailing list