the current implementation of the offsetof macro
depends on special code in SDCCast.c
which causes problems for certain pointer casts.
(see offsetof-bug.c testcase in the patch)
this patch implements offsetof with a compiler
builtin __builtin_offsetof to avoid this problem,
and to avoid such special twisting of the ast.
Log in to post a comment.