This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: On alignment
> In the future, we need to be using the same layout code as C++. In
> fact I thought we *were*, so I didn't expect any of this. I assumed
> that when C++ moved to the new ABI gcj would automatically follow,
> because we were using the same code. I didn't realize that the C++
> guys would make the changes inside their front end.
To be clear, C++ has *always* done stuff in the front end. The new ABI
work changed what we did, but not where we did it.
In fact, my (relatively) recent changes for handling "subobject"
versions of classes actually bring things closer to just using the
middle-end layout code.
--
Mark Mitchell
CodeSourcery, LLC
mark at codesourcery dot com