unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Strange test in stdalign.m4
Date: Fri, 29 Mar 2013 09:53:38 -0700	[thread overview]
Message-ID: <5155C712.2090409@cs.ucla.edu> (raw)
In-Reply-To: <8338ve5k4u.fsf@gnu.org>

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	other threads:[~2013-03-29 16:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-29 14:57 Strange test in stdalign.m4 Eli Zaretskii
2013-03-29 16:53 ` Paul Eggert [this message]
2013-03-29 17:25   ` Eli Zaretskii
2013-03-30  2:42     ` Paul Eggert
2013-03-30  5:58       ` Eli Zaretskii
2013-03-30 17:32         ` Paul Eggert
2013-03-30 17:40           ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5155C712.2090409@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).