This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/26427] Regressions with -fsection-anchors with zero sized structs
- From: "rsandifo at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Mar 2006 19:44:25 -0000
- Subject: [Bug target/26427] Regressions 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 #3 from rsandifo at gcc dot gnu dot org 2006-03-02 19:44 -------
I said:
> I'm considering adding equivalent code to varasm.c. This will fix
> an inconsistency in the handling of zero-sized decls: sometimes
> they get a byte of storage allocated to them (giving them a unique
> address) and sometimes they don't.
I'm no longer sure that's a good idea. I suspect some users of
zero-sized structs really do want them to take zero size in the
object, and know which incantation they need to get that.
I'll have to leave the darwin.h ASM_DECLARE_OBJECT_NAME() issue
to someone with access to Darwin.
Richard
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26427