[LLVMdev] Exception handling question

James Williams junk at giantblob.com
Fri Jan 22 06:23:07 PST 2010


2010/1/22 Duncan Sands <baldrick at free.fr>

> Hi James,
>
>
>  Yes - sorry I was unclear. I have pruned everything down to a pretty
>> minimal test:
>> - LLVM 2.6 compiled from source
>> - A slightly modified version of Duncan's example ll assembly posted
>> earlier
>> - A minimal personality function (just a call to fprintf()) in a separate
>> C file compiled with gcc-llvm
>> - A single C++ function in a third file that simply does "throw 1;"
>> compiled with g++-llvm
>> - I can definitely see the personality function in the exception headers
>> and it's definitely not being called.
>> - If i replace "throw 1" with "result = _Unwind_RaiseException" then
>> result is 5 - i.e. END_OF_STACK.
>>
>
> want to send us your testcase code?  Then we can give it a whirl.
>

Test code is at http://giantblob.com/ehtest.tar.gz

Thanks for the help. I apologize in advance if it turns out I'm doing
something stupid!

-- James

>
> Ciao,
>
> Duncan.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100122/ddea1687/attachment.html>


More information about the llvm-dev mailing list