------- Comment #3 from rob1weld at aol dot com 2009-04-11 03:21 ------- # grep offsetof /home/user/gcc_trunk/gcc/ginclude/stddef.h #define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER)
Every other occurrence of stddef.h (in 'trunk', build, or in /usr/include/stddef.h is defined as: #define offsetof(type, member) ((size_t)(&((type *)0)->member)) Reported against FreeBSD here: http://lists.freebsd.org/pipermail/freebsd-bugs/2004-October/009496.html > Since config/t-openbsd causes GCC's version not to be used, OpenBSD's > version needs to use __builtin_offsetof; if it doesn't, you need either > to fix it with fixincludes or make GCC use its own version again. The URL above mentions License concerns so I'll need to fix "t-openbsd" to avoid copying (fixincludes) or altering /usr/include/stddef.h . # cat /home/user/gcc_trunk/gcc/config/t-openbsd # We don't need GCC's own include files. USER_H = So I will try this: -USER_H = +USER_H = $(srcdir)\ginclude\stddef.h Thanks for the tip, Rob -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39616