]> code.delx.au - gnu-emacs/commitdiff
Port to 32-bit Sun C 5.12 sparc
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 10 Jan 2015 21:35:33 +0000 (13:35 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 10 Jan 2015 21:42:34 +0000 (13:42 -0800)
* 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.

lib-src/ChangeLog
lib-src/make-docfile.c
src/lisp.h

index 9a1fc7a3e9fa3b2cfe281dcdc2319f8407b572d0..ec4d16aaabe5d683c43b4faa485433cac8530804 100644 (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
index 22c4bad2e3f5839f552fc9bef673bd4b898ecff6..7c5c4bcb865a48b827cc3ca5b8305dc2efd790a4 100644 (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);
 }
 
index 9819e0746d511c3cbacf21357b2d25f115ade937..ab72bf158a413453b126a37ad8b0a12cb8e12785 100644 (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
   {