Fix alignment portability problems
commit6b08ad5263bc063c79666ffe2bd5ed9ab77a00a0
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 2 Nov 2017 20:06:38 +0000 (2 13:06 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 2 Nov 2017 20:21:33 +0000 (2 13:21 -0700)
treec31fb8bdc9d639cc96982aa4718d74f4cc0e0397
parenta9f8706fa8fba5289e910fd55841b0952410d558
Fix alignment portability problems

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.
lib-src/make-docfile.c
src/alloc.c
src/buffer.c
src/lisp.h
src/thread.c