• Paul Eggert's avatar
    Fix alignment portability problems · 6b08ad52
    Paul Eggert authored
    Do not assume that the natural alignment of Lisp objects is a
    multiple of GCALIGNMENT.  This improves on the portability of the
    recent fix for Bug#29040.
    * lib-src/make-docfile.c (close_emacs_globals):
    * src/buffer.c (buffer_defaults, buffer_local_symbols):
    * src/lisp.h (DEFUN):
    * src/thread.c (main_thread):
    Use GCALIGNED, not alignas (GCALIGNMENT).
    * src/alloc.c (COMMON_MULTIPLE):
    Move back here from lisp.h, since it is no longer used elsewhere.
    * src/lisp.h (GCALIGNMENT): No longer a macro, since we need not
    worry about MSVC.  Omit no-longer-needed consistency check.
    * src/thread.c (THREAD_ALIGNMENT): Remove.
    6b08ad52
buffer.c 204 KB