aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2015-01-10 13:35:33 -0800
committerPaul Eggert2015-01-10 13:42:34 -0800
commit288e1fd737265b7fc20c2c0d5a7b4ffaf26ecf66 (patch)
tree1197aa1287f43c24c3395ad16b8082c0bd5057d0
parent29eaf3c8a8c7b22e34a6183fec5343d82762f590 (diff)
downloademacs-288e1fd737265b7fc20c2c0d5a7b4ffaf26ecf66.tar.gz
emacs-288e1fd737265b7fc20c2c0d5a7b4ffaf26ecf66.zip
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.
-rw-r--r--lib-src/ChangeLog7
-rw-r--r--lib-src/make-docfile.c2
-rw-r--r--src/lisp.h4
3 files changed, 10 insertions, 3 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 9a1fc7a3e9f..ec4d16aaabe 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,10 @@
12015-01-10 Paul Eggert <eggert@cs.ucla.edu>
2
3 Port to 32-bit Sun C 5.12 sparc
4 * make-docfile.c (close_emacs_globals): Align lispsym to GCALIGNMENT.
5 The alignment is required on all platforms; it just happens to have
6 been properly aligned on the previous platforms we tested.
7
12015-01-05 Paul Eggert <eggert@cs.ucla.edu> 82015-01-05 Paul Eggert <eggert@cs.ucla.edu>
2 9
3 Use 0 for Qnil 10 Use 0 for Qnil
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c
index 22c4bad2e3f..7c5c4bcb865 100644
--- a/lib-src/make-docfile.c
+++ b/lib-src/make-docfile.c
@@ -635,7 +635,7 @@ close_emacs_globals (int num_symbols)
635 "#ifndef DEFINE_SYMBOLS\n" 635 "#ifndef DEFINE_SYMBOLS\n"
636 "extern\n" 636 "extern\n"
637 "#endif\n" 637 "#endif\n"
638 "struct Lisp_Symbol lispsym[%d];\n"), 638 "struct Lisp_Symbol alignas (GCALIGNMENT) lispsym[%d];\n"),
639 num_symbols); 639 num_symbols);
640} 640}
641 641
diff --git a/src/lisp.h b/src/lisp.h
index 9819e0746d5..ab72bf158a4 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -233,8 +233,8 @@ extern bool suppress_checking EXTERNALLY_VISIBLE;
233 233
234 USE_LSB_TAG not only requires the least 3 bits of pointers returned by 234 USE_LSB_TAG not only requires the least 3 bits of pointers returned by
235 malloc to be 0 but also needs to be able to impose a mult-of-8 alignment 235 malloc to be 0 but also needs to be able to impose a mult-of-8 alignment
236 on the few static Lisp_Objects used: all the defsubr as well 236 on the few static Lisp_Objects used: lispsym, all the defsubr, and
237 as the two special buffers buffer_defaults and buffer_local_symbols. */ 237 the two special buffers buffer_defaults and buffer_local_symbols. */
238 238
239enum Lisp_Bits 239enum Lisp_Bits
240 { 240 {