From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] trunk r117846: Add macros to allocate temporary Lisp objects with alloca. Date: Tue, 09 Sep 2014 18:16:43 +0400 Message-ID: <540F0BCB.4030506@yandex.ru> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1410272268 9456 80.91.229.3 (9 Sep 2014 14:17:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Sep 2014 14:17:48 +0000 (UTC) Cc: Paul Eggert , Emacs development discussions To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 09 16:17:41 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XRMEm-0000SC-GG for ged-emacs-devel@m.gmane.org; Tue, 09 Sep 2014 16:17:40 +0200 Original-Received: from localhost ([::1]:50018 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRMEl-00041G-Lm for ged-emacs-devel@m.gmane.org; Tue, 09 Sep 2014 10:17:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRMEO-00040J-J4 for emacs-devel@gnu.org; Tue, 09 Sep 2014 10:17:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRMEH-0000Rj-K1 for emacs-devel@gnu.org; Tue, 09 Sep 2014 10:17:16 -0400 Original-Received: from forward1l.mail.yandex.net ([84.201.143.144]:60951) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRMEH-0000Nw-8J for emacs-devel@gnu.org; Tue, 09 Sep 2014 10:17:09 -0400 Original-Received: from smtp19.mail.yandex.net (smtp19.mail.yandex.net [95.108.252.19]) by forward1l.mail.yandex.net (Yandex) with ESMTP id 7E5161521BD1; Tue, 9 Sep 2014 18:16:44 +0400 (MSK) Original-Received: from smtp19.mail.yandex.net (localhost [127.0.0.1]) by smtp19.mail.yandex.net (Yandex) with ESMTP id E0A14BE00E3; Tue, 9 Sep 2014 18:16:43 +0400 (MSK) Original-Received: from unknown (unknown [37.139.80.10]) by smtp19.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id VUH0XoqFEU-GhReQWaJ; Tue, 9 Sep 2014 18:16:43 +0400 (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: e46673f6-0878-4934-82fc-4c407b0dc25e DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1410272203; bh=gki1CFt1/vkWtzAk5jMgxdSzM1YSeKPAYyGfkKhaNKw=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=HBQ+ipMMcSb4uxUd3C4G0YR5W33ah0zNs5oaR6caikCb8jcpp9brWeEdwxX54aRDO fbx5NazgnIU4TgxUoHlwXL9VZ9+cXEWWVCFa5tMEJHcXiku5M6PSFIeeaSOg3SUnr9 m1h3ktGRAeCqVNqE2qch+KYDFB2kCUHPju93QK/Y= Authentication-Results: smtp19.mail.yandex.net; dkim=pass header.i=@yandex.ru User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 84.201.143.144 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:174112 Archived-At: 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: =3D=3D=3D 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; =3D=3D> =2E./../trunk/src/lisp.h:1026:8: error: expected =E2=80=98{=E2=80=99 befo= re =E2=80=98_Alignas=E2=80=99 struct alignas (GCALIGNMENT) Lisp_Cons ^ No ideas why alignas (X) is designed in such a way. Paul? Dmitry