aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2011-10-07 00:23:44 -0700
committerPaul Eggert2011-10-07 00:23:44 -0700
commit7c5ee88ecb336a2deac1c1b98753f08ef0a2bd1c (patch)
tree10a208e0778b6ca9d376b8c879ff23b28deb1d30 /src/ChangeLog
parent21ce8245145810da59c854a172900894f22c175c (diff)
downloademacs-7c5ee88ecb336a2deac1c1b98753f08ef0a2bd1c.tar.gz
emacs-7c5ee88ecb336a2deac1c1b98753f08ef0a2bd1c.zip
Fix alignment-related core dump during GC.
* configure.in (GC_LISP_OBJECT_ALIGNMENT): Remove. This is now done by src/alloc.c. * src/alloc.c (GC_LISP_OBJECT_ALIGNMENT): Use offsetof, not __alignof__ or sizeof. __alignof__ gives the wrong answer on Fedora x86-64 with GCC 4.6.1 when configured with CC='gcc -m32' --with-wide-int; this makes Emacs dump core during garbage collection on rare occasions. sizeof is obviously inferior to offsetof here, so stick with offsetof. (GC_POINTER_ALIGNMENT): New macro. (mark_memory): Omit 3rd (offset) arg; caller changed. Don't assume EMACS_INT alignment is the same as pointer alignment.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b697ee43376..d2c069b7351 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,15 @@
12011-10-07 Paul Eggert <eggert@cs.ucla.edu>
2
3 * alloc.c (GC_LISP_OBJECT_ALIGNMENT): Use offsetof, not __alignof__
4 or sizeof. __alignof__ gives the wrong answer on Fedora x86-64
5 with GCC 4.6.1 when configured with CC='gcc -m32' --with-wide-int;
6 this makes Emacs dump core during garbage collection on rare
7 occasions. sizeof is obviously inferior to offsetof here, so
8 stick with offsetof.
9 (GC_POINTER_ALIGNMENT): New macro.
10 (mark_memory): Omit 3rd (offset) arg; caller changed.
11 Don't assume EMACS_INT alignment is the same as pointer alignment.
12
12011-10-03 Stefan Monnier <monnier@iro.umontreal.ca> 132011-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
2 14
3 * keyboard.c (read_key_sequence_remapped): New var. 15 * keyboard.c (read_key_sequence_remapped): New var.