This is the mail archive of the gcc-help@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: Historic C++ ABI question


On 06/01/2016 05:39 PM, Florian Weimer wrote:
Given these definitions

struct base
{
  int a;
  int b;
};

struct plus : base
{
  virtual ~plus();
};

is there a historic C++ ABI which puts the vtable at offset 8 in struct
plus (after the fields from struct base)?  This must have been before
the Itanium C++ ABI.

GCC 2.95 on i386 produces such layout.

Was it possible to generate it with later compilers? The GCC 3.0 release notes say that a new C++ ABI was implemented. Was there really no backwards compatibility?

Florian


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