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

sizeof(struct __attribute__(no_tail_padding) { } ) == 0

seems intuitive to me.

-Tim


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