Port to 32-bit Sun C 5.12 sparc

* make-docfile.c (close_emacs_globals): Align lispsym to GCALIGNMENT.
The alignment is required on all platforms; it just happens to have
been properly aligned on the previous platforms we tested.
This commit is contained in:
Paul Eggert
2015-01-10 13:35:33 -08:00
parent 29eaf3c8a8
commit 288e1fd737
3 changed files with 10 additions and 3 deletions

View File

@@ -1,3 +1,10 @@
2015-01-10 Paul Eggert <eggert@cs.ucla.edu>
Port to 32-bit Sun C 5.12 sparc
* make-docfile.c (close_emacs_globals): Align lispsym to GCALIGNMENT.
The alignment is required on all platforms; it just happens to have
been properly aligned on the previous platforms we tested.
2015-01-05 Paul Eggert <eggert@cs.ucla.edu>
Use 0 for Qnil

View File

@@ -635,7 +635,7 @@ close_emacs_globals (int num_symbols)
"#ifndef DEFINE_SYMBOLS\n"
"extern\n"
"#endif\n"
"struct Lisp_Symbol lispsym[%d];\n"),
"struct Lisp_Symbol alignas (GCALIGNMENT) lispsym[%d];\n"),
num_symbols);
}

View File

@@ -233,8 +233,8 @@ extern bool suppress_checking EXTERNALLY_VISIBLE;
USE_LSB_TAG not only requires the least 3 bits of pointers returned by
malloc to be 0 but also needs to be able to impose a mult-of-8 alignment
on the few static Lisp_Objects used: all the defsubr as well
as the two special buffers buffer_defaults and buffer_local_symbols. */
on the few static Lisp_Objects used: lispsym, all the defsubr, and
the two special buffers buffer_defaults and buffer_local_symbols. */
enum Lisp_Bits
{