[LLVMdev] Unwinds Gone Wild

Marc de Kruijf dekruijf at cs.wisc.edu
Thu Jul 31 07:31:59 PDT 2008


Is setjmp/longjmp what you have in mind?
Is there a timeline for implementing unwind in codegen?  I guess I don't
strictly need it, but it would be really handy.

On Thu, Jul 31, 2008 at 9:19 AM, Marc de Kruijf <dekruijf at cs.wisc.edu>wrote:

>
>
> On Thu, Jul 31, 2008 at 2:19 AM, Duncan Sands <baldrick at free.fr> wrote:
>
>> Hi,
>>
>> > Can anyone tell me if invoke/unwind is stable in 2.3?  I'm seeing some
>> > really weird stuff -- unwinds are ending up in seemingly arbitrary
>> places...
>> > definitely not inside the caller's unwind block  My target is x86.
>>
>> codegen doesn't know how to handle "unwind" on any target.  You need
>> to call the libgcc unwinding routines directly (or indirectly by
>> pretending to be C++ or some other language, and calling eg cxa_throw).
>
>
> I'm not familiar with the libgcc unwinding routines.  What do these look
> like and where might I read more about them?  Or maybe someone can provide
> an example?  For instance, how could I do it for my little dummy program?
>
>
>>
>>
>> > As a simple test, I tried to compile the following code and I got a
>> > segmentation fault.  It looks good to me.  Can someone help me out or is
>> > this a bug?
>>
>> It's a bug that it's not supported.  Supporting it is not so easy
>> to do, which is why it's still unsupported...
>>
>
> It would be nice if this was documented somewhere, although I understand
> the difficulties in keeping documentation up-to-date.
>
>
>>
>> Ciao,
>>
>> Duncan.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080731/5174882f/attachment.html>


More information about the llvm-dev mailing list