This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Switching the default for -fabi-version
- From: Mark Mitchell <mark at codesourcery dot com>
- To: law at redhat dot com
- Cc: Mike Stump <mrs at apple dot com>, gcc at gcc dot gnu dot org, david dot moore at intel dot com
- Date: Tue, 21 Oct 2003 19:02:39 -0700
- Subject: Re: Switching the default for -fabi-version
- Organization: CodeSourcery, LLC
- References: <200310220002.h9M02c1P020616@speedy.slc.redhat.com>
- Reply-to: mark at codesourcery dot com
> Well, maybe someone with in depth knowledge of what ABI things
> have changed should chime in at this point and indicate what
> has actually changed :-)
The short answer is "in some classes, some fields will be at different
offsets". But that sounds much more severe than it really is; the
longer answer is "in a few corner-case classes -- such as those with
lots of empty base classes, or those that have base classes that end
with bitfields -- the offsets of some virtual bases and/or fields might
change."
There are also a few places (involving complex templates) where the
mangled name of a function changed.
The descriptions of *what* changed aren't as important as the question
of *how much code* is affected. And, when you bear in mind that the C++
runtime library is bumping its version number again, the answer is
"almost none".
--
Mark Mitchell <mark@codesourcery.com>
CodeSourcery, LLC