tests: avoid gcc warnings about argv vs. const initializers
[gnulib.git] / ChangeLog
index 2a91f54..7b67d0f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,316 @@
+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.