emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/alloc.c


From: Dave Love
Subject: [Emacs-diffs] Changes to emacs/src/alloc.c
Date: Fri, 24 Jan 2003 07:24:13 -0500

Index: emacs/src/alloc.c
diff -c emacs/src/alloc.c:1.289 emacs/src/alloc.c:1.290
*** emacs/src/alloc.c:1.289     Tue Jan 21 11:56:13 2003
--- emacs/src/alloc.c   Fri Jan 24 07:24:13 2003
***************
*** 3774,3779 ****
--- 3774,3782 ----
  
    /* 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");
  #endif
***************
*** 3804,3810 ****
--- 3807,3817 ----
       that's not the case, something has to be done here to iterate
       over the stack segments.  */
  #ifndef GC_LISP_OBJECT_ALIGNMENT
+ #ifdef __GNUC__
+ #define GC_LISP_OBJECT_ALIGNMENT __alignof__ (Lisp_Object)
+ #else
  #define GC_LISP_OBJECT_ALIGNMENT sizeof (Lisp_Object)
+ #endif
  #endif
    for (i = 0; i < sizeof (Lisp_Object); i += GC_LISP_OBJECT_ALIGNMENT)
      mark_memory ((char *) stack_base + i, end);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]