diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/alloc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c index f4db3abbd93..09ef4b085df 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -4235,6 +4235,11 @@ mark_maybe_pointer (void *p) | |||
| 4235 | } | 4235 | } |
| 4236 | 4236 | ||
| 4237 | 4237 | ||
| 4238 | /* Alignment of Lisp_Object and pointer values. Use offsetof, as it | ||
| 4239 | sometimes returns a smaller alignment than GCC's __alignof__ and | ||
| 4240 | mark_memory might miss objects if __alignof__ were used. For | ||
| 4241 | example, on x86 with WIDE_EMACS_INT, __alignof__ (Lisp_Object) is 8 | ||
| 4242 | but GC_LISP_OBJECT_ALIGNMENT should be 4. */ | ||
| 4238 | #ifndef GC_LISP_OBJECT_ALIGNMENT | 4243 | #ifndef GC_LISP_OBJECT_ALIGNMENT |
| 4239 | # define GC_LISP_OBJECT_ALIGNMENT offsetof (struct {char a; Lisp_Object b;}, b) | 4244 | # define GC_LISP_OBJECT_ALIGNMENT offsetof (struct {char a; Lisp_Object b;}, b) |
| 4240 | #endif | 4245 | #endif |