This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Mixing objects from different gcc versions.
- From: Ian Lance Taylor <iant at google dot com>
- To: "Dr. David Kirkby" <david dot kirkby at onetel dot net>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 02 Feb 2010 21:59:00 -0800
- Subject: Re: Mixing objects from different gcc versions.
- References: <4B684E3D.9050006@onetel.net>
"Dr. David Kirkby" <david.kirkby@onetel.net> writes:
> If someone
>
> 1) Builds Sage with gcc x.y.z
> 2) Udates gcc
> 3) Tries to upgrade Sage, could they expect problems as a result of
> the gcc upgrade?
In general, no. The C ABI is completely stable. The C++ ABI has been
stable since gcc 3.4. No current changes are planned, though it is
possible that there will be change associated with support of the
upcoming C++0x standard.
> * Would a major upgrade of gcc (from say 4 to gcc 5) cause problems (I
> know 5 is not our yet, but you get the point.
It is possible that the C++ ABI will change in a major release.
> * Would a less major upgrade from say 4.1.x to gcc 4.2.y ?
I would argue against changing the C++ ABI in a less major release,
but it is conceivable though very unlikely.
> * How about a minor upgrade, from gcc 4.3.x to 4.3.y ??
The ABI will definitely be stable in a minor release.
Ian
Ian