From: Eli Zaretskii <eliz@gnu.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: emacs-devel@gnu.org
Subject: Re: Strange test in stdalign.m4
Date: Sat, 30 Mar 2013 08:58:09 +0300 [thread overview]
Message-ID: <83ppyh4efi.fsf@gnu.org> (raw)
In-Reply-To: <51565105.9010005@cs.ucla.edu>
> Date: Fri, 29 Mar 2013 19:42:13 -0700
> From: Paul Eggert <eggert@cs.ucla.edu>
> CC: emacs-devel@gnu.org
>
> On 03/29/2013 10:25 AM, Eli Zaretskii wrote:
> >> 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).
>
> But fencepost GCC 4.4.3 lacks stdalign.h, which means the test program
> that you gave should fail to compile, and the stdalign.h test's failure
> to compile under GCC 4.4.3 is a feature not a bug. I.e., although
> you've found a portability problem in that test, I don't see how
> the problem is relevant to GCC 4.4.3.
Yes, I know there's no stdalign.h on fencepost, but I injected the
contents of gnulib's stdalign.h as a preamble to the test program, to
see if it will work.
The goal was to see whether the problem is specific to the (older)
version of GCC I have on the particular Windows box where I first saw
the failure.
> You mentioned earlier that you saw the following diagnostics:
>
> ta.c:36: error: expected specifier-qualifier-list before ‘alignas_int’
> ta.c:36: error: ‘struct <anonymous>’ has no member named ‘__b’
>
> Which compiler version emitted these diagnostics?
The one on fencepost.
The broader context of this is running the configure script on a
Windows machine, where I arrange for the configure tests to use the
header files in the nt/inc directory in order to pass some of the
tests, which would have failed if only the system headers were used.
In nt/inc, we have stdalign.h that is a copy of lib/stdalign.h, but
the compiler might still be old.
If you'd prefer not to modify the gnulib test (although I don't see
downsides to that), I can force configure to accept nt/inc/stdalign.h
by setting an autoconf variable, although I think fixing the test is
cleaner. I just was stumped by the failure and didn't understand what
was going on.
next prev parent reply other threads:[~2013-03-30 5:58 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
2013-03-29 17:25 ` Eli Zaretskii
2013-03-30 2:42 ` Paul Eggert
2013-03-30 5:58 ` Eli Zaretskii [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83ppyh4efi.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=eggert@cs.ucla.edu \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.