C++ ABI Issues

Gabriel Dos Reis gdr@integrable-solutions.net
Tue Aug 27 11:58:00 GMT 2002


Joe Buck <Joe.Buck@synopsys.com> writes:

| > On Mon, Aug 26, 2002 at 05:10:19PM -0700, Joe Buck wrote:
| > > > 2. Tail-padding and virtual base classes
| > [...]
| > > Question: does anyone know if case 2 affects anything in libstdc++?
| > > (e.g. iostream classes?)
| > 
| > No, I don't think anyone knows yet.  As soon as warnings are added to
| > detect this kind of thing, I'll find out.  :-)
| 
| It seems that even if it does, we can preserve libstdc++'s binary
| compatibility by adding a dummy field that exactly fills up any padding.

Isn't this the compiler should be doing (with appropriate flags if
necessary)?  It certainly does know where to fill things.  I would
certainly prefer that to clutering V3 with pad0, pad1, ...

-- Gaby



More information about the Gcc mailing list