fpieee tweak

2012-02-26 Thread Bruno Haible
In the module 'fpieee', we are chosing an OSF/1 compiler option that leads to nearly IEEE compliant code. According to the GCC documentation, the equivalent of -mieee is -ieee_with_no_inexact. Experiments show that it is the same as -ieee. 2012-02-26 Bruno Haible fpieee: More comments

math error reporting

2012-02-26 Thread Bruno Haible
In November 2011, I wrote in : glibc 2.11: NaN, fenv bit, errno MacOS X 10.5: NaN, fenv bit math_errhandling (always=MATH_ERREXCEPT) FreeBSD 6.4: NaN, fenv bit math_errhandling (always=MATH_ERREXCEPT)

Re: remainder: support for MSVC

2012-02-26 Thread Tom G. Christensen
On 02/25/2012 06:31 PM, Bruno Haible wrote: In passing, also fix the missing declaration problem on IRIX 5.3 (untested). I checked on IRIX 5.3 and it works as intended. -tgc

Testdir creation fails with --single-configure and havelib module

2012-02-26 Thread Tom G. Christensen
Hello, I just noticed that creating a testdir including the havelib module fails when using the --single-configure option to gnulib-tool. $ ./gnulib-tool --create-testdir --dir=../havelib --with-tests --single-configure havelib Module list with included dependencies (indented): havelib

modf math error reporting

2012-02-26 Thread Bruno Haible
After I wrote NaN and Inf tests for the modf() function, the test-modf-ieee test fails on some platforms: Cygwin 1.7.9 test-modf-ieee.h:27: assertion failed IRIX 6.5 test-modf-ieee.h:35: assertion failed FreeBSD 6.4test-modf-ieee.h:35: assertion failed NetBSD 5.1 test-modf-ieee.h:2

modff math error reporting

2012-02-26 Thread Bruno Haible
> After I wrote NaN and Inf tests for the modf() function, the test-modf-ieee > test fails on some platforms: Similarly with the test-modff-ieee test: Solaris 9 crash in call at line test-modf-ieee.h:25 Cygwin 1.7.9 test-modf-ieee.h:27: assertion failed NetBSD 5.1 test-modf-ieee.h:27: a

modfl math error reporting

2012-02-26 Thread Bruno Haible
The test-modfl-ieee test also fails. The gnulib replacement code is one of the culprits, and other than that: IRIX 6.5test-modf-ieee.h:35: assertion failed OSF/1 5.1 test-modf-ieee.h:43: assertion failed mingw test-modf-ieee.h:43: assertion failed Three fixes make it all work. 2012-

[PATCH] regex: re_search etc. should return -2 when memory exhausted

2012-02-26 Thread Paul Eggert
This bug was uncovered when testing 'grep'. Without the fix, re_search and friends return -1 when memory is exhausted, but -1 means no match, and this causes grep to falsely report no-match instead of memory-exhaustion. See . * lib/regexec