aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2013-11-06 21:31:04 -0800
committerPaul Eggert2013-11-06 21:31:04 -0800
commitaea07e2c6e54733804d0be54e97d44fcb3df63dd (patch)
tree1f84e37d28aa136603322428a81c2f0046bf9844 /src/ChangeLog
parente6e4db3cac4630fc83e4bc520f99823572c3e592 (diff)
downloademacs-aea07e2c6e54733804d0be54e97d44fcb3df63dd.tar.gz
emacs-aea07e2c6e54733804d0be54e97d44fcb3df63dd.zip
Port to C11 aligned_alloc, and fix some integer overflows.
* configure.ac (GMALLOC_OBJ): Initialize to empty if !system_malloc and doug_lea_malloc. (aligned_alloc): Test for existence if !GMALLOC_OBJ and not darwin. (posix_memalign): Test for existence only if !GMALLOC_OBJ and not darwin and !aligned_alloc. * src/alloc.c (USE_ALIGNED_ALLOC): New symbol. (USE_POSIX_MEMALIGN): Remove. All uses replaced with USE_ALIGNED_ALLOC, and use of posix_memalign replaced with aligned_alloc. (aligned_alloc): New function, defined or declared as needed. * src/conf_post.h (HAVE_POSIX_MEMALIGN) [DARWIN_OS]: Don't undef; configure.ac now does this. * src/gmalloc.c (aligned_alloc) [MSDOS]: New decl. (calloc, aligned_alloc): Check for integer overflow. (aligned_alloc): Rename from memalign. All uses changed. (memalign): New function, an alias for aligned_alloc.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d008f670867..2f774b87b13 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,17 @@
12013-11-07 Paul Eggert <eggert@cs.ucla.edu>
2
3 Port to C11 aligned_alloc, and fix some integer overflows.
4 * alloc.c (USE_ALIGNED_ALLOC): New symbol.
5 (USE_POSIX_MEMALIGN): Remove. All uses replaced with USE_ALIGNED_ALLOC,
6 and use of posix_memalign replaced with aligned_alloc.
7 (aligned_alloc): New function, defined or declared as needed.
8 * conf_post.h (HAVE_POSIX_MEMALIGN) [DARWIN_OS]:
9 Don't undef; configure.ac now does this.
10 * gmalloc.c (aligned_alloc) [MSDOS]: New decl.
11 (calloc, aligned_alloc): Check for integer overflow.
12 (aligned_alloc): Rename from memalign. All uses changed.
13 (memalign): New function, an alias for aligned_alloc.
14
12013-11-06 Stefan Monnier <monnier@iro.umontreal.ca> 152013-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2 16
3 * xdisp.c (redisplay_internal): Fix typo in last change. 17 * xdisp.c (redisplay_internal): Fix typo in last change.