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 Thursday, August 29, 2002 04:32:58 PM -0700 Richard Henderson <rth@redhat.com> wrote:

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?
I will be cautious and just say that it would help.  There are
still some other issues, but you're right that it would be a
step in the right direction.

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