+2012-03-31 Simon Josefsson <simon@josefsson.org>
+
+ fflush: Fix syntax error.
+ * lib/fflush.c: Include unused-parameter.h, needed for
+ _GL_UNUSED_PARAMETER.
+ * modules/fflush (Depends-on): Add snippet/unused-parameter.
+
+2012-03-29 Eric Blake <eblake@redhat.com>
+
+ maint.mk: fix syntax checks without exclusions
+ * top/maint.mk (_sc_search_regexp): Allow for empty variable.
+ Reported by Daniel P. Berrange.
+
+2012-03-24 Bruno Haible <bruno@clisp.org>
+
+ gnulib-tool: Avoid unintended error output from 'cmp'.
+ * gnulib-tool (func_add_file, func_update_file, func_import): Use
+ "cmp -s", not "cmp > /dev/null".
+
+2012-03-23 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ gnulib-tool: fix imprecise comments w.r.t. an automake bug
+
+ It's not just Automake versions < 1.9b that creates an empty
+ pkgdatadir at installation time if pkgdata_DATA is specified
+ to empty; modern automake versions do this as well, at least
+ until automake 1.11.4 (not yet released at the moment of writing,
+ but soon to appear). That behaviour was generally considered a
+ feature rather than a bug, at least until this discussion:
+ <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
+
+ See also automake bugs #10997 and #11030.
+
+ * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments. Add
+ reference to relevant automake bug numbers.
+ (func_emit_tests_Makefile_am): Likewise.
+
+2012-03-20 Reuben Thomas <rrt@sc3d.org>
+
+ announce-gen: use Digest::SHA when possible
+ * build-aux/announce-gen: Use Digest::SHA when possible, falling
+ back to Digest::SHA1 if necessary.
+
+2012-03-20 Jim Meyering <meyering@redhat.com>
+
+ tests: avoid gcc warnings about argv vs. const initializers
+ * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
+ warnings about discarding 'const' qualifier from pointer target type.
+ * tests/test-posix_spawn2.c (main): Likewise.
+
+2012-03-20 Reuben Thomas <rrt@sc3d.org>
+
+ README-release: simplify slightly
+ * top/README-release: Run "git checkout master" only once.
+
+2012-03-15 Mark Wielaard <mark@klomp.org>
+
+ git-merge-changelog: add specific example on how to use with hg.
+ * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
+
+2012-03-18 Mark Wielaard <mark@klomp.org>
+
+ lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
+
+2012-03-18 Andreas Oberritter <obi@opendreambox.org>
+
+ git-version-gen: don't let "prefix" envvar cause trouble
+ * build-aux/git-version-gen (prefix): Initialize properly,
+ so as not to use a value specified via the environment.
+ Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
+
+2012-03-16 Paul Eggert <eggert@cs.ucla.edu>
+
+ regex: diagnose too-large repeat counts in EREs
+ Previously, the code did not diagnose the too-large repeat count
+ in EREs like 'b{1000000000}'; instead, it silently treated the ERE
+ as if it were 'b\{1000000000}', which is unexpected.
+ * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
+ is too large. REG_ESIZE is used nowhere else, and the diagnostic
+ is a reasonable one for this problem. Another option would be to
+ create a new REG_OVERFLOW error for repeat counts that are too large.
+ (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
+ count is too large, so that the caller can distinguish the two cases.
+ * lib/regex.h (_REG_ESIZE): Document that this is now a generic
+ "Too large" return code, and that repeat counts are one example of this.
+
+2012-03-16 Paul Eggert <eggert@cs.ucla.edu>
+
+ doc: some glibc x32 integer width issues
+ * doc/posix-headers/sys_types.texi (sys/types.h):
+ * doc/posix-headers/time.texi (time.h):
+ Mention that glibc x32 does not conform to POSIX in a couple of
+ areas related to integer widths.
+
+2012-03-15 Bruno Haible <bruno@clisp.org>
+
+ fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
+ * lib/fma.c (VOLATILE): New macro.
+ (FUNC): Use it to work around a GCC compiler bug.
+
+2012-03-13 Bruno Haible <bruno@clisp.org>
+
+ hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
+ * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
+ (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
+ REPLACE_HYPOTL to 1.
+ * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
+
+2012-03-13 Bruno Haible <bruno@clisp.org>
+
+ remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
+ * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
+ (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
+ REPLACE_REMAINDERL to 1.
+ * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
+ bug.
+
+2012-03-13 Bruno Haible <bruno@clisp.org>
+
+ sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
+ * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
+ * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
+ (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
+ too big rounding errors.
+ * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
+ * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
+ * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
+ (Depends-on): Update conditions.
+ * tests/test-sqrtl.c (my_ldexpl): New function.
+ (main): Add test of a particular value.
+ * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
+
+2012-03-13 Pádraig Brady <P@draigBrady.com>
+
+ doc: Update timer_* platform portability notes.
+ * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
+ that always return ENOSYS.
+ * doc/posix-functions/timer_delete.texi: Likewise.
+ * doc/posix-functions/timer_gettime.texi: Likewise.
+ * doc/posix-functions/timer_settime.texi: Likewise.
+
+2012-03-13 Bruno Haible <bruno@clisp.org>
+
+ cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
+ * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
+ (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
+ REPLACE_CBRTL to 1.
+ * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
+
+2012-03-13 Bruno Haible <bruno@clisp.org>
+
+ remainderl: Avoid compilation error on AIX >= 5.2.
+ * lib/math.in.h (remainderl): Undefine macro from the system header.
+
+2012-03-13 Bruno Haible <bruno@clisp.org>
+
+ Avoid compilation errors with MSVC option -fp:strict.
+ * lib/cbrt.c: Use MSVC specific pragma fenv_access.
+ * lib/cbrtf.c: Likewise.
+ Reported by Michael Goffioul <michael.goffioul@gmail.com>.
+
+2012-03-12 Bruno Haible <bruno@clisp.org>
+
+ uninorm: Don't crash in out-of-memory conditions.
+ * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
+ gracefully.
+ * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
+ Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
+
+2012-03-13 Akim Demaille <akim@lrde.epita.fr>
+
+ quote: fix syntax-check
+ * top/maint.mk (sc_prohibit_quote_without_use): quote.h
+ also exports quote_quoting_options.
+
+2012-03-12 Simon Josefsson <simon@josefsson.org>
+
+ Collapse list of copyright years to ranges. See
+ <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
+ * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
+ build-aux/csharpexec.sh.in, build-aux/gnupload,
+ build-aux/install-reloc, build-aux/javacomp.sh.in,
+ build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
+ build-aux/move-if-change, build-aux/reloc-ldflags,
+ build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
+
+2012-03-11 Bruno Haible <bruno@clisp.org>
+
+ log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
+ * m4/log2f-ieee.m4: New file.
+ * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
+ whether log2f works with a minus zero argument. Replace it if not.
+ * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
+ (Depends-on): Add log2-ieee.
+ (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
+ * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
+
+ log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
+ * m4/log2-ieee.m4: New file.
+ * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
+ whether log2 works with a minus zero argument. Replace it if not.
+ * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
+ (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
+ * doc/posix-functions/log2.texi: Mention the log2-ieee module.
+
+ Tests for module 'log2l-ieee'.
+ * modules/log2l-ieee-tests: New file.
+ * tests/test-log2l-ieee.c: New file.
+
+ New module 'log2l-ieee'.
+ * modules/log2l-ieee: New file.
+
+ Tests for module 'log2-ieee'.
+ * modules/log2-ieee-tests: New file.
+ * tests/test-log2-ieee.c: New file.
+
+ New module 'log2-ieee'.
+ * modules/log2-ieee: New file.
+
+ Tests for module 'log2f-ieee'.
+ * modules/log2f-ieee-tests: New file.
+ * tests/test-log2f-ieee.c: New file.
+ * tests/test-log2-ieee.h: New file.
+
+ New module 'log2f-ieee'.
+ * modules/log2f-ieee: New file.
+
+2012-03-11 Bruno Haible <bruno@clisp.org>
+
+ Tests for module 'log2l'.
+ * modules/log2l-tests: New file.
+ * tests/test-log2l.c: New file.
+
+ New module 'log2l'.
+ * lib/math.in.h (log2l): New declaration.
+ * lib/log2l.c: New file.
+ * m4/log2l.m4: New file.
+ * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
+ (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
+ REPLACE_LOG2L.
+ * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
+ REPLACE_LOG2L.
+ * modules/log2l: New file.
+ * tests/test-math-c++.cc: Check the declaration of log2l.
+ * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
+ and OSF/1 problems.
+
+2012-03-11 Bruno Haible <bruno@clisp.org>
+
+ Tests for module 'log2f'.
+ * modules/log2f-tests: New file.
+ * tests/test-log2f.c: New file.
+
+ New module 'log2f'.
+ * lib/math.in.h (log2f): New declaration.
+ * lib/log2f.c: New file.
+ * m4/log2f.m4: New file.
+ * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
+ (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
+ REPLACE_LOG2F.
+ * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
+ REPLACE_LOG2F.
+ * modules/log2f: New file.
+ * tests/test-math-c++.cc: Check the declaration of log2f.
+ * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
+ and OSF/1 and Cygwin problems.
+
+2012-03-11 Bruno Haible <bruno@clisp.org>
+
+ Tests for module 'log2'.
+ * modules/log2-tests: New file.
+ * tests/test-log2.c: New file.
+ * tests/test-log2.h: New file.
+
+ New module 'log2'.
+ * lib/math.in.h (log2): New declaration.
+ * lib/log2.c: New file.
+ * m4/log2.m4: New file.
+ * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
+ (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
+ REPLACE_LOG2.
+ * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
+ REPLACE_LOG2.
+ * modules/log2: New file.
+ * tests/test-math-c++.cc: Check the declaration of log2.
+ * doc/posix-functions/log2.texi: Mention the new module and the IRIX
+ and OSF/1 and Cygwin problems.
+
+2012-03-11 Bruno Haible <bruno@clisp.org>
+
+ exp2* tests: More tests.
+ * tests/test-exp2.h (test_function): Test all integral arguments that
+ don't need to overflow or denormalized numbers.
+ * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
+ * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
+ * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
+
+2012-03-10 Bruno Haible <bruno@clisp.org>
+
+ log1pl-ieee: Work around test failure on AIX 7.1.
+ * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
+
+ log1pl-ieee: Work around test failure on IRIX 6.5.
+ * m4/log1pl-ieee.m4: New file.
+ * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
+ test whether log1pl works with a minus zero argument. Replace it if
+ not.
+ * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
+ * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
+ * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
+ * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
+ (Depends-on): Update conditions.
+ * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
+ m4/signbit.m4.
+ (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
+ * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
+
+ log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
+ * m4/log1pf-ieee.m4: New file.
+ * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
+ test whether log1pf works with a minus zero argument. Replace it if
+ not.
+ * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
+ m4/signbit.m4.
+ (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
+ * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
+
+ log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
+ * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
+ (configure.ac): Require gl_FUNC_LOG1PF.
+
+ log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
+ * m4/log1p-ieee.m4: New file.
+ * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
+ whether log1p works with a minus zero argument. Replace it if not.
+ * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
+ * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
+ * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
+ * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
+ (Depends-on): Update conditions.
+ * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
+ m4/signbit.m4.
+ (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
+ * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
+
+ Tests for module 'log1pl-ieee'.
+ * modules/log1pl-ieee-tests: New file.
+ * tests/test-log1pl-ieee.c: New file.
+
+ New module 'log1pl-ieee'.
+ * modules/log1pl-ieee: New file.
+
+ Tests for module 'log1p-ieee'.
+ * modules/log1p-ieee-tests: New file.
+ * tests/test-log1p-ieee.c: New file.
+
+ New module 'log1p-ieee'.
+ * modules/log1p-ieee: New file.
+
+ Tests for module 'log1pf-ieee'.
+ * modules/log1pf-ieee-tests: New file.
+ * tests/test-log1pf-ieee.c: New file.
+ * tests/test-log1p-ieee.h: New file.
+
+ New module 'log1pf-ieee'.
+ * modules/log1pf-ieee: New file.
+
+2012-03-10 Bruno Haible <bruno@clisp.org>
+
+ Tests for module 'log1pl'.
+ * modules/log1pl-tests: New file.
+ * tests/test-log1pl.c: New file.
+
+ New module 'log1pl'.
+ * lib/math.in.h (log1pl): New declaration.
+ * lib/log1pl.c: New file.
+ * m4/log1pl.m4: New file.
+ * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
+ (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
+ * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
+ * modules/log1pl: New file.
+ * tests/test-math-c++.cc: Check the declaration of log1pl.
+ * doc/posix-functions/log1pl.texi: Mention the new module.
+
+2012-03-10 Bruno Haible <bruno@clisp.org>
+
+ Tests for module 'log1pf'.
+ * modules/log1pf-tests: New file.
+ * tests/test-log1pf.c: New file.
+
+ New module 'log1pf'.
+ * lib/math.in.h (log1pf): New declaration.
+ * lib/log1pf.c: New file.
+ * m4/log1pf.m4: New file.
+ * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
+ (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
+ REPLACE_LOG1PF.
+ * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
+ REPLACE_LOG1PF.
+ * modules/log1pf: New file.
+ * tests/test-math-c++.cc: Check the declaration of log1pf.
+ * doc/posix-functions/log1pf.texi: Mention the new module.
+
+2012-03-10 Bruno Haible <bruno@clisp.org>
+
+ log1p tests: More tests.
+ * tests/test-log1p.h: New file.
+ * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
+ (Makefile.am): Add randomd.c to test_log1p_SOURCES.
+ * tests/test-log1p.c: Include <float.h> and test-log1p.h.
+ (main): Invoke test_function.
+
+ log1p: Provide replacement for Minix and MSVC.
+ * lib/math.in.h (log1p): New declaration.
+ * lib/log1p.c: New file.
+ * m4/log1p.m4: New file.
+ * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
+ (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
+ * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
+ * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
+ (Depends-on): Add math, isnand, log, round.
+ (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
+ HAVE_LOG1P is 0.
+ * tests/test-math-c++.cc: Check the declaration of log1p.
+ * doc/posix-functions/log1p.texi: Mention the replacement.
+
+2012-03-10 Bruno Haible <bruno@clisp.org>
+
+ math tests: Small simplification.
+ * tests/test-exp.h (test_function): Use the same err_bound for
+ 'double' on platforms with sizeof (long double) == sizeof (double)
+ than on platforms with sizeof (long double) > sizeof (double).
+ * tests/test-exp2.h (test_function): Likewise.
+ * tests/test-expm1.h (test_function): Likewise.
+ * tests/test-log.h (test_function): Likewise.
+
+2012-03-10 Bruno Haible <bruno@clisp.org>
+
+ Fix some comments.
+ * lib/expl.c: Fix an ambiguous comment.
+ * lib/expm1.c: Likewise.
+ * lib/expm1l.c: Likewise.
+ * lib/exp2.c: Likewise.
+ * lib/exp2l.c: Likewise.
+
+2012-03-10 Paul Eggert <eggert@cs.ucla.edu>
+
+ regex: allow inclusion of <regex.h> before <limits.h>
+ Without this patch, portable programs had to include <limits.h> before
+ <regex.h> if they wanted a consistent value for RE_DUP_MAX.
+ I ran into this problem with a test version of GNU grep on Solaris 8.
+ * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
+ This is done conditionally so that this change can be merged
+ back to glibc.
+ * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
+ using the included regex.
+
+ fts: depend on fdopendir
+ * modules/fts (Depends-on): Depend on fdopendir. This is needed
+ on Solaris 8, at least, since it lacks fdopendir. Evidently the
+ problem was introduced when fdopendir was split out.
+
+2012-03-10 Bruno Haible <bruno@clisp.org>
+
+ Remove unused variables.
+ * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
+ * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
+
+2012-03-10 Bruno Haible <bruno@clisp.org>
+
+ isnanf-nolibm: Fix last commit.
+ * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
+
+ isnanf-nolibm: Make it work on IRIX 6.5 with cc.
+ * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
+
+2012-03-10 Bruno Haible <bruno@clisp.org>
+
+ logf-ieee: Work around test failure on NetBSD 5.1.
+ * m4/logf-ieee.m4: New file.
+ * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
+ whether logf works with a negative argument. Replace it if not.
+ * lib/logf.c (logf): For negative arguments, return NaN.
+ * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
+ (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
+ * doc/posix-functions/logf.texi: Mention the logf-ieee module.
+
+ logf-ieee: Work around test failure on Solaris 9.
+ * modules/logf-ieee (Depends-on): Add log-ieee.
+ (configure.ac): Require gl_FUNC_LOGF.
+
+ log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
+ * m4/log-ieee.m4: New file.
+ * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
+ log works with a negative argument. Replace it if not.
+ * lib/log.c (log): For negative arguments, return NaN.
+ * modules/log-ieee (Files): Add m4/log-ieee.m4.
+ (configure.ac): Invoke gl_FUNC_LOG_IEEE.
+ * doc/posix-functions/log.texi: Mention the log-ieee module.
+
+ Tests for module 'logl-ieee'.
+ * modules/logl-ieee-tests: New file.
+ * tests/test-logl-ieee.c: New file.
+
+ New module 'logl-ieee'.
+ * modules/logl-ieee: New file.
+
+ Tests for module 'log-ieee'.
+ * modules/log-ieee-tests: New file.
+ * tests/test-log-ieee.c: New file.
+
+ New module 'log-ieee'.
+ * modules/log-ieee: New file.
+
+ Tests for module 'logf-ieee'.
+ * modules/logf-ieee-tests: New file.
+ * tests/test-logf-ieee.c: New file.
+ * tests/test-log-ieee.h: New file.
+
+ New module 'logf-ieee'.
+ * modules/logf-ieee: New file.
+
+2012-03-10 Bruno Haible <bruno@clisp.org>
+
+ log: Fix bug introduced on 2012-03-09.
+ * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
+
+2012-03-10 Pádraig Brady <P@draigBrady.com>
+
+ timer-time: link explicitly with pthreads on glibc
+ * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
+ to support static linking, when newer glibc is
+ detected, as that contains pthread emulation of
+ POSIX timer functions where required.
+ * modules/timer-time: Depend on threadlib to
+ pull in the appropriate library to link.
+
+2012-03-10 Bruno Haible <bruno@clisp.org>
+
+ log* tests: More tests.
+ * tests/test-log.h: New file.
+ * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
+ (main): Invoke test_function.
+ * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
+ (main): Invoke test_function.
+ * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
+ (main): Invoke test_function.
+ * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
+ tests/randomd.c.
+ (Makefile.am): Add randomd.c to test_log_SOURCES.
+ * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
+ tests/randomf.c.
+ (Makefile.am): Add randomf.c to test_logf_SOURCES.
+ * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
+ tests/randoml.c.
+ (Depends-on): Add 'float'.
+ (Makefile.am): Add randoml.c to test_logl_SOURCES.
+
+2012-03-09 Bruno Haible <bruno@clisp.org>
+
+ logl: Work around OSF/1 5.1 bug.
+ * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
+ * lib/logl.c (logl): If logf exists, use it and provide just the
+ workaround.
+ * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
+ (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
+ * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
+ * modules/math (Makefile.am): Substitute REPLACE_LOGL.
+ * modules/logl (configure.ac): Consider REPLACE_LOGL.
+ (Depends-on): Update conditions.
+ * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
+
+2012-03-09 Bruno Haible <bruno@clisp.org>
+
+ logf: Work around OSF/1 5.1 bug.
+ * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
+ * lib/logf.c (logf): If logf exists, use it and provide just the
+ workaround.
+ * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
+ (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
+ * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
+ * modules/math (Makefile.am): Substitute REPLACE_LOGF.
+ * modules/logf (configure.ac): Consider REPLACE_LOGF.
+ (Depends-on): Update conditions.
+ * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
+
+2012-03-09 Bruno Haible <bruno@clisp.org>
+
+ log: Work around OSF/1 5.1 bug.
+ * lib/math.in.h (log): New declaration.
+ * lib/log.c: New file.
+ * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
+ (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
+ * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
+ (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
+ * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
+ * modules/log (Files): Add lib/log.c.
+ (Depends-on): Add math.
+ (configure.ac): If REPLACE_LOG is 1, compile an override.
+ * tests/test-math-c++.cc: Check the declaration of log.
+ * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
+
+2012-03-09 Jim Meyering <meyering@redhat.com>
+
+ readtokens.c: adjust wording in a comment
+ * lib/readtokens.c: Insert omitted "that" in a comment.
+
+2012-03-08 Paul Eggert <eggert@cs.ucla.edu>
+
+ modechange: add notations +40, 00440, etc.
+ * lib/modechange.c (mode_compile): Support new notations
+ +40, -40, =440, 00440. See <http://debbugs.gnu.org/8391>.
+
+2012-03-08 Bruno Haible <bruno@clisp.org>
+
+ exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
+ * m4/exp2l-ieee.m4: New file.
+ * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
+ test whether exp2l works with a NaN argument and with a negative
+ infinity argument. Replace it if not.
+ * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
+ * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
+ * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
+ * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
+ (Depends-on): Update conditions.
+ * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
+ (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
+ * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
+
+ Tests for module 'exp2l-ieee'.
+ * modules/exp2l-ieee-tests: New file.
+ * tests/test-exp2l-ieee.c: New file.
+
+ New module 'exp2l-ieee'.
+ * modules/exp2l-ieee: New file.
+
+ Tests for module 'exp2-ieee'.
+ * modules/exp2-ieee-tests: New file.
+ * tests/test-exp2-ieee.c: New file.
+
+ New module 'exp2-ieee'.
+ * modules/exp2-ieee: New file.
+
+ Tests for module 'exp2f-ieee'.
+ * modules/exp2f-ieee-tests: New file.
+ * tests/test-exp2f-ieee.c: New file.
+ * tests/test-exp2-ieee.h: New file.
+
+ New module 'exp2f-ieee'.
+ * modules/exp2f-ieee: New file.
+
+2012-03-08 Bruno Haible <bruno@clisp.org>
+
+ Tests for module 'exp2l'.
+ * modules/exp2l-tests: New file.
+ * tests/test-exp2l.c: New file.
+
+ New module 'exp2l'.
+ * lib/math.in.h (exp2l): New declaration.
+ * lib/exp2l.c: New file.
+ * lib/expl-table.c: New file, extracted from lib/expl.c.
+ * lib/expl.c (gl_expl_table): New declaration.
+ (expl): Remove expl_table. Update reference.
+ * m4/exp2l.m4: New file.
+ * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
+ (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
+ * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
+ * modules/exp2l: New file.
+ * modules/expl (Files): Add lib/expl-table.c.
+ (configure.ac): Compile also expl-table.c.
+ * tests/test-math-c++.cc: Check the declaration of exp2l.
+ * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
+ problem.
+
+2012-03-08 Bruno Haible <bruno@clisp.org>
+
+ Tests for module 'exp2f'.
+ * modules/exp2f-tests: New file.
+ * tests/test-exp2f.c: New file.
+
+ New module 'exp2f'.
+ * lib/math.in.h (exp2f): New declaration.
+ * lib/exp2f.c: New file.
+ * m4/exp2f.m4: New file.
+ * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
+ (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
+ * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
+ * modules/exp2f: New file.
+ * tests/test-math-c++.cc: Check the declaration of exp2f.
+ * doc/posix-functions/exp2f.texi: Mention the new module and the
+ IRIX problem.
+
+2012-03-08 Bruno Haible <bruno@clisp.org>
+
+ Tests for module 'exp2'.
+ * modules/exp2-tests: New file.
+ * tests/test-exp2.c: New file.
+ * tests/test-exp2.h: New file.
+
+ New module 'exp2'.
+ * lib/math.in.h (exp2): New declaration.
+ * lib/exp2.c: New file.
+ * m4/exp2.m4: New file.
+ * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
+ (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
+ REPLACE_EXP2.
+ * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
+ REPLACE_EXP2.
+ * modules/exp2: New file.
+ * tests/test-math-c++.cc: Check the declaration of exp2.
+ * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
+ and OpenBSD problems.
+
+2012-03-08 Paul Eggert <eggert@cs.ucla.edu>
+
+ savedir: fix comment typo
+ * lib/savedir.c (savedirstream): Fix typo in comment.
+
+2012-03-08 Bruno Haible <bruno@clisp.org>
+
+ test-readtokens.c: use const; remove unwarranted cast
+ * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
+
+2012-03-08 Bruno Haible <bruno@clisp.org>
+
+ fmal: Avoid compilation error on AIX.
+ * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
+ AIX 5.2..7.1.
+
+2012-03-08 Bruno Haible <bruno@clisp.org>
+
+ fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
+ * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
+ arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
+ * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
+ arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
+ * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
+ arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
+
+2012-03-08 Bruno Haible <bruno@clisp.org>
+
+ remainderf: Override buggy system function on IRIX 6.5.
+ * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
+ (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
+ when it exists.
+ * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
+
+2012-03-08 Jim Meyering <meyering@redhat.com>
+
+ test-readtokens.c: avoid const-related compilation warnings
+ * tests/test-readtokens.c: Avoid const-related compilation warnings.
+
+2012-03-07 Jim Meyering <meyering@redhat.com>
+ Bruno Haible <bruno@clisp.org>
+
+ frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
+ * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
+ tests/randomd.c.
+ (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
+ * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
+ tests/randoml.c.
+ (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
+
+2012-03-07 Bruno Haible <bruno@clisp.org>
+
+ expm1l: Avoid compilation error on AIX.
+ * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
+ AIX 5.2..7.1.
+
+2012-03-07 Bruno Haible <bruno@clisp.org>
+
+ expm1l: Don't override undeclared system function on IRIX 6.5.
+ * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
+ * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
+ it exists. Set HAVE_DECL_EXPM1L.
+ * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
+ HAVE_EXPM1L.
+ * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
+ HAVE_EXPM1L.
+ * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
+
+2012-03-07 Bruno Haible <bruno@clisp.org>
+
+ remainderl: Don't override undeclared system function on IRIX 6.5.
+ * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
+ HAVE_REMAINDERL.
+ * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
+ declared when it exists. Set HAVE_DECL_REMAINDERL.
+ * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
+ not HAVE_REMAINDERL.
+ * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
+ HAVE_REMAINDERL.
+ * doc/posix-functions/remainderl.texi: Mention missing declaration
+ problem.
+
+2012-03-07 Bruno Haible <bruno@clisp.org>
+
+ rintf: Don't override undeclared system function on IRIX 6.5.
+ * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
+ * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
+ exists. Set HAVE_DECL_RINTF.
+ * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
+ HAVE_RINTF.
+ * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
+ HAVE_RINTF.
+ * doc/posix-functions/rintf.texi: Mention missing declaration problem.
+
+2012-03-07 Bruno Haible <bruno@clisp.org>
+
+ roundl: Avoid compilation error on AIX.
+ * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
+ AIX 5.2..7.1.
+
+2012-03-07 Bruno Haible <bruno@clisp.org>
+
+ roundl: Don't override undeclared system function on IRIX 6.5.
+ * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
+ also when it is not declared. Set HAVE_ROUNDL. For replacement code,
+ test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
+ * modules/roundl (configure.ac): For replacement code, test
+ HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
+ (Depends-on): Update conditions.
+ * doc/posix-functions/roundl.texi: Mention the IRIX problem.
+
+2012-03-07 Bruno Haible <bruno@clisp.org>
+
+ roundf: Don't override undeclared system function on IRIX 6.5.
+ * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
+ also when it is not declared. Set HAVE_ROUNDF. For replacement code,
+ test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
+ * modules/roundf (configure.ac): For replacement code, test
+ HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
+ (Depends-on): Update conditions.
+ * modules/roundf-ieee (Depends-on): Update conditions.
+ * doc/posix-functions/roundf.texi: Mention the IRIX problem.
+
+2012-03-07 Bruno Haible <bruno@clisp.org>
+
+ round: Don't override undeclared system function on IRIX 6.5.
+ * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
+ argument.
+ * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
+ also when it is not declared. Set HAVE_ROUND. For replacement code,
+ test HAVE_ROUND, not HAVE_DECL_ROUND.
+ * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
+ not HAVE_DECL_ROUND.
+ (Depends-on): Update conditions.
+ * modules/round-ieee (Depends-on): Update conditions.
+ * doc/posix-functions/round.texi: Mention the IRIX problem.
+
+2012-03-07 Bruno Haible <bruno@clisp.org>
+
+ copysignf: Don't override undeclared system function on IRIX 6.5.
+ * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
+ HAVE_COPYSIGNF.
+ * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
+ declared when it exists. Set HAVE_DECL_COPYSIGNF.
+ * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
+ not HAVE_COPYSIGNF.
+ * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
+ HAVE_COPYSIGNF.
+ * doc/posix-functions/copysignf.texi: Mention missing declaration
+ problem.
+
+2012-03-07 Jim Meyering <meyering@redhat.com>
+
+ readtokens: add tests
+ * modules/readtokens-tests: New file.
+ * tests/test-readtokens.c: New file.
+
+2012-03-07 Jim Meyering <meyering@redhat.com>
+
+ quotearg: the module must now include quote.h
+ With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
+ So must the module.
+ * modules/quotearg (Files): Add quote.h.
+
+2012-03-06 Paul Eggert <eggert@cs.ucla.edu>
+
+ readtokens: avoid core dumps with unusual calling patterns
+ Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
+ * lib/readtokens.c: Include limits.h.
+ (word, bits_per_word, get_nth_bit, set_nth_bit): New.
+ (readtoken): Don't cache the delimiters; the cache code was buggy
+ if !delim && saved_delim, or if the new n_delim differs from the old.
+ Also, it wasn't thread-safe.
+
+2012-03-07 Bruno Haible <bruno@clisp.org>
+
+ quote: Adhere to common module description layout.
+ * modules/quote (Makefile.am): Add back empty section.
+
+2012-03-06 Akim Demaille <demaille@gostai.com>
+
+ quote: fuse into quotearg
+ This patch is made for the benefit of Bison.
+ quote does not leave the choice of the quoting style to the user.
+ quoting_style provides poor customizability, yet quoting_options,
+ which is very rich, is hidden inside quotearg.c. So in order to
+ allow quote customization, move its implementation to quotearg.c.
+ * lib/quote.c: Remove.
+ * modules/quote: Adjust.
+ * lib/quotearg.c (quoting_options_from_style): Fix a compiler
+ warning: provide all the members of literal structs.
+ (quote_quoting_options): New.
+ (quote, quote_n): Import implementation from quote.c.
+ * lib/quote.h: Import the comments from quote.c.
+ (quote_quoting_options): New.
+
2012-03-06 Bruno Haible <bruno@clisp.org>
+ Tests for module 'expm1l-ieee'.
+ * modules/expm1l-ieee-tests: New file.
+ * tests/test-expm1l-ieee.c: New file.
+
New module 'expm1l-ieee'.
* modules/expm1l-ieee: New file.
(main): Skip the test if sethostname() fails with EPERM. On Windows
platforms, don't check the result of gethostname().
+>>>>>>> snapshot-start
2011-12-04 Bruno Haible <bruno@clisp.org>
Jim Meyering <meyering@redhat.com>
tests: Avoid spurious error message on platforms without mktemp program.
* tests/init.sh (mktempd_): Run mktemp in a subcommand.
+<<<<<<< HEAD
+=======
2011-12-04 Bruno Haible <bruno@clisp.org>
sethostname: Fix documentation.
* m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
macro so it can be used by the pending sethostname module.
+>>>>>>> snapshot-start
2011-12-03 Bruno Haible <bruno@clisp.org>
Fix module descriptions syntax.