This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [HELP] GCC 4.1 branch Ada status on powerpc-darwin?
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Geoffrey Keating <geoffk at apple dot com>
- Cc: "Peter O'Gorman" <peter at pogma dot com>, gcc-patches at gcc dot gnu dot org, Arnaud Charlet <charlet at adacore dot com>, Andrew Pinski <pinskia at physics dot uc dot edu>, gcc at gcc dot gnu dot org, Chris Douty <Chris_Douty at ampex dot com>, Laurent GUERBY <laurent at guerby dot net>
- Date: Mon, 23 Jan 2006 22:51:26 +0100
- Subject: Re: [HELP] GCC 4.1 branch Ada status on powerpc-darwin?
- References: <1137484110.20435.1003.camel@pc.site> <200601231523.47620.ebotcazou@adacore.com> <9B42B643-2322-428E-9180-78F2F6346044@apple.com>
> As I said before in this thread, the Ada driver should do what the C++
> driver does, which is to pass -shared-libgcc if it's going to need
> EH support. Or, you could pass -fexceptions to the link, which has
> the same effect.
That's not really an option, as Ada links its static runtime by default and
tries to avoid external dependencies by default.
> No, it's not possible to let people safely 'just use EH' with no
> extra work. The issue is compatibility with the various Mac OS X
> versions, including future versions. Passing -static-libgcc creates
> an executable for which future binary compatibility is not
> guaranteed. Passing -shared-libgcc creates an executable which will
> not work before 10.3.9 because the library is not there.
IIUC, that passing nothing is neither equivalent to -static-libgcc nor to
-shared-libgcc is a feature, right? I know Darwin didn't invent it (IIRC
Linux did) but that's not a valid excuse. :-) And the "neither -static-libgcc
not -shared-libgcc" on Darwin is not compatible with the "neither
-static-libgcc not -shared-libgcc" on Linux.
OK, I guess we have no other solution than defaulting to -static-libgcc for
Ada on Darwin.
Thanks for your feedback.
--
Eric Botcazou