diff options
| author | Paul Eggert | 2017-11-08 19:11:18 -0800 |
|---|---|---|
| committer | Paul Eggert | 2017-11-08 19:12:02 -0800 |
| commit | 9e59de9449b53c3ecd85b624c11360ba9cafee75 (patch) | |
| tree | 6a5f27fb3679aefe1cf69e4ce070ef99cdebf7fa /src/thread.c | |
| parent | b9d7c902603a49d2624bdd35efdfba1785a4bce5 (diff) | |
| download | emacs-9e59de9449b53c3ecd85b624c11360ba9cafee75.tar.gz 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 'src/thread.c')
| -rw-r--r-- | src/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread.c b/src/thread.c index 03f5b31855e..7335833cf94 100644 --- a/src/thread.c +++ b/src/thread.c | |||
| @@ -26,7 +26,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 26 | #include "coding.h" | 26 | #include "coding.h" |
| 27 | #include "syssignal.h" | 27 | #include "syssignal.h" |
| 28 | 28 | ||
| 29 | static struct thread_state GCALIGNED main_thread; | 29 | static struct GCALIGNED thread_state main_thread; |
| 30 | 30 | ||
| 31 | struct thread_state *current_thread = &main_thread; | 31 | struct thread_state *current_thread = &main_thread; |
| 32 | 32 | ||