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