[Bug target/26427] Regressions with -fsection-anchors with zero sized structs

rsandifo at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Mar 2 19:44:00 GMT 2006



------- 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



More information about the Gcc-bugs mailing list