Re: glthread weak symbols handling for POSIX threads fails with recent binutils and "ld --as-needed"

2013-10-07 Thread Paul Eggert
Colin Watson wrote: > But I'm new to this code; > could somebody with more experience comment? Your analysis sounds good to me.

glthread weak symbols handling for POSIX threads fails with recent binutils and "ld --as-needed"

2013-10-07 Thread Colin Watson
We've had a few cases recently in Ubuntu of packages that use Gnulib failing to build with test-lock and test-thread_create failures. Here's one: https://launchpadlibrarian.net/152673088/buildlog_ubuntu-saucy-i386.gnutls26_2.12.23-1ubuntu3_FAILEDTOBUILD.txt.gz I got concerned about this today

[PATCH 3/3] New module 'count-trailing-zeros'.

2013-10-07 Thread Paul Eggert
* MODULES.html.sh: Mention it. * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h: * m4/count-trailing-zeros.m4, modules/count-trailing-zeros: * modules/count-trailing-zeros-tests: * tests/test-count-trailing-zeros.c: New files. --- ChangeLog | 8 +++ MODULES.html.

[PATCH 2/3] count-leading-zeros: port to MSC; support types wider than 64 bits

2013-10-07 Thread Paul Eggert
The ideas behind the MSC port are stolen from Emacs. * lib/count-leading-zeros.h: Don't include verify.h: it's no longer needed, as types wider than 64 bits are now supported. (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better performance with MSC. All uses changed. Do not assume that TYPE ha

[PATCH 1/3] count-one-bits: port to MSC; support types wider than 64 bits

2013-10-07 Thread Paul Eggert
The ideas behind the MSC port are stolen from Emacs. * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable. * lib/count-one-bits.h: Include limits.h, for CHAR_BIT. Don't include verify.h: it's no longer needed, as types wider than 64 bits are now supported. (COUNT_ONE_BITS_GENERIC): Ne