diff options
| author | Paul Eggert | 2011-09-29 20:25:46 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-09-29 20:25:46 -0700 |
| commit | cb993c584c8ef91f5352ec9aa97d26fd76cfd643 (patch) | |
| tree | 923b3bcb5b390d9b3d5f34e941b29f4d80f13477 /src/ChangeLog | |
| parent | 5f91c1e5303017cad6ed7d7d903440b3328fe7ff (diff) | |
| download | emacs-cb993c584c8ef91f5352ec9aa97d26fd76cfd643.tar.gz emacs-cb993c584c8ef91f5352ec9aa97d26fd76cfd643.zip | |
Port --enable-checking=all to Fedora 14 x86.
* alloc.c (XMALLOC_OVERRUN_CHECK_OVERHEAD, XMALLOC_OVERRUN_CHECK_SIZE):
Move to lisp.h.
(xmalloc_put_size, xmalloc_get_size, overrun_check_malloc)
(overrun_check_realloc, overrun_check_free):
Use XMALLOC_OVERRUN_SIZE_SIZE, not sizeof (size_t).
That way, xmalloc returns a properly-aligned pointer even if
XMALLOC_OVERRUN_CHECK is defined. The old debugging code happened
to align OK on typical 64-bit hosts, but not on Fedora 14 x86.
* charset.c (syms_of_charset): Take XMALLOC_OVERRUN_CHECK_OVERHEAD
into account when calculating the initial malloc maximum.
* lisp.h (XMALLOC_OVERRUN_CHECK_OVERHEAD, XMALLOC_OVERRUN_CHECK_SIZE):
Move here from alloc.c, so that charset.c can use it too.
Properly align; the old code wasn't right for common 32-bit hosts
when configured with --enable-checking=all.
(XMALLOC_BASE_ALIGNMENT, COMMON_MULTIPLE, XMALLOC_HEADER_ALIGNMENT)
(XMALLOC_OVERRUN_SIZE_SIZE): New macros.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index dcbeffac1b4..d6e5390c84f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,23 @@ | |||
| 1 | 2011-09-30 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Port --enable-checking=all to Fedora 14 x86. | ||
| 4 | * alloc.c (XMALLOC_OVERRUN_CHECK_OVERHEAD, XMALLOC_OVERRUN_CHECK_SIZE): | ||
| 5 | Move to lisp.h. | ||
| 6 | (xmalloc_put_size, xmalloc_get_size, overrun_check_malloc) | ||
| 7 | (overrun_check_realloc, overrun_check_free): | ||
| 8 | Use XMALLOC_OVERRUN_SIZE_SIZE, not sizeof (size_t). | ||
| 9 | That way, xmalloc returns a properly-aligned pointer even if | ||
| 10 | XMALLOC_OVERRUN_CHECK is defined. The old debugging code happened | ||
| 11 | to align OK on typical 64-bit hosts, but not on Fedora 14 x86. | ||
| 12 | * charset.c (syms_of_charset): Take XMALLOC_OVERRUN_CHECK_OVERHEAD | ||
| 13 | into account when calculating the initial malloc maximum. | ||
| 14 | * lisp.h (XMALLOC_OVERRUN_CHECK_OVERHEAD, XMALLOC_OVERRUN_CHECK_SIZE): | ||
| 15 | Move here from alloc.c, so that charset.c can use it too. | ||
| 16 | Properly align; the old code wasn't right for common 32-bit hosts | ||
| 17 | when configured with --enable-checking=all. | ||
| 18 | (XMALLOC_BASE_ALIGNMENT, COMMON_MULTIPLE, XMALLOC_HEADER_ALIGNMENT) | ||
| 19 | (XMALLOC_OVERRUN_SIZE_SIZE): New macros. | ||
| 20 | |||
| 1 | 2011-09-29 Eli Zaretskii <eliz@gnu.org> | 21 | 2011-09-29 Eli Zaretskii <eliz@gnu.org> |
| 2 | 22 | ||
| 3 | * sysdep.c (snprintf) [EOVERFLOW]: If EOVERFLOW is not defined, | 23 | * sysdep.c (snprintf) [EOVERFLOW]: If EOVERFLOW is not defined, |