[HELP] GCC 4.1 branch Ada status on powerpc-darwin?
Peter O'Gorman
peter@pogma.com
Fri Jan 20 15:17:00 GMT 2006
Geoff Keating wrote:
>
> On 19/01/2006, at 9:08 AM, Peter O'Gorman wrote:
>
> Eric Botcazou wrote:
> |>Yes the workaround is to add -fexceptions or -shared-libgcc to the
> |>command line when linking libgnat but I don't know if that is the
> correct
> |>fix or some hacking to config/darwin.h is needed.
> |
> |
> | Thanks. However, that's not sufficient because the tools fail to
> build too:
>
> I'm adding Geoff Keating to the CC, hoping that he'll both shout at
> me while
> explaining why this change to darwin.h is broken, and suggest a real
> fix.
>
>
>> If ADA is going to use exceptions, then it needs to do what G++ does,
>> which is pass -shared-libgcc in its driver.
>
> This change allows gcc to build on powerpc-apple-darwin8.4 with ada.
>
>
>> It's not OK because for forwards binary compatibility the shared libgcc
>> must be used for exception handling.
Okay.
The following patch allows the 4.1 branch to build ada on
powerpc-apple-darwin8.4, okay? If so please apply as I do not have write access.
??-??-2006 Peter O'Gorman <peter@pogma.com>
* Makefile.in: Pass -static-libgcc when building tools,
and -shared-libgcc when building library on darwin.
Peter
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: darwin_ada.diff
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20060120/e2e2413f/attachment.ksh>
More information about the Gcc
mailing list