[Bug target/26427] [4.2 Regression] with -fsection-anchors with zero sized structs
geoffk at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed May 31 22:48:00 GMT 2006
------- 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
More information about the Gcc-bugs
mailing list