This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/26427] [4.2 Regression] with -fsection-anchors with zero sized structs
- From: "geoffk at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jun 2006 21:49:17 -0000
- Subject: [Bug target/26427] [4.2 Regression] with -fsection-anchors with zero sized structs
- References: <bug-26427-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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