aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorPaul Eggert2011-10-07 10:03:24 -0700
committerPaul Eggert2011-10-07 10:03:24 -0700
commit41ec903a1c8c01c516463795c1053770f47f8877 (patch)
treea925c2b683ea329806797c5731974162346fab49 /src/alloc.c
parenteb106a49bfc8da14c7a6ea866361c1b2d972a754 (diff)
parent84e8e185cdabbe547cb2b724c2ca1014a73efcfc (diff)
downloademacs-41ec903a1c8c01c516463795c1053770f47f8877.tar.gz
emacs-41ec903a1c8c01c516463795c1053770f47f8877.zip
Merge from trunk.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 18a248567a1..ea2fea77e29 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -4236,6 +4236,11 @@ mark_maybe_pointer (void *p)
4236} 4236}
4237 4237
4238 4238
4239/* Alignment of Lisp_Object and pointer values. Use offsetof, as it
4240 sometimes returns a smaller alignment than GCC's __alignof__ and
4241 mark_memory might miss objects if __alignof__ were used. For
4242 example, on x86 with WIDE_EMACS_INT, __alignof__ (Lisp_Object) is 8
4243 but GC_LISP_OBJECT_ALIGNMENT should be 4. */
4239#ifndef GC_LISP_OBJECT_ALIGNMENT 4244#ifndef GC_LISP_OBJECT_ALIGNMENT
4240# define GC_LISP_OBJECT_ALIGNMENT offsetof (struct {char a; Lisp_Object b;}, b) 4245# define GC_LISP_OBJECT_ALIGNMENT offsetof (struct {char a; Lisp_Object b;}, b)
4241#endif 4246#endif