[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] trunk r117846: Add macros to allocate temporary Lisp o
From: |
Dmitry Antipov |
Subject: |
Re: [Emacs-diffs] trunk r117846: Add macros to allocate temporary Lisp objects with alloca. |
Date: |
Tue, 09 Sep 2014 18:16:43 +0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 |
On 09/09/2014 05:13 PM, Stefan Monnier wrote:
Any reason you don't use the `alignas' we already use/check just above?
An existing code uses alignas (X) for variable declaration,
not for type declaration. If I try the latter, I see:
=== modified file 'src/lisp.h'
--- src/lisp.h 2014-09-09 11:43:22 +0000
+++ src/lisp.h 2014-09-09 14:09:45 +0000
@@ -1023,7 +1023,7 @@
typedef struct interval *INTERVAL;
-struct GCALIGNED Lisp_Cons
+struct alignas (GCALIGNMENT) Lisp_Cons
{
/* Car of this cons cell. */
Lisp_Object car;
==>
../../trunk/src/lisp.h:1026:8: error: expected ‘{’ before ‘_Alignas’
struct alignas (GCALIGNMENT) Lisp_Cons
^
No ideas why alignas (X) is designed in such a way. Paul?
Dmitry