This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: attribute "unpadded"
- From: Richard Henderson <rth at redhat dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: Gabriel Dos Reis <gdr at integrable-solutions dot net>, Andreas Schwab <schwab at suse dot de>, Paul Koning <pkoning at equallogic dot com>, "aoliva at redhat dot com" <aoliva at redhat dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Thu, 29 Aug 2002 16:32:58 -0700
- Subject: Re: RFC: attribute "unpadded"
- References: <20020829221015.GE549@redhat.com> <17800000.1030660041@warlock.codesourcery.com>
On Thu, Aug 29, 2002 at 03:27:21PM -0700, Mark Mitchell wrote:
> Yes. Most front ends (sample of 4) actually create both types, although
> they do:
>
> struct A { void *__vptr; char c; };
>
> rather than:
>
> struct A { struct __A body; }
>
> I'm not sure if there's ever a case where that matters.
For type-based aliasing, it does matter.
Indeed, using the later form in the C++ front end would fix
the aliasing issues currently in the front end, would it not?
r~