------- Comment #15 from geoffk at gcc dot gnu dot org 2006-06-01 21:49 ------- After discussion with Mike, I don't think Andrew's fix is right either.
If varasm.c wants to be able to predict memory layout, then what it needs to do is ensure that the memory layout is seen as a single unit by the linker. This can only be done by ensuring that the layout contains no linker-visible labels, that is all the labels inside the layout must start with 'L'. If this is done, then the linker is not involved and zero-sized objects can be zero sized. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26427