test results on FreeBSD 11.0

2017-08-17 Thread Bruno Haible
Test results of a Gnulib POSIX testdir on FreeBSD 11.0 (both x86 and x86_64): No test failures! All tests pass or are skipped. Bruno

fix hypot tests

2017-08-17 Thread Bruno Haible
On FreeBSD 11.0/x86 I'm seeing these test failures: FAIL: test-hypot ../../gltests/test-hypot.h:41: assertion 'z == HUGEVAL' failed FAIL test-hypot (exit status: 134) FAIL: test-hypotf = ../../gltests/test-hypot.h:41: assertion 'z == HUGEVAL' failed FAIL test-hy

float: fix LDBL_MIN value on FreeBSD/x86

2017-08-17 Thread Bruno Haible
On FreeBSD/x86, I'm seeing this test failure: FAIL: test-float ../../gltests/test-float.c:334: assertion 'm == x' failed FAIL test-float (exit status: 134) It's caused by gnulib itself. Here's the fix: 2017-08-17 Bruno Haible float: Fix LDBL_MIN value on FreeBSD/

Re: gnulib intprops.h build error with gcc 7

2017-08-17 Thread Adrian Bunk
On Thu, Aug 17, 2017 at 08:40:28PM +0200, Bruno Haible wrote: >... > Now about your test case: It is not valid C to try to compile just an > expression. >... I was about to say that this was directly copied from intprops.h And when double-checking that, I finally realized that this is what is in

Re: gnulib intprops.h build error with gcc 7

2017-08-17 Thread Bruno Haible
Adrian Bunk wrote: > For reproducing and my tiny testcase I was using > gcc (Debian 7.1.0-13) 7.1.0 > from Debian unstable - that is GCC 7.2 release candidate 2 > with minimal Debian patching. OK thanks. Now about your test case: It is not valid C to try to compile just an expression. =

Re: gnulib intprops.h build error with gcc 7

2017-08-17 Thread Adrian Bunk
On Thu, Aug 17, 2017 at 07:02:47PM +0200, Bruno Haible wrote: > Hi Adrian, > > Could you please give the complete output of "gcc --version"? > > Given that [1] references an URL that contains the string > 'gcc7-20170126' whereas gcc 7 was released on 2017-05-02 [2], > it could be that the report

random: workaround old Cygwin bug

2017-08-17 Thread Bruno Haible
Althrough I don't want to spent time fixing normal bugs seen on old Cygwin 1.5.25, this one is a compilation error: ../../gltests/test-random.c:22: warning: initialization from incompatible pointer type ../../gltests/test-random.c:23: error: `initstate' undeclared here (not in a function) ../../

Re: gnulib intprops.h build error with gcc 7

2017-08-17 Thread Bruno Haible
Hi Adrian, Could you please give the complete output of "gcc --version"? Given that [1] references an URL that contains the string 'gcc7-20170126' whereas gcc 7 was released on 2017-05-02 [2], it could be that the report is about a gcc prerelease that came 3 months before the gcc 7 release. Brun

gnulib intprops.h build error with gcc 7

2017-08-17 Thread Adrian Bunk
> Package: src:rush > Version: 1.8+dfsg-1 >... > In file included from inttostr.h:25:0, > from anytostr.c:31, > from imaxtostr.c:5: > intprops.h:236:34: error: expected ')' before '(' token > __builtin_add_overflow (a, b, (__typeof__ ((a) + (b)) *) 0) >

Re: test results on Cygwin 1.7.30

2017-08-17 Thread Bruno Haible
Eric Blake wrote: > > Test results of a Gnulib POSIX testdir on Cygwin 1.7.30 (32-bit): > > Can we repeat with modern cygwin 2.8.2? You can do so using the usual steps: 1. On a development machine: - Check out gnulib. $ ./gnulib-tool --create-testdir --dir=/tmp/testdir-posix --with-te