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: Eli Zaretskii
Subject: Re: Strange test in stdalign.m4
Date: Fri, 29 Mar 2013 20:25:59 +0300

> Date: Fri, 29 Mar 2013 09:53:38 -0700
> From: Paul Eggert <address@hidden>
> CC: address@hidden
> 
> 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 newest one was 4.4.3 (on fencepost).  This is the best I can do
this weekend ;-)

> 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

Yes, this works.  Thanks.



reply via email to

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