summaryrefslogtreecommitdiff
path: root/lib-src/make-docfile.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2017-11-08 19:11:18 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2017-11-08 19:12:02 -0800
commit9e59de9449b53c3ecd85b624c11360ba9cafee75 (patch)
tree6a5f27fb3679aefe1cf69e4ce070ef99cdebf7fa /lib-src/make-docfile.c
parentb9d7c902603a49d2624bdd35efdfba1785a4bce5 (diff)
downloademacs-9e59de9449b53c3ecd85b624c11360ba9cafee75.tar.gz
emacs-9e59de9449b53c3ecd85b624c11360ba9cafee75.tar.bz2
emacs-9e59de9449b53c3ecd85b624c11360ba9cafee75.zip
Use GCALIGNED properly for GCC
Apparently GCC requires that ‘__attribute__ ((aligned (8)))’ must immediately follow the ‘struct’ keyword when aligning a structure. The attribute silently does not work if it follows a tag after the ‘struct’ keyword. Who knew? Anyway, this patch is designed to fix a SIGSEGV problem reported by John Mastro (Bug#29183). * 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): Put 'GCALIGNED' immediately after 'struct'.
Diffstat (limited to 'lib-src/make-docfile.c')
-rw-r--r--lib-src/make-docfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c
index 0ea3f7b6b6a..ff84df94a69 100644
--- a/lib-src/make-docfile.c
+++ b/lib-src/make-docfile.c
@@ -668,7 +668,7 @@ close_emacs_globals (ptrdiff_t num_symbols)
"extern\n"
"#endif\n"
"struct {\n"
- " struct Lisp_Symbol GCALIGNED s;\n"
+ " struct GCALIGNED Lisp_Symbol s;\n"
"} lispsym[%td];\n"),
num_symbols);
}