------- Comment #12 from geoffk at gcc dot gnu dot org 2006-05-31 22:48 ------- The issue here is that Darwin does not support zero-sized objects in the linker. It just won't work.
So, you need to make sure that the linker never sees them. This is presently done for Darwin by adding a byte of padding at the end of every zero-sized object. Note that from the user's point of view, the structure is still zero size; sizeof() will return 0. If varasm.c needs to know about this, then this logic should move there. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26427