This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][Ada] arm-linux sjlj port


On Mon, 2009-09-07 at 15:19 +0200, Mikael Pettersson wrote:
> Richard Earnshaw writes:
>  > 
>  > On Mon, 2009-09-07 at 13:31 +0200, Mikael Pettersson wrote:
>  > > So right now we have a choice of (a) no Ada for ARM EABI, or (b)
>  > > an SJLJ Ada for ARM EABI. With (b) we at least have a working and
>  > > testable system until someone can work out the ZCX EH details.
>  > 
>  > But SJLJ is NOT compatible with the EABI.
> 
> Right, it's not if we consider Ada code linked with EH-using
> code from other languages or binary code producers that do use
> ARM EABI EH. But pure Ada images linked with non-EH using C runtimes
> should work. And that's enough for the Ada compiler to sustain
> itself (remember that Ada requires Ada at bootstrap-time) while
> the limitations are being addressed.
> 
> One can build gcc's Ada with ZCX support selected for ARM EABI,
> it just needs two small tweaks for compile-time issues. But the
> resulting Ada binaries die whenever an exception is raised;
> in particular, the Ada compiler itself uses exceptions in a
> bootstrap-time helper program (xsinfo, I have a reasonable fix
> for that one too). And much of the test suite fails as well.
> 
> Would an ARM Ada port with a known broken ZCX EH implementation,
> but which is able to rebuild itself, be more acceptable?

I don't think either is acceptable.  However, I'm concerned that this
short-term expediency will become a drag to long-term conformance.
Sometimes it's important to get these things right from the beginning or
the legacy will become impossible to eradicate.

R.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]