RFC: attribute "unpadded"
Richard Henderson
rth@redhat.com
Thu Aug 29 16:32:00 GMT 2002
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~
More information about the Gcc
mailing list