emacs-devel
[Top][All Lists]
Advanced

[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: Paul Eggert
Subject: Re: [Emacs-diffs] trunk r117846: Add macros to allocate temporary Lisp objects with alloca.
Date: Tue, 09 Sep 2014 08:10:11 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0

Dmitry Antipov wrote:
No ideas why alignas (X) is designed in such a way.

You'll have to ask the committee. :-) For C11, the C standardization committee decided to allow alignas only when declaring objects; alignas cannot be used in typedefs or in the definitions of structures. Emacs prefers alignas when it works, since alignas is standardized and is more likely to be portable, but for this particular feature (an aligned structure type) Emacs uses a GCC extension instead, since there's no way to do it in the standard.

I'll try to review the code carefully soon.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]