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: RFC: attribute "unpadded"


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~


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