From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3e070dca458e63a6 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.66.85.168 with SMTP id i8mr509435paz.21.1359029888404; Thu, 24 Jan 2013 04:18:08 -0800 (PST) MIME-Version: 1.0 Path: s9ni15169pbb.0!nntp.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 24 Jan 2013 06:18:08 -0600 Sender: Andrew Haley From: Andrew Haley Subject: Re: More Ganssle on Ada Newsgroups: comp.lang.ada References: <90d941f8-4e9f-485d-b2f6-89627d69ac79@googlegroups.com> <50fd3543$0$6548$9b4e6d93@newsspool4.arcor-online.net> <263569d4-2e54-4c2f-886e-e01c8a9d03ae@googlegroups.com> <8c72fc78-46f3-4865-81c5-433dd6d61633@googlegroups.com> User-Agent: tin/1.9.2-20070201 ("Dalaruan") (UNIX) (Linux/3.6.11-1.fc16.x86_64 (x86_64)) Message-ID: Date: Thu, 24 Jan 2013 06:18:08 -0600 X-Trace: sv3-u3SHv6UYna0/072Q0sz7GrYNeg4vQeWHnDFtHGUyj3pBy8owYrnklZJD0m8KjtE2p/L8joZwWH14/iV!F1vpDwyUX9n2aNP7795dptwbVzrXNm4mJapWIWvUpp9m6/16qJtTN4OruwqTjaqdUg9DdRVUdxuQ!JxXlS1w6sAI= X-Complaints-To: www.supernews.com/docs/abuse.html X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2621 Date: 2013-01-24T06:18:08-06:00 List-Id: Lucretia wrote: > Ok, let's sort this once and for all. > > Building an ARM Linux compiler is doable now. The only problem with > it is that it doesn't use the unwind-arm.[ch] files in > gcc/config/arm but does implement exceptions with setjmp/longjmp. > > I ave tried to sort this out, it requires someone with more > knowledge of the RTS than me. Basically, what needs to be done to > sort this out is to move the current DWARF EH code into a new > package, and create an ARM equivalent, this is because the standard > unwind and the unwind-arm stuff is very different and the data would > be wrong on the Ada side. > > I submitted a patch to the GCC ML which does the first part and kind > of works, but fails in the end. The response from AdaCore was > something along the lines "you need to construct and ARM specific > exception object," thanks, very helpful. I remember offering to help someone do this, but it all went quiet. It's not terribly difficult: a simple worked example of the changes needed is in http://gcc.gnu.org/viewcvs/trunk/libjava/exception.cc?view=markup ... just look for ifdef __ARM_EABI_UNWINDER__ Andrew.