From: Bruno Haible <bruno@clisp.org>
To: bug-gnulib@gnu.org
Subject: Re: alignasof, stdalign: Fix a compilation error on FreeBSD 12.0
Date: Tue, 24 Jan 2023 14:34:19 +0100 [thread overview]
Message-ID: <4906123.VPDY5HzIcG@nimes> (raw)
In-Reply-To: <2593218.SeglcFtGQu@nimes>
PS: For this patch, I needed to know which compiler versions support
__builtin_offsetof. This test program
=================================================
typedef struct { char a; double b; int c; } foo;
int xxx = __builtin_offsetof (foo, c);
#include <stddef.h>
int yyy = offsetof (foo, c);
=================================================
compiled with "$CC -S", showed that
- GCC ≥ 4.0 does,
- at least clang ≥ 2.8 supports it as well.
Bruno
prev parent reply other threads:[~2023-01-24 13:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-24 13:02 alignasof, stdalign: Fix a compilation error on FreeBSD 12.0 Bruno Haible
2023-01-24 13:34 ` Bruno Haible [this message]
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://lists.gnu.org/mailman/listinfo/bug-gnulib
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4906123.VPDY5HzIcG@nimes \
--to=bruno@clisp.org \
--cc=bug-gnulib@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.
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).