Commit 422eec7e authored by Dave Love's avatar Dave Love

(mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:

Use __alignof__.
parent e7b6b572
2003-01-24 Dave Love <>
* s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
* alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
Use __alignof__.
2003-01-24 Kenichi Handa <>
* keyboard.c (adjust_point_for_property): New second arg MODIFIED.
......@@ -3774,6 +3774,9 @@ mark_stack ()
/* This trick flushes the register windows so that all the state of
the process is contained in the stack. */
/* Fixme: Code in the Boehm GC sugests flushing (with `flushrs') is
needed on ia64 too. See mach_dep.c, where it also says inline
assembler doesn't work with relevant proprietary compilers. */
#ifdef sparc
asm ("ta 3");
......@@ -3804,7 +3807,11 @@ mark_stack ()
that's not the case, something has to be done here to iterate
over the stack segments. */
#ifdef __GNUC__
#define GC_LISP_OBJECT_ALIGNMENT __alignof__ (Lisp_Object)
#define GC_LISP_OBJECT_ALIGNMENT sizeof (Lisp_Object)
for (i = 0; i < sizeof (Lisp_Object); i += GC_LISP_OBJECT_ALIGNMENT)
mark_memory ((char *) stack_base + i, end);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment