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: possible structure layout bug


Andrew Haley wrote:
Stephen Kennedy writes:
> On Wed, 2004-06-09 at 20:44, Richard Henderson wrote:
> > > > Has nothing to do with simd or not. Has everything to do > > with POD or non-POD type.
> > Ok, so if I have this correct, POD members padding may not be reused by
> derived classes but non-POD classes may have their padding reused.
> > Why then is __m128 not considered a POD type? It is most natural to
> think of machine native register types as POD.


That's not what he said.  If it's a derived class it's not POD, so the
compiler can pack any way it wants.


Nope, I don't think so. I agree with Stephen according to my read of C++ ABI spec. Is there anything I missed in the spec?



Regards


--
Jie


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