bug-gnulib
[Top][All Lists]
Advanced

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

Re: alignasof, stdalign: Fix a compilation error on FreeBSD 12.0


From: Bruno Haible
Subject: Re: alignasof, stdalign: Fix a compilation error on FreeBSD 12.0
Date: Tue, 24 Jan 2023 14:34:19 +0100

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






reply via email to

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