This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C ABI: struct/union inconsistency




--On Saturday, September 28, 2002 10:06:55 AM -0700 Tim Hollebeek <tim@hollebeek.com> wrote:

On Fri, Sep 27, 2002 at 06:46:05PM -0700, Richard Henderson wrote:
On Fri, Sep 27, 2002 at 06:11:37PM -0700, Mark Mitchell wrote:
> > How about "invisible", we're making the zero sized members
> > invisible :-)
>
> That's cute.

Cute, but not very descriptive.  allow_zero_size?
Don't we already have (or recently discuss) an attribute to eliminate
tail padding?  Shouldn't that get used here?
Yes, I realized last night that attribute((nopadding)) is the right
answer to this question.  I'd been meaning to implement that anyhow;
this is an opportune excuse.

--
Mark Mitchell                mark@codesourcery.com
CodeSourcery, LLC            http://www.codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]