Help GCC to do better code generation.
[gnulib.git] / ChangeLog
index a96ef80..d53d6dd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,162 @@
+2008-05-14  Bruno Haible  <bruno@clisp.org>
+
+       Help GCC to do better code generation.
+       * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
+       * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
+       * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
+       (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
+       Declare with attribute 'malloc' if supported.
+
+2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
+
+       use "echo STR|wc -c" rather than unportable "expr length STR"
+       * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
+       OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
+
+2008-05-14  Jim Meyering  <meyering@redhat.com>
+
+       use dd ibs=$n count=1 ... rather than less-portable head -c$n
+       * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
+       by Solaris 10's /bin/head or by the one from HP-UX 11.x.
+       Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
+       via Collin Lasse.
+
+2008-05-14  Eric Blake  <ebb9@byu.net>
+
+       Avoid quadratic growth in gl_LIBSOURCES.
+       * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
+       Suggested by Bruno Haible.
+
+       Test xmemdup0.
+       * modules/xmemdup0-tests: New file.
+       * tests/test-xmemdup0.c: Likewise.
+
+2008-05-13  Eric Blake  <ebb9@byu.net>
+
+       Split xmemdup0 into its own module.
+       * modules/xmemdup0: New file.
+       * lib/xmemdup0.h: Likewise.
+       * lib/xmemdup0.c: Likewise.
+       * MODULES.html.sh (Memory management functions): Add xmemdup0.
+       * lib/xalloc.h (xmemdup0): Remove.
+       * lib/xmalloc.c (xmemdup0): Likewise.
+
+2008-05-13  Eric Blake  <ebb9@byu.net>
+            Bruno Haible  <bruno@clisp.org>
+
+       Reduce number of forks required during autoconf.
+       * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
+       and gl_LIBSOURCES_DIR.
+       (func_emit_initmacro_end): Use them here in a single m4_syscmd...
+       (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
+       m4_syscmd per file.
+       <m4_foreach_w>: Move...
+       * m4/gnulib-common.m4 (m4_foreach_w): ...here.
+
+2008-05-13  Eric Blake  <ebb9@byu.net>
+
+       * gnulib-tool: Fix various comment typos.
+
+2008-05-12  Bruno Haible  <bruno@clisp.org>
+
+       Tailor the linebreaking algorithm.
+       * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
+
+2008-05-12  Bruno Haible  <bruno@clisp.org>
+
+       Update to Unicode 5.0.0.
+       * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
+       LBP_JV, LBP_JT. Redistribute values.
+       (unilbrk_table): Change size.
+       * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
+       Unicode TR#14 rev. 22.
+       * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
+       LBP_JV, LBP_JT. Redistribute values.
+       (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
+       (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
+       Update.
+       * lib/unilbrk/lbrkprop1.h: Regenerated.
+       * lib/unilbrk/lbrkprop2.h: Regenerated.
+       * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
+       Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
+       * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
+       Likewise.
+       * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
+       Likewise.
+       * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
+       result.
+       * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
+       * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
+       * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
+       * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
+       * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
+       * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
+
+2008-05-11  Bruno Haible  <bruno@clisp.org>
+
+       * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
+
+2008-05-11  Bruno Haible  <bruno@clisp.org>
+
+       * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
+       * modules/unilbrk/gen-lbrk: New file.
+
+2008-05-11  Bruno Haible  <bruno@clisp.org>
+
+       * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
+       * m4/sha512.m4 (gl_SHA512): Likewise.
+
+2008-05-11  Jim Meyering  <meyering@redhat.com>
+
+       New modules: crypto/sha256, crypto/sha512 (from coreutils)
+       * modules/crypto/sha256: New file.
+       * modules/crypto/sha512: Likewise.
+       * lib/sha256.c: Likewise.
+       * lib/sha256.h: Likewise.
+       * lib/sha512.c: Likewise.
+       * lib/sha512.h: Likewise.
+       * lib/u64.h: Likewise.
+       * m4/sha256.m4: Likewise.
+       * m4/sha512.m4: Likewise.
+       * MODULES.html.sh (Cryptographic computations (low-level)): List them.
+
+2008-05-10  Bruno Haible  <bruno@clisp.org>
+
+       * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
+       (Input/Output <stdio.h>): Add xprintf.
+       (Signal handling <signal.h>): Add strsignal.
+       (Cryptographic computations (high-level)): Add crypto/gc-camellia.
+       (Core language properties): Add func.
+       (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
+       (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
+       strings.
+       (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
+       (Input/output): New section.
+       (File system functions): Add openat-die, stat-macros.
+       (Networking functions): Add sockets.
+       (Unicode string functions): Add unictype/*.
+       (Support for building libraries and executables): Add gperf.
+       (Support for building documentation): Add agpl-3.0.
+       (Misc): Add nocrash.
+
+2008-05-10  Bruno Haible  <bruno@clisp.org>
+
+       * modules/unictype/gen-ctype: New file.
+
+2008-05-10  Jim Meyering  <meyering@redhat.com>
+
+       Make chdir-safer.c more efficient on a system with no symlinks.
+       * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
+       also if ELOOP is zero.  Suggested by Bruno Haible.
+
+       Make chdir-safer.c slightly safer.
+       * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
+       not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
+
+       Avoid compile failure on systems without ELOOP (like mingw).
+       * lib/chdir-safer.c (ELOOP): Define if not already defined.
+       Reported by Bruno Haible.
+
 2008-05-10  Bruno Haible  <bruno@clisp.org>
 
        * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.