Re: Warning from count-leading-zeros.h

2018-12-14 Thread Paul Eggert
On 12/14/18 4:09 AM, Reuben Thomas wrote: As far as I can tell, the following warning is not dependent on my code, as it's inside a function in count-leading-zeros.h. Warning obtained with GCC 7.3.0: bits_util.c: In function ‘smite_find_msbit’: ../lib/count-leading-zeros.h:39:26: warning: assu

Re: [PATCH] mkdir-p: Don't discard stat error

2018-12-14 Thread Paul Eggert
On 12/14/18 1:10 PM, Niklas Hambüchen wrote: + if (stat (dir + prefix_len, &st) == 0 + && S_ISDIR (st.st_mode)) +return true; + else +{ + error (0, errno, +

Re: random module linking problem on mingw ?

2018-12-14 Thread Paul Eggert
This does not ring a bell with me. Presumably the "# define __random_r random_r" business in lib/random_r.c and lib/stdlib.in.h also need to be done for random and srandom in lib/random.c and lib/stdlib.in.h?

Re: random module linking problem on mingw ?

2018-12-14 Thread Bruno Haible
Hi Assaf, > Around June 2018, there were few changes to the random module: > == > 6979c258b random_r: do not crash if state is unaligned > dc4b9a1f9 random_r: omit unnecessary include > 137dda358 random, random_r: merge from glibc > == > > After uprgading gnulib and re-building (towards a new

Re: generic container for maps

2018-12-14 Thread Bruno Haible
> Here comes the last of the five generic container types: I pushed this now. Bruno

[PATCH] mkdir-p: Don't discard stat error

2018-12-14 Thread Niklas Hambüchen
Until now, a stat() `errno` created by `mkdir -p` after `mkdir()` is dropped silently, leading to very confusing error messages that hide the actual source of the error: `mkdir -p` can say cannot create directory ‘dir: File exists` when indeed the the file exists, is a directory (shows `d` i

random module linking problem on mingw ?

2018-12-14 Thread Assaf Gordon
Hello, Around June 2018, there were few changes to the random module: == 6979c258b random_r: do not crash if state is unaligned dc4b9a1f9 random_r: omit unnecessary include 137dda358 random, random_r: merge from glibc == After uprgading gnulib and re-building (towards a new release), and when

how to build gnulib for shared libraries?

2018-12-14 Thread Szabolcs Nagy
by default gnulib is not built with -fPIC so it is not suitable for shared libraries. is there an easy way to build gnulib .a with -fPIC so it can be used with shared libraries and executables as well within the same project? only elf targets need to be supported so ideally all gnulib replacement

Warning from count-leading-zeros.h

2018-12-14 Thread Reuben Thomas
As far as I can tell, the following warning is not dependent on my code, as it's inside a function in count-leading-zeros.h. Warning obtained with GCC 7.3.0: bits_util.c: In function ‘smite_find_msbit’: ../lib/count-leading-zeros.h:39:26: warning: assuming signed overflow does not occur when simpl