public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: mario guerra <emailformario@yahoo.com>
To: gcc-help@gcc.gnu.org
Subject: Re: supporting multiple versions of GCC with a single shared object  release?
Date: Fri, 17 Apr 2009 14:55:00 -0000	[thread overview]
Message-ID: <43380.59367.qm@web34802.mail.mud.yahoo.com> (raw)


Thank you all for the helpful responses. Based on the info provided, it sounds like if we built our product with GCC version 4.x we would have binary compatibility at least back to 3.4.x, please let me know if my understanding is not right. 

On a related note, if we tried this approach would we have to worry about any differences in the implementation of exception handling between different versions of GCC?

Thanks again,
Mario

--- On Thu, 4/16/09, Andrew Haley <aph@redhat.com> wrote:

> From: Andrew Haley <aph@redhat.com>
> Subject: Re: supporting multiple versions of GCC with a single shared object  release?
> To: "John Fine" <johnsfine@verizon.net>
> Cc: "mario guerra" <emailformario@gmail.com>, gcc-help@gcc.gnu.org
> Date: Thursday, April 16, 2009, 12:05 PM
> John Fine wrote:
> > I have accidentally mixed binaries compiled by
> gcc3.2.3 with binaries
> > compiled by gcc3.4.6 in both directions across the
> main program / .so
> > boundary.  I did that in both x86 and AMD64
> architectures.  In all cases
> > I have had crashes, usually in std::string.
> 
> Right: libstdc++ wasn't stable.
> 
> > I have mixed gcc3.4.6 with each of gcc4.1.2 and
> gcc4.3.2 in similar
> > combinations (but only in AMD64) and seen no similar
> problems.
> 
> It is now.
> 
> > So there seems to be a significant change in
> std::string (or something
> > it depends on) somewhere between gcc3.2.3 and
> gcc3.4.6, but no similar
> > change since.
> > 
> > So I think you would need to switch to some newer
> version in order to
> > provide compatibility across a range of versions, and
> then I guess you
> > would lose compatibility back to 3.3.3
> 
> Right.
> 
> > BTW, if any of the experts here have specific warnings
> (what won't work)
> > across the range 3.4.6 through 4.3.2, I'd appreciate
> them.  The fact
> > that it has all worked for me so far doesn't prove it
> is safe.
> 
> Well, we had to change the ABI several times as we were
> tracking the
> development of the standard, and even after the
> multi-vendor C++ ABI
> was finalized, we still made a couple of mistakes that
> required a fix
> that broke binary compatibility.  That was, if I
> remember correctly,
> gcc 3.2.x.  It's been pretty stable ever since.
> 
> It's pretty easy to see when the ABI has changed because we
> bump the
> major release number in the soname.
> 
> Andrew.
> 


      

             reply	other threads:[~2009-04-17 14:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-17 14:55 mario guerra [this message]
2009-04-17 15:30 ` Ian Lance Taylor
  -- strict thread matches above, loose matches on Subject: below --
2009-04-15 17:13 mario guerra
2009-04-15 17:40 ` Ian Lance Taylor
2009-04-15 17:09 mario guerra
     [not found] <5480d0a80904141452g45324a9ch68c1e1a6e5e51904@mail.gmail.com>
2009-04-14 22:02 ` mario guerra
2009-04-14 22:09   ` Brian Budge
2009-04-14 22:21   ` Ian Lance Taylor
2009-04-15 15:09   ` John Fine
2009-04-16 17:06     ` Andrew Haley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43380.59367.qm@web34802.mail.mud.yahoo.com \
    --to=emailformario@yahoo.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).