emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange test in stdalign.m4


From: Paul Eggert
Subject: Re: Strange test in stdalign.m4
Date: Fri, 29 Mar 2013 09:53:38 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130308 Thunderbird/17.0.4

On 03/29/2013 07:57 AM, Eli Zaretskii wrote:
I tried this with 2 different versions of GCC on 2 different systems,
with the same results.
The test works for me, with GCC 4.7.2 and 4.8.0.  But you're right, it
does rely on an extension to ISO C11.  Which GCC versions
were you using?  The test should
be ported to them.  Does it fix things for you
if we replace the last four lines of the test with this?

#if (__GNUC__ || __IBMC__ || __IBMCPP__ || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER) struct alignas_test { char c; int alignas (8) alignas_int; } alignas_test = { 1, 1 }; char test_alignas[offsetof (struct alignas_test, alignas_int) == 8 ? 1 : -1];
  #endif




reply via email to

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